/* ============================================================
   MOVEMENT BY MAYA — STYLES
   Design system mirroring Deep Retreats aesthetic
   ============================================================ */

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

/* ── Variables ──────────────────────────────────────────── */
:root {
    --cream:    #f6f4ea;
    --beige:    #faf9f4;
    --sand:     #e5dfd2;
    --stone:    #d1c9ba;
    --green-dk: #3d2c24;
    --green:    #a87c5f;
    --charcoal: #303030;
    --muted:    rgba(48,48,48,0.55);
    --border:   rgba(0,0,0,0.12);
    --white:    #ffffff;

    --font-display: 'Instrument Serif', serif;
    --font-body:    'Inter', sans-serif;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--charcoal);
    background: var(--beige);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Container ──────────────────────────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s var(--ease-out);
}
.nav.scrolled {
    background: rgba(250,249,244,0.96);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}
.nav-logo {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--white);
    transition: color 0.3s;
    letter-spacing: 0.01em;
}
.nav.scrolled .nav-logo { color: var(--charcoal); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.nav-link {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.88);
    position: relative;
    transition: color 0.2s;
}
.nav.scrolled .nav-link { color: var(--charcoal); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: currentColor;
    transition: width 0.3s var(--ease-out);
}
.nav-link:hover::after { width: 100%; }
.nav-link-cta {
    background: var(--green-dk);
    color: var(--white) !important;
    padding: 0.6rem 1.25rem;
}
.nav-link-cta::after { display: none; }
.nav-link-cta:hover { background: #2d1f18; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: background 0.3s;
}
.nav.scrolled .nav-toggle span { background: var(--charcoal); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-media {
    position: absolute;
    inset: 0;
}
.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(61,44,36,0.5) 0%, rgba(61,44,36,0.28) 100%);
}
.hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 60%;
    animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.1); }
}
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 2rem;
}
.hero-eyebrow {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.25rem;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.3s forwards;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 12vw, 8.5rem);
    font-weight: 400;
    line-height: 1;
    color: var(--white);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}
.hero-title em { font-style: italic; }
.hero-subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255,255,255,0.88);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.7s forwards;
}
.hero .btn {
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.9s forwards;
}
.hero-scroll {
    position: absolute;
    bottom: 3rem; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.7);
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 1.2s forwards;
}
.hero-scroll span {
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.hero-scroll-line {
    width: 1px; height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    padding: 0.875rem 1.75rem;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    border: none;
}
.btn-light {
    background: var(--white);
    color: var(--charcoal);
    border: 1px solid var(--white);
}
.btn-light:hover {
    background: transparent;
    color: var(--white);
}
.btn-dark {
    background: var(--green-dk);
    color: var(--white);
    border: 1px solid var(--green-dk);
}
.btn-dark:hover { background: #2d1f18; border-color: #2d1f18; }
.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border: 1px solid var(--charcoal);
}
.btn-outline:hover {
    background: var(--charcoal);
    color: var(--white);
}

/* ── Section shared ─────────────────────────────────────── */
.section { padding: 7rem 0; }
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--charcoal);
    margin-bottom: 1rem;
}
.section-title em { font-style: italic; }
.section-subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 520px;
    line-height: 1.65;
}

/* ── About ──────────────────────────────────────────────── */
.about { background: var(--beige); }
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}
.about-photo-wrap {
    position: relative;
}
.about-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center top;
}
.about-photo-label {
    position: absolute;
    bottom: -20px; right: -20px;
    background: var(--cream);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--green);
    max-width: 200px;
    line-height: 1.5;
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}
.about-text { padding-top: 1rem; }
.about-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--charcoal);
    margin: 1.75rem 0 2rem;
}
.about-body p + p { margin-top: 1rem; }
.about-certs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}
.cert-badge {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-dk);
    background: rgba(61,44,36,0.07);
    padding: 0.4rem 0.875rem;
    border: 1px solid rgba(61,44,36,0.15);
}

/* ── Services ───────────────────────────────────────────── */
.services { background: var(--cream); }
.services-header { margin-bottom: 4rem; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
.service-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    transition: background 0.3s;
}
.service-card:hover { background: var(--green-dk); }
.service-card:hover .service-title,
.service-card:hover .service-body,
.service-card:hover .service-label { color: var(--white); }
.service-card:hover .service-link { color: rgba(255,255,255,0.7); }
.service-label {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1.25rem;
    transition: color 0.3s;
}
.service-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 1rem;
    transition: color 0.3s;
}
.service-title em { font-style: italic; }
.service-body {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 2rem;
    transition: color 0.3s;
}
.service-link {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal);
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: color 0.3s;
}

/* ── Teacher Training ───────────────────────────────────── */
.training { background: var(--green-dk); color: var(--white); }
.training .section-eyebrow { color: rgba(255,255,255,0.55); }
.training .section-title { color: var(--white); }
.training .section-subtitle { color: rgba(255,255,255,0.65); }
.training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 4rem;
}
.training-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 3rem 2.5rem;
    transition: background 0.3s;
}
.training-card:hover { background: rgba(255,255,255,0.1); }
.training-hours {
    font-size: 3.5rem;
    font-family: var(--font-display);
    font-weight: 400;
    color: rgba(255,255,255,0.2);
    line-height: 1;
    margin-bottom: 1.5rem;
}
.training-name {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 0.875rem;
}
.training-name em { font-style: italic; }
.training-desc {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.6);
    margin-bottom: 2rem;
}
.training-detail {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

/* ── Retreats teaser ────────────────────────────────────── */
.retreats-teaser { background: var(--beige); }
.retreats-teaser-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.retreats-image-stack {
    position: relative;
    height: 500px;
}
.stack-img {
    position: absolute;
    object-fit: cover;
    box-shadow: 0 12px 40px rgba(0,0,0,0.13);
}
.stack-img-1 {
    width: 75%; height: 70%;
    top: 0; left: 0;
}
.stack-img-2 {
    width: 60%; height: 55%;
    bottom: 0; right: 0;
    border: 8px solid var(--white);
}
.retreats-teaser-text .section-subtitle { max-width: none; margin-bottom: 2.5rem; }

/* ── Polaroid testimonials ──────────────────────────────── */
.testimonials { background: var(--sand); overflow: hidden; }
.testimonials-header { margin-bottom: 4rem; }
.polaroids-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.polaroid {
    background: linear-gradient(145deg, #f7f4eb 0%, #ede7d9 100%);
    padding: 14px 14px 56px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    position: relative;
    flex: 0 0 auto;
    width: 280px;
    transition: transform 0.35s var(--ease-out);
}
.polaroid::before {
    content: '';
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%) rotate(-1.5deg);
    width: 70px; height: 22px;
    background: rgba(255,255,255,0.72);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.polaroid:nth-child(1) { transform: rotate(-2.5deg); }
.polaroid:nth-child(2) { transform: rotate(1.5deg); }
.polaroid:nth-child(3) { transform: rotate(-1deg); }
.polaroid:nth-child(1):hover { transform: rotate(-2.5deg) translateY(-8px) scale(1.02); }
.polaroid:nth-child(2):hover { transform: rotate(1.5deg) translateY(-8px) scale(1.02); }
.polaroid:nth-child(3):hover { transform: rotate(-1deg) translateY(-8px) scale(1.02); }
.polaroid-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center top;
}
.polaroid-quote {
    position: absolute;
    bottom: 12px; left: 14px; right: 14px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.8125rem;
    color: var(--charcoal);
    line-height: 1.45;
    text-align: center;
}

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-section {
    background: var(--green-dk);
    padding: 7rem 0;
    text-align: center;
}
.cta-eyebrow {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.25rem;
}
.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.cta-title em { font-style: italic; }
.cta-subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 3rem;
}
.cta-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-white {
    background: var(--white);
    color: var(--green-dk);
    border: 1px solid var(--white);
}
.btn-white:hover { background: var(--cream); border-color: var(--cream); }
.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
    background: #1e1e1e;
    color: var(--white);
    padding: 5rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
.footer-logo {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.375rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}
.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.75rem;
}
.footer-social {
    display: flex;
    gap: 0.75rem;
}
.footer-social a {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.18);
    transition: all 0.2s;
}
.footer-social a:hover { background: var(--green); border-color: var(--green); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-newsletter p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.newsletter-form input {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border 0.2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus { border-color: rgba(255,255,255,0.4); }
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.35);
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .about-layout { grid-template-columns: 1fr; gap: 3rem; }
    .about-photo { aspect-ratio: 16/9; }
    .about-photo-label { display: none; }
    .retreats-teaser-inner { grid-template-columns: 1fr; gap: 3rem; }
    .retreats-image-stack { height: 340px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--beige); border-bottom: 1px solid var(--border); padding: 1rem 0; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .nav-link { color: var(--charcoal) !important; padding: 0.875rem 2rem; width: 100%; }
    .nav-link-cta { margin: 0.5rem 2rem; width: auto; }
    .nav-inner { position: relative; }
    .services-grid { grid-template-columns: 1fr; }
    .training-grid { grid-template-columns: 1fr; }
    .training-waitlist-grid { grid-template-columns: 1fr !important; }
    .section { padding: 5rem 0; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 3.25rem; }
    .polaroids-row { flex-direction: column; align-items: center; }
    .polaroid { width: 85%; }
    .cta-actions { flex-direction: column; align-items: center; }
}
@media (max-width: 768px) {
    .testimonials .container > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}
