/* Law Offices of Victor Altamirano — static site
   Palette drawn from the firm's office signage: deep navy + white, warm gold accent. */

:root {
  --navy-900: #16202e;
  --navy-800: #1e2c3f;
  --navy-700: #24344a;
  --navy-600: #2e415c;
  --gold-500: #c9a35c;
  --gold-400: #d8b878;
  --gold-600: #b08c45;
  --ink: #26303c;
  --ink-soft: #55606e;
  --paper: #faf9f6;
  --paper-warm: #f4f1ea;
  --white: #ffffff;
  --line: #e4e0d7;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(22, 32, 46, .08), 0 12px 32px rgba(22, 32, 46, .10);
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

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

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

a { color: var(--navy-600); }

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

h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; color: var(--navy-800); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: .75rem;
}

.section { padding: 72px 0; }
.section--alt { background: var(--paper-warm); }
.section--navy { background: var(--navy-800); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #c5cedb; }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.375rem); margin-bottom: .75rem; }
.section-head p { color: var(--ink-soft); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

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

.topbar {
  background: var(--navy-900);
  color: #aab6c6;
  font-size: .875rem;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: #d8dee8; text-decoration: none; }
.topbar a:hover { color: var(--gold-400); }
.topbar__meta { display: flex; gap: 20px; align-items: center; }
@media (max-width: 640px) { .topbar__hours { display: none; } }

.header {
  background: var(--navy-800);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 20px rgba(10,16,24,.35);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 210px; height: auto; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  color: #d4dbe5;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  padding: 10px 11px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,.07); }
.nav a[aria-current="page"] { color: var(--gold-400); }
.nav .nav__cta {
  background: var(--gold-500);
  color: var(--navy-900);
  font-weight: 700;
  margin-left: 8px;
  padding: 10px 16px;
}
.nav .nav__cta:hover { background: var(--gold-400); color: var(--navy-900); }
.nav__lang { border: 1px solid rgba(255,255,255,.25); margin-left: 6px; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 6px;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  position: relative;
  content: "";
  transition: transform .2s;
}
.nav-toggle-label span::before { position: absolute; top: -7px; }
.nav-toggle-label span::after { position: absolute; top: 7px; }

@media (max-width: 1080px) {
  .nav-toggle-label { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 2px;
    box-shadow: 0 20px 30px rgba(10,16,24,.4);
  }
  .nav a { padding: 12px 10px; }
  .nav .nav__cta { margin: 10px 0 0; text-align: center; }
  .nav__lang { margin-left: 0; text-align: center; }
  .nav-toggle:checked ~ .nav { display: flex; }
}

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

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  padding: 14px 28px;
  transition: background .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold-500); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-400); }
.btn--outline { border: 1.5px solid rgba(255,255,255,.5); color: var(--white); }
.btn--outline:hover { border-color: var(--gold-400); color: var(--gold-400); }
.btn--navy { background: var(--navy-700); color: var(--white); }
.btn--navy:hover { background: var(--navy-600); }

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

.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(201,163,92,.16), transparent 60%),
    linear-gradient(105deg, var(--navy-900) 0%, rgba(30,44,63,.94) 42%, rgba(36,52,74,.80) 100%),
    url("/assets/img/hero-lawbooks.jpg") center right / cover no-repeat,
    var(--navy-800);
  color: var(--white);
  padding: 96px 0 104px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,163,92,.55), transparent);
}
.hero__inner { max-width: 780px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 5.2vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero p.lede { font-size: 1.25rem; color: #c5cedb; margin-bottom: 2.25rem; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 3rem; }
.hero__rule { width: 64px; height: 3px; background: var(--gold-500); margin-bottom: 1.5rem; }

.hero__points { display: flex; flex-wrap: wrap; gap: 12px 36px; padding: 0; list-style: none; }
.hero__points li {
  color: #d4dbe5;
  font-size: .975rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__points li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  flex-shrink: 0;
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 64px 0;
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: .5rem; }
.page-hero p { color: #c5cedb; max-width: 640px; font-size: 1.125rem; }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
a.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--gold-500); }
.card img.card__icon {
  width: 56px; height: 56px;
  object-fit: contain;
  filter: brightness(.78) saturate(1.15);
}
.card h3 { font-size: 1.1875rem; }
.card p { color: var(--ink-soft); font-size: .9675rem; flex-grow: 1; }
.card .card__more { color: var(--gold-600); font-weight: 700; font-size: .875rem; letter-spacing: .02em; }

/* ---------- Team ---------- */

.team-card { text-align: center; }
.team-card img {
  border-radius: var(--radius);
  aspect-ratio: 740 / 897;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.team-card h3 { font-size: 1.25rem; }
.team-card p { color: var(--gold-600); font-weight: 600; font-size: .9375rem; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Testimonials ---------- */

.quote-card {
  background: var(--navy-700);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 3px solid var(--gold-500);
}
.quote-card blockquote { color: #dbe2ec; font-size: .9675rem; line-height: 1.7; flex-grow: 1; }
.quote-card figcaption { color: var(--gold-400); font-weight: 700; font-family: var(--font-serif); font-size: 1.0625rem; }
.quote-card figcaption span { display: block; color: #8fa0b5; font-family: var(--font-sans); font-weight: 500; font-size: .8125rem; }

/* ---------- Logo strip ---------- */

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 56px;
}
.logo-strip img {
  max-height: 84px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: grayscale(1) opacity(.72);
  transition: filter .2s;
}
.logo-strip img:hover { filter: none; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 54px 20px 24px;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy-800);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold-600);
  transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq__body { padding: 20px 24px 24px; color: var(--ink-soft); }
.faq .faq__body p + p, .faq .faq__body ul + p, .faq .faq__body p + ul { margin-top: .75rem; }
.faq .faq__body ul { padding-left: 1.25rem; }
.faq .faq__body li + li { margin-top: .5rem; }

/* ---------- Info page ---------- */

.info-section { padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.info-section:last-of-type { border-bottom: none; }
.info-section__head { display: flex; align-items: center; gap: 18px; margin-bottom: 1.25rem; }
.info-section__head img {
  width: 52px; height: 52px; object-fit: contain;
  filter: brightness(.78) saturate(1.15);
}
.info-section h2 { font-size: 1.75rem; }
.info-section p + p, .info-section ul + p, .info-section p + ul { margin-top: .875rem; }
.info-section ul { padding-left: 1.375rem; }
.info-section li + li { margin-top: .5rem; }
.info-section p, .info-section li { color: var(--ink-soft); }
.info-section strong { color: var(--ink); }

.info-q {
  font-size: 1.1875rem;
  color: var(--navy-700);
  margin: 2rem 0 .625rem;
}
.info-section > .info-q:first-of-type { margin-top: 1.25rem; }

.did-you-know {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  border-radius: 8px;
  padding: 22px 24px;
  margin-top: 2rem;
}
.did-you-know h3 {
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: .875rem;
}
.did-you-know ul { padding-left: 1.25rem; margin: 0; }
.did-you-know li { color: var(--ink-soft); font-size: .9375rem; }
.did-you-know li + li { margin-top: .5rem; }

.info-section .note-bar { margin: 1.5rem 0; }
.info-section .note-bar a { color: var(--navy-700); font-weight: 700; }

.toc {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.toc h2 { font-size: 1.0625rem; margin-bottom: .875rem; }
.toc ol { list-style: none; }
.toc li + li { margin-top: 2px; }
.toc a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: .9075rem;
  padding: 7px 10px;
  border-radius: 6px;
  border-left: 2px solid transparent;
}
.toc a:hover { color: var(--navy-800); background: var(--paper-warm); border-left-color: var(--gold-500); }

.info-layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) {
  .info-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}

/* ---------- Attorney bio ---------- */

.bio-layout { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .bio-layout { grid-template-columns: 1fr; gap: 36px; } }

.bio-portrait { position: sticky; top: 100px; }
@media (max-width: 900px) { .bio-portrait { position: static; } }
.bio-portrait img {
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 1280 / 1560;
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow);
}
.bio-portrait__card {
  background: var(--navy-800);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow);
}
.bio-portrait__card h2 { color: var(--white); font-size: 1.375rem; margin-bottom: .25rem; }
.bio-portrait__role {
  color: var(--gold-400);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.bio-facts { list-style: none; margin-bottom: 1.5rem; }
.bio-facts li {
  color: #d4dbe5;
  font-size: .9375rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.bio-facts li:last-child { border-bottom: none; }
.bio-facts li span {
  display: block;
  color: #8fa0b5;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1px;
}
.bio-portrait__card .btn { display: block; text-align: center; }

.bio-body > p { color: var(--ink-soft); }
.bio-body > p + p { margin-top: 1rem; }
.bio-heading {
  font-size: 1.5rem;
  margin: 2.5rem 0 1.25rem;
  padding-bottom: .625rem;
  border-bottom: 2px solid var(--gold-500);
  display: inline-block;
}

.credential-list { list-style: none; }
.credential-list li {
  position: relative;
  padding: 16px 0 16px 26px;
  border-bottom: 1px solid var(--line);
}
.credential-list li:last-child { border-bottom: none; }
.credential-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
}
.credential-list__degree {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy-800);
}
.credential-list__school { display: block; color: var(--ink-soft); font-size: .9375rem; }

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

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; }
.contact-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .contact-list__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-600);
  width: 110px;
  flex-shrink: 0;
  padding-top: 3px;
}
.contact-list .contact-list__value { color: var(--ink); font-size: 1.0625rem; }
.contact-list a { color: var(--navy-700); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--gold-600); }

.map-frame {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(800px 300px at 15% 120%, rgba(201,163,92,.18), transparent 60%),
    var(--navy-800);
  border-radius: 14px;
  padding: 56px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .5rem; }
.cta-band p { color: #c5cedb; max-width: 520px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 640px) { .cta-band { padding: 40px 28px; } }

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

.footer { background: var(--navy-900); color: #9daaba; padding: 64px 0 0; font-size: .9375rem; }
.footer a { color: #c9d2de; text-decoration: none; }
.footer a:hover { color: var(--gold-400); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; gap: 36px; } }
.footer__brand img { width: 220px; margin-bottom: 18px; }
.footer h3 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer ul { list-style: none; }
.footer ul li + li { margin-top: .5rem; }
.footer address { font-style: normal; line-height: 1.8; }
.footer__legal {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 28px 0 36px;
  font-size: .8125rem;
  line-height: 1.7;
  color: #75828f;
}
.footer__legal p + p { margin-top: .75rem; }

/* ---------- Misc ---------- */

.note-bar {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  border-radius: 8px;
  padding: 16px 20px;
  color: var(--ink-soft);
  font-size: .9375rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 10px 16px;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Team monogram (stands in for a removed photo) ---------- */

.team-card__monogram {
  aspect-ratio: 740 / 897;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: var(--gold-400);
  font-family: var(--font-serif);
  font-size: 3.25rem;
  font-weight: 600;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
@media (max-width: 620px) { .form-card { padding: 24px 20px; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: .4rem;
}
.form-field label .req { color: var(--gold-600); }

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201,163,92,.18);
  background: var(--white);
}
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-color: #b4463c; background: #fdf6f5; }
.form-field .field-error { display: none; color: #b4463c; font-size: .8125rem; margin-top: .3rem; }
.form-field input[aria-invalid="true"] ~ .field-error,
.form-field textarea[aria-invalid="true"] ~ .field-error { display: block; }

/* Honeypot — hidden from people, visible to naive bots */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.form-actions .btn { border: none; cursor: pointer; font-family: var(--font-sans); }
.form-actions .btn[disabled] { opacity: .6; cursor: default; }
.form-note { color: var(--ink-soft); font-size: .8125rem; }

.form-status { margin-top: 18px; border-radius: 8px; padding: 16px 18px; font-size: .9375rem; display: none; }
.form-status[data-state="ok"] {
  display: block; background: #eef6ef; border: 1px solid #cfe3d1; border-left: 3px solid #3f8a4a; color: #2c5c34;
}
.form-status[data-state="error"] {
  display: block; background: #fdf3f2; border: 1px solid #f0d4d1; border-left: 3px solid #b4463c; color: #8c352d;
}
.form-status a { color: inherit; font-weight: 700; }
