/* ============================================================
   DEERAR — theme.css
   Mobile-first · minimalistic luxury · WCAG-aware
   Palette: #0F172A / #1E293B / #C9A227 / #FFFFFF / #111827
   Type: Playfair Display (headings) · Inter (body)
   ============================================================ */

:root {
  --primary: #0F172A;
  --secondary: #1E293B;
  --accent: #C9A227;
  --accent-soft: rgba(201, 162, 39, 0.12);
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --text: #111827;
  --muted: #4B5563;
  --line: #E5E7EB;
  --line-dark: rgba(255, 255, 255, 0.12);

  --maxw: 1160px;
  --gutter: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --t: 0.25s ease;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* prevent horizontal swipe revealing the off-canvas menu */
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; color: var(--primary); margin: 0; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--secondary); }
img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

/* ---------- Accessibility helpers ---------- */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 8px;
  z-index: 999; transition: top var(--t); font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }

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

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: linear-gradient(150deg, var(--primary), var(--secondary)); color: #fff; }

.section__head { max-width: 640px; margin-bottom: 36px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); margin: 0 0 12px;
}
.section--dark .eyebrow { color: var(--accent); }
.section__title { font-size: 1.7rem; }
.section--dark .section__title { color: #fff; }
.section__lead { margin-top: 12px; color: var(--muted); }
.section--dark .section__lead { color: #cbd5e1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 50px; border: 1.5px solid transparent;
  cursor: pointer; transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn--gold { background: var(--accent); color: var(--primary); }
.btn--gold:hover { background: #b58e1c; color: var(--primary); transform: translateY(-1px); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--outline:hover { background: rgba(255,255,255,0.10); color: #fff; border-color: #fff; }
.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--primary); color: #cbd5e1; font-size: 0.78rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar .ic { width: 14px; height: 14px; fill: var(--accent); flex-shrink: 0; }
.topbar__addr { display: none; }
.topbar__call { color: #e7d9a8; font-weight: 600; }
.topbar__call:hover { color: #fff; }

/* ---------- Header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow var(--t);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }

.brand__link { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--primary); color: var(--accent);
  font-family: var(--font-head); font-weight: 800; font-size: 1rem; letter-spacing: 0.06em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--font-head); font-size: 1.4rem; letter-spacing: 0.12em; color: var(--primary); }
.brand__text small { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.nav {
  position: fixed; inset: 0 0 0 auto; width: min(84vw, 330px); height: 100vh;
  background: var(--primary); display: none; flex-direction: column; align-items: stretch;
  gap: 2px; padding: 88px 26px 28px; box-shadow: -20px 0 50px rgba(0,0,0,0.3); z-index: 110;
}
.nav.is-open { display: flex; animation: deerar-slidein 0.3s ease; }
@keyframes deerar-slidein { from { transform: translateX(100%); } to { transform: translateX(0); } }
.nav__list { display: flex; flex-direction: column; gap: 2px; }
.nav__list a {
  display: block; color: #e2e8f0; font-weight: 500; padding: 13px 6px; text-decoration: none;
  border-bottom: 1px solid var(--line-dark); transition: color var(--t);
}
.nav__list a:hover, .nav__list a:focus { color: var(--accent); }
.nav__list .current-menu-item > a { color: var(--accent); }
.nav__cta { margin-top: 20px; }

.hamburger {
  width: 44px; height: 44px; padding: 0; border: none; background: transparent;
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; z-index: 120;
}
.hamburger span[aria-hidden] { width: 24px; height: 2.5px; background: var(--primary); border-radius: 3px; transition: var(--t); }
.hamburger.is-active span:nth-child(2) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-active span:nth-child(3) { opacity: 0; }
.hamburger.is-active span:nth-child(4) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,0.55); opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease; z-index: 95; /* below header(100) so the in-header menu stays above it */
}
.nav-backdrop.is-show { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__pattern { width: 100%; height: 100%; }
.hero__inner { padding: 70px var(--gutter) 80px; max-width: 820px; }
.hero__eyebrow {
  display: inline-block; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin: 0 0 18px; padding-bottom: 8px;
  border-bottom: 2px solid rgba(201,162,39,0.4);
}
.hero__title { color: #fff; font-size: 2.1rem; line-height: 1.18; margin: 0 0 18px; }
.hero__sub { color: #cbd5e1; font-size: 1.05rem; max-width: 600px; margin: 0 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 22px; font-size: 0.84rem; letter-spacing: 0.02em; color: #cbd5e1; display: inline-flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 2px solid var(--accent); }

/* ---------- About ---------- */
.about__grid { display: grid; gap: 32px; }
.about__content p { color: var(--muted); margin-top: 14px; }
.ticklist { margin-top: 22px; display: grid; gap: 12px; }
.ticklist li { position: relative; padding-left: 30px; font-weight: 500; color: var(--text); }
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A227' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 11px; background-repeat: no-repeat; background-position: center;
}
.about__panel {
  aspect-ratio: 4 / 3; border-radius: var(--radius); display: grid; place-content: center; gap: 10px;
  text-align: center; color: #e7d9a8; background: linear-gradient(150deg, var(--primary), var(--secondary));
  border: 1px solid var(--line);
}
.about__monogram { font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; letter-spacing: 0.1em; color: var(--accent); }
.about__est { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #cbd5e1; }
.about__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

/* ---------- Advocates ---------- */
.advocates__grid { display: grid; gap: 22px; }
.advocate {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t);
}
.advocate:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.advocate__avatar {
  position: relative; width: 130px; height: 130px; margin: 0 auto 20px; border-radius: 50%;
  overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--primary), var(--secondary));
  border: 3px solid var(--accent);
}
.advocate__avatar img { width: 100%; height: 100%; object-fit: cover; }
.advocate__initials { position: absolute; font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--accent); z-index: 2; }
.advocate__silhouette { width: 74%; height: 74%; fill: rgba(255,255,255,0.08); }
.advocate__name { font-size: 1.25rem; }
.advocate__role { color: var(--accent); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; margin: 5px 0 10px; }
.advocate__enroll { font-size: 0.84rem; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); display: inline-block; }
.advocate__enroll strong { color: var(--text); }
.advocate__bio { margin-top: 12px; font-size: 0.92rem; color: var(--muted); }

.advocate--placeholder { border-style: dashed; box-shadow: none; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.advocate__avatar--empty { background: var(--bg-alt); border: 2px dashed var(--line); }
.advocate__avatar--empty svg { width: 30px; height: 30px; stroke: var(--muted); fill: none; stroke-width: 1.6; stroke-linecap: round; }
.advocate--placeholder .advocate__name { color: var(--muted); font-size: 1.05rem; }
.advocate--placeholder .advocate__role { color: var(--muted); }

/* ---------- Practice areas ---------- */
.practice__grid { display: grid; gap: 18px; }
.practice__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.practice__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.practice__icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px; display: grid; place-items: center;
  background: var(--accent-soft);
}
.practice__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.practice__title { font-size: 1.12rem; margin-bottom: 8px; }
.practice__desc { color: var(--muted); font-size: 0.92rem; }

/* ---------- Why choose us ---------- */
.why__grid { display: grid; gap: 20px; }
.why__card { padding: 24px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255,255,255,0.03); }
.why__check { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); margin-bottom: 14px; }
.why__check svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.why__title { color: #fff; font-size: 1.08rem; margin-bottom: 6px; }
.why__desc { color: #cbd5e1; font-size: 0.9rem; }

/* ---------- Process ---------- */
.process__timeline { display: grid; gap: 24px; counter-reset: step; }
.process__step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 24px; box-shadow: var(--shadow-sm);
}
.process__num { font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; color: var(--accent); display: block; margin-bottom: 8px; }
.process__title { font-size: 1.15rem; margin-bottom: 6px; }
.process__desc { color: var(--muted); font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.testimonials__grid { display: grid; gap: 22px; }
.testimonial {
  position: relative; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 26px; box-shadow: var(--shadow-sm);
}
.testimonial__mark { position: absolute; top: 10px; right: 22px; font-family: var(--font-head); font-size: 3.4rem; color: var(--accent-soft); line-height: 1; }
.testimonial__quote { margin: 0 0 18px; font-size: 0.98rem; color: var(--text); font-style: italic; }
.testimonial__cite { display: flex; flex-direction: column; }
.testimonial__name { font-weight: 700; color: var(--primary); }
.testimonial__meta { font-size: 0.82rem; color: var(--muted); }
.testimonials__note { margin-top: 18px; text-align: center; font-size: 0.8rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: 30px; }
.contact__firm { font-size: 1.15rem; margin-bottom: 18px; }
.contact__list { display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__ic { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact__ic svg { width: 20px; height: 20px; fill: var(--accent); }
.contact__list strong { display: block; color: var(--primary); font-size: 0.92rem; margin-bottom: 2px; }
.contact__list a, .contact__list address { color: var(--muted); font-size: 0.92rem; }
.contact__list a:hover { color: var(--accent); }

.contact__map {
  margin-top: 24px; aspect-ratio: 16 / 9; border-radius: var(--radius); border: 1px dashed var(--line);
  background: var(--bg-alt); display: grid; place-content: center; gap: 8px; text-align: center; color: var(--muted);
}
.contact__map svg { width: 34px; height: 34px; fill: var(--accent); margin: 0 auto; }
.contact__map span { font-size: 0.82rem; }
.contact__map--embed { padding: 0; border: none; background: none; overflow: hidden; display: block; }
.contact__map--embed iframe { display: block; width: 100%; height: 100%; border: 0; }

.contact__formwrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-bottom: 7px; }
.req { color: var(--accent); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; color: var(--text); background: #fff; transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; }
.form__hint { margin-top: 12px; font-size: 0.8rem; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 0.9rem; font-weight: 500; }
.form__alert--ok { background: var(--accent-soft); border: 1px solid var(--accent); color: var(--primary); }
.form__alert--err { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* ---------- Footer ---------- */
.footer { background: var(--primary); color: #cbd5e1; }
.footer__grid { display: grid; gap: 30px; padding: 48px var(--gutter) 34px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer__brand .brand__mark { background: var(--secondary); }
.footer__brand strong { display: block; font-family: var(--font-head); color: #fff; font-size: 1.2rem; letter-spacing: 0.1em; }
.footer__brand small { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; }
.footer__tagline { font-size: 0.9rem; color: #94a3b8; max-width: 320px; }
.footer__heading { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer__menu { display: grid; gap: 10px; }
.footer__menu a { color: #cbd5e1; font-size: 0.9rem; }
.footer__menu a:hover { color: var(--accent); }
.footer__address { font-size: 0.9rem; color: #94a3b8; line-height: 1.9; }
.footer__address a { color: #cbd5e1; }
.footer__address a:hover { color: var(--accent); }

.footer__disclaimer { border-top: 1px solid var(--line-dark); padding: 20px 0; }
.footer__disclaimer p { font-size: 0.78rem; color: #94a3b8; font-style: italic; }
.footer__disclaimer strong { color: #cbd5e1; font-style: normal; }
.footer__bar { border-top: 1px solid var(--line-dark); padding: 16px 0; }
.footer__bar span { font-size: 0.78rem; color: #94a3b8; }

/* ---------- Floating call button (mobile) ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 54px; height: 54px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(201,162,39,0.45);
}
.fab svg { width: 24px; height: 24px; fill: var(--primary); }
.fab:hover { background: #b58e1c; }

/* ---------- Inner pages / posts ---------- */
.page-article { padding: 0 0 40px; }
.page-article__header { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 48px 0; margin-bottom: 32px; }
.page-article__title { font-size: 1.9rem; }
.page-article__meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 8px; }
.page-article__thumb { margin-bottom: 28px; }
.page-article__thumb img { border-radius: var(--radius); }
.entry-content { max-width: 760px; }
.entry-content > * + * { margin-top: 1.1rem; }
.entry-content h2 { font-size: 1.5rem; margin-top: 2rem; }
.entry-content h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.entry-content a { text-decoration: underline; }
.entry-content blockquote { border-left: 3px solid var(--accent); padding-left: 18px; color: var(--muted); font-style: italic; }

.post-list { display: grid; gap: 26px; padding: 40px 0; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.post-card__thumb img { width: 100%; object-fit: cover; }
.post-card__body { padding: 22px; }
.post-card__meta { color: var(--muted); font-size: 0.82rem; margin-bottom: 6px; }
.post-card__title { font-size: 1.25rem; margin-bottom: 10px; }
.post-card__excerpt { color: var(--muted); font-size: 0.94rem; margin-bottom: 12px; }
.read-more { font-weight: 600; }
.archive-header { padding: 40px 0 0; }
.pagination { padding: 30px 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 600px) {
  .topbar__addr { display: inline-flex; }
  .hero__title { font-size: 2.6rem; }
  .advocates__grid { grid-template-columns: repeat(2, 1fr); }
  .practice__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .process__timeline { grid-template-columns: repeat(3, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

@media (min-width: 900px) {
  .section { padding: 84px 0; }
  .section__title { font-size: 2.1rem; }
  .hero__inner { padding: 100px var(--gutter) 104px; }
  .hero__title { font-size: 3.1rem; }

  /* Desktop nav */
  .hamburger { display: none; }
  .nav {
    position: static; width: auto; height: auto; flex-direction: row; align-items: center; gap: 6px;
    padding: 0; transform: none; background: transparent; box-shadow: none;
    display: flex; visibility: visible;
  }
  .nav__list { flex-direction: row; align-items: center; gap: 2px; }
  .nav__list a { color: var(--text); border: none; padding: 10px 14px; font-size: 0.92rem; position: relative; white-space: nowrap; }
  .nav__list a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform var(--t); }
  .nav__list a:hover { color: var(--primary); }
  .nav__list a:hover::after, .nav__list .current-menu-item > a::after { transform: scaleX(1); }
  .nav__cta { margin: 0 0 0 12px; }

  .about__grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .advocates__grid { grid-template-columns: repeat(3, 1fr); }
  .practice__grid { grid-template-columns: repeat(4, 1fr); }
  .why__grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(3, 1fr); }
  .contact__grid { grid-template-columns: 1fr 1.05fr; align-items: start; }

  .fab { display: none; }

  /* Subtle reveal on scroll (no flashy motion) */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

@media (min-width: 1100px) {
  .practice__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   BAR COUNCIL DISCLAIMER MODAL
   ============================================================ */
.disclaimer {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 18px; background: rgba(8, 15, 30, 0.92); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.disclaimer[hidden] { display: none; }
.disclaimer__box {
  background: #fff; width: 100%; max-width: 720px; max-height: 88vh; overflow-y: auto;
  border-radius: 14px; padding: 30px 26px; border-top: 4px solid var(--accent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.disclaimer__title { font-family: var(--font-head); text-align: center; color: var(--primary); font-size: 1.55rem; margin-bottom: 18px; }
.disclaimer__body p { color: var(--muted); margin-bottom: 16px; font-size: 0.95rem; }
.disclaimer__body ul { display: grid; gap: 12px; margin-bottom: 6px; }
.disclaimer__body li { position: relative; padding-left: 26px; color: var(--ink); font-size: 0.9rem; line-height: 1.6; }
.disclaimer__body li::before { content: "\2192"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.disclaimer__actions { text-align: center; margin-top: 24px; position: sticky; bottom: -2px; background: #fff; padding-top: 12px; }
body.disclaimer-open { overflow: hidden; }
@media (min-width: 700px) {
  .disclaimer__box { padding: 36px 40px; }
  .disclaimer__title { font-size: 1.8rem; }
}

/* ============================================================
   MULTI-PAGE: inner-page banner, CTA band, polish
   ============================================================ */

/* Inner-page banner */
.pagehero { position: relative; background: linear-gradient(150deg, var(--primary), var(--secondary)); color: #fff; overflow: hidden; isolation: isolate; }
.pagehero__bg { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 86% 18%, rgba(201,162,39,0.18), transparent 46%),
              radial-gradient(circle at 8% 92%, rgba(122,31,43,0.18), transparent 50%); }
.pagehero__inner { padding: 52px 20px 46px; }
.pagehero__crumb { font-size: 0.8rem; color: #9fb0cc; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.pagehero__crumb a { color: var(--accent); }
.pagehero__crumb a:hover { color: #fff; }
.pagehero__crumb span[aria-hidden] { color: #5b6b86; }
.pagehero__title { font-size: 2rem; color: #fff; line-height: 1.2; }
.pagehero__sub { margin-top: 12px; color: #cbd5e1; max-width: 640px; }

/* Closing CTA band */
.ctaband { background: linear-gradient(150deg, var(--primary), var(--secondary)); color: #fff; border-top: 3px solid var(--accent); }
.ctaband__inner { padding: 46px 20px; display: grid; gap: 22px; text-align: center; }
.ctaband__title { color: #fff; font-size: 1.55rem; }
.ctaband__sub { color: #cbd5e1; margin-top: 8px; }
.ctaband__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Gold accent under centered section titles — refined legal touch */
.section__head--center .section__title { position: relative; display: inline-block; padding-bottom: 16px; }
.section__head--center .section__title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 54px; height: 3px; background: var(--accent); border-radius: 2px;
}

/* Brand wordmark spacing for "DEE RAR" */
.brand__text strong { white-space: nowrap; }

@media (min-width: 760px) {
  .ctaband__inner { grid-template-columns: 1fr auto; text-align: left; align-items: center; }
  .ctaband__actions { justify-content: flex-end; }
}
@media (min-width: 900px) {
  .pagehero__inner { padding: 76px 20px 66px; }
  .pagehero__title { font-size: 2.8rem; }
  .ctaband__title { font-size: 1.9rem; }
}
