/* =====================================================
   Ryan Benn for Madison County Attorney
   Palette: Navy / Cream / Gold (gold = the golden rule)
   Type:    Playfair Display (display) + Source Sans 3 (body)
   ===================================================== */

:root {
    --navy:        #0c1f3a;
    --navy-deep:   #081530;
    --navy-soft:   #1a3458;
    --gold:        #c9a14a;
    --gold-soft:   #e3c886;
    --cream:       #f7f1e3;
    --cream-deep:  #efe6cf;
    --paper:       #fbfaf6;
    --ink:         #1f2330;
    --ink-soft:    #4a4f5e;
    --rule:        rgba(12, 31, 58, 0.12);
    --shadow-md:   0 12px 30px rgba(12, 31, 58, 0.10);

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

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

a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

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

/* ===================== HEADER ===================== */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--rule);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--navy);
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--navy);
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 24px;
    line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--navy);
}
.brand-tag {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 2px;
}

/* ===================== HERO ===================== */
.hero {
    position: relative;
    background: linear-gradient(180deg, #fbfaf6 0%, #efe6cf 100%);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 10%, rgba(201, 161, 74, 0.18), transparent 60%),
        radial-gradient(ellipse at 10% 90%, rgba(12, 31, 58, 0.08), transparent 60%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 88px 24px 96px;
}
.hero-copy { max-width: 600px; }

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 14px;
}

h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.05;
    color: var(--navy);
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}
.accent { color: var(--gold); }

.hero-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(20px, 2.4vw, 26px);
    color: var(--navy-soft);
    margin: 0 0 18px;
}

.hero-lede {
    font-size: 18px;
    color: var(--ink-soft);
    border-left: 3px solid var(--gold);
    padding: 4px 0 4px 18px;
    margin: 0 0 28px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--gold); }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }

.hero-portrait {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    background: var(--cream-deep);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--rule);
}
.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

@media (max-width: 820px) {
    .header-inner { padding: 12px 20px; }
    .hero-inner { grid-template-columns: 1fr; padding: 60px 20px 70px; gap: 36px; }
    .hero-portrait { max-width: 360px; margin: 0 auto; }
}

/* ===================== FOOTER ===================== */
.site-footer {
    background: var(--navy-deep);
    color: #cfd6e3;
    padding: 36px 0 30px;
    text-align: center;
}
.footer-tag {
    font-style: italic;
    color: var(--gold-soft);
    margin: 0 0 12px;
    font-size: 15px;
    font-family: var(--font-display);
}
.footer-disclaimer { margin: 0 0 6px; font-size: 14px; }
.footer-copy { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.site-footer a { color: var(--gold-soft); }
