/* =============================================
   THE TRAILHEAD SCHOOL — Global Styles
   Colors: Cream #FAF7F2, Navy #1B2A4A, Gold #C9A84C
   Fonts: Playfair Display (headings), Lato (body)
   ============================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    color: #1B2A4A;
    background-color: #FAF7F2;
    line-height: 1.7;
    font-size: 16px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.narrow {
    max-width: 800px;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #1B2A4A;
    font-weight: 600;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 0.8rem;
    color: #1B2A4A;
}

a {
    color: #1B2A4A;
    text-decoration: none;
}

ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.3rem;
}

strong {
    font-weight: 700;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-gold {
    background-color: #C9A84C;
    color: #1B2A4A;
}

.btn-gold:hover {
    background-color: #B8943D;
    transform: translateY(-1px);
}

/* =============================================
   HEADER
   ============================================= */

.site-header {
    background-color: #FAF7F2;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(27, 42, 74, 0.08);
}

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

.site-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1B2A4A;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #1B2A4A;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: #C9A84C;
}

.btn-header {
    padding: 8px 20px;
    font-size: 0.85rem;
    border: 2px solid #1B2A4A !important;
    background-color: transparent;
    color: #1B2A4A;
}

.btn-header:hover {
    background-color: #C9A84C;
    border-color: #C9A84C !important;
}

/* =============================================
   HERO
   ============================================= */

.hero {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1588072432836-e10032774350?w=1400&q=80');
    background-size: cover;
    background-position: center 40%;
    padding: 5rem 2rem;
    text-align: center;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(250, 247, 242, 0.82) 0%,
        rgba(250, 247, 242, 0.7) 50%,
        rgba(250, 247, 242, 0.82) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1B2A4A;
    margin-bottom: 0.3rem;
}

.hero-divider {
    width: 200px;
    height: 1px;
    background-color: #1B2A4A;
    margin: 0.8rem auto;
    opacity: 0.3;
}

.hero-tagline {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #1B2A4A;
}

.hero-bullets p {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 0.3rem;
    color: #1B2A4A;
}

.hero .btn {
    margin-top: 1.5rem;
}

/* =============================================
   SECTION DIVIDERS
   ============================================= */

.section-divider {
    max-width: 1100px;
    margin: 0 auto;
}

.gold-line {
    height: 3px;
    background: linear-gradient(to right, transparent, #C9A84C, transparent);
    max-width: 100%;
}

.subtle-line {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(27, 42, 74, 0.15), transparent);
    margin: 0 auto;
    max-width: 900px;
}

.section-divider-inline {
    width: 120px;
    height: 1px;
    background-color: rgba(27, 42, 74, 0.2);
    margin: 0 auto 1.5rem;
}

/* =============================================
   CONTENT SECTIONS
   ============================================= */

.content-section {
    padding: 4rem 2rem;
    background-color: #FAF7F2;
}

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

/* Two-column layout */
.two-col {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.two-col.reverse {
    flex-direction: row-reverse;
}

.two-col .col {
    flex: 1;
}

.image-col {
    flex: 0 0 40% !important;
}

.rounded-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(27, 42, 74, 0.1);
}

/* =============================================
   PULL QUOTE
   ============================================= */

.quote-and-image {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.pull-quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #1B2A4A;
    padding: 1.2rem 1.5rem;
    border-left: 3px solid #C9A84C;
    background-color: rgba(201, 168, 76, 0.06);
    border-radius: 0 6px 6px 0;
    margin: 0;
}

/* =============================================
   SCHEDULE TABLE
   ============================================= */

.cohort-info {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.schedule-table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
    text-align: left;
}

.schedule-table th {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 1rem;
    color: #1B2A4A;
    padding: 0.8rem 1rem;
    border-bottom: 2px solid #C9A84C;
}

.schedule-table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(27, 42, 74, 0.1);
}

.schedule-table ul {
    list-style: disc;
    margin-left: 1.2rem;
    margin-bottom: 0;
}

.schedule-table li {
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

/* =============================================
   NAVY BANNER
   ============================================= */

.navy-banner {
    background-color: #1B2A4A;
    padding: 2rem;
    text-align: center;
}

.banner-quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    color: #FAF7F2;
    margin: 0;
}

.banner-quote em {
    color: #FAF7F2;
}

/* =============================================
   FOUNDING FAMILIES
   ============================================= */

.founding-families .headshot {
    max-width: 280px;
    border-radius: 8px;
}

.founding-families .text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.founding-families .btn {
    margin-top: 1rem;
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
    background-color: #FAF7F2;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(27, 42, 74, 0.1);
}

.site-footer p {
    font-size: 0.9rem;
    color: #1B2A4A;
    opacity: 0.7;
    margin: 0;
}

.site-footer a {
    color: #1B2A4A;
    text-decoration: underline;
}

.footer-teacher {
    font-size: 0.85rem;
    color: #1B2A4A;
    opacity: 0.5;
    margin-top: 0.5rem;
    font-style: italic;
}

.footer-teacher a {
    color: #C9A84C;
    font-style: normal;
    font-weight: 600;
}

/* =============================================
   INTEREST FORM
   ============================================= */

.interest-form {
    max-width: 500px;
    margin: 2rem auto 0;
    text-align: left;
}

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

.form-row input {
    flex: 1;
}

.interest-form input,
.interest-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 1rem;
    border: 1px solid rgba(27, 42, 74, 0.2);
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    background-color: #fff;
    color: #1B2A4A;
    transition: border-color 0.2s;
}

.interest-form input:focus,
.interest-form textarea:focus {
    outline: none;
    border-color: #C9A84C;
}

.interest-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .main-nav {
        gap: 1rem;
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .btn-header {
        order: 2;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .two-col {
        flex-direction: column !important;
    }

    .image-col {
        flex: 1 !important;
    }

    h2 {
        font-size: 1.5rem;
    }

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

    .schedule-table {
        font-size: 0.85rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.6rem;
    }
}
