:root {
  --bg: #efefef;
  --text: #141414;
  --muted: #404040;
  --light: #ffffff;
  --dark: #0f1013;
  --contact: #d7d7d7;
  --trusted: #14161b;
}

/* ==========================================================================
   ACCESSIBILITY: SKIP LINK + FOCUS INDICATORS
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--dark);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  transition: top 0.2s;
  text-decoration: none;
  font-size: 14px;
}

.skip-link:focus {
  top: 0;
}

*:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 2px;
}

/* ==========================================================================
   GLOBAL BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1220px, 92%);
  margin: 0 auto;
}


/* ==========================================================================
   SHARED SECTION + GRID UTILITIES (ALL PAGES)
   ========================================================================== */

.section {
    padding: 4vw;
}
.section-title{
    font-size: calc((4 - 1) * 1.2vw + 1rem);
    font-weight: 400;
    line-height: 1;
    margin-top: 0px;
    margin-bottom: 2rem; 
}
.small-section-title{
    font-size: calc((3 - 1) * 1.2vw + 1rem);
    font-weight: 400;
    line-height: 1;
    margin-top: 0px;
    margin-bottom: 2rem;  
}
.small-copy {
    margin-bottom: 40px;
    color: #232323;
}

.common-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 10vw, 120px);
}

.common-col-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
}

.common-col-image {
    overflow: hidden;
    height: 100%;
}
.common-col-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.row-item-center {
    align-items: center;
}

/* ==========================================================================
   HOME PAGE: HEADER + NAV
   ========================================================================== */

.hero-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  padding-top: 1.85vw;
  padding-bottom: 1.85vw;
  padding-left: 4vw;
  padding-right: 4vw;
  pointer-events: auto;
  background: linear-gradient(black, transparent);
}
.nav-wrap .brand img {
    width: auto;
    max-width: 100%;
    max-height: 50px;
}

nav.site-nav ul {
    display: flex;
    padding: 0;
    gap: 2vw;
}
nav.site-nav ul li {
    list-style: none;
}
nav.site-nav a {
    color: white;
    font-size: calc((.9 - 1) * 1.2vw + 1rem);
    font-weight: normal;
    text-decoration: none;
    letter-spacing: -.02em;
    padding: .1em 0;
}

/* === TEMPORARILY HIDDEN — unreleased features === */
.nav-portal-btn,
.footer-portal-btn,
.survey-teaser,
.survey-popup-overlay {
  display: none !important;
}
/* === END TEMPORARILY HIDDEN === */

/* Client Portal button (disabled — coming soon) */
.nav-portal-btn {
    display: inline-block;
    background: #dcdcdc;
    color: #000;
    padding: 0.4em 1.5em;
    border-radius: 100em;
    font-size: calc((.9 - 1) * 1.2vw + 1rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: default;
    opacity: 0.7;
    user-select: none;
}
.footer-portal-btn {
    cursor: default;
    opacity: 0.5;
}

/* Hidden nav items (show with ?debug=true) */
.nav-hidden {
  display: none !important;
}

body.debug-mode .nav-hidden {
  display: initial !important;
}

.footer-hidden {
  display: none !important;
}

body.debug-mode .footer-hidden {
  display: block !important;
}

/* Survey CTA nav button */
.nav-cta {
  background-color: #ffffff;
  color: #0f1013 !important;
  padding: 8px 20px !important;
  border-radius: 4px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.9;
}

button.menu-toggle {
    display: none;
}

@media (max-width: 799px) {
    .nav-wrap {
        padding-top: 6vw;
        padding-bottom: 6vw;
        padding-left: 6vw;
        padding-right: 6vw;
    }
    a.brand {
        position: relative;
        z-index: 999;
    }
    nav.site-nav {
        position: fixed;
        z-index: 1;
        display: flex;
        flex-direction: column;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        opacity: 0;
        visibility: hidden;
        will-change: opacity, visibility;
        user-select: none;
        text-align: center;
        pointer-events: auto;
        background-color: #ffffff;
        justify-content: center;
        transition: opacity 250ms cubic-bezier(.2, .6, .3, 1), visibility 250ms cubic-bezier(.2, .6, .3, 1);
    }
    nav.site-nav.open {
        opacity: 1;
        visibility: visible;
    }
    nav.site-nav ul {
        flex-direction: column;
        transform: translatey(5%);
        transition: transform 0.5s cubic-bezier(.2, .6, .3, 1);
        gap: 0;
    }
    nav.site-nav.open ul {
        transform: translatey(0);
    }
    nav.site-nav a {
        font-size: 6vmin;
        padding: .5em 0;
    }
    .nav-portal-btn {
        font-size: 4vmin;
        padding: 0.4em 1.8em;
        color: #000;
    }
    button.menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        transform: translatey(-5.5px);
        transition: transform 250ms cubic-bezier(.2, .6, .3, 1), width 250ms cubic-bezier(.2, .6, .3, 1);
        will-change: transform, width;
        width: 40px;
        height: 32px;
        background: none;
        border: none;
        cursor: pointer;
        position: relative;
        z-index: 9;

    }
    .menu-toggle span {
        display: block;
        width: 35px;
        height: 1px;
        background-color: #fff;
        margin: 5px 0;
        position: relative;
        transition: all linear 0.1s;
    }
    .menu-toggle span.center-line {
        transform: scale(0);
    }
      .menu-toggle .line {
        position: absolute;
        left: 0;
        width: 100%;
        height: 4px;
        background: #000;
        border-radius: 4px;
        transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease, bottom 0.3s ease;
      }
      
      .top-line { top: 0; }
      .center-line { top: 14px; }
      .bottom-line { bottom: 0; }
      
      /* 🔥 OPEN STATE USING aria-expanded */
      .menu-toggle[aria-expanded="true"] .top-line {
        top: 0px;
        transform: rotate(225deg);
        background: #000;
        width: 28px;
      }
      
      .menu-toggle[aria-expanded="true"] .center-line {
        opacity: 0;
      }
      
      .menu-toggle[aria-expanded="true"] .bottom-line {
        bottom: 11px;
        transform: rotate(-225deg);
        background: #000;
        width: 28px;
      }
      
      span.center-line {
          transform: scale(0);
      }
      .section {
            padding: 50px 4vw;
        }
}

/* header css end */

/* ==========================================================================
   HOME PAGE: HERO BANNER
   ========================================================================== */

.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    min-height: clamp(800px, 130vh, 1055px);
    width: 100%;
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.hero-content h1 {
    font-size: calc((3.85 - 1) * 1.2vw + 1rem);
    font-weight: 400;
    line-height: 1;
    margin-top: 0px;
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: calc((1.1 - 1) * 1.2vw + 1rem);
    font-weight: 400;
    line-height: 1.3;
    max-width: 723px;
    margin: auto;
}

.pill-btn {
    display: inline-block;
    background: #dcdcdc;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: calc((0.8 - 1) * 1.2vw + 1rem);
    padding: 3em 9em;
    border-radius: 100em;
    margin-top: 6em;
    text-transform: uppercase;
    transition: all 0.5s ease;
}
.pill-btn:hover {
    background-color: #dcdcdcad;
}

@media (max-width: 799px) {
    .hero {
        min-height: auto;
        max-height: calc(100vh - 100px);
    }
    .hero-content h1 {
        font-size: calc((4 - 1) * calc(.012 * min(100vh, 900px)) + 1rem);
    }
    .hero-content p {
        font-size: calc((1 - 1) * 1.2vw + 1rem);
    }
    .pill-btn {
        padding: 2em 6em;
    }
    .pill-btn {
        margin-top: 4em;
        font-size: calc((0.8 - 1) * calc(.012 * min(100vh, 900px)) + 1rem);
    }
}

/* hero banner css end */

/* ==========================================================================
   HOME PAGE: SERVICES (FAQ)
   ========================================================================== */
.section-light {
    background-color: #fff;
}
.section-light p {
    font-size: calc((1.1 - 1) * 1.2vw + 1rem);
    font-weight: 400;
    line-height: 1.3;
}
/* Services we offer css end */

#services .common-col {
    padding-top: 35px;
}



.services-faq {
    border-top: 1px solid #5c5c5c;
    margin-bottom: 28px;
}

.faq-item {
    border-bottom: 1px solid #8f8f8f;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-size: clamp(22px, 1.2vw, 30px);
    font-weight: 400;
    color: #121212;
    cursor: pointer;
}

.faq-icon {
    color: #4a4a4a;
    font-size: 24px;
    line-height: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 32px;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.faq-item.is-open .faq-answer {
    opacity: 1;
}

.faq-answer p {
    margin: 0;
    padding-bottom: 30px;
    font-size: clamp(14px, 0.8vw, 16px) !important;
    line-height: 1.5;
    color: #1f1f1f;
}

.black-btn {
    background: #0c0c0c;
    color: #fff;
}
.black-btn:hover {
    background: #333333;
}


@media (max-width: 991px) {
    #services a.pill-btn.black-btn {
        margin-top: 1em;
    }
    .common-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-question {
        font-size: clamp(18px, 4.6vw, 26px);
    }

    .faq-answer {
        padding-left: 0;
        padding-right: 0;
    }
    .section-title{
        margin-bottom: 0.5em;
    }
    .small-copy {
        margin: 1em 0px;
    }
    .small-section-title{
        font-size: calc((4 - 1) * 1.2vw + 1rem);
    }
}

/* ==========================================================================
   HOME PAGE: OUR COMPANY ETHOS
   ========================================================================== */
.two-col-copy {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   HOME PAGE: CONTACT SECTION
   ========================================================================== */
.section-dark {
    background: #d3d3d3;
}

.contact-row {
    align-items: start;
    gap: clamp(30px, 8vw, 130px);
}

.contact-copy {
    padding-top: 10px;
}

.contact-copy p {
    margin: 0;
    max-width: 560px;
    font-size: calc((1.1 - 1) * 1.2vw + 1rem);
    line-height: 1.35;
}

.contact-form-wrap {
    width: 100%;
}

.contact-form {
    width: 100%;
}

.field-group {
    margin-bottom: 14px;
}

.field-group label {
    display: block;
    margin-bottom: 6px;
    font-size: calc((1.1 - 1) * 1.2vw + 1rem) !important;
    line-height: 1.2;
}

.field-group label span,
.field-item small span {
    opacity: 0.75;
    font-size: calc((0.9 - 1) * 1.2vw + 1rem);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.field-item input {
    margin-bottom: 4px;
}

.field-item small {
    display: block;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: #f3f3f3;
    padding: 15px;
    font-family: inherit;
    font-size: 16px;
    color: #141414;
}

.contact-form textarea {
    border-radius: 14px;
    resize: vertical;
    min-height: 82px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 1px solid #9f9f9f;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 14px;
    font-size: calc((1.1 - 1) * 1.2vw + 1rem);
}

.checkbox-row input {
    margin: 0;
}

body .send-btn {
    border: 0;
    border-radius: 999px;
    background: #090909;
    color: #fff;
    padding: 1.5em 3em;
    font-size: calc((0.8 - 1) * 1.2vw + 1rem);
    letter-spacing: 0.04em;
    cursor: pointer;
}

body .send-btn:hover {
    background: #2b2b2b;
}
/* Contact css end */

@media (max-width: 991px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   HOME PAGE: TRUSTED BY
   ========================================================================== */
.trusted-by-section {
    background: #16181c;
}

#trusted-by .section-title {
    margin-bottom: 1em;
    font-size: calc((2.5 - 1) * 1.2vw + 1rem);
}

.trusted-by-section .section-title {
    color: #ffffff;
}

.trusted-by-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5vw;
}

.trusted-card {
    text-align: center;
    color: #ffffff;
}

.logo-box {
    width: 100%;
    color: #181818;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(16px, 1.5vw, 30px);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}
.logo-box img {
    width: 100%;
    max-width: 120px;
}

.trusted-card p {
    margin: 0;
    font-size: calc((1.2 - 1) * 1.2vw + 1rem);
    line-height: 1.2;
}

.trusted-card small {
    display: block;
    margin-top: 2px;
    font-size: calc((0.9 - 1) * 1.2vw + 1rem);
    line-height: 1.2;
    color: #d4d4d4;
}

@media (max-width: 1199px) {
    .trusted-by-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .trusted-by-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }
}
/* Trusted by css end */


/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.white-bg {
    background: #fff;
}
.main-section .common-row {
    padding-top: 4vw;
}
.banner-content-quote {
    text-align: center;
    padding: 20px;
}

.quote-title {
    font-size: 26px;
}

.banner-content-quote p {
    text-align: right;
}

/* ABOUT PAGE: TEAM SECTION */

.team-section {
    background: #FAFAFA;
}
.team-section h2.small-section-title {
    text-align: center;
}

/* GRID */
.team-grid {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 32px;
  }

  /* CARD */
  .team-card {
    display: flex;
    flex-direction: column;
    background: transparent;
  }

  /* PHOTO */
  .team-photo {
    width: 100%;
    aspect-ratio: 3 / 3.6;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    background: #d0c8bc;
  }
  .team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
    filter: grayscale(10%);
  }
  .team-card:hover .team-photo img {
    transform: scale(1.03);
  }
  /* Placeholder avatar when no image */
  .team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
  }

  /* INFO */
  .team-info { flex: 1; display: flex; flex-direction: column; }

  .team-name {
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.2;
  }

  .team-role {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 16px;
    font-weight: 500;
  }

  .team-bullets {
    list-style: none;
    margin: 0 0 10px;
    flex: 1;
    padding: 0;
  }
  .team-bullets li {
    font-size:0.9rem;
    color: #444;
    line-height: 1.65;
    padding-left: 12px;
    position: relative;
    margin-bottom: 3px;
  }
  .team-bullets li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.75rem;
  }

  .team-edu {
    margin-bottom: 20px;
  }
  .team-edu p {
    font-size:0.9rem;
    color: var(--gray);
    line-height: 1.7;
    font-style: italic;
    margin: 0;
  }

  /* BIO BUTTON */
  .btn-bio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 60px;
    background: var(--dark);
    color: #fff;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.25s, transform 0.2s;
    align-self: flex-start;
    margin-top: auto;
  }
  .btn-bio:hover {
    background: #333;
    transform: scale(1.06);
  }

  @media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  }
  @media (max-width: 600px) {
    .team-grid { grid-template-columns: 1fr; gap: 48px; }
  }


  /* SERVICES PAGE: SERVICES GRID */
  .services-grid {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  /* CARD */
  .service-card {
    display: flex;
    flex-direction: column;
  }

  /* IMAGE */
  .service-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 28px;
    position: relative;
  }
  .service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
  }
  .service-card:hover .service-img img {
    transform: scale(1.04);
  }

  /* TEXT */
  .service-title {
    font-size: clamp(1.6rem, 2.2vw, 2.1rem);
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.15;
  }

  .service-areas-label {
    font-size:1rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-bottom: 12px;
    display: block;
  }

  .service-list {
    list-style: none;
    padding: 0;
  }
  .service-list li {
    font-size: 1rem;
    color: #333;
    line-height: 1.75;
    padding-left: 16px;
    position: relative;
    margin-bottom: 1px;
  }
  .service-list li::before {
    content: '•';
    position: absolute;
    left: 3px;
    color: #555;
  }

  /* RESPONSIVE */
  @media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 28px; }
    .section:has(.services-grid) {
        padding-top: 0px;
    }
    .top-service-section h1.small-section-title{
        margin-bottom: 0px;
    }
    .top-service-section p{
        margin: 0px;
    }
  }
  @media (max-width: 580px) {
    .services-grid { grid-template-columns: 1fr; gap: 44px; }
  }

  /* CONTACT PAGE */
  .contact-page-section .contact-form-wrap {
    padding: 30px;
    background: #DCDCDC;
    border-radius: 10px;
    margin-top: 50px;
}


/* ==========================================================================
   SHARED: FOOTER
   ========================================================================== */
   footer {
    background: #F8F8F8;
    padding: clamp(36px, 6vw, 72px) 4vw;
}

.footer-inner {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr auto auto;
    gap: clamp(28px, 20vw, 190px);
    align-items: start;
}

.footer-logo img {
    width: clamp(200px, 20vw, 356px);
    height: auto;
    display: block;
}

.footer-tagline {
    margin-top: 8px;
    font-size: calc((1.2 - 1) * 1.2vw + 1rem);
    line-height: 1.25;
    color: #1f1f1f;
}

.footer-email {
    margin-top: 10px;
    font-size: calc((1.2 - 1) * 1.2vw + 1rem);
    color: #1f1f1f;
}

.footer-col h4 {
    margin: 0 0 10px;
    font-size: calc((1.2 - 1) * 1.2vw + 1rem);
    font-weight: 600;
    color: #111;
}

.footer-col a {
    display: block;
    margin: 8px 0;
    font-size: calc((1.1 - 1) * 1.2vw + 1rem);
    color: #111;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 767px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-logo img {
        width: clamp(140px, 34vw, 220px);
    }
}
/* Footer css end */

/* ==========================================================================
   CONTACT FORM STATES
   ========================================================================== */

.contact-form-success {
  text-align: center;
  padding: 48px 24px;
}

.contact-success-icon {
  width: 56px;
  height: 56px;
  background: #22c55e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 16px;
}

.contact-form-success h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin: 0 0 8px;
}

.contact-form-success p {
  color: #666;
  font-size: 1rem;
}

.contact-form-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* ==========================================================================
   SURVEY POPUP + FLOATING TEASER
   ========================================================================== */

/* ── Survey Popup ── */
.survey-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.survey-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.survey-popup {
  background: #fff;
  border-radius: 12px;
  max-width: 720px;
  width: 90%;
  display: flex;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s;
}

.survey-popup-overlay.active .survey-popup {
  transform: translateY(0);
}

.survey-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1;
  color: #666;
  transition: color 0.2s;
}

.survey-popup-close:hover {
  color: #000;
}

.survey-popup-content {
  flex: 1;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.survey-popup-content img {
  width: 120px;
  margin-bottom: 16px;
}

.survey-popup-content h2 {
  font-size: 1.75rem;
  line-height: 1.3;
  color: var(--dark);
  margin: 0 0 12px;
}

.survey-popup-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 24px;
}

.survey-popup-cta {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
  text-align: center;
}

.survey-popup-cta:hover {
  background: #1a1d21;
}

.survey-popup-image {
  width: 280px;
  flex-shrink: 0;
}

.survey-popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Teaser */
.survey-teaser {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: #dcdcdc;
  color: #000;
  padding: 1em 3em;
  border-radius: 100em;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  z-index: 9996;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  white-space: nowrap;
}

.survey-teaser.visible {
  transform: translateX(-50%) translateY(0);
}

/* Shift teaser up when cookie banner is visible */
.cookie-consent-banner ~ .survey-teaser.visible {
  bottom: 80px;
}

.survey-teaser:hover {
  background-color: #dcdcdcad;
}

/* Mobile */
@media (max-width: 600px) {
  .survey-popup {
    flex-direction: column;
    max-width: 95%;
  }
  .survey-popup-image {
    display: none;
  }
  .survey-popup-content {
    padding: 32px 24px;
  }
  .survey-popup-content h2 {
    font-size: 1.4rem;
  }
}

/* ── Survey Modal View (embedded survey inside popup overlay) ── */
.survey-modal-view {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.survey-modal-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 90vh;
  padding: 0 24px;
}

.survey-modal-inner .survey-card-viewport {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.survey-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #666;
  transition: color 0.2s;
}

.survey-modal-close:hover {
  color: #000;
}

@media (max-width: 600px) {
  .survey-modal-view {
    width: 95%;
    max-height: 95vh;
    border-radius: 12px;
  }
  .survey-modal-inner {
    padding: 0 16px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .survey-popup-overlay,
  .survey-popup,
  .survey-teaser {
    transition: none;
  }
}

/* ==========================================================================
   SURVEY PAGE — Typeform-style full-screen assessment
   ========================================================================== */

.survey-page {
  background: #fff;
  overflow: hidden;
}

.survey-container {
  max-width: 640px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}

.survey-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.survey-logo img {
  height: 32px;
}

.survey-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.survey-restart-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #999;
  transition: color 0.2s;
}

.survey-restart-btn:hover {
  color: #000;
}

.survey-close {
  color: #666;
  transition: color 0.2s;
}

.survey-close:hover {
  color: #000;
}

.survey-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
}

.survey-progress {
  flex: 1;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.survey-progress-fill {
  height: 100%;
  background: var(--dark);
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0;
}

.survey-progress-label {
  font-size: 0.8rem;
  color: #999;
  white-space: nowrap;
}

.survey-card-viewport {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 0;
  overflow-y: auto;
  min-height: 0;
}

.survey-card {
  width: 100%;
  max-width: 560px;
}

.survey-question {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 8px;
  line-height: 1.3;
}

.survey-sublabel {
  font-size: 0.9rem;
  color: #888;
  margin: 0 0 24px;
}

.survey-validation {
  color: #dc2626;
  font-size: 0.85rem;
  min-height: 20px;
  margin-bottom: 8px;
}

.survey-review-validation {
  color: #dc2626;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* ── Survey: Text Input ── */
.survey-input-wrap {
  margin-top: 16px;
}

.survey-input {
  width: 100%;
  padding: 16px 0;
  font-size: 1.25rem;
  border: none;
  border-bottom: 2px solid #e5e7eb;
  outline: none;
  background: transparent;
  color: var(--dark);
  transition: border-color 0.2s;
  font-family: inherit;
}

.survey-input:focus {
  border-bottom-color: var(--dark);
}

.survey-input::placeholder {
  color: #ccc;
}

/* ── Survey: Radio & Checkbox Options ── */
.survey-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.survey-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  color: var(--dark);
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
  min-height: 48px;
  font-family: inherit;
}

.survey-option:hover {
  border-color: #999;
}

.survey-option.selected {
  border-color: var(--dark);
  background: #f0f2f5;
}

.survey-option:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 2px;
}

/* Checkbox icon */
.survey-check-icon {
  width: 22px;
  height: 22px;
  border: 2px solid #ccc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.survey-option-check.selected .survey-check-icon {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

/* ── Survey: Navigation ── */
.survey-nav {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
}

.survey-nav-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
  font-family: inherit;
}

.survey-nav-back {
  background: transparent;
  color: #666;
}

.survey-nav-back:hover {
  background: #f5f5f5;
}

.survey-nav-next {
  background: var(--dark);
  color: #fff;
}

.survey-nav-next:hover {
  background: #1a1d21;
}

.survey-step-label {
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
  padding-bottom: 24px;
}

/* ── Survey: Review Screen ── */
.survey-review-table {
  margin: 24px 0;
  max-height: 50vh;
  overflow-y: auto;
}

.survey-review-row {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
}

.survey-review-label {
  flex: 1;
  font-size: 0.85rem;
  color: #666;
}

.survey-review-value {
  flex: 1;
  font-size: 0.9rem;
  color: var(--dark);
  font-weight: 500;
}

.survey-review-edit {
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  font-family: inherit;
}

.survey-review-edit:hover {
  text-decoration: underline;
}

/* ── Survey: Consent ── */
.survey-consent {
  margin: 24px 0;
}

.survey-consent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #555;
  cursor: pointer;
}

.survey-consent-item input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.survey-required {
  color: #dc2626;
}

/* ── Survey: Submit Button ── */
.survey-submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.survey-submit-btn:hover {
  background: #1a1d21;
}

.survey-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Survey: Confirmation ── */
.survey-confirmation {
  text-align: center;
  padding: 40px 0;
}

.survey-confirm-icon {
  width: 64px;
  height: 64px;
  background: #22c55e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
}

.survey-confirmation h2 {
  font-size: 2rem;
  margin: 0 0 16px;
  color: var(--dark);
}

.survey-confirmation p {
  color: #666;
  margin: 0 0 12px;
  font-size: 1rem;
}

.survey-confirmation .survey-popup-cta {
  margin-top: 24px;
}

/* ── Survey: Contact Card ── */
.survey-contact-card .survey-input-wrap {
  margin-bottom: 4px;
}

.survey-contact-card .survey-consent {
  margin-top: 20px;
}

/* ── Survey: Encouragement Micro-copy ── */
.survey-encouragement {
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  padding: 4px 0 0;
  min-height: 20px;
  transition: opacity 0.3s;
}

/* ── Survey: Mobile ── */
@media (max-width: 600px) {
  .survey-container {
    padding: 0 16px;
  }
  .survey-question {
    font-size: 1.25rem;
  }
  .survey-option {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
  .survey-input {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9997;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
}

.cookie-consent-banner p {
  margin: 0;
  flex: 1;
}

.cookie-banner-expanded {
  flex-direction: column;
  align-items: stretch;
}

.cookie-banner-expanded .cookie-preferences-panel {
  padding-top: 0;
}

.cookie-consent-banner a {
  color: #c4a265;
  text-decoration: underline;
}

.cookie-consent-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-consent-accept {
  background: #fff;
  color: var(--dark);
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
}

.cookie-consent-accept:hover {
  background: #e5e7eb;
}

.cookie-consent-decline {
  background: transparent;
  color: #999;
  border: 1px solid #666;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
}

.cookie-consent-decline:hover {
  border-color: #999;
  color: #fff;
}

.cookie-consent-customize {
  background: transparent;
  color: #ccc;
  border: 1px solid #666;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
}

.cookie-consent-customize:hover {
  border-color: #999;
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   COOKIE PREFERENCES PANEL + MODAL
   ========================================================================== */

.cookie-preferences-panel {
  width: 100%;
  padding: 20px 0 0;
}

.cookie-pref-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}

.cookie-pref-desc {
  font-size: 0.85rem;
  color: #bbb;
  margin: 0 0 16px;
  line-height: 1.4;
}

.cookie-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-pref-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.cookie-pref-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.cookie-pref-detail {
  font-size: 0.8rem;
  color: #999;
  line-height: 1.3;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: #555;
  border-radius: 24px;
  transition: background 0.2s;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: #22c55e;
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(20px);
}

.cookie-toggle-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-pref-save {
  margin-top: 16px;
  background: #fff;
  color: var(--dark);
  border: none;
  padding: 8px 24px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
}

.cookie-pref-save:hover {
  background: #e5e7eb;
}

/* Cookie preferences overlay (opened from privacy page) */
.cookie-preferences-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.cookie-preferences-modal {
  background: var(--dark);
  color: #fff;
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.cookie-pref-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #999;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.cookie-pref-close:hover {
  color: #fff;
}
