/* David Azran Law Office - redesign
   Tokens: one accent (logo gold), navy ink family, cool neutrals.
   Radius rule: interactive elements 10px, containers and media 18px.
   Z-index scale: header 30, mobile bar 40, skip link 50. */

:root {
  --bg: #f4f6f8;
  --surface: #fbfcfd;
  --surface-2: #e9edf2;
  --ink: #0e1b2a;
  --ink-2: #33414f;
  --muted: #56616e;
  --line: #d8dee6;
  --navy: #12304b;
  --gold: #b8923f;
  --gold-ink: #7f5f1c;
  --gold-soft: #efe6d2;
  --gold-light: #d2b46a;
  --panel: #12304b;
  --on-navy: #f3f5f8;
  --on-navy-2: #b9c6d4;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  --btn-bg: #12304b;
  --btn-bg-hover: #0c2338;
  --btn-ink: #f6f8fa;
  --shadow: 0 1px 2px rgba(18, 48, 75, .06), 0 12px 32px -12px rgba(18, 48, 75, .18);
  --radius-ui: 10px;
  --radius-box: 18px;
  --container: 1240px;
  --font-display: "Frank Ruhl Libre", "David Libre", serif;
  --font-body: "Rubik", "Assistant", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --z-header: 30;
  --z-bar: 40;
  --z-skip: 50;
  color-scheme: light;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem) clamp(5rem, 10vw, 8rem); }
.section-title { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.section-lead { margin-top: 1rem; max-width: 60ch; color: var(--muted); font-size: 1.125rem; }
.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--gold-ink);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: var(--z-skip);
  background: var(--btn-bg); color: var(--btn-ink); padding: .75rem 1.25rem;
  border-radius: var(--radius-ui); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.6rem;
  border: 1px solid transparent; border-radius: var(--radius-ui);
  font: 600 1.0625rem/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}
.btn i { font-size: 1.25rem; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-primary .ph-arrow-left { transition: transform .25s var(--ease); }
.btn-primary:hover .ph-arrow-left { transform: translateX(-4px); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--gold); background: var(--surface); }
.btn-sm { min-height: 44px; padding: .55rem 1.1rem; font-size: 1rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--ink); font-weight: 600; text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 100% 100% / 0 1px;
  transition: background-size .3s var(--ease), color .2s;
}
.text-link:hover { background-size: 100% 1px; color: var(--gold-ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(18, 48, 75, .5); }
.brand img { transform-origin: right center; transition: transform .35s var(--ease); }
.site-header.is-stuck .brand img { transform: scale(.86); }
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--bg); backdrop-filter: none; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.main-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .5rem .8rem; border-radius: var(--radius-ui);
  color: var(--ink-2); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: var(--ink); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-phone { direction: ltr; }
.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-ui); background: var(--surface);
  color: var(--ink); font-size: 1.4rem; cursor: pointer;
}

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .header-phone span { display: none; }
  .header-phone { padding-inline: .8rem; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: .9rem .5rem; font-size: 1.125rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav li:last-child a { border-bottom: 0; }
  .main-nav a[aria-current="page"] { box-shadow: none; color: var(--gold-ink); }
}
@media (max-width: 420px) { .brand img { height: 38px; } }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.08; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--gold-ink); }
.hero-sub { margin-top: 1.5rem; max-width: 46ch; font-size: clamp(1.125rem, 1.6vw, 1.25rem); color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }
.hero-ctas .text-link { direction: rtl; }
.hero-ctas .text-link bdi { direction: ltr; }

.hero-media { margin: 0; justify-self: end; width: min(100%, 460px); }
.hero-frame { position: relative; padding: 0 0 1.75rem 1.75rem; }
.hero-frame::before {
  /* Echoes the double-square frame of the AD monogram */
  content: ""; position: absolute; inset: 1.75rem 1.75rem 0 0;
  border: 1px solid var(--gold); border-radius: var(--radius-box);
  box-shadow: inset 0 0 0 8px var(--panel), inset 0 0 0 9px color-mix(in srgb, var(--gold-light) 45%, transparent);
  border-color: var(--gold-light);
}
.hero-media img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-box); background: #fff; box-shadow: var(--shadow);
}
.hero-caption { margin-top: 1rem; padding-inline-start: .25rem; font-size: .95rem; color: var(--muted); }
.hero-caption strong { color: var(--ink); font-weight: 600; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { justify-self: center; width: min(100%, 380px); order: -1; }
  .hero h1 { max-width: none; }
}

/* Trust strip */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust ul {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  list-style: none; margin: 0; padding: 1.6rem 0;
}
.trust li { display: flex; align-items: center; gap: .9rem; color: var(--ink); font-weight: 500; }
.trust i { flex-shrink: 0; font-size: 1.6rem; color: var(--gold-ink); }
@media (max-width: 760px) { .trust ul { grid-template-columns: 1fr; gap: 1rem; } }

/* Services bento */
.services-grid {
  display: grid; margin-top: 3rem; gap: 1.25rem;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-areas: "main a b" "main c c";
}
.svc {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box);
  color: inherit; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.svc-media { overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc:hover .svc-media img { transform: scale(1.04); }
.svc-body { display: flex; flex-direction: column; gap: .6rem; flex: 1; padding: 1.5rem 1.6rem 1.6rem; }
.svc h3 { font-size: 1.6rem; }
.svc p { color: var(--muted); }
.svc .more { margin-top: auto; padding-top: .75rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--gold-ink); font-weight: 600; }
.svc .more i { transition: transform .3s var(--ease); }
.svc:hover .more i { transform: translateX(-4px); }

.svc--main { grid-area: main; }
.svc--main .svc-media { aspect-ratio: 4 / 3; }
.svc--main h3 { font-size: 2.1rem; }
.svc--main .svc-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.svc--main .svc-list li { padding: .3rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-ui); font-size: .95rem; color: var(--ink-2); }
.svc--a { grid-area: a; }
.svc--a .svc-media, .svc--b .svc-media { aspect-ratio: 16 / 10; }
.svc--b { grid-area: b; }
.svc--c {
  grid-area: c; flex-direction: row; align-items: stretch;
  background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 30%, var(--line));
}
.svc--c .svc-icon {
  display: grid; place-items: center; flex: 0 0 34%;
  font-size: 4.5rem; color: var(--gold-ink);
  border-inline-end: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
}
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "main main" "a b" "c c"; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; grid-template-areas: "main" "a" "b" "c"; }
  .svc--c { flex-direction: column; }
  .svc--c .svc-icon { flex-basis: auto; padding-block: 1.75rem 0; border: 0; font-size: 3.5rem; justify-items: start; padding-inline: 1.6rem; }
}

/* Process */
.process { background: var(--surface); border-block: 1px solid var(--line); }
.steps {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  margin: 3.5rem 0 0; padding: 0; list-style: none; counter-reset: step;
}
.steps::before {
  content: ""; position: absolute; inset-inline: 0; top: 23px; height: 1px;
  background: linear-gradient(to left, var(--gold), var(--line) 85%);
}
.step { position: relative; }
.step-node {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--gold);
  color: var(--gold-ink); font-size: 1.35rem;
}
.step h3 { margin-top: 1.4rem; font-size: 1.4rem; }
.step p { margin-top: .5rem; color: var(--muted); max-width: 30ch; }
.process-foot { margin-top: 3rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { inset-inline: auto; inset-inline-start: 23px; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(to bottom, var(--gold), var(--line)); }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 1.25rem; padding-bottom: 2rem; }
  .step:last-child { padding-bottom: 0; }
  .step h3 { margin-top: .6rem; }
  .step p { grid-column: 2; }
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-media { position: sticky; top: 104px; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-box); background: #fff; box-shadow: var(--shadow); }
.about-copy p { margin-top: 1.1rem; max-width: 62ch; font-size: 1.125rem; }
.about-copy p:first-of-type { margin-top: 1.5rem; color: var(--ink); font-size: 1.3rem; line-height: 1.6; }
.why-title { margin-top: 3rem; font-size: 1.5rem; }
.why {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem;
  margin: 1.25rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line);
}
.why li { display: flex; align-items: center; gap: .9rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.why i { font-size: 1.5rem; color: var(--gold-ink); flex-shrink: 0; }
.why small { display: block; color: var(--muted); font-weight: 400; font-size: .9rem; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { position: static; max-width: 380px; }
}
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }

/* Reviews */
.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; }
.google-badge { display: inline-flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .95rem; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); font-size: 1.05rem; }
.reviews-wall { margin-top: 3rem; columns: 3 300px; column-gap: 1.25rem; }
.review {
  break-inside: avoid; margin: 0 0 1.25rem; padding: 1.6rem 1.6rem 1.4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box);
}
.review blockquote { margin: .9rem 0 0; color: var(--ink); font-size: 1.075rem; line-height: 1.65; }
.review figcaption { margin-top: 1.1rem; display: flex; flex-direction: column; font-size: .95rem; }
.review figcaption strong { color: var(--ink); font-weight: 600; }
.review figcaption span { color: var(--muted); }
.review--feature { background: var(--navy); border-color: var(--navy); }
.review--feature blockquote { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.45; color: #f3f5f8; }
.review--feature figcaption strong { color: #fff; }
.review--feature figcaption span { color: #b9c6d4; }
.review--feature .stars { color: #d2b46a; }
/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-intro { position: sticky; top: 104px; }
.faq-intro .text-link { margin-top: 1.75rem; }
.faq-group + .faq-group { margin-top: 2.75rem; }
.faq-group h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--gold-ink); margin-bottom: .5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  color: var(--ink); font-weight: 600; font-size: 1.125rem; line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 50%; font-size: 1rem;
  transition: transform .3s var(--ease), border-color .3s, background-color .3s;
}
.faq summary:hover i { border-color: var(--gold); }
.faq details[open] summary i { transform: rotate(180deg); background: var(--gold-soft); border-color: var(--gold); }
.faq-answer { padding: 0 0 1.5rem; max-width: 65ch; color: var(--ink-2); }
.faq-answer p + p, .faq-answer p + ul, .faq-answer ul + p { margin-top: .8rem; }
.faq-answer ul { margin: .8rem 0 0; padding-inline-start: 1.25rem; }
.faq-answer li + li { margin-top: .3rem; }
.faq-note { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
}

/* Contact */
.contact-panel {
  display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box); box-shadow: var(--shadow);
}
.contact-form-wrap { padding: clamp(1.75rem, 4vw, 3.25rem); }
.contact-aside { padding: clamp(1.75rem, 4vw, 3.25rem); background: var(--surface-2); border-inline-start: 1px solid var(--line); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-weight: 600; font-size: .98rem; }
.field label .req { color: var(--gold-ink); }
.field input, .field select {
  min-height: 52px; padding: .75rem 1rem; width: 100%;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: var(--radius-ui);
  background: var(--bg); color: var(--ink); font: 400 1.0625rem var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.field input[type="tel"], .field input[type="email"] { direction: ltr; text-align: right; }
.field input::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }
.field .hint { color: var(--muted); font-size: .9rem; }
.field .error { display: none; align-items: center; gap: .35rem; color: #b42318; font-size: .92rem; font-weight: 500; }
.field.has-error input { border-color: #b42318; }
.field.has-error .error { display: inline-flex; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.form-actions .fine { color: var(--muted); font-size: .9rem; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .85; }
.btn .ph-spinner-gap { display: none; }
.btn[aria-busy="true"] .ph-spinner-gap { display: inline-block; animation: spin 1s linear infinite; }
.btn[aria-busy="true"] .ph-arrow-left { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { grid-column: 1 / -1; display: none; gap: .75rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--radius-ui); font-weight: 500; }
.form-status i { font-size: 1.4rem; flex-shrink: 0; }
.form-status.is-success { display: flex; background: color-mix(in srgb, #2f7d4f 12%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, #2f7d4f 40%, transparent); }
.form-status.is-success i { color: #2f7d4f; }
.form-status.is-error { display: flex; background: color-mix(in srgb, #b42318 10%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, #b42318 40%, transparent); }
.form-status.is-error i { color: #b42318; }

.channels { display: grid; gap: .75rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.channel {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-ui);
  text-decoration: none; color: var(--ink); transition: border-color .25s, transform .25s var(--ease);
}
a.channel:hover { border-color: var(--gold); transform: translateX(-3px); }
.channel i { font-size: 1.5rem; color: var(--gold-ink); }
.channel span { display: flex; flex-direction: column; line-height: 1.35; }
.channel small { color: var(--muted); font-size: .88rem; }
.channel b { font-weight: 600; }
.channel .ltr { direction: ltr; text-align: right; }
@media (max-width: 900px) {
  .contact-panel { grid-template-columns: 1fr; }
  .contact-aside { border-inline-start: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) { .contact-form { grid-template-columns: 1fr; } }

.section--flush-top { padding-top: 0; }
.aside-title { font-size: 1.5rem; }

/* Footer */
.site-footer { padding: 4rem 0 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { margin-top: 1rem; max-width: 34ch; color: var(--muted); font-size: .98rem; }
.site-footer h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--muted); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--gold-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.ltr { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .mobile-bar {
    position: fixed; inset: auto 0 0 0; z-index: var(--z-bar);
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { min-height: 48px; }
}

/* Service page */
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: .95rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: .5rem; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-ink); }
.page-hero .hero-grid { grid-template-columns: 1.15fr .85fr; }
.page-hero .hero-media { width: min(100%, 520px); }
.page-hero .hero-media img { aspect-ratio: 4 / 3; }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 3rem; }
.offer {
  display: flex; gap: 1.1rem; padding: 1.6rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box);
}
.offer i { font-size: 2rem; color: var(--gold-ink); flex-shrink: 0; }
.offer h3 { font-size: 1.35rem; }
.offer p { margin-top: .4rem; color: var(--muted); }
.offer:first-child { grid-row: span 2; flex-direction: column; background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 30%, var(--line)); }
.offer:first-child i { font-size: 3rem; }
.offer:first-child h3 { font-size: 1.75rem; margin-top: auto; }
@media (max-width: 760px) { .offer-grid { grid-template-columns: 1fr; } .offer:first-child { grid-row: auto; } }
.why-block { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.why-block p { margin-top: 1.1rem; max-width: 62ch; font-size: 1.125rem; }
.pull {
  margin: 0; padding: 2rem; border-radius: var(--radius-box);
  background: var(--navy); color: #f3f5f8;
}
.pull blockquote { margin: .9rem 0 0; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.45; }
.pull figcaption { margin-top: 1rem; color: #b9c6d4; font-size: .95rem; }
.pull .stars { color: #d2b46a; }
@media (max-width: 860px) { .why-block { grid-template-columns: 1fr; } }
.related { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* 404 */
.notfound { min-height: 70dvh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound .code { font-family: var(--font-display); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--gold); }
.notfound h1 { margin-top: 1rem; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.notfound p { margin: 1rem auto 0; max-width: 46ch; color: var(--muted); }
.notfound .hero-ctas { justify-content: center; }

/* Motion: reveal on scroll, hero entry. Off under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
  @keyframes fade { from { opacity: 0; transform: scale(.98); } }
}

/* Article pages */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.article-head h1 { font-size: clamp(2.25rem, 4.4vw, 3.4rem); line-height: 1.12; }
.article-head .lead { margin-top: 1.25rem; max-width: 62ch; font-size: 1.25rem; color: var(--ink); line-height: 1.65; }
.prose { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-top: 2.75rem; }
.prose h3 { font-size: 1.4rem; margin-top: 2.25rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin-top: 1rem; max-width: 68ch; font-size: 1.125rem; }
.prose ul { margin: 1rem 0 0; padding-inline-start: 1.25rem; max-width: 66ch; font-size: 1.125rem; }
.prose li + li { margin-top: .5rem; }
.side-card {
  position: sticky; top: 104px; padding: 1.75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box); box-shadow: var(--shadow);
}
.side-card h2 { font-size: 1.45rem; }
.side-card p { margin-top: .6rem; color: var(--muted); }
.side-card .btn { width: 100%; margin-top: 1.25rem; }
.side-card .text-link { margin-top: 1rem; }
.side-links { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.side-links h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--gold-ink); }
.side-links ul { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .45rem; }
.side-links a { color: var(--ink-2); text-decoration: none; }
.side-links a:hover { color: var(--gold-ink); }
@media (max-width: 960px) {
  .article-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
}
.why--wide { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .why--wide { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why--wide { grid-template-columns: 1fr; } }

/* ---- Editorial layer ---- */

/* Hero: navy panel bleeding to the viewport edge behind the media column */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::after {
  content: ""; position: absolute; z-index: -1; inset-block: 0; inset-inline-end: 0;
  width: calc((100vw - min(100vw - 2.5rem, var(--container))) / 2 + min(100vw - 2.5rem, var(--container)) * .455);
  background:
    var(--noise),
    radial-gradient(700px 480px at 35% 25%, rgba(210, 180, 106, .16), transparent 62%),
    linear-gradient(165deg, #173d5f, #0f2840 70%);
  background-blend-mode: soft-light, normal, normal;
  transform-origin: left center;
}
.hero .hero-caption { color: var(--on-navy-2); }
.hero .hero-caption strong { color: #fff; }
.hero-media { justify-self: center; }
@media (max-width: 860px) {
  /* Mobile: compact square portrait so the headline and call button fit in the first screen */
  .hero::after { inset-inline: 0; width: auto; inset-block: 0 auto; height: min(46vw, 210px); }
  .hero-media { order: -1; width: min(58%, 230px); }
  .hero:not(.page-hero) .hero-media img { aspect-ratio: 1 / 1; object-position: 50% 18%; }
  .hero .hero-frame { padding: 0 0 1.1rem 1.1rem; }
  .hero .hero-frame::before { inset: 1.1rem 1.1rem 0 0; }
  .hero .hero-caption { display: none; }
  .hero .hero-caption { color: var(--muted); }
  .hero .hero-caption strong { color: var(--ink); }
}

/* Headline words, split by JS */
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.hero h1 .w > span { display: inline-block; }

/* Navy band (process) */
.band {
  border: 0; color: var(--on-navy-2);
  background:
    var(--noise),
    radial-gradient(1100px 420px at 85% 0%, rgba(210, 180, 106, .12), transparent 60%),
    var(--panel);
  background-blend-mode: soft-light, normal, normal;
}
.band .section-title, .band .step h3 { color: #fff; }
.band .section-lead, .band .step p { color: var(--on-navy-2); }
.band .steps::before { background: rgba(255, 255, 255, .14); }
.band .steps::after {
  content: ""; position: absolute; inset-inline: 0; top: 23px; height: 1px;
  background: var(--gold-light); transform-origin: right center;
}
.band .step-node {
  background: var(--panel); border-color: rgba(210, 180, 106, .45); color: var(--gold-light);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s;
  transition-delay: calc(var(--i, 0) * .32s + .2s);
}
.band .steps.is-in .step-node { background: var(--gold-light); color: var(--panel); border-color: var(--gold-light); }
.band .text-link { color: #fff; }
@media (max-width: 860px) {
  .band .steps::after { inset-inline: auto; inset-inline-start: 23px; top: 0; bottom: 0; width: 1px; height: auto; transform-origin: center top; }
}

/* Reviews marquee */
.marquee {
  margin-top: 3rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; align-items: stretch; gap: 1.25rem; width: max-content; padding-block: .25rem; }
.marquee .review { flex: none; width: min(380px, 82vw); margin: 0; }
.marquee.is-paused .marquee-track, .marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-toggle {
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem;
  border: 1px solid var(--line); border-radius: var(--radius-ui); background: var(--surface);
  color: var(--ink-2); font: 500 .9rem var(--font-body); cursor: pointer;
}
.marquee-toggle:hover { border-color: var(--gold); }
.reviews-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
  .marquee .review { scroll-snap-align: start; }
  .marquee [aria-hidden="true"], .marquee-toggle { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero::after { animation: panel-in 1.1s var(--ease) both; }
  .hero-frame img { animation: wipe-up 1.2s var(--ease) .35s both; }
  .hero-frame::before { animation: fade-in 1s var(--ease) .8s both; }
  .hero h1.split { animation: none; }
  .hero h1.split .w > span { animation: word-up .9s var(--ease) both; animation-delay: calc(var(--wi) * 70ms + .1s); }

  .js .reveal-img { overflow: hidden; }
  .js .reveal-img img { clip-path: inset(8% 8% 8% 8% round var(--radius-box)); transform: scale(1.1); transition: clip-path 1.2s var(--ease), transform 1.6s var(--ease); }
  .js .reveal-img.is-in img { clip-path: inset(0 0 0 0 round 0); transform: none; }
  .js .svc:hover .reveal-img.is-in img { transform: scale(1.04); transition-duration: .8s; }
  .js .about-media.reveal-img.is-in img { clip-path: inset(0 0 0 0 round var(--radius-box)); }

  .js .band .steps::after { transform: scaleX(0); transition: transform 1.8s var(--ease) .15s; }
  .js .band .steps.is-in::after { transform: none; }
  .js.marquee-ready .marquee-track { animation: marquee 70s linear infinite; }

  @keyframes panel-in { from { transform: scaleX(.6); opacity: 0; } }
  @keyframes wipe-up { from { clip-path: inset(100% 0 0 0 round var(--radius-box)); transform: translateY(24px); } to { clip-path: inset(0 0 0 0 round var(--radius-box)); } }
  @keyframes fade-in { from { opacity: 0; } }
  @keyframes word-up { from { transform: translateY(105%); } }
  @keyframes marquee { to { transform: translateX(calc(50% + .625rem)); } }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 860px) {
  .js .band .steps::after { transform: scaleY(0); }
}

/* Migrated articles, topic hubs, sitemap */
.article-meta { margin-top: .75rem; color: var(--muted); font-size: .95rem; }
.article-meta a { color: inherit; }
.prose img { display: block; width: 100%; height: auto; margin-top: 1.75rem; border-radius: var(--radius-box); }
.prose a { color: var(--gold-ink); }
.prose ol { margin: 1rem 0 0; padding-inline-start: 1.25rem; max-width: 66ch; font-size: 1.125rem; }
.hub-head { max-width: 62ch; }
.hub-head .lead { margin-top: 1rem; }
.hub-group { margin-top: 3.5rem; }
.hub-group h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.hub-group h2 .text-link { font-size: 1rem; }
.post-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); margin: 2rem 0 0; padding: 0; list-style: none; }
.post-card {
  display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box);
  color: inherit; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.post-card h2, .post-card h3 { font-size: 1.2rem; line-height: 1.35; }
.post-card p { flex: 1; color: var(--muted); }
.post-card .text-link { margin-top: .25rem; }
.sitemap-list { columns: 2 18rem; margin: 1rem 0 0; padding-inline-start: 1.25rem; }
.sitemap-list li { margin-top: .4rem; break-inside: avoid; }
.about-services { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1rem 0 0; padding-inline-start: 1.25rem; }
.about-copy .crumbs { margin-bottom: 1rem; }
@media (prefers-reduced-motion: reduce) { .post-card, .post-card:hover { transition: none; transform: none; } }
.legal { max-width: 72ch; }
.footer-legal a { color: inherit; }

/* Spam trap: kept out of view and out of the accessibility tree */
.hp-field { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: left 1.1rem center, left .8rem center; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 2.25rem; }

/* ---- Article & hub polish ---- */
main > .section:first-child:not(.hero) { padding-top: clamp(1.75rem, 4vw, 3.25rem); }
.article-meta { display: flex; align-items: center; gap: .65rem; }
.article-meta .avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-light, var(--gold)); }
.hero .article-meta { margin-top: 1rem; }
.prose a { text-underline-offset: .22em; text-decoration-thickness: 1px; }
.inline-cta {
  margin: 2.25rem 0 0; padding: 1.25rem 1.4rem; max-width: 68ch;
  background: color-mix(in srgb, var(--gold) 9%, var(--surface)); border-inline-start: 3px solid var(--gold); border-radius: var(--radius-ui);
}
.inline-cta p { margin: 0; font-size: 1.06rem; }
.inline-cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.inline-cta + h2 { margin-top: 2.5rem; }
.post-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-cue { display: inline-flex; align-items: center; gap: .4rem; margin-top: .25rem; color: var(--gold-ink); font-weight: 600; font-size: .95rem; }
.post-list .is-featured { grid-column: 1 / -1; }
.post-card--featured { background: color-mix(in srgb, var(--gold) 10%, var(--surface)); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); padding: 1.75rem 2rem; }
.post-card--featured h2, .post-card--featured h3 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); }
.post-card--featured p { -webkit-line-clamp: 4; max-width: 70ch; color: var(--ink); }
@media (max-width: 960px) {
  /* The page already ends with the full contact panel: on small screens keep only the reading links */
  .side-card > h2, .side-card > p, .side-card > .btn, .side-card > .text-link { display: none; }
  .side-card .side-links { margin-top: 0; padding-top: 0; border-top: 0; }
}
.prose .btn { text-decoration: none; }
.prose .btn-primary, .prose .btn-primary:hover { color: var(--btn-ink); }
.prose .btn-quiet { color: var(--ink); }

/* Accessibility statement link in the header (Israeli visitors look for it there) */
.header-a11y { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .6rem; border-radius: var(--radius-ui); color: var(--muted); font-size: .92rem; font-weight: 500; text-decoration: none; }
.header-a11y:hover { color: var(--ink); background: var(--surface); }
.header-a11y .ph { font-size: 1.2rem; }
@media (max-width: 960px) { .header-a11y span { display: none; } }

/* 7-item menu: keep the header on one line on laptop widths */
@media (max-width: 1280px) and (min-width: 961px) {
  .header-a11y span { display: none; }
  .main-nav a { padding-inline: .55rem; font-size: .98rem; }
  .header-phone span { display: none; }
  .header-phone { padding-inline: .8rem; }
}
