/* ============================================================
   Harbor Calm — oceansidedomesticviolencelawyer.com
   Law Office of Angelo Reyes, APC · Oceanside DV defense
   Design system: powder blue / storm slate / drift white
   Typography: Roboto Slab (self-hosted, Apache-2.0) + system sans
   Flat fills only. No gradients, no blobs, no stock imagery.
   ============================================================ */

@font-face {
  font-family: "Roboto Slab";
  src: url("assets/fonts/RobotoSlab-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --powder: #A9C9DC;        /* light powder blue — accents, fills */
  --powder-mid: #6D97B0;
  --powder-deep: #3E6B85;   /* AA text on white */
  --powder-ink: #2E5368;
  --foam: #E9F1F5;          /* powder-tint section wash */
  --foam-2: #F0F5F8;
  --slate: #2E3C49;         /* storm slate — body text */
  --slate-deep: #222E39;    /* deep bands */
  --slate-ink: #16202A;     /* footer, deepest */
  --slate-mute: #5B6B78;
  --drift: #F3F6F8;         /* drift white ground */
  --white: #FCFDFE;         /* card surface */
  --hairline: #D8E2E8;
  --slab: "Roboto Slab", "Rockwell", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 3px;
  --shadow-card: 0 10px 26px rgba(22, 32, 42, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--drift);
  color: var(--slate);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--powder-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--powder-deep); outline-offset: 2px; }
::selection { background: var(--powder); color: var(--slate-ink); }

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

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--slab); color: var(--slate-ink); line-height: 1.18; font-weight: 600; }
h1 { font-size: clamp(2.05rem, 4.4vw, 3.3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
h3 { font-size: 1.18rem; }
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--slate-mute);
}
.kicker::before { content: ""; width: 9px; height: 9px; background: var(--powder); flex: none; }
.lead { color: var(--slate-mute); font-size: 1.05rem; max-width: 40rem; }
.slab { font-family: var(--slab); }

/* ---------- signature: receding tide rule ---------- */
.tide-rule { position: relative; width: 64px; height: 2px; background: var(--powder-deep); margin: 20px 0 26px; }
.tide-rule::before { content: ""; position: absolute; left: 0; top: 5px; width: 46px; height: 2px; background: var(--powder-mid); }
.tide-rule::after  { content: ""; position: absolute; left: 0; top: 10px; width: 30px; height: 2px; background: var(--powder); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.93rem; letter-spacing: 0.02em;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}
.btn-powder { background: var(--powder-deep); color: var(--white); }
.btn-powder:hover { background: var(--slate-deep); color: var(--white); text-decoration: none; }
.btn-ghost { border-color: var(--slate); color: var(--slate); background: transparent; }
.btn-ghost:hover { background: var(--slate); color: var(--white); text-decoration: none; }
.btn-light { background: var(--powder); color: var(--slate-ink); }
.btn-light:hover { background: var(--white); color: var(--slate-ink); text-decoration: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--hairline); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--slate-ink); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--slab); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-firm { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-mute); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { font-weight: 700; color: var(--powder-deep); font-size: 1.02rem; white-space: nowrap; }
.header-phone:hover { color: var(--slate-deep); }

.site-nav { border-top: 1px solid var(--hairline); }
.site-nav .wrap { display: flex; flex-wrap: wrap; gap: 4px 26px; padding-top: 10px; padding-bottom: 10px; }
.site-nav a {
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.03em; color: var(--slate);
  padding: 4px 0; border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--powder-deep); text-decoration: none; border-bottom-color: var(--powder); }
.site-nav a[aria-current="page"] { color: var(--powder-deep); border-bottom-color: var(--powder-deep); }

/* ---------- hero ---------- */
.hero { background: var(--white); border-bottom: 1px solid var(--hairline); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; padding: 72px 0 76px; }
.hero-copy h1 { margin: 16px 0 22px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-fine { margin-top: 22px; font-size: 0.82rem; color: var(--slate-mute); display: flex; gap: 8px 22px; flex-wrap: wrap; }
.hero-fine span::before { content: "·"; margin-right: 8px; color: var(--powder-mid); }
.chart-frame {
  background: var(--white); border: 1px solid var(--hairline);
  padding: 10px; box-shadow: var(--shadow-card); position: relative;
}
.chart-frame::after { content: ""; position: absolute; inset: 8px; border: 1px solid var(--foam); pointer-events: none; }
.chart-frame svg { display: block; width: 100%; height: auto; }
.chart-caption {
  font-family: var(--slab); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--slate-mute);
  text-align: right; padding: 8px 6px 2px; text-transform: uppercase;
}

/* gentle buoy bob — disabled for reduced motion */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.bob { animation: bob 5.2s ease-in-out infinite; }
.bob.delay { animation-delay: 2.6s; }
@media (prefers-reduced-motion: reduce) {
  .bob, .bob.delay { animation: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section-foam { background: var(--foam); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section-white { background: var(--white); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section-head { max-width: 46rem; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 12px; }

/* ---------- angle section: the channel route ---------- */
.angle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.route-list { list-style: none; border-left: 2px solid var(--hairline); margin: 8px 0 0; }
.route-list li { position: relative; padding: 0 0 26px 26px; }
.route-list li:last-child { padding-bottom: 0; }
.route-list li::before {
  content: ""; position: absolute; left: -8px; top: 7px;
  width: 14px; height: 14px; background: var(--powder); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--powder-mid);
}
.route-list .r-step { font-family: var(--slab); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--powder-deep); }
.route-list .r-title { font-family: var(--slab); font-weight: 600; font-size: 1.08rem; color: var(--slate-ink); margin: 2px 0 4px; }
.route-list p { font-size: 0.94rem; color: var(--slate-mute); }

/* ---------- practice buoy cards ---------- */
.pcard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pcard {
  background: var(--white); border: 1px solid var(--hairline); padding: 30px 26px 28px;
  position: relative; border-radius: var(--radius);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column; gap: 14px;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--powder-mid); box-shadow: var(--shadow-card); text-decoration: none; }
.buoy {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--powder-mid); background: var(--foam);
  display: flex; align-items: center; justify-content: center; color: var(--powder-deep);
  flex: none;
}
.buoy svg { width: 26px; height: 26px; }
.pcard .p-kicker { font-family: var(--slab); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--powder-deep); }
.pcard h3 { margin: 0; }
.pcard p { font-size: 0.93rem; color: var(--slate-mute); }
.pcard .p-link { font-weight: 700; font-size: 0.86rem; letter-spacing: 0.04em; margin-top: auto; }
.pcard-cta {
  background: var(--slate-deep);
  border-color: var(--slate-deep);
}
.pcard-cta:hover { border-color: var(--powder-mid); }
.pcard-cta .p-kicker { color: var(--powder); }
.pcard-cta h3 { color: var(--white); }
.pcard-cta p { color: #B9C6CE; }
.pcard-cta .p-link { color: var(--powder); }
.pcard-cta .buoy { border-color: var(--powder-mid); background: var(--slate); color: var(--powder); }

/* mention strip */
.mention-strip {
  margin-top: 34px; border-top: 1px solid var(--hairline); padding-top: 20px;
  font-size: 0.92rem; color: var(--slate-mute);
}
.mention-strip a { font-weight: 700; }

/* ---------- firm section ---------- */
.firm-grid { display: grid; grid-template-columns: 0.42fr 0.58fr; gap: 56px; align-items: center; }
.portrait-frame { position: relative; }
.portrait-frame .offset { position: absolute; inset: 0; transform: translate(14px, 14px); background: var(--powder); }
.portrait-frame img { position: relative; border: 1px solid var(--hairline); width: 100%; max-width: 360px; }
.portrait-frame .cap {
  position: absolute; left: 0; bottom: -30px; font-family: var(--slab);
  font-size: 0.78rem; color: var(--slate-mute); letter-spacing: 0.05em;
}
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; margin-top: 26px; }
.pillar { border-top: 3px solid var(--powder); padding-top: 14px; }
.pillar .p-no { font-family: var(--slab); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.14em; color: var(--powder-deep); text-transform: uppercase; }
.pillar h3 { font-size: 1.02rem; margin: 6px 0 6px; }
.pillar p { font-size: 0.9rem; color: var(--slate-mute); }

/* ---------- statutes band ---------- */
.statute-band { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.statute-chip {
  display: inline-flex; align-items: baseline; gap: 10px;
  border: 1px solid var(--hairline); background: var(--white);
  padding: 10px 16px; border-radius: var(--radius); font-size: 0.88rem;
}
.statute-chip .code { font-family: var(--slab); font-weight: 700; color: var(--powder-deep); font-size: 0.82rem; letter-spacing: 0.04em; }
.statute-chip .what { color: var(--slate-mute); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--slate-deep); color: var(--foam); padding: 64px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: var(--foam); max-width: 38rem; }
.cta-band .big-phone { font-family: var(--slab); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--powder); white-space: nowrap; }
.cta-band .big-phone:hover { color: var(--white); }

/* ---------- article pages ---------- */
.page-hero { background: var(--white); border-bottom: 1px solid var(--hairline); padding: 52px 0 44px; }
.page-hero h1 { margin: 14px 0 16px; max-width: 46rem; }
.breadcrumbs { font-size: 0.8rem; color: var(--slate-mute); margin-bottom: 4px; }
.breadcrumbs a { color: var(--powder-deep); }
.breadcrumbs .sep { margin: 0 8px; color: var(--hairline); }
.article { padding: 64px 0 72px; }
.article-grid { display: grid; grid-template-columns: 1fr 0.34fr; gap: 56px; align-items: start; }
.prose h2 { margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; color: var(--slate); }
.prose .lede { font-size: 1.13rem; color: var(--slate); }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 9px; }
.prose strong { color: var(--slate-ink); }
.prose .cite-inline { font-family: var(--slab); font-weight: 600; font-size: 0.92em; color: var(--powder-deep); }
.rail { position: sticky; top: 110px; }
.rail-card {
  background: var(--slate-deep); color: var(--foam); padding: 26px 24px; border-radius: var(--radius);
}
.rail-card h3 { color: var(--white); font-size: 1.02rem; margin-bottom: 10px; }
.rail-card p { font-size: 0.88rem; color: var(--foam); margin-bottom: 16px; }
.rail-card .rail-phone { font-family: var(--slab); font-weight: 700; color: var(--powder); font-size: 1.1rem; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 46rem; }
.faq-item { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius); margin-bottom: 16px; padding: 24px 26px; }
.faq-item h2 { font-size: 1.14rem; margin-bottom: 10px; }
.faq-item p { color: var(--slate-mute); font-size: 0.95rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.office-block { border-top: 3px solid var(--powder); padding-top: 18px; }
.office-block .city { font-family: var(--slab); font-weight: 700; font-size: 1.3rem; color: var(--slate-ink); }
.office-block .addr { color: var(--slate-mute); margin-top: 6px; font-size: 0.96rem; }
.form-card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-card); }
.form-card label { display: block; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.03em; margin: 16px 0 6px; color: var(--slate-ink); }
.form-card input, .form-card textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: var(--radius);
  font: inherit; color: var(--slate); background: var(--drift);
}
.form-card input:focus, .form-card textarea:focus { outline: 3px solid var(--powder); outline-offset: 1px; border-color: var(--powder-mid); }
.form-card textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--slate-mute); margin-top: 14px; }

/* ---------- 404 ---------- */
.four04 { text-align: center; padding: 110px 0 130px; }
.four04 .code { font-family: var(--slab); font-weight: 700; font-size: clamp(4rem, 12vw, 7rem); color: var(--powder-mid); line-height: 1; }
.four04 h1 { margin: 18px 0 12px; }
.four04 p { color: var(--slate-mute); max-width: 30rem; margin: 0 auto 26px; }

/* ---------- footer ---------- */
.site-footer { background: var(--slate-ink); color: var(--foam); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: 44px; }
.footer-brand .brand { color: var(--white); }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-firm { color: var(--powder); }
.footer-brand p { font-size: 0.86rem; color: var(--foam); margin-top: 14px; max-width: 26rem; }
.site-footer h3 { color: var(--powder); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px; }
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 8px; }
.footer-list a { color: var(--foam); font-size: 0.9rem; }
.footer-list a:hover { color: var(--powder); }
.footer-legal { border-top: 1px solid rgba(169, 201, 220, 0.22); margin-top: 42px; padding-top: 20px; font-size: 0.78rem; color: var(--slate-mute); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: var(--foam); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .angle-grid, .firm-grid, .article-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .pcard-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rail { position: static; }
  .portrait-frame { max-width: 360px; }
}
@media (max-width: 620px) {
  .pcard-grid, .pillars, .footer-grid { grid-template-columns: 1fr; }
  .header-phone { font-size: 0.92rem; }
  .brand-name { font-size: 0.9rem; }
  .site-nav .wrap { gap: 4px 16px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .hero-fine { flex-direction: column; }
}
