/* Underwater Vision redesign prototype.
   Brand tokens preserved from the live YOOtheme theme:
   accent #d03234 (hover #bd2b2d), dark #2b2429, page #fbfcfc,
   Heebo (headings) + Poppins (body), self-hosted from the live site.
   Shape rule: buttons pill, cards and images 12px, inputs 8px.
   Z-index scale: header 30, dropdown 31, chat 40, dialog 50. */

@font-face { font-family: "Heebo"; font-weight: 400; font-display: swap; src: url("../fonts/heebo-31c35472.woff2") format("woff2"); }
@font-face { font-family: "Heebo"; font-weight: 500; font-display: swap; src: url("../fonts/heebo-f4a5d4e0.woff2") format("woff2"); }
@font-face { font-family: "Heebo"; font-weight: 600; font-display: swap; src: url("../fonts/heebo-40aac462.woff2") format("woff2"); }
@font-face { font-family: "Heebo"; font-weight: 400; font-display: swap; src: url("../fonts/heebo-hebrew-400-normal.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-weight: 500; font-display: swap; src: url("../fonts/heebo-hebrew-500-normal.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-weight: 600; font-display: swap; src: url("../fonts/heebo-hebrew-600-normal.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-581f0b26.woff2") format("woff2"); }

:root {
  --accent: #d03234;
  --accent-hover: #bd2b2d;
  --accent-text: #c02e30;
  --on-accent: #fbfcfc;
  --bg: #fbfcfc;
  --surface: #f3f0f1;
  --surface-2: #ebe6e8;
  --ink: #2b2429;
  --text: #4a4448;
  --muted: #6b6368;
  --line: #e0dadd;
  --scrim: 29 24 28;
  --shadow: 0 18px 40px -24px rgb(43 36 41 / 0.35);
  --radius: 12px;
  --radius-input: 8px;
  --header-h: 72px;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dir: 1; /* -1 in right-to-left pages: flips slide directions */
  color-scheme: light;
}
[dir="rtl"] { --dir: -1; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent-text: #ec6b6d;
    --bg: #1b171a;
    --surface: #2b2429;
    --surface-2: #362e34;
    --ink: #f3eff1;
    --text: #d4cdd1;
    --muted: #a99fa5;
    --line: #3e353b;
    --shadow: 0 18px 40px -24px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent-text: #ec6b6d;
  --bg: #1b171a;
  --surface: #2b2429;
  --surface-2: #362e34;
  --ink: #f3eff1;
  --text: #d4cdd1;
  --muted: #a99fa5;
  --line: #3e353b;
  --shadow: 0 18px 40px -24px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.7 "Poppins", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
a:not(.btn, .tile, .brand):active { opacity: 0.7; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: "Heebo", system-ui, sans-serif; font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 4vw, 3.35rem); line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.12; }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0; }
p + p { margin-top: 1em; }
.prose { max-width: 65ch; }
.prose > * + * { margin-top: 1em; }
.lead { font-size: 1.125rem; line-height: 1.6; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 60; background: var(--ink); color: var(--bg); padding: 8px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tight { padding-block: clamp(48px, 6vw, 72px); }
.section-head { max-width: 65ch; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head p { margin-top: 16px; }
.eyebrow { font-family: "Heebo", sans-serif; font-weight: 500; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-text); margin-bottom: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; white-space: nowrap;
  font: 500 1rem/1 "Heebo", sans-serif; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); transition: transform 0.1s ease-out; }
.btn .ph { font-size: 1.15em; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-outline { border-color: var(--accent); color: var(--accent-text); background: transparent; }
.btn-light { background: #fbfcfc; color: #2b2429; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-family: "Heebo", sans-serif; font-weight: 500; text-decoration: none; }
.text-link .ph { transition: transform 0.3s var(--ease); }

/* Hover effects only where a real pointer can hover, so they don't stick after a tap on phones */
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: scale(0.97); }
  .btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
  .btn-outline:hover { background: var(--accent); color: var(--on-accent); }
  .btn-light:hover { background: #ffffff; color: #2b2429; }
  .text-link:hover .ph { transform: translateX(calc(3px * var(--dir))); }
  .nav-link:hover { background: var(--surface); color: var(--ink); }
  .icon-btn:hover { background: var(--surface); color: var(--accent-text); }
  .dropdown a:hover { background: var(--surface); }
  .tile:hover img { transform: scale(1.04); }
  .agent:hover { background: var(--surface); color: var(--ink); }
  .video-facade:hover::after { background: rgb(var(--scrim) / 0.2); }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line); transition: border-color 0.2s;
}
.js .site-header:not(.scrolled) { border-bottom-color: transparent; }
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--bg); backdrop-filter: none; } }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { flex: none; display: block; }
.brand img { width: 70px; height: 49px; }
.main-nav { margin-inline-start: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px;
  font: 500 1rem/1 "Heebo", sans-serif; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-link[aria-expanded="true"], .nav-link:active { background: var(--surface); color: var(--ink); }
.nav-link .ph { font-size: 0.85em; transition: transform 0.3s var(--ease); }
.nav-link[aria-expanded="true"] .ph { transform: rotate(180deg); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; z-index: 31; width: min(640px, 90vw);
  translate: -50% 0; padding: 12px; border-radius: var(--radius); background: var(--bg);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.3s var(--ease), visibility 0.2s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; }
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-family: "Heebo", sans-serif; font-weight: 500; }
.dropdown a:active { background: var(--surface); }
.dropdown img { width: 72px; height: 52px; object-fit: cover; border-radius: 8px; }
.dropdown small { display: block; font: 400 0.8125rem/1.4 "Poppins", sans-serif; color: var(--muted); }
.header-tools { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; font-size: 1.25rem;
}
.icon-btn:active { background: var(--surface); }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; width: auto; padding: 0 16px 0 12px; font: 500 1rem/1 "Heebo", sans-serif; }
@media (max-width: 1023px) {
  .main-nav, .header-tools .social { display: none; }
  .header-tools { margin-inline-start: auto; }
}

/* Full menu dialog (preserves the live hamburger menu) */
.menu-dialog {
  z-index: 50; margin: 0; margin-inline-start: auto; height: 100dvh; max-height: 100dvh; width: min(420px, 100vw);
  border: 0; padding: 0; background: var(--bg); color: var(--text);
}
.menu-dialog { touch-action: pan-y; }
.menu-dialog::backdrop { background: rgb(var(--scrim) / 0.55); }
.menu-dialog[open] { animation: slide-in 0.4s var(--ease); }
.menu-dialog[open]::backdrop { animation: fade-in 0.3s ease-out; }
.menu-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 16px 0 24px; border-bottom: 1px solid var(--line); }
.menu-dialog nav { padding: 16px 24px 40px; }
.menu-dialog ul { list-style: none; margin: 0; padding: 0; }
.menu-dialog li a { display: block; padding: 10px 0; font: 500 1.125rem/1.3 "Heebo", sans-serif; color: var(--ink); text-decoration: none; }
.menu-dialog li a:hover { color: var(--accent-text); }
.menu-dialog .sub a { font-size: 1rem; padding-inline-start: 16px; color: var(--text); }
.menu-contact { display: flex; gap: 4px; margin-top: 8px; }
@keyframes slide-in { from { transform: translateX(calc(40px * var(--dir))); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

/* Home hero: asymmetric split */
.hero { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero .lead { margin-top: 20px; max-width: 34ch; }
.hero .btn-row { margin-top: 32px; }
.hero-media { position: relative; }
.hero-media .main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.hero-media .inset {
  display: none; position: absolute; inset-inline-start: -48px; bottom: -40px; width: 42%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 6px solid var(--bg); box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 64px; min-height: min(calc(100dvh - var(--header-h) - 120px), 640px); }
  .hero-media .main { aspect-ratio: 5 / 4; }
  .hero-media .inset { display: block; }
}

/* Inner page hero: compact split */
.page-hero { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(48px, 6vw, 80px); }
.page-hero .hero-grid { min-height: 0; }
.page-hero h1 { font-size: clamp(2.1rem, 3.8vw, 3.1rem); }
.page-hero h1 .h1-tail { display: block; font-weight: 400; color: var(--muted); font-size: 0.62em; letter-spacing: -0.01em; margin-top: 8px; }
.page-hero .lead { margin-top: 20px; max-width: 42ch; }
.page-hero .btn-row { margin-top: 28px; }
.page-hero .main { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius); }

/* Home pathways bento */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); color: #fbfcfc; text-decoration: none; min-height: 280px; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.8s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(var(--scrim) / 0.88) 0%, rgb(var(--scrim) / 0.35) 55%, rgb(var(--scrim) / 0.05) 100%); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 32px); }
.tile h3 { color: #fbfcfc; font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.tile p { margin-top: 6px; color: #e9e4e7; max-width: 40ch; }
.tile .text-link { margin-top: 14px; color: #fbfcfc; }
.tile:hover, .tile:active { color: #fbfcfc; }
.tile:active img { transform: scale(1.02); transition-duration: 0.2s; }
@media (min-width: 768px) {
  .bento { grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, minmax(260px, 1fr)); }
  .bento .tile:first-child { grid-row: span 2; min-height: 560px; }
}

/* Home about: vertical stack + photo strip */
.about-text { max-width: 760px; }
.about-text h2 { margin-bottom: 20px; }
.about-text .btn-row { margin-top: 28px; }
.photo-strip { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: clamp(40px, 5vw, 64px); align-items: end; }
.photo-strip img { width: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 4 / 3; }
@media (min-width: 768px) {
  .photo-strip { grid-template-columns: 0.8fr 1.35fr 1fr; }
  .photo-strip img:nth-child(1) { aspect-ratio: 3 / 4; }
  .photo-strip img:nth-child(2) { aspect-ratio: 16 / 10; }
  .photo-strip img:nth-child(3) { aspect-ratio: 1 / 1; transform: translateY(-32px); }
}

/* Full-bleed photo band */
.band { position: relative; isolation: isolate; color: #e9e4e7; overflow: hidden; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(var(--scrim) / 0.9) 0%, rgb(var(--scrim) / 0.74) 50%, rgb(var(--scrim) / 0.5) 100%); }
.band h2, .band h3 { color: #fbfcfc; }
.band .eyebrow { color: #f3a5a6; }
.band .lead { margin-top: 16px; max-width: 52ch; }
.points { list-style: none; padding: 0; margin: clamp(40px, 5vw, 56px) 0 0; display: grid; gap: 28px; grid-template-columns: 1fr; }
.points li { padding-top: 20px; border-top: 1px solid rgb(251 252 252 / 0.22); }
.points .ph { font-size: 1.6rem; color: #f3a5a6; }
.points h3 { margin: 10px 0 6px; font-size: 1.15rem; }
@media (min-width: 768px) { .points { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.band .btn-row { margin-top: 40px; }

/* Reviews carousel */
.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-controls .icon-btn { border: 1px solid var(--line); transition: opacity 0.2s; }
.carousel-controls .icon-btn[aria-disabled="true"] { opacity: 0.35; cursor: default; pointer-events: none; }
.review-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 12px;
  scrollbar-width: thin; overscroll-behavior-x: contain;
}
@media (min-width: 768px) { .review-track { grid-auto-columns: calc((100% - 32px) / 3); } }
@media (prefers-reduced-motion: reduce) { .review-track { scroll-behavior: auto; } }
.review { scroll-snap-align: start; margin: 0; padding: 28px; border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 20px; }
.review blockquote { margin: 0; color: var(--ink); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.review figcaption { margin-top: auto; font-size: 0.875rem; color: var(--muted); }
.review figcaption strong { display: block; font: 500 1rem/1.3 "Heebo", sans-serif; color: var(--ink); }
.reviews-links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 24px; }

/* Cards (used where elevation marks a bookable item) */
.card-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
.card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.card > img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.price { font: 600 1.6rem/1 "Heebo", sans-serif; color: var(--ink); letter-spacing: -0.02em; }
.price small { display: block; margin-top: 6px; font: 400 0.8125rem/1.2 "Poppins", sans-serif; color: var(--muted); letter-spacing: 0; text-align: end; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 0.9375rem; }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks .ph { color: var(--accent-text); flex: none; translate: 0 2px; }
.card .text-link { margin-top: auto; padding-top: 6px; }
.group + .group { margin-top: clamp(48px, 6vw, 72px); }
.group-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.card-grid.pro { --c-bg: #2b2429; --c-ink: #fbfcfc; --c-text: #ddd6da; --c-muted: #bdb3b9; --c-accent: #f3a5a6; }
:root[data-theme="dark"] .card-grid.pro { --c-bg: var(--surface-2); --c-ink: var(--ink); --c-text: var(--text); --c-muted: var(--muted); --c-accent: var(--accent-text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card-grid.pro { --c-bg: var(--surface-2); --c-ink: var(--ink); --c-text: var(--text); --c-muted: var(--muted); --c-accent: var(--accent-text); } }
.card-grid.pro .card { background: var(--c-bg); color: var(--c-text); }
.card-grid.pro h3, .card-grid.pro .price { color: var(--c-ink); }
.card-grid.pro .checks { color: var(--c-text); }
.card-grid.pro .price small { color: var(--c-muted); }
.card-grid.pro .checks .ph, .card-grid.pro .text-link { color: var(--c-accent); }

/* Media rows (thumbnail + text list) */
.media-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.media-row { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; }
.media-row img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.media-row p { margin-top: 6px; max-width: 60ch; }
.media-row .text-link { margin-top: 10px; }
@media (min-width: 768px) { .media-row { grid-template-columns: 240px 1fr; gap: 28px; } }

/* Split: text + stacked photos */
.split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; gap: 72px; } .split.reverse > :first-child { order: 2; } }
.stack-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stack-photos img { width: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.stack-photos img:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }

/* Fact list (course page) */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.facts dt { font: 500 0.8125rem/1.3 "Heebo", sans-serif; color: var(--muted); }
.facts dd { margin: 4px 0 0; color: var(--ink); }
.price-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.price-line .price { font-size: 2.2rem; }
.notes { font-size: 0.875rem; color: var(--muted); margin-top: 6px; }

/* Two-up text blocks */
.two-up { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .two-up { grid-template-columns: 1fr 1fr; gap: 56px; } }
.two-up .ph { font-size: 1.75rem; color: var(--accent-text); }
.two-up h3 { margin: 12px 0 8px; }

/* Course structure: headline column + body column per stage */
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(32px, 4vw, 48px); }
.stage { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .stage { grid-template-columns: 0.8fr 1.6fr; gap: 56px; } }
.stage h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.stage p { max-width: 65ch; }

/* Plain surface block */
.surface { background: var(--surface); }

/* Contact */
.contact-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 72px; } }
.info-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.info-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.info-list .ph { font-size: 1.35rem; color: var(--accent-text); translate: 0 2px; }
.info-list strong { display: block; font: 500 0.875rem/1.3 "Heebo", sans-serif; color: var(--muted); }
.info-list a { color: var(--ink); }
.socials { display: flex; gap: 4px; margin-top: 20px; }
.socials .icon-btn { border: 1px solid var(--line); }
.form-panel { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.form-panel h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.form-panel > p { margin-top: 10px; }
.field { display: grid; gap: 8px; margin-top: 20px; }
.field label { font: 500 0.9375rem/1.3 "Heebo", sans-serif; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-input);
  border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); background: var(--bg); color: var(--ink);
  font: 400 1rem/1.4 "Poppins", sans-serif;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field .help { font-size: 0.8125rem; color: var(--muted); }
.field .error { font-size: 0.875rem; color: var(--accent-text); min-height: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--accent); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-input); background: var(--surface-2); color: var(--ink); }
.form-status[hidden] { display: none; }
.form-panel .btn { margin-top: 24px; width: 100%; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.arrival { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .arrival { grid-template-columns: 1fr 1fr; gap: 64px; } }
.arrival img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.arrival h3 { margin-bottom: 8px; }
.arrival .block + .block { margin-top: 28px; }

/* Closing CTA strip */
.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: var(--surface); }
.cta-strip h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); max-width: 28ch; }

/* Footer */
.site-footer { background: var(--surface); padding-top: clamp(56px, 7vw, 80px); padding-bottom: 96px; font-size: 0.9375rem; }
.footer-top { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-brand img { width: 100px; height: 70px; }
.footer-brand address { font-style: normal; margin-top: 16px; }
.footer-brand address a { color: var(--ink); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--accent-text); text-decoration: underline; }
.footer-title { font: 500 0.9375rem/1.3 "Heebo", sans-serif; color: var(--ink); margin-bottom: 12px; }
.newsletter .row { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter .field { margin-top: 0; flex: 1 1 200px; }
.newsletter label { font: 500 0.9375rem/1.3 "Heebo", sans-serif; color: var(--ink); }
.newsletter .btn { align-self: end; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; color: var(--muted); font-size: 0.875rem; }
.footer-bottom a { color: var(--muted); }

/* WhatsApp chat (restyled from the live two-agent module) */
.chat { position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-toggle { box-shadow: var(--shadow); background: var(--ink); color: var(--bg); }
.chat-toggle:hover { background: var(--ink); color: var(--bg); }
.chat-panel {
  width: min(320px, calc(100vw - 32px)); padding: 16px; border-radius: var(--radius); background: var(--bg);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.2s, transform 0.3s var(--ease), visibility 0.2s;
}
.chat.open .chat-panel { opacity: 1; visibility: visible; transform: none; }
.chat-panel p { font-size: 0.875rem; color: var(--muted); margin-bottom: 8px; }
.agent { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.agent:active { background: var(--surface); color: var(--ink); }
.agent img { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; }
.agent strong { display: block; font: 500 1rem/1.2 "Heebo", sans-serif; }
.agent span { font-size: 0.8125rem; color: var(--muted); }
.agent .ph { font-size: 1.3rem; color: var(--accent-text); }

/* Motion: entrance + reveal, only when the visitor allows motion.
   Inner pages get a quick 0.4s settle; the homepage hero a slightly fuller 0.6s.
   The h1 rises without fading so it paints (and counts for LCP) immediately. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-media { animation: rise 0.4s var(--ease) both; }
  .hero .hero-copy > *, .hero .hero-media { animation-duration: 0.6s; }
  .hero-copy > h1 { animation-name: rise-only; }
  .hero-copy > :nth-child(2) { animation-delay: 0.04s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.12s; }
  .hero-media { animation-delay: 0.06s; }
  .js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); transition-delay: calc(var(--i, 0) * 50ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes rise-only { from { transform: translateY(10px); } }
/* Reduced motion: no movement, but state changes still cross-fade gently */
@media (prefers-reduced-motion: reduce) {
  html, .review-track { scroll-behavior: auto; }
  .btn, .text-link .ph, .tile img, .nav-link .ph, .dropdown, .chat-panel, .person summary::after { transition-property: opacity, visibility, color, background-color, border-color !important; }
  .dropdown, .chat-panel, .btn:active, .btn:hover, .tile img, .tile:hover img, .tile:active img, .ig-post img { transform: none !important; }
  .menu-dialog[open] { animation: fade-in 0.2s ease-out; }
}

/* Added for the full-site build */
.two-up.three { grid-template-columns: 1fr; }
@media (min-width: 900px) { .two-up.three { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.stack-photos.two img:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.stack-photos.two img:last-child { grid-column: span 2; aspect-ratio: 16 / 9; }
img.rounded { width: 100%; border-radius: var(--radius); aspect-ratio: 5 / 3; object-fit: cover; }
.points .label { margin-top: 10px; font: 500 0.875rem/1.3 "Heebo", sans-serif; color: #f3a5a6; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.staff-grid { display: grid; gap: 40px 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .staff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .staff-grid { grid-template-columns: repeat(3, 1fr); } }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
.person h3 { font-size: 1.2rem; }
.person details { margin-top: 10px; }
.person summary { cursor: pointer; font: 500 0.9375rem/1.4 "Heebo", sans-serif; color: var(--accent-text); list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.person summary::-webkit-details-marker { display: none; }
.person summary::after { content: "+"; font-size: 1.1em; transition: transform 0.3s var(--ease); }
.person details[open] summary::after { transform: rotate(45deg); }
.person details p { font-size: 0.9375rem; }
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .person details { interpolate-size: allow-keywords; }
    .person details::details-content { block-size: 0; overflow: clip; transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
    .person details[open]::details-content { block-size: auto; }
  }
}
.legal { max-width: 820px; }
.legal > .muted { margin-top: 8px; }
.legal-body { margin-top: 40px; }
.legal-body h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 48px 0 12px; }
.legal-body h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.legal-body h4 { font-size: 1rem; margin: 24px 0 8px; }
.legal-body p, .legal-body li { max-width: 72ch; }
.legal-body p + p { margin-top: 0.9em; }
.legal-body ul { padding-inline-start: 1.2em; margin: 12px 0; display: grid; gap: 6px; }
.legal-body [id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.sitemap-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 4px 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .sitemap-list { grid-template-columns: repeat(2, 1fr); } }
.sitemap-list a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; font: 500 1.05rem/1.3 "Heebo", sans-serif; border-bottom: 1px solid var(--line); }
.sitemap-list a:hover { color: var(--accent-text); }
.legal-body ul:has(> li > a[href^="#"]) { list-style: none; padding: 0; grid-template-columns: 1fr; gap: 2px 32px; }
@media (min-width: 768px) { .legal-body ul:has(> li > a[href^="#"]) { grid-template-columns: repeat(2, 1fr); } }
.legal-body ul:has(> li > a[href^="#"]) a { display: inline-block; padding: 6px 0; }
.video-facade { position: absolute; inset: 0; display: grid; place-items: center; isolation: isolate; text-decoration: none; }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.video-facade::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(var(--scrim) / 0.35); transition: background 0.3s; }


/* Increased contrast: solid header, darker text and borders */
@media (prefers-contrast: more) {
  :root { --text: #2b2429; --muted: #4f484c; --line: #7d7479; }
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .js .site-header:not(.scrolled) { border-bottom-color: var(--line); }
  .field input, .field select, .field textarea { border-color: var(--ink); }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --text: #f3eff1; --muted: #d4cdd1; --line: #a99fa5; }
}
@media (prefers-contrast: more) {
  :root[data-theme="dark"] { --text: #f3eff1; --muted: #d4cdd1; --line: #a99fa5; }
}

/* Right to left (Hebrew): Heebo throughout (Poppins has no Hebrew), arrows point the reading way,
   phone numbers and other Latin runs keep their own order */
[lang="he"] body, [lang="he"] .field input, [lang="he"] .field select, [lang="he"] .field textarea { font-family: "Heebo", system-ui, sans-serif; }
[lang="he"] h1, [lang="he"] h2, [lang="he"] h3, [lang="he"] h4 { letter-spacing: 0; }
[lang="he"] .eyebrow { letter-spacing: 0.04em; }
[dir="rtl"] .ph-arrow-right, [dir="rtl"] .ph-arrow-left { scale: -1 1; }
[dir="rtl"] a[href^="tel:"], [dir="rtl"] a[href^="mailto:info"] { unicode-bidi: isolate; direction: ltr; }

/* Language switcher (reuses the dropdown behaviour; labels are each language's own name) */
.lang { position: relative; }
.lang-btn { gap: 6px; padding: 0 12px; }
.lang-btn .ph-globe { font-size: 1.25rem; }
.dropdown.lang-menu {
  width: max-content; min-width: 190px; grid-template-columns: 1fr; gap: 2px; padding: 8px;
  left: auto; inset-inline-end: 0; translate: none;
}
.dropdown.lang-menu a { grid-template-columns: 1fr auto; padding: 10px 12px; }
.dropdown.lang-menu .ph-check { color: var(--accent-text); }
.menu-langs { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.menu-langs a[aria-current] { color: var(--accent-text); }
.menu-langs .ph-check { display: none; }
@media (max-width: 1023px) {
  .lang-btn { width: 44px; padding: 0; justify-content: center; }
  .lang-btn .lang-current, .lang-btn .ph-caret-down { display: none; }
}

/* Draft translation notice */
.draft-note { background: color-mix(in srgb, var(--accent) 10%, var(--bg)); color: var(--ink); font-size: 0.875rem; line-height: 1.5; }
.draft-note .container { display: flex; gap: 10px; align-items: flex-start; padding-block: 10px; }
.draft-note .ph { font-size: 1.2rem; color: var(--accent-text); flex: none; translate: 0 1px; }
.draft-note span { color: var(--muted); }
.review-note { font-size: 0.875rem; margin: -16px 0 20px; }

/* Instagram row: six square posts, linked to Instagram (plain images, no Instagram scripts) */
.ig { padding-top: 0; }
.ig-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 900px) { .ig-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
.ig-post { display: block; color: var(--text); text-decoration: none; }
.ig-media { position: relative; display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 1; background: var(--surface); }
.ig-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.ig-media .ph { position: absolute; top: 8px; inset-inline-end: 8px; font-size: 1.1rem; color: #fbfcfc; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.5)); }
.ig-cap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: 0.8125rem; line-height: 1.45; }
.ig-post:active img { transform: scale(1.02); transition-duration: 0.2s; }
@media (hover: hover) { .ig-post:hover .ig-cap { color: var(--ink); } }
@media (max-width: 899px) { .ig-grid { row-gap: 16px; } .ig-cap { font-size: 0.75rem; } }
@media (hover: hover) { .ig-post:hover img { transform: scale(1.04); } }
