/* Evyatar Himi, law firm & notary: navy and gold design (v2). */

:root {
  --navy-950: #060d18;
  --navy-900: #0a1526;
  --navy-800: #0f1d33;
  --navy-700: #172843;
  --navy-600: #22385a;
  --gold: #d5b05a;
  --gold-light: #f2d98f;
  --gold-dark: #a67b26;
  --gold-grad: linear-gradient(180deg, #f4dc94 0%, #d8b25c 48%, #b38630 100%);
  --cream: #f7f2e6;
  --text: #e8edf4;
  --muted: #a7b3c5;
  --line: rgba(213, 176, 90, .28);
  --line-soft: rgba(255, 255, 255, .08);
  --radius: 10px;
  --font: "Heebo", "Arial Hebrew", Arial, sans-serif;
  --serif: "Frank Ruhl Libre", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--navy-900);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1220px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; top: -100px; right: 16px; z-index: 100; background: var(--gold); color: var(--navy-900); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { top: 10px; }
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border-radius: 999px;
  font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn svg { font-size: 19px; }
.btn-gold { background: var(--gold-grad); color: var(--navy-900); box-shadow: 0 6px 18px rgba(213, 176, 90, .25); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(213, 176, 90, .35); }
.btn-ghost { border: 1.5px solid var(--gold); color: var(--gold-light); }
.btn-ghost:hover { background: rgba(213, 176, 90, .1); }
.link-gold { color: var(--gold-light); font-weight: 700; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link-gold:hover { border-color: var(--gold-light); }
.tag-new {
  display: inline-block; font-style: normal;
  background: var(--gold-grad); color: var(--navy-900);
  font-size: 12px; font-weight: 800; line-height: 1;
  padding: 4px 8px; border-radius: 999px;
}

/* Top bar */
.topbar { background: var(--navy-950); border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; }
.topbar ul { display: flex; flex-wrap: wrap; }
.topbar a { display: flex; align-items: center; gap: 6px; padding: 8px 10px; }
.topbar a:hover { color: var(--gold-light); }
.topbar svg { color: var(--gold); font-size: 15px; }
.topbar .lbl-short { display: none; }
.topbar .lang a { color: var(--gold-light); font-weight: 700; }
.footer-lang { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-light); font-weight: 700; }
.footer-lang svg { color: var(--gold); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 21, 38, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { display: block; height: 76px; width: auto; max-width: none; }
.footer-brand .logo img { height: 80px; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-weight: 500; font-size: 16px;
  border-radius: 6px;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li.open > a { color: var(--gold-light); }
.main-nav a[aria-current="page"] { color: var(--gold-light); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.mega-trigger svg { font-size: 15px; transition: transform .2s; }
.has-mega.open .mega-trigger svg { transform: rotate(180deg); }
.nav-toggle { display: none; }

/* Mega menu */
.has-mega { position: static; }
.mega {
  position: absolute; inset-inline: 0; top: 100%;
  width: min(1220px, 100% - 40px); margin-inline: auto;
  display: none; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 26px;
  padding: 26px 30px;
  background: var(--navy-800);
  border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .45);
}
.has-mega.open .mega { display: grid; }
.mega h3 { font-size: 15px; letter-spacing: .03em; padding-bottom: 6px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.mega h3 a { padding: 0; color: var(--gold); font-size: inherit; }
.mega h3 a:hover { background: none; }
.mega-col:first-child ul { columns: 2; column-gap: 24px; }
.mega li { break-inside: avoid; }
.mega a { display: flex; align-items: center; gap: 10px; padding: 7px 4px; font-size: 15px; border-radius: 6px; }
.mega a:hover { color: var(--gold-light); background: rgba(255, 255, 255, .04); }
.mega a svg { color: var(--gold); font-size: 20px; }

/* Hero */
.hero {
  position: relative; z-index: 3; /* keeps the values strip above the areas section */
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(64, 104, 160, .28), transparent 60%),
    radial-gradient(700px 400px at 90% 90%, rgba(213, 176, 90, .08), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  padding-top: 48px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 32px; }
.announce {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 8px 6px 16px; margin-bottom: 22px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(213, 176, 90, .08);
  font-weight: 500; font-size: 15px; color: var(--gold-light);
}
.announce:hover { background: rgba(213, 176, 90, .16); }
.announce span { font-size: 20px; line-height: 1; }
.hero h1 { font-size: clamp(30px, 3.7vw, 50px); font-weight: 800; letter-spacing: -.01em; }
.hero h1 span { display: block; }
.gold-rule { width: 260px; max-width: 70%; height: 3px; margin: 22px 0 18px; background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-light) 70%, transparent); border-radius: 3px; }
.hero-name { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; margin-bottom: 4px; color: #fff; }
.hero-creds { font-size: 17px; color: var(--gold-light); font-weight: 500; margin-bottom: 4px; }
.hero-creds em { font-style: normal; color: var(--gold-dark); padding-inline: 6px; }
.hero-sub { color: var(--muted); font-size: 17px; }
/* Handwritten note about the office and its owner, next to the photo. */
.hero-note {
  position: relative; max-width: 520px; margin: 18px 0 0; padding-inline-start: 22px;
  font-family: "Playpen Sans Hebrew", "Segoe Print", cursive; font-weight: 400; font-size: 19px; line-height: 1.6;
  color: var(--text);
}
.hero-note::before { content: ""; position: absolute; inset-block: 6px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--gold-grad); }
.hero-note strong { display: block; font-weight: 600; font-size: 23px; color: var(--gold-light); margin-bottom: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-photo { margin: 0; position: relative; justify-self: end; width: 100%; max-width: 580px; }
.hero-photo img {
  width: 100%;
  border-radius: var(--radius);
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 22%), linear-gradient(to top, transparent 0, #000 18%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, transparent 0, #000 22%), linear-gradient(to top, transparent 0, #000 18%);
  mask-composite: intersect;
}

.values-strip {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 40px; margin-bottom: -28px;
  background: var(--gold-grad); color: var(--navy-900);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}
.values-strip li { padding: 14px 18px; text-align: center; font-weight: 800; font-size: 17px; }
.values-strip li + li { border-inline-start: 1px solid rgba(10, 21, 38, .25); }

/* Practice areas: home topic cards */
.areas { position: relative; z-index: 2; padding: 96px 0 80px; background: var(--navy-900); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.eyebrow { color: var(--gold); font-weight: 700; font-size: 15px; letter-spacing: .06em; margin-bottom: 4px; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; color: #fff; margin-bottom: 8px; }
.section-head h2::after { content: ""; display: block; width: 70px; height: 3px; margin: 12px auto 0; background: var(--gold-grad); border-radius: 3px; }
.section-head p { color: var(--muted); }

.topic-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.topic-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line-soft); border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  transition: border-color .15s;
}
.topic-card:hover, .topic-card.open { border-color: var(--gold); }
.topic-card > .tag-new { position: absolute; top: -11px; inset-inline-start: 16px; }
.topic-main { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 18px 18px; }
.topic-main .ico {
  display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 6px;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--gold); font-size: 32px; background: rgba(213, 176, 90, .06);
}
.topic-main strong { font-size: 20px; font-weight: 800; color: #fff; line-height: 1.3; }
.topic-main:hover strong { color: var(--gold-light); }
.topic-main small { font-size: 15px; color: var(--muted); line-height: 1.5; }
.topic-toggle {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--gold-light);
  background: rgba(213, 176, 90, .06);
  border: 0; border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
}
.topic-toggle svg { transition: transform .2s; }
.topic-card.open .topic-toggle svg { transform: rotate(180deg); }
.topic-menu {
  display: none; position: absolute; z-index: 10;
  top: calc(100% - 1px); inset-inline: -1px;
  padding: 8px 10px 10px;
  background: var(--navy-800);
  border: 1px solid var(--gold); border-top-color: var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 22px 40px rgba(0, 0, 0, .5);
}
.topic-card.open .topic-menu { display: block; }
@media (hover: hover) {
  .topic-card:hover .topic-menu { display: block; }
  .topic-card:hover .topic-toggle svg { transform: rotate(180deg); }
}
.topic-menu a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; font-size: 15px; line-height: 1.35; border-radius: 6px; }
.topic-menu a:hover { color: var(--gold-light); background: rgba(255, 255, 255, .05); }
.topic-menu svg { color: var(--gold); font-size: 19px; }
.topic-menu .tag-new { margin-inline-start: auto; }
.topic-all { justify-content: center; margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 !important; padding-top: 10px !important; color: var(--gold-light); font-weight: 700; }

/* Topic page */
.topic-page { padding: 40px 0 64px; }
.topic-head { text-align: center; max-width: 780px; margin: 0 auto 34px; }
.topic-head h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; color: #fff; margin-bottom: 10px; }
.topic-lead { color: var(--muted); font-size: 18px; }
.topic-others { padding: 0 0 76px; text-align: center; }
.topic-others h2 { font-size: 20px; color: var(--gold-light); margin-bottom: 16px; }

.area-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.area-tile {
  position: relative; height: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 18px 18px 46px;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  transition: border-color .15s, transform .15s, background .15s;
}
.area-tile:hover { border-color: var(--gold); transform: translateY(-2px); background: linear-gradient(180deg, var(--navy-600), var(--navy-700)); }
.area-tile .ico {
  display: grid; place-items: center; flex: none;
  width: 56px; height: 56px;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--gold); font-size: 30px;
  background: rgba(213, 176, 90, .06);
}
.area-tile .txt { display: flex; flex-direction: column; line-height: 1.4; }
.area-tile strong { font-size: 17px; font-weight: 700; color: #fff; }
.area-tile small { font-size: 14.5px; color: var(--muted); margin-top: 3px; }
.area-tile .go { position: absolute; inset-inline-end: 16px; top: 50%; translate: 0 -50%; color: var(--gold); font-size: 20px; transition: inset-inline-end .15s; }
.area-tile:hover .go { inset-inline-end: 12px; }
.area-tile .tag-new { position: absolute; top: -9px; inset-inline-start: 18px; }
.area-tile.is-new { border-color: var(--line); }

/* Calculators */
.calcs { padding: 8px 0 76px; background: var(--navy-900); }
.calc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.calc-card a {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 26px 22px 22px;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  transition: transform .15s, border-color .15s;
}
.calc-card a:hover { transform: translateY(-3px); border-color: var(--gold); }
.calc-card .ico { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 6px; border-radius: 50%; background: var(--gold-grad); color: var(--navy-900); font-size: 32px; }
.calc-card strong { font-size: 20px; font-weight: 800; color: #fff; }
.calc-card small { font-size: 15px; color: var(--muted); }
.calc-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--gold-light); font-weight: 700; font-size: 15px; }
.calc-go svg { font-size: 17px; }
.calc-cards.compact { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
.calc-cards.compact .calc-card .ico { width: 48px; height: 48px; font-size: 24px; }
.calc-cards.compact .calc-card strong { font-size: 17px; }

.calc-page { padding: 40px 0 72px; }
.calc-page h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: #fff; }
.calc-lead { color: var(--muted); margin: 8px 0 28px; }
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.calc-form, .calc-result { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-800); }
.calc-form { display: grid; gap: 16px; }
.calc-form label { display: grid; gap: 6px; font-weight: 500; }
.calc-form input {
  font: inherit; font-size: 18px; color: #fff;
  padding: 10px 14px; border-radius: 8px;
  background: var(--navy-900); border: 1px solid var(--line-soft);
}
.calc-form input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(213, 176, 90, .25); }
.calc-result { display: flex; flex-direction: column; justify-content: center; text-align: center; background: linear-gradient(180deg, var(--navy-700), var(--navy-800)); }
.calc-result .lbl { color: var(--gold); font-weight: 700; margin: 0; }
.calc-result .big { font-size: clamp(36px, 5vw, 54px); font-weight: 800; color: #fff; margin: 4px 0 18px; }
.calc-result dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.calc-result dl div { padding: 12px; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.calc-result dt { font-size: 14px; color: var(--muted); }
.calc-result dd { margin: 0; font-size: 20px; font-weight: 700; color: var(--gold-light); }
.calc-note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.calc-more h2 { font-size: 22px; color: var(--gold-light); margin: 44px 0 16px; }

/* Footer: logo + contact, site map by topic, legal links */
.site-footer { background: var(--navy-950); border-top: 1px solid var(--line); padding-top: 40px; font-size: 15px; color: var(--muted); }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; padding-bottom: 30px; border-bottom: 1px solid var(--line-soft); }
.footer-brand p { margin: 10px 0 0; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-contact .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.footer-sitemap { padding-top: 28px; }
.footer-sitemap > h2 { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--gold); margin-bottom: 16px; }
.sitemap-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 28px; }
.sitemap-grid h3 { font-size: 16px; margin-bottom: 10px; }
.sitemap-grid h3 a { color: #fff; }
.sitemap-grid h4 { font-size: 14px; color: var(--gold); margin: 16px 0 8px; }
.footer-links li + li { margin-top: 5px; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px;
  margin-top: 32px; padding: 16px 0 90px; /* room for the floating buttons */
  border-top: 1px solid var(--line-soft); font-size: 13.5px;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: 14.5px; }
.footer-legal a, .a11y-open:not(.a11y-fab) { color: var(--text); }
.footer-legal button { display: inline-flex; align-items: center; gap: 6px; padding: 0; font: inherit; font-weight: 700; background: none; border: 0; cursor: pointer; }
.footer-legal button svg { color: var(--gold); font-size: 18px; }
.footer-legal button:hover { color: var(--gold-light); }

.float-wa {
  position: fixed; bottom: 20px; left: 20px; z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px;
  background: #25d366; color: #fff; border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35); font-size: 30px;
}

/* Accessibility toolbar */
.a11y-fab {
  position: fixed; bottom: 20px; right: 20px; z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; padding: 0;
  background: #1f5fbf; color: #fff; border: 2px solid #fff; border-radius: 50%; cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35); font-size: 32px;
}
.a11y-panel {
  position: fixed; bottom: 86px; right: 20px; z-index: 60;
  width: min(300px, 100vw - 40px);
  padding: 14px; font-size: 15px;
  background: var(--navy-800); color: var(--text);
  border: 1px solid var(--gold); border-radius: var(--radius);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .55);
}
.a11y-panel button {
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 9px 10px; border-radius: 8px;
  background: var(--navy-700); color: var(--text); border: 1px solid var(--line);
}
.a11y-panel button:hover { border-color: var(--gold); }
.a11y-panel button[aria-pressed="true"] { background: var(--gold-grad); color: var(--navy-900); border-color: transparent; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.a11y-head strong { color: var(--gold-light); font-size: 17px; }
.a11y-panel .a11y-close { padding: 0 10px; font-size: 22px; line-height: 1.4; }
.a11y-size { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; margin-bottom: 10px; }
.a11y-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.a11y-foot a { color: var(--gold-light); text-decoration: underline; }

html.a11y-contrast {
  --navy-950: #000; --navy-900: #000; --navy-800: #000; --navy-700: #000; --navy-600: #1a1a1a;
  --text: #fff; --muted: #fff; --gold: #ffd84d; --gold-light: #ffe680; --gold-dark: #ffd84d;
  --gold-grad: #ffd84d; --line: #ffd84d; --line-soft: rgba(255, 255, 255, .6);
}
html.a11y-contrast .hero, html.a11y-contrast .site-header { background: #000; }
html.a11y-contrast .hero-photo img { -webkit-mask-image: none; mask-image: none; }
html.a11y-links a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
html.a11y-links a:not(.btn):hover { background: #ffd84d; color: #000; }
html.a11y-font body, html.a11y-font body * { font-family: Arial, sans-serif !important; letter-spacing: .02em; }
html.a11y-motion, html.a11y-motion * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }

/* Content pages: hero, article + side column, closing contact band */
.page-hero {
  padding: 34px 0 40px;
  background:
    radial-gradient(800px 360px at 15% 0%, rgba(64, 104, 160, .25), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border-bottom: 1px solid var(--line-soft);
}
.page-hero .breadcrumbs { margin-bottom: 22px; }
.page-hero h1 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 800; color: #fff; margin-bottom: 14px; }
.page-hero h1 .gold-text { display: block; font-size: .62em; margin-top: 6px; }
.page-lead { max-width: 820px; font-size: 19px; color: var(--text); margin: 0; }
.page-hero.with-photo .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: center; }
.page-photo { margin: 0; }
.page-photo img {
  width: 100%; border-radius: var(--radius);
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 20%);
  mask-image: linear-gradient(to left, transparent 0, #000 20%);
}

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; padding-block: 48px 64px; }
.content > section + section { margin-top: 56px; }
.content > section { scroll-margin-top: 112px; }
.content h2 { font-size: clamp(25px, 2.6vw, 32px); font-weight: 800; color: #fff; margin-bottom: 10px; }
.content h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 10px; background: var(--gold-grad); border-radius: 3px; }
.content p { color: var(--text); }
.content a:not(.link-gold) { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.content-note { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 14.5px; color: var(--muted) !important; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.compare-card { padding: 22px 24px; background: linear-gradient(180deg, var(--navy-700), var(--navy-800)); border: 1px solid var(--line-soft); border-top: 3px solid var(--gold); border-radius: var(--radius); }
.compare-card h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; color: var(--gold-light); margin-bottom: 12px; }
.compare-card h3 svg { font-size: 28px; color: var(--gold); }
.compare-card ul { margin-bottom: 14px; }
.compare-card li { position: relative; padding-inline-start: 20px; font-size: 16px; line-height: 1.6; }
.compare-card li + li { margin-top: 8px; }
.compare-card li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.compare-card strong { color: #fff; }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.points > div { padding: 20px; background: linear-gradient(180deg, var(--navy-700), var(--navy-800)); border: 1px solid var(--line-soft); border-top: 3px solid var(--gold); border-radius: var(--radius); }
.points [data-icon] { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-size: 26px; }
.points h3 { font-size: 18px; color: #fff; margin-bottom: 6px; }
.points p { font-size: 15.5px; color: var(--muted) !important; margin: 0; line-height: 1.6; }

/* Sub-heading inside a long section (poa-wills). */
.content .sub-h { font-size: 21px; color: var(--gold-light); margin: 34px 0 4px; }

/* One-page service list (notary): each card is an anchor target from the menus. */
.services { display: grid; gap: 14px; margin-top: 18px; }
.services > div { display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; padding: 20px 22px; background: linear-gradient(180deg, var(--navy-700), var(--navy-800)); border: 1px solid var(--line-soft); border-inline-start: 3px solid var(--gold); border-radius: var(--radius); scroll-margin-top: 112px; transition: box-shadow .3s; }
.services > div:target { box-shadow: 0 0 0 2px var(--gold); }
.services [data-icon] { grid-row: span 2; display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-size: 27px; }
.services h3 { font-size: 19px; color: #fff; margin: 2px 0 4px; }
.services p { font-size: 16px; color: var(--muted) !important; margin: 0; line-height: 1.65; }
@media (max-width: 640px) { .services > div { grid-template-columns: 1fr; } .services [data-icon] { grid-row: auto; margin-bottom: 10px; } }

.ticks { margin-top: 16px; display: grid; gap: 10px; }
.ticks li { position: relative; padding: 12px 16px; padding-inline-start: 46px; border-radius: 8px; background: rgba(213, 176, 90, .06); border: 1px solid var(--line-soft); }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 16px; top: 12px; color: var(--gold); font-weight: 800; }
.ticks strong { color: var(--gold-light); }

.checks { counter-reset: check; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.checks li { counter-increment: check; position: relative; padding: 18px 20px 16px 20px; padding-inline-start: 66px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(255, 255, 255, .02); }
.checks li::before {
  content: counter(check); position: absolute; inset-inline-start: 18px; top: 18px;
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--gold-grad); color: var(--navy-900); font-weight: 800;
}
.checks h3 { font-size: 17px; color: #fff; margin-bottom: 4px; }
.checks p { font-size: 15.5px; color: var(--muted) !important; margin: 0; line-height: 1.6; }

.steps { counter-reset: step; margin: 18px 0 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px; padding-inline-start: 58px; }
.steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 0;
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 2px solid var(--gold); border-radius: 50%; color: var(--gold-light); font-weight: 800; background: var(--navy-900);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 18px; top: 40px; bottom: 2px; width: 2px; background: var(--line); }
.steps strong { display: block; font-size: 18px; color: #fff; padding-top: 5px; }
.steps span { color: var(--muted); font-size: 16px; }

.faq { margin-top: 18px; border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 4px; cursor: pointer; list-style: none;
  font-size: 17.5px; font-weight: 700; color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 400; line-height: 1; color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--gold-light); }
.faq details p { padding: 0 4px 18px; margin: 0; }

.content-side { position: sticky; top: 108px; display: grid; gap: 16px; }
.contact-box { padding: 22px; border: 1px solid var(--gold); border-radius: var(--radius); background: linear-gradient(180deg, var(--navy-700), var(--navy-800)); box-shadow: 0 16px 34px rgba(0, 0, 0, .3); }
.contact-box h2 { font-size: 21px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.contact-box p { font-size: 15.5px; color: var(--muted); margin-bottom: 16px; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-box .contact-btns { flex-direction: column; }
.contact-box .btn { width: 100%; }
.side-box { padding: 18px 20px; border: 1px solid var(--line-soft); border-radius: var(--radius); font-size: 15.5px; }
.side-box h2 { font-size: 15px; color: var(--gold); margin-bottom: 8px; }
.side-box li + li { margin-top: 6px; }
.side-box a:hover { color: var(--gold-light); }

.related-band { padding: 0 0 64px; text-align: center; }
.related-band h2 { font-size: 20px; color: var(--gold-light); margin-bottom: 16px; }

.page-cta { background: linear-gradient(180deg, var(--navy-800), var(--navy-950)); border-top: 1px solid var(--line); padding: 40px 0; }
.page-cta .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; }
.page-cta h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; color: #fff; }
.page-cta p { color: var(--muted); margin: 4px 0 0; }
.page-cta + .site-footer { border-top-color: var(--line-soft); }

/* Contact page: form + details column */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; padding-block: 48px 72px; }
.contact-form-wrap h2 { font-size: clamp(25px, 2.6vw, 32px); font-weight: 800; color: #fff; margin-bottom: 18px; }
.contact-form-wrap h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 10px; background: var(--gold-grad); border-radius: 3px; }
.contact-form { display: grid; gap: 16px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-800); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 500; }
.contact-form .req { color: var(--gold); }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea {
  font: inherit; font-size: 17px; color: var(--text);
  padding: 10px 14px; border-radius: 8px;
  background: var(--navy-900); border: 1px solid var(--line-soft);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form select { width: 100%; min-width: 0; } /* long subject names must not widen the form on phones */
.contact-form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* spam trap, hidden from people (no offset: in RTL a left offset adds a sideways scroll) */
.contact-form :is(input, select, textarea):focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(213, 176, 90, .25); }
.contact-form.tried :invalid { border-color: #e0736b; }
.contact-form .check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-size: 15px; font-weight: 400; color: var(--muted); }
.contact-form .check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--gold); }
.contact-form .check a { color: var(--gold-light); text-decoration: underline; }
.contact-form.tried .check input:invalid { outline: 2px solid #e0736b; outline-offset: 2px; }
.contact-form .btn { justify-self: start; min-width: 180px; }
.form-error { margin: 0; color: #f0a19a; font-weight: 700; }
.form-done { padding: 30px 26px; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--navy-800); }
.form-done h3 { font-size: 22px; color: var(--gold-light); margin-bottom: 8px; }
.form-done p { margin: 0; }
.contact-details { display: grid; gap: 16px; }
.contact-list { display: grid; gap: 4px; }
.contact-list a { display: flex; align-items: center; gap: 14px; padding: 10px 4px; border-radius: 8px; }
.contact-list a:hover { background: rgba(255, 255, 255, .05); }
.contact-list svg { font-size: 24px; color: var(--gold); }
.contact-list span { display: flex; flex-direction: column; line-height: 1.35; }
.contact-list small { font-size: 13.5px; color: var(--muted); }
.contact-list b { font-size: 17px; color: #fff; }
.branch-box h2 { display: flex; align-items: center; gap: 6px; }
.branch-box p { margin: 0 0 8px; }

/* Placeholder page */
.placeholder { padding: 56px 0 80px; text-align: center; min-height: 50vh; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 30px; text-align: start; }
.breadcrumbs a { color: var(--gold-light); }
.ph-icon { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 16px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-size: 44px; }
.ph-icon:empty { display: none; }
.placeholder h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: #fff; margin-bottom: 14px; }
.ph-note { color: var(--muted); }
.placeholder .hero-actions { justify-content: center; }
.placeholder h2 { font-size: 20px; color: var(--gold-light); margin: 52px 0 16px; }
.ph-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ph-more a { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; }
.ph-more a:hover { border-color: var(--gold); color: var(--gold-light); }
.ph-more svg { color: var(--gold); font-size: 18px; }

/* Responsive */
@media (max-width: 1180px) {
  .topbar .branch .lbl-long, .topbar .mail .lbl-long { display: none; }
  .topbar .branch .lbl-short, .topbar .mail .lbl-short { display: inline; }
  .nav-cta { display: none; }
}
@media (max-width: 1020px) {
  .area-tiles, .topic-cards { grid-template-columns: repeat(2, 1fr); }
  .topic-cards { gap: 20px 16px; }
  .sitemap-grid { grid-template-columns: repeat(3, 1fr); }
  .values-strip li { font-size: 15px; padding: 12px 10px; }
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 0 11px;
    background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  }
  .nav-toggle span:not(.sr) { height: 2px; background: var(--gold-light); border-radius: 2px; }
  .main-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 96px); overflow-y: auto;
    background: var(--navy-800); border-bottom: 2px solid var(--gold);
    padding: 8px 20px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li > a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); border-radius: 0; justify-content: space-between; }
  .mega { position: static; width: auto; grid-template-columns: 1fr; gap: 16px; padding: 12px 4px 4px; border: 0; box-shadow: none; background: transparent; }
  .mega-col:first-child ul { columns: 1; }
  .nav-cta { display: inline-flex; margin-top: 16px; }

  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-photo { order: -1; justify-self: center; max-width: 460px; }
  .hero-photo img {
    -webkit-mask-image: linear-gradient(to top, transparent 0, #000 25%);
    mask-image: linear-gradient(to top, transparent 0, #000 25%);
  }
  .values-strip { grid-template-columns: 1fr; border-radius: var(--radius); margin: 28px 0 0; }
  .values-strip li + li { border-inline-start: 0; border-top: 1px solid rgba(10, 21, 38, .2); }
  .areas { padding-top: 56px; }
  .hero { padding-bottom: 8px; }
  .calc-layout { grid-template-columns: 1fr; gap: 16px; }
  /* Content pages: one column; the closing contact band replaces the side box. */
  .content-layout { grid-template-columns: 1fr; gap: 0; padding-block: 36px 48px; }
  .content-side { display: none; }
  .compare, .checks, .points { grid-template-columns: 1fr; }
  .page-lead { font-size: 17.5px; }
  .page-hero.with-photo .wrap { grid-template-columns: 1fr; gap: 24px; }
  .page-photo { max-width: 480px; }
  .page-photo img { -webkit-mask-image: none; mask-image: none; }
  .calc-cards, .calc-cards.compact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .topbar .wrap { flex-direction: column; gap: 0; }
  .topbar ul { justify-content: center; }
  .topbar ul + ul { border-top: 1px solid var(--line-soft); }
  .topbar a { padding: 6px 8px; }
  .site-header > .wrap { min-height: 72px; gap: 12px; }
  .logo img { height: 52px; }
  .footer-brand .logo img { height: 68px; }
  .area-tiles, .topic-cards { grid-template-columns: 1fr; }
  .topic-main { padding: 20px 16px 14px; }
  /* On phones the sub-topic list opens inside the card instead of floating over the next one. */
  .topic-menu { position: static; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: none; }
  .area-tile { padding: 14px 14px 14px 40px; }
  .area-tile .ico { width: 48px; height: 48px; font-size: 26px; }
  .sitemap-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-contact .btn, .page-cta .btn { flex: 1 1 auto; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* English (left to right): mirror the few rules above that are written for right to left. */
[dir="ltr"] .skip-link { right: auto; left: 16px; }
[dir="ltr"] .topbar a { padding-inline: 7px; } /* English labels are wider; keeps the bar on one line */
[dir="ltr"] .announce { padding: 6px 16px 6px 8px; }
[dir="ltr"] .hero-photo img {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to top, transparent 0, #000 18%);
  mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to top, transparent 0, #000 18%);
}
[dir="ltr"] .page-photo img { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20%); mask-image: linear-gradient(to right, transparent 0, #000 20%); }
[dir="ltr"] .area-tile { padding: 18px 46px 18px 18px; }
[dir="ltr"] .float-wa { left: auto; right: 20px; }
[dir="ltr"] .a11y-fab, [dir="ltr"] .a11y-panel { right: auto; left: 20px; }
[dir="ltr"] .i-arrow { transform: scaleX(-1); }
[dir="ltr"] .hero h1 { font-size: clamp(30px, 3.3vw, 46px); letter-spacing: -.015em; }
@media (max-width: 640px) { [dir="ltr"] .area-tile { padding: 14px 40px 14px 14px; } }
