/* ==========================================================================
   Diamond Hall, Jerusalem. Bilingual landing page (Hebrew RTL at /, English
   LTR at /en/). Light-first: warm ivory ground, sand bands, charcoal text,
   gold only as a thin accent. The logo is a transparent gold PNG derived from
   the supplied JPG, so it sits straight on the ivory with no box.
   Logical properties throughout so one sheet serves both directions.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --ivory:    #f8f4ec;   /* page ground */
  --ivory-2:  #fdfbf7;   /* cards, inputs */
  --sand:     #efe7d8;   /* soft section bands */
  --sand-2:   #e6dcc8;   /* deeper band (form) */
  --char:     #2a2a2a;   /* body text */
  --char-2:   #3a3a3a;   /* footer */
  --stone:    #7b7466;   /* secondary text */
  --stone-2:  #a49c8e;   /* labels */
  --gold:     #c9a04a;
  --gold-2:   #e6c76b;
  --gold-3:   #f3dc94;
  --line:     rgba(42, 42, 42, .12);
  --line-gold: rgba(201, 160, 74, .45);

  --font-display: 'Frank Ruhl Libre', 'Times New Roman', serif;
  --font-body:    'Heebo', 'Assistant', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step--1: clamp(.84rem, .8rem + .2vw, .94rem);
  --step-0:  clamp(1rem, .95rem + .3vw, 1.15rem);
  --step-1:  clamp(1.25rem, 1.1rem + .7vw, 1.65rem);
  --step-2:  clamp(1.7rem, 1.35rem + 1.5vw, 2.5rem);
  --step-3:  clamp(2.2rem, 1.6rem + 2.8vw, 3.7rem);
  --step-4:  clamp(2.7rem, 1.7rem + 4.6vw, 5.4rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 2px 6px rgba(42,42,42,.05), 0 20px 50px rgba(42,42,42,.10);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.7;
  color: var(--char);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--char);
  text-wrap: balance;
}
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: .25em; }
strong { font-weight: 500; }

.visually-hidden {
  position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.visually-hidden:focus {
  inline-size: auto; block-size: auto; clip: auto; z-index: 100;
  inset-block-start: .5rem; inset-inline-start: .5rem;
  padding: .6rem 1rem; background: var(--char); color: var(--ivory);
}

/* --- Layout ------------------------------------------------------------- */
.shell { inline-size: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section--tint { background: var(--sand); }
/* "dark" bands are now soft sand; the class name stays so the markup is untouched */
.section--dark { background: var(--sand); }
.section--dark h2, .section--dark h3 { color: var(--char); }

.eyebrow {
  font-size: var(--step--1); letter-spacing: .28em; font-weight: 500;
  color: var(--gold); margin-block-end: 1rem;
}

.rule { display: block; inline-size: 48px; block-size: 1px; background: var(--gold); margin-block-end: 1.5rem; }

.section-head { max-inline-size: 60ch; margin-block-end: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-block-start: 1.1rem; color: var(--stone); font-size: var(--step-1); line-height: 1.5; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.9rem; border: 1px solid transparent; border-radius: var(--radius);
  font-size: var(--step--1); font-weight: 500; letter-spacing: .08em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { inline-size: 18px; block-size: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
/* primary: charcoal on light */
.btn--gold { background: var(--char); color: var(--ivory); }
.btn--gold:hover { background: #000; }
.btn--dark { background: var(--char); color: var(--ivory); }
.btn--dark:hover { background: #000; }
/* secondary: gold hairline outline */
.btn--outline, .btn--outline-light { border-color: var(--line-gold); color: var(--char); background: transparent; }
.btn--outline:hover, .btn--outline-light:hover { border-color: var(--gold); background: rgba(201,160,74,.08); }

.icon-btn {
  display: inline-grid; place-items: center; inline-size: 42px; block-size: 42px;
  border: 1px solid var(--line-gold); border-radius: 50%; color: var(--gold);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.icon-btn svg { inline-size: 18px; block-size: 18px; fill: currentColor; }
.icon-btn:hover { border-color: var(--gold); background: rgba(201,160,74,.08); }

/* --- Header ------------------------------------------------------------- */
.header {
  position: sticky; inset-block-start: 0; z-index: 60;
  background: rgba(248, 244, 236, .9);
  backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--line);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-stuck { border-block-end-color: var(--line-gold); box-shadow: 0 8px 30px rgba(42,42,42,.05); }
.header__inner { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); min-block-size: 84px; }

.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; margin-inline-end: auto; flex-shrink: 0; white-space: nowrap; }
.brand__mark { inline-size: 46px; block-size: 46px; }
.brand__name { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .06em; color: var(--char); line-height: 1; }
.brand__tag { font-size: .7rem; letter-spacing: .16em; color: var(--stone); font-weight: 400; }
@media (max-width: 1280px) { .brand__tag { display: none; } }
@media (max-width: 400px) { .brand__name { display: none; } }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav a {
  font-size: var(--step--1); font-weight: 400; letter-spacing: .04em; text-decoration: none; white-space: nowrap;
  color: var(--stone); padding-block: .35rem; border-block-end: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.nav a:hover { color: var(--char); border-block-end-color: var(--gold); }

.header__actions { display: flex; align-items: center; gap: .75rem; }
.lang {
  display: inline-flex; align-items: center; gap: .5rem; block-size: 42px;
  font-size: var(--step--1); font-weight: 400; letter-spacing: .04em; text-decoration: none; text-transform: none;
  color: var(--stone); padding: 0 1.1rem; border: 1px solid var(--line-gold); border-radius: 999px;
  transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease);
}
.lang svg { inline-size: 18px; block-size: 18px; fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; }
.lang:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,160,74,.06); }

.burger { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.burger span { display: block; inline-size: 24px; block-size: 1.5px; background: var(--char); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.burger span + span { margin-block-start: 6px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1100px) {
  .burger { display: block; order: 3; }
  .nav {
    position: fixed; inset-block-start: 84px; inset-inline: 0; inset-block-end: 0;
    flex-direction: column; align-items: flex-start; gap: .5rem;
    padding: 2rem var(--gutter); background: var(--ivory);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { font-size: var(--step-1); font-family: var(--font-display); color: var(--char); }
  .header__actions .btn { display: none; }
}

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--ivory); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__facets { inline-size: 100%; block-size: 100%; }
.hero__inner { padding-block: clamp(4rem, 10vw, 7.5rem) clamp(5rem, 12vw, 9rem); max-inline-size: 820px; text-align: center; }
.hero__logo {
  inline-size: min(420px, 78vw); block-size: auto; margin-inline: auto; margin-block-end: 2rem;
  /* very faint warm glow so the gold lifts off the ivory; no box */
  filter: drop-shadow(0 6px 24px rgba(201,160,74,.22));
}
.hero .rule, .hero .eyebrow { margin-inline: auto; }
.hero h1 { font-size: var(--step-4); color: var(--char); font-weight: 400; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lead { margin-block-start: 1.6rem; font-size: var(--step-1); line-height: 1.55; max-inline-size: 44ch; margin-inline: auto; color: var(--stone); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-block-start: 2.4rem; }

/* --- Cards (event types) ------------------------------------------------ */
.cards { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  position: relative; padding: 2rem 1.75rem 2.25rem; background: var(--ivory-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-gold); }
.card__num { font-family: var(--font-display); font-size: var(--step--1); color: var(--gold); letter-spacing: .1em; }
.card h3 { font-size: var(--step-1); margin-block: .8rem .6rem; }
.card p { color: var(--stone); font-size: var(--step--1); line-height: 1.65; }

/* --- Number tiles ------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line-gold); border: 1px solid var(--line-gold); border-radius: var(--radius); overflow: hidden; }
.tile { background: var(--ivory-2); padding: clamp(1.75rem, 4vw, 2.75rem) 1.25rem; text-align: center; }
.tile__num { display: block; font-family: var(--font-display); font-size: var(--step-3); color: var(--char); line-height: 1.1; }
.tile__label { display: block; margin-block-start: .6rem; font-size: var(--step--1); letter-spacing: .06em; color: var(--stone); }

/* --- Gallery placeholders ----------------------------------------------- */
.gallery { display: grid; gap: clamp(.75rem, 1.5vw, 1.25rem); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tile-ph {
  aspect-ratio: 3 / 2; display: grid; place-content: center; gap: .6rem; text-align: center;
  border-radius: var(--radius); color: var(--stone); font-size: var(--step--1); letter-spacing: .1em;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(201,160,74,.16), transparent 55%),
    linear-gradient(160deg, var(--sand), var(--ivory-2) 65%);
  border: 1px solid var(--line);
}
.tile-ph__icon {
  inline-size: 36px; block-size: 36px; margin-inline: auto; opacity: .7; background: var(--gold);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3l-1.5 2H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-3.5L15 3H9zm3 5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9zm0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3l-1.5 2H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-3.5L15 3H9zm3 5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9zm0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- Values ------------------------------------------------------------- */
.values { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.value { padding-block-start: 1.5rem; border-block-start: 1px solid var(--line-gold); }
.value h3 { font-size: var(--step-1); margin-block-end: .6rem; }
.value p { color: var(--stone); font-size: var(--step--1); line-height: 1.65; }

/* --- Date check form ---------------------------------------------------- */
#check { background: var(--sand-2); }
.check { display: grid; gap: clamp(2.5rem, 6vw, 5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .check { grid-template-columns: .9fr 1.1fr; } }
.check__intro h2 { font-size: var(--step-3); }
.check__intro p { margin-block-start: 1.1rem; color: var(--stone); font-size: var(--step-0); max-inline-size: 40ch; }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.field { display: grid; gap: .45rem; }
.field span { font-size: var(--step--1); letter-spacing: .04em; color: var(--stone); }
.field input, .field select, .field textarea {
  inline-size: 100%; padding: .85rem 1rem; border-radius: var(--radius);
  background: var(--ivory-2); border: 1px solid var(--line); color: var(--char);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,160,74,.15); }
.field select { appearance: none; padding-inline-end: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a04a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left .9rem center; background-size: 16px; }
[dir="ltr"] .field select { background-position: right .9rem center; }
.field textarea { resize: vertical; min-block-size: 5rem; }
.field input.is-invalid, .field select.is-invalid { border-color: #c4574a; }

.form__error { color: #a8392d; font-size: var(--step--1); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-block-start: .5rem; }
.form__alt { font-size: var(--step--1); color: var(--stone); }
.form__alt:hover { color: var(--char); }

/* --- Contact ------------------------------------------------------------ */
.contact { display: grid; gap: clamp(2.5rem, 6vw, 5rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.contact h2 { font-size: var(--step-3); }
.contact__list { display: grid; gap: 1.25rem; margin-block-start: 2rem; }
.contact__list dt { font-size: var(--step--1); letter-spacing: .12em; color: var(--gold); }
.contact__list dd { font-size: var(--step-0); color: var(--char); margin-block-start: .15rem; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--gold); }
.contact__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-block-start: 2.25rem; }

.map { display: grid; gap: .75rem; align-content: start; }
.map iframe { inline-size: 100%; aspect-ratio: 16 / 9; block-size: auto; min-block-size: 280px; border: 1px solid var(--line); border-radius: 8px; background: var(--sand); display: block; }
.map__link { justify-self: start; font-size: var(--step--1); letter-spacing: .04em; color: var(--stone); text-decoration: none; border-block-end: 1px solid var(--line-gold); padding-block-end: .15rem; }
.map__link:hover { color: var(--gold); border-block-end-color: var(--gold); }
.map__ph { block-size: 100%; min-block-size: 320px; display: grid; place-content: center; gap: .6rem; text-align: center; color: var(--stone); font-size: var(--step--1); letter-spacing: .08em;
  background: radial-gradient(60% 60% at 50% 45%, rgba(201,160,74,.16), transparent 70%), var(--sand); }
.map__ph svg { inline-size: 36px; block-size: 36px; margin-inline: auto; fill: var(--gold); }

/* --- Footer ------------------------------------------------------------- */
.footer { background: var(--char-2); color: var(--ivory); border-block-start: 1px solid var(--line-gold); }
.footer__inner { display: grid; justify-items: center; gap: .5rem; padding-block: 2.5rem 2rem; font-size: var(--step--1); text-align: center; }
.footer__inner p { opacity: .75; }
.footer__emblem { inline-size: min(200px, 50vw); block-size: auto; margin-block-end: .75rem; }
.footer a { text-decoration-color: var(--gold); }

/* --- Floating WhatsApp (mobile) ---------------------------------------- */
.wa-float {
  display: none; position: fixed; inset-block-end: calc(1.25rem + env(safe-area-inset-bottom, 0px)); inset-inline-start: 1.25rem; z-index: 70;
  inline-size: 56px; block-size: 56px; border-radius: 50%; background: #25d366; color: #fff;
  place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.wa-float svg { inline-size: 28px; block-size: 28px; fill: currentColor; }
@media (max-width: 900px) { .wa-float { display: grid; } }

/* --- Reveal ------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
