/* ============================================================
   responsive.css — Mobile-only styles (max-width: 768px)
   All desktop styles live in styles.css
   ============================================================ */


/* ── Our Approach — hide subtitle on mobile ─────────────────── */
@media (max-width: 768px) {
  .approach-subtitle {
    display: none;
  }
}

/* ── Sticky Header ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .sticky-header {
    padding: 12px 20px;
  }

  .prescription-item strong{
    font-size: 15px;
  }

  .sticky-logo {
    width: 100px;
  }

  .sticky-button {
    padding: 8px 15px;
    font-size: 12px;
    background-color: #4F1713;
    color: #EBEBEB;
    border: 2px solid #4F1713;
  }

  .sticky-button:hover {
    background-color: #4F1713;
    color: #EBEBEB;
    border-color: #4F1713;
  }

  .sticky-header-left {
    gap: 15px;
  }

  .sticky-header-right {
    gap: 8px;
  }

  .hamburger-line {
    background-color: #ffffff;
  }

  .menu-icon:hover .hamburger-line {
    background-color: #ffffff;
  }
}


/* ── Sub Menu ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .submenu {
    width: 80%;
    left: -100vw;
  }
}


/* ── Hero Section ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  /* Parallax ON — bg layer stays normal, JS handles transform */
  .hero-bg {
    height: 100%;
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
  }

  /* Content anchored at bottom of hero via flex */
  .hero-content {
    position: relative;
    z-index: 10;
    padding: 0 20px 50px 20px;
    width: 100%;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    text-align: center;
  }

  /* Title — Libre Baskerville 400, 24px, 130% lh, -3% ls
     br tags shown so line breaks at designed positions       */
  .hero h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -0.015em;
    margin-bottom: 12px;
    margin-left: auto;
    margin-right: auto;
    width: 300px;
    color: #fff;
  }

  .hero h1 br {
    display: block;
  }

  /* Paragraph — Work Sans 400, 13px, 120% lh, -3% ls */
      .hero p {
        font-family: 'Work Sans', sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 130%;
        letter-spacing: -0.03em;
        margin-bottom: 24px;
        margin-left: auto;
        margin-right: auto;
        width: 300px;
        color: #fff;
        text-transform: none;
        text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
        margin-top: 20px;
    }

  .hero p br {
    display: none;
  }

  /* Button — Work Sans 500, 11px, 140% lh, 10% ls
     Width: 273px, Height: 28px, horizontally centered      */
  .cta-button {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  padding: 15px 24px;
    width: 300px;
    /* height: 28px; */
    /* padding: 0; */
    background-color: #F5F4F3;
    color: #1C1B1B;
    border: 1.5px solid #000000;
    margin: 0 auto;
  }

  .logo {
    width: 150px;
    height: auto;
    object-fit: contain;
  }

  .logo-container {
    top: 28px;
  }

  .menu-icon {
    left: 20px;
    top: 28px;
  }
}


/* ── Prescription Personalised ──────────────────────────────── */

/* Entrance / exit animation keyframes (outside media query so they're always available) */
@keyframes presItemFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes presItemFadeOut {
  from { opacity: 1; transform: translateY(0);    }
  to   { opacity: 0; transform: translateY(-10px); }
}

@media (max-width: 768px) {
  .prescription-sticky-wrapper {
    height: 700px;
  }
  .prescription-personalised {
    padding: 80px 0px 80px;
    min-height: auto;
    height: min(100vh, 900px);
  }

  .first-card-image .hover-text {
    text-align: center;
}

  .prescription-title {
    margin-top: 20px;
    font-size: 25px;
    margin-bottom: 65px;
    letter-spacing: -0.03em;
    line-height: 1.3;
  }

  /* Dot labels — smooth colour/size transitions */
  .prescription-dot-title {
    font-size: 10px;
    letter-spacing: 0.05em;
    white-space: normal;
    width: 150px;
    line-height: 1.3;
    transition: color 0.35s ease, font-size 0.25s ease;
  }

  .prescription-dot-title.active,
  .prescription-dot-title.visited {
    font-size: 12px;
    letter-spacing: 0.05em;
    white-space: normal;
    width: 70px;
    line-height: 1.3;
  }

  /* ── Timeline: show on mobile ── */
  .prescription-timeline {
    display: block;
    margin-bottom: 20px;
  }

  /* Space below the timeline dot titles before columns */
  .prescription-content {
    padding-bottom: 20px;
  }

  /* ── Columns wrapper ── */
  .prescription-columns {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: stretch;
    padding: 80px 20px 80px 20px;
    overflow: hidden;
    justify-content: center;
  }

  .prescription-column {
    flex: 1;
    min-height: 0 !important;
    position: relative !important;
    display: flex !important;
    justify-content: flex-start;
    overflow: visible;
  }

  /* ── State 1: left column (img-1) — stretch to full column height ── */
  .prescription-left-col {
    align-items: stretch !important;
  }

  /* ── Hide inactive items (not leaving either) ── */
  .prescription-item:not(.active):not(.pres-leaving) {
    display: none !important;
  }

  /* ── Items fading OUT (old state) ── */
  .prescription-item.pres-leaving {
    display: block !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    width: 100% !important; max-width: 100% !important;
    height: auto !important; margin: 0 !important;
    transform: none !important;
    pointer-events: none;
    z-index: 1;
    animation: presItemFadeOut 0.28s ease forwards;
  }

  /* ── Items fading IN (new active state) — override ALL desktop absolute rules ── */
  .prescription-item.active,
  .prescription-item.prescription-text-1.active,
  .prescription-item.prescription-text-2.active,
  .prescription-item.prescription-img-1.active,
  .prescription-item.prescription-img-2.active {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    margin: 0 !important;
    width: 100% !important; max-width: 100% !important;
    height: auto !important;
    top: auto !important; left: auto !important; right: auto !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    animation: presItemFadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  /* Text content */
  .prescription-item p {
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: -0.03em;
    text-align: left;
    width: 100% !important; max-width: 100% !important;
    margin-bottom: 10px;
    margin-left: 0 !important; margin-right: 0 !important;
  }

  /* State 1 image — stretches to match text column height exactly */
  .prescription-item.prescription-img-1.active {
    height: 100% !important;
    align-self: stretch !important;
  }

  .prescription-item.prescription-img-1 img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 160px;
    object-fit: cover;
    border-radius: 4px;
  }

 

  /* State 2 image — horizontally centered */
  .prescription-item.prescription-img-2 img {
    width: 100% !important;
    max-width: 100% !important;
    height: 200px !important;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin: 0 auto !important;
  }

  /* ── State 2: vertical stack ── */
  .prescription-columns:has(.prescription-img-2.active),
  .prescription-columns.state-2 {
    flex-direction: column;
    gap: 20px;
  }

  .prescription-columns:has(.prescription-img-2.active) .prescription-column,
  .prescription-columns.state-2 .prescription-column {
    flex: none;
    width: 100% !important;
    align-items: flex-start !important;
  }
}



/* ── Our Approach ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .our-approach {
    padding: 50px 20px 60px;
    min-height: auto;
    position: relative;
  }

  /* Centre everything */
  .approach-container {
    text-align: center;
  }

  .approach-title {
    font-size: 25px;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-align: center;
  }

   .approach-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
    padding: 0;
    line-height: 1.5;
    text-align: center;
    color: #fff;
    margin-top: 30px;
  }

  .approach-subtitle br {
    display: none;
  }

  /* Hide desktop vertical line */
  .timeline-line-container {
    display: none;
  }

  .approach-content {
    padding-top: 30px;
    padding-bottom: 0;
  }

  /* ── Mobile accordion layout — override desktop display:grid ── */
  .timeline-item {
    display: block !important;
    grid-template-columns: unset !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
    /* padding: 18px 0; */
    cursor: default;
    position: relative;
    padding: 0px;
    padding-bottom: 8px;
  }

  /* Open item: reduce bottom padding since description adds visual weight */
  .timeline-item.mob-open {
    padding-bottom: 18px;
  }

  /* Divider between items — centered line, #F5F4F3, 250px wide */
  .timeline-item + .timeline-item::before {
    content: '';
    display: block;
    width: 270px;
    height: 1px;
    background-color: #F5F4F3;
    margin: 0 auto 10px auto;
  }

  /* Reset left — just centering */
  .timeline-left {
    text-align: center;
    padding: 0;
    display: block;
  }

  /* Label — always visible */
  .timeline-label {
    font-size: 17px;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
    text-align: center;
    color: #fff !important;
    font-weight: 600;
    opacity: 1 !important;
    margin-bottom: 0;
    display: block !important;
    transition: opacity 0.35s ease;
  }

  /* Description WRAPPER — grid-rows trick for smooth accordion */
  /* Default: collapsed */
  .timeline-right {
    display: grid !important;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
    padding: 0 !important;
    opacity: 1 !important;
    overflow: hidden;
    margin-top: 0;
    align-items: unset;
    text-align: center;
    justify-content: center;
  }

  /* Inner div must have min-height:0 for grid trick to work */
  .timeline-right .timeline-description {
    min-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: visibility 0s linear 0.4s;
  }

  /* Expanded state */
  .timeline-item.mob-open .timeline-right {
    grid-template-rows: 1fr;
    margin-top: 12px;
  }

  .timeline-item.mob-open .timeline-right .timeline-description {
    visibility: visible;
    transition: visibility 0s linear 0s;
  }

  /* Description text */
  .timeline-description {
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: -0.02em;
    text-align: center;
    color: #fff !important;
    opacity: 1 !important;
    max-width: 280px;
    margin: 0 auto;
    padding-bottom: 4px;
  }

  /* Dot hidden on mobile */
  .approach-content .timeline-dot {
    display: none;
  }
}


/* ── Treatment Options ──────────────────────────────────────── */
@media (max-width: 768px) {
  .treatment-options {
    padding: 60px 0 30px;
    min-height: 484px;
  }

  .treatment-title {
    font-size: 25px;
    margin-bottom: 24px;
    padding: 0 20px;
    text-align: center;
  }

  /* Row layout: fixed card + native horizontal scroll */
  .slider-container {
    padding: 0 0 0 10px;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    overflow: visible;
    position: relative;
  }

  /* Fixed first card: 37vw */
  .fixed-first-card-container {
    position: relative;
    width: 37vw;
    min-width: 37vw;
    max-width: 37vw;
    flex-shrink: 0;
    top: 0;
    align-self: flex-start;
  }

  .slider-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    flex: 1;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .slider-wrapper::-webkit-scrollbar {
    display: none;
  }

  .slider-track {
 transition: none !important;
    gap: 8px;
    padding-right: 0;
}

  .treatment-card {
   width: 38vw !important;
    min-width: 38vw !important;
    max-width: 38vw !important;
    height: auto;
    scroll-snap-align: start;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 5px;
  }

 .treatment-card:last-child {
     scroll-snap-align: start;
    margin-right: 30vw;
}
.slider-track::after {
    content: '';
    display: block;
    min-width: 30vw;
    flex-shrink: 0;
}
  .card-image-area {
    padding: 0;
    width: 100%;
    height: 38vw;
  }

  .card-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .first-card-image {
    width: 100%;
    height: 38vw;
  }

  .card-info {
    padding: 12px 0px 0px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }

  .card-button {
    margin-top: 0px;
    text-align: center;
    margin-bottom: 6px;
  }

  .card-label {
    margin-bottom: 5px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .card-title {
    font-size: 11px;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .card-button {
    padding: 8px 12px;
    font-size: 12px;
  }

  .first-card-image .image-title {
    font-size: 0.9rem;
  }

  .first-card-image .hover-title {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  .first-card-image .hover-text {
    font-size: 0.7rem;
  }

  .slider-arrow {
    display: none !important;
  }

  .slider-dots {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .compare-wrapper-fixed {
    position: static;
    width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
    padding-right: 0px;
  }

  .reveal-up.in-view {
    opacity: 1;
    transform: translateY(0);
    width: 100%;
  }

  .compare-treatments-btn {
    padding: 10px 30px;
    font-size: 12px;
  }
}

/* ── Compare Timeline Section ───────────────────────────────── */
@media (max-width: 768px) {
  .compare-timeline-section {
    padding: 0;
  }

  .compare-close-btn {
    display: none; /* replaced by cmp-mob-close */
  }

  .compare-timeline-container {
    padding: 0;
    overflow: visible;
  }

  .compare-timeline-title {
    font-size: 18px;
    margin-bottom: 40px;
  }

  .compare-timeline-track {
    display: none;
  }

  .compare-columns-wrapper {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 20px 0;
  }

  .compare-column {
    min-height: auto;
    display: block;
  }

  .compare-item {
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    margin-bottom: 30px;
  }

  .compare-item:last-child {
    margin-bottom: 0;
  }

  .compare-content-title {
    font-size: 12px;
    margin-top: 15px;
  }

  .compare-content-text {
    font-size: 12px;
  }

  .compare-content-list li {
    font-size: 12px;
  }

  .compare-image {
    max-width: 100%;
  }
}


/* ── Care Designed to Evolve ────────────────────────────────── */
@media (max-width: 768px) {
  .care-evolve {
    padding: 60px 0px;
    padding-top: 0px;
  }

  .care-content {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }

  .care-left {
    padding-right: 0;
    max-width: 100%;
  }

  .care-left.reveal-up.in-view {
    padding: 0px 20px;
  }

  .care-title {
    font-size: 25px;
    margin-bottom: 30px;
    max-width: 100%;
    letter-spacing: -0.03em;
    line-height: 1.3;
  }

  .care-line-container {
    height: 160px;
    margin: 0 auto 30px auto;
  }

  /* Line starts at 0 — GSAP scrub fills it with scroll */
  .care-line {
    height: 0;
  }

  .care-text {
    font-size: 16px;
    max-width: 100%;
    text-align: left;
    line-height: 1.3;
    letter-spacing: -0.03em;
  }

  .care-right {
    order: -1;
    border-radius: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 300px;
    position: relative;
  }

  /* Hide the <img> on mobile — bg-div handles display */
  .care-image-desktop {
    display: none !important;
  }

  /* Full-bleed parallax background div */
  .care-image-bg {
    position: absolute;
    top: -25%;
    left: 0;
    right: 0;
    height: 150%;           /* taller than container = room to shift */
    background-image: url('drs.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: transform;
  }

  .care-features {
    display: none;
  }

  /* Rolling banner: hide description paragraphs, show icons + titles only */
  .features-rolling-banner .feature-description {
    display: none !important;
  }

  .feature-item {
    text-align: center;
  }

  .feature-icon {
    height: 70px;
    margin-bottom: 20px;
  }

  .feature-icon img {
    width: 50px;
    height: 50px;
  }

  .feature-title {
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .feature-description {
    font-size: 12px;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.3;
    letter-spacing: -0.03em;
  }
}


/* ── Treatment Journey ──────────────────────────────────────── */
@media (max-width: 768px) {
  .treatment-journey {
    min-height: auto;
  }

  .journey-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .journey-left {
    height: 300px;
    order: -1;
    overflow: hidden;
  }

  .journey-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform-origin: center center;
  }

  .journey-right {
    padding: 50px 20px;
    min-height: auto;
  }

  /* .journey-line-container {
    height: calc(100% - 75px);
  } */

  .journey-title {
    font-size: 25px;
    margin-bottom: 40px;
    letter-spacing: -0.03em;
    line-height: 1.1;
  }

  .journey-title-your,
  .journey-title-rest {
    font-size: 25px;
    letter-spacing: -0.03em;
    line-height: 1.2;
  }

  .journey-timeline {
    padding-left: 30px;
  }

  .journey-item {
    margin-bottom: 40px;
  }

  .journey-dot {
    left: -37px;
    width: 14px;
    height: 14px;
  }

  .journey-step-title {
    font-size: 16px;
    letter-spacing: 0.1em;
    line-height: 1.3;
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .journey-step-text {
    font-size: 14px;
    text-align: left;
    max-width: 100%;
    line-height: 1.3;
    letter-spacing: -0.03em;
  }
}


/* ── FAQ ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .faq-section {
    padding: 60px 20px;
  }

  .faq-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-left {
    position: relative;
    top: 0;
    padding: 0;
  }

  .faq-title {
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -0.03em;
    text-align: center;
    padding-left: 0px;
  }

  /* Disable char-split animation on faq-title — full sentence, no clipping */
  .faq-title .char-wrap {
    display: inline !important;
    overflow: visible !important;
    clip-path: none !important;
  }
  .faq-title .char {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .faq-item {
    padding: 0 0 5px;
    margin-bottom: 0;
  }

  .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
  }

  .faq-question h3 {
    font-size: 16px;
    line-height: 1.3;
    padding-right: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
  }

  .faq-answer p {
    font-size: 14px;
    line-height: 1.3;
    text-align: left;
    letter-spacing: -0.03em;
    margin-bottom: 0;
  }

  .faq-item.active .faq-answer {
    padding-top: 15px;
  }
}


/* ── Footer Responsive (tablet + mobile) ────────────────────── */
@media (max-width: 1240px) {
  .footer-inner {
    width: 100%;
    height: auto;
    padding: 52px 32px;
  }
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 40px 24px;
  }
  .footer-col-logo {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .footer-col-map {
    grid-column: 1 / -1;
    min-height: 200px;
  }
}

@media (max-width: 540px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 32px 20px;
  }
  .footer-col-logo {
    flex-direction: column;
    align-items: flex-start;
  }
  
.prescription-title br{
  display: block;
}
}
/* =============================================
   MOBILE ROLLING BANNER - Features Section
   ============================================= */

/* ── Rolling Banner: always hidden on desktop ── */
.features-rolling-banner {
  display: none;
}

/* ── Keyframes must live OUTSIDE media queries for full browser support ── */
@keyframes featuresBannerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  /* Hide the original static grid */
  .care-features {
    display: none !important;
  }

  /* Show the rolling banner */
  .features-rolling-banner {
    display: block;
    overflow: hidden;
    width: 100%;
    margin-top: 40px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  }

  .features-rolling-track {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: max-content;
    animation: featuresBannerScroll 22s linear infinite;
    will-change: transform;
  }

  .features-rolling-track:hover {
    animation-play-state: paused;
  }

  .features-rolling-track .feature-item {
    flex: 0 0 200px;
    width: 200px;
    text-align: center;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .features-rolling-track .feature-icon {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
  }

  .features-rolling-track .feature-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
  }

  .features-rolling-track .feature-title {
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .features-rolling-track .feature-description {
    display: none !important;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
  }
}

/* ── Journey Title: Desktop vs Mobile ── */

/* Mobile title always hidden on desktop */
h2.journey-title.journey-title-mobile {
  display: none;
}

@media (max-width: 768px) {
  /* Hide the desktop title on mobile */
  h2.journey-title.journey-title-desktop {
    display: none !important;
  }

  /* Show mobile title — overlaid on the image */
  h2.journey-title.journey-title-mobile {
    display: block !important;
    position: absolute !important;
    bottom: 24px !important;
    left: 20px !important;
    right: 20px !important;
    z-index: 10 !important;
    margin: 0 !important;
    text-align: left !important;
    padding: 20px;
  }

  h2.journey-title.journey-title-mobile span {
    color: #ffffff !important;
  }
}

/* ═══════════════════════════════════════════════════
   MOBILE GLOBAL OVERRIDES
   ═══════════════════════════════════════════════════ */

/* All buttons → 12px */
@media (max-width: 768px) {
  .cta-button,
  .card-button,
  .sticky-button,
  .np-btn,
  .compare-treatments-btn,
  .compare-close-btn {
    font-size: 12px !important;
  }

  /* "Actives" span → 25px */
  .treatment-title .journey-title-your {
    font-size: 25px !important;
  }
}

/* View Treatment → "View" on mobile */
.btn-mobile-text  { display: none; }
.btn-desktop-text { display: inline; }
@media (max-width: 768px) {
  .btn-mobile-text  { display: inline !important; }
  .btn-desktop-text { display: none   !important; }
}

/* FAQ title: one line centered on mobile */
.faq-title-mobile-text { display: none; }
.faq-title-desktop     { display: inline; }
@media (max-width: 768px) {
  .faq-title-desktop     { display: none   !important; }
  .faq-title-mobile-text { display: inline !important; }
}

/* Care line: driven by JS scroll on mobile — no CSS animation needed */
@media (max-width: 768px) {
  .care-line-container.line-visible .care-line {
    /* scroll progress set via JS */
  }
}

/* ── Mobile heading animation: simple fade-in only (no slide-up) ── */
@media (max-width: 768px) {
  /* Let chars clip-overflow stay visible — no clipping box */
  .split-heading .char-wrap {
    overflow: visible !important;
  }

  /* Reset translate — opacity-only transition */
  .split-heading .char {
    transform: none !important;
    transition: opacity 0.6s ease !important;
  }

  /* In-view: just fade to full opacity */
  .split-heading.in-view .char {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Out-of-view: fade back out */
  .split-heading:not(.in-view) .char {
    opacity: 0 !important;
  }
}


/* ═══════════════════════════════════════════════════
   COMPARE — MOBILE VERTICAL TIMELINE (NEW)
   ═══════════════════════════════════════════════════ */

/* Hide mobile layout on desktop */
.compare-mobile-vertical { display: none; }

@keyframes cmobLabelFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {

  /* Hide the original 3-col desktop layout on mobile */
  .compare-timeline-track,
  .compare-dot-titles-row,
  .compare-columns-wrapper {
    display: none !important;
  }

  /* Overall section bg */
  .compare-timeline-section {
    background-color: #F5F4F3 !important;
    overflow: visible !important;   /* allow dotted line to extend above section */
    padding-top: 0 !important;      /* flush top so line can bridge to button */
  }

  /* ── Outer wrapper ── */
  .compare-mobile-vertical {
    display: flex;
    flex-direction: row;
    position: relative;
    padding-left: 36px;
    padding-bottom: 10px;
    background-color: #F5F4F3;
    overflow: visible;
  }

  /* ── LEFT TIMELINE COLUMN ── */
  .cmob-timeline-left {
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 20px;
    overflow: visible;
  }

  /* Grey dotted base line — match section 2 exactly (1px dot, 3×6px tile, vertical) */
  .cmob-vline-base {
    position: absolute;
    top: 0;
    bottom: 6px;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background-image: radial-gradient(circle, #BEBEBE 1px, transparent 1px);
    background-size: 3px 6px;
    background-repeat: repeat-y;
    background-position: center top;
    z-index: 0;
  }

  /* Red fill — same tile */
  .cmob-vline-fill {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 0%;
    transform: translateX(-50%);
    background-image: radial-gradient(circle, #80130B 1px, transparent 1px);
    background-size: 3px 6px;
    background-repeat: repeat-y;
    background-position: center top;
    z-index: 1;
  }

  /* Dots — exactly matching prescription section */
.cmob-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #BEBEBE;
    border: 2px solid #F5F4F3;
    z-index: 3;
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease, height 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

  .cmob-dot.visited {
    background-color: #80130B;
    box-shadow: none;
    filter: none;
    width: 18px;
    height: 18px;
    animation: none;
  }

  .cmob-dot.active {
    background-color: #80130B;
    box-shadow: 0 0 10px rgba(128, 19, 11, 0.6);
    filter: blur(3px);
    width: 28px;
    height: 28px;
    animation: pulseDot 1.5s infinite;
  }

  /* ── STATES CONTAINER ── */
  .cmob-states {
    flex: 1;
    min-width: 0;
  }

  .cmob-state-block {
    padding-bottom: 48px;
  }
  .cmob-state-block:last-child { padding-bottom: 0; }

  /* State title */
  .cmob-state-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1C1B1B;
    margin-bottom: 20px;
    line-height: 1.3;
    transition: color 0.3s;
  }
  .cmob-state-title.active { color: #80130B; }

  /* ── ACCORDION LAYOUT ── */
  /* Each state has sections: label (header) + collapsible content */
  .cmob-layout {
    display: flex;
    flex-direction: column;
    position: relative;
  }

  /* Center vertical line spanning full layout — behind labels and content */
  .cmob-layout::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 0.5px;
    background-color: #D9D9D9;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
  }

  /* Hide center line when state block is inactive */
  .cmob-state-block.cmob-state-inactive .cmob-layout::before {
    display: none;
  }

  .cmob-section {
    display: flex;
    flex-direction: column;
  }

  /* Spacing between stacked label sections */
  .cmob-section + .cmob-section {
    margin-top: 16px;
  }

  /* Label — pill, fit-content width, centered */
  .cmob-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #80130B;
    background-color: #FFFFFF;
    border: 1px solid #C8C8C8;
    border-radius: 20px;
    padding: 5px 16px;
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 90%;
    margin: 0 auto 8px auto;
    opacity: 1;
    filter: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  /* Locked label — no cursor, static */
  .cmob-label.cmob-label-locked {
    cursor: default;
  }

  /* Accordion label — pointer cursor */
  .cmob-label.cmob-label-accordion {
    cursor: pointer;
    gap: 8px;
  }

  /* Active (open) accordion label */
  .cmob-label.cmob-label-accordion.cmob-label-open {
    background-color: #CCC4C4;
    border-color: #80130B;
    color: #80130B;
  }

  /* Arrow image */
  .cmob-label-arrow {
    width: 12px;
    height: 12px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
  }

  /* Fully visible state — compat */
  .cmob-label.cmob-label-visible {
    opacity: 1;
    filter: none;
  }

  /* Inner text span — plain */
  .cmob-label-inner {
    background: none;
    height: auto;
    line-height: normal;
    padding: 0;
    text-align: center;
  }

  /* Section wrapper — center the label */
  .cmob-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
  }

  /* Collapsible content section — grid-rows trick for smooth animation */
  .cmob-section-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease-out;
    overflow: hidden;
    width: 100%;
  }

  .cmob-section-content.cmob-open {
    grid-template-rows: 1fr;
  }

  /* Inner wrapper — must have min-height: 0 for grid trick */
  .cmob-section-content-inner {
    min-height: 0;
    overflow: hidden;
    /* 3-col grid for the content rows */
    display: grid;
    grid-template-columns: 1fr 36% 1fr;
    position: relative;
  }

  /* Left cell */
  .cmob-cell-left {
    padding: 6px 4px 6px 0;
    text-align: left;
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: #1C1B1B;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  /* Center spacer cell */
  .cmob-cell-center {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Right cell */
  .cmob-cell-right {
    padding: 6px 0 6px 4px;
    text-align: left;
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: #1C1B1B;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  /* Image cell in center column */
  .cmob-cell-img {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    position: relative;
    z-index: 2;
  }

  .cmob-cell-img img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    display: block;
  }

  /* Sub-label */
  .cmob-sub-label {
    display: block;
    font-family: 'Work Sans', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1C1B1B;
    margin-bottom: 4px;
  }

  /* Check-mark lists */
  .cmob-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .cmob-list li {
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #1C1B1B;
    display: flex;
    align-items: flex-start;
    gap: 3px;
  }

  /* Left col — tick at LEFT, text left-aligned */
  .cmob-cell-left .cmob-list li {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }

  /* Right col — tick at left, text left */
  .cmob-cell-right .cmob-list li {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }

  .cmob-check {
    color: #80130B;
    flex-shrink: 0;
    font-size: 9px;
    margin-top: 1px;
  }

  /* Extra padding on rows alongside image */
  .cmob-cell-left.row-with-img,
  .cmob-cell-right.row-with-img {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
/* ── First card: desktop vs mobile text ── */
.card-text-mobile { display: none; }
.card-text-desktop { display: inline; }
@media (max-width: 768px) {
  .card-text-desktop { display: none !important; }
  .card-text-mobile  { display: inline !important; }
}

/* ── Section heading character animations: slower on mobile ── */
@media (max-width: 768px) {
  .split-heading .char {
    transition-duration: 0.8s !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   ── Compare Section: NEW Mobile Tab UI  (max-width: 768px) ──
   ══════════════════════════════════════════════════════════════ */

/* Hide old mobile vertical timeline — new tab UI replaces it */
@media (max-width: 768px) {
  #compareMobileVertical,
  .compare-mobile-vertical {
    display: none !important;
  }

  /* Hide old desktop layout on mobile */
  .compare-timeline-content {
    display: none !important;
  }

  /* ── Outer wrapper ── */
  .cmp-mobile-tabs {
    display: block;
    padding: 50px 20px 40px;
    position: relative;
    background: #F5F4F3;
  }

  /* ── Title ── */
  .cmp-mob-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 25px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #1C1B1B;
    text-align: center;
    margin-bottom: 24px;
  }

  .cmp-mob-title em {
    font-style: italic;
  }

  /* ── Close button (top-right) ── */
  .cmp-mob-close {
    position: absolute;
    top: 58px;
    right: 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-family: 'Work Sans', sans-serif;
    color: #1C1B1B;
    cursor: pointer;
    line-height: 1;
    padding: 0;
  }

  /* ── Tabs row ── */
  .cmp-tabs-row {
    display: flex;
    flex-direction: row;
    gap: 0;
    margin-bottom: 0;
  }

  .cmp-tab {
    flex: 1;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    line-height: 1.4;
    text-align: center;
    padding: 10px 8px;
    cursor: pointer;
    background: #CCC4C4;
    color: #FFFFFF;
    border: 1.5px solid #C8C8C8;
    border-bottom: none;
    transition: all 0.2s ease;
  }

  /* Active tab: red border top/sides, no bottom border, white bg */
  .cmp-tab.cmp-tab-active {
    background: #FFFFFF;
    color: #80130B;
    border-color: #80130B;
    border-bottom: 2px solid #FFFFFF; /* covers panel top border */
    position: relative;
    z-index: 2;
  }

  /* ── Continuous center divider line through entire panel content ── */
  .cmp-panel {
    display: none;
    border: 1.5px solid #80130B;
    border-top: none;
    background: #FFFFFF;
    padding: 0 0 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
  }

  /* Vertical line runs from very top of panel all the way down — passes through image */
  .cmp-panel::after {
    content: '';
    position: absolute;
    top: 35px; /* starts exactly at bottom of image — never goes into image */
    bottom: 20px;
    left: 50%;
    width: 0.5px;
    background: #A2A0A0;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
  }

  .cmp-panel.cmp-panel-active {
    display: block;
  }

  /* Inactive tab: panel border top still needs cover for inactive tab */
  .cmp-tabs-row .cmp-tab:not(.cmp-tab-active) {
    border-bottom: 1.5px solid #80130B;
  }

  /* ── Image block ── */
  .cmp-img-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    z-index: 1;
  }

  .cmp-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
  }

  /* Product labels — vertically centered on image, #80130B text, #D9D9D9 bg */
  .cmp-prod-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Work Sans', sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #80130B;
    background: #D9D9D9;
    border: none;
    padding: 4px 8px;
    line-height: 1.4;
    text-align: center;
    z-index: 3;
  }

  .cmp-prod-left  { left: 10px; }
  .cmp-prod-right { right: 10px; }

  /* ── Section pill header ── */
  .cmp-section-pill {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: #80130B;
    border: 1.5px solid #80130B;
    border-radius: 20px;
    padding: 3px 6px;
    display: flex;
    justify-content: center;
    align-self: center;
    width: fit-content;
    margin: 14px auto 20px;
    text-align: center;
    position: relative;
    z-index: 2;
  }

  /* ── Two-column content ── */
  .cmp-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0 14px 4px;
    position: relative;
    margin-top: -1px; /* pull up so line connects to pill with no gap */
  }

  /* Center divider handled by .cmp-panel::after — no per-block line needed */

  .cmp-col {
    padding: 0 8px 8px;
  }

  .cmp-col:first-child { padding-left: 0; }
  .cmp-col:last-child  { padding-right: 0; }

  /* Sub-label (e.g. "Supports :") */
  .cmp-col-sub {
    display: block;
    font-family: 'Work Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    font-style: italic;
    color: #1C1B1B;
    margin-bottom: 4px;
  }

  /* ── Checklist ── */
  .cmp-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .cmp-list li {
    font-family: 'Work Sans', sans-serif;
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: #1C1B1B;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 5px;
  }

  .cmp-check {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url('compare-tick.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    margin-top: 2px;
  }

} /* end @media max-width: 768px */

/* Hide mobile tab UI on desktop — mobile media query below overrides this */
.cmp-mobile-tabs {
  display: none;
}

@media (max-width: 768px) {
  .cmp-mobile-tabs {
    display: block;
  }
}

@media (max-width: 768px) {

  .np-options {
    padding: 60px 0 40px;
  }

  .np-title {
  font-size: 25px;
  font-family: 'Libre Baskerville', serif;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.03em;

  text-align: center;
  margin: 0 0 20px; /* FIXED */
  padding: 0 20px;
}

  .np-subtitle {
  font-family: 'Work Sans', sans-serif; /* FIXED FONT */
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;

  text-align: center;
  margin: 0 0 40px; /* FIXED */
  padding: 0 20px;
}

  /* === SAME STRUCTURE AS TREATMENT === */

  .np-slider-container {
    padding: 0 0 0 10px;
  }

  .np-slider-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .np-slider-wrapper::-webkit-scrollbar {
    display: none;
  }

  .np-slider-track {
    display: flex;
    gap: 8px;
    width: max-content
  }

  /* === EXACT SAME CARD LOGIC === */
  .np-card {
    width: 38vw;
    min-width: 38vw;
    max-width: 38vw;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .np-card:last-child {
    margin-right: 30vw;
  }

  .np-slider-track::after {
    content: '';
    min-width: 30vw;
    flex-shrink: 0;
  }

  /* IMAGE */
  .np-card-image {
    width: 100%;
    height: 38vw;
  }

  .np-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* TEXT */
  .np-card-info {
    padding: 12px 0 0;
  }

  .np-label {
    font-size: 9px;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
  }

  .np-card-title {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
  }

  .np-btn {
      width: 150px;
    font-size: 12px;
    color: #1C1B1B;
    padding: 8px 12px;
    
  }
}