/* Dario Diaz Law — site styles. No frameworks, no external requests. */

@font-face {
  font-family: "Caslon Display";
  src: url("/fonts/caslon-display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #13243a;
  --ink-2: #1d3350;
  --brass: #7d5f27;
  --brass-light: #d2b277;
  --stone: #eceee9;
  --paper: #ffffff;
  --text: #1f2a37;
  --muted: #55606c;
  --rule: #cdd2d8;
  --focus: #1b6fd1;

  --serif: "Caslon Display", "Big Caslon", "Libre Caslon Display", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 72rem;
  --prose: 40rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-variant-numeric: lining-nums;
}

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

a { color: var(--ink-2); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brass); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--ink);
  margin: 1.8em 0 0.4em;
}
p, ul, ol { margin: 0 0 1em; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--text); max-width: 36rem; }
.muted { color: var(--muted); }
.prose { max-width: var(--prose); }
.prose li { margin-bottom: 0.35em; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 50px; }
.brand-name { font-family: var(--serif); font-size: 1.65rem; line-height: 1; display: block; }
.brand-sub { font-size: 0.85rem; color: var(--muted); display: block; margin-top: 0.2rem; }
.head-actions { display: flex; align-items: center; gap: 1.1rem; }
.lang { font-size: 0.95rem; font-weight: 600; }
.call {
  display: inline-block; background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 650; padding: 0.6rem 1rem; border-radius: 3px; white-space: nowrap;
}
.call:hover { background: var(--ink-2); color: #fff; }

.nav { border-top: 1px solid var(--rule); }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.2rem 1.5rem; margin: 0; padding: 0.65rem 0; }
.nav a { text-decoration: none; color: var(--text); font-size: 0.97rem; padding: 0.15rem 0; display: inline-block; }
.nav a:hover { color: var(--brass); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brass); }
.nav details { display: none; }

@media (max-width: 760px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.35rem; }
  .brand img { width: 42px; height: 40px; }
  .call { padding: 0.5rem 0.75rem; font-size: 0.92rem; }
  .call .num { display: none; }
  .nav > .wrap > ul { display: none; }
  .nav details { display: block; padding: 0.4rem 0; }
  .nav summary { cursor: pointer; font-weight: 600; padding: 0.4rem 0; list-style: none; }
  .nav summary::-webkit-details-marker { display: none; }
  .nav summary::before { content: "≡"; margin-right: 0.5rem; font-size: 1.2rem; }
  .nav details ul { display: block; padding: 0 0 0.6rem; }
  .nav details li { border-top: 1px solid var(--rule); }
  .nav details a { display: block; padding: 0.6rem 0; }
}

/* ---------- Home: hero ---------- */
.hero { background: var(--stone); }
.hero .wrap {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.hero h1 { max-width: 13ch; }
.phone-big {
  display: inline-block; margin-top: 0.4rem;
  font-family: var(--serif); font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1;
  color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--brass);
  padding-bottom: 0.15rem;
}
.phone-big:hover { color: var(--brass); }
.phone-note { margin-top: 0.9rem; color: var(--muted); max-width: 30rem; }
.portrait-frame { justify-self: center; position: relative; max-width: 320px; }
.portrait-frame .frame { display: block; position: relative; }
.portrait-frame img { position: relative; z-index: 1; }
.portrait-frame .frame::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--brass);
}
.portrait-frame figcaption { margin-top: 1.4rem; font-size: 0.92rem; color: var(--muted); }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 220px; justify-self: start; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }

.practice { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.practice article img { aspect-ratio: 400 / 324; object-fit: cover; width: 100%; margin-bottom: 1.2rem; }
.practice h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); }
@media (max-width: 760px) { .practice { grid-template-columns: 1fr; } }

/* ---------- Verdicts: the one bold element ---------- */
.verdicts { background: var(--ink); color: #e9edf2; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.verdicts h2 { color: #fff; max-width: 22ch; }
.verdicts .intro { color: #c3ccd6; max-width: 38rem; }
.verdict-list { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.verdict {
  display: grid; grid-template-columns: minmax(12rem, 1fr) 1.6fr; gap: 1rem 3rem;
  padding: 1.8rem 0; border-top: 1px solid rgba(255,255,255,0.16);
}
.verdict:last-child { border-bottom: 1px solid rgba(255,255,255,0.16); }
.amount { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: var(--brass-light); }
.offer { display: block; font-family: var(--sans); font-size: 0.95rem; color: #c3ccd6; margin-top: 0.6rem; }
.offer s { text-decoration-thickness: 1px; }
.verdict h3 { color: #fff; margin: 0 0 0.35rem; }
.verdict p { margin: 0; color: #d6dde5; }
.verdicts .fine { font-size: 0.88rem; color: #a9b4c0; margin-top: 1.6rem; }
.verdicts a { color: #fff; }
.verdicts a:hover { color: var(--brass-light); }
@media (max-width: 760px) { .verdict { grid-template-columns: 1fr; } }

/* Light version for the Past Results page */
.page .verdict-list .verdict { border-color: var(--rule); }
.page .verdict .amount { color: var(--ink); }
.page .verdict .offer { color: var(--muted); }
.page .verdict h3 { color: var(--ink); }
.page .verdict p { color: var(--text); }

/* ---------- About teaser ---------- */
.about { display: grid; grid-template-columns: 240px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.about figure { margin: 0; }
.about figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.6rem; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about figure { max-width: 200px; } }

/* ---------- Contact block ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-grid address { font-style: normal; font-size: 1.15rem; line-height: 1.6; }
.contact-grid .phone-big { font-size: clamp(2rem, 4vw, 2.8rem); }
.retainer { align-self: start; background: var(--stone); padding: 1.5rem; border-left: 3px solid var(--brass); }
.retainer h3 { margin-top: 0; }
.retainer label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.retainer select {
  font: inherit; padding: 0.5rem 0.6rem; border: 1px solid #9aa3ad; border-radius: 3px;
  background: #fff; min-width: 12rem; margin-bottom: 0.9rem;
}
.btn {
  display: inline-block; font: inherit; font-weight: 650; cursor: pointer;
  background: var(--ink); color: #fff; border: 0; border-radius: 3px; padding: 0.65rem 1.1rem; text-decoration: none;
}
.btn:hover { background: var(--ink-2); color: #fff; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-head { background: var(--stone); padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { margin-bottom: 0.25em; }
.page-head p { margin: 0; color: var(--muted); max-width: 40rem; }
.page-body { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.split { display: grid; grid-template-columns: 1fr 260px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split aside img { margin-bottom: 0.6rem; }
.split aside p { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split aside { max-width: 260px; order: -1; } }

.faq details { border-top: 1px solid var(--rule); padding: 0.2rem 0; max-width: var(--prose); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; font-weight: 650; color: var(--ink); padding: 0.9rem 2rem 0.9rem 0; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 0.75rem; font-size: 1.3rem; color: var(--brass); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-bottom: 1.1rem; }

.video { position: relative; aspect-ratio: 16 / 9; max-width: var(--prose); background: var(--ink); margin: 0 0 1rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.news { list-style: none; padding: 0; margin: 0; max-width: 46rem; }
.news li { padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.news li:last-child { border-bottom: 1px solid var(--rule); }
.news .src { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.2rem; }
.news a { font-weight: 650; }
.news p { margin: 0.25rem 0 0; }

.posts { list-style: none; padding: 0; margin: 0; max-width: var(--prose); }
.posts li { padding: 1.2rem 0; border-top: 1px solid var(--rule); }
.posts li:last-child { border-bottom: 1px solid var(--rule); }
.posts time { display: block; font-size: 0.88rem; color: var(--muted); }
.posts a { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; color: var(--ink); line-height: 1.2; }
.posts a:hover { color: var(--brass); }
.posts p { margin: 0.3rem 0 0; }

.post-meta { color: var(--muted); font-size: 0.95rem; }
.post-figure { max-width: 260px; margin: 0 0 1.5rem; }

.cta-band { margin-top: 2.5rem; padding: 1.4rem 1.5rem; background: var(--stone); border-left: 3px solid var(--brass); max-width: var(--prose); }
.cta-band p { margin: 0; }
.cta-band a { font-weight: 650; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d2dc; font-size: 0.93rem; padding: 3rem 0 2rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brass-light); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.foot-grid h2 { font-size: 1.5rem; color: #fff; margin-bottom: 0.4em; }
.foot-grid address { font-style: normal; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 0.3rem; }
.disclaimer { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2.2rem; padding-top: 1.4rem; font-size: 0.85rem; color: #a9b4c0; max-width: 60rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

@media print {
  .site-header .nav, .head-actions, .skip { display: none; }
  .verdicts { background: none; color: #000; }
}

/* ---------- Contact page + form ---------- */
.contact-page { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-side address { font-style: normal; font-size: 1.1rem; line-height: 1.6; }
.contact-side .phone-big { font-size: clamp(2rem, 4vw, 2.6rem); }
.contact-side .retainer { margin-top: 2rem; }
@media (max-width: 860px) { .contact-page { grid-template-columns: 1fr; } }

.contact-form form { max-width: 36rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; color: var(--ink); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1px solid #9aa3ad; border-radius: 3px; padding: 0.6rem 0.7rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid rgba(27,111,209,.35); outline-offset: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hint { font-size: 0.88rem; color: var(--muted); margin: 0.35rem 0 0; }
.field.check { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; }
.field.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; accent-color: var(--ink); }
.field.check label { font-weight: 400; color: var(--text); font-size: 0.95rem; margin: 0; }
.cf-turnstile { margin: 0.4rem 0 1.1rem; min-height: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cta-message { background: var(--stone); padding: 1.5rem; border-left: 3px solid var(--brass); align-self: start; }
.cta-message h3 { margin-top: 0; }
.cta-message p:last-child { margin-bottom: 0; }
