/* ══════════════════════════════════════════════════════════════════
   Stanford Law Offices — Earth-Tone Design System
   Based on the strategy report's established palette.
   ══════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
    --stone-950: #1c1917;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-500: #78716c;
    --stone-400: #a8a29e;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --stone-50:  #fafaf9;

    /* Brand Scale (Forest) */
    --forest-950: #131f13;
    --forest-900: #192a1a;
    --forest-800: #223722;
    --forest-700: #2d4a2e;
    --forest-600: #345435;
    --forest-500: #3d5a3e; /* Base Forest */
    --forest-400: #4a6f4b;
    --forest-300: #739574;
    --forest-200: #a1bba2;
    --forest-100: #d0ded1;
    --forest-50:  #eaf0eb;

    /* Compatibility overrides */
    --forest:    var(--forest-500);
    --forest-dk: var(--forest-700);
    --forest-lt: var(--forest-400);

    --sage:      #6b8f6b;
    --clay:      #8b6f4e;
    --clay-lt:   #c4a882;
    --warm:      #f7f3ee;
    --white:     #ffffff;
    --danger:    #b91c1c;

    --font-body:    'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Lora', Georgia, serif;
    --font-body-weight: 400;
    --font-heading-weight: 600;

    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 12px;
    --radius-xl: 20px;

    --shadow-sm:  0 1px 2px rgba(0,0,0,.05);
    --shadow-md:  0 4px 12px rgba(0,0,0,.08);
    --shadow-lg:  0 8px 30px rgba(0,0,0,.12);
    --shadow-xl:  0 16px 50px rgba(0,0,0,.15);

    --transition: 0.2s ease;
    --transition-slow: 0.4s ease;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-weight: var(--font-body-weight);
    font-size: 16px;
    line-height: 1.7;
    color: var(--stone-800);
    background: var(--stone-200);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page wrapper — white content area framed by the warm outer background */
.page-wrap {
    max-width: 1280px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 0 40px rgba(0,0,0,.06);
    min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--forest-dk); }

/* ── Lists — flush left, no bullets, subtle dash accent ──────── */
ul, ol { list-style: none; padding-left: 0; margin: 0 0 16px; }
li { padding: 6px 0 6px 20px; position: relative; line-height: 1.5; }
li::before {
    content: '—'; position: absolute; left: 0;
    color: var(--forest); font-weight: 600;
}
/* Exclude nav, footer, and dropdown lists from dash styling */
.site-nav li, .footer-col__list li, .mobile-nav li,
.dropdown__list li, .pa-nav-list li { padding-left: 0; }
.site-nav li::before, .footer-col__list li::before, .mobile-nav li::before,
.dropdown__list li::before, .pa-nav-list li::before { content: none; }

/* ── Layout ────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
/* container--narrow removed: one universal container width (1200px) */
.section { padding: 80px 0; }
.section--warm { background: var(--warm); }
.section--stone { background: var(--stone-50); }

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: var(--font-heading-weight);
    color: var(--stone-950);
    line-height: 1.3;
}
h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin-top: 40px; margin-bottom: 20px; }
h2:first-child { margin-top: 0; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); margin-top: 32px; margin-bottom: 12px; }
h3:first-child { margin-top: 0; }
p  { margin-bottom: 16px; }

.text-center { text-align: center; }
.text-muted  { color: var(--stone-600); }
.text-sm     { font-size: 0.9rem; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: var(--radius-md);
    font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
    cursor: pointer; border: none; transition: all var(--transition);
    text-decoration: none; gap: 8px;
}
.btn--primary {
    background: var(--forest); color: var(--white);
    box-shadow: 0 2px 8px rgba(61,90,62,.25);
}
.btn--primary:hover {
    background: var(--forest-dk); color: var(--white);
    box-shadow: 0 4px 16px rgba(61,90,62,.35);
    transform: translateY(-1px);
}
.btn--outline {
    background: transparent; color: var(--forest);
    border: 2px solid var(--forest);
}
.btn--outline:hover { background: var(--forest); color: var(--white); }
.btn--full { width: 100%; }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }

/* ── Top Bar ───────────────────────────────────────────────────── */
.top-bar {
    background: var(--stone-100); border-bottom: 1px solid var(--stone-200);
    padding: 6px 0; font-size: 0.82rem;
}
.top-bar__inner {
    display: flex; justify-content: flex-end; gap: 24px; align-items: center;
    max-width: 1200px; margin: 0 auto;
}
.top-bar__location {
    display: flex; align-items: center; gap: 6px;
    color: var(--stone-600); text-decoration: none; transition: color var(--transition);
}
.top-bar__location:hover { color: var(--forest); }
.top-bar__city { font-weight: 600; }
.top-bar__phone { font-weight: 500; }
.top-bar__lang {
    font-size: 0.82rem; color: var(--stone-500); margin-left: auto;
    padding-left: 16px;
}
.top-bar__lang a { color: var(--stone-500); }
.top-bar__lang a:hover { color: var(--forest); }
.top-bar__lang strong { color: var(--stone-800); }

/* ── Site Header / Nav ─────────────────────────────────────────── */
.site-header {
    background: var(--white); border-bottom: 1px solid var(--stone-200);
    padding: 0; position: sticky; top: 0; z-index: 100;
    box-shadow: var(--shadow-sm);
}
.site-header__inner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 40px; max-width: 1200px; margin: 0 auto;
}
.site-header__logo img { height: 44px; width: auto; }

.site-nav__list {
    display: flex; list-style: none; align-items: center; gap: 4px;
}
.site-nav__link {
    display: flex; align-items: center; gap: 4px;
    padding: 10px 16px; color: var(--stone-700); font-weight: 500;
    font-size: 0.92rem; border-radius: var(--radius-md);
    transition: all var(--transition); background: none; border: none;
    cursor: pointer; font-family: var(--font-body);
}
.site-nav__link:hover, .site-nav__link--active { color: var(--forest); background: var(--stone-50); }
.site-nav__chevron { transition: transform var(--transition); }

/* Dropdown */
.site-nav__item--dropdown { position: relative; }
.site-nav__dropdown {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--white); border: 1px solid var(--stone-200);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    min-width: 280px; padding: 8px 0; list-style: none; z-index: 200;
}
.site-nav__item--dropdown:hover .site-nav__dropdown,
.site-nav__item--dropdown:focus-within .site-nav__dropdown { display: block; }
.site-nav__item--dropdown:hover .site-nav__chevron { transform: rotate(180deg); }

.site-nav__dropdown-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px; color: var(--stone-700); font-size: 0.9rem;
    transition: all var(--transition);
}
.site-nav__dropdown-link:hover { background: var(--stone-50); color: var(--forest); }
.site-nav__dropdown-icon { font-size: 1.1rem; width: 24px; text-align: center; }

/* Hamburger */
.site-header__hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger__line {
    width: 24px; height: 2px; background: var(--stone-700);
    transition: all var(--transition); border-radius: 2px;
}

/* ── Mobile Nav ────────────────────────────────────────────────── */
.mobile-nav {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white); z-index: 999; overflow-y: auto;
    padding: 80px 24px 40px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav__section { margin-bottom: 32px; }
.mobile-nav__heading {
    font-family: var(--font-body); font-weight: 600; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--stone-500); margin-bottom: 12px;
}
.mobile-nav__link {
    display: block; padding: 10px 0; color: var(--stone-800);
    font-size: 1.05rem; border-bottom: 1px solid var(--stone-100);
}
.mobile-nav__phone {
    display: block; padding: 4px 0 10px; color: var(--forest);
    font-weight: 600; font-size: 0.95rem;
}

/* ── Hero Section ──────────────────────────────────────────────── */
.hero {
    background: var(--warm); padding: 48px 0 56px;
    border-bottom: 1px solid var(--stone-200);
}
.hero__inner {
    display: flex; gap: 40px; align-items: flex-start;
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
}
.hero__content { flex: 1.2; }
.hero__portrait { flex: 0.8; display: flex; align-items: center; justify-content: center; }
.hero__headline {
    font-family: var(--font-heading); font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700; color: var(--stone-950); margin-bottom: 8px;
    line-height: 1.25;
}
.hero__subheadline {
    font-size: 1.05rem; color: var(--stone-600); font-style: italic;
    margin-bottom: 4px; font-family: var(--font-heading);
}
.hero__offices {
    font-size: 0.92rem; color: var(--stone-500); font-weight: 500;
    margin-bottom: 16px; letter-spacing: 0.01em;
}
.hero__badge {
    display: inline-block; border: 2px solid var(--forest); color: var(--forest);
    padding: 6px 16px; font-weight: 700; font-size: 0.85rem;
    border-radius: var(--radius-sm); margin-bottom: 24px;
    letter-spacing: 0.03em;
}

/* Hero inline form — 2-row grid layout */
.hero__form {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin-top: 8px;
}
.hero__form input,
.hero__form select {
    padding: 12px 16px;
    border: 1px solid var(--stone-300); border-radius: var(--radius-md);
    font-family: var(--font-body); font-size: 0.95rem;
    background: var(--white); transition: border-color var(--transition);
    color: var(--stone-800); appearance: none;
    -webkit-appearance: none;
    width: 100%;
}
.hero__form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2378716c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
.hero__form select option[value=""][disabled] { color: var(--stone-400); }
.hero__form input:focus,
.hero__form select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(61,90,62,.12); }
.hero__form .btn { }
.hero__reassurance {
    font-size: 0.85rem; color: var(--stone-500); margin-top: 4px;
    font-style: italic; margin-bottom: 0;
}

/* Portrait placeholder / image */
.hero__portrait-img {
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    width: 100%; max-width: 420px; height: auto; object-fit: contain;
}
.hero__portrait-placeholder {
    border: 2px dashed var(--stone-300); border-radius: var(--radius-lg);
    padding: 60px 24px; text-align: center; color: var(--stone-500);
    background: var(--white);
}

/* Trust badge bar */
.trust-bar {
    display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
    padding: 36px 40px;
    background: var(--stone-100); align-items: center;
    border-top: 1px solid var(--stone-200);
    border-bottom: 1px solid var(--stone-200);
}
.trust-bar__badge {
    display: flex; align-items: center; justify-content: center;
    padding: 8px 12px; font-size: 1.2rem; font-weight: 700;
    color: var(--stone-600); text-align: center; line-height: 1.3;
}
.trust-bar__badge img { height: 160px; width: auto; }

/* ── Cards ─────────────────────────────────────────────────────── */
.card-grid { display: grid; gap: 20px; margin-top: 24px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card {
    border: 1px solid var(--stone-200); border-radius: var(--radius-md);
    padding: 28px; background: var(--white); transition: all var(--transition);
}
.card:hover { border-color: var(--stone-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon { font-size: 1.8rem; margin-bottom: 12px; }
.card__title { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; margin-bottom: 8px; color: var(--stone-950); }
.card__desc { font-size: 0.9rem; color: var(--stone-600); margin-bottom: 0; }
.card__link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 0.9rem; margin-top: 12px; color: var(--forest); }
.card__link:hover { gap: 8px; }

/* ── Practice Area Page ────────────────────────────────────────── */
.pa-hero {
    background: var(--warm); padding: 40px 0; border-bottom: 1px solid var(--stone-200);
}
.pa-content { padding: 48px 0; }
.pa-content h2 { margin-top: 40px; }
.pa-content ul, .pa-content ol { padding-left: 24px; margin: 16px 0; }
.pa-content li { margin-bottom: 8px; font-size: 0.95rem; }

.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--stone-500); margin-bottom: 20px;
}
.breadcrumb a { color: var(--stone-500); }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb__sep { color: var(--stone-400); }

/* ── Location Cards ────────────────────────────────────────────── */
.location-card {
    border: 1px solid var(--stone-200); border-radius: var(--radius-lg);
    padding: 32px; background: var(--white); box-shadow: var(--shadow-sm);
}
.location-card__city {
    font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700;
    color: var(--stone-950); margin-bottom: 12px;
}
.location-card address { font-style: normal; color: var(--stone-600); font-size: 0.95rem; line-height: 1.6; margin-bottom: 12px; }
.location-card__phone {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 1.1rem; font-weight: 700; color: var(--forest);
}

/* ── Team Grid ─────────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.team-member { text-align: center; }
.team-member__photo {
    width: 200px; height: 200px; border-radius: var(--radius-lg); object-fit: cover;
    margin: 0 auto 16px; box-shadow: var(--shadow-md);
    border: 3px solid var(--stone-200);
}
.team-member__name { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--stone-950); }
.team-member__role { font-size: 0.85rem; color: var(--stone-500); }

/* ── FAQ Section ───────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--stone-200); padding: 20px 0; }
.faq-question {
    font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem;
    color: var(--stone-950); cursor: pointer; display: flex;
    justify-content: space-between; align-items: center;
}
.faq-answer { padding-top: 12px; color: var(--stone-700); font-size: 0.95rem; display: none; }
.faq-item.is-open .faq-answer { display: block; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer { background: var(--stone-950); color: var(--stone-400); padding-top: 64px; }
.site-footer__main {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px; padding-bottom: 48px;
}
.footer-logo { height: 36px; width: auto; margin-bottom: 16px; }
.footer-tagline { font-family: var(--font-heading); font-style: italic; color: var(--stone-300); font-size: 0.95rem; margin-bottom: 4px; }
.footer-since { font-size: 0.82rem; color: var(--stone-500); margin-bottom: 20px; }
.footer-social__link { color: var(--stone-400); font-size: 0.9rem; }
.footer-social__link:hover { color: var(--white); }

.footer-col__heading {
    font-family: var(--font-body); font-weight: 600; font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--stone-500); margin-bottom: 16px;
}
.footer-col__list { list-style: none; }
.footer-col__list li { margin-bottom: 8px; }
.footer-col__list a { color: var(--stone-400); font-size: 0.9rem; }
.footer-col__list a:hover { color: var(--white); }

.footer-office { margin-bottom: 20px; }
.footer-office__city { font-family: var(--font-heading); font-weight: 600; font-size: 1rem; color: var(--stone-200); margin-bottom: 4px; }
.footer-office__address { font-style: normal; font-size: 0.85rem; line-height: 1.5; margin-bottom: 4px; }
.footer-office__phone { color: var(--forest-lt); font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 4px; }
.footer-office__phone:hover { color: var(--sage); }
.footer-office__map { font-size: 0.82rem; color: var(--stone-500); }
.footer-office__map:hover { color: var(--white); }

.site-footer__bottom {
    border-top: 1px solid var(--stone-700); padding: 20px 0;
}
.site-footer__bottom-inner {
    display: flex; justify-content: space-between; align-items: center;
}
.footer-copyright { font-size: 0.8rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.8rem; color: var(--stone-500); }
.footer-legal a:hover { color: var(--white); }

/* ── Author Box ───────────────────────────────────────────────── */
.author-box {
    display: flex; gap: 20px; align-items: flex-start;
    margin-top: 48px; padding: 28px;
    background: var(--warm); border-radius: var(--radius-lg);
    border-left: 4px solid var(--forest);
}
.author-box__photo {
    width: 80px; height: 80px; border-radius: var(--radius-md);
    object-fit: cover; flex-shrink: 0;
}
.author-box__label {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--stone-500); font-weight: 600; margin-bottom: 2px;
}
.author-box__name { font-size: 1.05rem; margin-bottom: 0; }
.author-box__role { font-size: 0.85rem; color: var(--stone-500); margin-bottom: 8px; }
.author-box__bio { font-size: 0.9rem; color: var(--stone-700); margin-bottom: 8px; }
.author-box__link { font-size: 0.85rem; font-weight: 600; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .site-footer__main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .site-nav { display: none; }
    .site-header__hamburger { display: flex; }
    .hero__inner { flex-direction: column; }
    .hero__portrait { order: -1; max-width: 280px; margin: 0 auto; }
    .card-grid--2, .card-grid--3 { grid-template-columns: 1fr; }
    .site-footer__main { grid-template-columns: 1fr; }
    .site-footer__bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
    .top-bar__inner { justify-content: center; flex-wrap: wrap; gap: 12px; }
    .trust-bar { gap: 12px; }
    .trust-bar__badge { padding: 6px 12px; font-size: 0.85rem; }
    .trust-bar__badge img { height: 100px; }
    .hero__form { flex-direction: column; }
    .hero__form input { min-width: auto; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 48px 0; }
    h1 { font-size: 1.5rem; }
    .hero { padding: 32px 0 40px; }
}
