/* =============================================
   Knoxville Beltway - Main Stylesheet
   ============================================= */

:root {
    --navy:       #1a3a5c;
    --navy-dark:  #122840;
    --accent:     #c8602a;
    --accent-hover: #b05224;
    --bg:         #f7f8fa;
    --white:      #ffffff;
    --text:       #1e2a35;
    --text-muted: #5a6a78;
    --border:     #dde3ea;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---- Layout ---- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background: var(--white);
}

/* ---- Header / Nav ---- */
header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
    height: 60px;
}

.nav-logo {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.nav-logo span {
    color: #f0a070;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

nav ul li a {
    display: block;
    padding: 0.4rem 0.75rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

nav ul li a:hover,
nav ul li a.active {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* ---- Hero ---- */
.hero {
    background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: var(--white);
    padding: 5rem 0 4rem;
    text-align: left;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    max-width: 700px;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    max-width: 620px;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.hero-disclaimer {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-top: 1rem;
}

/* ---- Section Headings ---- */
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

h2.section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-intro {
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

/* ---- Reason Cards (Why It Matters) ---- */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.reason-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--accent);
}

.reason-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.reason-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ---- Document & News Cards ---- */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.card-body { flex: 1; }

.card-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-meta .tag {
    background: #eef2f7;
    border-radius: 3px;
    padding: 0.1rem 0.45rem;
    font-weight: 600;
    color: var(--navy);
}

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.card-action {
    flex-shrink: 0;
    align-self: center;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    text-decoration: none;
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
}

.btn-outline-sm {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--border);
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.btn-outline-sm:hover {
    border-color: var(--navy);
    text-decoration: none;
}

/* ---- Petition Section ---- */
.petition-box {
    background: var(--navy);
    border-radius: 10px;
    padding: 2.5rem;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.petition-box h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.petition-box p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    max-width: 520px;
    line-height: 1.7;
}

.btn-petition {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 5px;
    white-space: nowrap;
    transition: background 0.15s;
    text-decoration: none;
    display: inline-block;
}

.btn-petition:hover {
    background: var(--accent-hover);
    text-decoration: none;
    color: var(--white);
}

/* ---- About Section ---- */
.about-box {
    background: #eef2f7;
    border-left: 4px solid var(--navy);
    border-radius: 0 8px 8px 0;
    padding: 1.75rem 2rem;
    max-width: 720px;
}

.about-box p {
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.about-box p:last-child { margin-bottom: 0; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
    background: var(--navy);
    color: var(--white);
    padding: 2.5rem 0;
}

.page-hero h1 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.page-hero p {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.6rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.6);
}

.breadcrumb a:hover { color: var(--white); }

/* ---- CTA strip (inner pages) ---- */
.cta-strip {
    background: var(--navy-dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.cta-strip p {
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.8);
}

/* ---- Footer ---- */
footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.55);
    padding: 2rem 0;
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.8;
}

footer a {
    color: rgba(255,255,255,0.65);
}

footer a:hover { color: var(--white); }

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin-bottom: 1rem;
    list-style: none;
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 700px) {
    .nav-inner { position: relative; flex-wrap: wrap; height: auto; padding: 0.75rem 1.25rem; }

    .nav-toggle { display: block; }

    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.open { max-height: 400px; }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0 1rem;
    }

    nav ul li a {
        padding: 0.6rem 0.5rem;
        font-size: 0.95rem;
    }

    section { padding: 2.75rem 0; }

    .card {
        flex-direction: column;
        gap: 1rem;
    }

    .card-action { align-self: flex-start; }

    .petition-box { flex-direction: column; text-align: center; }

    .petition-box p { max-width: 100%; }
}
