/**
 * Nova 42 Speech & Debate Academy
 * Redesign 2026 — "Distinguished Academy"
 * Typography: Playfair Display (headings) + Raleway (UI) + Source Sans 3 (body)
 * Palette: Deep navy · Refined gold · Warm cream
 */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Raleway:wght@400;500;600;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ═══════════════════════════════════════════
   Design Tokens
   ═══════════════════════════════════════════ */
:root {
    --navy:         #0B1A2E;
    --navy-mid:     #152744;
    --navy-light:   #1E3A5F;
    --gold:         #C4972A;
    --gold-hover:   #D4A940;
    --gold-pale:    #F5E6C0;
    --cream:        #FAF8F4;
    --white:        #FFFFFF;
    --text:         #1F2937;
    --text-light:   #6B7280;
    --border:       #E5E7EB;
    --section-alt:  #F4F3EF;
}

/* ═══════════════════════════════════════════
   Base
   ═══════════════════════════════════════════ */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text);
    background-color: var(--white);
    margin: 0;
    padding-top: 80px;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.25;
}

/* ═══════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════ */
.navbar {
    background-color: var(--navy) !important;
    border-bottom: 2px solid var(--gold);
    padding: 0.8rem 0;
    z-index: 9999;
    opacity: 1;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--white) !important;
    text-transform: none;
    letter-spacing: 0.3px;
}

.navbar-brand span {
    color: var(--gold);
}

.nav-link {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.82) !important;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    padding: 0.55rem 1rem !important;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--gold) !important;
}

.nav-link.active {
    color: var(--gold) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--gold);
}

.navbar-toggler {
    border: 1.5px solid rgba(255,255,255,0.3);
    padding: 0.3rem 0.6rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C4972A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ═══════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(11,26,46,0.65) 0%,
        rgba(11,26,46,0.78) 50%,
        rgba(11,26,46,0.88) 100%
    );
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem;
    text-align: center;
    max-width: 820px;
}

.hero-logo {
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
    margin-bottom: 1.75rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3.4rem;
    color: var(--white) !important;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.6);
    margin-bottom: 1.1rem;
    text-transform: none;
    line-height: 1.15;
}

.hero-tagline {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255,255,255,0.92);
    text-transform: none;
    letter-spacing: 0.3px;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero-location {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--gold);
    color: var(--navy);
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    padding: 0.9rem 2.5rem;
    border: 2px solid var(--gold);
    text-decoration: none;
    transition: all 0.25s;
    display: inline-block;
}

.btn-hero-primary:hover {
    background: transparent;
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196,151,42,0.35);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--white);
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    padding: 0.9rem 2.5rem;
    border: 2px solid rgba(255,255,255,0.55);
    text-decoration: none;
    transition: all 0.25s;
    display: inline-block;
}

.btn-hero-secondary:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   Article Container
   ═══════════════════════════════════════════ */
article.container {
    max-width: 100%;
    padding: 0;
    margin: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

article.container > h1:first-child {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem 2.5rem;
    margin: 0;
    font-size: 2.4rem;
    letter-spacing: 0.3px;
    position: relative;
    font-weight: 700;
    text-transform: none;
}

article.container > h1:first-child::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--gold);
    margin: 1.25rem auto 0;
}

/* ═══════════════════════════════════════════
   Content
   ═══════════════════════════════════════════ */
.content {
    line-height: 1.85;
    font-size: 1.05rem;
    font-family: 'Source Sans 3', sans-serif;
}

/* H1 inside content = section banner */
.content h1 {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem 2.5rem;
    margin: 0 -3rem;
    font-size: 2.4rem;
    letter-spacing: 0.3px;
    position: relative;
    text-transform: none;
}

.content h1::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--gold);
    margin: 1.25rem auto 0;
}

/* H2 = major section headers — clean with gold underline */
.content h2 {
    background: none;
    color: var(--navy);
    text-align: center;
    padding: 2.5rem 2rem 0;
    margin: 0 -3rem 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    display: block;
    position: relative;
}

.content h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--gold);
    margin: 0.85rem auto 1.75rem;
}

/* H3 = service/feature titles — contained within content column */
.content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--navy);
    max-width: 820px;
    margin: 2rem auto 0.65rem;
    padding: 0 3rem 0 3.85rem;
    border-left: 3px solid var(--gold);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

/* H4 = featured pull quote — centered with gold accent, no box */
.content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 500;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    background: none;
    color: var(--navy);
    text-align: center;
    padding: 0 4rem;
    margin: 2rem auto 2.5rem;
    border-left: none;
    line-height: 1.7;
    max-width: 820px;
    position: relative;
}

.content h4::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 1.25rem;
}

.content h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin: 1.25rem auto 0;
}

/* H5, H6 inside content */
.content h5,
.content h6 {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 3rem;
    color: var(--navy);
}

/* Paragraphs */
.content p {
    margin-bottom: 1.25rem;
    padding: 0 3rem;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text);
}

/* Links */
.content a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.content a:hover {
    border-bottom-color: var(--gold);
    color: var(--navy);
}

/* Blockquote = Coach Mike */
.content blockquote {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 5rem 3rem 4.5rem;
    margin: 0 -3rem;
    position: relative;
    border-left: none;
    border-radius: 0;
    overflow: hidden;
}

.content blockquote::before {
    content: '\201C';
    font-size: 14rem;
    color: rgba(196,151,42,0.12);
    position: absolute;
    top: -3rem;
    left: 1rem;
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.content blockquote::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto;
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.content blockquote p {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 500;
    font-style: italic;
    color: var(--white);
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.65;
    max-width: 680px;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
}

.content blockquote em {
    font-style: normal;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
    display: block;
    margin-top: 1.75rem;
}

/* HR = subtle divider */
.content hr {
    border: none;
    height: 1px;
    background: var(--border);
    max-width: 820px;
    margin: 1.5rem auto;
    opacity: 1;
    border-radius: 0;
}

.content strong {
    color: inherit;
    font-weight: 600;
}

.content ul, .content ol {
    margin-bottom: 1.25rem;
    padding-left: 5rem;
    padding-right: 3rem;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
}

.content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Content images */
.content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

/* Floated figure — small box top-right of paragraph */
.content .fig-right {
    float: right;
    width: 190px;
    margin: 0.25rem 0 1rem 1.75rem;
    clear: right;
}
.content .fig-right img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    margin: 0;
    display: block;
}
.content .fig-right figcaption {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.4rem;
    line-height: 1.4;
    padding: 0 0.25rem;
}
/* Clearfix after floated figure */
.content .fig-clearfix::after {
    content: '';
    display: table;
    clear: both;
}

@media (max-width: 480px) {
    .content .fig-right {
        float: none;
        width: 100%;
        margin: 0 0 1rem 0;
    }
}

/* Content padding within article */
article.container .content {
    padding: 0 0 3rem;
}

/* ═══════════════════════════════════════════
   Contact Form
   ═══════════════════════════════════════════ */
.card {
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    overflow: hidden;
}

.card-header {
    background: var(--navy) !important;
    border-bottom: 2px solid var(--gold);
    padding: 1.25rem 1.5rem;
}

.card-header h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    background: none;
    color: var(--white);
    padding: 0;
    margin: 0;
    text-align: left;
    font-size: 1.4rem;
    text-transform: none;
}

.card-header h2::after {
    display: none;
}

.form-label {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: var(--text);
}

.form-control {
    border-radius: 4px;
    border: 1.5px solid var(--border);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: 'Source Sans 3', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196,151,42,0.1);
    outline: none;
}

.btn-primary {
    background-color: var(--gold);
    border: 2px solid var(--gold);
    color: var(--navy);
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    padding: 0.8rem 2.5rem;
    border-radius: 2px;
    transition: all 0.25s;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(196,151,42,0.25);
}

/* ═══════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════ */
footer {
    background-color: var(--navy) !important;
    border-top: 2px solid var(--gold);
    margin-top: auto;
    color: var(--white);
}

footer h5 {
    font-family: 'Playfair Display', serif;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

footer h5 span {
    color: var(--gold);
}

footer h6 {
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    color: var(--gold);
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    font-weight: 700;
    margin-bottom: 1rem;
}

footer p {
    color: rgba(255,255,255,0.65) !important;
    font-size: 0.9rem;
    line-height: 1.75;
}

footer a {
    color: rgba(255,255,255,0.75) !important;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--gold) !important;
    text-decoration: none;
}

footer .text-muted {
    color: rgba(255,255,255,0.38) !important;
}

footer hr {
    border-color: rgba(255,255,255,0.1);
}

/* ═══════════════════════════════════════════
   Error Page
   ═══════════════════════════════════════════ */
.display-1 {
    font-size: 8rem;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
}

/* ═══════════════════════════════════════════
   Last Updated
   ═══════════════════════════════════════════ */
.text-muted.small.mt-4 {
    font-size: 0.78rem;
    color: var(--text-light) !important;
    text-align: center;
    padding: 1rem 3rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem !important;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════
   Responsive — Tablet
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Hero */
    .hero-section { min-height: 460px; }
    .hero-title { font-size: 1.95rem; letter-spacing: 0; line-height: 1.2; }
    .hero-tagline { font-size: 1rem; }
    .hero-location { font-size: 0.7rem; letter-spacing: 2px; margin-bottom: 2rem; }
    .hero-logo { width: 120px !important; margin-bottom: 1rem; }
    .hero-content { padding: 3rem 1.5rem; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 0.75rem; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; max-width: 240px; text-align: center; padding: 0.8rem 1.5rem; }

    /* Page title banners */
    article.container > h1:first-child { font-size: 1.9rem; padding: 2.5rem 1.25rem 2rem; }

    /* Content headings */
    .content h1 { font-size: 1.8rem; padding: 2.5rem 1.25rem 2rem; margin: 0 -1rem; }
    .content h2 { font-size: 1.5rem; padding: 2rem 1.25rem 0; margin: 0 -1rem; }
    .content h2::after { margin: 0.75rem auto 1.5rem; }
    .content h3 { padding: 0 1rem 0 1.6rem; font-size: 1.15rem; margin-top: 1.5rem; }
    .content h4 { padding: 0 1.25rem; font-size: 1rem; margin: 1.5rem auto; }
    .content h4::before, .content h4::after { margin-top: 1rem; margin-bottom: 1rem; }

    /* Body text */
    .content p { padding: 0 1rem; font-size: 1rem; }
    .content h5, .content h6 { padding: 0 1rem; }
    .content ul, .content ol { padding-left: 2.25rem; padding-right: 1rem; }

    /* Blockquote */
    .content blockquote { margin: 0 -1rem; padding: 3rem 1.5rem 3.5rem; }
    .content blockquote p { font-size: 1.15rem; line-height: 1.6; }
    .content blockquote em { font-size: 0.7rem; letter-spacing: 2px; margin-top: 1.25rem; }

    /* HR */
    .content hr { margin: 1rem -1rem; }
    .content h1::after, .content h2::after { margin-top: 0.75rem; }

    /* Images inside content */
    .content img { border-radius: 4px; }

    /* Contact form */
    .card-header h2 { font-size: 1.2rem; }

    /* Misc */
    .navbar-brand { font-size: 1rem; }
    .display-1 { font-size: 4.5rem; }
}

/* ═══════════════════════════════════════════
   Responsive — Small Mobile (≤480px)
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
    body { padding-top: 72px; }

    /* Hero: tighter on small screens */
    .hero-title { font-size: 1.75rem; }
    .hero-logo { width: 100px !important; }

    /* Reduce section padding */
    .content h2 { font-size: 1.4rem; padding: 1.75rem 1rem 0; }
    .content p { padding: 0 0.75rem; }
    .content h3 { padding: 0 0.75rem 0 1.4rem; font-size: 1.1rem; }
    .content h4 { padding: 0 1rem; font-size: 0.95rem; }
    .content blockquote { padding: 2.5rem 1.25rem 3rem; }
    .content blockquote p { font-size: 1.05rem; }

    /* Footer: tighter column spacing */
    footer .col-md-4 { margin-bottom: 1.5rem !important; }
    footer h6 { margin-bottom: 0.5rem; }
}
