/* Abogados en San Diego — abogadosensd.com
   Rich classic legal-marketing aesthetic: deep navy + gold,
   bold skyline hero, trust strip, community section.
   DIRECTORY / advertising platform framing throughout. No frameworks. */

:root {
  --navy: #0a1f3d;
  --navy-deep: #061527;
  --navy-2: #12315e;
  --gold: #c9a227;
  --gold-light: #e3c565;
  --gold-dark: #9a7a1c;
  --gold-tint: #faf3df;/* v3.1 cache-bust */

  --cream: #faf7ef;
  --white: #ffffff;
  --ink: #1a2230;
  --muted: #5b6774;
  --line: #e6e0d2;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 21, 39, 0.10);
  --shadow-lg: 0 20px 55px rgba(6, 21, 39, 0.16);
  --font-serif: Georgia, 'Times New Roman', Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 0.6em;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 0.7em; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1rem; }
a { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }
section.tint { background: var(--cream); }
section.dark { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-2) 100%); color: #eef1f5; }
section.dark h2 { color: #fff; }
section.dark p { color: #cfd8e3; }

/* ---------- Header / nav (white, mockup style) ---------- */
.site-header {
  background: var(--white);
  color: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 16px rgba(6, 21, 39, 0.10);
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 8px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand-skyline {
  grid-row: 1 / 3;
  width: 46px;
  height: 34px;
  fill: var(--gold);
}
.brand-word {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--navy);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-word span { color: var(--gold-dark); }
.brand-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  background: var(--navy);
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav > ul > li > a {
  color: var(--navy);
  text-decoration: none;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.active { background: var(--gold-tint); color: var(--gold-dark); text-decoration: none; }
.main-nav .caret { font-size: 0.7em; }
/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 60;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown a {
  display: block;
  padding: 11px 14px;
  color: var(--navy);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
}
.dropdown a:hover { background: var(--gold-tint); color: var(--gold-dark); }
.header-cta { margin-left: 10px; white-space: nowrap; }

/* ---------- Hero (homepage, attorneys + skyline backdrop) ---------- */
.hero-home {
  background:
    linear-gradient(100deg, rgba(6, 21, 39, 0.88) 0%, rgba(6, 21, 39, 0.55) 48%, rgba(6, 21, 39, 0.15) 78%, rgba(6, 21, 39, 0.05) 100%),
    url('/assets/img/hero-abogados.jpg') center 30% / cover no-repeat;
  color: #fff;
  padding: 120px 0 170px;
  text-align: left;
}
.hero-grid { display: block; }
.hero-copy { max-width: 640px; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(227, 197, 101, 0.55);
  border-radius: 980px;
  padding: 8px 20px;
  margin: 0 0 1.4rem;
}
.hero-home h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero-home p.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #e6ebf3;
  max-width: 600px;
  margin: 0 0 2.2rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Practice cards overlapping hero (mockup style) ---------- */
.practice-overlap {
  position: relative;
  z-index: 5;
  margin-top: -92px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.practice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  text-decoration: none;
  padding: 20px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.35;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.practice-card:hover {
  border-color: var(--gold);
  background: var(--gold-tint);
  text-decoration: none;
  transform: translateY(-3px);
}
.practice-card-icon {
  font-size: 1.9rem;
  line-height: 1;
  filter: saturate(0.9);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  letter-spacing: 0.01em;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy-deep); box-shadow: 0 10px 28px rgba(201, 162, 39, 0.45); }
.btn-outline { border-color: rgba(255, 255, 255, 0.65); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.16); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-sm { padding: 11px 22px; font-size: 0.94rem; }

/* ---------- Trust badge strip ---------- */
.trust-strip {
  background: var(--navy-deep);
  border-top: 1px solid rgba(201, 162, 39, 0.35);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  padding: 26px 0;
}
.trust-strip.trust-light {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}
.trust-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-badges li { display: flex; gap: 14px; align-items: flex-start; }
.trust-icon {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: var(--gold-light);
  font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.trust-light .trust-icon {
  background: var(--gold-tint);
  border: 1px solid var(--gold);
  color: var(--gold-dark);
}
.trust-badges strong { display: block; color: #fff; font-size: 0.98rem; margin-bottom: 2px; }
.trust-badges span.sub { display: block; color: #aeb9c9; font-size: 0.85rem; line-height: 1.45; }
.trust-light .trust-badges strong { color: var(--navy); }
.trust-light .trust-badges span.sub { color: var(--muted); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.grid .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 0.4rem; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { color: var(--gold-dark); }
.card .tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }

.practice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  font-size: 1.6rem;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(10, 31, 61, 0.25);
}

/* ---------- Community section ---------- */
.community-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.community-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  width: 100%;
}
.community-img { position: relative; }
.community-img::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}
.community-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0 6px;
}
.community-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.cf-icon {
  flex: 0 0 38px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold-tint);
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.community-feature strong { color: var(--navy); font-size: 0.88rem; line-height: 1.3; }
.side-card {
  margin-top: 26px;
  background: var(--navy);
  border: 1px solid var(--navy-deep);
  border-top: 4px solid var(--gold);
  color: #dbe3ee;
}
.side-card h3 { color: #fff; }
.side-card p { color: #b9c4d6; }
.side-card .tag { color: var(--gold-light); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; margin-top: 10px; }
.step {
  position: relative;
  padding-left: 72px;
  margin-bottom: 30px;
}
.step:last-child { margin-bottom: 0; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: bold;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 0.3rem; }
.step p { color: var(--muted); margin-bottom: 0; }

/* ---------- Firm listing cards ---------- */
.firm-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.firm-avatar {
  flex: 0 0 64px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold);
}
.firm-meta { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 980px;
  margin-right: 6px;
  margin-bottom: 8px;
}
.badge-featured { background: var(--gold-tint); color: #8a6d14; border: 1px solid var(--gold); }
.badge-sample { background: #eef1f5; color: var(--muted); border: 1px dashed #9aa5b1; }

/* ---------- Pricing ---------- */
.pricing { align-items: stretch; }
.price-card { display: flex; flex-direction: column; text-align: center; }
.price-card.highlight {
  border: 2px solid var(--gold);
  border-top-width: 4px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.price-card .price {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--navy);
  margin: 10px 0 2px;
  line-height: 1;
}
.price-card .per { color: var(--muted); font-size: 0.95rem; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 24px; text-align: left; }
.price-card li {
  padding: 9px 0 9px 30px;
  position: relative;
  border-bottom: 1px solid #f0ece1;
  color: #3c4653;
  font-size: 0.97rem;
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 6px;
  color: var(--gold-dark);
  font-weight: 700;
}
.price-card .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(6, 21, 39, 0.05);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 22px;
  font-size: 1.06rem;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-q:hover { color: var(--gold-dark); }
.faq-q::after { content: "+"; font-size: 1.5rem; color: var(--gold-dark); flex: 0 0 auto; font-weight: 400; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-item.open { border-color: var(--gold); }
.faq-a { display: none; padding: 0 22px 20px; color: #39434e; }
.faq-item.open .faq-a { display: block; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-card { max-width: 640px; margin: 0 auto; }
label { display: block; font-weight: 600; margin: 16px 0 7px; color: var(--navy); font-size: 0.98rem; }
input[type="text"], input[type="tel"], input[type="email"], textarea, select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #c9cfd6;
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-sans);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
}
.form-note { font-size: 0.88rem; color: var(--muted); margin-top: 16px; line-height: 1.6; }
.form-success {
  display: none;
  background: #eef7ee;
  border: 1px solid #9cc79c;
  color: #1e5b1e;
  padding: 16px 20px;
  border-radius: 10px;
  margin-top: 18px;
}

/* ---------- Disclaimer / compliance ---------- */
.disclaimer {
  background: var(--gold-tint);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  font-size: 0.93rem;
  line-height: 1.65;
  color: #4a4436;
  margin: 32px 0;
}
.disclaimer strong { color: var(--navy); }
.compliance-strip {
  background: var(--navy-deep);
  color: #cfd8e3;
  font-size: 0.9rem;
  text-align: center;
  padding: 13px 20px;
  line-height: 1.5;
}
.compliance-strip strong { color: var(--gold-light); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-dark); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #c7d0dc;
  padding: 60px 0 26px;
  font-size: 0.93rem;
  border-top: 3px solid var(--gold);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.site-footer a { color: #c7d0dc; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
  font-size: 0.84rem;
  line-height: 1.65;
  color: #93a0b1;
}
.footer-legal strong { color: var(--gold-light); }
.footer-brand { font-family: var(--font-serif); font-size: 1.3rem; color: #fff; margin-bottom: 10px; }
.footer-brand span { color: var(--gold-light); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background:
    linear-gradient(120deg, rgba(6, 21, 39, 0.96) 0%, rgba(10, 31, 61, 0.88) 60%, rgba(18, 49, 94, 0.82) 100%),
    url('/assets/img/skyline-hero.jpg') center 70% / cover no-repeat;
  color: #fff;
  padding: 84px 0 68px;
  border-bottom: 3px solid var(--gold);
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3rem); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4); }
.page-hero p { color: #d7e0ec; font-size: 1.14rem; line-height: 1.6; max-width: 760px; }
.page-hero .crumbs, .page-hero .crumbs a { color: #9fb0c4; }
.page-hero .crumbs a:hover { color: var(--gold-light); }

/* ---------- TOC ---------- */
.toc {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 8px 0 40px;
  box-shadow: 0 4px 16px rgba(6, 21, 39, 0.05);
}
.toc strong { display: block; margin-bottom: 10px; color: var(--navy); font-family: var(--font-serif); font-size: 1.1rem; }
.toc ul { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--navy); }
.toc a:hover { color: var(--gold-dark); }

/* ---------- Section headings accent ---------- */
section h2:first-child { position: relative; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .practice-overlap { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .trust-badges { grid-template-columns: 1fr 1fr; }
  .community-grid { grid-template-columns: 1fr; gap: 36px; }
  .community-img::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .hero-home { padding: 72px 0 130px; text-align: left; }
  .page-hero { padding: 60px 0 48px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .trust-badges { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .nav-toggle { display: block; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 18px 36px rgba(6, 21, 39, 0.18);
    gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 2px; align-items: stretch; width: 100%; }
  .main-nav > ul > li > a { display: block; padding: 12px 12px; }
  .main-nav .dropdown {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    padding: 0 0 0 14px;
    border-radius: 0;
  }
  .header-cta { margin: 8px 0 0; text-align: center; }
  .site-header { position: sticky; }
  .step { padding-left: 64px; }
  .practice-overlap { grid-template-columns: repeat(2, 1fr); margin-top: -70px; padding: 14px; }
  .community-features { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
