/* ============================================================
   LOGO — white-bg PNG on dark and light headers
   ============================================================ */

/* Contain size and maintain crispness on all screens */
html {
  scroll-padding-top: 10px;
}

section[id],
footer[id] {
  scroll-margin-top: 110px;
}

#logo img {
  max-height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-name {
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cc-white);
  white-space: nowrap;
}

/* On dark/transparent header: add a subtle backdrop so the white
   logo background blends rather than showing a stark white box  */
#header.transparent-header #logo a,
#header.dark #logo a {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 4px 10px;
  transition: background 200ms ease;
}
#header.transparent-header #logo a:hover,
#header.dark #logo a:hover {
  background: rgba(255,255,255,0.15);
}

/* Once the header is scrolled (not-dark / light background) remove the backdrop */
#header.not-dark #logo a {
  background: transparent;
  padding: 0;
}

#header.not-dark .brand-name {
  color: var(--cc-ink);
}

.cc-contact-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.cc-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(244,243,239,0.8);
  font-size: 0.95rem;
}

.cc-contact-item i {
  color: var(--cc-accent);
  margin-top: 0.2rem;
  font-size: 1rem;
}

.cc-contact-item span,
.cc-footer-contact-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cc-contact-map-link {
  color: inherit;
  text-decoration-color: rgba(41,171,226,0.65);
  text-underline-offset: 3px;
}

.cc-contact-map-link span {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--cc-accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.cc-contact-map-link:hover {
  color: var(--cc-white);
}

.cc-contact-map {
  margin-top: 3rem;
  overflow: hidden;
  border: 1px solid rgba(244,248,251,0.16);
  border-radius: 12px;
}

.cc-contact-map iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 42vw, 440px);
  border: 0;
}

.cc-contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.65rem;
  margin-top: 2rem;
}

.cc-contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(244,248,251,0.16);
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  min-width: 0;
  flex: 0 0 auto;
}

.cc-contact-cta:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(11,110,145,0.28);
  background: var(--cc-cta-hover-bg);
  color: var(--cc-white);
}

.cc-contact-cta__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(244,248,251,0.16);
  color: var(--cc-white);
  flex-shrink: 0;
}

.cc-contact-cta__icon svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
  display: block;
}

.cc-contact-cta--call {
  background: var(--cc-cta-bg);
  color: var(--cc-white);
  box-shadow: 0 16px 30px rgba(11,110,145,0.3);
}

.cc-contact-cta--whatsapp {
  background: var(--cc-cta-bg);
  color: var(--cc-white);
  box-shadow: 0 16px 30px rgba(11,110,145,0.3);
}

.cc-quote-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 2rem;
}

.cc-quote-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,243,239,0.72);
}

.cc-quote-form input,
.cc-quote-form select,
.cc-quote-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(12,21,32,0.5);
  color: var(--cc-white);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.96rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cc-quote-form input:focus,
.cc-quote-form select:focus,
.cc-quote-form textarea:focus {
  outline: none;
  border-color: rgba(41,171,226,0.9);
  box-shadow: 0 0 0 3px rgba(41,171,226,0.18);
}

.cc-quote-form textarea {
  min-height: 140px;
  resize: vertical;
}

.cc-quote-form .button {
  border: 0;
  background: var(--cc-cta-bg);
  color: var(--cc-white);
  transition: background 180ms ease, transform 160ms ease;
}

.cc-quote-form .button:hover {
  background: var(--cc-cta-hover-bg);
}

.cc-form-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  color: rgba(244,243,239,0.7);
  font-size: 0.8rem;
}

.cc-form-success {
  margin: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(28, 122, 86, 0.18);
  border: 1px solid rgba(48,190,115,0.45);
  color: #d7fbe7;
  font-size: 0.9rem;
}

.cc-form-success.is-error {
  background: rgba(165, 42, 42, 0.12);
  border-color: rgba(255, 118, 118, 0.38);
  color: #ffd7d7;
}

.cc-scroll-top {
  position: fixed;
  left: 22px;
  bottom: 24px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--cc-cta-bg);
  color: var(--cc-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 35px rgba(41,171,226,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.cc-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cc-scroll-top:hover {
  background: var(--cc-cta-hover-bg);
}

.cc-scroll-top svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
  display: block;
}

@media (max-width: 767px) {
  .cc-contact-actions {
    flex-wrap: wrap;
  }

  .cc-contact-cta {
    min-width: 0;
    width: auto;
  }

  .cc-quote-form {
    padding: 1.25rem;
  }

  .cc-form-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .cc-contact-actions {
    align-items: flex-start;
  }
}

/* ============================================================
   CB ABOUT SECTION — variables + scoped styles
   ============================================================ */

:root {
  /* cb- section variables remapped to project blue palette */
  --cb-white:        var(--cc-white);          /* #F4F8FB */
  --cb-grey-50:      #EBF3F9;                  /* cool light blue — matches cc-section-mid */
  --cb-grey-100:     var(--cc-grey-light);     /* #D0DAE3 */
  --cb-grey-300:     #B8C8D8;                  /* blue-tinted border */
  --cb-grey-500:     var(--cc-grey);           /* #8E99A4 */
  --cb-grey-700:     var(--cc-ink-2);          /* #162030 */
  --cb-grey-900:     var(--cc-ink);            /* #0C1520 */
  --cb-font-display: 'Playfair Display', serif; /* already loaded */
  --cb-font-body:    'Manrope', sans-serif;
}

.cb-about-section {
  background: var(--cb-grey-50); /* #EBF3F9 cool blue mid-tone */
  padding: 6rem 0;
}

/* Highlight cards replacing team portraits */
.cb-highlight-card {
  padding: 2rem 1.5rem;
  border: 1px solid var(--cb-grey-100);
  background: var(--cb-white);
  height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cb-highlight-card:hover {
  border-color: var(--cnvs-themecolor);
  box-shadow: 0 4px 20px rgba(41,171,226,0.10);
}
.cb-highlight-icon {
  font-size: 1.75rem;
  color: var(--cnvs-themecolor);
  margin-bottom: 1rem;
  display: block;
}
.cb-highlight-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--cc-ink);
  margin-bottom: 0.25rem;
  display: block;
}
.cb-highlight-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cb-grey-500);
  display: block;
  margin-bottom: 0.5rem;
}
.cb-highlight-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--cb-grey-500);
  margin: 0;
}

.cb-section-label {
  display: inline-block;
  font-family: var(--cb-font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cb-grey-500);
  margin-bottom: 1.25rem;
}

.cb-philosophy-quote {
  font-family: var(--cb-font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.5;
  color: var(--cb-grey-900);
  margin-bottom: 2.5rem;
}

.cb-rule {
  width: 48px;
  height: 1px;
  background: var(--cb-grey-300);
  margin: 0 0 2rem;
  border: none;
  display: block;
}

.cb-about-body {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--cb-grey-500);
  font-weight: 300;
}

.cb-pillar {
  border-top: 1px solid var(--cb-grey-300);
  padding-top: 1rem;
  margin-top: 2rem;
}

.cb-pillar-name {
  font-family: var(--cb-font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cb-grey-900);
  margin-bottom: 0.4rem;
  display: block;
}

.cb-pillar-desc {
  font-size: 0.8125rem;
  color: var(--cb-grey-500);
  line-height: 1.6;
  margin: 0;
}

.cb-vr {
  width: 1px;
  background: var(--cb-grey-100);
  min-height: 320px;
  margin: 0 auto;
}

.cb-team-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  display: block;
  margin-bottom: 1.25rem;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.cb-team-card:hover .cb-team-img { filter: grayscale(0%); }

.cb-team-name {
  font-family: var(--cb-font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cb-grey-900);
  margin: 0 0 0.2rem;
}

.cb-team-role {
  font-family: var(--cb-font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cb-grey-500);
}

@media (prefers-reduced-motion: no-preference) {
  [data-cb-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  [data-cb-reveal].in-view {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 991px) {
  .cb-about-section { padding: 4rem 0; }
}
