/* ===================================================================
   Deen Law Consultants — design tokens
   Navy + brass gold, Fraunces (display) / Inter (body)
=================================================================== */
:root{
  --navy:      #0B1526;
  --navy-2:    #142238;
  --navy-3:    #1B2C46;
  --ivory:     #F6F3EC;
  --ivory-2:   #EFEAE0;
  --gold:      #B98D46;
  --gold-light:#D9B77C;
  --ink:       #1B2430;
  --slate:     #5B6472;
  --line:      #E1DBCC;
  --line-dark: rgba(217,183,124,0.22);
  --wa-green:  #22C35E;
  --wa-green-dark:#1AA34E;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 4px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--ivory);
  -webkit-font-smoothing:antialiased;
  line-height:1.55;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ font-family:var(--serif); font-weight:600; margin:0 0 0.5em; color:var(--navy); line-height:1.15; }
p{ margin:0 0 1em; }
ul{ margin:0; padding:0; list-style:none; }

:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }

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

.ic{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.ic-sm{ width:14px; height:14px; }
.ic-lg{ width:30px; height:30px; stroke-width:1.4; }
.ic-fab{ width:26px; height:26px; fill:#fff; stroke:none; }
svg use[href="#icon-wa"]{ fill:#fff; }
.btn .ic, .topbar-cta .ic{ fill:currentColor; stroke:none; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:9px;
  padding:12px 22px; border-radius:2px;
  font-family:var(--sans); font-weight:600; font-size:0.94rem;
  border:1px solid transparent; cursor:pointer; white-space:nowrap;
  transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn-wa{ background:var(--wa-green); color:#fff; }
.btn-wa:hover{ background:var(--wa-green-dark); box-shadow:0 8px 20px -8px rgba(34,195,94,0.55); }
.btn-ghost{ background:transparent; color:var(--ivory); border-color:rgba(255,255,255,0.35); }
.btn-ghost:hover{ border-color:var(--gold-light); color:var(--gold-light); }
.btn-outline{ background:transparent; color:var(--navy); border-color:var(--navy); }
.btn-outline:hover{ background:var(--navy); color:var(--ivory); }
.btn-lg{ padding:15px 28px; font-size:1rem; }

/* ---------- Topbar ---------- */
.topbar{ background:var(--navy); color:rgba(246,243,236,0.72); font-size:0.82rem; }
.topbar-in{ display:flex; align-items:center; gap:24px; height:38px; }
.topbar-item{ display:flex; align-items:center; gap:6px; }
.topbar-cta{ margin-left:auto; color:#8fe3ac; font-weight:600; }
.topbar-cta:hover{ color:#b6f2c9; }
.topbar-item--hide-sm{ display:inline-flex; }

/* ---------- Header ---------- */
.site-header{ background:var(--navy); border-bottom:1px solid var(--line-dark); position:sticky; top:0; z-index:40; }
.header-in{ display:flex; align-items:center; gap:32px; height:78px; }
.brand{ display:flex; flex-direction:column; line-height:1.05; }
.brand-mark{ font-family:var(--serif); font-size:1.5rem; font-weight:700; color:var(--gold-light); letter-spacing:0.01em; }
.brand-rest{ font-family:var(--sans); font-size:0.66rem; letter-spacing:0.14em; color:rgba(246,243,236,0.62); margin-top:2px; }
.nav{ display:flex; gap:28px; margin-left:12px; flex:1; }
.nav a{ color:rgba(246,243,236,0.82); font-size:0.93rem; font-weight:500; padding:6px 0; border-bottom:2px solid transparent; }
.nav a:hover{ color:#fff; border-color:var(--gold); }
.header-cta{ flex-shrink:0; }
.nav-toggle{ display:none; flex-direction:column; justify-content:center; gap:5px; width:34px; height:34px; background:none; border:none; cursor:pointer; margin-left:auto; }
.nav-toggle span{ display:block; height:2px; background:var(--ivory); border-radius:1px; }

/* ---------- Hero ---------- */
.hero{ background:radial-gradient(120% 160% at 82% -10%, var(--navy-3) 0%, var(--navy) 55%); position:relative; overflow:hidden; padding:76px 0 96px; }
.hero-in{ display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center; }
.kicker{ font-family:var(--sans); font-size:0.88rem; font-weight:600; color:var(--gold-light); margin-bottom:14px; }
.hero h1{ color:#fff; font-size:clamp(2.1rem, 3.4vw, 3.15rem); max-width:14ch; }
.hero-lede{ color:rgba(246,243,236,0.78); font-size:1.06rem; max-width:46ch; margin-top:18px; }
.hero-actions{ display:flex; gap:14px; margin-top:30px; flex-wrap:wrap; }
.hero-note{ color:rgba(246,243,236,0.5); font-size:0.86rem; margin-top:18px; margin-bottom:0; }

.hero-visual{ position:relative; }
.hero-frame{ margin:0; border:1px solid var(--line-dark); padding:10px; background:var(--navy-2); position:relative; }
.hero-frame img{ width:100%; height:340px; object-fit:cover; object-position:center 30%; }
.hero-frame figcaption{ position:absolute; left:20px; bottom:20px; background:rgba(11,21,38,0.82); color:var(--gold-light); font-size:0.76rem; padding:6px 10px; letter-spacing:0.02em; }

.jurisdiction-badge{
  position:absolute; left:-28px; bottom:-38px; background:var(--ivory); color:var(--navy);
  padding:18px 20px 16px; box-shadow:0 20px 40px -14px rgba(0,0,0,0.45); max-width:300px;
  border-top:3px solid var(--gold);
}
.jurisdiction-badge p{ font-size:0.78rem; color:var(--slate); margin-bottom:10px; }
.flag-row{ display:flex; gap:14px; }
.plaque{ display:flex; flex-direction:column; align-items:center; gap:6px; }
.plaque span{ font-size:0.68rem; color:var(--slate); font-weight:600; }

.flag{
  width:38px; height:25px; border-radius:1.5px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18), 0 6px 10px -4px rgba(0,0,0,0.4);
  transform:perspective(220px) rotateX(8deg);
  transition:transform .35s ease, box-shadow .35s ease;
  animation: flag-mount .6s cubic-bezier(.2,.8,.3,1.15) both;
}
.plaque:nth-child(1) .flag{ animation-delay:.05s; }
.plaque:nth-child(2) .flag{ animation-delay:.15s; }
.plaque:nth-child(3) .flag{ animation-delay:.25s; }
.plaque:nth-child(4) .flag{ animation-delay:.35s; }
@keyframes flag-mount{
  from{ opacity:0; transform:perspective(220px) rotateX(8deg) translateY(-8px) scale(.85); }
  to{ opacity:1; transform:perspective(220px) rotateX(8deg) translateY(0) scale(1); }
}
.plaque:hover .flag, .jur-card:hover .flag--lg{
  transform:perspective(220px) rotateX(0deg) scale(1.04);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18), 0 10px 18px -6px rgba(0,0,0,0.5);
}
.flag--lg{ width:72px; height:47px; border-radius:2px; transform:perspective(260px) rotateX(8deg); }

/* ---------- Stats ---------- */
.stats{ background:var(--ivory-2); border-bottom:1px solid var(--line); }
.stats-in{ display:flex; padding:34px 0; }
.stat{ flex:1; text-align:center; padding:0 20px; position:relative; }
.stat + .stat::before{ content:""; position:absolute; left:0; top:6px; bottom:6px; width:1px; background:var(--gold); opacity:0.4; }
.stat strong{ display:block; font-family:var(--serif); font-size:1.7rem; color:var(--navy); margin-bottom:4px; }
.stat span{ font-size:0.82rem; color:var(--slate); }

/* ---------- Section head ---------- */
.section-head{ max-width:640px; margin:0 0 44px; }
.section-head h2{ font-size:clamp(1.6rem, 2.4vw, 2.1rem); }
.section-head p{ color:var(--slate); font-size:1.02rem; margin-bottom:0; }
.section-head--light h2{ color:#fff; }
.section-head--light p{ color:rgba(246,243,236,0.68); }

/* ---------- Practice ---------- */
.practice{ padding:96px 0; }
.practice-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.practice-card{ background:var(--ivory); padding:30px 26px; border-top:3px solid transparent; transition:border-color .2s ease, background-color .2s ease; }
.practice-card:hover{ border-top-color:var(--gold); background:#fff; }
.practice-card .ic{ color:var(--gold); margin-bottom:14px; width:24px; height:24px; }
.practice-card h3{ font-size:1.08rem; margin-bottom:8px; }
.practice-card p{ color:var(--slate); font-size:0.92rem; margin-bottom:0; }
.practice-card--feature{ background:var(--navy); grid-column:span 1; }
.practice-card--feature h3, .practice-card--feature p{ color:var(--ivory); }
.practice-card--feature p{ color:rgba(246,243,236,0.7); }
.practice-card--feature .ic{ color:var(--gold-light); }
.practice-card--feature:hover{ border-top-color:var(--gold-light); background:var(--navy); }

/* ---------- Jurisdictions ---------- */
.jurisdictions{ background:var(--navy); padding:96px 0; }
.jur-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:28px; }
.jur-card{ text-align:left; padding:26px 22px 28px; background:var(--navy-2); border:1px solid var(--line-dark); }
.jur-card h3{ color:#fff; font-size:1.1rem; margin:16px 0 8px; }
.jur-card p{ color:rgba(246,243,236,0.66); font-size:0.9rem; margin-bottom:0; }
.jur-cta{ display:flex; align-items:center; justify-content:space-between; margin-top:52px; padding-top:32px; border-top:1px solid var(--line-dark); flex-wrap:wrap; gap:18px; }
.jur-cta p{ color:#fff; font-family:var(--serif); font-size:1.3rem; margin:0; }

/* ---------- About ---------- */
.about{ padding:96px 0; }
.about-in{ display:grid; grid-template-columns:0.75fr 1.25fr; gap:60px; align-items:center; }
.about-figure{ margin:0; border:8px solid #fff; box-shadow:0 24px 50px -20px rgba(11,21,38,0.35); }
.about-figure img{ width:100%; height:460px; object-fit:cover; object-position:top; }
.about-copy blockquote{ font-family:var(--serif); font-size:1.35rem; color:var(--navy); border-left:3px solid var(--gold); padding-left:22px; margin:22px 0 26px; font-weight:500; }
.check-list li{ position:relative; padding-left:26px; margin-bottom:12px; color:var(--ink); font-size:0.97rem; }
.check-list li::before{ content:""; position:absolute; left:0; top:8px; width:9px; height:9px; background:var(--gold); border-radius:50%; }

/* ---------- Team ---------- */
.team{ padding:96px 0; background:var(--ivory-2); }
.team-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:28px; }
.team-card{ background:#fff; border:1px solid var(--line); padding:34px; text-align:left; }
.avatar{ width:56px; height:56px; border-radius:50%; background:var(--navy); color:var(--gold-light); font-family:var(--serif); font-size:1.4rem; display:flex; align-items:center; justify-content:center; margin-bottom:16px; border:2px solid var(--gold); }
.avatar-sm{ width:38px; height:38px; font-size:1rem; }
.team-card h3{ margin-bottom:2px; }
.role{ color:var(--gold); font-size:0.84rem; font-weight:600; margin-bottom:12px; }
.team-desc{ color:var(--slate); font-size:0.93rem; }

/* ---------- CTA band ---------- */
.cta-band{ background:linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); padding:64px 0; }
.cta-band-in{ display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.cta-band h2{ color:#fff; font-size:clamp(1.4rem,2.4vw,1.9rem); max-width:16ch; margin:0; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--navy); color:rgba(246,243,236,0.7); padding-top:64px; }
.footer-in{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; padding-bottom:48px; }
.footer-brand p{ font-size:0.9rem; max-width:34ch; margin:14px 0 20px; }
.footer-col h4{ color:#fff; font-family:var(--sans); font-size:0.78rem; letter-spacing:0.08em; margin-bottom:14px; }
.footer-col a, .footer-col p{ display:block; font-size:0.9rem; margin-bottom:10px; color:rgba(246,243,236,0.68); }
.footer-col a:hover{ color:var(--gold-light); }
.flag-row--footer{ gap:10px; }
.flag-row--footer .flag{ width:30px; height:20px; }
.footer-bottom{ border-top:1px solid var(--line-dark); display:flex; justify-content:space-between; padding:20px 24px; font-size:0.78rem; flex-wrap:wrap; gap:8px; }

/* ---------- Floating WhatsApp widget ---------- */
.wa-widget{ position:fixed; right:22px; bottom:22px; z-index:60; display:flex; flex-direction:column; align-items:flex-end; gap:12px; }
.wa-fab{
  width:60px; height:60px; border-radius:50%; background:var(--wa-green); border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center; position:relative;
  box-shadow:0 12px 24px -8px rgba(34,195,94,0.6);
  transition:transform .15s ease, background-color .15s ease;
}
.wa-fab:hover{ background:var(--wa-green-dark); transform:scale(1.05); }
.wa-ring{ position:absolute; inset:0; border-radius:50%; border:2px solid var(--wa-green); animation:wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse{
  0%{ transform:scale(1); opacity:0.7; }
  100%{ transform:scale(1.6); opacity:0; }
}
.wa-tooltip{
  background:#fff; color:var(--navy); padding:9px 14px; border-radius:6px; font-size:0.84rem; font-weight:600;
  box-shadow:0 10px 24px -8px rgba(0,0,0,0.3); transform:translateY(4px); opacity:0; pointer-events:none;
  transition:opacity .3s ease, transform .3s ease;
}
.wa-tooltip.show{ opacity:1; transform:translateY(0); }
.wa-panel{ width:280px; background:#fff; border-radius:10px; box-shadow:0 24px 48px -14px rgba(0,0,0,0.35); overflow:hidden; }
.wa-panel-head{ background:var(--navy); color:#fff; display:flex; align-items:center; justify-content:space-between; padding:14px 16px; font-size:0.92rem; font-weight:600; }
.wa-panel-head button{ background:none; border:none; color:rgba(255,255,255,0.7); cursor:pointer; padding:2px; }
.wa-panel-head button:hover{ color:#fff; }
.wa-contact{ display:flex; align-items:center; gap:12px; padding:14px 16px; border-top:1px solid var(--line); }
.wa-contact:hover{ background:var(--ivory); }
.wa-contact strong{ display:block; font-size:0.94rem; color:var(--ink); }
.wa-contact em{ display:block; font-size:0.76rem; color:var(--slate); font-style:normal; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero-in, .about-in{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; }
  .jurisdiction-badge{ position:static; margin-top:-40px; margin-left:20px; max-width:none; }
  .practice-grid{ grid-template-columns:repeat(2,1fr); }
  .jur-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-in{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:span 2; }
}
@media (max-width: 760px){
  .topbar-item--hide-sm{ display:none; }
  .nav{ position:fixed; inset:78px 0 0 0; background:var(--navy); flex-direction:column; padding:24px; gap:4px; transform:translateX(100%); transition:transform .25s ease; }
  .nav.open{ transform:translateX(0); }
  .nav a{ padding:14px 4px; border-bottom:1px solid var(--line-dark); width:100%; }
  .nav-toggle{ display:flex; }
  .header-cta{ display:none; }
  .stats-in{ flex-wrap:wrap; }
  .stat{ flex:1 1 50%; margin-bottom:18px; }
  .practice-grid{ grid-template-columns:1fr; }
  .jur-grid{ grid-template-columns:1fr; }
  .team-grid{ grid-template-columns:1fr; }
  .footer-in{ grid-template-columns:1fr; }
  .footer-brand{ grid-column:span 1; }
  .cta-band-in{ flex-direction:column; align-items:flex-start; }
  .jurisdiction-badge{ margin-left:0; }
  .wa-fab{ width:54px; height:54px; }
}
