/* ============================================================
   DUNNINGTON GENERAL MAINTENANCE — SHARED STYLES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

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

:root {
    --navy: #15325B;
    --navy-light: #1E4578;
    --gold: #D4A843;
    --gold-light: #E8C97A;
    --gold-dark: #B08A2E;
    --white: #FFFFFF;
    --offwhite: #F8F6F3;
    --gray: #6B7280;
    --dark: #1A1A1A;
    --border: #E5E7EB;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--dark);
    line-height: 1.7;
    background: var(--offwhite);
}
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; }

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

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(11, 29, 58, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(212, 168, 67, 0.15); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.nav-logo { text-decoration: none; display: flex; flex-direction: column; }
.nav-logo-name { font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 800; color: var(--white); display: block; letter-spacing: -0.02em; }
.nav-logo-tagline { font-size: 0.7rem; color: var(--gold); font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.3s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.3s; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important; color: var(--navy) !important; padding: 10px 24px; border-radius: 8px; font-weight: 700 !important; font-size: 0.9rem; box-shadow: 0 2px 12px rgba(212,168,67,0.3); }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(212,168,67,0.5); }
.nav-cta::after { display: none !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: white; margin: 5px 0; transition: 0.3s; }

/* BUTTONS */
.btn { display: inline-block; padding: 16px 36px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: all 0.3s; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212,168,67,0.3); }

/* KB HERO */
.kb-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #2A5A9A 100%);
    padding: 100px 24px 80px;
    text-align: center;
    color: white;
}
.kb-hero h1 { font-size: 3rem; font-weight: 900; margin-bottom: 20px; }
.kb-hero-subtitle { max-width: 650px; margin: 0 auto; font-size: 1.15rem; color: rgba(255,255,255,0.8); line-height: 1.7; }

/* KB GRID */
.kb-grid-section { padding: 80px 24px; }
.kb-category { margin-bottom: 60px; }
.kb-category h2 { font-size: 1.8rem; color: var(--navy); margin-bottom: 8px; }
.kb-category > p { color: var(--gray); margin-bottom: 24px; }
.kb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.kb-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    text-decoration: none;
    color: var(--dark);
    border: 1px solid var(--border);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.kb-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(21,50,91,0.1); border-color: var(--gold); }
.kb-card-icon { font-size: 2rem; margin-bottom: 16px; }
.kb-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.kb-card p { color: var(--gray); font-size: 0.95rem; line-height: 1.6; flex-grow: 1; }
.kb-card-read { color: var(--gold-dark); font-weight: 600; font-size: 0.9rem; margin-top: 16px; }
.kb-card:hover .kb-card-read { color: var(--gold); }

/* ARTICLE LAYOUT */
.article-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #2A5A9A 100%);
    padding: 100px 24px 60px;
    color: white;
}
.article-hero .section-label { color: var(--gold); }
.article-hero h1 { font-size: 2.6rem; font-weight: 900; margin-bottom: 16px; max-width: 800px; }
.article-meta { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.article-meta span { margin-right: 20px; }

.article-body {
    background: white;
    max-width: 800px;
    margin: -30px auto 60px;
    padding: 50px 60px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
}
.article-body h2 { font-size: 1.6rem; color: var(--navy); margin: 40px 0 16px; padding-top: 20px; border-top: 1px solid var(--border); }
.article-body h2:first-of-type { border-top: none; padding-top: 0; }
.article-body h3 { font-size: 1.2rem; color: var(--navy-light); margin: 28px 0 12px; }
.article-body p { margin-bottom: 16px; color: #333; line-height: 1.8; }
.article-body ul, .article-body ol { margin: 16px 0 24px 24px; color: #333; }
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body strong { color: var(--navy); }
.article-body blockquote { border-left: 4px solid var(--gold); padding: 16px 24px; background: #FFF9EB; margin: 24px 0; border-radius: 0 8px 8px 0; font-style: italic; color: #555; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.95rem; }
.article-body th { background: var(--navy); color: white; padding: 12px 16px; text-align: left; font-weight: 600; }
.article-body td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.article-body tr:nth-child(even) { background: #F9FAFB; }

.article-nav { max-width: 800px; margin: 0 auto 60px; display: flex; justify-content: space-between; gap: 20px; }
.article-nav a { text-decoration: none; color: var(--navy); font-weight: 600; padding: 16px 24px; background: white; border-radius: 8px; border: 1px solid var(--border); transition: all 0.3s; }
.article-nav a:hover { border-color: var(--gold); transform: translateY(-2px); }

/* SECTION LABEL */
.section-label {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    background: rgba(212,168,67,0.15);
    color: var(--gold);
}

/* CTA SECTION */
.cta-section {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    padding: 80px 24px;
    text-align: center;
    color: white;
}
.cta-section .section-title { color: white; font-size: 2.2rem; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 30px; }
.cta-phone { display: block; font-size: 2rem; font-weight: 800; color: var(--gold); text-decoration: none; margin-bottom: 24px; }

/* FOOTER */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 24px 30px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { color: white; font-family: 'Outfit', sans-serif; font-size: 1.4rem; margin-bottom: 12px; }
.footer-brand p { line-height: 1.6; }
.footer-links h4 { color: var(--gold); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.85rem; }

/* INFO BOX */
.info-box { background: #EEF4FF; border: 1px solid #C5D9F0; border-radius: 8px; padding: 20px 24px; margin: 24px 0; }
.info-box.warning { background: #FFF7E6; border-color: #FFD666; }
.info-box.success { background: #F0FFF4; border-color: #95DE64; }
.info-box h4 { color: var(--navy); margin-bottom: 8px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(11, 29, 58, 0.98); padding: 20px; gap: 16px; }
    .nav-links.active { display: flex; }
    .nav-toggle { display: block; }
    .kb-hero h1 { font-size: 2rem; }
    .kb-hero { padding: 80px 24px 60px; }
    .kb-cards { grid-template-columns: 1fr; }
    .article-hero h1 { font-size: 1.8rem; }
    .article-body { padding: 30px 24px; margin: -20px 16px 40px; }
    .footer-inner { grid-template-columns: 1fr; gap: 30px; }
    .article-nav { flex-direction: column; }
}
