/* Christopher Nelson Law Office — Enhanced CSS
 * Design: Playfair Display + Inter, navy palette, gold accents
 * Client-funnel focused, responsive, scroll animations
 */

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

:root {
    --navy: #1a2a4a;
    --navy-light: #2a3a5a;
    --navy-dark: #0f1a30;
    --gold: #c9a84c;
    --gold-light: #d4b966;
    --gold-dark: #b8963f;
    --cream: #f5f3ee;
    --warm-white: #faf9f6;
    --text: #2c2c2c;
    --text-light: #666;
    --text-muted: #888;
    --border: #e8e4de;
    --shadow: 0 2px 12px rgba(26,42,74,0.08);
    --shadow-lg: 0 8px 30px rgba(26,42,74,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--warm-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

p { margin-bottom: 1rem; }
a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

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

/* ── Utilities ────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: white; }
.bg-navy h2, .bg-navy h3 { color: white; }

/* ── Buttons ──────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}
.btn-outline:hover {
    background: white;
    color: var(--navy);
}

.btn-navy {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}
.btn-navy:hover {
    background: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-white {
    background: white;
    color: var(--navy);
    border-color: white;
}
.btn-white:hover {
    background: var(--cream);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg { padding: 16px 40px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

/* ── Header ───────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26,42,74,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201,168,76,0.2);
    transition: all var(--transition);
}

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

.site-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}
.site-logo span { color: var(--gold); }
.site-logo:hover { color: var(--gold); }

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}
.main-nav a {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color var(--transition);
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
    color: var(--gold);
}

.header-cta {
    background: var(--gold);
    color: var(--navy-dark) !important;
    padding: 8px 20px !important;
    border-radius: var(--radius);
    font-weight: 600 !important;
}
.header-cta:hover {
    background: var(--gold-light) !important;
    color: var(--navy-dark) !important;
}

.header-phone {
    color: white !important;
    font-weight: 500;
    font-size: 14px;
}
.header-phone:hover { color: var(--gold) !important; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: var(--transition);
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    overflow: hidden;
    margin-top: 72px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../design_assets/pattern_texture.png') repeat;
    opacity: 0.05;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 60px 24px;
}

/* Hero grid layout (text + photo) */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.hero h1 { color: white; margin-bottom: 20px; }

.hero .lead {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 32px;
}

.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Trust Bar ────────────────────────────────────── */
.trust-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin: 40px 0;
}
.trust-item { text-align: center; }
.trust-item h3 {
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 4px;
}
.trust-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ── Counties Section ─────────────────────────────── */
.counties-section {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    padding: 60px 0;
    color: white;
}
.counties-section h2 { color: white; margin-bottom: 12px; }
.counties-section .subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    margin-bottom: 32px;
}
.counties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.county-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(201,168,76,0.3);
    padding: 16px 12px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 500;
    font-size: 15px;
    transition: all var(--transition);
}
.county-badge.primary {
    background: rgba(201,168,76,0.15);
    border-color: var(--gold);
}
.county-badge:hover {
    background: rgba(201,168,76,0.25);
    transform: translateY(-2px);
}
.county-badge .label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold);
    margin-bottom: 4px;
}
.county-note {
    margin-top: 24px;
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
}

/* ── Practice Cards ───────────────────────────────── */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 40px 0;
}
.practice-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.practice-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.practice-card-img {
    height: 200px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.practice-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.practice-card:hover .practice-card-img img {
    transform: scale(1.05);
}
.practice-card-img .placeholder {
    color: rgba(255,255,255,0.3);
    font-size: 48px;
}
.practice-card-body {
    padding: 24px;
}
.practice-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.practice-card-body p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 16px;
}
.card-link {
    font-weight: 600;
    font-size: 14px;
    color: var(--gold-dark);
}
.card-link:hover { color: var(--navy); }

/* ── Testimonials ─────────────────────────────────── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}
.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--gold);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
    top: 8px;
    left: 20px;
    line-height: 1;
}
.testimonial-card blockquote {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
}
.testimonial-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
}
.testimonial-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── CTA Banner ───────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../design_assets/pattern_texture.png') repeat;
    opacity: 0.05;
}
.cta-banner > .container { position: relative; z-index: 2; }
.cta-banner h2 { color: white; margin-bottom: 16px; }
.cta-banner p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ── Forms ────────────────────────────────────────── */
.contact-form {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.contact-form h3 {
    margin-bottom: 24px;
    font-size: 1.4rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: border-color var(--transition);
    background: var(--warm-white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-col p { font-size: 0.9rem; }
.footer-col a { color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--gold); }
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col li { margin-bottom: 8px; }
.footer-col li a { font-size: 0.9rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

/* ── Scroll Reveal ────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .header-phone { display: none; }
    .menu-toggle { display: block; }
    .main-nav.open {
        display: flex;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--navy-dark);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 2px solid var(--gold);
    }
    .hero { min-height: 70vh; }
    .hero-content { padding: 40px 20px; }
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        text-align: center;
    }
    .hero-image { order: -1; }
    .hero-image img {
        max-width: 280px !important;
        margin: 0 auto;
    }
    .btn-group { flex-direction: column; }
    .btn-group .btn { width: 100%; }
    .bio-intro {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    .bio-photo {
        margin: 0 auto 24px !important;
        width: 200px !important;
        height: 250px !important;
    }
    .form-row { grid-template-columns: 1fr; }
    .practice-grid { grid-template-columns: 1fr; }
    .section { padding: 50px 0; }
    .contact-form { padding: 24px; }
}

/* ── Page Header ──────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../design_assets/pattern_texture.png') repeat;
    opacity: 0.05;
}
.page-header h1 { color: white; margin-bottom: 12px; }
.page-header p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Content Sections ─────────────────────────────── */
.content-section { padding: 60px 0; }
.content-section h2 { margin-bottom: 20px; }
.content-section h3 {
    margin: 32px 0 12px;
    font-size: 1.2rem;
}
.content-section ul {
    padding-left: 24px;
    margin-bottom: 20px;
}
.content-section li {
    margin-bottom: 8px;
}

/* ── About Page ───────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy);
    aspect-ratio: 3/4;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-image .placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255,255,255,0.2);
    font-size: 64px;
}
.qualities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}
.quality-item {
    background: var(--cream);
    padding: 16px;
    border-radius: var(--radius);
    border-left: 3px solid var(--gold);
}
.quality-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 4px;
}
.quality-item span {
    font-size: 0.85rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .qualities-grid { grid-template-columns: 1fr; }
}

/* ── FAQ Accordion ────────────────────────────────── */
.faq-list { max-width: 800px; margin: 32px auto 0; }
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}
.faq-question {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0;
    font-family: inherit;
}
.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 300;
    flex-shrink: 0;
    margin-left: 12px;
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 500px;
}
.faq-answer p {
    padding-top: 12px;
    color: var(--text-light);
    line-height: 1.7;
}
