/* ==========================================================================
   Law Office of Laura A. Yiengst, LLC
   Stylesheet — modern, professional, accessible
   ========================================================================== */

:root {
    --navy: #0f2c4a;
    --navy-deep: #081a2e;
    --navy-light: #1c4570;
    --gold: #b8893a;
    --gold-soft: #d4a85a;
    --ivory: #faf7f2;
    --cream: #f3eee5;
    --text: #1f2937;
    --text-muted: #4b5563;
    --border: #e5e0d6;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(15, 44, 74, 0.08);
    --shadow-md: 0 4px 18px rgba(15, 44, 74, 0.10);
    --shadow-lg: 0 12px 40px rgba(15, 44, 74, 0.15);
    --radius: 8px;
    --max-w: 1180px;
    --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--ivory);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
    font-family: var(--serif);
    color: var(--navy);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Top utility bar ===== */
.top-bar {
    background: var(--navy-deep);
    color: var(--cream);
    font-size: 0.9rem;
    padding: 0.55rem 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}
.top-bar a { color: var(--cream); }
.top-bar a:hover { color: var(--gold-soft); }
.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    opacity: 0.9;
}
.top-bar-phone {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: var(--gold-soft) !important;
}
.top-bar-phone:hover { color: var(--white) !important; }
.top-bar-icon { width: 15px; height: 15px; fill: var(--gold-soft); flex-shrink: 0; }
@media (max-width: 620px) {
    .top-bar .container { justify-content: center; }
    .top-bar-item { font-size: 0.8rem; }
}

/* ===== Header / navigation ===== */
.site-header {
    background: var(--white);
    border-top: 3px solid var(--gold);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    line-height: 1.1;
}
.brand-mark {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}
.brand-lockup {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}
.brand-eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.16rem;
}
.brand-name {
    font-family: var(--serif);
    font-size: 1.62rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.045em;
}
.brand-sub {
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.2rem;
}

/* Header call-to-action: phone */
.header-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
    padding: 0.5rem 1.1rem;
    border-left: 3px solid var(--gold);
    background: var(--cream);
    border-radius: 6px;
    transition: background 0.2s;
}
.header-phone:hover { background: #ebe4d6; }
.header-phone .hp-label {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}
.header-phone .hp-num {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--navy);
}
.header-phone:hover .hp-num { color: var(--navy); }

/* Navigation row sits full-width below brand on its own line */
.nav-row {
    width: 100%;
    border-top: 1px solid var(--border);
    margin-top: 0.1rem;
}
.nav-row .container {
    display: flex;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
}

nav.main-nav { display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; justify-content: center; }
nav.main-nav a {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}
nav.main-nav a:hover {
    color: var(--navy);
    border-bottom-color: var(--gold-soft);
}
nav.main-nav a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.menu-toggle {
    display: none;
    background: var(--navy);
    border: 0;
    font-size: 1.35rem;
    color: var(--white);
    cursor: pointer;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, rgba(8,26,46,0.88) 0%, rgba(15,44,74,0.78) 60%, rgba(28,69,112,0.70) 100%),
                url('images/hero-home.jpg') center/cover;
    color: var(--white);
    padding: 5rem 0 5.5rem;
    position: relative;
}
.hero-inner { max-width: 760px; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--gold-soft); display: block; font-size: 0.55em; letter-spacing: 0.2em; text-transform: uppercase; font-family: var(--sans); font-weight: 500; margin-bottom: 0.75rem; }
.hero-lead { font-size: 1.2rem; opacity: 0.92; margin-bottom: 1.75rem; max-width: 600px; }
.hero-bullets {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-bottom: 2rem;
}
.hero-bullets li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}
.hero-bullets li::before {
    content: "✓";
    color: var(--gold-soft);
    font-weight: 700;
    font-size: 1.1rem;
}
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    text-align: center;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--gold); color: var(--white); }

/* ===== Sections ===== */
section { padding: 4rem 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-eyebrow {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: block;
}
.section-header p { color: var(--text-muted); font-size: 1.075rem; }
.divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 1rem auto 1.5rem;
    border: 0;
}

/* ===== Practice cards ===== */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}
.practice-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.practice-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-soft);
}
.practice-card .card-img {
    width: 100%;
    height: 190px;
    display: block;
    object-fit: cover;
    border-bottom: 3px solid var(--gold);
}
.practice-card .card-body {
    padding: 1.6rem 1.6rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.practice-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}
.practice-card h3 { font-size: 1.4rem; }
.practice-card p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* ===== Google Map embed ===== */
.map-embed {
    width: 100%;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    height: 380px;
    display: block;
}
.map-wrap { margin-top: 1rem; }
.practice-card a {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
}
.practice-card a:hover { color: var(--navy); }
.practice-card a::after { content: " →"; }

/* ===== Two column ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }

/* ===== Alt section (cream bg) ===== */
.section-alt { background: var(--cream); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.85); }
.section-dark .section-eyebrow { color: var(--gold-soft); }

/* ===== Page hero (interior pages) ===== */
.page-hero {
    background: linear-gradient(135deg, rgba(8,26,46,0.92) 0%, rgba(15,44,74,0.85) 100%),
                url('images/hero-home.jpg') center/cover;
    color: var(--white);
    padding: 4rem 0 3.5rem;
    text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero .breadcrumbs {
    font-size: 0.875rem;
    color: var(--gold-soft);
    letter-spacing: 0.05em;
}
.page-hero .breadcrumbs a { color: var(--cream); }

/* ===== Service lists ===== */
.service-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem 2rem;
    margin: 1.5rem 0 2rem;
}
.service-list {
    list-style: none;
}
.service-list li {
    padding: 0.55rem 0 0.55rem 1.6rem;
    position: relative;
    border-bottom: 1px solid var(--border);
}
.service-list li::before {
    content: "▸";
    color: var(--gold);
    position: absolute;
    left: 0;
    top: 0.55rem;
    font-weight: 700;
}

/* ===== Call to action band ===== */
.cta-band {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 3.5rem 0;
    text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; font-size: 1.1rem; }
.cta-band .phone {
    display: inline-block;
    font-family: var(--serif);
    font-size: 2.25rem;
    color: var(--gold-soft);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ===== About / bio ===== */
.bio-content {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.05rem;
}
.bio-content p { margin-bottom: 1.25rem; color: var(--text); }

/* ===== Memberships / credentials ===== */
.memberships {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}
.membership-item {
    background: var(--white);
    padding: 1.5rem 1.5rem 1.5rem 1.35rem;
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--navy);
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.membership-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.membership-seal {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}
.memberships-band {
    background:
        linear-gradient(rgba(8,26,46,0.93), rgba(8,26,46,0.93));
    background-color: var(--navy-deep);
}
.memberships-band .section-eyebrow { color: var(--gold-soft); }
.memberships-band h2 { color: var(--white); }
.memberships-band .section-header p { color: rgba(255,255,255,0.82); }

/* ===== FAQ accordion ===== */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: none;
    border: 0;
    text-align: left;
    padding: 1.25rem 1.5rem;
    font-size: 1.075rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--serif);
    transition: background 0.2s;
}
.faq-question:hover { background: var(--cream); }
.faq-question .toggle {
    color: var(--gold);
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.25s;
}
.faq-item.open .faq-question .toggle { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
    color: var(--text-muted);
}
.faq-item.open .faq-answer {
    max-height: 800px;
    padding: 0 1.5rem 1.5rem;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-block {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--gold);
}
.contact-info-block h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 0.5rem; }
.contact-info-block p, .contact-info-block address { font-style: normal; color: var(--text-muted); margin: 0; }
.contact-info-block a { color: var(--navy); font-weight: 500; }

.hours-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours-table td { padding: 0.4rem 0; border-bottom: 1px dashed var(--border); }
.hours-table td:last-child { text-align: right; color: var(--text-muted); }

/* Form */
form { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 1.1rem; }
label { display: block; font-weight: 500; margin-bottom: 0.35rem; color: var(--navy); font-size: 0.9rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--ivory);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184,137,58,0.15);
}
textarea { min-height: 130px; resize: vertical; }

/* ===== Footer ===== */
.site-footer {
    background: var(--navy-deep);
    color: rgba(255,255,255,0.78);
    padding: 3.5rem 0 1.5rem;
    font-size: 0.92rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 600;
}
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer ul { list-style: none; }
.site-footer ul li { padding: 0.3rem 0; }
.footer-brand-name {
    font-family: var(--serif);
    color: var(--white);
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.825rem;
    color: rgba(255,255,255,0.6);
}
.footer-disclaimer {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    max-width: 800px;
    margin: 0 auto 1rem;
    text-align: center;
    line-height: 1.55;
}

/* ===== Mobile nav ===== */
@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .brand-mark { width: 46px; height: 46px; }
    .brand-name { font-size: 1.3rem; }
    .brand { gap: 0.7rem; }
    .header-phone { padding: 0.4rem 0.85rem; }
    .header-phone .hp-num { font-size: 1.15rem; }
    .nav-row { display: none; }
    .nav-row.open { display: block; }
    .nav-row .container { padding: 0; }
    nav.main-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    nav.main-nav a {
        padding: 0.9rem 1.5rem;
        border-bottom: 1px solid var(--border);
        border-left: 3px solid transparent;
    }
    nav.main-nav a:hover,
    nav.main-nav a.active {
        border-bottom-color: var(--border);
        border-left-color: var(--gold);
        background: var(--cream);
    }
}
@media (max-width: 480px) {
    .header-phone .hp-label { display: none; }
    .header-phone {
        flex-direction: row;
        align-items: center;
        gap: 0.4rem;
    }
}

/* ===== Feature image block ===== */
.feature-img-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 2.5rem auto 0;
}
.feature-img-row img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    height: auto;
}
.feature-img-row .feature-text h3 { margin-bottom: 1rem; }
.feature-img-row .feature-text p { color: var(--text-muted); }
@media (max-width: 768px) {
    .feature-img-row { grid-template-columns: 1fr; gap: 1.75rem; }
}

.spotlight-img {
    display: block;
    max-width: 360px;
    margin: 0 auto 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.lead { font-size: 1.1rem; color: var(--text-muted); }
