/* THEME "Norm" — free stand-ins for NORM's licensed fonts:
   Poppins (≈ Euclid Circular B, body) + Libre Caslon Display (≈ Adobe Caslon
   Pro, headings), loaded from Google Fonts. The @import must stay at the very
   top of the file to be valid. Body font + heading rules are near the bottom. */
@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Display&family=Poppins:wght@200;300;400;500;600;700&display=swap');

:root {
    /* ===== source colours — edit these, everything follows ===== */
    --navy-rgb: 38, 34, 30;          /* #26221E — warm near-black (primary dark) */
    --navy-deep-rgb: 28, 25, 22;      /* #1C1916 — slightly deeper */
    --olive-rgb: 156, 163, 142;       /* #9CA38E */
    --accent-rgb: 217, 195, 182;      /* #D9C3B6 */

    /* solid versions, for normal use */
    --navy: rgb(var(--navy-rgb));
    --navy-deep: rgb(var(--navy-deep-rgb));
    --olive: rgb(var(--olive-rgb));
    --accent: rgb(var(--accent-rgb));

    /* navy tint scale — 5 steps, all follow --navy-rgb */
    --navy-10: rgba(var(--navy-rgb), 0.10);
    --navy-15: rgba(var(--navy-rgb), 0.15);
    --navy-20: rgba(var(--navy-rgb), 0.20);
    --navy-40: rgba(var(--navy-rgb), 0.40);
    --navy-75: rgba(var(--navy-rgb), 0.75);

    /* deep-navy tints */
    --navy-deep-30: rgba(var(--navy-deep-rgb), 0.30);
    --navy-deep-70: rgba(var(--navy-deep-rgb), 0.70);

    /* ===== flat colours ===== */
    --surface: #F3EFE4;   /* nav bar + page background — kept identical */
    --paper: #EFE9DD;
    --paper2: #F5F1E8;
    --deep-olive: #5B574E;
    --light-olive: #D8CFBF;
    --light-navy: #CFC6B6;
    --brand: #9C6B4F;
    --dark: #1A1714;
}

body {
    margin: 0;
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 400;
    background: var(--surface);
}

img {
    max-inline-size: 100%;
    block-size: auto;
    display: block;
}

header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 10;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

header.hidden {
    transform: none;
    opacity: 1;
    pointer-events: auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--surface);
    backdrop-filter: none;
    border-radius: 0;
    color: var(--navy);
    box-sizing: border-box;
    max-inline-size: none;
    margin: 0;
}

nav > ul {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    font-size: 0.75rem;
    font-weight: 500;
    list-style: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding-inline-start: 0;
}

nav a {
    text-decoration: none;
    color: inherit;
}

nav ul a {
    opacity: 0.6;            
    transition: opacity 0.2s;
    font-size: 0.75rem;        
    font-weight: 500;    
}

nav ul a:hover,
nav ul a[aria-current="page"] {
    opacity: 1;
}

.has-dropdown {
      position: relative;
  }

  .nav-dropdown-toggle {
      display: flex;
      align-items: center;
      gap: 0.1rem;
      background: none;
      border: none;
      padding: 0;
      color: inherit;
      font: inherit;
      font-size: 0.75rem;
      font-weight: 500;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      opacity: 0.6;
      cursor: pointer;
      transition: opacity 0.2s;
  }

  .nav-dropdown-toggle:hover,
  .nav-dropdown-toggle[aria-expanded="true"] {
      opacity: 1;
  }

  .chevron {
      transition: transform 0.2s ease;
  }

  .nav-dropdown-toggle[aria-expanded="true"] .chevron {
      transform: rotate(180deg);
  }

  .nav-dropdown {
      position: absolute;
      inset-block-start: calc(100% + 0.75rem);
      inset-inline-start: 50%;
      transform: translateX(-50%);
      min-inline-size: 15rem;
      display: none;
      flex-direction: column;
      list-style: none;
      margin: 0;
      padding: 0.6rem;
      background: var(--surface);
      border-radius: 0.75rem;
  
    border: 1px solid rgba(38, 34, 30, 0.12);
}

  .nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown {
      display: flex;
  }

  .nav-dropdown a {
      display: block;
      padding: 0.65rem 0.9rem;
      border-radius: 0.6rem;
      font-size: 0.75rem;
      opacity: 0.7;
      transition: opacity 0.2s, background 0.2s;
  }

  .nav-dropdown a:hover {
      opacity: 1;
  }

.hero {
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
      min-block-size: 100vh;
      margin: 0;
      padding-block: 9rem 2rem;
      padding-inline-start: max(2rem, calc((100% - 90rem) / 2));
      padding-inline-end: max(2rem, calc((100% - 90rem) / 2));
  }

.hero-main {
      flex: 1;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 3rem;
  }

.hero-photo {
      flex: 1.2;
  }

  .hero-photo img {
      inline-size: 100%;
      aspect-ratio: 18 / 10;
      object-fit: cover;
      display: block;
      border-radius: 1.5rem;
  }

.hero-text {
    flex: 1;
    color: var(--navy);
}

.hero-heading {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    color: var(--navy);
    padding-block-end: 1rem;                             
    border-block-end: 1px solid var(--navy-20);  
}

.hero-body {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 1rem;
    color: var(--navy);
    opacity: 0.85;
}

.hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      margin-block-start: 2.5rem;
  }

  .hero-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.6rem 1.1rem;
      border-radius: 0.4rem;
      font-size: 0.6rem;
      font-weight: 500;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      text-decoration: none;
      white-space: nowrap;
      transition: background 0.2s ease, color 0.2s ease, border-color
  0.2s ease;
  }

  /* filled (primary) — Request Appointment */
  .hero-btn--solid {
      background: var(--navy);
      color: white;
      border: 1px solid var(--navy);
  }
  .hero-btn--solid:hover {
      background: #100E0C;
  }

.hero-btn--outline {
      background: transparent;
      color: var(--navy);
      border: 1px solid var(--navy-40);
}

.hero-btn--outline:hover {
      border-color: var(--navy);
}

.hero-logos {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap; 
      gap: 2.5rem;
      margin-block-start: 1rem;
      padding-block-start: 3rem;
      border-block-start: 1px solid var(--navy-15);
}
  
.hero-logos img {
      block-size: 1.75rem;    /* uniform logo height */
      inline-size: auto;
      opacity: 0.8;
}

@media (max-width: 48rem) {
    /* Weave the photo into the text column. Dissolve .hero-text with
       display:contents so its children (eyebrow, heading, body, actions)
       become direct flex items of .hero-main alongside the photo; `order`
       then drops the photo between the heading and the body paragraph.
       Spacing is driven by the 1.5rem column gap, so the desktop margins on
       these items are reset to 0 here. */
    .hero-main {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .hero-text {
        display: contents;
    }

    .hero .eyebrow { margin-block-end: 0; }
    .hero-heading  { margin-block-end: 0; }   /* keeps its divider (padding + border) */

    .hero-photo {
        flex: 0 0 auto;
        order: 1;                             /* between heading (order 0) and body (order 2) */
        margin: 2rem 0 0;                     /* extra space below the heading divider */
    }

    .hero-body {
        order: 2;
        margin-block-end: 0;
    }

    /* two compact buttons sharing one row instead of stacking */
    .hero-actions {
        order: 3;
        margin-block: auto;          /* centre the buttons in the leftover space below the body */
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .hero-btn {
        flex: 1 1 0;                          /* split the row 50/50... */
        min-inline-size: 0;                   /* ...and allow shrinking so they never widen the page */
        justify-content: center;
        padding: 0.5rem 0.4rem;
        font-size: 0.5rem;
        letter-spacing: 0.04em;
    }

    /* insurers: 4 per row, shrinking to fit */
    .hero-logos {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        justify-items: center;
        align-items: center;
        gap: 1.75rem 1rem;
        margin-block-start: 0rem;
        padding-block-start: 2rem;
    }

    .hero-logos img {
        block-size: auto;
        inline-size: auto;
        max-inline-size: 100%;
        max-block-size: 1.5rem;
    }
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand img {
    block-size: 3.5rem;
    inline-size: auto;
}

.cta {
    color: var(--navy);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    opacity: 0.6;            /* match the unselected nav links */
    transition: opacity 0.2s;
}

.cta:hover {
    opacity: 1;
}

.menu-toggle {
    display: none;
    position: relative;      
    background: none;
    border: 1px solid white;
    border-radius: 0.5rem;
    inline-size: 2.5rem;
    block-size: 2.5rem;
    cursor: pointer;
    color: var(--navy);
    padding: 0;
    transition: color 350ms ease, border-color 350ms ease;
    border-color: rgba(38, 34, 30, 0.4);
}

.thumb {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.testimonials {
    padding: 3.5rem 0rem 1rem 0rem;
    background: #F7F3EA;
    color: var(--navy);           
    border-block: 1px solid var(--paper); 
}

.testimonials-header {
    max-inline-size: min(90rem, calc(100% - 4rem));
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    padding-block-end: 2rem;
    border-block-end: 1px solid var(--navy-40);
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0 0 1rem;
}

.testimonials-heading {
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
}

.testimonials-controls {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.carousel-arrow {
    display: grid;
    place-items: center;
    inline-size: 4rem;
    block-size: 2.75rem;
    border: 1px solid var(--navy-75);
    border-radius: 999px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 2.3rem;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, background-image 0.2s;
    padding: 0;
}

.carousel-arrow[data-direction="prev"] {
    background-image: url('images/arrow-back-dark.svg');
}

.carousel-arrow[data-direction="next"] {
    background-image: url('images/arrow-forward-dark.svg');
}

.carousel-arrow:hover {
    background-color: var(--navy);
    border-color: var(--navy);
}

.carousel-arrow[data-direction="prev"]:hover {
    background-image: url('images/arrow-back-light.svg');
}

.carousel-arrow[data-direction="next"]:hover {
    background-image: url('images/arrow-forward-light.svg');
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.testimonials-track {
    padding-block-start: 1.5rem;
    padding-block-end: 1.5rem;
    padding-inline: max(2rem, calc((100% - 90rem) / 2));
    scroll-padding-inline-start: max(2rem, calc((100% - 90rem) / 2));
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
    display: none;                     
}

.testimonial-card {
    flex: 0 0 22rem;
    scroll-snap-align: start;    
    background: var(--paper);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-block-size: 22rem;
}

.testimonial-quote {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 200;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--navy-deep-70);
    margin: 0;
    flex: 1;
    padding-block-end: 1.5rem;
    border-block-end: 1px solid var(--navy-deep-30);
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-source {
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--navy-deep);
    margin: 0;
}

.testimonial-date {
    font-weight: 400;
    font-size: 0.8125rem;
    color: var(--navy-deep-70);
}

.testimonial-card[data-variant="blue"]   { background: #E9E2D4; }

.testimonial-card[data-variant="cream"]  { background: #FBFAF7; }

.testimonial-card[data-variant="navy"]   { background: #DCD3C2; }

.testimonials-progress {
    max-inline-size: 90rem;
    margin: 2rem auto 0;
    margin-inline: max(2rem, calc((100% - 90rem) / 2));
    block-size: 2px;
    background: var(--navy-10);
    position: relative;
    overflow: hidden;
}

.testimonials-progress-fill {
    block-size: 100%;
    background: var(--navy);                /* brand navy */
    inline-size: 20%;                    /* will be set by JS — placeholder */
    transition: inline-size 200ms ease;  /* smooth movement */
}

.services {
    background: var(--surface);
    padding: 3.5rem 0;
    color: var(--navy);
}

.service-row-icon {
      justify-self: end;
      align-self: center;
      inline-size: 3.5rem;     
      block-size: 3.5rem;
      object-fit: contain;
      transition: transform 0.25s ease;
  }

.service-row:hover .service-row-icon {
      transform: translateX(4px);
  }

.service-row:hover .service-row-name {
      color: var(--brand);
  }

body.services-page .services {
    padding-block-start: 10rem;
}

body.patient-information-page .patient-info {
    padding-block-start: 10rem;
}

.services-header {
    text-align: center;
    margin-block-end: 2rem;
}

.services-heading {
    display: inline-block;
    font-size: clamp(1.1rem, 4vw, 2rem); 
    font-weight: 400; 
    margin: 0;
    padding-block-end: 0.75rem;
    border-block-end: 3px solid var(--navy);
    text-transform: uppercase;                
    letter-spacing: 0.08em;                   
    border-block-end-width: 1px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    text-align: center;
}

.service-card-image {
    inline-size: 100%;
    block-size: 100%;
    object-fit: contain;
    padding: 1.75rem;
    box-sizing: border-box;
    transition: transform 0.5s ease;
}

.service-card-image-wrap {
    inline-size: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    margin-block-end: 1.25rem;
    background: #fff;
}

.service-card-title {
    font-size: 0.875rem;             
    font-weight: 500;                       
    margin: 0;
    padding-block-end: 0.25rem;
    border-block-end: 2px solid transparent;
    transition: border-color 0.2s;
    text-transform: uppercase;              
    letter-spacing: 0.08em;                   
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-inline-size: 70vw;
    margin-inline: auto;
    background: var(--brand);
    padding: 3rem 3rem 1.5rem 3rem;
    border-radius: 1rem;
}

.services-rows {
    max-inline-size: 90rem;  
    margin-inline: auto;
    padding-inline: 2rem;
}

.services-head,
.service-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 4rem;
    gap: 2.5rem;
}

.services-head {
    align-items: center;
    padding-block-end: 2rem;
    border-block-end: 1px solid var(--navy);
}

.services-head-text {
      grid-column: 1 / -1;
  }

.service-row {
    align-items: start;
    padding-block: 1.25rem;
    border-block-end: 1px solid var(--navy);  
    text-decoration: none;
    color: var(--navy);
}

.service-row-name {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--navy);
}

.service-row-desc {
    margin: 0;
    max-inline-size: 38rem;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 1rem;
    color: var(--navy);
    opacity: 0.85;
}

/* responsive: text (name + description) stacks on the left, icon centred on the right */
@media (width < 760px) {
    .services-head,
    .service-row {
        grid-template-columns: 1fr auto;
        gap: 0.75rem 1.5rem;
    }
    .service-row        { grid-template-rows: auto auto; }
    .service-row-name   { grid-column: 1; grid-row: 1; }
    .service-row-desc   { grid-column: 1; grid-row: 2; }
    .service-row-icon   { grid-column: 2; grid-row: 1 / -1; }   /* right column, spans both text rows */
}

.service-card:hover .service-card-image,
.service-card:focus-visible .service-card-image {
    transform: scale(1.08);
}

.service-card:hover .service-card-title,
.service-card:focus-visible .service-card-title {
    border-block-end-color: var(--navy);
}

.patient-info {
      background: #F7F3EA;
      color: var(--navy);
      padding: 3.5rem 2rem;
  }

.patient-head {
    padding-block-end: 2.5rem;
}

  .patient-info-inner {
      max-inline-size: 90rem;
      margin-inline: auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: start;
  }

  .patient-info-image {
      border-radius: 1rem;
      overflow: hidden;
      aspect-ratio: 4 / 3;
  }

  .patient-info-image img {
      inline-size: 100%;
      block-size: 100%;
      object-fit: cover;
  }

  .patient-info-links {
      list-style: none;
      margin: 7rem 0 0;
      padding: 0;
      border-block-start: 1px solid rgba(var(--navy-rgb), 0.85);
  }

  .patient-info-links a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
      padding: 1.05rem 0;
      border-block-end: 1px solid rgba(var(--navy-rgb), 0.85);
      font-size: 0.75rem;      
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--navy);
      text-decoration: none;
      transition: opacity 0.2s, padding-inline-start 0.2s;
  }

  .patient-info-links a:hover {
      opacity: 0.7;
      padding-inline-start: 0.5rem; 
  }

  .patient-info-arrow {
      display: grid;
      place-items: center;
      inline-size: 2.5rem;
      block-size: 2.5rem;
      border: 1px solid rgba(var(--navy-rgb), 0.85);
      border-radius: 999px;
      flex-shrink: 0;
      font-size: 1.1rem;
  }

  /* stack on smaller screens */
  @media (width < 800px) {
      .patient-info-inner {
          grid-template-columns: 1fr;
          gap: 2.5rem;
      }

      .patient-info-links {
          margin-block-start: 0;
      }
  }

.site-footer {
    background: var(--surface);
    color: rgba(38, 34, 30, 0.65);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-inline-size: 90rem;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-block-end: 1.5rem;
}

.footer-brand {
    min-inline-size: 0;
}

.footer-logo {
    display: inline-block;
    margin-block-end: 1.25rem;
}

.footer-logo img {
    block-size: 3.5rem;
    inline-size: auto;
}

.footer-blurb {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.6;
    margin: 0.5rem 0 0;
    max-inline-size: 30rem;
    color: rgba(38, 34, 30, 0.7);
}

.footer-social {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: flex;
    gap: 1.25rem;
}

.footer-social a {
    display: inline-flex;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.footer-social a:hover {
    opacity: 1;
}

.footer-social img {
    inline-size: 1.4rem;
    block-size: 1.4rem;
    display: block;
    filter: brightness(0);
}

.footer-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
    min-block-size: 2.6em;   /* reserve 2 lines so 1-line headers line up with wrapped ones */
    color: var(--navy);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    /* no gap here — the 2.6em min-height on each link provides the spacing on
       wider screens; the gap is only needed on phone (see width < 500px) where
       links wrap to 2 lines and fill that height. */
}

.footer-links a {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.3;
    min-block-size: 2.6em;   /* = 2 lines, so 1-line links occupy the same height → rows align across columns */
    color: var(--navy);
    opacity: 0.55;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-icon {
    inline-size: 1.25rem;
    block-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    margin-block-start: 2px;
}

.footer-bottom {
    max-inline-size: 90rem;
    margin: 0 auto;
    padding-block-start: 1.5rem;
    border-block-start: 1px solid rgba(38, 34, 30, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.75rem;
    color: rgba(38, 34, 30, 0.6);
}

/* two stacked rows; each spreads its ends apart: privacy↔cookie, then copyright↔credit */
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-row a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-bottom-row a:hover {
    opacity: 0.6;
}

a.footer-brand-credit {
    color: var(--navy);
    font-weight: 500;
}

.footer-copy {
    overflow-wrap: anywhere;
}

@keyframes backdropIn {
    from { background: rgba(0, 0, 0, 0); backdrop-filter: blur(0px); }
    to   { background: var(--surface); backdrop-filter: blur(20px); }
}

@keyframes contentIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes contentOut { from { opacity: 1; } to { opacity: 0; } }

.about-hero {
    background: var(--surface);
    color: var(--navy);
    padding: 9rem 2rem 1rem;
}

.about-hero-photo {
      float: right;
      inline-size: 100%;
      max-inline-size: 40rem;
      block-size: auto;
      margin: 0.5rem 0 1.5rem 2.5rem;
      border-radius: 1rem;
  }

.surgeon-headshot {
      float: right;
      inline-size: 35%;
      max-inline-size: 20rem;
      block-size: auto;
      margin: 0.5rem 0 1.5rem 2.5rem;
      border-radius: 1rem;
  }

.about-hero-content {
    max-inline-size: 90rem;
    margin-inline: auto;
}

.about-hero-title {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--navy);
    line-height: 1.2;
    margin-block-end: 1rem;
}

.about-hero-content h2.about-hero-title {
    margin-block-start: 3rem;
}

.about-hero-lead,
.about-hero-body {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 300;
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0 0 1rem;
    opacity: 0.7;
}

.page-main .testimonials-heading {
      padding-block-end: 1rem;
      border-block-end: 1px solid var(--navy-20);
      inline-size: fit-content;
  }

.interests-list {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 300;
    font-size: 0.875rem;
    line-height: 1.9;
    color: var(--navy);
    opacity: 0.85;
    columns: 2;
    margin: 0.5rem 0 0;
    padding-inline-start: 1.1rem;
}

/* surgical results page */
.results-subheading {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--navy);
    margin: 2.5rem 0 1rem;
}

.results-table {
    inline-size: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.875rem;
    color: var(--navy);
}

.results-table th,
.results-table td {
    text-align: start;
    padding: 0.75rem 1rem;
    border-block-end: 1px solid var(--navy-20);
    white-space: nowrap;   /* keep columns on one line; the .table-scroll wrapper scrolls */
}

/* table sits inside a .table-scroll wrapper, which provides the bottom spacing */
.table-scroll .results-table {
    margin-block-end: 0;
}

.results-table th {
    font-weight: 600;
    background: var(--paper2);
}

.download-list,
.references-list {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.875rem;
    color: var(--navy);
    line-height: 1.7;
    padding-inline-start: 1.1rem;
    margin: 0 0 1.5rem;
}

.download-list a {
    color: var(--navy);
    font-weight: 500;
}

.about-hero-heading {
    font-size: clamp(1.1rem, 4vw, 2rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--navy);
    margin: 0 0 3rem;
    padding-block-end: 1rem;
    border-block-end: 1px solid var(--navy-20);
    display: block;
    inline-size: fit-content;
    max-inline-size: 100%;
}

.about-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-block-start: 2rem;
}

.about-stats {
    background: #F7F3EA;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-inline-size: 90rem;
    margin-inline: auto;
    text-align: center;
}

.about-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.about-stat-number {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    color: var(--navy);
    margin: 0;
    line-height: 1;
}

.about-stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0;
}

.section-heading {
    display: inline-block;
    font-size: clamp(1.1rem, 4vw, 2rem);
    font-weight: 400;
    margin: 0 0 3rem;
    padding-block-end: 0.75rem;
    border-block-end: 3px solid var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy);
    border-block-end-width: 1px;
}

.specialists {
    background: #F7F3EA;
    padding: 2rem 2rem 5rem;
    text-align: center;
}

.specialists-grid {
    max-inline-size: 90rem;
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.specialist-card {
    flex: 0 0 calc(20% - 1.2rem);
    text-decoration: none;
    color: inherit;
    display: block;
}

.specialist-photo-wrap {
    position: relative;
    inline-size: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-block-end: 0.75rem;
    background: var(--paper);
}

.specialist-name {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0;
    line-height: 1.2;
    display: inline-block;
    padding-block-end: 0.25rem;
    border-block-end: 2px solid transparent;
    transition: border-color 0.2s;
}

.specialist-card:hover .specialist-name {
      border-color: var(--navy);
  }

.specialist-photo-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.specialist-photo-wrap::after {
    content: "";
    position: absolute;
    inset-block-end: 1rem;
    inset-inline-start: 1rem;
    inline-size: 3rem;
    block-size: 3rem;
    border: 1px solid white;
    border-radius: 50%;
    background-image: url('images/arrow-forward-light.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.25rem;
    opacity: 0;
    transform: translateY(0.5rem) scaleY(-1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.specialist-card:hover .specialist-photo-wrap::before,
.specialist-card:focus-visible .specialist-photo-wrap::before,
.specialist-card:hover .specialist-photo-wrap::after,
.specialist-card:focus-visible .specialist-photo-wrap::after {
    opacity: 1;
}

.specialist-card:hover .specialist-photo-wrap::after,
.specialist-card:focus-visible .specialist-photo-wrap::after {
    transform: translateY(0) rotate(0);
}

.review-badge {
      display: inline-flex;
      align-items: stretch;
      gap: 1.25rem;
      padding: 1rem 1.5rem;
      background: #fff;
      border: 1px solid var(--navy-10);
      border-radius: 1rem;
      box-shadow: 0 6px 20px var(--navy-10);
      text-decoration: none;
      color: var(--navy);
      font-family: 'Poppins', Arial, sans-serif;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .review-badge:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 30px var(--navy-15);
  }

  .review-badge-score {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      inline-size: 2.75rem;
  }

  .review-badge-out {
      font-size: 0.85rem;
      font-weight: 500;
      opacity: 0.55;
  }

  .review-badge-body {
      display: flex;
      justify-content: center;
      flex-direction: column;
      gap: 0.3rem;
      padding-inline-start: 1.25rem;
      border-inline-start: 1px solid var(--navy-15);   /* 
  divider */
  }

  .review-badge-logo {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      box-sizing: border-box;
      inline-size: 9.5rem;        /* fixed logo column so both badges match */
      padding-inline-start: 1.1rem;
      border-inline-start: 1px solid var(--navy-15);
  }

  .review-badge-logo img {
      block-size: auto;
      inline-size: auto;
      max-block-size: 1.7rem;     /* caps height */
      max-inline-size: 100%;      /* fit inside the fixed logo column */
  }

  .review-badge-stars {
      color: #f5a623;
      font-size: 1.15rem;
      letter-spacing: 3px;
  }

  .review-badge-meta {
      font-size: 0.8rem;
      opacity: 0.75;
  }

  .review-badge-brand {
      padding-inline-start: 1.25rem;
      font-weight: 600;
      color: #00b3a4;            /* Doctify teal */
      white-space: nowrap;
  }

  .review-badge-arrow {
      display: inline-block;
      transition: transform 0.2s ease;
  }

  .review-badge:hover .review-badge-arrow {
      transform: translateX(4px);
  }

.reviews-strip {
      padding: 2rem 2rem;
  }

.reviews-strip-inner {
      max-inline-size: 90rem;
      margin-inline: auto;
  }
  
  .reviews-strip-inner .eyebrow {
      margin: 0 0 1.5rem;        /* eyebrow stays top-left */
  }

  .review-badges {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;   /* centre the two badges as a row */
      align-items: stretch;      /* equal height */
      gap: 1.5rem;
  }

  /* phones: let badges fill the width so there's a gap either side */
  @media (max-width: 30rem) {
      .reviews-strip {
          padding-inline: 1.25rem;
      }

      .review-badge {
          inline-size: 100%;
          box-sizing: border-box;
          gap: 0.6rem;
          padding: 0.85rem;
      }

      .review-badge-score {
          inline-size: 2.25rem;
      }

      .review-badge-body {
          flex: 1;
          min-inline-size: 0;
          padding-inline-start: 0.75rem;
      }

      .review-badge-logo {
          inline-size: 5.5rem;
          padding-inline-start: 0.75rem;
      }

      .review-badge-stars {
          font-size: 0.9rem;
          letter-spacing: 2px;
      }

      .review-badge-meta {
          font-size: 0.72rem;
      }
  }

.faq-item {
    border-block-end: 1px solid rgba(var(--navy-rgb), 0.18);
}

.faq-question {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    cursor: pointer;
    padding-block: 1.6rem;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 1.9vw, 1.6rem);
    line-height: 1.3;
    color: var(--navy);
    transition: opacity 0.2s;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    content: "";
}

.faq-question:hover {
    opacity: 0.7;
}

/* +/- toggle pill on the right */
.faq-question::after {
    content: "";
    flex-shrink: 0;
    inline-size: 2.85rem;
    block-size: 2.3rem;
    border-radius: 999px;
    border: 1px solid var(--navy);
    background-color: var(--navy);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.95rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
    transition: background-color 0.2s;
}

.faq-item[open] .faq-question::after {
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2326221E' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}

.faq-answer {
    padding-block: 0 1.85rem;
    max-inline-size: 60rem;
}

.faq-answer p {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--navy);
    margin: 0 0 1rem;
}

.faq-answer p:last-child {
    margin: 0;
}

.faq-answer a {
    color: var(--brand);
    word-break: break-word;
}

@media (width < 950px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .specialist-card {
        flex-basis: calc(33.333% - 1rem);
    }
}

@media (width < 600px) {
    .specialist-card {
        flex-basis: calc(50% - 0.75rem);
    }
}

@media (width < 1000px) {
    nav.is-open .has-dropdown {
        display: flex;
        flex-direction: column;
    }

    nav.is-open .nav-dropdown-toggle {
        display: flex;
        align-items: center;
        gap: 0.1rem;
        inline-size: 100%;
        padding: 1rem 0;
        font-size: 0.75rem;
        opacity: 0.6;
    }

    nav.is-open .nav-dropdown {
        position: static;
        transform: none;
        min-inline-size: 0;
        background: none;
        backdrop-filter: none;
        border-radius: 0;
        border: none;                 /* no box around the dropdown in the mobile menu */
        padding: 0 0 0.75rem 1.5rem;
    }

    nav.is-open .nav-dropdown a {
        padding: 0.6rem 0;
        font-size: 0.7rem;
        opacity: 0.6;
    }

    nav.is-open > ul,
    nav.is-open .cta {
        display: flex;
    }

    nav ul,
    nav .cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle span {
        position: absolute;
        inset-inline-start: 50%;
        inset-block-start: 50%;
        inline-size: 1.1rem;         
        block-size: 2px;
        background: currentColor;
        border-radius: 2px;
        transition: transform 300ms ease, opacity 200ms ease;
    }

    .menu-toggle span:nth-child(1) {
        transform: translate(-50%, -8px);    
    }

    .menu-toggle span:nth-child(2) {
        transform: translate(-50%, -50%);    
    }

    .menu-toggle span:nth-child(3) {
        transform: translate(-50%, 6px);    
    }

    nav.is-open .menu-toggle span:nth-child(1) {
        transform: translate(-50%, -50%) rotate(45deg);  
    }

    nav.is-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    nav.is-open .menu-toggle span:nth-child(3) {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    
    nav.is-open > ul {
        grid-area: links;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        align-self: center;
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 0;
    }

    nav.is-open > ul > li {
        border-block-end: 1px solid rgba(38, 34, 30, 0.15);
    }

    nav.is-open > ul > li:first-child {
        border-block-start: 1px solid rgba(38, 34, 30, 0.15);
    }

    nav.is-open {
        position: fixed;
        inset: 0;
        z-index: 10;
        background: var(--surface);
        backdrop-filter: blur(20px);
        color: var(--navy);
        padding: 1rem 2rem 2.5rem;   /* top/sides match the closed nav so logo + toggle don't shift */
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto 1fr auto;
        grid-template-areas:
            "brand close"
            "links links"
            "cta   cta";
        gap: 2rem;
        animation: backdropIn 350ms ease-out;
        border-radius: 0;
        max-inline-size: none;
        margin: 0;
    }

    nav.is-open .brand        { grid-area: brand; }
    nav.is-open .menu-toggle  { grid-area: close; justify-self: end; }

    nav.is-open .cta {
        grid-area: cta;
        justify-content: center;
        padding: 1.25rem;
        font-size: 0.9rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    nav.is-open ul a {
        display: flex;
        align-items: center;
        padding: 1rem 0;
        color: var(--navy);
        opacity: 0.6;
        font-size: 0.75rem;      
        font-weight: 500;
        text-transform: uppercase;     
        letter-spacing: 0.05em;          
    }   

    nav.is-open ul a:hover,
    nav.is-open ul a:focus-visible,
    nav.is-open ul a[aria-current="page"] {
          opacity: 1;
      }

    nav.is-open .nav-dropdown-toggle:hover,
    nav.is-open .nav-dropdown-toggle:focus-visible,
    nav.is-open .nav-dropdown-toggle[aria-expanded="true"] {
          opacity: 1;
      }

    nav.is-open .menu-toggle {
        grid-area: close;
        justify-self: end;
        border-color: rgba(38, 34, 30, 0.4);   
        color: var(--navy);                             
    }

    .testimonial-card {
    flex: 0 0 14rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* Stacked footer: dissolve the brand wrapper with display:contents so its
       children (logo, blurb, social icons) become direct grid items. The logo
       and blurb stay on top as full-width rows; the social icons are pushed
       BELOW the link columns with `order`. Vertical rhythm now comes from the
       2rem grid row-gap, so the margins that spaced these in the desktop
       block-flow are reset to 0. */
    .footer-brand {
        display: contents;
    }

    .footer-logo,
    .footer-blurb,
    .footer-social {
        grid-column: 1 / -1;   /* full-width rows spanning all three link columns */
        margin: 0;
    }

    .footer-social {
        order: 1;              /* render after the link columns (default order 0) */
    }
}

@media (width < 700px) {

}

@media (width < 500px) {

    .testimonials-controls {
        display: none;
    }

    .patient-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .patient-info-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        padding: 1.5rem 1.25rem;
    }

    .hero {
        margin: 0;
        gap: 1.5rem;
        padding-block-start: 7rem;
    }

    .about-hero-photo {
          float: none;
          inline-size: 100%;
          max-inline-size: none;
          margin: 0 0 1.5rem;
      }

      /* About-us mission hero: on phone, lift the title + heading above the
         team photo (desktop keeps its floated layout, so this is scoped to the
         modifier class). These are all siblings, so flex + order reorders them
         directly. Negative orders pull title/heading ahead; photo, lead and
         body keep the default 0 → final order: title, heading, photo, lead, body. */
      .about-hero-content--heading-first {
          display: flex;
          flex-direction: column;
          padding: 0;
      }
      .about-hero-content--heading-first .about-hero-title   { order: -2; }
      .about-hero-content--heading-first .about-hero-heading { order: -1; }

      .footer-links {
          gap: 0.8rem;   /* phone only — links wrap to 2 lines and need separating */
      }

}

/* shared scaffold for stub/coming-soon pages */
.page-main {
    max-inline-size: 90rem;
    margin: 9rem auto 4rem;
    padding-inline: 2rem;
    min-block-size: 50vh;
    color: var(--navy);
}

.page-heading {
    font-weight: 400;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin: 0 0 1rem;
}

.page-lead {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 300;
    opacity: 0.7;
}

.breadcrumb {
    margin-block-end: 1.5rem;
    padding: 0;               
    background: none;        
    backdrop-filter: none;    
    border-radius: 0;         
    max-inline-size: none;   
    color: var(--navy);      
    display: block;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.8rem;
    color: var(--navy);
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb li:not(:first-child)::before {
    content: "\203A";
    opacity: 0.5;
}

.breadcrumb a {
    color: var(--navy);
    text-decoration: none;
    opacity: 0.65;
    transition: opacity 0.2s;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb [aria-current="page"] {
    font-weight: 600;
}

/* ===== Treatments list (service pages) ===== */
.treatments-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-block-start: 1px solid rgba(var(--navy-rgb), 0.85);
}

.treatments-list li {
    padding: 1.05rem 0;
    border-block-end: 1px solid rgba(var(--navy-rgb), 0.85);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--navy);
}

/* links inside the list (e.g. operations) look like the plain rows */
.treatments-list a {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s, padding-inline-start 0.2s;
}

.treatments-list a:hover {
    opacity: 0.7;
    padding-inline-start: 0.5rem;
}

/* ===== Article / leaflet pages ===== */
.article {
    margin-block-start: 1rem;
    color: var(--navy);
}

/* tighten the gap under the heading on treatment article pages */
.patient-head:has(+ .article) {
    padding-block-end: 1rem;
}

.article p,
.article ul,
.article ol {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 1.25rem;
}

.article ul,
.article ol {
    padding-inline-start: 1.25rem;
    display: grid;
    gap: 0.5rem;
    line-height: 1.6;
}

.article h2 {
    font-weight: 500;
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    line-height: 1.25;
    margin: 2.75rem 0 1rem;
}

.article h3 {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 2rem 0 0.75rem;
}

.article a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article strong {
    font-weight: 600;
}

.article-intro {
    font-style: italic;
    opacity: 0.7;
}

.article > :last-child {
    margin-block-end: 0;
}

/* self-assessment table (Eustachian tube page) */
.table-scroll {
    overflow-x: auto;
    margin: 0 0 1.25rem;
}

.etd-table {
    border-collapse: collapse;
    inline-size: 100%;
    min-inline-size: 32rem;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.85rem;
    color: var(--navy);
}

.etd-table th,
.etd-table td {
    border: 1px solid var(--navy-20);
    padding: 0.6rem 0.5rem;
    text-align: center;
}

.etd-table thead th {
    font-weight: 600;
    background: var(--paper2);
}

.etd-table th.etd-q {
    inline-size: 45%;
}

.etd-table tbody th[scope="row"] {
    text-align: start;
    font-weight: 400;
}

/* procedure codes tables */
.codes-table {
    min-inline-size: 24rem;
}

.codes-table thead th,
.codes-table td {
    text-align: start;
}

.codes-table .code-col,
.codes-table tbody th[scope="row"] {
    inline-size: 9rem;
    white-space: nowrap;
    font-weight: 600;
}

/* ===== Locations (clinic tabs + cards) ===== */
.locations-lead {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.7;
    max-inline-size: 42rem;
    margin: 0 0 2rem;
    color: var(--navy);
}

.location-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-block-end: 2.5rem;
}

.location-tab {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--navy);
    background: transparent;
    border: 1px solid rgba(var(--navy-rgb), 0.35);
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.location-tab:hover {
    border-color: var(--navy);
}

.location-tab.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.location-panels {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.location-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #F7F3EB;
    border: 1px solid rgba(var(--navy-rgb), 0.12);
    border-radius: 2rem;
    overflow: hidden;
    color: var(--navy);
}

.location-panels.is-filtered .location-card {
    display: none;
}

.location-panels.is-filtered .location-card.is-active {
    display: grid;
}

.location-card-media img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
}

.location-card-body {
    position: relative;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
}

.location-card-link {
    position: absolute;
    inset-block-start: 2.5rem;
    inset-inline-end: 3.5rem;
    inline-size: 3rem;
    block-size: 3rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--navy-rgb), 0.3);
    border-radius: 999px;
    color: var(--navy);
    transition: background 0.2s, color 0.2s;
}

.location-card-link:hover {
    background: var(--navy);
    color: #fff;
}

.location-card-affil {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--navy);
    opacity: 0.6;
    margin: 0 0 0.75rem;
}

.location-card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    line-height: 1.05;
    margin: 0 0 1.25rem;
    max-inline-size: 80%;
}

.location-card-address {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--navy);
    margin: 0 0 1.5rem;
}

.location-card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-block-start: auto;
    padding-block-start: 1.75rem;
    border-block-start: 1px solid rgba(var(--navy-rgb), 0.15);
}

.location-meta-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--navy);
    opacity: 0.6;
    margin: 0 0 0.75rem;
}

.location-meta-text {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(var(--navy-rgb), 0.85);
    margin: 0;
}

.location-meta-text a {
    color: var(--navy);
    text-decoration: none;
}

.location-meta-text a:hover {
    opacity: 0.7;
}

@media (max-width: 60rem) {
    .location-card,
    .location-card.is-active {
        grid-template-columns: 1fr;
    }

    .location-card-media img {
        block-size: 16rem;
    }

    .location-card-body {
        padding: 2.5rem 1.75rem;
    }

    .location-card-link {
        inset-inline-end: 1.75rem;
        inset-block-start: 2rem;
    }

    .location-card-title {
        max-inline-size: 70%;
    }

    .location-card-meta {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ===== Contact (split: navy aside + paper form) ===== */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-block-size: 100vh;
}

.contact-aside {
    display: flex;
    align-items: center;
    background: #F7F3EB;   /* lighter panel */
    color: var(--navy);
    padding: 4rem 3.5rem;
}

.contact-aside-inner {
    max-inline-size: 28rem;
    margin-inline-start: auto;
}

.contact-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 1.5rem;
    color: var(--navy);
}

.contact-details {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.contact-detail-icon {
    display: inline-flex;
    color: var(--navy);
    opacity: 0.7;
}

.contact-details a {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 300;
    font-size: 0.95rem;   /* phone + email share the lighter aside text style */
    color: var(--navy);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.contact-details a:hover {
    opacity: 1;
}

.contact-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding-block-start: 2rem;
    border-block-start: 1px solid rgba(var(--navy-rgb), 0.2);
}

.contact-meta-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--navy);
    opacity: 0.6;
    margin: 0 0 0.5rem;
}

.contact-meta-text {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--navy);
    opacity: 0.9;
    margin: 0;
}

.contact-form-panel {
    display: flex;
    align-items: center;
    background: var(--surface);   /* match the nav bar */
    padding: 4rem 3.5rem;
}

.contact-form {
    inline-size: 100%;
    max-inline-size: 32rem;
    margin-inline-end: auto;
}

.contact-field {
    margin-block-end: 2.25rem;
}

.contact-field:first-child {
    margin-block-start: 6rem;
}

.contact-field label:not(.file-drop) {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--navy);
    margin-block-end: 0.9rem;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    inline-size: 100%;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--navy);
    background: transparent;
    border: none;
    border-block-end: 1px solid rgba(var(--navy-rgb), 0.3);
    padding: 0 0 0.75rem;
    transition: border-color 0.2s;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    outline: none;
    border-block-end-color: var(--navy);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: rgba(var(--navy-rgb), 0.45);
}

.contact-field textarea {
    resize: vertical;
    min-block-size: 6rem;
    line-height: 1.6;
}

.contact-select {
    appearance: none;
    cursor: pointer;
    padding-inline-end: 1.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2326221E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 1rem;
}

.contact-submit {
    display: flex;
    inline-size: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-block-start: 1rem;
    padding: 0.85rem 2rem;
    background: var(--navy);
    color: #fff;
    border: 1px solid var(--navy);
    border-radius: 0.4rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-submit:hover {
    background: #100E0C;
}

@media (max-width: 60rem) {
    .contact-split {
        grid-template-columns: 1fr;
        min-block-size: 0;
    }

    .contact-aside,
    .contact-form-panel {
        padding: 7rem 1.75rem 3rem;
    }

    .contact-form-panel {
        order: -1;                  /* "What's your title?" form on top on phone */
        align-items: stretch;
    }

    .contact-aside {
        padding-block-start: 3rem;  /* now sits below the form — no fixed-header clearance needed */
    }

    .contact-field:first-child {
        margin-block-start: 0;
    }

    .contact-aside-inner,
    .contact-form {
        max-inline-size: none;
        margin: 0;
    }

    .contact-meta {
        grid-template-columns: 1fr;
    }
}

/* ===== Request appointment (referral forms) ===== */
.referral-lead {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--navy);
    max-inline-size: 46rem;
    margin: 0 0 2rem;
}

.req {
    color: var(--navy);
    font-weight: 600;
}

.referral-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-block-start: 3.5rem;   /* keeps the space the intro line used to occupy */
    margin-block-end: 2.5rem;
}

.referral-tab {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--navy);
    background: transparent;
    border: 1px solid rgba(var(--navy-rgb), 0.35);
    border-radius: 0.4rem;   /* match the submit button */
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.referral-tab:hover {
    border-color: var(--navy);
}

.referral-tab.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.referral-form {
    display: none;
}

.referral-form.is-active {
    display: block;
}

.referral-section {
    border: none;
    margin: 0;
    padding: 0;
}

.referral-section-title {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--navy);
    padding: 2.5rem 0 1.5rem;
    margin-block-end: 0.5rem;
    border-block-start: 1px solid rgba(var(--navy-rgb), 0.15);
}

.referral-section:first-of-type .referral-section-title {
    padding-block-start: 0;
    border-block-start: none;
}

.referral-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2.5rem;
}

.referral-field {
    display: flex;
    flex-direction: column;
}

.referral-field--full {
    grid-column: 1 / -1;
}

.referral-field label:not(.file-drop) {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
    margin-block-end: 0.75rem;
}

.referral-field input,
.referral-field select,
.referral-field textarea {
    inline-size: 100%;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--navy);
    background: transparent;
    border: none;
    border-block-end: 1px solid rgba(var(--navy-rgb), 0.3);
    padding: 0 0 0.6rem;
    transition: border-color 0.2s;
}

.referral-field input:focus,
.referral-field select:focus,
.referral-field textarea:focus {
    outline: none;
    border-block-end-color: var(--navy);
}

.referral-field input::placeholder,
.referral-field textarea::placeholder {
    color: rgba(var(--navy-rgb), 0.45);   /* same as the contact form */
}

.referral-field textarea {
    resize: vertical;
    min-block-size: 4rem;
    line-height: 1.6;
}

.referral-select {
    appearance: none;
    cursor: pointer;
    padding-inline-end: 1.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2326221E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 1rem;
}

/* Shared upload box (contact + referral attachments) */
.file-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.75rem 1rem;
    border: 1px dashed rgba(var(--navy-rgb), 0.4);
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.file-drop:hover {
    border-color: var(--navy);
    background: rgba(var(--navy-rgb), 0.03);
}

.file-drop:focus-within {
    border-color: var(--navy);
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}

/* visually hide the native input; the label opens the picker */
.file-drop input[type="file"] {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.file-drop-icon {
    inline-size: 1.5rem;
    block-size: 1.5rem;
    color: var(--navy);
    opacity: 0.55;
}

.file-drop-text {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--navy);
}

.file-drop-hint {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    color: rgba(var(--navy-rgb), 0.5);
}

/* privacy consent checkbox (contact + referral forms) */
.form-consent {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-block: 1.25rem 1.5rem;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 300;
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--navy);
    cursor: pointer;
}

.form-consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    inline-size: 1.1rem;
    block-size: 1.1rem;
    flex-shrink: 0;
    margin: 0;
    border: 1px solid rgba(var(--navy-rgb), 0.5);
    border-radius: 0.25rem;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.form-consent input[type="checkbox"]:checked {
    border-color: var(--navy);
    background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
}

.form-consent input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}

.form-consent a {
    color: var(--navy);
    text-decoration: underline;
}

.referral-submit {
    display: flex;
    inline-size: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: var(--navy);
    color: #fff;
    border: 1px solid var(--navy);
    border-radius: 0.4rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.referral-submit:hover {
    background: #100E0C;
}

@media (max-width: 48rem) {
    .referral-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ===== Request appointment — split layout (sticky left) ===== */
.referral-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-block-size: 100vh;
}

.referral-aside {
    background: #F7F3EB;   /* lighter panel */
    color: var(--navy);
    padding-inline: 3.5rem;
}

.referral-aside-inner {
    inline-size: 100%;
    max-inline-size: 28rem;
    margin-inline-start: auto;
    box-sizing: border-box;
    min-block-size: 100vh;
    padding-block: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: sticky;
    inset-block-start: 0;
}

.referral-intro {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--navy);
    opacity: 0.85;
    max-inline-size: 24rem;
    margin: 0 0 2rem;
}

.referral-hours {
    padding-block-start: 2rem;
    border-block-start: 1px solid rgba(var(--navy-rgb), 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.referral-form-panel {
    background: var(--surface);   /* match the nav bar */
    padding: 9rem 3.5rem 4rem;
}

.referral-form-inner {
    inline-size: 100%;
    max-inline-size: 34rem;
    margin-inline-end: auto;
}

@media (max-width: 60rem) {
    .referral-split {
        grid-template-columns: 1fr;
        min-block-size: 0;
    }

    .referral-aside,
    .referral-form-panel {
        padding: 5rem 1.75rem 3rem;
    }

    .referral-form-panel {
        order: -1;                  /* appointment form on top on phone */
    }

    .referral-aside {
        padding-block-start: 3rem;  /* now sits below the form — no fixed-header clearance needed */
    }

    .referral-aside-inner {
        position: static;
        min-block-size: 0;
        padding-block: 0;
        max-inline-size: none;
        margin: 0;
    }

    .referral-form-inner {
        max-inline-size: none;
        margin: 0;
    }

    .page-main {
            margin: 7rem auto 4rem;
    }

    .about-hero {
        padding: 7rem 2rem 1rem;
    }

    .referral-tabs {
    margin-block-start: 2rem;
    }
}

/* photo floated into a treatment article (text wraps around it) */
.article-photo {
    float: right;
    inline-size: 50%;
    max-inline-size: 36rem;
    block-size: auto;
    margin: 0.25rem 0 1.5rem 2.5rem;
    border-radius: 1rem;
}

@media (max-width: 40rem) {
    .article-photo {
        float: none;
        inline-size: 100%;
        max-inline-size: none;
        margin: 0 0 1.5rem;
    }
}

/* ===== Skip to content (hidden until keyboard focus) ===== */
.skip-link {
    position: absolute;
    inset-block-start: -3rem;
    inset-inline-start: 1rem;
    z-index: 20;
    padding: 0.6rem 1rem;
    background: #26221E;
    color: #fff;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0.5rem;
    transition: inset-block-start 0.2s ease;
}

.skip-link:focus {
    inset-block-start: 0;
}

/* ===== Medically reviewed byline ===== */
.medically-reviewed {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.85rem;
    color: rgba(var(--navy-rgb), 0.85);
    margin: 0 0 1.5rem;
}

.medically-reviewed a {
    color: inherit;
    font-weight: 500;
    text-decoration: underline;
}

/* ---- Fonts — normcph.com pairing, free stand-ins for NORM's licensed
   Euclid Circular B + Adobe Caslon Pro: Poppins (body) + Libre Caslon
   Display (headings). The body font is set once on <body> and inherits
   everywhere, so headings only need to opt in to Caslon below. These are
   plain class rules that win through normal cascade order. ---- */

/* Section headings — the title under each eyebrow. Uppercase Caslon with
   refined tracking (the "STILLNESS" look). Markup: class="… display-heading". */
.display-heading {
    font-family: 'Libre Caslon Display', 'Adobe Caslon Pro', Georgia, serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.2;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

/* Content headings — same Caslon serif, kept sentence-case for readability. */
.location-card-title,
.faq-question,
.article h2 {
    font-family: 'Libre Caslon Display', 'Adobe Caslon Pro', Georgia, serif;
    font-weight: 400;
}