/* Jim Schiffler -- School Bus Training & Resources
   Color palette from JimSchiffler.com: dark navy, gold, deep maroon
   Fonts: Roboto + Open Sans (Google Fonts) */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: #333;
    line-height: 1.7;
    background: #fff;
    /* Sticky footer: keep footer at bottom of viewport on short pages */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: #0D2B5C;
}

a { color: #1A3A6B; text-decoration: none; transition: color 0.2s; }
a:hover { color: #C8A84E; }

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

.container {
    max-width: 1460px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== HEADER / NAV ========== */
.site-header {
    background: #0D2B5C;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.site-name {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #C8A84E;
}

nav a {
    display: inline-block;
    margin-left: 24px;
    font-size: 15px;
    font-weight: 600;
    color: #e0e0e0;
    transition: color 0.2s;
}

nav a:hover { color: #C8A84E; }

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, #0D2B5C 0%, #1A3A6B 50%, #1E4D8C 100%);
    padding: 80px 0 70px;
    text-align: center;
}

/* Hero with photo background + blue overlay */
.hero-photo-bg {
    position: relative;
    background: #0D2B5C url('../images/jim-fleet-hero.jpg') center 30% / cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 43, 92, 0.92) 0%, rgba(26, 58, 107, 0.86) 50%, rgba(30, 77, 140, 0.82) 100%);
    z-index: 1;
}

.hero-photo-bg .container {
    position: relative;
    z-index: 2;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.hero-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 4px solid #C8A84E;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-eyebrow {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #C8A84E;
    margin-bottom: 6px;
}

.hero h1 {
    font-size: 38px;
    color: #fff;
    margin-bottom: 4px;
    max-width: 760px;
}

.hero .tagline {
    font-size: 18px;
    color: #C8A84E;
    font-weight: 600;
    letter-spacing: 0.5px;
    max-width: 600px;
}

.hero .subtitle {
    font-size: 16px;
    color: #cdd5e0;
    max-width: 640px;
    margin-top: 4px;
}

/* ========== SECTION SHARED ========== */
.section {
    padding: 70px 0;
}

.section-alt {
    background: #f5f5f5;
}

.section-title {
    font-size: 30px;
    text-align: center;
    margin-bottom: 12px;
    color: #0D2B5C;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto 48px;
}

/* ========== CONTENT PILLAR CARDS ========== */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 36px 28px;
    box-shadow: 0 2px 16px rgba(13, 43, 92, 0.08);
    border-top: 4px solid #C8A84E;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(13, 43, 92, 0.14);
}

.card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef2f8;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: #1A3A6B;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #0D2B5C;
}

.card p {
    font-size: 15px;
    color: #666;
    line-height: 1.65;
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    background: #0D2B5C;
    color: #C8A84E;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
}

/* ========== BOOK SECTION ========== */
.book-section {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    justify-content: center;
}

.book-cover {
    width: 240px;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.book-info {
    max-width: 520px;
}

.book-info h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #0D2B5C;
}

.book-info p {
    font-size: 16px;
    color: #555;
    margin-bottom: 24px;
}

.btn {
    display: inline-block;
    background: #8B1A2B;
    color: #fff;
    padding: 13px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s, transform 0.1s;
}

.btn:hover {
    background: #6e1422;
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #1A3A6B;
    border: 2px solid #1A3A6B;
}

.btn-outline:hover {
    background: #1A3A6B;
    color: #fff;
}

/* ========== SPEAKING SECTION ========== */
.speaking-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Speaking with photo (two-column) */
.speaking-layout {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.speaking-text {
    flex: 1;
    margin: 0;
    text-align: left;
}

.speaking-text .speaking-highlights {
    justify-content: flex-start;
}

.speaking-photo {
    width: 420px;
    flex-shrink: 0;
    border-radius: 12px;
    box-shadow: 0 6px 28px rgba(13, 43, 92, 0.18);
    object-fit: cover;
}

.speaking-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 28px;
}

.speaking-highlights {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.highlight {
    background: #eef2f8;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1A3A6B;
    border-left: 3px solid #C8A84E;
}

/* ========== ABOUT SECTION ========== */
.about-content {
    max-width: 740px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 16px;
}

/* About with photo (two-column) */
.about-with-photo {
    max-width: 1000px;
    display: flex;
    align-items: center;
    gap: 48px;
    text-align: left;
}

.about-photo {
    width: 360px;
    flex-shrink: 0;
    border-radius: 12px;
    box-shadow: 0 6px 28px rgba(13, 43, 92, 0.18);
    object-fit: cover;
}

.about-text p { margin-bottom: 16px; }

/* Scripts section with photo (two-column) */
.scripts-layout {
    display: flex;
    align-items: flex-start;
    gap: 44px;
    max-width: 1100px;
    margin: 0 auto;
}

.scripts-photo {
    width: 380px;
    flex-shrink: 0;
    border-radius: 12px;
    box-shadow: 0 6px 28px rgba(13, 43, 92, 0.18);
    object-fit: cover;
}

.scripts-chips {
    justify-content: flex-start;
    margin-bottom: 0;
}

/* ========== PAGE HERO (sub-pages) ========== */
.page-hero {
    background: linear-gradient(135deg, #0D2B5C 0%, #1A3A6B 50%, #1E4D8C 100%);
    padding: 64px 0 56px;
    text-align: center;
}

.page-hero h1 {
    font-size: 40px;
    color: #fff;
    margin-bottom: 12px;
}

.page-hero .subtitle {
    font-size: 16px;
    color: #cdd5e0;
    max-width: 680px;
    margin: 0 auto;
}

.page-hero .hero-eyebrow { margin-bottom: 8px; }

/* ========== VIDEO CARDS ========== */
.vid-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.vid-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(13, 43, 92, 0.08);
    border-top: 4px solid #C8A84E;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(13, 43, 92, 0.14);
}

.vid-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0D2B5C;
}

.vid-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vid-info {
    padding: 22px 24px 24px;
}

.vid-info h3 {
    font-size: 20px;
    color: #0D2B5C;
    margin: 10px 0 10px;
}

.vid-info p {
    font-size: 15px;
    color: #666;
    line-height: 1.65;
    margin-bottom: 12px;
}

.vid-note {
    font-size: 13px !important;
    font-weight: 600;
    color: #8a7a3e !important;
    margin-bottom: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== SCRIPT LIST (accordion) ========== */
.script-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.script-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(13, 43, 92, 0.08);
    border-left: 4px solid #C8A84E;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.script-card:hover { box-shadow: 0 6px 28px rgba(13, 43, 92, 0.14); }

.script-toggle {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 24px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-family: inherit;
}

.script-head { display: block; }

.script-cat {
    display: inline-block;
    background: #eef2f8;
    color: #1A3A6B;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.script-title {
    display: block;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #0D2B5C;
    margin-bottom: 6px;
}

.script-teaser {
    display: block;
    font-size: 15px;
    color: #666;
    font-style: italic;
    line-height: 1.6;
}

.script-chevron {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef2f8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s, background 0.2s;
}

.script-chevron svg {
    display: block;
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    flex-shrink: 0;
    stroke: #1A3A6B;
    fill: none !important;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.script-card.open .script-chevron {
    transform: rotate(180deg);
    background: #C8A84E;
}

.script-card.open .script-chevron svg { stroke: #0D2B5C; }

.script-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 26px;
}

.script-card.open .script-body {
    max-height: 600px;
    padding: 0 26px 26px;
}

.script-body p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

.script-more {
    font-size: 14px !important;
    font-weight: 600;
    color: #8a7a3e !important;
    margin-bottom: 0 !important;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 40px 32px 32px;
    box-shadow: 0 2px 16px rgba(13, 43, 92, 0.08);
    border-top: 4px solid #C8A84E;
}

.testimonial .quote-mark {
    width: 40px;
    height: 40px;
    fill: #eef2f8;
    position: absolute;
    top: 22px;
    right: 26px;
}

.testimonial blockquote p {
    font-size: 15.5px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 14px;
}

.testimonial blockquote p:last-child {
    margin-bottom: 0;
}

.testimonial figcaption {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef2f8;
}

.testimonial-name {
    display: block;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #0D2B5C;
}

.testimonial-title {
    display: block;
    font-size: 14px;
    color: #8a7a3e;
    font-weight: 600;
    margin-top: 2px;
}

/* ========== CONTACT / CTA ========== */
.cta-section {
    background: linear-gradient(135deg, #0D2B5C 0%, #1A3A6B 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.cta-section h2 {
    color: #fff;
    font-size: 30px;
    margin-bottom: 12px;
}

.cta-section p {
    color: #cdd5e0;
    font-size: 17px;
    max-width: 540px;
    margin: 0 auto 28px;
}

.cta-section .btn {
    background: #C8A84E;
    color: #0D2B5C;
    font-weight: 700;
}

.cta-section .btn:hover {
    background: #D4B85C;
}

/* ========== FOOTER ========== */
.site-footer {
    background: #091e3f;
    color: #8a9ab5;
    text-align: center;
    padding: 32px 0;
    font-size: 14px;
    margin-top: auto; /* push to bottom of viewport when content is short */
}

.site-footer a { color: #C8A84E; }
.site-footer a:hover { color: #D4B85C; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero { padding: 56px 0 48px; }
    .hero h1 { font-size: 28px; }
    .hero .tagline { font-size: 16px; }
    .hero-photo { width: 160px; height: 160px; }

    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .book-section { gap: 28px; }
    .book-cover { width: 180px; }
    .book-info h2 { font-size: 24px; }

    .about-with-photo {
        flex-direction: column;
        text-align: center;
        gap: 28px;
    }
    .about-photo { width: 100%; max-width: 360px; }

    .scripts-layout {
        flex-direction: column;
        gap: 28px;
    }
    .scripts-photo { width: 100%; max-width: 420px; margin: 0 auto; }
    .scripts-chips { justify-content: center; }

    .speaking-layout {
        flex-direction: column;
        gap: 28px;
    }
    .speaking-text { text-align: center; }
    .speaking-text .speaking-highlights { justify-content: center; }
    .speaking-photo { width: 100%; max-width: 420px; }

    .testimonials { grid-template-columns: 1fr; gap: 20px; }

    .vid-grid { grid-template-columns: 1fr; gap: 20px; }

    .page-hero { padding: 48px 0 40px; }
    .page-hero h1 { font-size: 30px; }
    .script-toggle { padding: 20px; }
    .script-title { font-size: 18px; }

    .section { padding: 48px 0; }
    .section-title { font-size: 24px; }

    nav a { margin-left: 16px; font-size: 14px; }
    .site-name { font-size: 18px; }
}

@media (max-width: 480px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
    }
    nav a { margin: 0 10px; }
    .hero h1 { font-size: 24px; }
    .speaking-highlights { flex-direction: column; align-items: center; }
}
