/*
Theme Name: Vesta Midlife Wellness
Theme URI: https://vesta.com/
Author: Guruprasad Yamani (unpause)
Author URI: https://editpixs.com/
Description: Custom Vesta-inspired midlife wellness theme with full responsive design, hero video, endocrine method section, and advanced navigation.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.4
Tags: one-column, two-columns, custom-logo, custom-menu, featured-images, theme-options, responsive-layout
Text Domain: vesta-midlife
Screenshot: screenshot.png
*/


:root {
    --vesta-navy: #153150;
    --vesta-navy-deep: #0f253f;
    --vesta-cream: #f4f4f4;
    --vesta-white: #ffffff;
    --vesta-text-dark: #222222;
    --vesta-accent-gold: #d4b08a;
    --vesta-accent-teal: #0f6d63;
    --vesta-accent-soft: #eef4ff;
   
    --font-serif: "Cormorant Garamond", "Georgia", serif;
  
    --font-title: "Source Serif Pro", serif;
    --font-body: "DM Sans", sans-serif;

}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--vesta-text-dark);
    overflow-x: hidden;

}
html {
    scroll-behavior: smooth;
}

html.scrolling {
    scroll-behavior: auto; /* prevents conflict during manual scroll */
}


img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.wrapper1 {
width:100%;
    margin: 0 auto;
   
}
.section-pad {
    padding: 80px 0;
}

.section-title-serif {
    font-family: var(--font-serif);
    font-size: 32px;
    margin: 0 0 18px;
}

p {
    margin: 0 0 16px;
    line-height: 1.7;
    
}
/* -------- HEADER / NAV -------- */
/* -------- HEADER / NAV -------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2px;
    z-index: 50;
    background-color: #ffffff;
    border-bottom: 1px solid #e7e7e7;
}

.site-header-inner {
    max-width: 95%;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

/* LOGO */
.site-logo {
    font-family: "Co Headline W01 Regular", sans-serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.22em;
}

/* NAV RIGHT (desktop baseline) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 34px;
}

/* MAIN NAV */
.main-nav > ul {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
    font-weight: 700;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    opacity: 0.9;
    font-size: 11px;
}

/* LANG / CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
}

.header-cta .lang-toggle {
    font-size: 11px;
    letter-spacing: 0.16em;
    font-weight: 700;
    text-transform: uppercase;
}

/* caret arrow */
.nav-caret {
    font-size: 9px;
    margin-left: 4px;
}

/* ---------- DESKTOP DROPDOWN (hover) ---------- */

.has-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    margin-top: 8px;
    padding: 0;
    list-style: none;
    display: block;
    gap: 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    z-index: 100;
}

/* show on hover – desktop only */
@media (min-width: 1024px) {
    .has-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    display: block;
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    color: #000;
}

.dropdown-menu a:hover {
    background-color: #f4f4f4;
}

/* ---------- HAMBURGER BUTTON ---------- */

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 4px;
    margin-left: auto;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: #000;
    margin: 4px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* X animation when open */
body.nav-open .nav-toggle span:first-child {
    transform: translateY(3px) rotate(45deg);
}
body.nav-open .nav-toggle span:last-child {
    transform: translateY(-3px) rotate(-45deg);
}

/* backdrop */
.nav-backdrop {
    display: none;
}

/* when menu is open on mobile */
body.nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 40;
}

/* =========================
   TABLET + MOBILE (≤ 1024px)
   WordPress-like dropdown
========================= */

@media (max-width: 1024px) {

    .site-header-inner {
        padding: 12px 18px;
    }

    /* show hamburger */
    .nav-toggle {
        display: block;
    }

    /* hide nav by default */
    .nav-right {
        display: none;
        position: static;
        width: 100%;
    }

    /* show nav below header when open */
    body.nav-open .nav-right {
        display: block;
        position: fixed;
        top: 56px;                  /* approx header height */
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e7e7e7;
        padding: 20px 24px 24px;
        z-index: 45;
    }

    .main-nav > ul {
        flex-direction: column;
        gap: 18px;
    }

    .main-nav a {
        font-size: 13px;
    }

    /* MOBILE DROPDOWN: hidden by default, toggle via JS */
    .has-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: transparent;
        padding: 6px 0 0;
        margin-top: 4px;

        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;            /* hide until open */
    }

    .has-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 6px 0 6px 14px;
        font-size: 12px;
    }

    .header-cta {
        margin-top: 20px;
        justify-content: flex-start;
    }
}

/* =========================
   DESKTOP RESET (≥ 1025px)
========================= */

@media (min-width: 1024px) {

    .nav-toggle {
        display: none;
    }

    .nav-right {
        display: flex;
        position: static;
        transform: none;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .nav-backdrop {
        display: none !important;
    }
}


/* -------- HERO -------- */
.hero-container{
      background-color: #153150 !important;  /* DEEP BLUE */
}
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: var(--vesta-white);
   
    border-radius: 0 0 120px 0;
}

/* force video to match rounded shape */
.hero-video {
    border-radius: 0 0 120px 0 !important;
    overflow: hidden;
    z-index: 0;
}

/* Tablet (≤ 1024px) – slightly shorter hero & softer padding */
@media (max-width: 1024px) {
    .hero {
        min-height: 80vh;
    }

    .hero-content {
        max-width: 90%;
        padding: 160px 16px 100px;
    }
}

/* Mobile (≤ 768px) – let content control height more */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;      /* still tall, but not forced full screen */
    }

    .hero-content {
        padding: 140px 16px 80px;
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.3;
        padding-top: 24px;    /* reduce extra gap on small screens */
    }
}

/* Small mobile (≤ 480px) – more compact */
@media (max-width: 480px) {
    .hero {
        min-height: 60vh;
           border-radius:0px 0px 80px 0px;
    }

    .hero-content {
        padding: 120px 16px 64px;
    }

    .hero-title {
        font-size: 26px;
        line-height: 1.3;
    }
}

/* Video fills entire hero section */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;  /* show full video */
    background-color: #000; /* avoid blank areas */
    z-index: 0;
}



/* Dark overlay to match your Figma */
.hero-overlay {
    position: absolute;
    inset: 0;
    
    z-index: 1;
}

/* Keep your text on top */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 240px 24px 160px;
    text-align: center;
}

.hero-title {
   font-family: var(--font-title);
    font-weight: 400;
    font-style: normal;
    font-size: 58.2px;
    line-height: 72px; /* exact from Figma */
    letter-spacing: -0.012em; /* -1.2% tracking */
    text-align: center;
    padding-top:90px;
    vertical-align: middle;
}

/* default: desktop shows, mobile hidden */
.hero-title-mobile {
    display: none;
}

/* MOBILE LAYOUT + MOBILE CONTENT */
@media (max-width: 768px) {

    .hero {
        min-height: 85vh;
    }

    .hero-content {
        padding: 0 20px;
        position: absolute;
        bottom: 14%;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        text-align: center;
    }

    /* hide desktop text, show mobile text */
    .hero-title-desktop {
        display: none;
    }

    .hero-title-mobile {
        display: block;
        font-size: 28px;
        line-height: 40px;
        letter-spacing: 0;
        font-weight: 400;
        padding: 0 8px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.45);
    }
}

/* smaller phones */
@media (max-width: 480px) {
    .hero {
        min-height: 75vh;
    }

    .hero-content {
        bottom: 12%;
    }

    .hero-title-mobile {
        font-size: 21px;
        line-height: 28px;
    }
}

/* -------- INTRO BLUE BAND -------- */

.intro-band {
    background-color: var(--vesta-navy);
    color: #f7f7f7;
    padding: 72px 0;
}

.intro-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 1220px;
    margin: 0 auto;
    padding: 30px 54px;
}
.intro-text {
     font-family: var(--font-title);
    font-weight: 400;
    font-size: 24.7px;      /* adjust if Figma says different */
    line-height: 33.8px;
    letter-spacing: 0;
    color: #f7f7f7;       /* ONE consistent color */
    max-width: 965px;
    margin: 0;
}

/* highlight only via weight, NOT color */
.intro-text .intro-strong {
    font-weight: 400;     /* or 500 if you want softer */
    color: #AAC9F2;
      font-size: 24.7px; 
      line-height: 33.8px;
     font-family: var(--font-title);/* IMPORTANT: same color as main text */
}


.highlight-color-title {
    font-weight: 400;     /* or 500 if you want softer */
    color: #AAC9F2;
      font-size: 38px; 
      line-height: 33.8px;
     font-family: var(--font-title);/* IMPORTANT: same color as main text */
}

.highlight-color-description {
    font-weight: 400;     /* or 500 if you want softer */
    color: #AAC9F2;
      font-size: 24px; 
      line-height: 33.8px;
     font-family: var(--font-title);/* IMPORTANT: same color as main text */
}


.intro-avatar {
width:45%;
margin-left:70px ;
   
}


/* -------- SECTION: HORMONAL SHIFT & BODY MASS LINK -------- */
/* --- HORMONAL SECTION (WITH ONE LEFT IMAGE) --- */

.section-hormonal {
    background-color: #ffffff;
    padding: 100px 0;
}
/* Desktop: background cover image */
.moment-image-frame {
    width: 100%;
    height: 100%;
    min-height: 480px; /* adjust based on design */
    background-image: url('<?php echo get_template_directory_uri(); ?>/assets/superior.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0px 50px 0px; /* or add radius if needed */
}

/* Hide mobile version on desktop */
.moment-image-frame-mobile {
    display: none;
}

/* MOBILE OVERRIDES */
@media (max-width: 768px) {

    /* Hide desktop background */
    .moment-image-frame {
        display: none !important;
    }

    /* mobile background cover */
    .moment-image-frame-mobile {
        display: block;
        width: 100%;
        height: 320px;
        background-image: url('<?php echo get_template_directory_uri(); ?>/assets/superior.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 12px;
        margin: 20px 0;
    }
}

.hormonal-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
    gap: 64px;
    align-items: start;
    width:90%;
}
.section-hormonal .wrapper {
    max-width: 90%;
}

/* Left Image */
.hormonal-group-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Right Side Text */
.hormonal-title {
    font-family: "Source Serif Pro", serif;
    font-size: 38px; 
    font-weight: 400;
    line-height: 45px;
    margin-top:0px;
}

.hormonal-right {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.7;
       margin-top: -15px;
       font-weight:500;
}

/* Bullet style */
.hormonal-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
    margin-top:-20px;
}

.hormonal-list li {
    position: relative;
    padding-left: 28px;

}

.hormonal-list li::before {
    content: "◆";
    font-size: 15px;
    color: #153150;
    position: absolute;
  
    left: 0;
}

/* Illustration */
.hormonal-illustration img {
 
    width: 95%;
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .hormonal-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hormonal-left {
        display: none !important;
    }
    .highlight-color-title {
    font-weight: 400;
    color: #AAC9F2;
    font-size: 26px;
    line-height: 28px;
    font-family: var(--font-title);
}
.highlight-color-description {
    font-weight: 400;
    color: #AAC9F2;
    font-size: 15.8px;
    line-height: 19.2px;
    font-family: var(--font-title);
}
.moment-copy-strong{
    font-size:18px;
}
    .hormonal-illustration img{
        width:100%;
        margin-left:30px;
        margin-top:40px;
    }
    .moment-copy{
         font-size:18px;

    }
    
}
/* -------- SECTION 1: STATS + TEXT -------- */

/* Outer section is neutral — NOT navy */
.section-moment {
   
   
    background-color: transparent;
}

/* grid layout */
.moment-inner {
    display: grid;
    grid-template-columns: minmax(0, 2.0fr) minmax(0, 1fr);

    align-items: stretch;
}

/* LEFT SIDE (navy box) */
.moment-left {
    background-color: var(--vesta-navy);
    padding: 100px 80px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    color: #f7f7f7;
    z-index: 999px;
    
}

/* Typography stays same */
.moment-title {
    font-family: "Source Serif Pro", serif;
    font-size: 38px;
    line-height: 40px;
    font-weight: 400;
    margin-bottom: 28px;
    color: #ffffff;
}

.moment-list { list-style: none; padding-left: 0; margin-bottom: 24px; }
.moment-list li {
    padding-left: 24px;
    position: relative;
    font-size:20px;
    margin-bottom: 10px;
}
.moment-list li::before {
    content: "◆";
    position: absolute;
    left: 0;
    
 top:6px;
    color: #d0e4ff;
    font-size: 18px;
}

.moment-copy-strong { font-weight: 600; margin-bottom: 12px; }
.moment-copy { color: #d6e3f3; margin-bottom: 28px; }

/* Buttons */
.moment-actions { display: flex; align-items: center; gap: 24px; margin-top:150px; }

.btn-moment-primary {
    background-color: #2f7b8e;
    padding: 14px 40px;
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
}

.moment-text-link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* RIGHT IMAGE — completely independent from navy box */
.moment-right {
    display: flex;
   
    align-items: stretch;
width: 100%;
background-color: white;
  
}

/* Image frame styling */



.moment-image-frame img {
    width: 100%;

    object-fit: cover;

}



/* MOBILE SLIDER — hidden on desktop */
.hormonal-mobile-slider {
    display: none;
}
.moment-image-frame-mobile img{
    display: none;
}

@media (max-width: 768px) {
.moment-actions {
        display: flex;
        flex-direction: column;   /* STACK VERTICALLY */
        align-items: stretch;     /* FULL WIDTH */
        gap: 12px;                /* spacing between buttons */
        width: 100%;
    }
.moment-title {
    font-family: "Source Serif Pro", serif;
    font-size: 26px;
    line-height: 40px;
    font-weight: 400;
    margin-bottom: 28px;
    color: #ffffff;
}
    .moment-actions a,
    .moment-actions .btn-moment-primary {
        width: 100%;              /* FULL WIDTH BUTTONS */
        text-align: center;
        justify-content: center;  /* center text for flex buttons */
        margin: 0;                /* remove any left/right spacing */
    }
    .moment-image-frame img {
   display:none;
}

.moment-image-frame-mobile img{

    width: 100%;

    object-fit: cover;
    display: block;
    margin-bottom:30px;


}
    .hormonal-mobile-slider {
        display: block;
        width: 100%;
        overflow: hidden;
        padding: 20px 0;
    }

    .slider-track {
        display: flex;
        transition: transform 0.4s ease;
        /* each slide is 100%, so no gap here */
    }

    /* ONE SLIDE PER VIEW */
    .slide {
        min-width: 100%;              /* <- full viewport width */
        display: flex;
        justify-content: center;      /* center the card image */
    }

    .slide img {
        width: 70%;                 /* card size */
        max-width: 80%;               /* safety on very small screens */
        height: auto;
        border-radius: 20px 20px 20px 70px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

    /* Pagination dots */
    .slider-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 12px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
        background: #cfd5e5;
        border-radius: 50%;
    }

    .slider-dot.active {
        background: #4b5c88;
    }
}
/* --- RESTORING STABILITY OVERLAY SECTION --- */

.section-stability-overlay {
    background-color: #f7f7f7;      /* light neutral like Figma */
    
}

.stability-overlay-inner {
    /* wrapper already has max-width + padding in your global CSS */
}

/* IMAGE WRAPPER WITH ROUNDED RIGHT CORNER */
.stability-photo-wrap {
    position: relative;
    border-top-right-radius: 80px;
    height:800px;
 
}

/* big image */
.stability-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FLOATING CARD */
.stability-card-overlay {
    position: absolute;
    left: 20%;                       /* stick to left side */
    top: 50%;
    transform: translate(-10%, -50%); /* pull slightly out of the image */
    width: 460px;                  /* card width similar to Figma */
    background-color: #062743;     /* deep navy */
    color: #f7f7f7;
    padding: 40px 36px 32px;
    border-radius:0px 80px 0px 0px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
    font-family: "DM Sans", sans-serif;
}

/* Card heading */
.stability-card-title {
    font-family: "Source Serif Pro", serif;
    font-weight: 400;
    font-size: 38px;
    line-height: 41px;
    margin: 0 0 18px;
}

/* Paragraphs inside card */
.stability-card-text {
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 10px;
    color: #dde7f7;
    font-weight: 400;
}
.stability-card-text1{
        font-size: 16px;
    line-height: 1.7;
    margin: 0 0 10px;
    color: #dde7f7;
    font-weight: 700;
}
/* Metric line (3.3× etc.) */
.stability-metric-line {
    margin: 18px 0 26px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.stability-metric-number {
    font-family: "Source Serif Pro", serif;
    font-size: 26px;
    line-height: 1;
}

.stability-metric-copy {
    font-size: 13px;
}
.stability-metric-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 22px 0 26px;
}

.stability-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 38px;
    width:100%;
    background-color: #1D546C;       /* correct green-teal */
    color: #ffffff;
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    font-size: 14px;
    border-radius: 999px;            /* fully rounded pill */
    text-decoration: none;
    border: none;
    outline: none;
    cursor: pointer;
    margin-top: -20px;
}

.stability-btn:hover {
    filter: brightness(1.05);
}


/* --- RESPONSIVE TWEAKS --- */
@media (max-width: 1024px) {
    .stability-card-overlay {
        position: static;
        transform: none;
        width: 100%;
        margin: 0 auto 32px;
        box-shadow: 0 24px 50px rgba(0,0,0,0.25);
    }

    .stability-photo-wrap {
        border-top-right-radius: 40px;
    }
}
@media (max-width: 768px) {
   .stability-photo-wrap > img {
        display: none;
    }
      .section-stability-overlay {
  padding: 72px 0px 40px;
    }
.moment-right{
    min-height:0px;
}
    .stability-card-title {
        font-size: 22px;
        line-height: 28px;
    }
}

/* -------- SECTION 3: STABILITY CARD + IMAGE -------- */

/* ===== ENDOCRINE METHOD: FUTURE-PROOFING ROBUSTNESS ===== */
/* ===== ENDOCRINE METHOD: FUTURE-PROOFING ROBUSTNESS ===== */

.section-endocrine-method {
    position: relative;
    overflow: hidden;
    background-color: var(--vesta-navy); /* blue on the left */
    padding: 100px 0;
    border-radius: 0px 60px 0px 0px;
}

/* LEFT CONTENT AREA (desktop / tablet) */
.endocrine-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;              /* above white bg + image */
}

.endocrine-left {
    max-width: 740px;
    color: #f1f5ff;
    font-family: "DM Sans", var(--font-body, sans-serif);
    font-size: 14px;
    line-height: 1.7;
}

.endocrine-title {
    font-family: "Source Serif Pro", var(--font-title, serif);
    font-weight: 400;
    font-size: 38px;
    line-height: 40px;
    margin: 0 0 16px;
    color: #ffffff;
}

.endocrine-sub {
    margin: 0 0 28px;
    color: #dbe6f7;
}

.endocrine-sub strong {
    font-weight: 600;
}

/* GRID OF 6 CARDS (desktop / tablet) */
.endocrine-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 640px;
    margin-bottom: 32px;
}

.endocrine-card {
    background: transparent;
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
}

.endocrine-card img {
    display: block;
    width: 70%;
    height: auto;
}

/* CTA BUTTON */
.endocrine-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 80px;
    border-radius: 999px;
    background-color: #1D546C;
    color: #ffffff;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin-top: 40px;
    text-decoration: none;
}

/* ===== RIGHT IMAGE + WHITE BACKGROUND (desktop / tablet) ===== */

/* white panel on the right */
.endocrine-image-bgcolor {
    position: absolute;
    top: 0;
    right: 0;
    width: 44%;              /* tweak if you want wider/narrower */
    height: 100%;
    background-color: #ffffff;
    z-index: 0;               /* behind everything */
}

/* image on top of the white panel */
.endocrine-image-wrap {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 0 0 150px 0;
    overflow: hidden;
    z-index: 1;               /* above white bg, below text */
}

.endocrine-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #ffffff;
}

/* mobile image wrapper is OFF by default on desktop */
.endocrine-image-wrap-mobile {
    display: none;
}

/* ===== TABLET TWEAKS (≤ 1024px but > 780px) ===== */
@media (max-width: 1024px) and (min-width: 781px) {
    .section-endocrine-method {
        padding: 80px 0;
    }

    .endocrine-title {
        font-size: 32px;
        line-height: 36px;
    }
}

/* ===== MOBILE & SMALL TABLET (≤ 780px) – keep your current layout ===== */
@media (max-width: 780px) {

    /* blue section height a bit smaller */
    .section-endocrine-method {
        padding: 72px 0 80px;
    }

    /* stack everything, ignore the absolute right panel */
    .endocrine-image-bgcolor,
    .endocrine-image-wrap {
        display: none;
    }

    .endocrine-inner {
        padding: 0 16px;
        z-index: 1;
    }

    /* use your mobile image wrapper instead */
    .endocrine-image-wrap-mobile {
        display: block;
        margin: 24px 0 30px;
    }

    .endocrine-image-wrap-mobile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0 0 80px 0;
    }

    /* 2 cards per row on mobile, like you already had */
    .endocrine-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    .endocrine-title {
        font-size: 26px;
        line-height: 32px;
    }
}

/* tiny phones: one card per row if you ever want
@media (max-width: 480px) {
    .endocrine-grid {
        grid-template-columns: 1fr;
    }
}
*/


/* -------- SECTION 5: FAQ -------- */

.section-faq {
    background-color: var(--vesta-cream);
    padding: 80px 0 100px;
}

.faq-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 48px;
    padding: 0 24px;
    align-items: flex-start;
}

.faq-left h2 {
    font-family: var(--font-serif);
    font-size: 38px;
    margin-bottom: 18px;
}

.faq-illustration {
    max-width: 260px;
    margin-top: 24px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    padding: 14px 16px;
    font-size: 16px;
    cursor: pointer;
   font-weight:700;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:after {
    content: '+';
    float: right;
    font-size: 18px;
    line-height: 1;
}

.faq-item[open] summary:after {
    content: '–';
}

.faq-item div {
    padding: 0 16px 14px;
    font-size: 16px;
    color: #555;
     line-height:27px;
}
@media (max-width: 780px) {
   .faq-illustration {
    max-width: 260px;
    margin: 24px auto 0;   /* centers horizontally */
    display: block;        /* ensures auto margin works */
}
.faq-left h2 {
    font-family: var(--font-serif);
    font-size: 30px;
    margin-bottom: 18px;
    text-align: center;
}
}
/* -------- FOOTER -------- */

/* ===== VESTA FOOTER ===== */

.site-footer {
    background-color: #0f253f;
    padding: 70px 0 40px;
    color: #cdd8e6;
    font-family: var(--font-body, "DM Sans", sans-serif);
    font-size: 13px;
}

.footer-inner {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========= DESKTOP (default) ========= */
.footer-main {
    display: grid;
    grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr));
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 36px;
}

/* brand column */
.footer-logo-word {
    font-family: var(--body);
    font-size: 20px;
    letter-spacing: 0.16em;
    color: #ffffff;
    font-weight: 400;
    margin-bottom: 22px;
}

.footer-badge {
    width: 62px;
    margin-left: 70px;
}

/* column headings */
.footer-menu-title {
    font-family: var(--font-body, "DM Sans", sans-serif);
    color: #ffffff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.footer-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu li {
    margin-bottom: 6px;
}

.footer-menu a {
    color: #cdd8e6;
    text-decoration: none;
}

.footer-menu a:hover {
    color: #ffffff;
}

/* bottom row */
.footer-bottom {
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    font-size: 12px;
}

/* left part (icons + copyright) */
.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: -25px;
}

/* icons row */
.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-social img {
    width: 32px;
    height: 32px;
    display: block;
}

/* right part (links) */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.footer-links a {
    color: #cdd8e6;
    text-decoration: none;
}

.footer-links span {
    color: #607b9d;
}
/* Your Privacy Choices inline icon */
.privacy-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;                      /* small space between text & icon */
    font-size: 12px;               /* match your footer link size */
    color: #cdd8e6;                /* same color as the other links */
}

.privacy-link img {
    height: 20px;                  /* perfect size like screenshot */
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.privacy-link:hover img {
    opacity: 0.9;                  /* subtle hover, optional */
}

/* ========= TABLET ≤ 1024px ========= */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-inner {
        padding: 0 16px;
    }
.privacy-choice-link {
        justify-content: center;
        width: 100%;
    }
    .footer-main {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        row-gap: 24px;
    }

    .footer-logo-word {
        text-align: center;
    }

    .footer-badge {
        margin-left: 0;
        margin-top: 8px;
        margin-bottom: 16px;
    }

    /* 👇 force the whole bottom block to be centered */
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        gap: 10px;
    }

    .footer-bottom-left {
        margin-top: 0;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
        text-align: center;
        width: 100%;
    }
}


/* -------- RESPONSIVE -------- */

/* =========================
   TABLET REFINEMENTS ≤ 1024px
   (Desktop unchanged)
========================= */
@media (max-width: 1024px) {

    /* general padding */
    .wrapper,
    .footer-inner,
    .intro-inner,
    .hormonal-inner,
    .stability-overlay-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* hero */
    .hero-content {
        padding: 160px 16px 120px;
    }

    /* intro band */
    .intro-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        max-width: 100%;
        padding: 48px 16px;
    }

    .intro-avatar {
        width: 220px;
        margin: 0 auto;
    }

    .intro-text,
    .intro-text .intro-strong {
        font-size: 20px;
        line-height: 1.6;
    }

    /* hormonal section */
    .hormonal-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        width: 100%;
    }

    /* “Moment for Superior Clinical Support” */
    .moment-inner {
        grid-template-columns: 1fr;
    }

    .moment-left {
        padding: 72px 32px;
    }

  

    /* restoring stability overlay */
    .section-stability-overlay {
    padding: 72px 0px 40px;
    }

    .stability-photo-wrap {
        height: auto;
        border-top-right-radius: 48px;
    }

    .stability-card-overlay {
        position: static;
        transform: none;
        width: 100%;
        margin: 0 auto 32px;
        border-radius: 24px;
        box-shadow: 0 24px 60px rgba(0,0,0,0.28);
    }

    /* endocrine section */
    .section-endocrine-method {
        padding: 72px 0 40px;
        border-radius: 0px 60px 0px 0px;

    }

    .endocrine-inner {
        padding: 0 16px;
    }

    .endocrine-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .endocrine-image-wrap {
        position: static;
        width: 100%;

       
    }
/* hide dots by default (desktop) */
.endocrine-dots {
    display: none;
}
.footer-social img {
        width: 32px;
        height: 32px;
    }
/* ===== MOBILE CAROUSEL (≤ 768px) ===== */
@media (max-width: 768px) {

    /* make the grid a horizontal slider */
    .endocrine-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding: 8px 0 20px;
        -webkit-overflow-scrolling: touch;
    }

    /* hide scrollbar */
    .endocrine-grid::-webkit-scrollbar {
        display: none;
    }
    .endocrine-grid {
        scrollbar-width: none;
    }

    /* 3 cards visible per screen */
    .endocrine-card {
        flex: 0 0 calc((100% - 2 * 12px) / 2.3); /* 3 cards + 2 gaps */
        scroll-snap-align: start;
        display: flex;
        justify-content: center;
        border-radius:0px;
    }

    .endocrine-card img {
        width: 100%;
        height: auto;
      
        box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    }

    /* show dots only on mobile */
    .endocrine-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 4px;
    }

    .endocrine-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background-color: rgba(255,255,255,0.35);
    }

    .endocrine-dot.active {
        background-color: #ffffff;
    }
}

    /* FAQ */
    .faq-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* footer columns 2-per-row on tablet */
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 30px;
    }
}

/* =========================
   MOBILE / SMALL TABLET ≤ 768px
========================= */
@media (max-width: 768px) {

    .site-header-inner {
        padding: 10px 16px;
    }
.hero{
       border-radius:0px 0px 80px 0px;
}
    .hero-title {
        font-size: 34px;
        line-height: 1.25;
        padding-top: 40px;
        text-align: center;
    }

    .hero-content {
        padding-top: 140px;
        padding-bottom: 96px;
    }

    .intro-text,
    .intro-text .intro-strong {
        font-size: 25.2px;
        line-height: 1.6;
        text-align: center;
    }

    .moment-left {
        padding: 56px 24px;
        border-radius:0px 150px 0px 0px;
    }

    .stability-card-title {
        font-size: 26px;
        line-height: 1.3;
    }

    .endocrine-title {
        font-size: 28px;
        line-height: 1.25;
    }

    .endocrine-btn {
        width: 100%;
        padding-inline: 0;
        justify-content: center;
    }

    .faq-left h2 {
        font-size: 26px;
    }

    .footer-inner {
        padding-inline: 16px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================
   SMALL MOBILE ≤ 480px
========================= */
@media (max-width: 480px) {

    .hero-title {
        font-size: 26px;
        line-height: 1.3;
    }

    .hero-content {
        padding-top: 120px;
        padding-bottom: 72px;
    }

    .intro-inner {
        padding: 40px 16px;
    }

    .intro-avatar {
        width: 180px;
    }

    .hormonal-title {
        font-size: 26px;
        line-height: 1.2;
    }

    .moment-list li {
        font-size: 16px;
    }

    .stability-card-overlay {
        padding: 28px 22px;
    }

    .endocrine-grid {
        grid-template-columns: 1fr;
    }

    .faq-item summary {
        font-size: 16px;
    }

    .faq-item div {
        font-size: 16px;
    }

    .footer-social img {
        width: 32px;
        height: 32px;
    }
}
/* =============== HERO TITLE VISIBILITY CONTROL =============== */

/* DEFAULT — Desktop: hide mobile text completely */
.hero-title-mobile {
    display: none !important;
}

/* Show desktop text by default */
.hero-title-desktop {
    display: block !important;
}

/* =============== MOBILE (<= 768px) =============== */
@media (max-width: 768px) {

    /* Hide desktop text on mobile */
    .hero-title-desktop {
        display: none !important;
    }

    /* Show mobile text ONLY on mobile */
    .hero-title-mobile {
        display: block !important;
    }

    /* Mobile positioning */
    .hero-content {
        position: absolute;
        bottom: 14%;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        text-align: center;
        padding: 0 16px;
    }

    .hero-title-mobile {
         font-size: 28px;
        line-height: 40px;
        font-weight: 400;
        margin-top:-50px;
        letter-spacing: 0;
        text-shadow: 0 2px 10px rgba(0,0,0,0.45);
    }
}

/* =============== SMALL MOBILE (<= 480px) =============== */
@media (max-width: 480px) {
    .hero-title-mobile {
         font-size: 28px;
        line-height: 40px;
           margin-bottom: 130px !important;
        
    }
}

