/* =========================================================
   LexOfficium — Advocates & Consultants
   Shared stylesheet
   ========================================================= */

:root{
  --navy-950:#0c1730;
  --navy-900:#101f3d;
  --navy-800:#152a52;
  --navy-700:#1b3568;
  --navy-600:#234388;
  --navy-100:#e8ecf4;
  --navy-50:#f4f6fa;
  --gold-600:#2c4f8f;
  --gold-500:#3c6cb4;
  --gold-400:#5a86c9;
  --gold-300:#9db8e2;
  --gold-100:#eaf1fb;
  --ink:#1c2331;
  --grey-700:#4a5165;
  --grey-500:#767d8f;
  --grey-300:#c9cdd8;
  --grey-100:#eceef2;
  --white:#ffffff;
  --radius:2px;
  --maxw:1240px;
  --gutter:clamp(1.25rem, 4vw, 4rem);
  --ff-head:'Playfair Display', Georgia, 'Times New Roman', serif;
  --ff-body:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease:cubic-bezier(.4,0,.2,1);
  --header-h:74px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--ff-body);
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{
  font-family:var(--ff-head);
  color:var(--navy-900);
  line-height:1.15;
  margin:0 0 .6em;
  font-weight:700;
}
h1{ font-size:clamp(2.4rem,4.6vw,4rem); }
h2{ font-size:clamp(1.9rem,3.2vw,2.7rem); }
h3{ font-size:1.35rem; }
p{ margin:0 0 1em; color:var(--grey-700); }
.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding-left:var(--gutter);
  padding-right:var(--gutter);
}
section{ padding:clamp(3.5rem,7vw,7rem) 0; }
.section-tight{ padding:clamp(2rem,4vw,3.5rem) 0; }

/* ---------- Utility ---------- */
.overline{
  display:inline-flex;
  align-items:center;
  gap:.6em;
  font-family:var(--ff-body);
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:.78rem;
  color:var(--gold-600);
  margin-bottom:.9em;
}
.overline::before{
  content:"";
  width:28px; height:1px;
  background:var(--gold-500);
  display:inline-block;
}
.text-white{ color:var(--white) !important; }
.text-white p, .text-white h1, .text-white h2, .text-white h3{ color:var(--white); }
.muted{ color:var(--grey-500); }
.center{ text-align:center; }
.lede{ font-size:1.15rem; max-width:640px; }
.mx-auto{ margin-left:auto; margin-right:auto; }
.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap;
}
.skip-link{
  position:absolute; left:-999px; top:0; background:var(--navy-900); color:#fff;
  padding:.75em 1.25em; z-index:999;
}
.skip-link:focus{ left:1rem; top:1rem; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.75em;
  padding:.95em 1.6em;
  font-size:.82rem;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  border:1px solid currentColor;
  border-radius:var(--radius);
  transition:background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
  cursor:pointer;
  background:transparent;
  white-space:nowrap;
}
.btn svg{ width:14px; height:14px; transition:transform .25s var(--ease); flex-shrink:0; }
.btn:hover svg{ transform:translateX(4px); }
.btn-navy{ color:var(--navy-900); }
.btn-navy:hover{ background:var(--navy-900); color:#fff; }
.btn-gold{ color:var(--gold-600); }
.btn-gold:hover{ background:var(--gold-500); color:var(--navy-950); border-color:var(--gold-500); }
.btn-white{ color:#fff; }
.btn-white:hover{ background:#fff; color:var(--navy-900); }
.btn-solid{
  background:var(--gold-500); color:#fff; border-color:var(--gold-500);
}
.btn-solid:hover{ background:var(--navy-950); border-color:var(--navy-950); color:#fff; }

/* ---------- Header (persistent solid bar — keeps the real logo legible) ---------- */
.site-header{
  position:sticky; top:0; left:0; right:0; z-index:200;
  display:flex; align-items:center; justify-content:space-between;
  padding:.85rem var(--gutter);
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--grey-100);
  transition:box-shadow .3s var(--ease);
}
.site-header.is-dark-scrolled{ box-shadow:0 6px 24px -18px rgba(16,31,61,.35); }

.site-header.nav-open{
  background:var(--navy-950); border-color:transparent; box-shadow:none;
}
.site-header.nav-open .brand-word,
.site-header.nav-open .brand-sub,
.site-header.nav-open .header-tel{ color:#fff; }
.site-header.nav-open .brand-sub{ color:var(--gold-300); }
.site-header.nav-open .header-tel svg{ color:var(--gold-300); }
.site-header.nav-open .nav-toggle{ border-color:rgba(255,255,255,.35); }
.site-header.nav-open .nav-toggle span{ background:#fff; }
.site-header.nav-open .brand-logo{ filter:brightness(0) invert(1); }

.brand{ display:flex; align-items:center; gap:.7rem; }
.brand-logo{ height:40px; width:auto; flex-shrink:0; }
.brand-mark{ width:38px; height:38px; flex-shrink:0; color:var(--navy-900); }
.brand-text{ display:flex; flex-direction:column; line-height:1.05; }
.brand-word{
  font-family:var(--ff-head); font-style:italic; font-weight:700;
  font-size:1.5rem; color:var(--navy-900); letter-spacing:.01em;
}
.brand-sub{
  font-size:.6rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--gold-600); font-weight:600; margin-top:.15em;
}

.header-right{ display:flex; align-items:center; gap:1.6rem; }
.header-tel{
  display:flex; align-items:center; gap:.5em;
  font-size:.85rem; font-weight:600; color:var(--navy-900);
}
.header-tel svg{ width:16px; height:16px; color:var(--gold-500); }
.header-tel .hide-mobile{ }

.nav-toggle{
  display:flex; flex-direction:column; justify-content:center; gap:5px;
  width:42px; height:42px; border:1px solid var(--grey-300); border-radius:var(--radius);
  background:transparent; cursor:pointer; padding:0 10px;
}
.nav-toggle span{
  display:block; height:1.5px; width:100%; background:var(--navy-900); transition:all .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-6.5px) rotate(-45deg); }

/* ---------- Off-canvas nav ---------- */
.site-nav{
  position:fixed; inset:0; z-index:190;
  background:var(--navy-950);
  display:flex; flex-direction:column; align-items:center;
  overflow-y:auto; padding:6rem 1.5rem 2rem;
  opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear .4s;
}
.site-nav-inner{ margin:auto 0; width:100%; }
.site-nav.is-open{
  opacity:1; visibility:visible; transform:translateY(0);
  transition:opacity .4s var(--ease), transform .4s var(--ease);
}
.site-nav-inner{ text-align:center; }
.site-nav ul{ display:flex; flex-direction:column; gap:.4rem; }
.site-nav a{
  font-family:var(--ff-head); font-size:clamp(1.8rem,5vw,3rem);
  color:#fff; padding:.35em 0; display:inline-block;
  position:relative;
  transition:color .25s;
}
.site-nav a::after{
  content:""; position:absolute; left:50%; bottom:.28em; height:1px; width:0;
  background:var(--gold-500); transition:width .3s var(--ease), left .3s var(--ease);
}
.site-nav a:hover, .site-nav a.is-active{ color:var(--gold-300); }
.site-nav a:hover::after, .site-nav a.is-active::after{ width:60%; left:20%; }
.site-nav-meta{
  margin-top:3rem; display:flex; flex-direction:column; gap:.5rem;
  color:rgba(255,255,255,.6); font-size:.85rem;
}
.site-nav-meta a{ color:rgba(255,255,255,.85); }

/* ---------- Hero (split) ---------- */
.hero{
  position:relative;
  min-height:calc(100vh - var(--header-h));
  display:grid;
  grid-template-columns:1.05fr .95fr;
  background:var(--navy-950);
  overflow:hidden;
}
.hero-copy{
  display:flex; flex-direction:column; justify-content:center;
  padding:4.5rem var(--gutter) 4rem;
  position:relative; z-index:2;
}
.hero-copy h1{ color:#fff; }
.hero-copy p{ color:rgba(255,255,255,.72); }
.hero-cta{ display:flex; flex-wrap:wrap; gap:1rem; margin-top:1rem; }
.hero-art{
  position:relative;
  background:
    radial-gradient(circle at 30% 20%, rgba(60,108,180,.20), transparent 55%),
    linear-gradient(155deg, var(--navy-800), var(--navy-950) 70%);
  display:flex; align-items:center; justify-content:center;
  border-left:1px solid rgba(255,255,255,.06);
}
.hero-art svg{ width:62%; max-width:420px; opacity:.92; }
.hero-grid-lines{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size:64px 64px;
}
.hero-stats{
  position:relative; z-index:2;
  display:grid; grid-template-columns:repeat(4,1fr);
  border-top:1px solid rgba(255,255,255,.12);
}
.hero-stats div{
  padding:1.6rem var(--gutter);
  border-right:1px solid rgba(255,255,255,.12);
}
.hero-stats div:last-child{ border-right:none; }
.hero-stat-num{ font-family:var(--ff-head); font-size:1.9rem; color:var(--gold-400); }
.hero-stat-label{ font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.6); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero{
  background:var(--navy-950); color:#fff;
  padding:4.5rem var(--gutter) 4rem;
  position:relative; overflow:hidden;
}
.page-hero::before{
  content:""; position:absolute; inset:0;
  background-image:linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:56px 56px;
  mask-image:linear-gradient(to bottom, black, transparent 85%);
}
.page-hero-inner{ position:relative; z-index:1; max-width:760px; }
.breadcrumb{ font-size:.8rem; color:rgba(255,255,255,.55); margin-bottom:1.4rem; }
.breadcrumb a{ color:rgba(255,255,255,.8); }
.breadcrumb a:hover{ color:var(--gold-300); }

/* ---------- Sidebar layout (About / Services / Team / Contact) ---------- */
.split-layout{
  display:grid; grid-template-columns:340px 1fr;
  min-height:60vh;
}
.split-side{
  background:var(--navy-900);
  color:#fff;
  padding:5rem 2.75rem;
  position:sticky; top:var(--header-h); align-self:start;
  height:calc(100vh - var(--header-h));
  display:flex; flex-direction:column; justify-content:center;
}
.split-side h1{ color:#fff; font-size:clamp(2rem,3vw,2.6rem); }
.split-side p{ color:rgba(255,255,255,.7); }
.back-link{
  display:inline-flex; align-items:center; gap:.6em;
  margin-top:2.2rem; font-size:.85rem; font-weight:600;
  color:var(--gold-300);
}
.back-link svg{ width:14px; height:14px; }
.split-main{ padding:5rem var(--gutter) 5rem clamp(2rem,4vw,4rem); }
.split-main > * + *{ margin-top:2.6rem; }

/* ---------- Cards ---------- */
.grid{ display:grid; gap:1.4rem; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }

.card{
  border:1px solid var(--grey-100);
  padding:2rem 1.75rem;
  border-radius:var(--radius);
  transition:border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  background:#fff;
}
.card:hover{
  border-color:var(--gold-300);
  transform:translateY(-4px);
  box-shadow:0 18px 34px -22px rgba(16,31,61,.35);
}
.card .card-icon{ width:34px; height:34px; color:var(--gold-500); margin-bottom:1.1rem; }
.card h3{ font-size:1.15rem; margin-bottom:.5em; }
.card p{ font-size:.94rem; margin-bottom:0; }
.card-link{
  display:inline-flex; align-items:center; gap:.5em; margin-top:1rem;
  font-size:.78rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--navy-800);
}
.card-link svg{ width:12px; height:12px; }

.practice-card{
  border:1px solid var(--grey-100);
  padding:1.6rem 1.5rem;
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  transition:border-color .25s var(--ease), background .25s var(--ease);
}
.practice-card:hover{ border-color:var(--navy-800); background:var(--navy-50); }
.practice-card svg{ width:16px; height:16px; color:var(--gold-500); flex-shrink:0; }
.practice-card span{ font-weight:600; color:var(--navy-900); font-size:.98rem; }

/* ---------- Testimonials ---------- */
.testimonial{
  border-left:2px solid var(--gold-500);
  padding-left:1.6rem;
}
.testimonial p{ font-family:var(--ff-head); font-style:italic; font-size:1.2rem; color:var(--navy-900); }
.testimonial cite{ font-style:normal; font-size:.82rem; color:var(--grey-500); letter-spacing:.04em; text-transform:uppercase; }

/* ---------- Team ---------- */
.team-card{ text-align:left; }
.team-photo{
  aspect-ratio:4/5; background:linear-gradient(155deg,var(--navy-100),var(--navy-50));
  border:1px solid var(--grey-100);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:1.1rem; position:relative; overflow:hidden;
}
.team-photo svg{ width:38%; color:var(--navy-300,#a9b6d6); }
.team-name{ font-family:var(--ff-head); font-size:1.15rem; margin-bottom:.15em; color:var(--navy-900); }
.team-role{ font-size:.8rem; letter-spacing:.06em; text-transform:uppercase; color:var(--gold-600); font-weight:600; margin-bottom:.6em; }
.team-note{
  font-size:.85rem; color:var(--grey-500); border:1px dashed var(--grey-300);
  padding:.6em .9em; border-radius:var(--radius); display:inline-block;
}

/* ---------- Blog ---------- */
.post-card{ border:1px solid var(--grey-100); }
.post-thumb{
  aspect-ratio:16/10;
  background:linear-gradient(150deg,var(--navy-800),var(--navy-950));
  display:flex; align-items:center; justify-content:center;
}
.post-thumb svg{ width:26%; color:rgba(255,255,255,.5); }
.post-body{ padding:1.6rem; }
.post-meta{ font-size:.74rem; letter-spacing:.08em; text-transform:uppercase; color:var(--gold-600); font-weight:700; margin-bottom:.6em; }
.post-body h3{ margin-bottom:.5em; }
.post-body p{ font-size:.92rem; }

.article-body h2{ margin-top:1.6em; }
.article-body p{ font-size:1.02rem; }
.article-body ul{ margin:0 0 1.2em 1.2em; list-style:disc; color:var(--grey-700); }
.article-body li{ margin-bottom:.5em; }

/* ---------- Stat / band ---------- */
.band-navy{ background:var(--navy-950); color:#fff; }
.band-navy p{ color:rgba(255,255,255,.7); }
.band-navy h2{ color:#fff; }

.cta-banner{
  background:var(--navy-950); color:#fff; text-align:center;
  padding:5rem var(--gutter);
  position:relative; overflow:hidden;
}
.cta-banner::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(circle at 50% 0%, rgba(60,108,180,.18), transparent 60%);
}
.cta-banner > *{ position:relative; z-index:1; }
.cta-banner h2{ color:#fff; }
.cta-banner .btn-row{ display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; margin-top:1.4rem; }

/* ---------- Contact ---------- */
.contact-block{ display:flex; gap:1rem; padding:1.4rem 0; border-bottom:1px solid var(--grey-100); }
.contact-block:last-child{ border-bottom:none; }
.contact-block svg{ width:20px; height:20px; color:var(--gold-500); flex-shrink:0; margin-top:.2rem; }
.contact-block h3{ font-size:1rem; margin-bottom:.3em; }
.contact-block p{ font-size:.92rem; margin-bottom:.2em; }
.contact-block a{ color:var(--navy-800); font-weight:600; }
.contact-block a:hover{ color:var(--gold-600); }

.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.form-field{ display:flex; flex-direction:column; gap:.4em; margin-bottom:1.1rem; }
.form-field label{ font-size:.78rem; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--navy-800); }
.form-field input, .form-field select, .form-field textarea{
  border:1px solid var(--grey-300); padding:.85em 1em; font-family:var(--ff-body);
  font-size:.95rem; border-radius:var(--radius); background:#fff; color:var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline:none; border-color:var(--gold-500); box-shadow:0 0 0 3px rgba(60,108,180,.16);
}
.map-frame{ border:1px solid var(--grey-100); height:340px; width:100%; filter:grayscale(.15); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--navy-950); color:rgba(255,255,255,.75); }
.footer-top{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:2.5rem;
  padding:4.5rem 0 3rem;
}
.footer-brand .brand-word, .footer-brand .brand-sub{ color:#fff; }
.footer-brand p{ color:rgba(255,255,255,.6); font-size:.9rem; margin-top:1rem; }
.footer-col h4{
  color:#fff; font-family:var(--ff-body); font-size:.78rem; letter-spacing:.1em;
  text-transform:uppercase; margin-bottom:1.1rem; font-weight:700;
}
.footer-col ul{ display:flex; flex-direction:column; gap:.65rem; }
.footer-col a{ color:rgba(255,255,255,.65); font-size:.9rem; }
.footer-col a:hover{ color:var(--gold-300); }
.footer-social{ display:flex; gap:.8rem; margin-top:1.2rem; }
.footer-social a{
  width:36px; height:36px; border:1px solid rgba(255,255,255,.2); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.footer-social svg{ width:15px; height:15px; }
.footer-social a:hover{ border-color:var(--gold-500); background:var(--gold-500); color:var(--navy-950); }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  padding:1.6rem 0; display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem;
  font-size:.8rem; color:rgba(255,255,255,.5);
}
.footer-disclaimer{
  border-top:1px solid rgba(255,255,255,.12);
  padding:1.6rem 0 2.4rem; font-size:.78rem; color:rgba(255,255,255,.45); line-height:1.7;
}

/* ---------- Disclaimer gate ---------- */
.gate{
  position:fixed; inset:0; z-index:500;
  background:var(--navy-950);
  display:flex; align-items:center; justify-content:center;
  padding:2rem;
}
.gate[hidden]{ display:none; }
.gate-panel{
  max-width:640px; background:#fff; padding:3rem clamp(1.5rem,4vw,3.5rem);
  border-top:3px solid var(--gold-500);
}
.gate-panel .overline{ margin-bottom:.6rem; }
.gate-panel h2{ font-size:1.6rem; }
.gate-panel p{ font-size:.92rem; }
.gate-check{ display:flex; align-items:flex-start; gap:.7em; margin:1.4rem 0; font-size:.88rem; color:var(--grey-700); }
.gate-check input{ margin-top:.3em; }
.gate-actions{ display:flex; gap:1rem; flex-wrap:wrap; }
.gate-actions .btn[disabled]{ opacity:.4; pointer-events:none; }

/* ---------- Reveal animation ---------- */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero{ grid-template-columns:1fr; }
  .hero-art{ display:none; }
  .hero-copy{ padding-top:3rem; }
  .hero-stats{ grid-template-columns:repeat(2,1fr); }
  .hero-stats div:nth-child(2){ border-right:none; }
  .split-layout{ grid-template-columns:1fr; }
  .split-side{ position:relative; height:auto; padding:4rem var(--gutter) 3rem; }
  .split-main{ padding:3rem var(--gutter); }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .footer-top{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 640px){
  .grid-3, .grid-2{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr; }
  .hero-stats{ grid-template-columns:1fr 1fr; }
  .header-tel .hide-mobile{ display:none; }
}
