/* ============================================================
   AbogadoMedellin.co — Red Legal Colombia
   Design system: charcoal #1a1714 / brass #c9a84c / cream
   Instrument Serif (display) · Instrument Sans (body)
   ============================================================ */

:root {
  --charcoal: #1a1714;
  --charcoal-2: #211d19;
  --charcoal-3: #2a251f;
  --brass: #c9a84c;
  --brass-soft: #d9bc6b;
  --brass-dim: rgba(201, 168, 76, 0.35);
  --cream: #f2ecdf;
  --cream-dim: rgba(242, 236, 223, 0.72);
  --cream-faint: rgba(242, 236, 223, 0.45);
  --line: rgba(201, 168, 76, 0.18);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --maxw: 1160px;
  --radius: 10px;
}

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

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

body {
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--brass-soft); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: 0.2px; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid var(--brass-dim);
  border-radius: 3px;
  padding: 7px 14px;
  margin-bottom: 22px;
}

.lead { color: var(--cream-dim); font-size: 1.12rem; max-width: 640px; }

section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head p { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 15px 32px;
  border-radius: 4px;
  border: 1px solid var(--brass);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.btn-solid { background: var(--brass); color: var(--charcoal); font-weight: 600; }
.btn-solid:hover { background: var(--brass-soft); color: var(--charcoal); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brass); }
.btn-ghost:hover { background: rgba(201, 168, 76, 0.08); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(26, 23, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.logo svg { flex: 0 0 auto; }
.logo-text { font-family: var(--serif); font-size: 1.32rem; letter-spacing: 0.3px; }
.logo-text em { font-style: normal; color: var(--brass); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { color: var(--cream-dim); font-size: 0.94rem; }
.nav-links a:hover { color: var(--brass); }
.nav-links .btn { padding: 11px 22px; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 8px; width: 26px; height: 2px;
  background: var(--brass); transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -8px; left: 0; }
.nav-toggle span::after { top: 8px; left: 0; }

/* ---------- Hero (dual crossfade) ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; padding: 120px 0; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 2.4s ease-in-out;
}
.hero-bg img.active { opacity: 1; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(26, 23, 20, 0.94) 22%, rgba(26, 23, 20, 0.62) 58%, rgba(26, 23, 20, 0.38) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 680px; }
.hero h1 em { font-style: italic; color: var(--brass); }
.hero .lead { margin: 24px 0 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Stat bar ---------- */
.statbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--charcoal-2); padding: 0; }
.statbar-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat b { display: block; font-family: var(--serif); font-size: 1.55rem; color: var(--brass); font-weight: 400; margin-bottom: 4px; }
.stat span { font-size: 0.85rem; color: var(--cream-faint); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Trust badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px; font-size: 0.9rem; color: var(--cream-dim);
  background: var(--charcoal-2);
}
.badge svg { flex: 0 0 auto; }

/* ---------- Practice cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--charcoal-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--brass-dim); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3 { color: var(--brass-soft); }
.card-body p { color: var(--cream-dim); font-size: 0.98rem; flex: 1; }
.card-link { font-size: 0.92rem; letter-spacing: 0.05em; }
.card-link::after { content: " →"; }

.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 26px; }
.mini {
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color 0.3s, background 0.3s;
}
.mini:hover { border-color: var(--brass-dim); background: var(--charcoal-2); }
.mini h3 { font-size: 1.15rem; color: var(--brass-soft); margin-bottom: 10px; }
.mini p { font-size: 0.94rem; color: var(--cream-dim); }

/* ---------- Process ---------- */
.process { background: var(--charcoal-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 18px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 2.6rem; color: var(--brass-dim);
  display: block; margin-bottom: 10px; line-height: 1;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; color: var(--cream); }
.step p { font-size: 0.93rem; color: var(--cream-dim); }

/* ---------- City / coverage ---------- */
.zones { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 48px; }
.zone {
  border: 1px solid var(--line); border-radius: 4px; padding: 9px 18px;
  font-size: 0.9rem; color: var(--cream-dim); background: var(--charcoal-2);
}
.cities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.city {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 8; display: flex; align-items: flex-end;
  border: 1px solid var(--line); transition: border-color 0.3s;
}
.city:hover { border-color: var(--brass-dim); }
.city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.city::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,23,20,0) 30%, rgba(26,23,20,0.9) 100%);
}
.city-label { position: relative; z-index: 1; padding: 26px; }
.city-label h3 { color: var(--cream); }
.city-label span { font-size: 0.88rem; color: var(--brass); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left; cursor: pointer;
  font-family: var(--serif); font-size: 1.25rem; color: var(--cream);
  padding: 24px 46px 24px 0; position: relative; line-height: 1.35;
}
.faq-q::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--brass); font-family: var(--sans); font-size: 1.5rem; transition: transform 0.3s;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a p { color: var(--cream-dim); padding: 0 0 26px; max-width: 700px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--charcoal-3), var(--charcoal-2));
  border-top: 1px solid var(--brass-dim); border-bottom: 1px solid var(--brass-dim);
  text-align: center;
}
.cta-band h2 em { font-style: italic; color: var(--brass); }
.cta-band p { margin: 18px auto 34px; max-width: 560px; color: var(--cream-dim); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cream-faint); margin-bottom: 8px; }
input, select, textarea {
  width: 100%; background: var(--charcoal-2); border: 1px solid var(--line);
  border-radius: 4px; color: var(--cream); font-family: var(--sans);
  font-size: 1rem; padding: 14px 16px; transition: border-color 0.25s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brass); outline: none; }
textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--cream-faint); margin-top: 14px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--charcoal-2); padding: 64px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 46px; }
.foot-grid h4 { font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; font-weight: 600; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid a { color: var(--cream-dim); font-size: 0.93rem; }
.foot-grid a:hover { color: var(--brass); }
.foot-about p { color: var(--cream-dim); font-size: 0.93rem; margin-top: 14px; max-width: 300px; }
.foot-legal { border-top: 1px solid var(--line); padding-top: 26px; font-size: 0.82rem; color: var(--cream-faint); }
.foot-legal p { margin-bottom: 8px; max-width: 900px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--brass); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: transform 0.25s, background 0.25s;
}
.wa-float:hover { transform: translateY(-3px); background: var(--brass-soft); }
.wa-float svg { width: 30px; height: 30px; fill: var(--charcoal); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 110px 0 70px; border-bottom: 1px solid var(--line); background: var(--charcoal-2); }
.page-hero .lead { margin-top: 18px; }
.prose { max-width: 780px; }
.prose h2 { margin: 44px 0 16px; color: var(--brass-soft); font-size: 1.7rem; }
.prose p { margin-bottom: 18px; color: var(--cream-dim); }
.prose ul { margin: 0 0 18px 22px; color: var(--cream-dim); }
.prose li { margin-bottom: 8px; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; align-items: center; text-align: center; }
.notfound .big { font-family: var(--serif); font-size: clamp(5rem, 14vw, 9rem); color: var(--brass-dim); line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .cities, .form-grid { grid-template-columns: 1fr; }
  .minis, .steps { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .statbar-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: none; }
}
@media (max-width: 700px) {
  section { padding: 64px 0; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: flex-start;
    background: var(--charcoal-2); border-bottom: 1px solid var(--line);
    padding: 26px 24px 32px; gap: 20px; transform: translateY(-130%);
    transition: transform 0.35s ease; z-index: 55;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-toggle.open span { background: transparent; }
  .nav-toggle.open span::before { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span::after { transform: translateY(-8px) rotate(-45deg); }
  .minis, .steps { grid-template-columns: 1fr; }
  .hero { min-height: 74vh; padding: 90px 0; }
}
