/* ============================================================
   BASE RESET & TYPOGRAPHY
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --black:      #0d0d0d;
    --white:      #ffffff;
    --off-white:  #f7f5f2;
    --red:        #c0392b;
    --gray-light: #e8e5e1;
    --gray-mid:   #666;
    --gray-dark:  #333;
    --max-width:  880px;
    --nav-height: 60px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 19px;
    line-height: 1.7;
    color: var(--black);
    background: var(--white);
}

h1, h2, h3 {
    font-family: 'DM Serif Display', serif;
    line-height: 1.25;
}

a {
    color: var(--red);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    height: var(--nav-height);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    color: var(--black);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--black);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}

.nav-links a:hover {
    color: var(--red);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all 0.2s;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.page-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    padding: 64px 24px 56px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 48px;
    align-items: start;
}

.hero-text h1 {
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    margin-bottom: 8px;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--gray-dark);
    margin-bottom: 10px;
}

.hero-subheading {
    color: var(--gray-dark);
    font-size: 1.1rem;
    margin-bottom: 28px;
}

.text-red {
    color: var(--red);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.hero-image img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--red);
}

/* ============================================================
   CAPTURE BOX
   ============================================================ */
.capture-box {
    border: 2px solid var(--red);
    border-radius: 6px;
    padding: 24px;
    margin-top: 4px;
}

.capture-box p {
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.capture-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.capture-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    background: var(--white);
    color: var(--black);
    outline: none;
    transition: border-color 0.15s;
}

.capture-form input[type="email"]:focus {
    border-color: var(--gray-mid);
}

.capture-form button {
    width: 100%;
    padding: 13px 20px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.capture-form button:hover {
    opacity: 0.88;
}

.capture-form button:disabled {
    opacity: 0.6;
    cursor: default;
}

.form-error {
    color: var(--red);
    font-size: 0.88rem;
    margin-top: 4px;
    display: none;
}

.form-confirmation {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--gray-dark);
    padding: 4px 0;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section {
    padding: 56px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    border-top: 1px solid var(--gray-light);
}

.content-section h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.2rem);
    margin-bottom: 32px;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.timeline-entry {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 20px;
    align-items: start;
}

.timeline-year {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: var(--red);
    padding-top: 2px;
    white-space: nowrap;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.timeline-content ul {
    padding-left: 18px;
    margin-bottom: 16px;
}

.timeline-content ul li {
    margin-bottom: 6px;
    font-size: 0.97rem;
}

.timeline-image {
    margin-top: 16px;
}

.timeline-image img {
    border-radius: 6px;
    max-width: 360px;
    width: 100%;
}

.timeline-image figcaption {
    font-size: 0.92rem;
    color: var(--gray-mid);
    margin-top: 6px;
    font-style: italic;
}

/* ============================================================
   BULLET LISTS (cool/uncool sections)
   ============================================================ */
.fact-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fact-list li {
    padding-left: 20px;
    position: relative;
    font-size: 0.97rem;
}

.fact-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gray-mid);
}

/* ============================================================
   FINAL CTA SECTION
   ============================================================ */
.cta-section {
    padding: 56px 24px 72px;
    max-width: var(--max-width);
    margin: 0 auto;
    border-top: 1px solid var(--gray-light);
}

.cta-section h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.2rem);
    margin-bottom: 10px;
}

.cta-section .cta-sub {
    color: var(--gray-dark);
    font-size: 0.97rem;
    margin-bottom: 24px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--off-white);
    border-top: 1px solid var(--gray-light);
    padding: 36px 24px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-legal,
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.85rem;
    align-items: center;
}

.footer-legal a,
.footer-social a {
    color: var(--gray-dark);
    text-decoration: none;
}

.footer-legal a:hover,
.footer-social a:hover {
    color: var(--red);
}

.footer-legal span {
    color: var(--gray-light);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--gray-mid);
    margin-top: 4px;
}

/* ============================================================
   COURSES / SIMPLE PAGES
   ============================================================ */
.simple-page {
    padding: 64px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.simple-page h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 16px;
}

.simple-page p {
    font-size: 1rem;
    color: var(--gray-dark);
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-page {
    padding: 64px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.legal-page h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 28px;
}

.legal-page h2 {
    font-size: 1.15rem;
    margin: 28px 0 10px;
}

.legal-page p,
.legal-page li {
    font-size: 0.95rem;
    color: var(--gray-dark);
    margin-bottom: 10px;
}

.legal-page ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

/* ============================================================
   RESPONSIVE — 768px (tablet / hamburger nav)
   ============================================================ */
@media (max-width: 768px) {
    .nav-inner {
        justify-content: flex-end;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-light);
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 24px;
        border-bottom: 1px solid var(--gray-light);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .site-nav {
        position: sticky;
    }
}

/* ============================================================
   RESPONSIVE — 480px (mobile)
   ============================================================ */
@media (max-width: 480px) {
    .hero {
        padding: 40px 20px 44px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-image {
        order: -1;
        justify-content: flex-start;
    }

    .hero-image img {
        width: 130px;
        height: 130px;
        border-radius: 50%;
    }

    .content-section,
    .cta-section {
        padding: 44px 20px;
    }

    .timeline-entry {
        grid-template-columns: 56px 1fr;
        gap: 14px;
    }

    .capture-box {
        padding: 18px;
    }

    .footer-legal,
    .footer-social {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .footer-legal span {
        display: none;
    }
}
