/* ==========================================================================
   ד"ר רחל פרידמן — עיצוב האתר
   Mobile-first, RTL, WCAG 2.0 AA (ת"י 5568)
   ========================================================================== */

:root {
  /* Palette */
  --cream: #FAF7F2;
  --cream-deep: #F3EDE3;
  --beige: #EFE7DA;
  --sage-50: #EEF3EF;
  --sage-100: #DCE6DE;
  --sage-300: #A9BFAF;
  --sage-500: #7D9A86;
  --sage-700: #4C6B57;
  --sage-900: #35503F;
  --blue-100: #DEE7EC;
  --blue-500: #6E8CA0;
  --blue-700: #3F5A6B;
  --ink: #26302A;
  --ink-soft: #4A574F;
  --white: #FFFFFF;
  --line: #E2DCD1;

  /* Type */
  --font: 'Assistant', 'Heebo', 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --fs-base: 1.0625rem;

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 2px 10px rgba(53, 80, 63, .06);
  --shadow-md: 0 8px 28px rgba(53, 80, 63, .09);
  --shadow-lg: 0 18px 50px rgba(53, 80, 63, .13);

  /* Layout */
  --wrap: 1140px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--sage-700); }
a:hover { color: var(--sage-900); }

h1, h2, h3, h4 {
  text-wrap: balance;
  font-weight: 700;
  line-height: 1.3;
  color: var(--sage-900);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 4.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.35rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { padding-inline-start: 1.2em; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: 0;
  top: -100px;
  z-index: 2000;
  background: var(--sage-900);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--blue-700);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section--tint { background: var(--sage-50); }
.section--beige { background: var(--cream-deep); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
}
.section-head p { color: var(--ink-soft); margin: 0; }
.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--sage-700);
  background: var(--sage-100);
  padding: .35em 1em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .85em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

.btn--primary { background: var(--sage-700); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--sage-900); color: var(--white); box-shadow: var(--shadow-md); }

.btn--whatsapp { background: #1D7A4B; color: var(--white); box-shadow: var(--shadow-sm); }
.btn--whatsapp:hover { background: #155C38; color: var(--white); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--sage-900); border-color: var(--sage-300); }
.btn--ghost:hover { background: var(--sage-100); color: var(--sage-900); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(250, 247, 242, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  padding: .2rem 0;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--sage-900);
}
.brand__mark {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--sage-100);
  display: grid;
  place-items: center;
}
.brand__mark svg { width: 24px; height: 24px; fill: var(--sage-700); }
.brand__name { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.brand__role { display: block; font-size: .74rem; font-weight: 400; color: var(--ink-soft); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--sage-900);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(45deg); }

.site-nav {
  display: none;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: .5rem 1rem 1.25rem;
}
.site-nav.is-open { display: block; }
.site-nav {
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: .8rem .5rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.site-nav a:hover { color: var(--sage-700); }
.header-cta { display: none; }

.nav-cta {
  display: grid;
  gap: .6rem;
  margin-top: 1rem;
}
.site-nav .nav-cta .btn {
  display: inline-flex;
  width: 100%;
  border-bottom: 2px solid transparent;
  padding: .85em 1.7em;
}
.site-nav .nav-cta .btn--primary,
.site-nav .nav-cta .btn--whatsapp { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 85% 10%, var(--sage-100) 0%, transparent 60%),
    radial-gradient(55% 50% at 10% 90%, var(--blue-100) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(3rem, 9vw, 5.5rem);
}
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero__titles {
  font-size: 1.05rem;
  color: var(--sage-700);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero__tagline {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 52ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.75rem 0 1.5rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.hero__badges li {
  background: rgba(255,255,255,.75);
  border: 1px solid var(--sage-100);
  color: var(--sage-900);
  border-radius: 999px;
  padding: .4em 1em;
  font-size: .87rem;
  font-weight: 600;
}

.portrait {
  position: relative;
  max-width: 340px;
  margin-inline: auto;
}
.portrait__frame {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--sage-100), var(--blue-100));
  border: 1px solid var(--sage-100);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.portrait__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: inherit;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .5rem; }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--sage-50);
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--sage-700); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card ul { margin: 0; color: var(--ink-soft); }
.card li { margin-bottom: .3em; }

/* ---------- About ---------- */
.about__grid { display: grid; gap: 2rem; }
.about__text p:last-child { margin-bottom: 0; }
.quote {
  border-inline-start: 4px solid var(--sage-300);
  background: var(--white);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 0;
  font-size: 1.05rem;
  color: var(--sage-900);
  box-shadow: var(--shadow-sm);
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
.stats li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stats strong { display: block; font-size: 1.6rem; color: var(--sage-700); line-height: 1.2; }
.stats span { font-size: .87rem; color: var(--ink-soft); }

/* ---------- Approaches ---------- */
.approach-list { display: grid; gap: 1rem; }
.approach {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.approach h3 { margin-bottom: .35rem; font-size: 1.1rem; }
.approach p { margin: 0; color: var(--ink-soft); }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  padding-inline-start: 1.75rem;
}
.timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 6px;
  top: .5rem; bottom: .5rem;
  width: 2px;
  background: var(--sage-100);
}
.timeline li { position: relative; margin-bottom: 1.6rem; }
.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: -1.75rem;
  top: .55rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--sage-500);
  border: 3px solid var(--cream);
}
.timeline h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.timeline p { margin: 0; color: var(--ink-soft); }

.trust {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
.trust__item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--sage-100);
  border-radius: var(--r-md);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.trust__item svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--sage-700); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust__item strong { display: block; color: var(--sage-900); }
.trust__item span { color: var(--ink-soft); font-size: .93rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
}
.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sage-700);
  color: var(--white);
  font-weight: 700;
  margin-bottom: .85rem;
}
.steps h3 { font-size: 1.08rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: .85rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.35rem;
  font-weight: 700;
  color: var(--sage-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 11px; height: 11px;
  flex: none;
  border-inline-end: 2px solid var(--sage-700);
  border-block-end: 2px solid var(--sage-700);
  transform: rotate(45deg);
  transition: transform .25s ease;
  margin-block-start: -6px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-block-start: 4px; }
.faq .faq__body { padding: 0 1.35rem 1.25rem; color: var(--ink-soft); }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---------- Locations ---------- */
.locations { display: grid; gap: 1.25rem; }
.location {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.location h3 { margin-bottom: .35rem; }
.location p { color: var(--ink-soft); }
.location p:last-child { margin-bottom: 0; }
.map-frame {
  margin-top: 2rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--sage-50);
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: 2rem; }
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--sage-900);
}
.field .req { color: #A4402E; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: .75rem .9rem;
  min-height: 48px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--sage-500);
  box-shadow: 0 0 0 3px var(--sage-100);
}
.field .hint { font-size: .85rem; color: var(--ink-soft); margin: .3rem 0 0; }
.field .error {
  font-size: .87rem;
  color: #8C2F20;
  margin: .3rem 0 0;
  min-height: 0;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #A4402E; }
.form__note { font-size: .87rem; color: var(--ink-soft); }
.form__status {
  margin-top: 1rem;
  padding: .9rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--sage-50);
  border: 1px solid var(--sage-100);
  color: var(--sage-900);
}
.form__status:empty { display: none; }

.contact-details { display: grid; gap: 1rem; align-content: start; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.contact-card svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--sage-700); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-card strong { display: block; color: var(--sage-900); }
.contact-card a {
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  padding: .45rem 0;
}
.contact-card a:hover { text-decoration: underline; }
.contact-card p { margin: 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sage-900);
  color: #DCE6DE;
  padding: 3rem 0 6rem;
  padding-bottom: calc(6rem + env(safe-area-inset-bottom));
}
.site-footer h2, .site-footer h3 { color: var(--white); font-size: 1.05rem; }
.site-footer a { color: #DCE6DE; }
.site-footer a:hover { color: var(--white); }
.footer__grid { display: grid; gap: 2rem; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin-bottom: .35rem; }
.footer__grid a, .footer__bottom a {
  display: inline-block;
  padding: .35rem 0;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: .87rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
}

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 940;
  display: flex;
  gap: .5rem;
  padding: .5rem .75rem;
  padding-bottom: calc(.5rem + env(safe-area-inset-bottom));
  background: rgba(250, 247, 242, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn {
  flex: 1;
  padding: .7em 1em;
  box-shadow: none;
}
.mobile-bar .btn:hover { transform: none; }

/* the bar is a phone/tablet affordance only */
@media (min-width: 900px) {
  .mobile-bar { display: none; }
}

/* ---------- Floating actions ---------- */
.float-actions {
  position: fixed;
  inset-inline-end: 16px;
  bottom: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.float-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s ease;
}
.float-btn:hover { transform: scale(1.06); }
.float-btn svg { width: 28px; height: 28px; fill: currentColor; }
.float-btn--wa { background: #1D7A4B; color: var(--white); }
.float-btn--tel { background: var(--sage-700); color: var(--white); }
.float-btn--a11y { background: var(--blue-700); color: var(--white); }
.float-btn--a11y svg { fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Below the desktop breakpoint the bar carries the contact actions,
   so the floating buttons step out of the way of the text. */
@media (max-width: 899px) {
  .float-btn--wa,
  .float-btn--tel { display: none; }
  .float-actions { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .a11y-panel { bottom: calc(144px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: 3rem; }
}

/* ---------- Accessibility panel ---------- */
.a11y-panel {
  position: fixed;
  inset-inline-end: 16px;
  bottom: 84px;
  z-index: 960;
  width: min(320px, calc(100vw - 32px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  display: none;
}
.a11y-panel.is-open { display: block; }
.a11y-panel h2 { font-size: 1.1rem; margin-bottom: .75rem; }
.a11y-panel__close {
  position: absolute;
  inset-inline-start: 10px;
  top: 10px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}
.a11y-options { display: grid; gap: .5rem; }
.a11y-options button {
  font: inherit;
  text-align: start;
  padding: .7rem .9rem;
  min-height: 48px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.a11y-options button:hover { background: var(--sage-50); }
.a11y-options button[aria-pressed="true"] {
  background: var(--sage-100);
  border-color: var(--sage-500);
  font-weight: 700;
}
.a11y-options button[aria-pressed="true"]::after { content: "✓"; color: var(--sage-700); }
.a11y-panel__link { display: inline-block; margin-top: .9rem; font-size: .9rem; }

/* ---------- Accessibility modes ---------- */
html[data-a11y-font="lg"] { font-size: 112.5%; }
html[data-a11y-font="xl"] { font-size: 125%; }

html[data-a11y-contrast="high"] body {
  background: #FFFFFF;
  color: #101510;
}
html[data-a11y-contrast="high"] .card,
html[data-a11y-contrast="high"] .approach,
html[data-a11y-contrast="high"] .location,
html[data-a11y-contrast="high"] .form,
html[data-a11y-contrast="high"] .contact-card,
html[data-a11y-contrast="high"] .faq details,
html[data-a11y-contrast="high"] .steps li,
html[data-a11y-contrast="high"] .stats li,
html[data-a11y-contrast="high"] .trust__item {
  background: #FFFFFF;
  border-color: #101510;
}
html[data-a11y-contrast="high"] .section--tint,
html[data-a11y-contrast="high"] .section--beige,
html[data-a11y-contrast="high"] .hero { background: #FFFFFF; }
html[data-a11y-contrast="high"] h1,
html[data-a11y-contrast="high"] h2,
html[data-a11y-contrast="high"] h3,
html[data-a11y-contrast="high"] .ink-soft,
html[data-a11y-contrast="high"] p,
html[data-a11y-contrast="high"] li { color: #101510; }
html[data-a11y-contrast="high"] a { color: #0B3D91; }

html[data-a11y-links="on"] a { text-decoration: underline; font-weight: 700; }

html[data-a11y-readable="on"] body {
  font-family: Arial, 'Segoe UI', sans-serif;
  letter-spacing: .02em;
  line-height: 1.95;
}

html[data-a11y-motion="off"] *,
html[data-a11y-motion="off"] *::before,
html[data-a11y-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Narrow phones ---------- */
@media (max-width: 479px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .card, .location, .form, .steps li { padding: 1.3rem; }
  .portrait { max-width: 300px; }
  .brand__name { font-size: .98rem; }
  .map-frame iframe { height: 280px; }
}

/* ---------- Tablets: two-column hero before the full desktop layout ---------- */
@media (min-width: 720px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 2rem; }
  .portrait { max-width: 320px; }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .approach-list { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .locations { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.5rem; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .site-nav ul { display: flex; gap: .25rem; align-items: center; }
  .site-nav a {
    border: 0;
    padding: .5rem .7rem;
    font-size: .95rem;
    border-radius: var(--r-sm);
  }
  .site-nav a:hover { background: var(--sage-100); }
  .header-cta { display: inline-flex; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
  .portrait { max-width: 340px; }
  .portrait__frame { aspect-ratio: 4 / 5; }
  .about__grid { grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: start; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .contact__grid { grid-template-columns: 1.1fr .9fr; gap: 2.5rem; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer { padding-bottom: 3rem; }
  .float-btn--tel { display: none; }
}
