/* ============================================================================
   Dávalos Legal — styles.css
   Archetype: Newspaper Editorial
   ============================================================================ */

/* ---- 1. Tokens ---- */
:root {
  --bg:        #faf7f0;   /* newsprint cream */
  --bg-2:      #f3ede0;   /* deeper paper */
  --bg-3:      #ebe4d3;   /* sidebar / footer paper */
  --paper:     #ffffff;
  --ink:       #16140e;   /* warm near-black */
  --ink-soft:  #2e2a20;
  --ink-mute:  #6e6760;
  --ink-faint: #a59c8e;
  --accent:    #960018;   /* newspaper red */
  --accent-2:  #6b0010;
  --gold:      #8a6f33;   /* subtle accent for kickers */
  --line:      #16140e;
  --line-soft: rgba(22,20,14,.20);
  --line-mute: rgba(22,20,14,.10);
  --shadow:    0 24px 50px -28px rgba(22,20,14,.18);

  --f-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --f-body:    "Source Serif 4", "Times New Roman", Georgia, serif;
  --f-sans:    "Inter Tight", "Helvetica Neue", system-ui, sans-serif;

  --maxw:  1240px;
  --maxw-narrow: 760px;
  --pad-x: clamp(20px, 5vw, 88px);
  --ease:  cubic-bezier(.22,.61,.36,1);
}

/* ---- 2. Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }

/* ---- 3. Typography utilities ---- */
.display { font-family: var(--f-display); line-height: 1; letter-spacing: -.012em; }
.body-serif { font-family: var(--f-body); }
.sans { font-family: var(--f-sans); }
.kicker {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kicker .dot {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); vertical-align: middle; margin: 0 .7em;
  transform: translateY(-2px);
}
.eyebrow-line {
  display: inline-block; padding-bottom: 8px;
  border-bottom: 1px solid var(--ink); margin-bottom: 18px;
}

/* ---- 4. Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); position: relative; }
.wrap-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 var(--pad-x); }
section { position: relative; }
.hairline { height: 1px; background: var(--line); margin: 0; border: 0; }
.hairline-soft { height: 1px; background: var(--line-soft); margin: 0; border: 0; }
.hairline-double {
  height: 4px; border: 0; margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---- 5. Masthead / Nav ---- */
.masthead {
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
}
.masthead-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.masthead-top .issue strong { color: var(--ink); }
.masthead-top .meta-right { display: flex; gap: 18px; align-items: center; }
.masthead-top .meta-right span { color: var(--ink-mute); }

.masthead-main {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0 16px;
  border-top: 1px solid var(--line-soft);
}
.brand {
  display: flex; align-items: center; gap: 14px;
  flex: 1; min-width: 0;
}
.brand-logo {
  height: 46px; width: auto; flex: none;
}
.brand-name {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1;
  color: var(--ink);
}
.brand-name em { font-style: italic; font-weight: 400; }

.masthead-nav {
  display: flex; align-items: center; gap: 28px;
}
.masthead-nav a {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
  transition: color .25s var(--ease);
}
.masthead-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.masthead-nav a:hover::after { transform: scaleX(1); }
.masthead-nav a.active::after { transform: scaleX(1); background: var(--ink); }

.btn-masthead,
.masthead-nav a.btn-masthead,
a.btn-masthead {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 11px 20px !important;
  background: #16140e !important;
  color: #ffffff !important;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s var(--ease), transform .25s var(--ease);
  line-height: 1;
  border: 1px solid #16140e;
}
.btn-masthead:hover,
.masthead-nav a.btn-masthead:hover,
a.btn-masthead:hover {
  background: #960018 !important;
  border-color: #960018;
  color: #ffffff !important;
  transform: translateY(-1px);
}
.btn-masthead::after,
.masthead-nav a.btn-masthead::after,
a.btn-masthead::after { display: none !important; }
.btn-masthead .arrow,
a.btn-masthead .arrow {
  width: 12px;
  height: 12px;
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: 1px solid var(--ink);
}
.menu-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--ink);
  position: relative; transition: .3s var(--ease);
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px;
  background: var(--ink); transition: .3s var(--ease);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---- 6. Hero (Home — newspaper front page) ---- */
.hero {
  padding: 50px 0 70px;
  border-bottom: 4px double var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}
.hero-lead .kicker { margin-bottom: 18px; }
.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 108px);
  line-height: .98;
  letter-spacing: -.018em;
  margin: 0 0 32px;
  color: var(--ink);
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
}
.hero-title .accent { color: var(--accent); }
.hero-deck {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 30ch;
  margin: 0 0 36px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}
.hero-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 8px;
}

.hero-aside {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.hero-aside .aside-kicker {
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero-aside .aside-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 20px;
  color: var(--ink);
}
.hero-aside .aside-list {
  list-style: none; padding: 0; margin: 0 0 28px;
}
.hero-aside .aside-list li {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
}
.hero-aside .aside-list li:last-child { border-bottom: none; }
.hero-aside .aside-list .num {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--accent);
  font-size: 14px;
  flex: none;
}
.hero-aside .meta-block {
  padding-top: 20px;
  border-top: 2px solid var(--line);
  font-family: var(--f-sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  letter-spacing: .03em;
}
.hero-aside .meta-block strong { color: var(--ink); font-weight: 600; }

/* ---- 7. Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: all .35s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn .arrow {
  width: 14px; height: 14px;
  transition: transform .35s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }
.btn-wa {
  background: #128C7E;
  border-color: #128C7E;
  color: #fff;
}
.btn-wa:hover {
  background: #0e6f63;
  border-color: #0e6f63;
}

/* ---- 8. Section heads ---- */
.section { padding: 90px 0; }
.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  margin-bottom: 60px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  align-items: end;
}
.section-head .label {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.section-head .label .num {
  display: block;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-head h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -.014em;
  margin: 0;
  color: var(--ink);
  max-width: 22ch;
}
.section-head h2 em {
  font-style: italic;
  color: var(--accent);
}

/* ---- 9. About / Manifesto ---- */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.manifesto-image {
  position: relative;
  overflow: hidden;
}
.manifesto-image img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: grayscale(.65) contrast(1.05);
  transition: transform 1.4s var(--ease), filter .8s var(--ease);
}
.manifesto-image:hover img {
  filter: grayscale(.4) contrast(1.05);
  transform: scale(1.03);
}
.manifesto-caption {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--accent);
}
.manifesto-copy p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 22px;
  text-align: justify;
  hyphens: auto;
}
.manifesto-copy p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 5em;
  float: left;
  line-height: .82;
  padding: 6px 12px 0 0;
  color: var(--accent);
}
.manifesto-copy p + p { text-indent: 2em; }

/* Pull quote */
.pull-quote {
  position: relative;
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  color: var(--ink);
  max-width: 22ch;
}
.pull-quote::before {
  content: "“";
  position: absolute; top: -8px; left: -8px;
  font-family: var(--f-display);
  font-size: 84px; line-height: 1;
  color: var(--accent);
  opacity: .9;
}

/* ---- 10. Areas index (home) ---- */
.areas-list {
  border-top: 1px solid var(--line);
}
.area-row {
  display: grid;
  grid-template-columns: 60px 1fr 200px 60px;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
  position: relative;
  transition: background .35s var(--ease);
}
.area-row:hover { background: rgba(22,20,14,.025); }
.area-row .area-num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 24px;
  color: var(--accent);
}
.area-row .area-name {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--ink);
}
.area-row .area-sub {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.area-row .area-arrow {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--ink);
  transition: transform .4s var(--ease), color .4s var(--ease);
  text-align: right;
}
.area-row:hover .area-arrow {
  transform: translateX(8px);
  color: var(--accent);
}
.area-row.area-link::after {
  content: ""; position: absolute; inset: 0;
}

/* ---- 11. Why / Principles ---- */
.principles {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.principle {
  padding: 40px 28px 40px 0;
  border-right: 1px solid var(--line-soft);
}
.principle:last-child { border-right: none; padding-right: 0; }
.principle:first-child { padding-left: 0; }
.principle:not(:first-child) { padding-left: 28px; }
.principle .p-num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 14px;
}
.principle h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
}
.principle p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ---- 12. Process columns (multi-column body) ---- */
.process-body {
  column-count: 3;
  column-gap: 40px;
  column-rule: 1px solid var(--line-soft);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-align: justify;
  hyphens: auto;
}
.process-body p {
  margin: 0 0 18px;
  break-inside: avoid-column;
}
.process-body p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 4.2em;
  float: left;
  line-height: .85;
  padding: 4px 8px 0 0;
  color: var(--accent);
}
.process-body strong {
  color: var(--ink);
  font-weight: 600;
}
.process-step {
  break-inside: avoid-column;
  margin-bottom: 18px;
}
.process-step h4 {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 500;
  font-style: italic;
  margin: 0 0 6px;
  color: var(--ink);
}
.process-step h4 .num {
  color: var(--accent);
  font-style: italic;
  margin-right: 8px;
}

/* ---- 13. Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.testimonial {
  padding: 36px 28px 36px 0;
  border-right: 1px solid var(--line-soft);
  position: relative;
}
.testimonial:last-child { border-right: none; padding-right: 0; }
.testimonial:not(:first-child) { padding-left: 28px; }
.testimonial:first-child { padding-left: 0; }
.testimonial .quote-mark {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 54px;
  line-height: .6;
  color: var(--accent);
  margin-bottom: 14px;
}
.testimonial blockquote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 24px;
}
.testimonial .attribution {
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.testimonial .name {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .04em;
}
.testimonial .case {
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- 14. Contact ---- */
.contact {
  background: var(--bg-2);
  border-top: 4px double var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-info .block {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
}
.contact-info .block:last-child { border-bottom: none; }
.contact-info .k {
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.contact-info .v {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
}
.contact-info .v a { transition: color .25s var(--ease); }
.contact-info .v a:hover { color: var(--accent); }
.contact-info .v small {
  display: block;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 6px;
  font-style: italic;
}

.form-wrap {
  background: var(--paper);
  padding: 44px;
  border: 1px solid var(--line);
  position: relative;
}
.form-wrap::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 64px; height: 1px; background: var(--accent);
}
.form-wrap::after {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 1px; height: 64px; background: var(--accent);
}
.form-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 6px;
}
.form-sub {
  font-family: var(--f-body);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.field { position: relative; }
.field label {
  display: block;
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 0;
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--ink);
  transition: border-color .3s var(--ease);
  border-radius: 0;
}
.field textarea {
  resize: vertical;
  min-height: 64px;
  line-height: 1.5;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field select {
  appearance: none; -webkit-appearance: none;
  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 fill='%236e6760' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 24px;
}
.full { grid-column: 1 / -1; }
.form-submit {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.form-note {
  font-family: var(--f-body);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-mute);
  max-width: 36ch;
  line-height: 1.5;
}
.form-success {
  display: none;
  background: rgba(150,0,24,.04);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent);
  padding: 24px;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink);
}
.form-success.show { display: block; }
.form-success strong {
  font-family: var(--f-display);
  font-size: 18px;
  display: block;
  margin-bottom: 6px;
}

/* ---- 15. Footer ---- */
footer {
  background: var(--ink);
  color: var(--bg);
  padding: 70px 0 32px;
  padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
}
.foot-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.foot-brand img {
  height: 50px; width: auto;
  filter: brightness(0) invert(.95);
  margin-bottom: 22px;
}
.foot-brand p {
  font-family: var(--f-body);
  font-size: 14px;
  font-style: italic;
  color: rgba(250,247,240,.65);
  line-height: 1.6;
  max-width: 36ch;
  margin: 0;
}
.foot-col h4 {
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(250,247,240,.5);
  margin: 0 0 18px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 10px; }
.foot-col a {
  font-family: var(--f-body);
  font-size: 14px;
  color: rgba(250,247,240,.78);
  transition: color .25s var(--ease);
}
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(250,247,240,.16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(250,247,240,.45);
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250,247,240,.22);
  transition: .3s var(--ease);
}
.socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.socials svg { width: 14px; height: 14px; }

/* ---- 16. WhatsApp float ---- */
.wa-float {
  position: fixed;
  bottom: max(22px, calc(env(safe-area-inset-bottom, 0px) + 18px));
  right: max(22px, calc(env(safe-area-inset-right, 0px) + 18px));
  z-index: 40;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px -6px rgba(37,211,102,.55);
  transition: transform .35s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float::before {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(37,211,102,.4);
  animation: wa-pulse 2.6s var(--ease) infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(.9); opacity: .9; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ---- 17. Page header (for area pages) ---- */
.page-header {
  padding: 50px 0 70px;
  border-bottom: 4px double var(--line);
  position: relative;
}
.page-header .breadcrumb {
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 26px;
}
.page-header .breadcrumb a {
  color: var(--ink-mute);
  transition: color .25s var(--ease);
}
.page-header .breadcrumb a:hover { color: var(--accent); }
.page-header .breadcrumb .sep { margin: 0 10px; color: var(--ink-faint); }

.page-header-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}
.page-header h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(48px, 7.5vw, 96px);
  line-height: 1;
  letter-spacing: -.018em;
  margin: 0 0 24px;
  color: var(--ink);
}
.page-header h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.page-header .deck {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 32ch;
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}
.page-header-aside {
  border-left: 1px solid var(--line);
  padding-left: 30px;
  font-family: var(--f-sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.page-header-aside .k {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.page-header-aside .v {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 22px;
}

/* ---- 18. Area page body (multi-column lede + services list) ---- */
.area-body {
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 70px;
}
.area-body .lede {
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-align: justify;
  hyphens: auto;
  margin: 0;
}
.area-body .lede::first-letter {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 5em;
  float: left;
  line-height: .82;
  padding: 6px 12px 0 0;
  color: var(--accent);
}
.area-services {
  background: var(--bg-2);
  padding: 36px;
  border: 1px solid var(--line-soft);
  position: relative;
}
.area-services::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 60px; height: 1px; background: var(--accent);
}
.area-services::after {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 1px; height: 60px; background: var(--accent);
}
.area-services h3 {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}
.area-services ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.area-services li {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: baseline;
}
.area-services li:last-child { border-bottom: none; }
.area-services li .roman {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
}
.area-services .area-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: all .35s var(--ease);
  margin-top: 4px;
}
.area-services .area-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* Pull quote on area page (mid-content) */
.area-quote {
  margin: 0 auto;
  max-width: 900px;
  padding: 60px var(--pad-x) 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  background: var(--bg);
}
.area-quote blockquote {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.3;
  color: var(--ink);
  max-width: 26ch;
  margin: 0 auto 18px;
  position: relative;
}
.area-quote blockquote::before {
  content: "“";
  font-family: var(--f-display);
  font-size: 80px;
  color: var(--accent);
  position: absolute;
  top: -32px; left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}
.area-quote cite {
  font-family: var(--f-sans);
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* CTA section on area pages */
.area-cta-section {
  padding: 80px 0 100px;
  text-align: center;
  background: var(--ink);
  color: var(--bg);
}
.area-cta-section .kicker {
  color: rgba(250,247,240,.55);
  margin-bottom: 18px;
}
.area-cta-section h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.014em;
  margin: 0 auto 36px;
  max-width: 22ch;
}
.area-cta-section h2 em {
  font-style: italic;
  color: var(--accent);
}
.area-cta-section .ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.area-cta-section .btn-ghost {
  border-color: rgba(250,247,240,.4);
  color: var(--bg);
}
.area-cta-section .btn-ghost:hover {
  background: var(--bg);
  color: var(--ink);
}

/* Related areas at bottom of area page */
.related-areas {
  padding: 70px 0 90px;
  border-top: 1px solid var(--line);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.related-card {
  padding: 30px 28px 30px 0;
  border-right: 1px solid var(--line-soft);
  position: relative;
}
.related-card:nth-child(odd) { padding-right: 28px; }
.related-card:nth-child(even) {
  padding-left: 28px;
  border-right: none;
}
.related-card .kicker { margin-bottom: 10px; }
.related-card h3 {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 10px;
  color: var(--ink);
  transition: color .3s var(--ease);
}
.related-card:hover h3 { color: var(--accent); }
.related-card p {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.related-card .arrow {
  font-family: var(--f-display);
  font-style: italic;
  position: absolute;
  top: 30px; right: 0;
  font-size: 22px;
  color: var(--ink);
  transition: transform .3s var(--ease);
}
.related-card:nth-child(odd) .arrow { right: 28px; }
.related-card:hover .arrow {
  transform: translateX(6px);
  color: var(--accent);
}
.related-card.full-link::after {
  content: ""; position: absolute; inset: 0;
}

/* ---- 19. Reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.reveal-d5 { transition-delay: .40s; }

/* Safety net per gotcha A.4.5: split-text elements never stay hidden */
.reveal[data-split] {
  opacity: 1 !important;
  transform: none !important;
}

/* Only gate intrusive animations with reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; display: none; }
}

/* ---- 20. Responsive ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-aside { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 32px; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .principle { padding: 32px 24px !important; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
  .principle:nth-child(2n) { border-right: none; }
  .principle:nth-last-child(-n+2) { border-bottom: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial { padding: 32px 0 !important; border-right: none; border-bottom: 1px solid var(--line-soft); }
  .testimonial:last-child { border-bottom: none; }
  .area-row { grid-template-columns: 50px 1fr 50px; gap: 18px; padding: 28px 0; }
  .area-row .area-sub { grid-column: 2; grid-row: 2; }
  .area-row .area-num { grid-row: 1 / 3; }
  .area-row .area-arrow { grid-row: 1 / 3; align-self: center; }
  .process-body { column-count: 2; }
  .page-header-grid { grid-template-columns: 1fr; gap: 40px; }
  .page-header-aside { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 28px; }
  .area-body { grid-template-columns: 1fr; gap: 40px; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card { padding: 28px 0 !important; border-right: none; border-bottom: 1px solid var(--line-soft); }
  .related-card:last-child { border-bottom: none; }
  .related-card .arrow { right: 0 !important; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  :root { --pad-x: 20px; }
  body { font-size: 16px; }

  .masthead-top { display: none; }
  .masthead {
    /* Now position: relative so menu can absolute-position below it */
    position: relative;
  }
  .masthead-main {
    padding: 16px 0;
    border-top: none;
    gap: 12px;
    min-height: 64px;
  }
  /* Hide redundant text wordmark on mobile — logo image already says "DAVALOS LEGAL" */
  .brand-name { display: none; }
  .brand-logo { height: 40px; }
  .brand { gap: 0; flex: 1; min-width: 0; align-items: center; }

  .masthead-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 16px var(--pad-x) 24px;
    gap: 0;
    border-bottom: 1px solid var(--ink);
    transform: translateY(-110%);
    transition: transform .4s var(--ease);
    box-shadow: 0 20px 40px -20px rgba(22,20,14,.18);
    z-index: 49;
    max-height: 80vh;
    overflow-y: auto;
    pointer-events: none;
    opacity: 0;
  }
  .masthead-nav.open {
    transform: translateY(0);
    pointer-events: auto;
    opacity: 1;
  }
  .masthead-nav.open { transform: translateY(0); }
  .masthead-nav a {
    font-size: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .masthead-nav a:last-of-type { border-bottom: none; }
  .masthead-nav .btn-masthead {
    margin-top: 16px;
    justify-content: center;
    padding: 14px 24px;
  }
  body.menu-open { overflow: hidden; }
  .menu-toggle { display: inline-flex; flex: none; }

  .hero { padding: 40px 0 50px; }
  .hero-title { font-size: clamp(40px, 12vw, 60px); }
  .hero-deck { font-size: 18px; }
  .hero-cta-row .btn { flex: 1; justify-content: center; }

  .section { padding: 60px 0; }
  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 36px;
    align-items: start;
  }

  .principles-grid { grid-template-columns: 1fr; }
  .principle {
    padding: 28px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid var(--line-soft) !important;
  }
  .principle:last-child { border-bottom: none !important; }

  .process-body { column-count: 1; column-rule: none; }

  .form-row { grid-template-columns: 1fr; gap: 18px; margin-bottom: 18px; }
  .form-wrap { padding: 32px 22px; }
  .form-submit { flex-direction: column-reverse; align-items: stretch; }
  .form-submit .btn { justify-content: center; }

  .foot-top { grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }

  .wa-float { width: 52px; height: 52px; }
  .wa-float svg { width: 24px; height: 24px; }

  /* Drop caps slightly smaller on mobile */
  .manifesto-copy p:first-of-type::first-letter,
  .process-body p:first-of-type::first-letter,
  .area-body .lede::first-letter { font-size: 4em; }

  .page-header { padding: 30px 0 50px; }
  .page-header h1 { font-size: clamp(40px, 11vw, 60px); }

  .area-row { padding: 22px 0; gap: 14px; }
  .area-row .area-name { font-size: 28px; }
}

@media (max-width: 420px) {
  :root { --pad-x: 18px; }
  .brand-logo { height: 36px; }
  .menu-toggle { width: 38px; height: 38px; }
  .masthead-main { min-height: 60px; padding: 12px 0; }
  .hero-title { font-size: clamp(36px, 11.5vw, 52px); }
  .form-wrap { padding: 26px 18px; }
}
