/* ============================================================
   North County DV Defense — "Safe Harbor"
   Warm mauve · deep charcoal · soft linen · humanist sans
   Law Office of Angelo Reyes, APC — client-owned commercial site
   Zero external fonts. Zero JS beyond the year stamp.
   ============================================================ */

:root {
  --mauve: #8A5A7E;
  --mauve-deep: #6D4562;
  --mauve-bright: #B08AA3;
  --mauve-tint: #F3E8EE;
  --charcoal: #2A272B;
  --charcoal-deep: #19171A;
  --charcoal-mid: #403B42;
  --linen: #F5F0E8;
  --linen-bright: #FBF8F2;
  --linen-deep: #EBE3D6;
  --ink: #2E2A31;
  --muted: #5B5358;
  --hairline: #DCD3C5;
  --sans: 'Gill Sans', 'Avenir Next', Avenir, 'Trebuchet MS', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--linen);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--mauve); color: var(--linen-bright); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mauve-deep); }
a:hover { color: var(--mauve); }

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

/* skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--charcoal-deep); color: var(--linen-bright);
  padding: 10px 18px; z-index: 100; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------------- typography ---------------- */
.kicker {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700; color: var(--charcoal);
  display: flex; align-items: center; gap: 9px;
}
.kicker::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%238A5A7E' stroke-width='3' stroke-linecap='square'%3E%3Cpath d='M20 3v6'/%3E%3Cpath d='M13 9h14l-2.5 14h-9z'/%3E%3Cpath d='M16 9h8'/%3E%3Cpath d='M20 12v7'/%3E%3Cpath d='M17 15.5h6'/%3E%3Cpath d='M10.5 27h19'/%3E%3Cpath d='M8 32h24'/%3E%3Cpath d='M6 37h28'/%3E%3C/svg%3E") center/contain no-repeat;
}
h1, h2, h3, h4 { font-family: var(--sans); color: var(--charcoal-deep); line-height: 1.16; font-weight: 600; }
h1 { font-size: clamp(2.05rem, 4.4vw, 3.25rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.14rem; letter-spacing: -.005em; }
.lede { font-size: 1.06rem; color: var(--muted); max-width: 44rem; }
.lede strong { color: var(--charcoal-deep); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-block; padding: 13px 26px; font-weight: 700; font-size: .88rem;
  letter-spacing: .06em; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: background .22s, color .22s, border-color .22s;
  font-family: var(--sans);
}
.btn-solid { background: var(--charcoal); color: var(--linen-bright); border-bottom: 3px solid var(--mauve); }
.btn-solid:hover { background: var(--mauve-deep); color: #fff; }
.btn-mauve { background: var(--mauve-deep); color: #fff; border-bottom: 3px solid var(--charcoal); }
.btn-mauve:hover { background: var(--mauve); color: #fff; }
.btn-ghost { border-color: var(--charcoal); color: var(--charcoal-deep); background: transparent; }
.btn-ghost:hover { background: var(--charcoal); color: var(--linen-bright); }

/* ---------------- header ---------------- */
header.site { background: var(--linen); position: sticky; top: 0; z-index: 60; border-bottom: 1px solid var(--hairline); }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 46px; height: 46px; flex: none; }
.brand .stack { display: flex; flex-direction: column; line-height: 1.22; }
.brand .name { font-weight: 700; color: var(--charcoal-deep); font-size: 1.06rem; letter-spacing: .005em; }
.brand .firm { font-size: .76rem; color: var(--muted); letter-spacing: .03em; }
.brand-right { display: flex; align-items: center; gap: 22px; }
.brand-right .phone { font-weight: 700; color: var(--charcoal-deep); text-decoration: none; font-size: .98rem; letter-spacing: .02em; white-space: nowrap; }
.brand-right .phone:hover { color: var(--mauve-deep); }
.brand-right .phone::before {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px;
  background: var(--mauve); transform: rotate(45deg); vertical-align: 1px;
}

nav.site-nav { background: var(--charcoal-deep); }
nav.site-nav .wrap { display: flex; flex-wrap: wrap; gap: 4px; }
nav.site-nav a {
  color: #D8CFD4; text-decoration: none; font-size: .78rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; padding: 11px 14px 9px;
  border-bottom: 3px solid transparent; display: inline-block;
}
nav.site-nav a:hover { color: #fff; border-bottom-color: var(--mauve-bright); }
nav.site-nav a[aria-current="page"] { color: var(--mauve-bright); border-bottom-color: var(--mauve); }

/* ---------------- hero ---------------- */
.hero { background: var(--linen); padding: 74px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.06fr .94fr; gap: 52px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero .sub { font-size: 1.05rem; color: var(--muted); max-width: 33rem; }
.hero .sub strong { color: var(--charcoal-deep); }
.hero .ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero .fine { margin-top: 24px; font-size: .82rem; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.hero .fine span { display: inline-flex; align-items: center; gap: 7px; }
.hero .fine span::before { content: ""; width: 6px; height: 6px; background: var(--mauve); transform: rotate(45deg); }

/* harbor chart panel */
.chart-frame {
  background: var(--linen-bright); border: 2px solid var(--charcoal);
  padding: 14px 14px 10px; position: relative;
  box-shadow: 10px 10px 0 var(--linen-deep);
}
.chart-frame svg { width: 100%; height: auto; display: block; }
.chart-frame .chart-cap {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding: 0 2px 10px;
}
.chart-frame .chart-cap strong { color: var(--charcoal-deep); }
.beacon { animation: beacon-pulse 3.2s ease-in-out infinite; }
@keyframes beacon-pulse { 0%, 100% { opacity: .22; } 50% { opacity: .95; } }
@media (prefers-reduced-motion: reduce) { .beacon { animation: none; opacity: .9; } }

/* ---------------- harbor rule ---------------- */
.harbor-rule { border: 0; height: 34px; margin: 0; position: relative; display: block; }
.harbor-rule::before {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  top: 16px; width: 88px; height: 2px; background: var(--charcoal);
}
.harbor-rule::after {
  content: ""; position: absolute; left: calc(50% + 44px); top: 8px; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%238A5A7E' stroke-width='3' stroke-linecap='square'%3E%3Cpath d='M20 3v6'/%3E%3Cpath d='M13 9h14l-2.5 14h-9z'/%3E%3Cpath d='M16 9h8'/%3E%3Cpath d='M20 12v7'/%3E%3Cpath d='M17 15.5h6'/%3E%3Cpath d='M10.5 27h19'/%3E%3Cpath d='M8 32h24'/%3E%3Cpath d='M6 37h28'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------------- sections ---------------- */
section.block { padding: 74px 0; }
section.block .head { margin-bottom: 44px; }
section.block .head h2 { margin: 14px 0 14px; }

/* channel cards (North County angle) */
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.channel {
  background: var(--linen-bright); border: 1px solid var(--hairline);
  border-top: 3px solid var(--charcoal); padding: 26px 24px 24px; position: relative;
  transition: transform .25s ease, border-color .25s ease;
}
.channel:hover { transform: translateY(-3px); border-top-color: var(--mauve); }
.channel .no {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mauve-deep); font-weight: 700; margin-bottom: 12px;
}
.channel h3 { margin-bottom: 10px; }
.channel p { font-size: .94rem; color: var(--muted); }
.channel p a { font-weight: 700; text-decoration: none; }
.channel p a::after { content: " →"; color: var(--mauve-deep); }

/* practice slips */
.slip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.slip-grid.five { grid-template-columns: repeat(3, 1fr); }
.slip {
  background: var(--linen-bright); border: 1px solid var(--hairline);
  border-top: 3px solid var(--charcoal); padding: 26px 24px 24px; position: relative;
  text-decoration: none; color: inherit; display: block;
  transition: transform .25s ease, border-top-color .25s ease;
}
.slip:hover { transform: translateY(-3px); border-top-color: var(--mauve); }
.slip .no { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mauve-deep); font-weight: 700; }
.slip .med {
  width: 58px; height: 58px; margin: 14px 0 14px;
  background: var(--linen-deep); border: 1px solid var(--mauve);
  display: flex; align-items: center; justify-content: center;
}
.slip .med svg { width: 40px; height: 40px; color: var(--mauve-deep); }
.slip h3 { margin-bottom: 8px; color: var(--charcoal-deep); }
.slip p { font-size: .92rem; color: var(--muted); }
.slip .go { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .84rem; color: var(--mauve-deep); }
.slip .go::after { content: " →"; }
.slip:hover .go { color: var(--mauve); }

/* statute chips */
.chip {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--charcoal-deep);
  background: var(--mauve-tint); border: 1px solid var(--mauve);
  padding: 4px 10px 3px; margin: 3px 4px 3px 0;
}

/* firm section */
.firm { background: var(--linen-deep); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.firm .wrap { display: grid; grid-template-columns: 1.12fr .88fr; gap: 52px; align-items: center; }
.firm h2 { margin: 14px 0 14px; }
.firm .firm-body p { color: var(--muted); margin-bottom: 14px; max-width: 34rem; }
.firm ul.pillars { list-style: none; margin-top: 18px; }
.firm ul.pillars li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--hairline); position: relative; font-size: .96rem; color: var(--ink); }
.firm ul.pillars li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 8px; height: 8px; background: var(--mauve); transform: rotate(45deg); }
.firm ul.pillars li strong { color: var(--charcoal-deep); }
.portrait-mat { background: var(--linen-bright); border: 1px solid var(--hairline); padding: 10px; outline: 1px solid var(--hairline); outline-offset: 5px; max-width: 320px; }
.portrait-mat img { width: 100%; }
.portrait-mat .cap {
  background: var(--charcoal-deep); color: var(--linen-bright);
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 12px; margin-top: 10px;
}

/* mention strip */
.strip { background: var(--linen-bright); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 26px 0; }
.strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.strip .lead { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.strip .mentions { font-size: .98rem; color: var(--ink); }
.strip .mentions a { font-weight: 700; }

/* CTA band */
.cta-band { background: var(--charcoal-deep); color: #D8CFD4; padding: 64px 0; }
.cta-band .wrap { text-align: center; }
.cta-band .kicker { justify-content: center; color: var(--mauve-bright); }
.cta-band h2 { color: #fff; margin: 14px 0 10px; }
.cta-band p { color: #B9B1B6; max-width: 36rem; margin: 0 auto; }
.cta-band .phone-big {
  display: inline-block; margin: 26px 0 22px; font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 700; color: #fff; text-decoration: none; letter-spacing: .02em;
}
.cta-band .phone-big:hover { color: var(--mauve-bright); }
.cta-band .fine { margin-top: 18px; font-size: .8rem; color: #9A9299; }

/* ---------------- interior page hero ---------------- */
.page-hero { background: var(--linen); padding: 46px 0 34px; border-bottom: 1px solid var(--hairline); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; letter-spacing: .04em; margin-bottom: 16px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--mauve-deep); }
.breadcrumb a { text-decoration: none; font-weight: 700; }
.breadcrumb [aria-current="page"] { color: var(--charcoal-deep); font-weight: 700; }
.page-hero h1 { margin-bottom: 12px; max-width: 46rem; }
.page-hero .lede { max-width: 44rem; }

/* ---------------- article ---------------- */
article.page-body { padding: 56px 0 70px; }
article.page-body .cols { display: grid; grid-template-columns: 1fr 300px; gap: 52px; align-items: start; }
article.page-body h2 {
  font-size: 1.42rem; margin: 44px 0 12px; padding-top: 14px;
  display: flex; align-items: center; gap: 12px;
}
article.page-body h2:first-child { margin-top: 0; }
article.page-body h2 .sec-no {
  font-size: .72rem; letter-spacing: .14em; color: var(--mauve-deep);
  border: 1px solid var(--mauve); padding: 3px 8px 2px; flex: none; font-weight: 700;
}
article.page-body h3 { margin: 26px 0 8px; }
article.page-body p { color: var(--muted); margin-bottom: 14px; font-size: .99rem; }
article.page-body p strong { color: var(--charcoal-deep); }
article.page-body ul.body-list { margin: 0 0 16px 22px; color: var(--muted); font-size: .99rem; }
article.page-body ul.body-list li { margin-bottom: 8px; }
article.page-body ul.body-list strong { color: var(--charcoal-deep); }

/* law note (chart note callout) */
.law-note {
  background: var(--mauve-tint); border: 1px solid var(--mauve);
  border-left: 4px solid var(--mauve-deep); padding: 18px 20px; margin: 20px 0;
}
.law-note .ln-label {
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--mauve-deep); margin-bottom: 6px;
}
.law-note p { font-size: .92rem; color: var(--ink); margin-bottom: 0; }

/* side rail */
aside.rail { position: sticky; top: 118px; }
.rail-card { background: var(--linen-bright); border: 1px solid var(--hairline); border-top: 3px solid var(--mauve); padding: 22px; margin-bottom: 22px; }
.rail-card h3 { margin-bottom: 8px; font-size: 1rem; }
.rail-card p { font-size: .88rem; color: var(--muted); }
.rail-card .phone-rail { display: block; font-weight: 700; color: var(--charcoal-deep); text-decoration: none; font-size: 1.02rem; margin-top: 10px; }
.rail-card .phone-rail:hover { color: var(--mauve-deep); }
.rail-card ul { list-style: none; margin-top: 8px; }
.rail-card ul li { font-size: .88rem; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--hairline); }
.rail-card ul li:last-child { border-bottom: 0; }
.rail-card ul a { text-decoration: none; font-weight: 700; }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 780px; }
.faq-item { background: var(--linen-bright); border: 1px solid var(--hairline); border-left: 4px solid var(--charcoal); padding: 24px 26px; margin-bottom: 20px; }
.faq-item:hover { border-left-color: var(--mauve); }
.faq-item h2 { font-size: 1.16rem; margin: 0 0 10px; }
.faq-item p { color: var(--muted); font-size: .97rem; margin-bottom: 10px; }
.faq-item p:last-child { margin-bottom: 0; }

/* ---------------- contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.office-card { background: var(--linen-bright); border: 1px solid var(--hairline); border-top: 3px solid var(--mauve); padding: 26px; }
.office-card h2 { font-size: 1.2rem; margin-bottom: 8px; }
.office-card .addr { color: var(--muted); font-size: .98rem; }
.contact-methods { margin-top: 30px; }
.contact-methods a.phone-line { display: block; font-size: 1.3rem; font-weight: 700; color: var(--charcoal-deep); text-decoration: none; margin-bottom: 6px; }
.contact-methods a.phone-line:hover { color: var(--mauve-deep); }
.contact-methods .note { color: var(--muted); font-size: .9rem; }

form.static-form { background: var(--linen-bright); border: 1px solid var(--hairline); border-top: 3px solid var(--charcoal); padding: 28px; }
form.static-form h2 { font-size: 1.2rem; margin-bottom: 6px; }
form.static-form .f-note { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
form.static-form label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal-deep); margin: 14px 0 5px; }
form.static-form input, form.static-form textarea {
  width: 100%; font-family: var(--sans); font-size: .98rem; color: var(--ink);
  background: #fff; border: 1px solid var(--hairline); padding: 11px 12px;
}
form.static-form input:focus, form.static-form textarea:focus { outline: 2px solid var(--charcoal); outline-offset: 1px; border-color: var(--charcoal); }
form.static-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.static-form button { margin-top: 20px; width: 100%; }

/* ---------------- 404 ---------------- */
.notfound { background: var(--charcoal-deep); color: #D8CFD4; min-height: 62vh; display: flex; align-items: center; padding: 80px 0; }
.notfound .wrap { text-align: center; }
.notfound .lamp-big { width: 74px; height: 74px; margin: 0 auto 22px; }
.notfound h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.notfound p { color: #B9B1B6; max-width: 32rem; margin: 0 auto 26px; }
.notfound .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.notfound .btn-ghost { border-color: var(--mauve-bright); color: var(--mauve-bright); }
.notfound .btn-ghost:hover { background: var(--mauve-bright); color: var(--charcoal-deep); }

/* ---------------- footer ---------------- */
footer.site-foot { background: var(--charcoal-deep); color: #B9B1B6; padding: 56px 0 40px; }
footer.site-foot .foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
footer.site-foot h3 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
footer.site-foot .foot-brand { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
footer.site-foot .foot-firm { font-size: .82rem; color: #9A9299; margin-bottom: 14px; }
footer.site-foot p { font-size: .88rem; margin-bottom: 8px; }
footer.site-foot a { color: #D8CFD4; text-decoration: none; }
footer.site-foot a:hover { color: var(--mauve-bright); }
footer.site-foot ul.family { list-style: none; }
footer.site-foot ul.family li { margin-bottom: 7px; font-size: .88rem; }
footer.site-foot ul.family li.self { color: #9A9299; }
footer.site-foot .foot-phone { display: block; font-size: 1.12rem; font-weight: 700; color: #fff; text-decoration: none; margin-bottom: 12px; }
footer.site-foot .foot-phone:hover { color: var(--mauve-bright); }
footer.site-foot .legal {
  border-top: 1px solid #332F35; margin-top: 40px; padding-top: 20px;
  font-size: .76rem; color: #8A8288; line-height: 1.7; display: flex;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------------- responsive ---------------- */
@media (max-width: 960px) {
  .hero .wrap, .firm .wrap { grid-template-columns: 1fr; gap: 36px; }
  .channel-grid, .slip-grid, .slip-grid.five { grid-template-columns: repeat(2, 1fr); }
  article.page-body .cols { grid-template-columns: 1fr; }
  aside.rail { position: static; }
  footer.site-foot .foot-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .brand-right .btn { display: none; }
}
@media (max-width: 620px) {
  .channel-grid, .slip-grid, .slip-grid.five, footer.site-foot .foot-grid { grid-template-columns: 1fr; }
  form.static-form .row { grid-template-columns: 1fr; }
  .brand .firm { display: none; }
  .hero { padding: 48px 0 44px; }
  section.block { padding: 52px 0; }
  .chart-frame { box-shadow: 6px 6px 0 var(--linen-deep); }
}
