/* =====================================================================
   Abowitz Law — Design System
   Palette: navy #0B1F3A · red #B22234 · gold #D4AF37 · white #FFFFFF
   Type:    Marcellus (lapidary wordmark/display) · Source Serif 4
            (section serif) · Inter (body/UI)
   ===================================================================== */

:root {
  --navy: #0B1F3A;
  --navy-700: #112c52;
  --navy-600: #1a3a66;
  --red: #B22234;
  --red-dark: #8e1a29;
  --gold: #D4AF37;
  --gold-soft: #e6cf86;
  --white: #FFFFFF;
  --cream: #F7F5F0;
  --paper: #FBFAF7;
  --ink: #16202e;
  --muted: #5a6573;
  --line: #e4e0d6;
  --line-dark: rgba(212, 175, 55, 0.28);

  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06), 0 2px 8px rgba(11, 31, 58, 0.05);
  --shadow-md: 0 6px 24px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 18px 48px rgba(11, 31, 58, 0.16);

  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --ff-display: "Marcellus", Georgia, serif;
  --ff-serif: "Source Serif 4", Georgia, serif;
  --ff-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -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(--ff-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 400; line-height: 1.12; color: var(--navy); letter-spacing: 0.01em; margin: 0 0 0.5em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

/* ---------- skip link + focus (ADA) ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(56px, 8vw, 110px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--navy { background: var(--navy); color: #e9edf3; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--cream { background: var(--cream); }
.lede { font-size: clamp(1.05rem, 2.4vw, 1.28rem); color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red); margin: 0 0 0.9rem; display: inline-flex; align-items: center; gap: 0.7em;
}
.section--navy .eyebrow { color: var(--gold); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }

.h-rule { width: 64px; height: 2px; background: var(--gold); border: 0; margin: 1.4rem 0; }
.center .h-rule { margin-inline: auto; }

h2.section-title { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3.block-title { font-size: clamp(1.35rem, 3vw, 1.85rem); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--red); --fg: #fff; --bd: var(--red);
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--ff-body); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 0.92em 1.7em; border: 1.5px solid var(--bd); background: var(--bg); color: var(--fg);
  border-radius: var(--radius); cursor: pointer; transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  text-decoration: none; box-shadow: var(--shadow-sm);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--red-dark); --bd: var(--red-dark); }
.btn .ar { transition: transform .25s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--navy); --bd: rgba(11,31,58,0.28); box-shadow: none; }
.btn--ghost:hover { --bg: var(--navy); --fg: #fff; --bd: var(--navy); }
.btn--gold { --bg: var(--gold); --fg: var(--navy); --bd: var(--gold); }
.btn--gold:hover { --bg: var(--gold-soft); --bd: var(--gold-soft); background: var(--gold-soft); }
.btn--onnavy { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,0.4); box-shadow: none; }
.btn--onnavy:hover { --bg: #fff; --fg: var(--navy); --bd: #fff; background:#fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-md); background: rgba(251, 250, 247, 0.98); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .seal {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold);
  border: 1.5px solid var(--gold); background: var(--navy);
  font-family: var(--ff-display); font-size: 1.1rem; letter-spacing: 0.04em;
}
.brand .wordmark { line-height: 1; }
.brand .wordmark b { font-family: var(--ff-display); font-weight: 400; font-size: 1.32rem; color: var(--navy); letter-spacing: 0.04em; display: block; }
.brand .wordmark span { font-family: var(--ff-body); font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--ff-body); color: var(--navy); font-weight: 500; font-size: 0.94rem;
  padding: 9px 14px; border-radius: var(--radius); position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: none; color: var(--red); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: var(--radius);
  width: 46px; height: 42px; cursor: pointer; padding: 0; place-items: center; color: var(--navy);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: currentColor; transition: .3s var(--ease); position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px var(--gut) 22px;
    box-shadow: var(--shadow-md); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 6px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #eef2f7; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(212,175,55,0.14), transparent 60%),
    linear-gradient(160deg, #0a1c33 0%, var(--navy) 45%, #0e2748 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 100% 46px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 75%, transparent);
}
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(70px, 12vw, 132px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: 0.005em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { color: #c7d2e0; max-width: 54ch; }
.hero .eyebrow { color: var(--gold); }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 44px); margin-top: 40px; flex-wrap: wrap; }
.hero-stats .stat strong { font-family: var(--ff-display); font-size: clamp(1.7rem, 4vw, 2.4rem); color: #fff; display: block; line-height: 1; }
.hero-stats .stat span { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); }
.hero-card {
  background: rgba(255,255,255,0.045); border: 1px solid var(--line-dark); border-radius: 6px;
  padding: clamp(24px, 4vw, 36px); backdrop-filter: blur(4px);
}
.hero-card h2 { color: #fff; font-size: 1.4rem; }
.hero-card ul { list-style: none; padding: 0; margin: 18px 0 0; }
.hero-card li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,0.09); color: #d8e0ea; font-size: 0.96rem; }
.hero-card li:first-child { border-top: 0; }
.hero-card .tick { color: var(--gold); flex: none; margin-top: 2px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-card { order: 2; } }

/* ---------- feature cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 30px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative; overflow: hidden;
}
.feature::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-dark); }
.feature:hover::before { transform: scaleY(1); }
.feature .ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold); margin-bottom: 18px; }
.feature h3 { font-size: 1.22rem; margin-bottom: 0.4em; }
.feature p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ---------- split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 6px; overflow: hidden; }
.stat-band .cell { background: var(--navy); padding: 26px 22px; text-align: center; }
.stat-band strong { font-family: var(--ff-display); color: var(--gold); font-size: clamp(1.6rem,4vw,2.3rem); display: block; line-height: 1; }
.stat-band span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: #c7d2e0; }

/* ---------- practice cards ---------- */
.pcard {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: 6px; padding: 28px 26px; height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.pcard .num { font-family: var(--ff-display); color: var(--gold); font-size: 0.9rem; letter-spacing: 0.1em; }
.pcard h3 { font-size: 1.2rem; margin: 6px 0 0.5em; }
.pcard p { color: var(--muted); font-size: 0.94rem; margin: 0 0 1em; }
.pcard .more { margin-top: auto; color: var(--red); font-weight: 600; font-size: 0.9rem; display: inline-flex; gap: 6px; align-items: center; }
.pcard:hover .more { text-decoration: underline; }

/* ---------- process timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; margin-top: 14px; }
@media (max-width: 820px) { .timeline { grid-template-columns: 1fr 1fr; gap: 28px 0; } }
@media (max-width: 480px) { .timeline { grid-template-columns: 1fr; } }
.step { position: relative; padding: 0 22px; }
.step .dot {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 1.3rem; background: var(--navy-700); color: var(--gold);
  border: 1px solid var(--line-dark); margin-bottom: 18px;
}
.step::before { content: ""; position: absolute; top: 27px; left: calc(50% + 30px); right: calc(-50% + 30px); height: 1px; background: var(--line-dark); }
.step:last-child::before, .timeline.on-navy .step:last-child::before { display: none; }
@media (max-width: 820px) { .step::before { display: none; } }
.step h3 { font-size: 1.18rem; color: #fff; }
.step p { color: #b9c4d2; font-size: 0.93rem; margin: 0; }

/* ---------- testimonials ---------- */
.tcard { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 30px 28px; height: 100%; display: flex; flex-direction: column; }
.tcard .quote { font-family: var(--ff-serif); font-size: 1.05rem; color: var(--ink); line-height: 1.6; font-style: italic; }
.tcard .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; font-size: 0.95rem; }
.tcard .who { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 13px; }
.tcard .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-family: var(--ff-display); flex: none; }
.tcard .who b { display: block; font-family: var(--ff-body); color: var(--navy); font-size: 0.96rem; }
.tcard .who span { font-size: 0.84rem; color: var(--muted); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.section--navy .faq { border-color: var(--line-dark); }
.faq-item { border-bottom: 1px solid var(--line); }
.section--navy .faq-item { border-color: var(--line-dark); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--ff-serif); font-size: 1.08rem; font-weight: 600; color: var(--navy);
  padding: 22px 44px 22px 0; position: relative; display: block;
}
.section--navy .faq-q { color: #fff; }
.faq-q .pm { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--red); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.section--navy .faq-q .pm::before, .section--navy .faq-q .pm::after { background: var(--gold); }
.faq-q .pm::before { left: 0; right: 0; top: 10px; height: 2px; }
.faq-q .pm::after { top: 0; bottom: 0; left: 10px; width: 2px; }
.faq-q[aria-expanded="true"] .pm::after { transform: scaleY(0); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 44px 24px 0; color: var(--muted); }
.section--navy .faq-a-inner { color: #c4cedb; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(900px 400px at 85% 120%, rgba(212,175,55,0.16), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, #0e2a4e 100%);
  color: #fff; border-radius: 8px; padding: clamp(40px, 6vw, 70px); text-align: center; position: relative; overflow: hidden;
  border: 1px solid var(--line-dark);
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.cta-band p { color: #cdd8e6; max-width: 56ch; margin-inline: auto; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #b9c4d2; padding-top: clamp(50px, 7vw, 80px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand .wordmark b { color: #fff; }
.footer-brand .brand .wordmark span { color: var(--gold-soft); }
.footer-brand p { color: #9fb0c2; font-size: 0.92rem; margin-top: 16px; max-width: 34ch; }
.footer-col h4 { color: #fff; font-family: var(--ff-body); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: #b9c4d2; font-size: 0.93rem; }
.footer-col a:hover { color: var(--gold); text-decoration: none; }
.footer-disclaimer { color: #8ca0b5; font-size: 0.86rem; line-height: 1.6; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-block: 26px; font-size: 0.85rem; color: #8ca0b5; }
.footer-bottom a { color: #b9c4d2; }

/* ---------- page hero (interior) ---------- */
.page-hero { position: relative; color: #eef2f7; background: linear-gradient(160deg, #0a1c33, var(--navy) 60%, #0e2748); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; opacity: 0.4; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 100% 44px; }
.page-hero .wrap { position: relative; z-index: 2; padding-block: clamp(56px, 8vw, 96px); }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); }
.page-hero .lede { color: #c7d2e0; }
.breadcrumb { font-size: 0.84rem; color: var(--gold-soft); margin-bottom: 20px; }
.breadcrumb a { color: var(--gold-soft); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #7e93ab; margin: 0 8px; }

/* ---------- prose (blog + practice detail) ---------- */
.prose { max-width: 740px; }
.prose h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-top: 1.8em; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.32rem; margin-top: 1.5em; color: var(--navy-700); }
.prose p, .prose li { color: #2c3744; }
.prose a:not(.btn) { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { margin: 1.6em 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--gold); font-family: var(--ff-serif); font-style: italic; font-size: 1.12rem; color: var(--navy); }
.prose ul li::marker { color: var(--gold); }
/* embedded CTA band inside an article keeps its dark-section styling */
.prose .cta-band h2 { color: #fff; }
.prose .cta-band p { color: #cdd8e6; }
.prose .cta-band .btn--gold { color: var(--navy); }
.prose .cta-band .btn--onnavy { color: #fff; }
.prose .cta-band .btn--onnavy:hover { color: var(--navy); }
.prose .related-box a { color: var(--gold-soft); text-decoration: none; }
.prose .related-box a:hover { color: #fff; text-decoration: underline; }

.toc { background: var(--cream); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 6px; padding: 24px 28px; margin-bottom: 36px; }
.toc h2 { font-size: 1.1rem; margin: 0 0 12px; font-family: var(--ff-body); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy); }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
@media (max-width: 600px){ .toc ol { columns: 1; } }
.toc a { color: var(--navy-700); text-decoration: none; font-size: 0.95rem; }
.toc a:hover { color: var(--red); text-decoration: underline; }

.related-box { background: var(--navy); color: #d8e0ea; border-radius: 8px; padding: 30px 32px; margin: 40px 0; }
.related-box h3 { color: #fff; font-size: 1.2rem; }
.related-box ul { list-style: none; padding: 0; margin: 14px 0 0; }
.related-box li { padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.related-box li:first-child { border-top: 0; }
.related-box a { color: var(--gold-soft); font-weight: 500; }
.related-box a:hover { color: #fff; }

.article-meta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; color: var(--muted); font-size: 0.88rem; margin-bottom: 8px; }
.tag { display: inline-block; background: var(--cream); border: 1px solid var(--line); color: var(--navy); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 40px; }

/* ---------- blog index cards + search ---------- */
.search-bar { position: relative; max-width: 520px; margin: 0 0 36px; }
.search-bar input {
  width: 100%; padding: 15px 18px 15px 48px; font-family: var(--ff-body); font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink);
}
.search-bar input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.18); }
.search-bar .si { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.no-results { color: var(--muted); padding: 30px 0; display: none; }

.blogcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; height: 100%; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.blogcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.blogcard .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy), #14365f); position: relative; display: grid; place-items: center; }
.blogcard .thumb span { font-family: var(--ff-display); color: var(--gold); font-size: 2.4rem; opacity: 0.5; }
.blogcard .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.blogcard h3 { font-size: 1.18rem; margin: 12px 0 0.5em; color: var(--navy); }
.blogcard p { color: var(--muted); font-size: 0.93rem; margin: 0 0 1em; }
.blogcard .more { margin-top: auto; color: var(--red); font-weight: 600; font-size: 0.88rem; }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 7px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font-family: var(--ff-body); font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.18); background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.84rem; color: var(--muted); margin-top: 4px; }
.form-status { display: none; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.95rem; }
.form-status.ok { display: block; background: #eef6ee; border: 1px solid #bcd9bd; color: #2c5e30; }

.info-card { background: var(--navy); color: #d8e0ea; border-radius: 8px; padding: 32px; }
.info-card h3 { color: #fff; }
.info-card .row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.info-card .row:first-of-type { border-top: 0; }
.info-card .row .ic { color: var(--gold); flex: none; margin-top: 2px; }
.info-card .row b { color: #fff; display: block; font-family: var(--ff-body); }
.map-embed { aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, #dfe6ee, #eef2f6); position: relative; display: grid; place-items: center; text-align: center; }
.map-embed .pin { color: var(--red); }
.map-embed .ml { position: absolute; inset: 0; opacity: 0.5; background-image: linear-gradient(rgba(11,31,58,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(11,31,58,0.08) 1px, transparent 1px); background-size: 38px 38px; }
.map-embed .label { position: relative; z-index: 2; color: var(--navy); }

/* ---------- trust strip ---------- */
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 5vw, 60px); align-items: center; }
.trust-strip .item { display: flex; align-items: center; gap: 11px; color: #c7d2e0; font-size: 0.9rem; }
.trust-strip .item .ic { color: var(--gold); }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--gold); border: 1px solid var(--line-dark); cursor: pointer;
  display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, background .3s; box-shadow: var(--shadow-md);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--red); color: #fff; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- misc ---------- */
.intro-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px,5vw,60px); }
@media (max-width: 820px){ .intro-grid { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; gap: 12px; padding: 9px 0; align-items: flex-start; }
.checklist .tick { color: var(--gold); flex: none; margin-top: 3px; }
hr.div { border: 0; border-top: 1px solid var(--line); margin: 0; }
.pa-block { padding-block: clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.pa-block:last-child { border-bottom: 0; }
.pa-index { display: flex; flex-wrap: wrap; gap: 10px; }
.pa-index a { font-size: 0.86rem; padding: 7px 14px; border: 1px solid var(--line); border-radius: 40px; color: var(--navy); background: #fff; }
.pa-index a:hover { background: var(--navy); color: #fff; text-decoration: none; border-color: var(--navy); }
