/* ============================================================
   Maury-Diaz Law, PC — maurydiazlaw.com
   Palette: ink #0f172a · paper #faf9f6 · royal #2563eb
            slate #334155 · mist #e2e8f0 · panel #1e293b
   Type:    Fraunces (display) · Public Sans (body) — self-hosted
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces72pt-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces72pt-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("assets/fonts/PublicSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("assets/fonts/PublicSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("assets/fonts/PublicSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0f172a;
  --panel: #1e293b;
  --paper: #faf9f6;
  --royal: #2563eb;
  --royal-dark: #1d4ed8;
  --slate: #334155;
  --slate-soft: #64748b;
  --mist: #e2e8f0;
  --mist-soft: rgba(226, 232, 240, 0.72);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Public Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--royal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--royal-dark); }

:focus-visible {
  outline: 3px solid var(--royal);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--royal);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.12);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 1.4rem; }

.lang-switch {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--mist-soft);
  text-decoration: none;
}
.lang-switch strong { color: #fff; font-weight: 600; }
.lang-switch a { color: var(--mist-soft); text-decoration: none; }
.lang-switch a:hover { color: #fff; }
.lang-switch .sep { margin: 0 0.35rem; opacity: 0.4; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1.5rem;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.btn-primary {
  background: var(--royal);
  color: #fff;
  border: 1px solid var(--royal);
}
.btn-primary:hover { background: var(--royal-dark); border-color: var(--royal-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(226, 232, 240, 0.4);
}
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-small { padding: 0.5rem 1.15rem; font-size: 0.88rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--mist);
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  max-width: var(--max);
}
.hero-mark {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: clamp(280px, 34vw, 460px);
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 900px) { .hero-mark { display: none; } }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist-soft);
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--royal);
  border-radius: 2px;
  transform: rotate(45deg);
  margin-right: 0.7rem;
  vertical-align: 1px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 1.5rem;
  max-width: 13ch;
}
.hero p.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--mist);
  max-width: 34rem;
  margin: 0 0 2.2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-lang {
  margin-top: 2.6rem;
  font-size: 0.95rem;
}
.hero-lang a { color: var(--mist); }
.hero-lang a:hover { color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero .lede, .hero-cta, .hero-lang {
    animation: rise 640ms cubic-bezier(0.19, 1, 0.22, 1) both;
  }
  .hero h1 { animation-delay: 60ms; }
  .hero .lede { animation-delay: 120ms; }
  .hero-cta { animation-delay: 180ms; }
  .hero-lang { animation-delay: 240ms; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
  max-width: 24ch;
}

/* ---------- Practice areas ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

.card { border-top: 1px solid var(--mist); padding-top: 1.6rem; }
.card .marker {
  width: 12px;
  height: 12px;
  border: 2px solid var(--royal);
  border-radius: 3px;
  transform: rotate(45deg);
  margin-bottom: 1.1rem;
}
.card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0 0 0.7rem;
}
.card p { margin: 0; font-size: 1rem; }

/* ---------- Why band (navy) ---------- */

.band {
  background: var(--ink);
  color: var(--mist);
}
.band h2 { color: #fff; }
.band .eyebrow { color: var(--mist-soft); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.6rem, 3vw, 2.6rem) clamp(2rem, 4vw, 3.5rem);
}
@media (max-width: 720px) { .why-grid { grid-template-columns: 1fr; } }
.why-item h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 0.4rem;
}
.why-item h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--royal);
  border-radius: 2px;
  transform: rotate(45deg);
  margin-right: 0.65rem;
  vertical-align: 1px;
}
.why-item p { margin: 0; font-size: 0.98rem; color: var(--mist-soft); }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; } }
.about-figure {
  border: 1px solid var(--mist);
  border-radius: 10px;
  background: #fff;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.2rem;
}
.about-figure img { width: 100%; height: auto; }
.about-copy p { margin: 0 0 1.1rem; }
.about-copy p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */

.contact-panel {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 14px;
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (max-width: 780px) { .contact-panel { grid-template-columns: 1fr; } }
.contact-lead p { margin: 0 0 1.6rem; }
.contact-lead .btn { margin-right: 0.75rem; margin-bottom: 0.75rem; }
.contact-lead .btn-outline {
  background: transparent;
  color: var(--royal);
  border: 1px solid var(--royal);
}
.contact-lead .btn-outline:hover { background: var(--royal); color: #fff; }
.contact-details { font-style: normal; font-size: 0.98rem; line-height: 1.9; }
.contact-details strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.contact-details a { text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }
.contact-note {
  grid-column: 1 / -1;
  border-top: 1px solid var(--mist);
  padding-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--slate-soft);
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--mist-soft);
  font-size: 0.88rem;
  line-height: 1.8;
}
.site-footer .wrap {
  padding-top: 2.6rem;
  padding-bottom: 2.6rem;
  display: grid;
  gap: 0.4rem;
}
.site-footer img { height: 40px; width: auto; margin-bottom: 1.1rem; }
.site-footer p { margin: 0; max-width: 62rem; }
.site-footer a { color: var(--mist); }

/* ============================================================
   v2 additions — nav, interior pages, forms, blog
   ============================================================ */

/* ---------- Primary nav ---------- */

.site-nav { display: flex; gap: 1.3rem; font-size: 0.92rem; font-weight: 500; }
.site-nav a { color: var(--mist-soft); text-decoration: none; white-space: nowrap; padding-bottom: 2px; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: 0 2px 0 var(--royal); }
@media (max-width: 1000px) {
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { order: 3; flex-basis: 100%; overflow-x: auto; padding-bottom: 0.4rem; -webkit-overflow-scrolling: touch; }
}

/* ---------- Interior page hero ---------- */

.page-hero .wrap { padding-top: clamp(3rem, 7vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 4.5rem); }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 24ch; }
.page-hero p.lede { max-width: 40rem; }

/* ---------- Service-area strip ---------- */

.area-strip { background: #fff; border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); }
.area-strip .wrap { padding-top: 1.6rem; padding-bottom: 1.6rem; }
.area-strip p { margin: 0; font-size: 0.98rem; max-width: 58rem; }

/* ---------- Practice-page blocks ---------- */

.prose { max-width: 56rem; }
.prose p { margin: 0 0 1.1rem; }
.prose p:last-child { margin-bottom: 0; }

.card .card-more { margin: 0.85rem 0 0; font-weight: 600; font-size: 0.95rem; }
.card .card-more a { text-decoration: none; }
.card .card-more a:hover { text-decoration: underline; }

.list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 2.5rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 720px) { .list-grid { grid-template-columns: 1fr; } }
.list-grid li { padding-left: 1.4rem; position: relative; font-size: 1rem; }
.list-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--royal);
  border-radius: 2px;
  transform: rotate(45deg);
}
.list-grid li strong { color: var(--ink); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; border-top: 1px solid var(--mist); padding-top: 1.1rem; }
.steps li::before {
  content: "0" counter(step);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--royal);
  display: block;
  margin-bottom: 0.45rem;
}
.steps h3 { font-family: var(--body); font-weight: 600; font-size: 1.02rem; color: var(--ink); margin: 0 0 0.35rem; }
.steps p { margin: 0; font-size: 0.95rem; }

.pricing-panel {
  background: #fff;
  border: 1px solid var(--mist);
  border-left: 4px solid var(--royal);
  border-radius: 10px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  max-width: 56rem;
}
.pricing-panel p { margin: 0 0 1rem; }
.pricing-panel p:last-child { margin-bottom: 0; }

.faq { max-width: 56rem; }
.faq details { border-top: 1px solid var(--mist); padding: 0.35rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--mist); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  padding: 0.8rem 2rem 0.8rem 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--royal);
  font-weight: 600;
  font-size: 1.25rem;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 1rem; }

.bridges { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 720px) { .bridges { grid-template-columns: 1fr; } }

.cta-band p.lede { color: var(--mist); max-width: 40rem; margin: 1rem 0 2rem; }

/* ---------- Contact form ---------- */

.contact-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-form label { display: grid; gap: 0.35rem; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.contact-form input,
.contact-form textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--mist);
  border-radius: 8px;
  background: #fff;
  color: var(--slate);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--royal); outline-offset: 1px; border-color: var(--royal); }
.contact-form button { justify-self: start; cursor: pointer; }
.hidden-field { position: absolute; left: -999px; }

/* ---------- Blog / guides ---------- */

.topic-list { margin: 1.2rem 0 0; padding: 0; list-style: none; max-width: 56rem; }
.topic-list li { border-top: 1px solid var(--mist); padding: 1rem 0 1rem 1.4rem; position: relative; }
.topic-list li:last-child { border-bottom: 1px solid var(--mist); }
.topic-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.55em;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--royal);
  border-radius: 2px;
  transform: rotate(45deg);
}
.topic-list strong { color: var(--ink); }

/* ---------- Footer links ---------- */

.footer-links { margin-top: 0.4rem; }
.footer-links a { color: var(--mist); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links .sep { opacity: 0.45; margin: 0 0.45rem; }

/* ---------- Eyebrow contrast on light sections ---------- */

.section .eyebrow { color: var(--slate-soft); }
.hero .eyebrow, .band .eyebrow { color: var(--mist-soft); }
