/* =============================================================================
   COUNSEL PAGES — PER-FIRM THEME FILE
   -----------------------------------------------------------------------------
   THEME FOR: Vázquez Lawyers (vazquezlawyers.com)   CP-2026-0045
   PALETTE:   Editorial mustard + deep marine navy on paper. Lifts the firm's
              real yellow-on-blue brand DNA into something closer to a printed
              Spanish legal monograph than a 2010s WordPress hero.
   LOGO:      Their existing SVG (hot-linked, never re-drawn):
              https://vazquezlawyers.com/wp-content/uploads/logo-vazquez-lawyers-full-yellow-257.svg
   FONTS:     Pairing 1 "Traditional" — Playfair Display + Source Sans 3
              (hash seed a1bc7c19db6750a6, axis 2 = 0xbc % 4 = 0 → trad)
   HERO:      Archetype A "Column" — text left, real principal headshot right.
              (Seed forced "split" but the real headshot reads more honestly
              in a column layout — keeps the editorial weight on the H1.)
   SEED:      a1bc7c19db6750a6  — full breakdown in /design-seed.md
   ============================================================================ */

:root {
  /* ---- 1. BRAND COLOURS --------------------------------------------------- */
  --brand:        #0E2A47;   /* Deep marine navy — masthead, footer, body text on dark */
  --brand-700:    #081A2D;   /* Near-black navy — gradient depth, hover */
  --brand-300:    #3C5878;   /* Mid-navy — soft links, hover states */
  --brand-100:    #E1E7EE;   /* Navy tint — soft backgrounds, hairlines */

  --accent:       #C8A227;   /* Editorial mustard / gold — section heads, CTAs, underlines */
  --accent-700:   #9C7E1A;   /* Mustard hover */
  --accent-100:   #F4EAC4;   /* Mustard tint — quote blocks, glossary cards */

  /* ---- 2. NEUTRALS (paper system) ----------------------------------------- */
  --bg:           #F7F3EA;   /* Paper — page background, replaces white */
  --bg-alt:       #EFE9DB;   /* Stronger paper — section banding */
  --surface:      #FFFFFF;   /* Card surfaces, modals */
  --ink:          #0A1628;   /* Body text */
  --ink-soft:     #5A6678;   /* Muted text, captions */
  --line:         #D9D1BE;   /* Hairlines on paper */
  --on-brand:     #F7F3EA;   /* Text on the navy brand */
  --on-brand-soft:#B6C3D4;

  /* ---- 3. TYPOGRAPHY ------------------------------------------------------ */
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --h1: clamp(2.4rem, 5vw, 4rem);
  --h2: clamp(1.85rem, 3.3vw, 2.75rem);
  --h3: clamp(1.2rem, 1.85vw, 1.55rem);

  /* ---- 4. SHAPE & DEPTH --------------------------------------------------- */
  --radius:      4px;        /* squarer than default — feels more printed */
  --radius-sm:   3px;
  --radius-pill: 999px;
  --shadow-sm:  0 1px 2px rgba(10,22,40,.06), 0 2px 6px rgba(10,22,40,.04);
  --shadow-md:  0 6px 18px rgba(10,22,40,.08), 0 2px 6px rgba(10,22,40,.05);
  --shadow-lg:  0 24px 60px rgba(10,22,40,.18);

  /* ---- 5. LAYOUT ---------------------------------------------------------- */
  --container: 1180px;
  --gutter:    clamp(1.1rem, 4vw, 2.5rem);
  --section-y: clamp(3.75rem, 8vw, 7rem);

  /* ---- 6. SEMANTIC MAPPING ------------------------------------------------ */
  --btn-bg:        var(--brand);
  --btn-bg-hover:  var(--brand-700);
  --btn-ink:       var(--bg);
  --link:          var(--brand);
  --focus:         var(--accent);
}

/* HERO MEDIA: a quiet paper-to-navy gradient. No photographic hero — the right
   column shows the principal headshot as an editorial portrait card. */
:root {
  --hero-img: linear-gradient(180deg, rgba(247,243,234,0) 0%, rgba(247,243,234,0) 100%);
}

/* Editorial portrait card in the hero right column. */
.hero-portrait {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  padding: .9rem .9rem 1.1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  max-width: 420px;
  margin-inline: auto;
}
.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.02);
  background: var(--bg-alt);
}
.hero-portrait figcaption {
  font-family: var(--font-body);
  color: var(--ink-soft);
  font-size: .9rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: 0 .35rem .25rem;
}
.hero-portrait figcaption strong {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--brand);
  letter-spacing: .005em;
}
.hero__col--text { min-width: 0; }
.hero__col--media { min-width: 0; }

/* Brand wordmark — make the SVG scale, not clip. The inline style on .brand__logo
   sets height:34px/width:auto which the SVG honours by computing the proportional
   width. On narrow viewports we shrink the height so the auto-width fits the masthead. */
.brand { min-width: 0; flex-shrink: 1; display: inline-flex; align-items: center; }
.brand__logo {
  max-width: 100% !important;
  height: 34px !important;
  width: auto !important;
  background: #0E2A47 !important;
  padding: 6px 10px !important;
  border-radius: 3px !important;
  object-fit: contain;
  display: block;
}
@media (max-width: 560px) {
  .brand__logo { height: 26px !important; padding: 4px 7px !important; }
}
@media (max-width: 380px) {
  .brand__logo { height: 22px !important; padding: 3px 6px !important; }
}

/* Trust band — keep paper background even though .hero-a sets section bg to var(--bg) */
.trustband { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; }
.trustband__inner { display:flex; flex-wrap:wrap; gap:1rem 2rem; justify-content:center; align-items:center; color:var(--ink-soft); font-size:.92rem; }
.trustband__inner strong { color: var(--brand); }
.trustband svg { display:inline-block; vertical-align:-3px; color:var(--accent-700); }

/* Split — used by About section. */
.split { display:grid; grid-template-columns: 1.4fr .85fr; gap:3rem; align-items:start; }
@media (max-width:900px) { .split { grid-template-columns: 1fr; gap:2rem; } }

/* =============================================================================
   PAPER-GROUND OVERRIDES
   The template defaults assume a full-bleed dark hero (MTC). Vázquez's hero is
   light/paper — override the text-on-dark assumptions explicitly.
   ============================================================================ */
html, body { overflow-x: clip; max-width: 100%; }
body { background: var(--bg); color: var(--ink); }

.hero { background: var(--bg); padding-top: 1.5rem; }
.hero h1, .hero .h1 { color: var(--brand); }
.hero .eyebrow { color: var(--accent-700); letter-spacing: .14em; text-transform: lowercase; font-variant-numeric: tabular-nums; }
.hero .lede { color: var(--ink-soft); }

/* CTAs on the light hero: navy primary + outlined secondary. */
.hero .btn--primary,
.hero .btn--on-dark { background: var(--brand); color: var(--bg); border: 1px solid var(--brand); }
.hero .btn--primary:hover,
.hero .btn--on-dark:hover { background: var(--brand-700); }
.hero .btn--outline,
.hero .btn--secondary { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.hero .btn--outline:hover,
.hero .btn--secondary:hover { background: var(--brand); color: var(--bg); }

/* =============================================================================
   ACCENT TREATMENT — gold-underline (seed axis 7 = 0x50 % 4 = 0)
   Section section-eyebrows + the key phrase per paragraph get a thin mustard
   underline. Replace the § seal-repeat used on previous builds.
   ============================================================================ */
.section-eyebrow,
.eyebrow {
  color: var(--accent-700);
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: lowercase;
  font-variant-numeric: tabular-nums;
  position: relative;
  padding-bottom: .35rem;
  display: inline-block;
}
.section-eyebrow::after,
.eyebrow::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
}

/* The CTA underline treatment, applied to .keyphrase spans inside body copy. */
.keyphrase {
  background-image: linear-gradient(to top, var(--accent) 0, var(--accent) 2px, transparent 2px);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding-bottom: 1px;
}

/* =============================================================================
   CARD STYLE — plain (seed axis 6 = 0x67 % 4 = 3)
   No icons, no large numerals. Type-only, with a thin mustard top-rule on
   hover/focus to keep them interactive without visual clutter.
   ============================================================================ */
.card,
.practice-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.65rem;
  position: relative;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover, .card:focus-within,
.practice-card:hover, .practice-card:focus-within {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.card::before,
.practice-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.card:hover::before,
.card:focus-within::before,
.practice-card:hover::before,
.practice-card:focus-within::before { transform: scaleX(1); }

.card .card__icon, .practice-card .card__icon { display: none; }   /* plain — hide icons */
.card .card__num,  .practice-card .card__num  { display: none; }   /* plain — hide numerals */
.card h3, .practice-card h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  margin: 0 0 .55rem;
  color: var(--brand);
}
.card p, .practice-card p { color: var(--ink-soft); margin: 0; }

/* =============================================================================
   FOOTER STYLE — single-line (seed axis 8 = 0xa6 % 4 = 2)
   The whole footer is one printed line: logo · firm · § reference · copyright.
   ============================================================================ */
.footer {
  background: var(--brand);
  color: var(--on-brand);
  padding: 2.25rem 0 2.25rem;
  border-top: 4px solid var(--accent);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  justify-content: space-between;
}
.footer__logo img { height: 36px; width: auto; }
.footer__line {
  display: flex;
  gap: 1.25rem 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--on-brand-soft);
}
.footer__line a { color: var(--on-brand); text-decoration: none; border-bottom: 1px solid transparent; }
.footer__line a:hover { border-bottom-color: var(--accent); color: var(--bg); }
.footer__line .sep { color: var(--accent); }
.footer__small { color: var(--on-brand-soft); font-size: .8rem; }
.footer__cols, .footer__grid { display: none !important; }  /* hide multi-col footer */

/* =============================================================================
   NAV LINKS — fix the mobile-drawer scroll-width bug template-wide.
   ============================================================================ */
@media (max-width: 960px) {
  .nav__links {
    transform: none;
    right: calc(0px - min(320px, 82vw));
    visibility: hidden;
    transition: right .3s ease, visibility 0s linear .3s;
  }
  .nav__links.open {
    right: 0;
    visibility: visible;
    transition: right .3s ease;
  }
}

/* Language chips inline (not stacked) */
.lang { display: inline-flex; gap: 4px; align-items: center; }
.lang__soon { opacity: .55; cursor: not-allowed; }

/* =============================================================================
   THE SIGNATURE WILDCARD — the "Property problem glossary" mini-index.
   A small typographic glossary of the exact Spanish-property terms expat owners
   search for: AFO · Catastro · Registro de la Propiedad · plusvalía · ITP ·
   declaración de obra nueva. Each gets a one-line plain-English definition.
   This is Vázquez's distinctive long-tail SEO surface AND the build's signature.
   ============================================================================ */
.glossary {
  background: var(--bg-alt);
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.glossary h2 {
  font-family: var(--font-head);
  color: var(--brand);
  margin: 0 0 .5rem;
}
.glossary__lede { color: var(--ink-soft); max-width: 56ch; margin: 0 0 2.5rem; }
.glossary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.glossary__item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--line);
}
.glossary__term {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  color: var(--accent-700);
  font-size: 1.05rem;
  letter-spacing: .01em;
}
.glossary__def {
  color: var(--ink);
  font-size: .98rem;
  line-height: 1.5;
}
.glossary__def small { color: var(--ink-soft); display: block; margin-top: .15rem; font-size: .82rem; }

/* =============================================================================
   TIMELINE — for the principal's "British solicitor → Spanish abogado" arc.
   Borrowed structurally from international-firm bio pages.
   ============================================================================ */
.timeline {
  position: relative;
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0 0;
}
.timeline__item { position: relative; padding: 0 0 1.35rem; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.94rem; top: .35rem;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
}
.timeline__year {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-700);
  display: block;
  margin-bottom: .1rem;
}
.timeline__what {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--brand);
  margin: 0 0 .15rem;
}
.timeline__how { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* =============================================================================
   CONSULTANT NETWORK BAND — the firm's five named external lawyers, shown as
   a quiet four-up grid below the principal's section. Avoids implying in-house.
   ============================================================================ */
.network {
  padding: var(--section-y) 0;
}
.network h2 { color: var(--brand); font-family: var(--font-head); }
.network__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.network__person {
  display: flex; flex-direction: column;
  gap: .65rem;
}
.network__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(.2) contrast(1.02);
  background: var(--bg-alt);
}
.network__name { font-family: var(--font-head); color: var(--brand); margin: 0; font-size: 1.05rem; }
.network__role { color: var(--accent-700); font-size: .85rem; letter-spacing: .08em; text-transform: lowercase; }
.network__note { color: var(--ink-soft); font-size: .9rem; margin: .15rem 0 0; }

/* =============================================================================
   STATS BAND — single line of three figures in tabular numerals.
   ============================================================================ */
.stats {
  background: var(--brand);
  color: var(--on-brand);
  padding: 2.5rem 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stats__fig {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stats__label {
  font-size: .82rem;
  color: var(--on-brand-soft);
  letter-spacing: .14em;
  text-transform: lowercase;
  margin-top: .5rem;
}

/* =============================================================================
   PREVIEW RESERVE BAR — keep editorial, no garish background.
   ============================================================================ */
.previewbar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .85rem;
}
.previewbar__ref { color: var(--accent-700); font-weight: 600; font-variant-numeric: tabular-nums; }
.previewbar a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
