/* =============================================================================
   COUNSEL PAGES — PER-FIRM THEME FILE
   -----------------------------------------------------------------------------
   THEME FOR: LRJ Abogados-Solicitors (lrjabogados.com)
   PALETTE:   LRJ's real palette — sampled from elementor kit CSS
              brand #111111 (near-black) · darker #050505 · pale #F5F5F5
   ACCENT:    Ocean blue #5B94D8 — the secondary from LRJ's Elementor kit
              Used for CTAs, highlights, underlines and stripe accents.
   FONTS:     Montserrat (LRJ's actual typeface) + Inter (body UI)
   HERO:      Archetype A "Column" — text left, preview card right
   LOGO NOTE: LogoNegativo is a light/reversed logo; filter:brightness(0)
              renders it as solid black on the white masthead.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ---- 1. BRAND COLOURS ------------------------------------------------- */
  --brand:        #111111;
  --brand-700:    #050505;
  --brand-300:    #2e2e2e;
  --brand-100:    #F5F5F5;

  --accent:       #5B94D8;
  --accent-700:   #3a73b5;
  --accent-100:   #E8F1FB;

  /* ---- 2. NEUTRALS ----------------------------------------------------- */
  --bg:           #ffffff;
  --bg-alt:       #F8F8F8;
  --surface:      #ffffff;
  --ink:          #1a1a1a;
  --ink-soft:     #5a5a5a;
  --line:         #E0E0E0;
  --on-brand:     #F5F5F5;
  --on-brand-soft:#AAAAAA;

  /* ---- 3. TYPOGRAPHY --------------------------------------------------- */
  --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --h1: clamp(2.4rem, 5vw, 4rem);
  --h2: clamp(1.85rem, 3.2vw, 2.7rem);
  --h3: clamp(1.2rem, 1.8vw, 1.55rem);

  /* ---- 4. SHAPE & DEPTH ------------------------------------------------ */
  --radius:      10px;
  --radius-sm:   6px;
  --radius-pill: 999px;
  --shadow-sm:  0 1px 3px rgba(17,17,17,.06), 0 2px 6px rgba(17,17,17,.04);
  --shadow-md:  0 6px 20px rgba(17,17,17,.09), 0 2px 6px rgba(17,17,17,.05);
  --shadow-lg:  0 24px 60px rgba(17,17,17,.15);

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

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

/* =====================================================================
   MOBILE OVERFLOW GUARD — same fix as welex base
   ===================================================================== */
html, body { overflow-x: clip; max-width: 100%; }

@media (max-width: 960px) {
  .nav__links {
    transform: none;
    right: calc(0px - min(320px, 82vw));
    transition: right .3s ease, visibility 0s linear .3s;
    visibility: hidden;
  }
  .nav__links.open {
    right: 0;
    visibility: visible;
    transition: right .3s ease;
  }
}

/* =====================================================================
   MASTHEAD — dark brand header; logo is "Negativo" (light), so invert
   ===================================================================== */
.site-header {
  background: var(--brand);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header.is-stuck { box-shadow: 0 4px 24px rgba(0,0,0,.4); }
.site-header .nav { padding-block: .85rem; }

/* Dark header — make nav text white */
.brand { color: var(--on-brand); }
.brand:hover { color: var(--on-brand); }
.brand small { color: var(--accent); }

/* The "Negativo" logo is white/light — render it as a pure black mask
   on the white mock-up, but on our dark header it would show as-is.
   Since header is now dark (#111), the white logo shows perfectly.
   We explicitly unset any inherited filter. */
.brand__logo {
  border-radius: 4px;
  border: none;
  background: transparent;
  filter: none;
  /* Make image wider to accommodate the 480:115 aspect ratio */
  width: auto;
  height: 44px;
  max-width: 160px;
  object-fit: contain;
}

.nav__links a { color: rgba(255,255,255,.82); }
.nav__links a:hover { color: #fff; }
.nav__links a::after { background: var(--accent); }
.nav__toggle { color: rgba(255,255,255,.9); }
.lang { border-color: rgba(255,255,255,.18); }
.lang a { color: rgba(255,255,255,.6); }
.lang a:hover { background: rgba(255,255,255,.1); color: #fff; }
.lang a[aria-current="true"] { background: var(--accent); color: #fff; }
.lang__soon { opacity: .35; }

/* Mobile drawer — keep it dark to match header */
@media (max-width: 960px) {
  .nav__links {
    background: var(--brand);
    box-shadow: 8px 0 40px rgba(0,0,0,.5);
    border-left: 1px solid rgba(255,255,255,.08);
  }
  .nav__links a {
    color: rgba(255,255,255,.82);
    border-bottom-color: rgba(255,255,255,.08);
  }
  .nav__links a:hover { color: #fff; }
}

/* =====================================================================
   HERO — "Column A" with light background; text left, card right
   ===================================================================== */
.hero { padding-top: 0; }
.hero__bg {
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(91,148,216,.08) 0%, rgba(91,148,216,0) 60%),
    radial-gradient(600px 400px at 100% 100%, rgba(17,17,17,.04) 0%, rgba(17,17,17,0) 60%),
    linear-gradient(180deg, #ffffff 0%, #F8F8F8 60%, #F2F2F2 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero__inner .bilingual-stripe { grid-column: 1 / -1; margin-top: 1rem; }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

.hero__text .eyebrow {
  color: var(--accent-700);
  letter-spacing: 0.16em;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}
.hero h1 {
  color: var(--brand);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: .9rem 0 1.1rem;
  max-width: 18ch;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}
.hero .lede {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  margin: 0 0 1.6rem;
  max-width: 48ch;
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: .9rem;
  margin: 0 0 1.6rem;
}
.hero__trust {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  list-style: none; padding: 0; margin: 0;
  color: var(--ink-soft); font-size: .92rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.hero__trust li { display: inline-flex; align-items: center; gap: .5rem; }
.hero__trust svg { width: 1.05em; height: 1.05em; color: var(--accent); flex: 0 0 auto; }

/* Outline button (phone CTA in hero) */
.btn--outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand-300);
}
.btn--outline:hover {
  background: var(--brand-100);
  color: var(--brand);
}
.btn--lg { padding: .9rem 1.4rem; font-size: 1.02rem; }

/* ----- Preview card (right column) ----- */
.hero__preview {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 60px -28px rgba(17,17,17,.20), 0 2px 8px rgba(17,17,17,.06);
}
.hero__preview-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.hero__preview-bar .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #D0D0D0;
}
.hero__preview-bar .url {
  margin-left: 10px; flex: 1;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px; color: var(--ink-soft);
}
.hero__preview-body { padding: 1.6rem 1.6rem 1.4rem; }
.hero__preview-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 .6rem;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: var(--accent-700);
}
.hero__preview-eyebrow .bar {
  display: inline-block; width: 22px; height: 1px; background: var(--accent);
}
.hero__preview-stars {
  display: flex; align-items: center; gap: .65rem;
  color: var(--accent);
  font-size: 1.15rem;
  letter-spacing: 2px;
}
.hero__preview-stars span {
  font-family: var(--font-head); font-weight: 700; color: var(--brand);
  font-size: 1.75rem; letter-spacing: -0.01em;
}
.hero__preview-count {
  margin: .4rem 0 0; font-size: .88rem; color: var(--ink-soft);
}
.hero__preview-rule {
  border: 0; border-top: 1px solid var(--line);
  margin: 1.1rem 0 1rem;
}
.hero__preview-quote {
  margin: 0;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
}
.hero__preview-cite {
  margin: .8rem 0 0;
  font-size: .82rem;
  color: var(--ink-soft);
  font-family: ui-monospace, Menlo, monospace;
  letter-spacing: 0.02em;
}

/* =====================================================================
   BILINGUAL STRIPE — EN-only with SAME LAWYER / YOUR LANGUAGE labels
   ===================================================================== */
.bilingual-stripe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 22px 24px;
  background: var(--accent-100);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  margin-top: 28px;
  font-family: var(--font-body);
}
.bilingual-stripe > div { font-size: .98rem; line-height: 1.55; color: var(--ink); }
.bilingual-stripe .lang-label {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-700);
  font-weight: 700;
  margin-bottom: 6px;
}
@media (max-width: 720px) {
  .bilingual-stripe { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
}

/* =====================================================================
   TRUST BAND
   ===================================================================== */
.trustband { background: var(--brand-700); }
.trustband__inner {
  display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem;
  padding: 1.1rem clamp(1.1rem, 4vw, 2.5rem);
  justify-content: center;
  font-size: .92rem;
}
.trustband__inner span { display: inline-flex; align-items: center; gap: .55rem; }
.trustband__inner svg { width: 1.05em; height: 1.05em; color: var(--accent); flex: 0 0 auto; }
.trustband__inner strong { color: #ffffff; font-weight: 600; }

/* =====================================================================
   TYPOGRAPHY TWEAKS
   ===================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.eyebrow { color: var(--accent-700); letter-spacing: 0.14em; }

/* Cards — clean with accent border on hover */
.card { border-radius: var(--radius-sm); }
.card:hover { border-color: var(--accent); transform: none; box-shadow: var(--shadow-sm); }
.card h3 { font-family: var(--font-head); font-size: 1.1rem; }
.card__icon {
  background: var(--accent-100);
  color: var(--accent-700);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  margin-bottom: 12px;
}

/* Section heading style */
.section-head { max-width: 62ch; }

/* =====================================================================
   LANGUAGE SWITCHER RAIL
   ===================================================================== */
.lang { display: inline-flex; align-items: center; gap: 4px; }
.lang a, .lang__soon {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 28px; padding: 0 8px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.lang__soon { opacity: .35; cursor: not-allowed; color: rgba(255,255,255,.6); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--brand);
  color: var(--on-brand-soft);
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}
.site-footer .footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
}
.site-footer .footer__brand { justify-self: center; }
.site-footer .footer__cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 1.6rem;
  font-size: .9rem;
}
.site-footer .footer__cols a { color: rgba(255,255,255,.6); }
.site-footer .footer__cols a:hover { color: #fff; text-decoration: none; }

/* Preview-bar styling on dark brand bg */
.previewbar { background: var(--brand-700); border-bottom: 1px solid rgba(255,255,255,.07); }
.previewbar__seal { color: var(--accent); }
.previewbar__cta { color: var(--accent); }

/* =====================================================================
   CONTACT section link overrides for dark bg
   ===================================================================== */
.section--brand .contact__info a { color: #fff; }
