/* ============================================================
   SHANU QURAISHI — MAIN STYLESHEET
   Shared across the entire website. One source of truth.
   ============================================================ */

/* ============================================================
   1. RESET & TOKENS
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Surface */
    --bg: #f5f3ee;
    --bg-elev: #ffffff;
    --ink: #0d0d0d;
    --ink-2: #2a2a2a;
    --muted: #6b6b6b;
    --muted-2: #9a9a9a;
    --line: #e6e3da;

    /* Brand */
    --yellow: #ffd60a;
    --yellow-hover: #ffe55c;
    --yellow-soft: #fff7c2;
    --yellow-deep: #c79900;

    /* Dark */
    --black: #0a0a0a;
    --black-soft: #161616;

    /* Layout */
    --container: 1240px;
    --radius: 16px;
    --header-height: 76px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
}
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.serif {
    font-family: 'Fraunces', 'Georgia', serif;
    font-feature-settings: 'ss01';
    letter-spacing: -0.02em;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   2. SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   3. COMMON HEADER
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(245, 243, 238, 0.85);
    backdrop-filter: saturate(1.6) blur(18px);
    -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), padding 0.3s var(--ease-out);
}
.site-header.scrolled {
    border-bottom-color: var(--line);
    background: rgba(245, 243, 238, 0.95);
}
.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0;
    transition: padding 0.3s var(--ease-out);
}
.site-header.scrolled .header-inner { padding: 10px 0; }

.logo-link {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: 'Fraunces', serif;
    font-size: 22px; font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    transition: transform 0.3s var(--ease-out);
}
.logo-link:hover { transform: translateY(-1px); }
.logo-link img {
    width: 44px; height: 44px;
    object-fit: contain;
    transition: transform 0.5s var(--ease-out);
}
.logo-link:hover img { transform: rotate(15deg); }
.logo-name { line-height: 1; }
.logo-name .last { font-style: italic; font-weight: 400; }

.site-menu {
    display: flex; align-items: center; gap: 2px;
    list-style: none;
}
.site-menu > li { position: relative; }
.site-menu > li > a {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 10px 16px;
    font-size: 14.5px; font-weight: 500;
    color: var(--ink-2);
    border-radius: 100px;
    transition: all 0.25s var(--ease-out);
    position: relative;
}
.site-menu > li > a:not(.header-cta)::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: scale(0.92);
    transition: all 0.25s var(--ease-out);
    z-index: -1;
}
.site-menu > li > a:not(.header-cta):hover {
    color: var(--ink);
}
.site-menu > li > a:not(.header-cta):hover::before {
    opacity: 1;
    transform: scale(1);
}
.site-menu > li > a.active {
    color: var(--ink);
    font-weight: 600;
}
.site-menu > li > a.active::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 50%;
    transform: translateX(-50%);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--yellow-deep);
}
.site-menu > li.has-submenu > a > .chev {
    width: 6px; height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.25s var(--ease-out);
    display: inline-block;
}
.site-menu > li.has-submenu:hover > a > .chev {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.submenu {
    position: absolute; top: calc(100% + 8px); left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 14px; padding: 8px;
    min-width: 240px; list-style: none;
    box-shadow: 0 24px 56px rgba(0,0,0,0.12);
    opacity: 0; visibility: hidden;
    transition: all 0.3s var(--ease-out);
}
.site-menu > li.has-submenu:hover .submenu,
.site-menu > li.has-submenu:focus-within .submenu {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.submenu li { list-style: none; }
.submenu a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px;
    font-size: 14px; color: var(--ink-2);
    border-radius: 8px;
    transition: all 0.2s var(--ease-out);
}
.submenu a::after {
    content: '→';
    color: var(--yellow-deep);
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.25s var(--ease-out);
}
.submenu a:hover {
    background: var(--bg);
    color: var(--ink);
    padding-left: 18px;
}
.submenu a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.header-cta {
    background: var(--ink) !important;
    color: var(--bg) !important;
    padding: 11px 20px !important;
    border-radius: 100px !important;
    font-weight: 500 !important;
    transition: all 0.3s var(--ease-out) !important;
    margin-left: 8px;
    position: relative;
    overflow: hidden;
}
.header-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--yellow);
    transform: translateY(100%);
    transition: transform 0.3s var(--ease-out);
    z-index: -1;
}
.header-cta:hover {
    color: var(--ink) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 214, 10, 0.4);
}
.header-cta:hover::before { transform: translateY(0); }

.mobile-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid var(--ink);
    width: 44px; height: 44px;
    border-radius: 50%;
    color: var(--ink);
    align-items: center; justify-content: center;
    font-size: 16px;
    transition: all 0.25s var(--ease-out);
}
.mobile-toggle:hover {
    background: var(--ink);
    color: var(--yellow);
}

/* Mobile drawer */
.mobile-drawer {
    position: fixed; top: 0; right: -100%;
    width: 88%; max-width: 380px;
    height: 100vh; height: 100dvh;
    background: var(--bg-elev);
    z-index: 200;
    padding: 28px 24px;
    transition: right 0.45s var(--ease-out);
    box-shadow: -20px 0 60px rgba(0,0,0,0.15);
    overflow-y: auto;
}
.mobile-drawer.open { right: 0; }
.mobile-drawer-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 32px;
}
.mobile-drawer-head .logo-link img { width: 38px; height: 38px; }
.mobile-drawer-head .logo-link { font-size: 18px; gap: 10px; }
.mobile-drawer-close {
    background: var(--bg); border: 1px solid var(--line);
    width: 40px; height: 40px; border-radius: 50%;
    color: var(--ink); font-size: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.25s var(--ease-out);
}
.mobile-drawer-close:hover {
    background: var(--ink); color: var(--yellow);
    transform: rotate(90deg);
}
.mobile-drawer ul { list-style: none; }
.mobile-drawer > ul > li { border-bottom: 1px solid var(--line); }
.mobile-drawer > ul > li > a {
    display: block; padding: 18px 0;
    font-family: 'Fraunces', serif;
    font-size: 22px; color: var(--ink);
    transition: color 0.2s, padding 0.25s var(--ease-out);
}
.mobile-drawer > ul > li > a:hover {
    color: var(--yellow-deep);
    padding-left: 6px;
}
.mobile-drawer .submenu-mobile { padding: 0 0 16px 18px; }
.mobile-drawer .submenu-mobile a {
    font-family: 'Inter', sans-serif;
    font-size: 15px; padding: 8px 0;
    color: var(--muted);
    transition: all 0.2s var(--ease-out);
}
.mobile-drawer .submenu-mobile a:hover {
    color: var(--ink);
    padding-left: 6px;
}
.drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
    opacity: 0; visibility: hidden;
    transition: all 0.35s var(--ease-out);
    backdrop-filter: blur(4px);
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 28px;
    border-radius: 100px;
    font-size: 15px; font-weight: 500;
    font-family: inherit;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn .arrow {
    transition: transform 0.3s var(--ease-out);
    display: inline-block;
}
.btn-primary {
    background: var(--ink);
    color: var(--bg);
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--yellow);
    transform: translateY(100%);
    transition: transform 0.35s var(--ease-out);
    z-index: -1;
}
.btn-primary:hover {
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 214, 10, 0.35);
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-ghost::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease-out);
    z-index: -1;
}
.btn-ghost:hover {
    color: var(--bg);
    transform: translateY(-2px);
}
.btn-ghost:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-yellow {
    background: var(--yellow);
    color: var(--ink);
}
.btn-yellow:hover {
    background: var(--ink);
    color: var(--yellow);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.btn-yellow:hover .arrow { transform: translateX(4px); }

/* ============================================================
   5. SECTION BASE
   ============================================================ */
.section {
    padding: 120px 0;
    position: relative;
}
.section-dark { background: var(--black); color: white; }
.section-soft { background: var(--bg-elev); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 600;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}
.eyebrow .line { width: 30px; height: 1px; background: currentColor; }
.section-dark .eyebrow { color: var(--yellow); }

.h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(34px, 4.5vw, 58px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
    max-width: 820px;
}
.h2 em { font-style: italic; color: var(--yellow-deep); }
.section-dark .h2 { color: white; }
.section-dark .h2 em { color: var(--yellow); }
.intro {
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 620px;
}
.section-dark .intro { color: #aaa; }

/* ============================================================
   6. FOUNDER STRIP (shared)
   ============================================================ */
.founder-strip {
    background: var(--ink);
    color: white;
    padding: 26px 0;
    overflow: hidden;
}
.founder-strip-inner {
    display: flex; align-items: center; gap: 40px;
    flex-wrap: wrap; justify-content: center;
    font-size: 13.5px; color: #d0d0d0;
}
.founder-strip-item {
    display: inline-flex; align-items: center; gap: 10px;
}
.founder-strip-item i { color: var(--yellow); font-size: 14px; }
.founder-strip-item b { color: white; font-weight: 600; }

/* ============================================================
   7. FINAL CTA (shared)
   ============================================================ */
.final-cta {
    background: var(--black);
    padding: 110px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.final-cta::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(255, 214, 10, 0.1) 0%, transparent 60%);
    pointer-events: none;
}
.final-cta h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(34px, 5.5vw, 64px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    position: relative;
}
.final-cta h2 em { font-style: italic; color: var(--yellow); }
.final-cta p {
    font-size: 18px;
    color: #aaa;
    max-width: 560px;
    margin: 0 auto 36px;
    position: relative;
}
.final-cta .btns {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
}
.final-cta .btn-primary {
    background: var(--yellow);
    color: var(--ink);
}
.final-cta .btn-primary::before { background: white; }
.final-cta .btn-primary:hover { color: var(--ink); }
.final-cta .btn-ghost {
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}
.final-cta .btn-ghost::before { background: white; }
.final-cta .btn-ghost:hover {
    color: var(--ink);
    border-color: white;
}

/* ============================================================
   8. COMMON FOOTER
   ============================================================ */
.site-footer {
    background: var(--black);
    color: #888;
    padding: 80px 0 30px;
    position: relative;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand-area .footer-logo {
    display: inline-flex; align-items: center; gap: 12px;
    margin-bottom: 22px;
}
.footer-brand-area .footer-logo img {
    width: 44px; height: 44px; object-fit: contain;
}
.footer-brand-area .footer-logo-text {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    color: white;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
}
.footer-brand-area .footer-logo-text span { color: var(--yellow); font-style: italic; }
.footer-tagline {
    font-size: 15px;
    color: #999;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 360px;
}
.footer-newsletter-label {
    font-size: 12px;
    color: #888;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
}
.footer-newsletter {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    padding: 6px;
    max-width: 380px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.25s var(--ease-out);
}
.footer-newsletter:focus-within { border-color: var(--yellow); }
.footer-newsletter input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 18px;
    color: white;
    font-family: inherit;
    font-size: 14px;
}
.footer-newsletter input::placeholder { color: #666; }
.footer-newsletter button {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--yellow);
    border: none;
    color: var(--ink);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}
.footer-newsletter button:hover {
    background: white;
    transform: rotate(45deg);
}
.footer-col-title {
    color: white;
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    color: #999;
    font-size: 14.5px;
    transition: all 0.25s var(--ease-out);
    display: inline-block;
    position: relative;
}
.footer-col ul li a::before {
    content: '→';
    position: absolute;
    left: -16px;
    opacity: 0;
    transition: all 0.25s var(--ease-out);
    color: var(--yellow);
}
.footer-col ul li a:hover {
    color: var(--yellow);
    padding-left: 16px;
}
.footer-col ul li a:hover::before {
    left: 0;
    opacity: 1;
}
.footer-address {
    color: #999;
    font-size: 14px;
    line-height: 1.7;
}
.footer-address b {
    color: white;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}
.footer-address a { transition: color 0.2s; }
.footer-address a:hover { color: white !important; }

.footer-bottom {
    padding-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
}
.footer-socials { display: flex; gap: 10px; }
.footer-social {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
    transition: all 0.3s var(--ease-out);
    border: 1px solid transparent;
}
.footer-social:hover {
    background: var(--yellow);
    color: var(--ink);
    transform: translateY(-3px) rotate(-6deg);
}
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a {
    transition: color 0.2s;
}
.footer-legal-links a:hover { color: var(--yellow); }

/* ============================================================
   9. MOBILE STICKY ENQUIRY BAR (course pages)
   ============================================================ */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 16px; left: 16px; right: 16px;
    background: var(--ink);
    color: white;
    padding: 12px 16px 12px 18px;
    z-index: 90;
    border-radius: 100px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(120%);
    transition: transform 0.4s var(--ease-out);
}
.mobile-sticky-cta.visible { transform: translateY(0); }
.mobile-sticky-cta .info { display: flex; align-items: center; gap: 12px; }
.mobile-sticky-cta .info-img {
    width: 38px; height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--yellow);
    flex-shrink: 0;
}
.mobile-sticky-cta .info-img img { width: 100%; height: 100%; object-fit: cover; }
.mobile-sticky-cta .info-text { font-size: 12px; line-height: 1.3; }
.mobile-sticky-cta .info-text b {
    color: var(--yellow);
    font-weight: 600;
    display: block;
    font-size: 13px;
}
.mobile-sticky-cta a {
    background: var(--yellow);
    color: var(--ink);
    padding: 10px 16px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.25s var(--ease-out);
    flex-shrink: 0;
}
.mobile-sticky-cta a:hover {
    background: white;
}

/* ============================================================
   10. RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .site-menu { display: none; }
    .header-cta { display: none; }
    .mobile-toggle { display: inline-flex; }

    .section { padding: 80px 0; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-newsletter { max-width: 100%; }
}

@media (max-width: 600px) {
    .header-inner { padding: 12px 0; }
    .logo-link { font-size: 18px; gap: 10px; }
    .logo-link img { width: 38px; height: 38px; }
    .site-header.scrolled .header-inner { padding: 8px 0; }

    .founder-strip {
        padding: 20px 0;
        white-space: nowrap;
    }
    .founder-strip-inner {
        gap: 28px;
        justify-content: flex-start;
        animation: marquee 28s linear infinite;
        flex-wrap: nowrap;
    }
    @keyframes marquee {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }

    body.has-mobile-cta { padding-bottom: 80px; }
}
