/* ========================================
   Fitness Consciente — styles.css
   Minimal. Elegant. Conscious. Premium.
   ======================================== */

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

html {
    scroll-behavior: initial; /* Lenis handles smooth scroll */
}

/* ========================================
   Design Tokens
   ======================================== */
:root {
    --blush: #F2B8C6;
    --petal: #FDF0F3;
    --rose: #D4919F;
    --snow: #FEFCFD;
    --cloud: #FAF7F8;
    --espresso: #2D2226;
    --mauve: #7A6069;
    --dusty: #A3909A;
    --rose-gold: #C6A084;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'DM Sans', system-ui, sans-serif;

    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 100px;
    --space-3xl: 120px;

    --max-width: 1200px;
    --max-width-text: 680px;
}

/* ========================================
   Base Typography
   ======================================== */
body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--espresso);
    background-color: var(--snow);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    line-height: 1.2;
}

h1 {
    font-weight: 300;
    font-size: 36px;
    letter-spacing: -0.01em;
}

h2 {
    font-weight: 400;
    font-size: 28px;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-lg);
}

h3 {
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 0.01em;
    margin-bottom: var(--space-xs);
}

p {
    margin-bottom: var(--space-sm);
    color: var(--mauve);
}

a {
    color: var(--rose);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--espresso);
}

/* ========================================
   Layout
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: var(--max-width-text);
}

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

section {
    padding: var(--space-xl) 0;
}

.section-petal {
    background-color: var(--petal);
}

.section-dark {
    background-color: var(--espresso);
}

.section-dark h2,
.section-dark h3,
.section-dark p,
.section-dark .caption {
    color: var(--cloud);
}

.section-dark p {
    color: var(--dusty);
}

.section-dark .included-item {
    border-left-color: var(--rose);
}

.section-dark .included-item h3 {
    color: var(--snow);
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: var(--space-sm);
}

.section-dark .included-item.bonus h3 {
    color: var(--blush);
}

.section-dark .included-separator {
    background-color: var(--mauve);
}

.section-dark .img-reveal::after {
    background-color: var(--espresso);
}

/* ========================================
   Components
   ======================================== */

/* Label */
.label {
    display: inline-block;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: var(--space-md);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.08em;
    color: var(--espresso);
    background-color: var(--blush);
    border: none;
    border-radius: 100px;
    padding: 14px 36px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--rose);
    color: var(--snow);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 145, 159, 0.3);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 14px;
}

.btn-ghost {
    display: inline-block;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.08em;
    color: var(--mauve);
    background-color: transparent;
    border: 1.5px solid rgba(162, 138, 148, 0.35);
    border-radius: 100px;
    padding: 14px 36px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
}

.btn-ghost:hover {
    color: var(--espresso);
    border-color: var(--dusty);
    background-color: rgba(242, 184, 198, 0.08);
}

.btn-ghost.btn-sm {
    padding: 10px 24px;
    font-size: 14px;
}

.btn-lg {
    padding: 18px 48px;
    font-size: 16px;
}

/* Caption */
.caption {
    font-size: 14px;
    color: var(--dusty);
    margin-top: var(--space-sm);
}

/* ========================================
   Nav
   ======================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 252, 253, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(45, 34, 38, 0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 20px;
    color: var(--espresso);
    letter-spacing: 0.08em;
    text-decoration: none;
    line-height: 1.1;
}

.logo:hover {
    color: var(--espresso);
}

/* ========================================
   Hero
   ======================================== */
#hero {
    padding-top: calc(60px + var(--space-xl));
    padding-bottom: 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.hero-content {
    order: 1;
}

.hero-content h1 {
    margin-bottom: var(--space-md);
}

.hero-sub {
    font-size: 17px;
    margin-bottom: var(--space-lg);
    max-width: 480px;
}

.hero-image {
    order: 2;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-height: 500px;
    width: auto;
    object-fit: contain;
}

/* ========================================
   Text Reveal Animation
   ======================================== */
.reveal-text .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.reveal-text .word-inner {
    display: inline-block;
    transform: translateY(105%);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-text.revealed .word-inner {
    transform: translateY(0);
}

/* ========================================
   Image Clip-Path Reveal
   ======================================== */
.img-reveal {
    position: relative;
    overflow: hidden;
}

.img-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--blush);
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.9s cubic-bezier(0.77, 0, 0.18, 1);
    z-index: 1;
}

.img-reveal.revealed::after {
    transform: scaleX(0);
}

.img-reveal img {
    transform: scale(1.15);
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.img-reveal.revealed img {
    transform: scale(1);
}

/* ========================================
   Marquee
   ======================================== */
.marquee {
    padding: var(--space-lg) 0;
    overflow: hidden;
    background-color: var(--snow);
    border-top: 1px solid rgba(242, 184, 198, 0.2);
    border-bottom: 1px solid rgba(242, 184, 198, 0.2);
}

.marquee-track {
    display: flex;
    gap: var(--space-lg);
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    width: max-content;
}

.marquee-reverse .marquee-track {
    animation: marquee-reverse 25s linear infinite;
}

.marquee-track span {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 28px;
    color: var(--dusty);
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.marquee-dot {
    width: 6px;
    height: 6px;
    background-color: var(--blush);
    border-radius: 50%;
    display: inline-block;
    align-self: center;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ========================================
   Problem
   ======================================== */
#problem {
    padding: var(--space-xl) 0;
}

#problem h2 {
    margin-bottom: var(--space-md);
}

#problem p {
    font-size: 17px;
    line-height: 1.7;
}

.highlight {
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--rose);
    margin-top: var(--space-lg);
    font-size: 17px;
}

/* ========================================
   Pillars
   ======================================== */
#pillars {
    padding: var(--space-2xl) 0;
}

#pillars h2 {
    margin-bottom: var(--space-xl);
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.pillar {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
}

.pillar-number {
    display: block;
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 48px;
    color: var(--blush);
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.pillar h3 {
    color: var(--espresso);
}

.pillar p {
    max-width: 280px;
    margin: 0 auto;
    font-size: 15px;
}

/* ========================================
   Social Proof
   ======================================== */
#social-proof {
    padding: var(--space-xl) 0;
    background-color: var(--petal);
}

.proof-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
}

.proof-item {
    padding: var(--space-md);
}

.proof-number {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 56px;
    color: var(--espresso);
    line-height: 1;
}

.proof-suffix {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 36px;
    color: var(--rose);
}

.proof-item p {
    font-size: 15px;
    margin-top: var(--space-xs);
    margin-bottom: 0;
}

/* ========================================
   Included
   ======================================== */
#included {
    padding: var(--space-2xl) 0;
}

#included h2 {
    margin-bottom: var(--space-xl);
}

.included-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.included-item {
    padding-left: var(--space-md);
    border-left: 2px solid var(--blush);
    margin-bottom: var(--space-lg);
}

.included-item h3 {
    color: var(--espresso);
    font-size: 20px;
}

.included-item p {
    font-size: 15px;
    margin-bottom: 0;
}

.included-item.bonus h3 {
    color: var(--rose);
}

.included-subtitle {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: var(--space-xs);
}

.included-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.included-bullets li {
    font-size: 14px;
    color: var(--mauve);
    padding-left: 18px;
    position: relative;
    line-height: 1.6;
    margin-bottom: 4px;
}

.included-bullets li::before {
    content: '\2013';
    position: absolute;
    left: 0;
    color: var(--rose);
}

.section-dark .included-subtitle {
    color: var(--cloud);
}

.section-dark .included-bullets li {
    color: var(--dusty);
}

.section-dark .included-bullets li::before {
    color: var(--blush);
}

.included-separator {
    height: 1px;
    background-color: var(--blush);
    opacity: 0.4;
    margin: var(--space-md) 0;
}

.included-image {
    display: flex;
    justify-content: center;
}

.included-image img {
    max-height: 600px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* ========================================
   Testimonials
   ======================================== */
#testimonials {
    padding: var(--space-2xl) 0;
    background-color: var(--petal);
}

#testimonials h2 {
    margin-bottom: var(--space-xl);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.testimonial {
    background-color: var(--snow);
    border-radius: 12px;
    padding: var(--space-lg);
    border: 1px solid rgba(242, 184, 198, 0.2);
}

.testimonial-text {
    font-size: 16px;
    font-style: italic;
    line-height: 1.7;
    color: var(--mauve);
    margin-bottom: var(--space-sm);
}

.testimonial-text::before {
    content: '\201C';
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--blush);
    line-height: 0;
    vertical-align: -6px;
    margin-right: 4px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.testimonial-name {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 18px;
    color: var(--espresso);
}

.testimonial-age {
    font-size: 14px;
    color: var(--dusty);
}

.testimonial-age::before {
    content: '\2014\00a0';
}

/* ========================================
   About
   ======================================== */
#about {
    padding: var(--space-2xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.about-content .label {
    margin-bottom: var(--space-sm);
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: var(--space-md);
}

.about-content p {
    font-size: 16px;
    line-height: 1.7;
}

.about-content p:last-of-type {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    color: var(--rose);
    margin-top: var(--space-md);
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 15px;
    font-weight: 500;
    color: var(--rose);
    margin-top: var(--space-md);
    transition: color 0.3s ease;
}

.instagram-link:hover {
    color: var(--espresso);
}

/* ========================================
   Pricing
   ======================================== */
#pricing {
    padding: var(--space-2xl) 0 0;
}

.pricing-title {
    font-weight: 300;
    font-size: 36px;
}

.pricing-sub {
    font-size: 17px;
    margin-bottom: var(--space-lg);
}

.price {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 48px;
    color: var(--rose-gold);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.pricing-image {
    margin-top: var(--space-xl);
    display: flex;
    justify-content: center;
}

.pricing-image img {
    max-height: 500px;
    width: auto;
    object-fit: contain;
}

/* ========================================
   Floating CTA (mobile only)
   ======================================== */
#floating-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background-color: rgba(254, 252, 253, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(242, 184, 198, 0.3);
    padding: 12px var(--space-md);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#floating-cta.show {
    transform: translateY(0);
}

.floating-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 480px;
    margin: 0 auto;
}

.floating-price {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 24px;
    color: var(--rose-gold);
}

/* ========================================
   Footer
   ======================================== */
footer {
    background-color: var(--espresso);
    padding: var(--space-xl) 0;
}

.footer-brand {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 20px;
    color: var(--cloud);
    margin-bottom: var(--space-xs);
}

.footer-sub {
    font-size: 14px;
    color: var(--dusty);
    margin-bottom: var(--space-md);
}

.footer-ig {
    display: inline-flex;
    color: var(--dusty);
    transition: color 0.3s ease;
    margin-bottom: var(--space-md);
}

.footer-ig:hover {
    color: var(--cloud);
}

.footer-copy {
    font-size: 13px;
    color: var(--mauve);
}

/* ========================================
   Animations (scroll-triggered fade-in)
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Desktop (>768px)
   ======================================== */
@media (min-width: 769px) {

    /* Typography */
    h1 {
        font-size: 64px;
    }

    h2 {
        font-size: 42px;
    }

    h3 {
        font-size: 24px;
    }

    section {
        padding: var(--space-2xl) 0;
    }

    .container {
        padding: 0 var(--space-lg);
    }

    /* Nav */
    .nav-inner {
        height: 72px;
    }

    .logo {
        font-size: 24px;
    }

    /* Hero */
    #hero {
        padding-top: calc(72px + var(--space-3xl));
        padding-bottom: var(--space-xl);
    }

    .hero-grid {
        grid-template-columns: 55% 45%;
        gap: var(--space-xl);
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero-image img {
        max-height: 620px;
    }

    .hero-sub {
        font-size: 18px;
    }

    /* Marquee */
    .marquee-track span {
        font-size: 42px;
    }

    /* Problem */
    #problem {
        padding: var(--space-2xl) 0;
    }

    /* Pillars */
    .pillars-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    /* Social Proof */
    .proof-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: var(--space-xl);
    }

    .proof-number {
        font-size: 72px;
    }

    /* Included */
    .included-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
        align-items: start;
    }

    .included-image {
        position: sticky;
        top: 100px;
    }

    .included-image img {
        max-height: 700px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }

    /* About */
    .about-grid {
        grid-template-columns: 45% 55%;
        gap: var(--space-xl);
    }

    .about-content h2 {
        font-size: 42px;
    }

    /* Pricing */
    .pricing-title {
        font-size: 48px;
    }

    .price {
        font-size: 56px;
    }

    .pricing-image img {
        max-height: 600px;
    }
}

/* ========================================
   Mobile adjustments
   ======================================== */
@media (max-width: 768px) {
    /* Show floating CTA on mobile */
    #floating-cta {
        display: block;
    }

    /* Add bottom padding to body so footer isn't hidden behind floating CTA */
    footer {
        padding-bottom: calc(var(--space-xl) + 60px);
    }

    /* Reduce vertical padding on heavy sections */
    #pillars,
    #included,
    #testimonials,
    #about {
        padding: var(--space-xl) 0;
    }

    /* Tighter testimonial cards on mobile */
    .testimonial {
        padding: var(--space-md);
    }

    .testimonial-text {
        font-size: 15px;
    }

    /* Cap included image height on mobile */
    .included-image img {
        max-height: 420px;
    }

    /* Slightly smaller h3 in included for long titles */
    .included-item h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .btn-primary.btn-lg,
    .hero-content .btn-primary {
        display: block;
        width: 100%;
        text-align: center;
    }
}
