/* ==========================================================================
   KARIN LEVY LAW v3 — Boutique family-law brand
   Palette per brief: Warm Ivory base · Charcoal + Soft Gold accents
   "Quiet luxury · legal confidence · human sensitivity · discretion"
   ========================================================================== */

:root {
  /* Core palette (from brief) */
  --charcoal: #111111;      /* headers, header bar, footer, premium areas */
  --gold: #C6A15B;          /* buttons, lines, icons, highlights */
  --gold-deep: #a8843f;     /* darker gold for hover/contrast on light */
  --ivory: #F8F5EF;         /* warm cream — main backgrounds */
  --ivory-2: #f1ece1;       /* slightly deeper ivory for alternating sections */
  --text: #222222;          /* dark text */
  --muted: #6F6F6F;         /* secondary text */
  --line: #E5DED2;          /* subtle borders */
  --white: #ffffff;

  --font-display: "Frank Ruhl Libre", Georgia, serif;
  --font-body: "Assistant", "Heebo", system-ui, sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --max-w: 1240px;

  --shadow-sm: 0 1px 3px rgba(17, 17, 17, 0.05);
  --shadow-md: 0 10px 30px rgba(17, 17, 17, 0.08);
  --shadow-lg: 0 24px 60px rgba(17, 17, 17, 0.10);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ivory);
  line-height: 1.7;
  font-size: 18px;            /* brief: 18px desktop */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--gold-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-body); }

p { margin: 0.6em 0; }
em { font-style: italic; color: var(--gold-deep); }

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

.skip-link {
  position: absolute; right: -9999px; background: var(--charcoal); color: var(--ivory);
  padding: 12px 20px; top: 12px; z-index: 999; border-radius: var(--radius);
}
.skip-link:focus { right: 12px; }

/* Gold divider line — a recurring brand element */
.gold-line {
  width: 56px; height: 2px; background: var(--gold);
  margin-bottom: 24px; border: none;
}
.center .gold-line { margin-inline: auto; }

/* ==========================================================================
   SCROLL PROGRESS
   ========================================================================== */
.scroll-progress {
  position: fixed; top: 0; right: 0; height: 3px; width: 0%;
  background: var(--gold); z-index: 1000; transition: width 0.1s linear;
}

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: 0.15s; }

.values-grid > *, .services-grid > *, .articles-grid > *,
.process-steps > *, .reasons-grid > * {
  transition-delay: calc(var(--i, 0) * 0.07s);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; font-family: var(--font-body); font-weight: 600;
  font-size: 1rem; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: all 0.25s var(--ease); white-space: nowrap;
  position: relative; overflow: hidden;
}

/* Primary = gold */
.btn-primary { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
.btn-primary:hover {
  background: var(--gold-deep); border-color: var(--gold-deep); color: var(--white);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}

/* Dark = charcoal (for ivory backgrounds where we want contrast) */
.btn-dark { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.btn-dark:hover { background: #000; color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Ghost / outline */
.btn-ghost { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: var(--ivory); }

/* WhatsApp button */
.btn-wa { background: #25d366; color: #fff; border-color: #25d366; }
.btn-wa:hover { background: #1da851; border-color: #1da851; color: #fff; transform: translateY(-2px); }

/* On dark backgrounds */
.on-dark .btn-ghost { border-color: var(--gold); color: var(--gold); }
.on-dark .btn-ghost:hover { background: var(--gold); color: var(--charcoal); }

.btn-block { width: 100%; justify-content: center; }
.btn-large { padding: 17px 38px; font-size: 1.05rem; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 245, 239, 0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 16px 24px;
}

/* Logo — Hebrew-first, real KL monogram + name */
.logo { display: flex; align-items: center; gap: 13px; }
.logo-mark {
  display: grid; place-items: center; width: 48px; height: 48px;
  overflow: hidden; border-radius: var(--radius);
  transition: transform 0.3s var(--ease); flex-shrink: 0;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo:hover .logo-mark { transform: translateY(-1px); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--charcoal); }
.logo-text em { font-style: normal; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.01em; max-width: 230px; line-height: 1.3; }

/* Footer logo on dark bg — monogram has cream bg, give it a subtle frame */
.footer-brand .logo-mark { background: var(--ivory); padding: 2px; }

.primary-nav ul { display: flex; gap: 2px; list-style: none; align-items: center; }
.primary-nav a { display: block; padding: 10px 14px; font-size: 0.98rem; font-weight: 500; position: relative; }
.primary-nav a::after {
  content: ""; position: absolute; right: 14px; left: 14px; bottom: 6px;
  height: 1px; background: var(--gold); transform: scaleX(0);
  transform-origin: right; transition: transform 0.25s var(--ease);
}
.primary-nav a:hover::after, .primary-nav a.active::after { transform: scaleX(1); }

.has-sub { position: relative; }
.has-sub > a::before {
  content: "›"; position: absolute; left: 2px; top: 50%; transform: translateY(-50%) rotate(90deg);
  font-size: 0.8rem; color: var(--muted);
}
.sub-nav {
  position: absolute; top: 100%; right: 0; min-width: 230px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.2s var(--ease); display: flex; flex-direction: column; gap: 2px;
}
.has-sub:hover .sub-nav, .has-sub:focus-within .sub-nav {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sub-nav a { padding: 9px 14px; font-size: 0.92rem; }
.sub-nav a::after { display: none; }
.sub-nav a:hover { background: var(--ivory); }

.header-cta { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none; background: none; border: none; width: 42px; height: 42px;
  flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; padding: 0;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); margin: 0 auto; transition: all 0.25s var(--ease); }

/* ==========================================================================
   HERO — Option B from brief: ivory bg, charcoal text, gold accents, photo side
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%);
  padding: 70px 0 90px;
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(70px);
  opacity: 0.35; pointer-events: none; animation: float 22s ease-in-out infinite;
}
.orb-1 { width: 460px; height: 460px; background: radial-gradient(circle, var(--gold), transparent 70%); top: -120px; left: -80px; }
.orb-2 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(17,17,17,0.10), transparent 70%); bottom: -120px; right: 5%; animation-delay: -11s; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(24px,-24px) scale(1.04); }
  66% { transform: translate(-18px,16px) scale(0.97); }
}

.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
  position: relative; z-index: 1;
}

.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-deep);
  margin-bottom: 18px; position: relative; padding-right: 30px;
}
.eyebrow::before { content: ""; position: absolute; right: 0; top: 50%; width: 20px; height: 1px; background: var(--gold); }

.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--gold-deep); font-style: italic; }

.hero-lead { font-size: 1.18rem; color: var(--text); max-width: 560px; margin-bottom: 18px; line-height: 1.7; }

.hero-tags {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px;
  font-size: 0.9rem; color: var(--muted);
}
.hero-tags span { display: inline-flex; align-items: center; }
.hero-tags span:not(:last-child)::after { content: "·"; margin-right: 10px; color: var(--gold); }

.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-meta { display: flex; gap: 40px; list-style: none; border-top: 1px solid var(--line); padding-top: 26px; }
.hero-meta li { display: flex; flex-direction: column; }
.hero-meta strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--charcoal); line-height: 1; }
.hero-meta span { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

/* Hero portrait */
.hero-portrait { position: relative; }
.hero-portrait .portrait-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/5; box-shadow: var(--shadow-lg);
  background: var(--charcoal) url("/assets/images/karin-hero.jpg") center/cover no-repeat;
}
.hero-portrait .portrait-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.18), transparent 40%);
}
.hero-portrait .portrait-badge {
  position: absolute; bottom: 20px; right: -16px;
  background: var(--white); border: 1px solid var(--line);
  padding: 14px 20px; border-radius: var(--radius); box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
}
.hero-portrait .portrait-badge svg { width: 26px; height: 26px; color: var(--gold-deep); flex-shrink: 0; }
.hero-portrait .portrait-badge strong { display: block; font-family: var(--font-display); font-size: 0.95rem; color: var(--charcoal); }
.hero-portrait .portrait-badge span { font-size: 0.78rem; color: var(--muted); }

/* ==========================================================================
   INTRO STRIP (emotional-professional opener)
   ========================================================================== */
.intro-strip { padding: 90px 0; background: var(--white); }
.intro-strip .container { max-width: 880px; text-align: center; }
.intro-strip h2 { margin-bottom: 22px; }
.intro-strip p { font-size: 1.15rem; color: var(--text); line-height: 1.8; }

/* ==========================================================================
   SECTION HEAD
   ========================================================================== */
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head .lead { font-size: 1.1rem; color: var(--muted); line-height: 1.7; }

/* ==========================================================================
   SERVICES (4 cards)
   ========================================================================== */
.services { padding: 100px 0; background: var(--ivory); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.service-card {
  background: var(--white); padding: 40px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); transition: all 0.3s var(--ease);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; top: 0; right: 0; width: 3px; height: 0;
  background: var(--gold); transition: height 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.service-card:hover::before { height: 100%; }

.service-icon {
  width: 60px; height: 60px; color: var(--gold-deep); margin-bottom: 22px;
  display: grid; place-items: center; border: 1px solid var(--gold);
  border-radius: 50%; background: var(--ivory);
  transition: transform 0.4s var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.06) rotate(-4deg); }
.service-icon svg { width: 30px; height: 30px; }

.service-card h3 { font-size: 1.4rem; margin-bottom: 14px; }
.service-card p { font-size: 1rem; color: var(--muted); line-height: 1.7; flex: 1; margin-bottom: 22px; }
.card-link {
  font-size: 0.96rem; font-weight: 600; color: var(--gold-deep);
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.25s var(--ease);
}
.card-link:hover { color: var(--charcoal); gap: 12px; }

/* ==========================================================================
   REASONS (why Karin) — on charcoal
   ========================================================================== */
.reasons { padding: 100px 0; background: var(--charcoal); color: var(--ivory); }
.reasons h2 { color: var(--ivory); }
.reasons h2 em { color: var(--gold); }
.reasons .eyebrow { color: var(--gold); }
.reasons .eyebrow::before { background: var(--gold); }
.reasons .gold-line { background: var(--gold); }

.reasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reason-card {
  padding: 30px; border: 1px solid rgba(198,161,91,0.22); border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02); transition: all 0.3s var(--ease);
}
.reason-card:hover { border-color: var(--gold); background: rgba(198,161,91,0.06); transform: translateY(-3px); }
.reason-card .reason-icon { width: 40px; height: 40px; color: var(--gold); margin-bottom: 16px; }
.reason-card .reason-icon svg { width: 100%; height: 100%; }
.reason-card h3 { color: var(--ivory); font-size: 1.2rem; margin-bottom: 10px; }
.reason-card p { color: rgba(248,245,239,0.72); font-size: 0.96rem; line-height: 1.65; }

/* ==========================================================================
   ABOUT (short)
   ========================================================================== */
.about-short { padding: 100px 0; background: var(--white); }
.about-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: center; }
.about-photo {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--charcoal) url("/assets/images/karin-about.jpg") center/cover no-repeat;
  position: relative; box-shadow: var(--shadow-md);
}
.about-copy h2 { margin-bottom: 20px; }
.about-copy p { font-size: 1.08rem; color: var(--text); line-height: 1.8; margin-bottom: 18px; }
.about-copy .btn { margin-top: 14px; }

/* ==========================================================================
   PROCESS (how to start)
   ========================================================================== */
.process { padding: 100px 0; background: var(--ivory-2); }
.process-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-line {
  position: absolute; top: 32px; right: 10%; left: 10%; height: 2px;
  background: repeating-linear-gradient(to right, var(--gold) 0, var(--gold) 6px, transparent 6px, transparent 14px);
}
.process-step { position: relative; text-align: center; z-index: 1; }
.step-num {
  width: 64px; height: 64px; margin: 0 auto 20px; display: grid; place-items: center;
  background: var(--ivory); border: 2px solid var(--gold); color: var(--charcoal);
  border-radius: 50%; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  box-shadow: 0 0 0 8px var(--ivory-2); transition: all 0.3s var(--ease);
}
.process-step:hover .step-num { background: var(--charcoal); color: var(--gold); transform: scale(1.07); }
.process-step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.process-step p { font-size: 0.96rem; color: var(--muted); line-height: 1.6; max-width: 230px; margin: 0 auto; }

/* ==========================================================================
   FAQ (accordion)
   ========================================================================== */
.faq { padding: 100px 0; background: var(--white); }
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: right; background: none; border: none; cursor: pointer;
  padding: 26px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--font-display); font-size: 1.18rem; font-weight: 500; color: var(--charcoal);
  transition: color 0.2s var(--ease);
}
.faq-q:hover { color: var(--gold-deep); }
.faq-q .faq-icon {
  flex-shrink: 0; width: 28px; height: 28px; border: 1px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center; position: relative; transition: all 0.3s var(--ease);
}
.faq-q .faq-icon::before, .faq-q .faq-icon::after {
  content: ""; position: absolute; background: var(--gold-deep); transition: all 0.3s var(--ease);
}
.faq-q .faq-icon::before { width: 12px; height: 2px; }
.faq-q .faq-icon::after { width: 2px; height: 12px; }
.faq-item.open .faq-q .faq-icon { background: var(--gold); }
.faq-item.open .faq-q .faq-icon::before, .faq-item.open .faq-q .faq-icon::after { background: var(--charcoal); }
.faq-item.open .faq-q .faq-icon::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a-inner { padding: 0 0 26px; color: var(--muted); font-size: 1.02rem; line-height: 1.75; }

/* ==========================================================================
   ARTICLES
   ========================================================================== */
.articles { padding: 100px 0; background: var(--ivory); }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.3s var(--ease); border: 1px solid var(--line);
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.article-thumb {
  aspect-ratio: 16/10; background: linear-gradient(135deg, var(--charcoal) 0%, #2a2a2a 100%);
  position: relative; overflow: hidden;
}
.article-thumb::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cpath d='M0 0l20 20M20 0L0 20' stroke='%23C6A15B' stroke-width='0.3' opacity='0.3'/%3E%3C/svg%3E");
  transition: transform 0.5s var(--ease);
}
.article-card:hover .article-thumb::after { transform: scale(1.1); }
.article-body { padding: 28px; }
.article-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-deep); background: var(--ivory);
  padding: 4px 12px; border-radius: 100px; margin-bottom: 14px;
}
.article-body h3 { font-size: 1.25rem; margin-bottom: 10px; line-height: 1.35; }
.article-body p { font-size: 0.98rem; color: var(--muted); margin-bottom: 18px; }

/* ==========================================================================
   CTA BANNER (charcoal, gold line)
   ========================================================================== */
.cta-banner { padding: 90px 0; position: relative; overflow: hidden; background: var(--charcoal); }
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(198,161,91,0.14), transparent 60%);
}
.cta-banner .gold-line { background: var(--gold); }
.cta-inner { text-align: center; position: relative; color: var(--ivory); max-width: 680px; margin: 0 auto; }
.cta-inner h2 { color: var(--ivory); margin-bottom: 16px; }
.cta-inner p { color: rgba(248,245,239,0.82); font-size: 1.1rem; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { padding: 100px 0; background: var(--white); }
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: start; }
.contact-copy h2 { margin-bottom: 18px; }
.contact-copy > p { font-size: 1.08rem; color: var(--muted); line-height: 1.7; }
.contact-details { list-style: none; margin-top: 36px; display: grid; gap: 16px; }
.contact-details li {
  padding: 18px 20px; background: var(--ivory); border-right: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0; transition: transform 0.25s var(--ease);
}
.contact-details li:hover { transform: translateX(-6px); }
.contact-details strong {
  display: block; font-size: 0.74rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin-bottom: 5px;
}
.contact-details a, .contact-details span { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; color: var(--charcoal); }

.contact-buttons { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

.contact-form { background: var(--ivory); padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--line); }

/* Forms */
form label { display: block; margin-bottom: 18px; }
form label > span { display: block; font-size: 0.9rem; color: var(--text); margin-bottom: 7px; font-weight: 600; }
form input[type="text"], form input[type="email"], form input[type="tel"],
form select, form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); font-family: inherit; font-size: 1rem; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(198,161,91,0.12);
}
form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form .checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 0.86rem; color: var(--muted); margin: 16px 0 22px; }
form .checkbox input { margin-top: 4px; flex-shrink: 0; }
form .checkbox span { margin: 0; font-size: inherit; color: inherit; font-weight: 400; }
form .checkbox a { color: var(--gold-deep); text-decoration: underline; }

.form-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--gold-deep);
  font-weight: 600; margin-bottom: 16px; padding: 4px 12px; background: rgba(198,161,91,0.1); border-radius: 100px;
}
.form-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6);} 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0);} 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0);} }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--charcoal); color: var(--ivory); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid rgba(248,245,239,0.1); }
.footer-brand .logo-text strong { color: var(--ivory); }
.footer-brand .logo-text em { color: rgba(248,245,239,0.5); }
.footer-brand p { margin-top: 18px; font-size: 0.92rem; color: rgba(248,245,239,0.65); max-width: 320px; line-height: 1.7; }
.site-footer h4 { color: var(--gold); margin-bottom: 18px; font-size: 0.75rem; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: rgba(248,245,239,0.7); font-size: 0.94rem; }
.site-footer ul a:hover { color: var(--ivory); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 14px; }
.footer-bottom small { color: rgba(248,245,239,0.5); font-size: 0.82rem; }
.legal-links { display: flex; gap: 22px; list-style: none; flex-wrap: wrap; }
.legal-links a { color: rgba(248,245,239,0.6); font-size: 0.82rem; }

/* ==========================================================================
   FLOATING ACTIONS (WhatsApp + call) — desktop
   ========================================================================== */
.wa-float {
  position: fixed; bottom: 24px; left: 24px; width: 56px; height: 56px;
  display: grid; place-items: center; background: #25d366; color: #fff; border-radius: 50%;
  box-shadow: var(--shadow-lg); z-index: 50; transition: transform 0.25s var(--ease); animation: wa-pulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.1); color: #fff; animation: none; }
@keyframes wa-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5), var(--shadow-lg);} 50% { box-shadow: 0 0 0 16px rgba(37,211,102,0), var(--shadow-lg);} }

/* ==========================================================================
   STICKY MOBILE BOTTOM BAR (brief requirement)
   ========================================================================== */
.mobile-bar {
  display: none;
  position: fixed; bottom: 0; right: 0; left: 0; z-index: 60;
  background: var(--charcoal); border-top: 1px solid var(--gold);
  grid-template-columns: 1fr 1fr 1fr;
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 11px 6px; color: var(--ivory); font-size: 0.74rem; font-weight: 600;
  border-left: 1px solid rgba(248,245,239,0.12);
}
.mobile-bar a:last-child { border-left: none; }
.mobile-bar a svg { width: 20px; height: 20px; color: var(--gold); }
.mobile-bar a.wa svg { color: #25d366; }

/* ==========================================================================
   PAGE HERO (inner pages)
   ========================================================================== */
.page-hero { background: var(--charcoal); color: var(--ivory); padding: 80px 0 70px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 30%, rgba(198,161,91,0.12), transparent 55%); }
.page-hero .container { position: relative; z-index: 1; max-width: 820px; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .eyebrow::before { background: var(--gold); }
.page-hero h1 { color: var(--ivory); margin-bottom: 18px; }
.page-hero p { font-size: 1.15rem; color: rgba(248,245,239,0.82); line-height: 1.7; max-width: 640px; margin-bottom: 30px; }
.breadcrumb { font-size: 0.85rem; color: rgba(248,245,239,0.55); margin-bottom: 26px; }
.breadcrumb a { color: rgba(248,245,239,0.7); }
.breadcrumb a:hover { color: var(--gold); }

/* Inner content sections */
.prose-section { padding: 80px 0; }
.prose-section.alt { background: var(--ivory); }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin: 0 0 18px; }
.prose h3 { margin: 32px 0 12px; }
.prose p { font-size: 1.08rem; color: var(--text); line-height: 1.8; margin-bottom: 18px; }
.prose ul { margin: 18px 0; padding-right: 22px; }
.prose ul li { margin-bottom: 12px; font-size: 1.05rem; color: var(--text); line-height: 1.7; position: relative; }
.prose ul li::marker { color: var(--gold); }

/* Topic chips list (service pages "areas handled") */
.topic-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 26px 0; list-style: none; padding: 0; }
.topic-list li {
  background: var(--white); border: 1px solid var(--line); border-right: 3px solid var(--gold);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.topic-list li svg { width: 18px; height: 18px; color: var(--gold-deep); flex-shrink: 0; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait { max-width: 420px; }
  .services-grid { grid-template-columns: 1fr; }
  .reasons-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 380px; }
  .articles-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .process-line { display: none; }
  .topic-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }     /* brief: 16px mobile */
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .primary-nav.open {
    display: block; position: absolute; top: 100%; right: 0; left: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line); padding: 14px;
    max-height: 80vh; overflow-y: auto;
  }
  .primary-nav.open ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav.open a { padding: 13px 16px; border-bottom: 1px solid var(--line); }
  .primary-nav.open .has-sub > a::before { display: none; }
  .primary-nav.open .sub-nav {
    position: static; box-shadow: none; border: none; opacity: 1; visibility: visible;
    transform: none; padding: 0 16px 0 0; background: transparent;
  }
  .primary-nav.open .sub-nav a { padding-right: 28px; }

  .hero { padding: 44px 0 60px; }
  .hero-meta { flex-wrap: wrap; gap: 22px; }
  .hero-portrait { margin: 0 auto; max-width: 300px; }
  /* Decorative floating badge is desktop-only — on mobile it overlaps content */
  .hero-portrait .portrait-badge { display: none; }

  .services, .reasons, .about-short, .process, .faq, .articles, .contact, .cta-banner, .intro-strip { padding: 60px 0; }
  .process-steps { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .wa-float { display: none; }       /* replaced by mobile bar */
  .mobile-bar { display: grid; }
  body { padding-bottom: 64px; }      /* room for the sticky bar */
  .site-footer { padding-bottom: 28px; }
}

/* ==========================================================================
   ACCESSIBILITY — focus visible, reduced motion
   ========================================================================== */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold-deep); outline-offset: 2px; border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* High-contrast support */
@media (prefers-contrast: more) {
  :root { --muted: #4a4a4a; --line: #b8b0a0; }
}

/* ==========================================================================
   ACCESSIBILITY TOOLBAR (Israeli regs)
   ========================================================================== */
.a11y-launcher {
  position: fixed; bottom: 24px; right: 24px; z-index: 70;
}
.a11y-toggle {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--gold);
  background: var(--charcoal); color: var(--gold); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  transition: transform 0.25s var(--ease);
}
.a11y-toggle:hover { transform: scale(1.07); }
.a11y-toggle svg { width: 26px; height: 26px; }

.a11y-panel {
  position: absolute; bottom: 64px; right: 0; width: 270px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 16px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.25s var(--ease);
}
.a11y-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.a11y-panel h2 { font-size: 1rem; margin-bottom: 12px; color: var(--charcoal); }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-grid button {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ivory); color: var(--text); cursor: pointer; font-family: inherit;
  font-size: 0.78rem; font-weight: 600; transition: all 0.2s var(--ease);
}
.a11y-grid button:hover { border-color: var(--gold); background: var(--white); }
.a11y-grid button svg { width: 20px; height: 20px; color: var(--gold-deep); }
.a11y-grid button.wide { grid-column: 1 / -1; flex-direction: row; justify-content: center; }
.a11y-reset { color: var(--gold-deep); }

/* Toggle states applied to <html> */
.a11y-contrast { filter: contrast(1.25); }
.a11y-contrast body { background: #fff; }
.a11y-contrast .hero, .a11y-contrast .intro-strip, .a11y-contrast .services,
.a11y-contrast .about-short, .a11y-contrast .faq, .a11y-contrast .articles,
.a11y-contrast .contact, .a11y-contrast .prose-section { background: #fff; }
.a11y-contrast :is(p, li, span, .lead, .hero-lead) { color: #000 !important; }

.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; font-weight: 600 !important; }

.a11y-readable, .a11y-readable :is(h1,h2,h3,h4,p,a,li,span,button,input,label) {
  font-family: Arial, "Heebo", sans-serif !important; letter-spacing: 0.01em !important; line-height: 1.9 !important;
}

.a11y-stop-motion *, .a11y-stop-motion *::before, .a11y-stop-motion *::after {
  animation: none !important; transition: none !important;
}
.a11y-stop-motion .reveal { opacity: 1 !important; transform: none !important; }

@media (max-width: 768px) {
  .a11y-launcher { bottom: 80px; right: 12px; }   /* clear of mobile bar */
  .a11y-panel { width: calc(100vw - 28px); right: -2px; }
}

/* ==========================================================================
   SVG SAFETY NET — prevent any icon from rendering at giant size
   (covers cases where a specific selector is missed)
   ========================================================================== */
.a11y-toggle svg { width: 26px !important; height: 26px !important; }
.a11y-grid button svg { width: 20px !important; height: 20px !important; }
.a11y-panel svg { max-width: 24px; max-height: 24px; }
/* Generic guard: inline icon svgs default to a sane size unless explicitly sized */
button svg, .card-link svg, .contact-details svg, .mobile-bar svg, .wa-float svg {
  max-width: 100%;
}

/* ==========================================================================
   BLOG
   ========================================================================== */
.post-meta { color: rgba(248,245,239,0.7); font-size: 0.95rem; }
.post-body h2 { margin: 36px 0 16px; }
.post-body h3 { margin: 28px 0 12px; }
.post-body p { margin-bottom: 18px; }
.post-body ul { margin: 18px 0; padding-right: 22px; }
.post-body li { margin-bottom: 10px; }
.post-body a { color: var(--gold-deep); text-decoration: underline; }
.post-body strong { color: var(--charcoal); }

/* Blog index cards: thumb as link + heading link */
.article-thumb { display: block; }
a.article-thumb { cursor: pointer; }
.article-body h3 a { color: var(--charcoal); }
.article-body h3 a:hover { color: var(--gold-deep); }
