/* Lagoon glass — Carlsbad Personal Injury Attorney
   glass teal, white sand, driftwood; DM Sans (OFL, self-hosted) */

@font-face {
  font-family: "DM Sans";
  src: url("dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --deep: #0b3a41;
  --deep-2: #082e34;
  --glass: #13737d;
  --glass-bright: #1c8d97;
  --glass-soft: #0e5a62;
  --foam: #e4f1ef;
  --foam-2: #d8ebe8;
  --sand: #f7f4eb;
  --sand-2: #f0ead9;
  --drift: #8b7b68;
  --drift-dark: #6f6152;
  --drift-ink: #5a4f41;
  --ink: #1e2e31;
  --ink-soft: #45585b;
  --hairline: rgba(19, 115, 125, 0.24);
  --glass-panel: rgba(255, 255, 255, 0.52);
  --sans: "DM Sans", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--foam);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--glass); color: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--glass); }
a:hover { color: var(--glass-bright); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 300; letter-spacing: -0.015em; color: var(--deep); line-height: 1.14; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 18px; }
h3 { font-size: 1.28rem; font-weight: 500; color: var(--deep); }
.kicker {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--glass-soft);
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--glass); }
.lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 38rem; }
.sub { font-size: 1.08rem; color: var(--ink-soft); max-width: 36rem; }
.sub strong { color: var(--deep); font-weight: 600; }

/* citation chips — the site's depth markers */
.cite {
  font-weight: 600; color: var(--glass-soft);
  border-bottom: 2px solid rgba(19, 115, 125, 0.35);
  padding-bottom: 1px; white-space: nowrap;
}

/* ---------- tide rule ---------- */
.tide {
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='10' viewBox='0 0 48 10'%3E%3Cpath d='M0 6 Q6 2 12 6 T24 6 T36 6 T48 6' fill='none' stroke='%2313737d' stroke-opacity='0.35' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 2px;
  font-weight: 600; font-size: 0.92rem; letter-spacing: 0.03em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--glass); color: #fff; }
.btn-solid:hover { background: var(--glass-soft); color: #fff; }
.btn-deep { background: var(--deep); color: #fff; }
.btn-deep:hover { background: var(--deep-2); color: #fff; }
.btn-ghost { border-color: var(--glass); color: var(--glass); background: transparent; }
.btn-ghost:hover { background: var(--foam); color: var(--glass-soft); }

/* ---------- header ---------- */
header.top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(228, 241, 239, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
header.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 46px; height: 46px; flex: none; }
.brand .text { line-height: 1.25; }
.brand .nm { font-weight: 600; color: var(--deep); font-size: 1.02rem; letter-spacing: -0.01em; }
.brand .firm { font-size: 0.76rem; color: var(--drift-ink); letter-spacing: 0.02em; }
header.top .right { display: flex; align-items: center; gap: 18px; }
header.top .phone { font-weight: 700; color: var(--deep); text-decoration: none; font-size: 0.98rem; white-space: nowrap; }
header.top .phone:hover { color: var(--glass); }
nav.main { border-top: 1px solid rgba(19, 115, 125, 0.14); }
nav.main ul { display: flex; gap: 30px; list-style: none; padding: 10px 0; flex-wrap: wrap; }
nav.main a {
  text-decoration: none; font-size: 0.86rem; font-weight: 500; color: var(--ink-soft);
  letter-spacing: 0.02em; padding: 2px 0;
}
nav.main a:hover { color: var(--glass); }
nav.main a.on { color: var(--glass-soft); font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 74px; position: relative; }
.hero .grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 60px; align-items: center; }
.hero h1 { margin: 0 0 22px; }
.hero h1 em { font-style: normal; color: var(--glass); }
.hero .ctas { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero .fine { margin-top: 26px; font-size: 0.84rem; color: var(--drift-ink); display: flex; gap: 20px; flex-wrap: wrap; }
.hero .fine span { display: flex; align-items: center; gap: 8px; }
.hero .fine span::before { content: "—"; color: var(--glass); }

/* lagoon map card */
.map-card {
  background: var(--glass-panel);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(19, 115, 125, 0.3);
  border-radius: 6px;
  padding: 22px 22px 16px;
  box-shadow: 0 24px 60px rgba(11, 58, 65, 0.12);
}
.map-card .caption { font-size: 0.8rem; color: var(--drift-ink); margin-top: 10px; letter-spacing: 0.02em; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--sand-2); }
.section-foam { background: linear-gradient(180deg, var(--foam) 0%, var(--foam-2) 100%); }
.section-head { max-width: 44rem; margin-bottom: 48px; }

/* glass panel */
.glass {
  background: var(--glass-panel);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(19, 115, 125, 0.28);
  border-radius: 6px;
}

/* ---------- Carlsbad angle ---------- */
.angle .trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.trio .panel { padding: 34px 30px; }
.trio .no {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; color: var(--glass);
  margin-bottom: 14px;
}
.trio h3 { margin-bottom: 10px; }
.trio p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- practice cards ---------- */
.practice .cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.practice .card {
  grid-column: span 2; padding: 30px 26px 26px; text-decoration: none; color: var(--ink);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.practice .card:nth-child(4), .practice .card:nth-child(5) { grid-column: span 3; }
.practice .card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(11, 58, 65, 0.13); border-color: rgba(19, 115, 125, 0.5); }
.practice .card .icon { color: var(--glass); margin-bottom: 18px; }
.practice .card h3 { margin-bottom: 8px; font-size: 1.28rem; }
.practice .card p { font-size: 0.93rem; color: var(--ink-soft); }
.practice .card .more {
  display: inline-block; margin-top: 14px; font-size: 0.86rem; font-weight: 600; color: var(--glass);
}

/* ---------- firm ---------- */
.firm .cols { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 60px; align-items: center; }
.portrait {
  background: var(--glass-panel);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(19, 115, 125, 0.3);
  border-radius: 6px; padding: 16px 16px 18px;
}
.portrait img { border-radius: 3px; }
.portrait .caption { font-size: 0.8rem; color: var(--drift-ink); margin-top: 12px; text-align: center; letter-spacing: 0.03em; }
.pillars { margin-top: 28px; display: flex; flex-direction: column; gap: 0; }
.pillar {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid rgba(139, 123, 104, 0.35);
}
.pillar:last-child { border-bottom: none; }
.pillar .tick { flex: none; width: 26px; height: 26px; color: var(--glass); margin-top: 2px; }
.pillar h3 { font-weight: 600; font-size: 1.06rem; color: var(--deep); margin-bottom: 3px; letter-spacing: 0; }
.pillar p { font-size: 0.93rem; color: var(--ink-soft); }

/* ---------- criminal strip ---------- */
.strip { padding: 26px 0; background: var(--sand-2); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.strip p { font-size: 0.92rem; color: var(--ink-soft); max-width: 52rem; }
.strip a { font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--deep); color: #d9e9e7; padding: 76px 0; }
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #a9c6c3; max-width: 34rem; }
.cta-band .phone-big { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; color: #fff; text-decoration: none; letter-spacing: -0.01em; }
.cta-band .phone-big:hover { color: #7fd4dc; }
.cta-band .btn-solid { background: var(--glass-soft); }

/* ---------- interior pages ---------- */
.page-hero { padding: 72px 0 0; }
.page-hero .crumbs { font-size: 0.8rem; color: var(--drift-ink); margin-bottom: 18px; }
.page-hero .crumbs a { color: var(--glass-soft); text-decoration: none; }
.page-hero .crumbs span { margin: 0 6px; color: var(--drift-ink); }
.page-hero h1 { max-width: 46rem; }
.page-hero .sub { margin-top: 18px; }
.page-hero .tide { margin-top: 40px; }
.prose { padding-top: 48px; }
.prose .cols { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.prose article h2 { margin: 48px 0 14px; font-size: 1.62rem; }
.prose article h2:first-child { margin-top: 0; }
.prose article p { color: var(--ink-soft); margin-bottom: 16px; max-width: 44rem; }
.prose article ul, .prose article ol { color: var(--ink-soft); margin: 0 0 18px 22px; max-width: 42rem; }
.prose article li { margin-bottom: 8px; }
.prose article strong { color: var(--deep); font-weight: 600; }

/* depth card — at-a-glance rail */
.depth-rail { position: sticky; top: 130px; }
.depth-card { padding: 28px 26px; margin-bottom: 22px; }
.depth-card h3 { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--glass-soft); margin-bottom: 14px; }
.depth-card .row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed rgba(19, 115, 125, 0.28); font-size: 0.9rem; }
.depth-card .row:last-child { border-bottom: none; }
.depth-card .row .k { color: var(--drift-ink); }
.depth-card .row .v { font-weight: 600; color: var(--deep); text-align: right; }
.depth-card .tel { display: block; margin-top: 16px; text-align: center; }
.depth-card p.note { font-size: 0.78rem; color: var(--drift-ink); margin-top: 12px; line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; }
.faq-item { padding: 26px 0; border-bottom: 1px solid rgba(139, 123, 104, 0.35); }
.faq-item h2 { font-size: 1.22rem; font-weight: 500; color: var(--deep); margin-bottom: 10px; display: flex; gap: 14px; align-items: baseline; }
.faq-item h2 .q { flex: none; font-weight: 600; color: var(--glass); font-size: 0.9rem; }
.faq-item p { color: var(--ink-soft); max-width: 46rem; }
.faq-item p + p { margin-top: 12px; }

/* ---------- contact ---------- */
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.office { padding: 34px 30px; margin-bottom: 24px; }
.office .city { font-size: 1.3rem; font-weight: 500; color: var(--deep); margin-bottom: 8px; }
.office .addr { color: var(--ink-soft); font-size: 0.97rem; }
.direct { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 12px; }
.direct a { font-weight: 600; }
.langs { margin-top: 16px; font-size: 0.88rem; color: var(--drift-ink); }
form.contact { padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; }
form.contact label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--drift-ink); }
form.contact input, form.contact textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 0.98rem;
  color: var(--ink); background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(19, 115, 125, 0.35); border-radius: 3px;
}
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--glass-bright); outline-offset: 1px; }
form.contact textarea { min-height: 120px; resize: vertical; }
form.contact .note { font-size: 0.82rem; color: var(--drift-ink); }
form.contact button { align-self: flex-start; }

/* ---------- footer ---------- */
footer { background: var(--deep-2); color: #a9c6c3; padding: 64px 0 40px; }
footer .grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 44px; }
footer .fbrand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
footer .fbrand img { width: 40px; height: 40px; }
footer .fbrand .nm { font-weight: 600; color: #fff; font-size: 1rem; }
footer .fhead { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #7fd4dc; margin-bottom: 16px; }
footer ul { list-style: none; }
footer li { margin-bottom: 7px; }
footer a { color: #a9c6c3; text-decoration: none; font-size: 0.9rem; }
footer a:hover { color: #fff; }
footer .legal { font-size: 0.76rem; color: #8fb3af; margin-top: 40px; border-top: 1px solid rgba(185, 207, 204, 0.16); padding-top: 22px; line-height: 1.7; }
footer .legal .row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 110px 0; }
.notfound .code { font-size: clamp(4rem, 10vw, 7rem); font-weight: 200; color: var(--glass); line-height: 1; }
.notfound h1 { margin: 18px 0 12px; }
.notfound p { color: var(--ink-soft); max-width: 30rem; margin: 0 auto 30px; }

/* ---------- motion (reduced-motion safe) ---------- */
.rise { animation: rise 0.7s ease both; }
.rise.d1 { animation-delay: 0.08s; }
.rise.d2 { animation-delay: 0.16s; }
.rise.d3 { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  .btn:hover { transform: none; }
  .practice .card:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero .grid, .firm .cols, .prose .cols, .contact-cols { grid-template-columns: 1fr; }
  .depth-rail { position: static; }
  .practice .cards { grid-template-columns: 1fr 1fr; }
  .practice .card, .practice .card:nth-child(4), .practice .card:nth-child(5) { grid-column: span 1; }
  footer .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 56px 0 50px; }
  section { padding: 60px 0; }
  .angle .trio { grid-template-columns: 1fr; }
  .practice .cards { grid-template-columns: 1fr; }
  footer .grid { grid-template-columns: 1fr; gap: 30px; }
  header.top .btn { display: none; }
  header.top .phone { font-size: 0.9rem; }
  nav.main ul { gap: 18px; }
  .cta-band .inner { flex-direction: column; align-items: flex-start; }
  .prose article h2 { font-size: 1.42rem; }
}
