@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&display=swap');

:root {
    --bg-dark: #1a1410;
    --bg-light: #FAF0E6;
    --terracotta: #A0522D;
    --terracotta-light: #c47a50;
    --contrast-green: #77AD78;
    --text-cream: #FAF0E6;
    --text-dark: #2c1e14;
    --text-muted: #8a7a6e;
    --font-serif: "Playfair Display", serif;
    --font-sans: "Inter", sans-serif;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Let Lenis handle smooth scrolling to avoid conflicts */
    scroll-behavior: auto !important;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =============================================
   GRAIN OVERLAY
   ============================================= */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    mix-blend-mode: overlay;
}

.grain-overlay::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -10%);
    }

    20% {
        transform: translate(-15%, 5%);
    }

    30% {
        transform: translate(7%, -25%);
    }

    40% {
        transform: translate(-5%, 25%);
    }

    50% {
        transform: translate(-15%, 10%);
    }

    60% {
        transform: translate(15%, 0%);
    }

    70% {
        transform: translate(0%, 15%);
    }

    80% {
        transform: translate(3%, 35%);
    }

    90% {
        transform: translate(-10%, 10%);
    }
}

/* =============================================
   NAVIGATION
   ============================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 400;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    opacity: 1;
}

/* =============================================
   HERO — SCROLL-PINNED SECTION
   ============================================= */
.hero-scroll-container {
    position: relative;
    height: 400vh;
    padding: 0;
}

.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: var(--terracotta);
    will-change: transform;
}

.hero-image-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 620px;
    overflow: hidden;
    z-index: 1;
    will-change: transform;
}

.hero-image-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05);
    transition: transform 0.3s ease-out;
}

.hero-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.hero-text-1 h1 {
    font-family: var(--font-sans);
    font-size: clamp(3.5rem, 11vw, 9rem);
    font-weight: 700;
    line-height: 0.9;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--text-cream);
    will-change: opacity, filter;
}

.hero-text-2 {
    opacity: 0;
    align-items: flex-end;
    padding-bottom: 8vh;
}

.hero-text-2 h1 {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 11vw, 9rem);
    font-weight: 400;
    line-height: 0.9;
    text-align: center;
    letter-spacing: -0.02em;
    font-style: italic;
    color: var(--text-cream);
    will-change: opacity, filter, transform;
}

.hero-subtitle {
    position: absolute;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    opacity: 0;
    will-change: opacity, transform;
}

.hero-subtitle p {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.8;
    color: var(--text-cream);
    opacity: 0.85;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll-hint span {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-cream);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-cream), transparent);
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.2;
        transform: translateX(-50%) translateY(8px);
    }
}

/* =============================================
   GENERAL SECTION STYLES
   ============================================= */
section {
    padding: 0;
    position: relative;
}

.hero-scroll-container {
    padding: 0;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8rem 4rem;
}

.section-dark {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.section-light {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2.5rem;
    opacity: 0.5;
    font-weight: 400;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.1;
}

.section-tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 3rem;
    color: var(--contrast-green);
    font-weight: 500;
}

/* =============================================
   WORD-BY-WORD SCROLL HIGHLIGHT
   ============================================= */
.word-highlight-text {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 2.5rem;
    max-width: 800px;
    color: var(--text-dark);
}

.word-highlight-text .word {
    opacity: 0.15;
    transition: opacity 0.1s ease;
    display: inline-block;
    margin-right: 0.3em;
}

.dark-text .word {
    color: var(--text-dark);
}

.highlight-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.6;
    font-weight: 400;
    font-style: italic;
    margin: 2.5rem 0;
    padding-left: 1.5rem;
    border-left: 1px solid var(--terracotta);
    max-width: 700px;
}

.highlight-quote .word {
    opacity: 0.15;
    transition: opacity 0.1s ease;
    display: inline-block;
    margin-right: 0.3em;
}

/* =============================================
   DECORATIVE QUOTE STRIPS
   ============================================= */
.decorative-quote-strip {
    background-color: var(--terracotta);
    padding: 3rem 4rem;
    text-align: center;
    overflow: hidden;
}

.decorative-quote-strip span {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-style: italic;
    color: var(--text-cream);
    letter-spacing: 0.02em;
    opacity: 0.9;
}

.decorative-quote-strip.alt {
    background-color: var(--bg-light);
    border-top: 1px solid rgba(44, 30, 20, 0.08);
    border-bottom: 1px solid rgba(44, 30, 20, 0.08);
}

.decorative-quote-strip.alt span {
    color: var(--terracotta-light);
}

/* =============================================
   STATS BAR (Course Details)
   ============================================= */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 3rem 0 4rem;
    border-top: 1px solid rgba(44, 30, 20, 0.12);
    border-bottom: 1px solid rgba(44, 30, 20, 0.12);
    padding: 2rem 0;
}

.stat {
    flex: 1;
    text-align: center;
    padding: 0 2rem;
    border-right: 1px solid rgba(44, 30, 20, 0.1);
}

.stat:last-child {
    border-right: none;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--contrast-green);
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* =============================================
   CARD GRID
   ============================================= */
.subsection-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 400;
    color: var(--text-dark);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.card {
    background-color: rgba(44, 30, 20, 0.04);
    border: 1px solid rgba(44, 30, 20, 0.1);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    transition: var(--transition-smooth);
}

.card:hover {
    background-color: rgba(119, 173, 120, 0.08);
    border-color: var(--contrast-green);
    transform: translateY(-3px);
}

.card h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 300;
}

/* =============================================
   CTA BUTTON
   ============================================= */
.cta-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--terracotta);
    color: var(--text-cream);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    border: 2px solid var(--terracotta);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cta-button:hover {
    background-color: var(--contrast-green);
    border-color: var(--contrast-green);
    color: var(--text-cream);
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-layout {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    margin-top: 1rem;
}

.about-image {
    width: 40%;
    flex-shrink: 0;
}

.about-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: grayscale(30%) contrast(1.05);
    border-radius: 4px;
}

.about-content {
    flex: 1;
    padding-top: 1rem;
}

.credentials {
    list-style: none;
    margin-top: 2rem;
    padding: 0;
}

.credentials li {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(44, 30, 20, 0.1);
    letter-spacing: 0.03em;
    font-weight: 300;
    color: var(--text-dark);
    opacity: 0.85;
}

.credentials li:first-child {
    border-top: 1px solid rgba(44, 30, 20, 0.1);
}

.decorative-inline {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-style: italic;
    text-align: center;
    margin-top: 4rem;
    color: var(--contrast-green);
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.section-contact {
    background-color: var(--terracotta);
    color: var(--text-cream);
}

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

.contact-inner .section-heading {
    color: var(--text-cream);
    font-size: clamp(3rem, 7vw, 6rem);
    margin-bottom: 1.5rem;
}

.contact-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.85;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0;
}

.form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    opacity: 0.7;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(250, 240, 230, 0.25);
    border-radius: 6px;
    color: var(--text-cream);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(250, 240, 230, 0.35);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--text-cream);
    background-color: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .cta-button {
    width: 100%;
    background-color: var(--text-cream);
    color: var(--terracotta);
    border-color: var(--text-cream);
    margin-top: 0.5rem;
}

.contact-form .cta-button:hover {
    background-color: var(--contrast-green);
    color: var(--text-cream);
    border-color: var(--contrast-green);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background-color: var(--bg-light);
    border-top: 1px solid rgba(44, 30, 20, 0.06);
    color: var(--text-dark);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 4rem 2rem;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--terracotta-light);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copy {
    margin-top: 2rem;
    font-size: 0.7rem;
    opacity: 0.3;
    letter-spacing: 0.05em;
}

/* =============================================
   SCROLL REVEAL UTILITY
   ============================================= */
.scroll-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    background-color: #1ebe57;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }


    nav {
        padding: 1rem 1.5rem;
        background-color: var(--bg-light);
        mix-blend-mode: normal;
        border-bottom: 1px solid rgba(44, 30, 20, 0.05);
    }

    .logo {
        color: var(--text-dark);
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-links a {
        font-size: 0.65rem;
        color: var(--text-dark);
        opacity: 0.7;
    }

    .section-inner {
        padding: 7rem 1.5rem 5rem;
    }

    .section-heading {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .word-highlight-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-sticky {
        height: 100vh;
    }

    .hero-text-1 h1,
    .hero-text-2 h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-text-2 {
        padding-bottom: 15vh;
    }

    .hero-subtitle {
        bottom: 8vh;
        width: 80%;
    }

    .hero-subtitle p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .hero-image-layer {
        width: 260px;
        height: 380px;
    }

    .stats-bar {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat {
        border-right: none;
        border-bottom: 1px solid rgba(44, 30, 20, 0.1);
        padding-bottom: 1.5rem;
    }

    .stat:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .about-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .about-image {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .decorative-quote-strip {
        padding: 2rem 1.5rem;
    }
}