/* ═══════════════════════════════ BASE STYLES ══════════════════════════════════ */
:root {
    --pink-bg: #FFF5F7;
    --pink-soft: #FFE4E9;
    --pink-primary: #FFB6C1;
    --pink-accent: #FF7FA5;
    --stone-900: #1c1917;
    --stone-600: #57534e;
    --stone-500: #78716c;
    --stone-400: #a8a29e;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

iframe {
    max-width: 100%;
}

body {
    background-color: var(--pink-bg);
    color: var(--stone-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════ TYPOGRAPHY ══════════════════════════════════ */
h1 {
    font-size: clamp(2.5rem, 8vw + 1rem, 7rem);
    line-height: clamp(0.9, 1vw + 0.8, 1);
}

h2 {
    font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
    line-height: 1.1;
}

h3 {
    font-size: clamp(1.25rem, 3vw + 0.5rem, 2.25rem);
}

p {
    font-size: clamp(1rem, 0.25vw + 0.9rem, 1.125rem);
}

.eyebrow {
    font-size: clamp(9px, 0.5vw + 8px, 11px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--pink-accent);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    display: block;
}

/* ═══════════════════════════ BUTTONS & INTERACTIVE ═══════════════════════════ */
.btn-premium-pink,
.btn-premium-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    min-height: 48px;
    /* Touch friendly */
    border-radius: 9999px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(0.75rem, 1vw + 0.5rem, 0.875rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    width: auto;
}

.btn-premium-pink {
    background-color: #ffffff;
    border: 1px solid var(--pink-soft);
    color: var(--pink-accent);
    box-shadow: 0 10px 15px -3px rgba(255, 127, 165, 0.1);
}

.btn-premium-pink:hover {
    background-color: var(--pink-accent);
    color: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(255, 127, 165, 0.3);
    transform: translateY(-2px);
}

.btn-premium-secondary {
    background-color: transparent !important;
    border: 1px solid var(--stone-200);
    color: var(--stone-600) !important;
    box-shadow: none;
}

.btn-premium-secondary:hover {
    background-color: var(--stone-100) !important;
    color: var(--stone-900) !important;
    transform: translateY(-2px);
}

/* ═══════════════════════════ COMPONENTS ══════════════════════════════════ */
.tm-card {
    background-color: white;
    border-radius: 1.5rem;
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid var(--pink-soft);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 360px;
    flex-shrink: 0;
}

.circle-mask {
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: clamp(8px, 2vw, 15px) solid var(--pink-soft);
    width: 100%;
    max-width: 500px;
}

/* ═══════════════════════════ BREAKPOINTS ══════════════════════════════════ */

/* --- Laptops (1024px to 1440px) --- */
@media (max-width: 1280px) {
    .max-w-7xl {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

/* --- Tablets (768px to 1024px) --- */
@media (max-width: 1024px) {
    .h-24 {
        height: 5rem;
    }

    header .h-24 {
        height: 5rem;
    }
}

/* --- Large Phones (480px to 768px) --- */
@media (max-width: 768px) {
    .grid-cols-1.md\:grid-cols-3 {
        gap: 2rem;
    }

    .py-32 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .py-24 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .btn-premium-pink,
    .btn-premium-secondary {
        width: 100%;
        /* Stack buttons on mobile if needed */
        max-width: 320px;
    }

    .circle-mask {
        max-width: 350px;
    }

    /* FAQ Refinement */
    .faq-header {
        padding: 1rem 1.5rem;
    }

    .faq-header h3 {
        font-size: 1rem;
    }

    /* ═══════════════════════════ FOOTER MOBILE OPTIMIZATION ═══════════════════════════ */
    footer {
        text-align: center !important;
    }

    footer .max-w-7xl>div:first-child {
        flex-direction: column !important;
        align-items: center !important;
        gap: 3.5rem !important;
    }

    /* Logo centering */
    footer .w-full.md\:w-1\/3 {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    footer .w-full.md\:w-1\/3 img {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Columns container */
    footer .w-full.md\:w-2\/3 {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 3.5rem !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Each column */
    footer .min-w-\[140px\] {
        width: 100% !important;
        min-width: unset !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    footer h4 {
        margin-bottom: 1.5rem !important;
        width: 100% !important;
    }

    footer nav {
        align-items: center !important;
        gap: 1.25rem !important;
        width: 100% !important;
    }

    footer nav a {
        display: block !important;
        text-align: center !important;
        padding: 0.5rem 0 !important;
    }

    /* Social icons centering */
    footer .flex.items-center.gap-4 {
        justify-content: center !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
    }

    /* Credits row */
    footer .mt-20.flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
        margin-top: 4rem !important;
        padding-top: 2.5rem !important;
        text-align: center !important;
        width: 100% !important;
    }

    footer .mt-20.flex div {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }

    /* General list centering reset */
    footer ul {
        padding: 0 !important;
        list-style: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
}

/* --- Mobile Phones (320px to 480px) --- */
@media (max-width: 480px) {
    .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: clamp(2rem, 12vw + 0.2rem, 3.2rem);
        letter-spacing: -0.02em;
    }

    h2 {
        font-size: clamp(1.75rem, 10vw + 0.2rem, 2.5rem);
    }

    .btn-premium-pink,
    .btn-premium-secondary {
        font-size: 0.65rem;
        letter-spacing: 0.05em;
        padding: 0.75rem 1.25rem;
        min-height: 44px;
    }

    .circle-mask {
        max-width: 100%;
        border-width: 4px;
    }

    /* Specific Mobile Spacing */
    .py-20,
    .py-24,
    .py-32 {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    section {
        overflow: hidden;
        /* Prevent any accidental overflow */
    }
}

/* ═══════════════════════════ UTILITIES & FIXES ═══════════════════════════════ */
/* Fix for the weight loss column stacking */
#weight-loss .grid {
    gap: 1.5rem;
}

#weight-loss .reveal {
    padding: 1.5rem;
}

/* Fix for the photo carousel containers */
#photo-carousel {
    height: clamp(320px, 45vw, 500px);
}

:root {
    --header-height: 5rem; /* 80px */
}

/* Header stays pure solid white with crisp contrast */
header {
    z-index: 1000 !important;
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    border-bottom: none !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
    height: var(--header-height) !important;
}

header > div {
    height: 100% !important;
}

.hero-main {
    padding-top: var(--header-height) !important;
    margin-top: 0 !important;
}

.mobile-menu {
    z-index: 1100 !important;
}

.dropdown-menu {
    z-index: 1050 !important;
}

/* Fix for overlapping header contents on extremely small widths */
header a img {
    max-height: clamp(3rem, 10vw, 4rem);
}

/* Prevent layout shift during animation */
.reveal {
    backface-visibility: hidden;
    will-change: transform, opacity;
}

/* Touch targets for mobile menu links */
.mobile-menu a {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Mobile header actions pinned strictly to right */
.mobile-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-left: auto !important;
}

@media (min-width: 1024px) {
    .mobile-header-actions {
        display: none !important;
    }
}

/* Compact and proportional services grid spacing */
#services-grid>div {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    #services-grid>div {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

/* Feature Icon Squircle Cards - Vibrant GlamGrin Pink & Crisp White Icons */
.feature-icon-box {
    width: 4.5rem !important;
    height: 4.5rem !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 22px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1.25rem auto !important;
    background: linear-gradient(135deg, #FF5C7A 0%, #DE4364 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 14px 28px rgba(222, 67, 100, 0.38), 0 4px 10px rgba(222, 67, 100, 0.22) !important;
    border: none !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease !important;
}

.feature-icon-box svg {
    width: 2rem !important;
    height: 2rem !important;
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
    stroke-width: 2.3 !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15)) !important;
}

.group:hover .feature-icon-box {
    transform: translateY(-4px) scale(1.08) !important;
    box-shadow: 0 20px 38px rgba(222, 67, 100, 0.5) !important;
}

@media (min-width: 768px) {
    .feature-icon-box {
        width: 5rem !important;
        height: 5rem !important;
        border-radius: 26px !important;
    }

    .feature-icon-box svg {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }
}

/* ══════════════════════════ STATS ONDEX SECTION (HIGH CONTRAST PINK GRADIENT & 2x2 GRID) ══════════════════════════ */
.stats-ondex-section {
    background: linear-gradient(135deg, #DE4364 0%, #C43355 50%, #9E1F3D 100%) !important;
    color: #FFFFFF !important;
    position: relative !important;
    overflow: hidden !important;
}

.stats-ondex-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    max-width: 80rem;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 1024px) {
    .stats-ondex-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 3.5rem !important;
    }

    .stats-ondex-left {
        width: 42% !important;
        flex-shrink: 0 !important;
    }

    .stats-ondex-right {
        width: 55% !important;
        flex-shrink: 0 !important;
    }
}

.stats-ondex-left h2 {
    color: #FFFFFF !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.stats-ondex-left p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
    font-weight: 400 !important;
}

.stats-ondex-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    width: 100% !important;
}

@media (min-width: 640px) {
    .stats-ondex-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

.stats-ondex-card {
    position: relative !important;
    background: rgba(0, 0, 0, 0.22) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 1.25rem !important;
    padding: 1.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 190px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}

.stats-ondex-card:hover {
    background: rgba(0, 0, 0, 0.32) !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
    transform: translateY(-3px) !important;
}

.stats-ondex-card .stat-number {
    color: #FFFFFF !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

.stats-ondex-card p {
    color: #FFFFFF !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    opacity: 1 !important;
}

.stats-corner-dot {
    position: absolute !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8) !important;
}
.stats-corner-dot.top-left { top: 0.85rem !important; left: 0.85rem !important; }
.stats-corner-dot.top-right { top: 0.85rem !important; right: 0.85rem !important; }
.stats-corner-dot.bottom-left { bottom: 0.85rem !important; left: 0.85rem !important; }
.stats-corner-dot.bottom-right { bottom: 0.85rem !important; right: 0.85rem !important; }