/* ═══════════════════════════════ 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(350px, 50vw, 600px);
}

/* 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: 1rem;
    padding-bottom: 1rem;
}
