/* ============================================================
   Thomas Family Law Counsel — Global Styles
   Loaded sitewide via css_script_manager/css_script_manager.php
   ============================================================ */

:root {
    --navy: #1B2A4A;
    --navy-deep: #11192e;
    --gold: #C9A227;
    --cream: #F7F4EC;
    --ink: #2B2F38;
    --sage: #6B8068;
    --hairline: rgba(27, 42, 74, 0.12);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background: var(--cream);
}

h1, h2, h3 {
    font-family: 'Source Serif 4', serif;
}

a {
    text-decoration: none;
}

/* Skip link */
.skip-to-main-content {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy);
    color: var(--cream);
    padding: 0.6rem 1rem;
    z-index: 2000;
}
.skip-to-main-content:focus {
    left: 0;
}

/* Placeholder banner — remove once site is finalized */
.placeholder-banner {
    background: var(--gold);
    color: var(--navy-deep);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 0;
    letter-spacing: 0.02em;
}

/* ── Header / Nav ──────────────────────────────────────────── */
.nav {
    background: var(--cream);
    border-bottom: 1px solid var(--hairline);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}
.brand-text {
    font-family: 'Source Serif 4', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--navy);
}
.brand-text em {
    color: var(--gold);
    font-style: normal;
}
.brand-logo {
    max-height: 56px;
    width: auto;
}
.nav-links {
    display: flex;
    gap: 1.5rem;
}
.nav-links a {
    color: var(--navy);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s ease;
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.btn-consult {
    background: var(--navy);
    color: var(--cream) !important;
    border-radius: 2px;
    padding: 0.55rem 1.3rem;
    font-weight: 600;
    font-size: 0.92rem;
}
.btn-consult:hover {
    background: var(--navy-deep);
}
.nav-toggler {
    display: none;
    border: none;
    background: transparent;
    color: var(--navy);
    font-size: 1.3rem;
}
.nav-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem 0 1.4rem;
}
.nav-mobile-links a {
    color: var(--navy);
    font-weight: 500;
}

@media (max-width: 991px) {
    .nav-links {
        display: none;
    }
    .nav-toggler {
        display: inline-block;
    }
}

/* ── Shared section styles ────────────────────────────────── */
section {
    padding: 5.5rem 0;
}
.section_label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--sage);
    margin-bottom: 0.6rem;
}
.section_title {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 600;
    color: var(--navy);
}
.divider {
    width: 46px;
    height: 3px;
    background: var(--gold);
    margin: 1.1rem 0 1.6rem;
}
.lede {
    font-size: 1.05rem;
    color: #454b58;
    max-width: 680px;
}
.btn-gold {
    display: inline-block;
    background: var(--gold);
    color: var(--navy-deep);
    font-weight: 600;
    padding: 0.75rem 1.8rem;
    border-radius: 2px;
}
.btn-gold:hover {
    background: #dab63a;
    color: var(--navy-deep);
}
.btn-outline-light {
    display: inline-block;
    border: 1px solid rgba(247, 244, 236, 0.4);
    color: var(--cream);
    border-radius: 2px;
    padding: 0.75rem 1.6rem;
    margin-left: 0.8rem;
    font-weight: 500;
}

/* ── About / steps ────────────────────────────────────────── */
.about_section {
    background: #fff;
}
.step {
    border-left: 1px solid var(--hairline);
    padding-left: 1.6rem;
    height: 100%;
}
.step .num {
    font-family: 'Source Serif 4', serif;
    font-size: 2.4rem;
    color: var(--gold);
    line-height: 1;
    font-weight: 700;
}
.step h3 {
    font-size: 1.05rem;
    color: var(--navy);
    margin-top: 0.6rem;
    font-weight: 600;
}
.step p {
    color: #5a606c;
    font-size: 0.95rem;
}

/* ── Services ─────────────────────────────────────────────── */
.services_section {
    background: var(--cream);
}
.service_card {
    background: #fff;
    border: 1px solid var(--hairline);
    padding: 2rem 1.7rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(27, 42, 74, 0.08);
}
.service_card .icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(27, 42, 74, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 1.1rem;
}
.service_card h3 {
    font-size: 1.1rem;
    color: var(--navy);
    font-weight: 600;
}
.service_card p {
    color: #5a606c;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ── Podcast ──────────────────────────────────────────────── */
.podcast_section {
    background: #fff;
}
.podcast_card {
    background: var(--navy);
    color: var(--cream);
    border-radius: 4px;
    padding: 2.4rem;
}
.podcast_card h3 {
    font-weight: 600;
    margin-top: 0.5rem;
}
.podcast_card p {
    color: rgba(247, 244, 236, 0.78);
}
.ep_pill {
    display: inline-block;
    border: 1px solid rgba(201, 162, 39, 0.45);
    color: var(--gold);
    font-size: 0.78rem;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.9rem;
}

/* ── Contact ──────────────────────────────────────────────── */
.contact_section {
    background: var(--navy);
    color: var(--cream);
}
.contact_section .section_label {
    color: var(--gold);
}
.contact_section .section_title {
    color: var(--cream);
}
.contact_section .lede {
    color: rgba(247, 244, 236, 0.78);
    max-width: 520px;
}

/* ── Generic page template ───────────────────────────────── */
.generic_page_section {
    background: #fff;
    padding: 4.5rem 0;
}
.page_title {
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
    background: var(--navy-deep);
    color: rgba(247, 244, 236, 0.85);
    padding: 3rem 0 1.5rem;
}
.foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.foot-brand-block .brand-text {
    color: var(--cream);
}
.foot-tag {
    color: rgba(247, 244, 236, 0.6);
    font-size: 0.92rem;
    margin-top: 0.6rem;
}
.foot-col h6 {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    margin-bottom: 0.8rem;
}
.foot-col a, .foot-col p {
    display: block;
    color: rgba(247, 244, 236, 0.75);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.foot-legal {
    border-top: 1px solid rgba(247, 244, 236, 0.15);
    padding-top: 1.2rem;
    font-size: 0.8rem;
    color: rgba(247, 244, 236, 0.5);
}
.foot-copy {
    font-size: 0.85rem;
    color: rgba(247, 244, 236, 0.55);
}

@media (max-width: 767px) {
    .foot-grid {
        grid-template-columns: 1fr;
    }
}
