/* ========================================
   SAGE Truck Driving Schools — Stylesheet
   Classic & Elegant | Deep Navy + Warm Gold
======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy-900: #0d1525;
    --navy-800: #1a2744;
    --navy-700: #243656;
    --navy-600: #2e4470;
    --gold-500: #c9a84c;
    --gold-400: #d4b760;
    --gold-300: #e0c97a;
    --gold-600: #b08d2e;
    --cream-50: #faf8f4;
    --cream-100: #f5f0e8;
    --cream-200: #ebe4d6;
    --charcoal-800: #1f2937;
    --charcoal-700: #374151;
    --charcoal-600: #4b5563;
    --white: #ffffff;
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--charcoal-700);
    background-color: var(--cream-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy-800);
}

.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 20px;
    color: var(--navy-800);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--charcoal-600);
    max-width: 560px;
    line-height: 1.8;
}

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

.section-header {
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 14px 32px;
    border-radius: 4px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-gold {
    background-color: var(--gold-500);
    color: var(--navy-900);
    border-color: var(--gold-500);
}

.btn-gold:hover {
    background-color: var(--gold-400);
    border-color: var(--gold-400);
}

.btn-dark {
    background-color: var(--navy-800);
    color: var(--white);
    border-color: var(--navy-800);
}

.btn-dark:hover {
    background-color: var(--navy-700);
    border-color: var(--navy-700);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 0.938rem;
}

.btn-full {
    width: 100%;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(13, 21, 37, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    transition: background-color var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-500);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--gold-500);
    border-radius: 4px;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.08em;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition);
}

.main-nav a:hover {
    color: var(--gold-400);
}

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

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--navy-900);
    background-image: url('https://images.pexels.com/photos/6992138/pexels-photo-6992138.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 21, 37, 0.92) 0%,
        rgba(26, 39, 68, 0.85) 50%,
        rgba(13, 21, 37, 0.88) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    padding: 120px 24px 80px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-400);
    border: 1px solid rgba(201, 168, 76, 0.4);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero h1 em {
    color: var(--gold-400);
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.1875rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gold-400);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.15);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ---------- Sections ---------- */
.section {
    padding: 100px 0;
}

/* ---------- About ---------- */
.about {
    background-color: var(--cream-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 6px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 2px solid var(--gold-500);
    border-radius: 4px;
    z-index: -1;
}

.about-content .section-subtitle {
    margin-bottom: 24px;
}

.about-content p {
    color: var(--charcoal-600);
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--charcoal-700);
}

.about-feature .icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--gold-500);
    margin-top: 2px;
}

/* ---------- Programs ---------- */
.programs {
    background-color: var(--white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.program-card {
    background-color: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: 6px;
    padding: 40px 32px;
    transition: all var(--transition);
    position: relative;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(13, 21, 37, 0.08);
    border-color: var(--gold-500);
}

.program-card.featured {
    background-color: var(--navy-800);
    border-color: var(--navy-800);
    padding-top: 56px;
}

.program-card.featured h3,
.program-card.featured p,
.program-card.featured li {
    color: var(--white);
}

.program-card.featured li {
    color: rgba(255, 255, 255, 0.75);
}

.program-card.featured .program-features li::before {
    color: var(--gold-400);
}

.program-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--gold-500);
    color: var(--navy-900);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    white-space: nowrap;
}

.program-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    color: var(--gold-500);
}

.program-icon svg {
    width: 100%;
    height: 100%;
}

.program-card h3 {
    font-size: 1.375rem;
    margin-bottom: 12px;
}

.program-card p {
    font-size: 0.9375rem;
    color: var(--charcoal-600);
    margin-bottom: 24px;
    line-height: 1.7;
}

.program-features {
    margin-bottom: 32px;
}

.program-features li {
    position: relative;
    padding-left: 20px;
    font-size: 0.875rem;
    color: var(--charcoal-600);
    margin-bottom: 10px;
}

.program-features li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold-500);
    font-size: 0.75rem;
}

.program-card .btn {
    width: 100%;
}

/* ---------- Why SAGE ---------- */
.why-sage {
    background-color: var(--navy-800);
    color: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.why-content .section-label {
    color: var(--gold-400);
}

.why-content .section-title {
    color: var(--white);
}

.why-content .section-subtitle {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 48px;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.why-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.why-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-500);
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
}

.why-text h4 {
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 6px;
}

.why-text p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.why-image {
    border-radius: 6px;
    overflow: hidden;
}

.why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Testimonials ---------- */
.testimonials {
    background-color: var(--cream-100);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background-color: var(--white);
    border: 1px solid var(--cream-200);
    border-radius: 6px;
    padding: 40px 32px;
    position: relative;
    transition: all var(--transition);
}

.testimonial-card:hover {
    box-shadow: 0 12px 40px rgba(13, 21, 37, 0.06);
}

.quote-mark {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 32px;
    height: 32px;
    color: var(--gold-500);
    opacity: 0.3;
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--charcoal-700);
    line-height: 1.7;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-initial {
    width: 36px;
    height: 36px;
    background-color: var(--navy-800);
    color: var(--gold-400);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.author-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--charcoal-600);
    letter-spacing: 0.04em;
}

/* ---------- CTA ---------- */
.cta {
    background-color: var(--navy-900);
    background-image: url('https://images.pexels.com/photos/37829287/pexels-photo-37829287.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=600');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 21, 37, 0.9);
}

.cta .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta .section-label {
    color: var(--gold-400);
}

.cta .section-title {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------- Contact ---------- */
.contact {
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info .section-subtitle {
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item .icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--gold-500);
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9375rem;
    color: var(--charcoal-600);
    line-height: 1.6;
}

.contact-item a {
    color: var(--gold-600);
    transition: color var(--transition);
}

.contact-item a:hover {
    color: var(--gold-500);
}

/* ---------- Form ---------- */
.contact-form-wrap {
    background-color: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: 6px;
    padding: 40px;
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 28px;
    color: var(--navy-800);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--charcoal-600);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--charcoal-700);
    background-color: var(--white);
    border: 1px solid var(--cream-200);
    border-radius: 4px;
    transition: border-color var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold-500);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 16px 20px;
    background-color: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 4px;
    color: var(--navy-800);
    font-size: 0.9375rem;
}

.form-success svg {
    width: 20px;
    height: 20px;
    color: var(--gold-600);
    flex-shrink: 0;
}

/* ---------- Map ---------- */
.map-section {
    background-color: var(--cream-100);
}

.map-section iframe {
    display: block;
    width: 100%;
    height: 320px;
    filter: grayscale(30%) contrast(1.05);
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--navy-900);
    color: rgba(255, 255, 255, 0.6);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--gold-400);
}

.footer-contact p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 4px;
}

.footer-contact a {
    color: var(--gold-500);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--gold-400);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ---------- Mobile Nav ---------- */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: rgba(13, 21, 37, 0.98);
        backdrop-filter: blur(12px);
        padding: 24px;
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

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

    .main-nav a {
        display: block;
        padding: 14px 0;
        font-size: 0.9375rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .main-nav .btn {
        margin-top: 16px;
        text-align: center;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .hero-content {
        padding: 100px 20px 60px;
    }

    .hero-stats {
        gap: 24px;
    }

    .about-grid,
    .why-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-image-accent {
        display: none;
    }

    .programs-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .program-card.featured {
        padding-top: 40px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .contact-form-wrap {
        padding: 24px;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .scroll-line {
        animation: none;
    }

    .program-card:hover {
        transform: none;
    }
}
