/* shared.css — Design tokens, base reset, and reusable components
   Used by index.html, contacts.html, reviews.html */

/* ── TOKENS ── */
:root {
  --u: calc(100vw / 1440);
  --color-ink:       #2c2a28;
  --color-gold:      #da9b2a;
  --color-gold-hero: #d99b2a;
  --color-navy:      #0d2c48;
  --color-cream:     #fff9ee;
  --color-tan:       #c79f65;
  --color-white:     #ffffff;
  --color-black:     #000000;
  --overlay-navy: rgba(13, 44, 72, 0.8);
  --overlay-gold: rgba(218, 155, 42, 0.8);
  --font-family: 'Noto Sans Hebrew', 'Assistant', system-ui, Arial, sans-serif;
  --font-accent: 'Assistant', 'Noto Sans Hebrew', system-ui, sans-serif;
  --fw-xlight: 200; --fw-light: 300; --fw-regular: 400;
  --fw-medium: 500; --fw-bold: 700;  --fw-black: 900;
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}
@media (max-width: 767px) { :root { --u: calc(100vw / 414); } }

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--font-family);
  font-weight: var(--fw-light);
  color: var(--color-ink);
  background: var(--color-white);
  text-align: right;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4, p { font-weight: inherit; font-size: inherit; }

/* ── CANVAS ── */
.canvas {
  position: relative;
  width: calc(1440 * var(--u));
  height: 100%;
  margin: 0 auto;
}
@media (max-width: 767px) { .canvas { position: static; width: auto; height: auto; margin: 0; } }

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

/* ── SECTION TITLE ── */
.section-title {
  font-size: calc(85 * var(--u));
  font-weight: var(--fw-xlight);
  line-height: calc(109 / 85);
  text-align: center;
  color: var(--color-ink);
}
@media (max-width: 767px) { .section-title { font-size: calc(44 * var(--u)); line-height: 1.25; } }

/* ── MARK ── */
.mark { position: relative; z-index: 0; white-space: nowrap; }
.mark::after {
  content: '';
  position: absolute;
  right: calc(-3 * var(--u)); left: calc(-3 * var(--u));
  bottom: calc(2 * var(--u));
  height: calc(7 * var(--u));
  border-radius: calc(12 * var(--u));
  background: var(--color-gold);
  z-index: -1;
}
.mark--tan::after { background: var(--color-tan); }

/* ── PLATE ── */
.plate {
  display: flex; align-items: center; justify-content: center;
  width: calc(354 * var(--u)); height: calc(47 * var(--u));
  background: var(--color-navy); color: var(--color-white);
  font-size: calc(36 * var(--u)); font-weight: var(--fw-regular);
  line-height: calc(49 / 36);
}
.plate--bold { font-weight: var(--fw-bold); }
@media (max-width: 767px) {
  .plate { width: 100%; max-width: calc(340 * var(--u)); height: calc(44 * var(--u)); font-size: calc(22 * var(--u)); }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-family); text-align: center;
  transition: filter var(--transition-fast), transform var(--transition-fast);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn--gold {
  width: calc(187 * var(--u)); height: calc(49 * var(--u));
  background: var(--color-gold-hero); color: var(--color-white);
  font-size: calc(22 * var(--u)); font-weight: var(--fw-medium);
}
.btn--ink {
  width: calc(210 * var(--u)); height: calc(57 * var(--u));
  background: var(--color-ink); color: var(--color-white);
  font-size: calc(24 * var(--u)); font-weight: var(--fw-regular);
}
@media (max-width: 767px) {
  .btn--gold { width: calc(200 * var(--u)); height: calc(52 * var(--u)); font-size: calc(20 * var(--u)); }
  .btn--ink  { width: calc(220 * var(--u)); height: calc(56 * var(--u)); font-size: calc(20 * var(--u)); }
}

/* ── HEADER ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: calc(84 * var(--u));
  display: flex; align-items: center;
  background: transparent;
  transition: background var(--transition-base), height var(--transition-base), box-shadow var(--transition-base);
}
.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,44,72,0.55), rgba(13,44,72,0));
  opacity: 1;
  transition: opacity var(--transition-base);
  pointer-events: none;
}
.site-header--solid,
.site-header.is-scrolled {
  background: var(--color-navy);
  box-shadow: 0 calc(2 * var(--u)) calc(18 * var(--u)) rgba(13,44,72,0.28);
  height: calc(70 * var(--u));
}
.site-header--solid::before,
.site-header.is-scrolled::before { opacity: 0; }
.site-header__inner {
  position: relative; z-index: 1;
  width: calc(1440 * var(--u)); max-width: 100%;
  margin: 0 auto; padding: 0 calc(40 * var(--u));
  display: flex; align-items: center; justify-content: space-between;
  gap: calc(24 * var(--u));
}
.site-header__logo { display: flex; align-items: center; gap: calc(12 * var(--u)); flex-shrink: 0; }
.site-header__logo img { height: calc(52 * var(--u)); width: auto; transition: height var(--transition-base); }
.site-header.is-scrolled .site-header__logo img,
.site-header--solid .site-header__logo img { height: calc(46 * var(--u)); }
.site-header__title {
  font-size: calc(20 * var(--u)); font-weight: var(--fw-bold);
  line-height: 1.2; color: var(--color-white); white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: calc(28 * var(--u)); }
.site-nav ul { display: flex; align-items: center; gap: calc(26 * var(--u)); }
.site-nav a {
  font-size: calc(20 * var(--u)); font-weight: var(--fw-regular);
  line-height: 1.4; color: var(--color-white); white-space: nowrap;
  position: relative; padding: calc(6 * var(--u)) 0;
  transition: color var(--transition-fast);
}
.site-nav a::after {
  content: ''; position: absolute; right: 0; left: 0; bottom: 0;
  height: calc(3 * var(--u)); border-radius: calc(12 * var(--u));
  background: var(--color-gold); transform: scaleX(0);
  transition: transform var(--transition-fast);
}
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.site-header__cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: calc(46 * var(--u)); padding: 0 calc(26 * var(--u));
  background: var(--color-gold); color: var(--color-white);
  font-size: calc(19 * var(--u)); font-weight: var(--fw-medium); white-space: nowrap;
  transition: filter var(--transition-fast), transform var(--transition-fast);
}
.site-nav a.site-header__cta::after { content: none; }
.site-nav a.site-header__cta:hover { filter: brightness(1.08); }
.site-nav a.site-header__cta:active { transform: translateY(1px); }

/* Burger */
.site-header__burger {
  display: none;
  width: max(44px, calc(44 * var(--u))); height: max(44px, calc(44 * var(--u)));
  flex-direction: column; align-items: center; justify-content: center;
  gap: calc(5 * var(--u));
}
.site-header__burger span {
  display: block; width: calc(26 * var(--u)); height: calc(2 * var(--u));
  background: var(--color-white);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
body.has-solid-header { padding-top: calc(70 * var(--u)); }

@media (max-width: 767px) {
  .site-header { height: calc(64 * var(--u)); }
  .site-header--solid, .site-header.is-scrolled { height: calc(58 * var(--u)); }
  .site-header__inner { padding: 0 calc(16 * var(--u)); gap: calc(10 * var(--u)); }
  .site-header__logo img { height: calc(42 * var(--u)); }
  .site-header.is-scrolled .site-header__logo img,
  .site-header--solid .site-header__logo img { height: calc(38 * var(--u)); }
  .site-header__title { display: none; }
  .site-header__burger { display: flex; }
  .site-nav {
    position: fixed; top: calc(58 * var(--u)); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(8 * var(--u)) calc(16 * var(--u)) calc(20 * var(--u));
    background: var(--color-navy);
    box-shadow: 0 calc(12 * var(--u)) calc(24 * var(--u)) rgba(13,44,72,0.3);
    transform: translateY(calc(-12 * var(--u))); opacity: 0; visibility: hidden;
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
    max-height: calc(100vh - 58 * var(--u)); overflow-y: auto;
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: block; padding: calc(14 * var(--u)) 0; font-size: calc(19 * var(--u)); border-bottom: 1px solid rgba(255,255,255,0.12); }
  .site-nav a::after { display: none; }
  .site-nav a.site-header__cta { display: flex; margin-top: calc(14 * var(--u)); height: calc(48 * var(--u)); font-size: calc(18 * var(--u)); }
  body.has-solid-header { padding-top: calc(58 * var(--u)); }
  html.nav-open, body.nav-open { overflow: hidden; touch-action: none; }
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--color-navy);
  padding: calc(70 * var(--u)) calc(24 * var(--u)) calc(60 * var(--u));
  text-align: center; isolation: isolate;
}
.page-hero__texture {
  position: absolute; inset: 0;
  background: url('img/texture.jpg') center / cover no-repeat;
  opacity: 0.12; pointer-events: none; z-index: -1;
}
.page-hero__title {
  font-size: calc(72 * var(--u)); font-weight: var(--fw-xlight);
  line-height: 1.2; color: var(--color-white);
}
.page-hero__sub {
  margin-top: calc(14 * var(--u));
  font-size: calc(26 * var(--u)); font-weight: var(--fw-light);
  line-height: 1.5; color: rgba(255,255,255,0.88);
}
.page-hero__bar {
  width: calc(180 * var(--u)); height: calc(7 * var(--u));
  margin: calc(22 * var(--u)) auto 0;
  border-radius: calc(12 * var(--u)); background: var(--color-gold);
}
@media (max-width: 767px) {
  .page-hero { padding: calc(44 * var(--u)) calc(20 * var(--u)) calc(40 * var(--u)); }
  .page-hero__title { font-size: calc(40 * var(--u)); }
  .page-hero__sub { font-size: calc(18 * var(--u)); }
  .page-hero__bar { width: calc(120 * var(--u)); height: calc(5 * var(--u)); }
}

/* ── FOOTER ── */
.footer { position: relative; height: calc(153 * var(--u)); background: var(--color-white); }
.footer__logo { position: absolute; left: calc(1173 * var(--u)); top: calc(6 * var(--u)); width: calc(161 * var(--u)); height: calc(144 * var(--u)); direction: ltr; }
.footer__logo img { width: 100%; height: 100%; object-fit: contain; }
.footer__address { position: absolute; top: calc(33 * var(--u)); left: 0; width: 100%; font-size: calc(24 * var(--u)); font-weight: var(--fw-regular); line-height: calc(33 * var(--u)); text-align: center; }
.footer__address a:hover { opacity: 0.7; }
.footer__copy { position: absolute; top: calc(103 * var(--u)); left: 0; width: 100%; font-size: calc(20 * var(--u)); font-weight: var(--fw-regular); line-height: calc(27 * var(--u)); text-align: center; }
@media (max-width: 767px) {
  .footer { height: auto; padding: calc(36 * var(--u)) calc(24 * var(--u)) calc(40 * var(--u)); }
  .footer .canvas { display: flex; flex-direction: column; align-items: center; gap: calc(16 * var(--u)); }
  .footer__logo, .footer__address, .footer__copy { position: relative; left: auto; top: auto; }
  .footer__logo { width: calc(110 * var(--u)); height: calc(98 * var(--u)); }
  .footer__address { width: 100%; font-size: calc(15 * var(--u)); line-height: 1.6; }
  .footer__copy { width: 100%; font-size: calc(13 * var(--u)); }
}

/* ── VIDEO MODAL ── */
.video-modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: calc(24 * var(--u));
  background: rgba(13, 44, 72, 0.88);
}
.video-modal.is-open { display: flex; }
.video-modal__dialog { position: relative; width: min(calc(960 * var(--u)), 92vw); }
.video-modal__frame { position: relative; width: 100%; aspect-ratio: 16/9; background: var(--color-black); }
.video-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal__close {
  position: absolute; top: calc(-44 * var(--u)); left: 0;
  width: calc(36 * var(--u)); height: calc(36 * var(--u));
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white); font-size: calc(30 * var(--u)); line-height: 1;
  transition: opacity var(--transition-fast);
}
.video-modal__close:hover { opacity: 0.7; }
