/* ===== Pirnia Law Office — shared site stylesheet ===== */
/* Externalized from index.html; used by the homepage and all sub-pages. */

:root {
    --navy: #0d1b2a;
    --navy-2: #1b263b;
    --slate: #2b2d33;
    --gold: #b08d57;
    --gold-soft: #c9a227;
    --cream: #f8f7f4;
    --line: #e3e0d8;
    --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--slate);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    color: var(--navy);
    line-height: 1.2;
    font-weight: 600;
}

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

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

/* Top bar */
.topbar {
    background: var(--navy);
    color: rgba(255,255,255,0.78);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar .container {
    display: flex; flex-wrap: wrap; gap: 8px 22px;
    align-items: center; justify-content: space-between;
    padding-top: 9px; padding-bottom: 9px;
}
.topbar a { color: rgba(255,255,255,0.92); }
.topbar .item { display: inline-flex; align-items: center; gap: 7px; }
.topbar .dot { color: var(--gold); }

/* Header / nav */
header.site {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
}
.nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0; gap: 18px;
}
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand .name {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.55rem; font-weight: 700; color: var(--navy); letter-spacing: 0.3px;
}
.brand .sub { font-size: 0.78rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); font-weight: 500; }
nav.links ul { list-style: none; display: flex; gap: 26px; align-items: center; }
nav.links a {
    color: var(--navy-2); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.2px;
}
nav.links a:hover { color: var(--gold); text-decoration: none; }
.nav-cta {
    background: var(--gold); color: var(--white) !important;
    padding: 10px 18px; border-radius: 3px; font-weight: 600;
    transition: background .2s ease;
}
.nav-cta:hover { background: var(--navy); text-decoration: none; }

/* Hero (homepage) */
.hero {
    position: relative;
    background:
        linear-gradient(160deg, rgba(13,27,42,0.94) 0%, rgba(20,35,58,0.86) 55%, rgba(27,38,59,0.80) 100%),
        radial-gradient(900px 520px at 85% -5%, rgba(176,141,87,0.32), transparent 60%),
        url("../images/courthouse.jpg") center 35% / cover no-repeat,
        var(--navy);
    color: var(--white);
    overflow: hidden;
}
.hero .container {
    position: relative; z-index: 1;
    padding: 96px 24px 104px;
    min-height: 72vh;
    display: flex; flex-direction: column; justify-content: center;
}
.hero .eyebrow {
    display: inline-block; font-size: 0.78rem; letter-spacing: 2.4px;
    text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 18px;
}
.hero h1 {
    color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.5rem);
    max-width: 16ch; margin-bottom: 18px;
}
.hero .lede { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 52ch; font-weight: 300; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 26px; border-radius: 3px; font-weight: 600; font-size: 0.98rem;
    border: 1.5px solid transparent; cursor: pointer; transition: all .2s ease;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-soft); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--white); text-decoration: none; }

/* Section base */
section { padding: 76px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .kicker {
    font-size: 0.78rem; letter-spacing: 2.2px; text-transform: uppercase;
    color: var(--gold); font-weight: 600; display: block; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p { margin-top: 14px; color: #555; }

.intro { background: var(--white); border-bottom: 1px solid var(--line); }
.intro .body { font-size: 1.08rem; color: #444; }
.intro .since {
    margin-top: 26px; display: inline-flex; gap: 26px; flex-wrap: wrap;
    border-top: 1px solid var(--line); padding-top: 22px;
}
.intro .since .stat .n {
    font-family: "Playfair Display", serif; font-size: 1.7rem; color: var(--navy); font-weight: 700;
}
.intro .since .stat .l { font-size: 0.85rem; color: #666; text-transform: uppercase; letter-spacing: 1px; }

.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 54px; align-items: center; }
.about-media { position: relative; }
.about-media img {
    width: 100%; aspect-ratio: 3 / 4; max-height: 540px; object-fit: cover;
    border-radius: 6px; display: block;
    box-shadow: 0 22px 48px rgba(13,27,42,0.22);
}
.about-media .frame {
    position: absolute; inset: 14px -14px -14px 14px;
    border: 2px solid var(--gold); border-radius: 6px; z-index: -1; opacity: 0.55;
}

/* Practice grid */
.grid {
    display: grid; gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.card {
    background: var(--white); border: 1px solid var(--line); border-radius: 6px;
    padding: 30px 28px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(13,27,42,0.08); border-color: #d8d3c7; }
.card .ico {
    width: 48px; height: 48px; border-radius: 8px; margin-bottom: 18px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(176,141,87,0.12); color: var(--gold);
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: #555; font-size: 0.97rem; }
.card .readmore { margin-top: auto; padding-top: 18px; }
.card .readmore a {
    color: var(--gold); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.3px;
    display: inline-flex; align-items: center; gap: 6px;
}
.card .readmore a:hover { color: var(--navy); text-decoration: none; }
.card .readmore a svg { width: 15px; height: 15px; transition: transform .18s ease; }
.card .readmore a:hover svg { transform: translateX(3px); }

/* Why */
.why { background: var(--navy); color: rgba(255,255,255,0.88); }
.why h2 { color: var(--white); }
.why .section-head .kicker { color: var(--gold); }
.why ul { list-style: none; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.why li {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid var(--gold); padding: 22px 24px; border-radius: 4px; font-size: 1.02rem;
}
.why li strong { color: var(--white); display: block; margin-bottom: 4px; font-family: "Inter", sans-serif; }

/* Testimonials */
.testimonials { background: linear-gradient(180deg, var(--cream), #efe9dd); border-top: 1px solid var(--line); }
.tgrid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.review {
    background: var(--white); border: 1px solid var(--line); border-radius: 6px;
    padding: 30px 28px; display: flex; flex-direction: column; position: relative;
    transition: transform .18s ease, box-shadow .18s ease;
}
.review:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(13,27,42,0.08); }
.review .stars { color: var(--gold); display: flex; gap: 3px; margin-bottom: 16px; }
.review .stars svg { width: 17px; height: 17px; }
.review .quote { font-size: 1.0rem; color: #45474f; line-height: 1.75; margin: 0 0 22px; flex: 1; }
.review .who { font-weight: 600; color: var(--navy); font-size: 0.98rem; }
.review .meta { font-size: 0.78rem; color: #8a8a8a; margin-top: 2px; letter-spacing: 0.2px; }
.review .gtag { display: inline-flex; align-items: center; gap: 5px; }
.tally { margin-top: 30px; font-size: 1.0rem; color: #555; }
.tally strong { color: var(--navy); }
.tally a { font-weight: 600; }
.tdisclaim { margin-top: 16px; font-size: 0.8rem; color: #8a8a8a; max-width: 70ch; line-height: 1.6; }

/* Service Area */
.service-area { background: var(--navy); color: rgba(255,255,255,0.85); }
.service-area h2 { color: var(--white); }
.service-area .section-head .kicker { color: var(--gold); }
.service-area .lead { max-width: 72ch; color: rgba(255,255,255,0.82); font-size: 1.08rem; }
.service-area .lead strong { color: var(--white); }
.sa-group { margin-top: 26px; }
.sa-group .label {
    font-size: 0.72rem; letter-spacing: 1.6px; text-transform: uppercase;
    color: rgba(255,255,255,0.55); margin-bottom: 14px; font-weight: 600;
}
.sa-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sa-chip {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
    color: var(--white); padding: 9px 17px; border-radius: 999px;
    font-size: 0.93rem; font-weight: 500; letter-spacing: 0.2px;
}
.sa-counties .sa-chip { border-color: rgba(176,141,87,0.55); color: var(--gold); background: rgba(176,141,87,0.08); }
.sa-note { margin-top: 30px; font-size: 0.92rem; color: rgba(255,255,255,0.68); }
.sa-note a { color: var(--white); font-weight: 600; }
.office-map { margin-top: 40px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(13,27,42,0.10); line-height: 0; }
.office-map iframe { display: block; width: 100%; height: 360px; border: 0; }
.office-map .dir { display: block; padding: 14px 22px; background: var(--cream); border-top: 1px solid var(--line); font-size: 0.92rem; color: #555; line-height: 1.7; }
.office-map .dir:hover { text-decoration: none; }
.office-map .dir strong { color: var(--navy); }
@media (max-width: 720px) { .office-map iframe { height: 260px; } }

/* Contact */
.contact { background: var(--white); }
.office-band { position: relative; margin-bottom: 52px; border-radius: 6px; overflow: hidden; box-shadow: 0 16px 36px rgba(13,27,42,0.18); }
.office-band img { width: 100%; height: 360px; object-fit: cover; display: block; }
.office-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,27,42,0.05) 0%, rgba(13,27,42,0.62) 100%); pointer-events: none; }
.office-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 32px; color: var(--white); z-index: 1; }
.office-cap .kicker { color: var(--gold); margin-bottom: 6px; }
.office-cap p { color: rgba(255,255,255,0.94); max-width: 62ch; margin: 0; font-size: 1.0rem; }
@media (max-width: 720px) {
    .office-band img { height: 240px; }
    .office-cap { padding: 18px 20px; }
    .office-cap p { font-size: 0.92rem; }
}
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1.1fr 0.9fr; align-items: start; }
.contact-info .row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .row:first-child { padding-top: 0; }
.contact-info .label {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--gold);
    font-weight: 600; min-width: 96px; padding-top: 2px;
}
.contact-info .val { color: var(--slate); font-size: 1.04rem; }
.contact-info .val a { color: var(--navy-2); font-weight: 500; }
.contact-info .val a:hover { color: var(--gold); }
.contact-card {
    background: linear-gradient(160deg, #14233a, #0d1b2a); color: var(--white);
    border-radius: 8px; padding: 38px 34px; text-align: center;
}
.contact-card h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 10px; }
.contact-card p { color: rgba(255,255,255,0.8); margin-bottom: 24px; }
.contact-card .btn { width: 100%; }
.contact-card .phone {
    font-family: "Playfair Display", serif; font-size: 1.8rem; font-weight: 700; margin: 18px 0 4px;
}
.contact-card .phone a { color: var(--white); }

/* Contact form */
.cform { background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 30px 28px; }
.cform-head { font-family: "Playfair Display", serif; font-size: 1.3rem; color: var(--navy); margin-bottom: 4px; }
.cform-sub { font-size: 0.88rem; color: #666; margin-bottom: 20px; }
.cform .field { margin-bottom: 15px; }
.cform label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--navy-2); margin-bottom: 6px; letter-spacing: 0.2px; }
.cform .req { color: var(--gold); }
.cform input, .cform textarea {
    width: 100%; padding: 11px 13px; border: 1px solid #d8d3c7; border-radius: 4px;
    font: inherit; font-size: 0.97rem; color: var(--slate); background: var(--white);
}
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,87,0.16); }
.cform textarea { resize: vertical; min-height: 120px; }
.cform .btn-primary { width: 100%; background: var(--navy); }
.cform .btn-primary:hover { background: var(--gold); text-decoration: none; }
.cform-call { margin-top: 14px; font-size: 0.88rem; color: #666; text-align: center; }
.cform-call a { color: var(--navy-2); font-weight: 600; }
.cform-note { margin-top: 12px; font-size: 0.75rem; color: #8a8a8a; line-height: 1.5; text-align: center; }
.cform-alias { margin-top: 16px; font-family: "Playfair Display", serif; font-size: 1.02rem; color: var(--navy-2); text-align: center; word-break: break-all; }
.cform-msg { margin-bottom: 16px; padding: 12px 16px; border-radius: 4px; font-size: 0.92rem; }
.cform-msg.ok { background: rgba(56,142,60,0.10); color: #2e6b32; border: 1px solid rgba(56,142,60,0.25); }
.hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
footer.site { background: #0a1420; color: rgba(255,255,255,0.66); padding: 40px 0 32px; font-size: 0.9rem; }
footer.site .container { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: flex-start; }
footer.site .fname { color: var(--white); font-family: "Playfair Display", serif; font-size: 1.15rem; margin-bottom: 6px; }
footer.site .disc { max-width: 620px; font-size: 0.82rem; line-height: 1.6; color: rgba(255,255,255,0.5); }
footer.site .adv { margin-top: 10px; font-size: 0.78rem; letter-spacing: 0.5px; color: var(--gold); text-transform: uppercase; }
footer.site .credits { margin-top: 12px; font-size: 0.72rem; line-height: 1.5; color: rgba(255,255,255,0.4); }

/* ===== Practice-area detail pages ===== */
.pa-hero {
    background:
        linear-gradient(160deg, rgba(13,27,42,0.92) 0%, rgba(20,35,58,0.86) 100%),
        radial-gradient(800px 420px at 85% -10%, rgba(176,141,87,0.25), transparent 60%),
        var(--navy);
    color: var(--white);
    padding: 44px 0 52px;
}
.pa-hero .kicker {
    font-size: 0.78rem; letter-spacing: 2.2px; text-transform: uppercase;
    color: var(--gold); font-weight: 600; display: block; margin-bottom: 12px;
}
.pa-hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.8vw, 2.7rem); max-width: 20ch; }
.pa-hero .lead { margin-top: 14px; color: rgba(255,255,255,0.85); max-width: 60ch; font-size: 1.1rem; font-weight: 300; }
.pa-back {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.7); font-size: 0.88rem; margin-bottom: 22px; font-weight: 500;
}
.pa-back:hover { color: var(--gold); text-decoration: none; }

.pa-layout { display: grid; grid-template-columns: 1fr 320px; gap: 52px; padding: 60px 0 76px; align-items: start; }
.pa-article { font-size: 1.03rem; color: #3a3d44; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 40px 42px; }
.pa-article > h2 { font-size: 1.4rem; margin: 30px 0 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.pa-article > h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.pa-article > h3 { font-size: 1.12rem; margin: 22px 0 8px; color: var(--navy-2); }
.pa-article p { margin-bottom: 15px; }
.pa-article ul, .pa-article ol { margin: 0 0 16px 1.3em; }
.pa-article li { margin-bottom: 7px; }
.pa-article strong { color: var(--navy); }
.pa-note {
    margin-top: 32px; padding: 18px 20px; background: rgba(176,141,87,0.08);
    border-left: 3px solid var(--gold); border-radius: 4px; font-size: 0.88rem; color: #5a5d64;
}
.pa-cta { margin-top: 30px; }
.pa-cta .btn-primary { background: var(--navy); }
.pa-cta .btn-primary:hover { background: var(--gold); }
.pa-aside { position: sticky; top: 96px; }
.pa-aside .contact-card { padding: 30px 26px; }
.pa-aside .contact-card h3 { font-size: 1.3rem; }
.pa-aside .contact-card .phone { font-size: 1.5rem; }
.pa-related { margin-top: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px; }
.pa-related h4 { font-size: 0.78rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.pa-related ul { list-style: none; }
.pa-related li { margin-bottom: 8px; }
.pa-related a { color: var(--navy-2); font-weight: 500; font-size: 0.95rem; }

@media (max-width: 900px) {
    .pa-layout { grid-template-columns: 1fr; gap: 32px; padding: 44px 0 56px; }
    .pa-aside { position: static; }
    .pa-article { padding: 30px 26px; }
}

/* Responsive */
@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 34px; }
    .about-media img { aspect-ratio: 16 / 10; max-height: 360px; }
    .about-media .frame { display: none; }
}
@media (max-width: 720px) {
    nav.links ul { gap: 16px; }
    nav.links .hide-sm { display: none; }
    .hero .container { padding: 64px 24px 72px; }
    section { padding: 56px 0; }
}
@media (max-width: 560px) {
    .topbar .container { justify-content: center; font-size: 0.8rem; }
    nav.links { display: none; }
    .brand .name { font-size: 1.35rem; }
}
