/* ============================================================
   North County Domestic Violence — Law Office of Angelo Reyes, APC
   Family shelter identity: honey amber · slate gray · warm linen
   Classic serif lead. Designed for mobile first, zero JS.
   ============================================================ */

:root {
  --linen: #F3EEDF;
  --linen-bright: #FAF6EB;
  --linen-deep: #E9E1CC;
  --slate: #343D4A;
  --slate-deep: #222936;
  --slate-soft: #5A6472;
  --honey: #C9962E;
  --honey-deep: #8A5F0D;
  --honey-bright: #E7BC66;
  --honey-tint: #F5E8C8;
  --ink: #26201A;
  --paper: #FFFFFF;
  --line: rgba(52, 61, 74, 0.16);
  --line-honey: rgba(201, 150, 46, 0.45);
  --serif: "Hoefler Text", "Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--linen);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--honey-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--honey); text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--slate-deep);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: 0.1px;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.05rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1em; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--slate-deep); color: var(--linen-bright);
  padding: 10px 16px; border-radius: 0 0 8px 8px;
  z-index: 200; transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: var(--linen-bright); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Roof line ---------- */
.roofline {
  height: 12px;
  background-color: var(--slate-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 12' width='32' height='12'%3E%3Cpath d='M0 12 L16 2 L32 12 Z' fill='%23C9962E'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom;
}

/* ---------- Header ---------- */
header.site { background: var(--slate-deep); color: var(--linen-bright); }

.hd-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: 46px; flex: none; }
.brand-logo img { width: 46px; height: 46px; border-radius: 8px; }

.brand-stack { line-height: 1.22; }
.brand-name {
  font-family: var(--serif); font-size: 1.22rem; font-weight: 600;
  color: var(--linen-bright); letter-spacing: 0.2px; display: block;
}
.brand-sub { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--honey-bright); display: block; margin-top: 2px; }

a.brand:hover { text-decoration: none; }
a.brand:hover .brand-name { color: #fff; }

.hd-actions { display: flex; align-items: center; gap: 14px; }
.hd-phone {
  font-family: var(--serif); font-size: 1.12rem; font-weight: 600;
  color: var(--honey-bright); white-space: nowrap;
}
.hd-phone:hover { color: #fff; text-decoration: none; }

/* ---------- Nav ---------- */
nav.main { border-top: 1px solid rgba(243, 238, 223, 0.14); }

.nav-row { display: flex; flex-wrap: wrap; gap: 2px 22px; padding: 8px 0 10px; }
.nav-row a {
  color: var(--linen-bright); font-size: 0.86rem;
  letter-spacing: 0.04em; padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-row a:hover { text-decoration: none; border-bottom-color: var(--honey); color: #fff; }
.nav-row a[aria-current="page"] { color: var(--honey-bright); border-bottom-color: var(--honey); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  background: var(--linen-bright);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px; padding: 52px 0 48px; align-items: center;
}

.kicker {
  display: inline-block; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--honey-deep);
  background: var(--honey-tint); padding: 5px 12px; border-radius: 4px;
  margin-bottom: 14px;
}

.hero h1 { margin-bottom: 16px; }
.hero h1 em { font-style: italic; color: var(--honey-deep); }

.hero-lead { font-size: 1.13rem; color: var(--slate-soft); max-width: 34em; margin-bottom: 22px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-block; font-weight: 700; font-size: 0.98rem;
  padding: 13px 26px; border-radius: 6px; letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-honey { background: var(--honey); color: var(--slate-deep); box-shadow: 0 2px 0 var(--honey-deep); }
.btn-honey:hover { background: var(--honey-bright); color: var(--slate-deep); }

.btn-ghost {
  background: transparent; color: var(--slate-deep);
  border: 1.5px solid var(--slate);
}
.btn-ghost:hover { border-color: var(--honey-deep); color: var(--honey-deep); }

.hero-note { font-size: 0.82rem; color: var(--slate-soft); margin-top: 14px; }

/* ---------- Map ---------- */
.map-frame {
  background: var(--slate-deep);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(34, 41, 54, 0.22);
}
.map-frame img { width: 100%; height: auto; }

/* ---------- Sections ---------- */
section.block { padding: 56px 0; }
section.block + section.block { border-top: 1px solid var(--line); }

.block-head { max-width: 44em; margin-bottom: 30px; }
.block-head h2 { margin-bottom: 10px; }
.block-head p { color: var(--slate-soft); font-size: 1.04rem; }

.lede-num {
  font-family: var(--serif); color: var(--honey-deep);
  font-size: 0.95rem; letter-spacing: 0.2em; display: block; margin-bottom: 6px;
}

/* ---------- Angle: city grid ---------- */
.angle { background: var(--linen); }

.city-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin-bottom: 26px;
}
.city-card {
  background: var(--paper); border: 1px solid var(--line);
  border-top: 3px solid var(--honey);
  border-radius: 8px; padding: 14px 16px;
  font-family: var(--serif); font-size: 1.02rem; color: var(--slate-deep);
  display: block;
}
.city-card:hover { border-top-color: var(--honey-deep); text-decoration: none; box-shadow: 0 6px 18px rgba(34,41,54,0.10); }
.city-card span { display: block; font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-soft); margin-bottom: 2px; }

.path-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.path-step {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 8px; padding: 18px 20px;
}
.path-step .step-n {
  font-family: var(--serif); font-size: 1.6rem; color: var(--honey);
  display: block; line-height: 1; margin-bottom: 8px;
}
.path-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.path-step p { font-size: 0.93rem; color: var(--slate-soft); margin: 0; }

/* ---------- Rooms (practice cards) ---------- */
.rooms { background: var(--linen-bright); }

.room-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.room {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
}
.room .lintel {
  background: var(--slate-deep); color: var(--honey-bright);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.24em;
  padding: 7px 18px; text-transform: uppercase;
}
.room .room-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.room .icon { width: 44px; height: 44px; color: var(--honey-deep); margin-bottom: 12px; }
.room .icon svg { width: 44px; height: 44px; }
.room h3 { margin-bottom: 8px; }
.room p { font-size: 0.95rem; color: var(--slate-soft); flex: 1; }
.room .room-link { font-weight: 700; font-size: 0.9rem; margin-top: 10px; }

/* ---------- Firm ---------- */
.firm { background: var(--linen); }
.firm-grid {
  display: grid; grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px; align-items: start;
}
.portrait-frame {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 10px 14px;
  box-shadow: 0 10px 26px rgba(34,41,54,0.12);
}
.portrait-frame img { border-radius: 6px; }
.portrait-frame figcaption {
  font-family: var(--serif); text-align: center; padding-top: 10px;
  color: var(--slate-deep); font-size: 0.98rem;
}
.portrait-frame figcaption span { display: block; font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--honey-deep); margin-bottom: 2px; }

.pillars { list-style: none; }
.pillars li {
  position: relative; padding: 16px 0 16px 34px;
  border-bottom: 1px solid var(--line);
}
.pillars li:last-child { border-bottom: 0; }
.pillars li::before {
  content: ""; position: absolute; left: 0; top: 22px;
  width: 18px; height: 2px; background: var(--honey);
}
.pillars h3 { font-size: 1.12rem; margin-bottom: 4px; }
.pillars p { font-size: 0.96rem; color: var(--slate-soft); margin: 0; }

/* ---------- Strip (other practices) ---------- */
.strip { background: var(--honey-tint); padding: 26px 0; }
.strip p { margin: 0; font-size: 0.95rem; color: var(--slate-deep); }
.strip a { font-weight: 700; }

/* ---------- CTA ---------- */
.cta { background: var(--slate-deep); color: var(--linen-bright); position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 12' width='32' height='12'%3E%3Cpath d='M0 12 L16 2 L32 12 Z' fill='none' stroke='%23C9962E' stroke-width='0.6'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: bottom; opacity: 0.5;
  pointer-events: none;
}
.cta-inner { position: relative; padding: 52px 0; text-align: center; }
.cta h2 { color: var(--linen-bright); margin-bottom: 10px; }
.cta p { color: #C9CFD8; max-width: 34em; margin: 0 auto 22px; }
.cta .btn-honey { font-size: 1.06rem; padding: 15px 34px; }
.cta-note { font-size: 0.8rem; color: #9AA3B0; margin-top: 12px; }

/* ---------- Dome arch ---------- */
.dome {
  display: inline-block; position: relative;
  border-radius: 120px 120px 8px 8px;
  overflow: hidden;
}
.dome-lid {
  background: var(--honey-tint); border: 1px solid var(--line-honey);
  border-radius: 120px 120px 10px 10px;
  padding: 26px 30px 30px; text-align: center;
}

/* ---------- Footer ---------- */
footer.site { background: var(--slate-deep); color: #C9CFD8; margin-top: 0; }
.ft-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px; padding: 44px 0 30px;
}
.ft-col h4 {
  color: var(--honey-bright); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px;
}
.ft-col p, .ft-col li { font-size: 0.88rem; margin-bottom: 6px; }
.ft-col ul { list-style: none; }
.ft-col a { color: #C9CFD8; }
.ft-col a:hover { color: #fff; }
.ft-brand-name { font-family: var(--serif); color: var(--linen-bright); font-size: 1.02rem; }
.ft-office { display: block; margin-bottom: 10px; }
.ft-office strong { color: var(--linen-bright); font-weight: 600; }

.ft-bottom {
  border-top: 1px solid rgba(243, 238, 223, 0.14);
  padding: 16px 0 20px; font-size: 0.78rem; color: #8D96A3;
  display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between;
}

/* ---------- Interior pages ---------- */
.crumbs {
  font-size: 0.82rem; padding: 18px 0 0; color: var(--slate-soft);
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.crumbs li + li::before { content: "›"; margin-right: 10px; color: var(--honey); }
.crumbs a { color: var(--slate-soft); }

.article { padding: 8px 0 52px; }
.article-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px; align-items: start;
}
.article-body h1 { margin: 10px 0 14px; }
.article-body h2 { margin: 34px 0 12px; }
.article-body h3 { margin: 22px 0 8px; }
.article-body p { color: #3A3F4A; }
.article-body ul, .article-body ol { margin: 0 0 1.1em 1.4em; }
.article-body li { margin-bottom: 8px; }

.article-lead {
  font-family: var(--serif); font-size: 1.22rem; line-height: 1.5;
  color: var(--slate-deep); border-left: 3px solid var(--honey);
  padding-left: 18px; margin: 0 0 24px;
}

.citebox {
  background: var(--honey-tint); border: 1px solid var(--line-honey);
  border-radius: 8px; padding: 16px 20px; margin: 22px 0;
}
.citebox h4 { color: var(--honey-deep); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 8px; }
.citebox p { font-size: 0.92rem; color: var(--slate-deep); margin: 0; }

.cite {
  display: inline-block; background: var(--linen-deep); color: var(--slate-deep);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 2px 9px; border-radius: 4px; white-space: nowrap;
}

.side-rail { position: sticky; top: 20px; }
.rail-card {
  background: var(--paper); border: 1px solid var(--line);
  border-top: 3px solid var(--honey); border-radius: 10px;
  padding: 20px 22px; margin-bottom: 18px;
}
.rail-card h4 { margin-bottom: 8px; }
.rail-card p { font-size: 0.9rem; color: var(--slate-soft); margin: 0; }
.rail-phone {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 700;
  color: var(--honey-deep); display: block; margin-top: 8px;
}
.rail-card ul { list-style: none; }
.rail-card li { margin-bottom: 10px; font-size: 0.92rem; }
.rail-card li a { color: var(--slate-deep); font-weight: 600; }
.rail-card li a:hover { color: var(--honey-deep); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; }
.faq-item {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; position: relative;
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
  color: var(--slate-deep); padding: 18px 52px 18px 22px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; color: var(--honey);
  font-family: var(--sans); font-weight: 400; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a { padding: 0 22px 20px; }
.faq-item .faq-a p { font-size: 0.96rem; color: #3A3F4A; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }

.office-card {
  background: var(--paper); border: 1px solid var(--line);
  border-top: 3px solid var(--honey); border-radius: 10px;
  padding: 22px 24px; margin-bottom: 16px;
}
.office-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.office-card p { font-size: 0.94rem; color: var(--slate-soft); margin: 0 0 4px; }
.office-card .rail-phone { font-size: 1.1rem; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 26px 28px; }
.form-note { font-size: 0.82rem; color: var(--slate-soft); margin-top: 14px; }

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--slate-deep); margin-bottom: 5px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; font-size: 0.98rem;
  border: 1.5px solid var(--line); border-radius: 6px;
  background: var(--linen-bright); color: var(--ink);
  font-family: var(--sans);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--honey); background: #fff;
}
.form-field textarea { min-height: 130px; resize: vertical; }

/* ---------- 404 ---------- */
.e404 { text-align: center; padding: 90px 0; }
.e404 .door {
  font-family: var(--serif); font-size: clamp(4.5rem, 12vw, 8rem);
  line-height: 1; color: var(--honey); margin-bottom: 8px;
}
.e404 p { color: var(--slate-soft); max-width: 30em; margin: 0 auto 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding: 40px 0 36px; }
  .firm-grid { grid-template-columns: 1fr; gap: 26px; }
  .portrait-frame { max-width: 300px; }
  .article-grid { grid-template-columns: 1fr; }
  .side-rail { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hd-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hd-actions { width: 100%; justify-content: space-between; }
  .nav-row { gap: 2px 14px; }
  body { font-size: 15.5px; }
}

/* ---------- Motion: map path (reduced-motion safe) ---------- */
.path { animation: flow 2.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -26; } }

@media (prefers-reduced-motion: reduce) {
  .path { animation: none; }
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
