/* =========================================================
   מסע בזמן דרך אלכוהול — classical editorial style, in yellows
   Design philosophy borrowed (not copied) from the Rome design:
   serif type, thin rules + ornaments, restrained palette,
   letterspaced caps labels, low radii, generous whitespace.
   ========================================================= */

:root {
  /* Warm parchment + gold palette (light, refined) */
  --paper:        #fbf4e2;   /* page background */
  --paper-2:      #f6ebd2;   /* slightly deeper panel */
  --paper-light:  #fdfaf3;   /* almost-white papyrus panel */
  --paper-card:   #fffaf0;   /* card / form surfaces */
  --ink:          #2c2114;   /* deep warm espresso text */
  --brown-soft:   #6e4b21;   /* medium warm brown — headings on parchment */
  --bar:          #5e3f1b;   /* header/footer background — a shade darker than brown-soft */
  --ink-soft:     #7c6a4c;   /* muted serif text */
  --rule:         #d8c391;   /* hairline rules */
  --rule-soft:    #e7d6ac;
  --gold:         #c79a36;   /* primary gold */
  --gold-deep:    #a87d22;   /* deeper gold */
  --gold-bright:  #e7bb3c;   /* bright accent */
  --amber:        #b4571c;   /* restrained burnt-amber accent (sparingly) */
  --cream:        #fdf6e3;   /* light text on dark gold */

  --maxw: 1080px;
  --radius: 4px;
  --space: clamp(3.25rem, 7vw, 6.5rem);
  --shadow-sm: 0 1px 2px rgba(60, 40, 12, .06);
  --shadow-md: 0 8px 26px rgba(80, 55, 18, .10);

  /* Procedural papyrus texture — pure SVG (crossed horizontal/vertical fibers), ~700B, tiles seamlessly */
  --papyrus: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='280'%20height='280'%3E%3Cfilter%20id='h'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='.012%20.38'%20numOctaves='5'%20seed='11'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='matrix'%20values='0%200%200%200%20.5%200%200%200%200%20.38%200%200%200%200%20.17%200%200%200%201%200'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='gamma'%20exponent='1.6'%20amplitude='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Cfilter%20id='v'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='.38%20.012'%20numOctaves='5'%20seed='5'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='matrix'%20values='0%200%200%200%20.5%200%200%200%200%20.38%200%200%200%200%20.17%200%200%200%201%200'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='gamma'%20exponent='1.6'%20amplitude='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect%20width='280'%20height='280'%20filter='url%28%23h%29'%20opacity='.12'/%3E%3Crect%20width='280'%20height='280'%20filter='url%28%23v%29'%20opacity='.08'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; max-width: 100%; }

body {
  font-family: "Alef", "Frank Ruhl Libre", Georgia, serif;
  color: var(--ink);
  background-color: var(--paper);
  /* very subtle parchment mottling — kept light/clean */
  background-image:
    radial-gradient(ellipse at 15% 10%, rgba(199,154,54,.06), transparent 50%),
    radial-gradient(ellipse at 88% 85%, rgba(180,87,28,.045), transparent 55%);
  background-attachment: fixed;
  line-height: 1.75;
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.16rem);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

@font-face {
  font-family: "Hillel CLM";
  src: url("assets/hillel-clm.woff2") format("woff2");
  font-weight: 400 700; /* single Medium file covers all weights — avoids synthetic bold */
  font-display: swap;
}

h1, h2, h3 { font-family: "Hillel CLM", "Frank Ruhl Libre", Georgia, serif; line-height: 1.28; font-weight: 700; }

/* ===== Layout helpers ===== */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.5rem); }
.section { padding-block: var(--space); }
.text-center { text-align: center; max-width: 64ch; margin-inline: auto; }
.lead-center {
  font-family: "Hillel CLM", "Frank Ruhl Libre", serif;
  text-align: center; max-width: 60ch; margin-inline: auto;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.85rem);
  font-weight: 500; color: var(--gold-deep); line-height: 1.5; margin-bottom: 1.1rem;
}

/* Latin-style kicker — letterspaced small caps (Cinzel) */
.kicker {
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--gold-deep);
  text-align: center;
}

/* Ornamental divider: hairline rule with a centered gold lozenge */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin: 1.1rem auto 0; max-width: 220px; color: var(--gold);
}
.ornament::before, .ornament::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(to var(--_d, right), transparent, var(--rule));
}
.ornament::after { --_d: left; }
.ornament span {
  width: 8px; height: 8px; transform: rotate(45deg);
  background: var(--gold); box-shadow: 0 0 0 3px rgba(199,154,54,.18);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: "Hillel CLM", "Frank Ruhl Libre", serif; font-weight: 600; font-size: 1.05rem;
  letter-spacing: .02em; line-height: 1;
  padding: .85rem 1.9rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.btn-primary { background: var(--gold-deep); color: var(--cream); border-color: var(--gold-deep); }
.btn-primary:hover { background: var(--amber); border-color: var(--amber); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--gold-deep); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold-deep); color: var(--cream); border-color: var(--gold-deep); transform: translateY(-1px); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(to bottom, rgba(94,63,27,.62), var(--bar)), url("assets/texture-brick.webp") top center / max(100%, 1400px) auto;
  border-bottom: 1px solid var(--gold-deep);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--cream); }
.brand-text { font-family: "Hillel CLM", "Frank Ruhl Libre", serif; font-weight: 700; font-size: 1.28rem; letter-spacing: .01em; color: var(--cream); }
.brand-logo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(199,154,54,.5); }
.brand-mark {
  width: 13px; height: 13px; transform: rotate(45deg); flex: none;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(199,154,54,.2);
}
.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 1.7rem; list-style: none; }
.nav-menu a {
  font-family: "Hillel CLM", "Frank Ruhl Libre", serif; font-weight: 500; font-size: 1.15rem;
  color: var(--cream); padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color .18s, border-color .18s;
}
.nav-menu a:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.nav-menu a.nav-cta {
  display: inline-flex; align-items: center; line-height: 1;
  font-family: "Hillel CLM", "Frank Ruhl Libre", serif; font-weight: 600; letter-spacing: .01em;
  font-size: 1.15rem; color: var(--cream);
  background: var(--gold-deep); padding: .55rem 1.1rem; border-radius: var(--radius);
  border-bottom: 0;
}
.nav-menu a.nav-cta:hover { background: var(--amber); color: var(--cream); border-color: transparent; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--cream); transition: transform .25s, opacity .25s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 62px);
  min-height: calc(100svh - 62px);
  display: grid; align-content: center;
  background:
    linear-gradient(160deg, rgba(202,162,63,.78) 0%, rgba(185,132,42,.78) 46%, rgba(168,112,31,.78) 74%, rgba(156,95,27,.78) 100%),
    url("assets/texture-brick.webp") center / cover no-repeat;
  color: var(--cream);
  padding-block: clamp(3.5rem, 8vw, 7rem);
  border-bottom: 1px solid var(--gold-deep);
  overflow: hidden;
}
/* thin inset double-rule frame for an editorial feel */
.hero::after {
  content: ""; position: absolute; inset: 16px;
  border: 1px solid rgba(253, 246, 227, .28);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 280px 1fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.hero-logo img { margin-inline: auto; border-radius: 50%; filter: drop-shadow(0 10px 26px rgba(40,22,4,.4)); width: 250px; height: auto; transition: width .3s ease; }
.hero-copy .kicker { color: rgba(253,246,227,.85); text-align: start; margin-bottom: .9rem; }
.hero-brandline {
  font-family: "Hillel CLM", "Frank Ruhl Libre", serif; font-weight: 600;
  font-size: clamp(1.2rem, 1.05rem + .7vw, 1.65rem);
  letter-spacing: .22em; color: #fdf6e3;
  margin-bottom: .55rem; padding-bottom: .55rem;
  display: inline-block; border-bottom: 1px solid rgba(253,246,227,.35);
}
.hero-copy h1 {
  font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.1rem); font-weight: 700; color: #fffaf0;
  letter-spacing: .005em; text-shadow: 0 1px 14px rgba(60,30,4,.3);
}
.hero-sub { margin-top: .9rem; font-size: clamp(1.3rem, 1.15rem + 0.8vw, 1.75rem); font-weight: 500; color: #f6e6c0; font-style: italic; }
.hero-sub span { white-space: nowrap; }
@media (max-width: 560px) {
  .hero-sub span { white-space: normal; }
}
.hero-lead { margin-top: 1rem; font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem); max-width: 46ch; color: rgba(253,246,227,.92); }
.hero .ornament { margin-inline-start: 0; }
.hero .ornament::before, .hero .ornament::after { background: linear-gradient(to var(--_d, right), transparent, rgba(253,246,227,.5)); }
.hero .ornament span { background: #fdf6e3; box-shadow: 0 0 0 3px rgba(253,246,227,.18); }
.hero-actions { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-actions .btn { font-size: 1.25rem; padding: 1.05rem 2.4rem; }
.btn-on-dark { background: #fdf6e3; color: var(--gold-deep); border-color: #fdf6e3; }
.btn-on-dark:hover { background: var(--amber); color: var(--cream); border-color: var(--amber); }
.btn-outline-on-dark { background: transparent; color: #fdf6e3; border-color: rgba(253,246,227,.6); }
.btn-outline-on-dark:hover { background: rgba(253,246,227,.14); border-color: #fdf6e3; }
.btn-arrow { display: inline-block; transition: transform .18s ease; }
.btn:hover .btn-arrow { transform: translateX(-4px); }

/* ===== Section title block ===== */
.section-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .kicker { margin-bottom: .7rem; }
.section-title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); color: var(--gold-deep); font-weight: 700; }
.section-intro { max-width: 54ch; margin: .8rem auto 0; color: var(--ink-soft); font-size: 1.3rem; font-style: italic; }

/* ===== Intro ===== */
/* Light sections alternate between two papyrus tones: almost-white and deeper parchment */
.intro { background: var(--papyrus) var(--paper-light); }
/* On the deeper parchment sections, headings/accent text go navbar-brown instead of gold */
.about .kicker, .about .about-copy h2, .about .highlight,
.lectures .section-head .kicker, .lectures .section-title { color: var(--brown-soft); }
.intro .text-center + .feature-image, .intro .feature-image { margin-block: 2.4rem; }
.feature-image { position: relative; }
.feature-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--rule); }

/* ===== About ===== */
.about { background: var(--papyrus) var(--paper-2); border-block: 1px solid var(--rule); }
.about-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--rule); cursor: zoom-in; }
.about-copy .kicker { text-align: start; margin-bottom: .6rem; }
.about-copy h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); color: var(--gold-deep); margin-bottom: 1rem; }
.about-copy p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.check-list { list-style: none; display: grid; gap: .65rem; margin: 0 0 1.4rem; padding: 0; }
.lectures .check-list {
  display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem;
  width: 100%; margin: 1.4rem 0 0; text-align: start;
}
.lectures .check-list li {
  flex: 0 0 calc(50% - .8rem);
  text-align: center; padding: .85rem 2.4rem; /* symmetric: keeps the centered text truly centered next to the marker */
  font-size: 1.18rem; position: relative;
  color: var(--cream); font-family: "Hillel CLM", "Frank Ruhl Libre", serif;
  background: var(--gold-deep); border: 1px solid var(--gold-deep); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.lectures .check-list li::before {
  position: absolute; inset-inline-start: 1.1rem; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  background: #fff; box-shadow: 0 0 0 3px rgba(253, 246, 227, .25);
}
@media (max-width: 620px) {
  .lectures .check-list li { flex-basis: 100%; }
}
.check-list li { position: relative; padding-inline-start: 1.7rem; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .7em;
  width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold);
}
.highlight {
  font-family: "Hillel CLM", "Frank Ruhl Libre", serif; font-weight: 500;
  color: var(--gold-deep); font-size: 1.3rem; line-height: 1.5; margin-block: 1.2rem;
}

/* ===== Gallery ("moments") ===== */
.gallery-section { background: var(--papyrus) var(--paper-light); border-block: 1px solid var(--rule); }
.gallery {
  position: relative;
  direction: ltr; /* strip scroll math is LTR; images have no reading order */
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-block: .25rem;
  /* full-width (direct child of the section); pad so the first image aligns with the container */
  --bleed-pad: max(calc((100% - var(--maxw)) / 2 + clamp(1.2rem, 4vw, 2.5rem)), 1.2rem);
  padding-inline: var(--bleed-pad);
  scroll-padding-left: var(--bleed-pad);
}
.gallery-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; direction: ltr; }
.gallery-dot {
  width: 8px; height: 8px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid var(--gold-deep); background: transparent;
  transition: background .18s, transform .18s;
}
.gallery-dot.active { background: var(--gold-deep); transform: scale(1.25); }
.gallery::-webkit-scrollbar { display: none; }
.gallery img {
  flex: 0 0 auto; height: clamp(200px, 24vw, 300px); width: auto; /* natural aspect ratio, uniform row height */
  scroll-snap-align: start;
  border-radius: var(--radius); border: 1px solid var(--rule); box-shadow: var(--shadow-sm);
}
.gallery-glyph {
  aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--gold-deep);
  background:
    radial-gradient(circle at 50% 42%, rgba(199,154,54,.14), transparent 62%),
    linear-gradient(160deg, var(--paper-card), var(--paper-2));
}
.gallery-glyph svg { width: 44%; max-width: 96px; height: auto; }
/* Mid-page CTA banner — capped width, centered, not full-bleed */
.banner-cta { margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }
.banner-link { display: inline-block; max-width: 640px; margin-inline: auto; }
.banner-link img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--rule); transition: transform .2s; }
.banner-link:hover img { transform: translateY(-2px); }

/* ===== Lectures ===== */
.lectures { background: var(--papyrus) var(--paper-2); }
.lecture-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 3vw, 2.2rem); }
.lecture-card {
  background: var(--paper-card); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.lecture-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.lecture-media { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.lecture-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.lecture-card:hover .lecture-media img { transform: scale(1.04); }
.lecture-body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .75rem; }
.lecture-body h3 { font-size: 1.32rem; color: var(--ink); font-weight: 600; }
.lecture-body p { color: var(--ink-soft); font-size: 1.04rem; }
.lecture-body::after {
  content: "לפרטים והזמנה ←"; align-self: flex-start; margin-top: .5rem;
  color: var(--gold-deep); font-family: "Hillel CLM", "Frank Ruhl Libre", serif; font-weight: 600; font-size: 1.15rem;
  text-decoration: underline; text-underline-offset: 4px; transition: color .18s;
}
.lecture-card:hover .lecture-body::after { color: var(--amber); }
.lecture-card--wide { grid-column: 1 / -1; flex-direction: row; }
.lecture-card--wide .lecture-media { flex: 0 0 42%; aspect-ratio: auto; border-bottom: 0; border-inline-start: 1px solid var(--rule); }
.lecture-card--wide .lecture-body { justify-content: center; }
.lectures .closing { margin-top: clamp(2.2rem, 4vw, 3.2rem); }

/* ===== Signup ===== */
.signup {
  background:
    linear-gradient(160deg, rgba(185,132,42,.8) 0%, rgba(168,112,31,.8) 55%, rgba(156,95,27,.8) 100%),
    url("assets/texture-brick.webp") center / cover no-repeat;
  color: var(--cream);
  border-block: 1px solid var(--gold-deep);
}
.signup-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.signup-logo { width: 212px; height: auto; border-radius: 50%; filter: drop-shadow(0 10px 26px rgba(40,22,4,.4)); display: block; margin-inline: auto; margin-bottom: 2.2rem; }
.signup-copy { text-align: center; }
.signup-copy p { margin-inline: auto; }
.signup-copy .kicker { color: rgba(253,246,227,.85); margin-bottom: .7rem; }
.signup-copy h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); color: #fffaf0; }
.signup-copy p { margin-top: .85rem; color: rgba(253,246,227,.92); font-size: 1.3rem; font-style: italic; max-width: 42ch; }
.signup-form {
  background: var(--paper-card); color: var(--ink); border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.5rem); box-shadow: var(--shadow-md); border: 1px solid var(--gold);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field:nth-child(3), .field:nth-child(4) { grid-column: 1 / -1; }
.field-full { grid-column: 1 / -1; }
/* honeypot — visually hidden without causing horizontal overflow */
.hp-field { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; pointer-events: none; }
.field label {
  font-family: "Alef", sans-serif; letter-spacing: .02em;
  font-size: 1.05rem; font-weight: 600; color: var(--gold-deep);
}
.field input, .field textarea {
  font-family: "Alef", "Frank Ruhl Libre", serif; font-size: 1.02rem; padding: .75rem .85rem;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper);
  color: var(--ink); transition: border-color .18s, box-shadow .18s; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(199,154,54,.18); background: #fff; }
.field textarea { resize: vertical; min-height: 96px; }
.field input.invalid { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(180,87,28,.14); }
/* ===== Custom RTL dropdown ===== */
.custom-select { position: relative; width: 100%; }
.cs-trigger {
  width: 100%; text-align: right; direction: rtl;
  font-family: "Alef", "Frank Ruhl Libre", serif; font-size: 1.02rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: .75rem; padding-inline-start: .85rem; padding-inline-end: 2.6rem; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  transition: border-color .18s, box-shadow .18s;
}
/* gold chevron pinned to the left */
.cs-trigger::after {
  content: ""; position: absolute; inset-inline-end: .85rem; top: 50%;
  width: 1.05rem; height: 1.05rem; margin-top: -.52rem; pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a87d22' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  transition: transform .2s ease;
}
.custom-select.open .cs-trigger::after { transform: rotate(180deg); }
.cs-trigger:focus-visible { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(199,154,54,.18); }
.cs-placeholder { color: var(--ink-soft); }
.cs-options {
  position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 6px);
  list-style: none; margin: 0; padding: .35rem; direction: rtl; text-align: right;
  background: var(--paper-card); border: 1px solid var(--gold); border-radius: var(--radius);
  box-shadow: var(--shadow-md); max-height: 16rem; overflow-y: auto;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .16s ease, transform .16s ease;
}
.custom-select.open .cs-options { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cs-option {
  font-family: "Alef", "Frank Ruhl Libre", serif; font-size: 1.02rem; color: var(--ink);
  padding: .6rem .7rem; border-radius: calc(var(--radius) - 2px); cursor: pointer;
}
.cs-option:hover, .cs-option.active { background: rgba(199,154,54,.16); }
.cs-option[aria-selected="true"] { color: var(--gold-deep); font-weight: 600; }
.custom-select.invalid .cs-trigger { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(180,87,28,.14); }
.signup-form .btn-block { grid-column: 1 / -1; margin-top: .2rem; font-size: 1.25rem; padding-block: 1rem; }
.form-status { grid-column: 1 / -1; min-height: 1.2em; font-weight: 600; font-family: "Alef", sans-serif; }
.form-status.ok { color: var(--gold-deep); }
.form-status.err { color: var(--amber); }

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(to bottom, rgba(94,63,27,.62), var(--bar) 82%), url("assets/texture-brick.webp") top center / max(100%, 1400px) auto;
  color: var(--cream); padding: 2.6rem 0 1.4rem;
}
.footer-domain {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  direction: ltr; /* icon left, url selectable left-to-right */
  color: var(--cream); font-family: "Alef", sans-serif;
  font-size: 1.08rem; letter-spacing: .04em;
}
.footer-domain .fd-url { color: var(--cream); user-select: text; }
.footer-domain svg.fd-globe, .footer-domain svg.fd-globe circle, .footer-domain svg.fd-globe path {
  fill: none; stroke: var(--gold-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.footer-domain svg.fd-globe { width: 17px; height: 17px; flex: none; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; }
.social { display: flex; gap: .9rem; }
.social a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(253,246,227,.08); border: 1px solid rgba(253,246,227,.16);
  transition: background .18s, transform .18s, border-color .18s;
}
.social a:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.social img { width: 18px; height: 18px; filter: invert(1); opacity: .92; }
.social-glyph { color: var(--cream); }
.social-glyph svg { width: 19px; height: 19px; fill: currentColor; display: block; opacity: .92; }
.social a.social-glyph:hover { color: var(--ink); }
.footer-contact { font-family: "EB Garamond", serif; font-size: 1.02rem; letter-spacing: .02em; }
.footer-contact a { color: var(--gold-bright); border-bottom: 1px solid transparent; transition: border-color .18s; }
.footer-contact a:hover { border-color: var(--gold-bright); }
.footer-title { font-family: "Hillel CLM", "Frank Ruhl Libre", serif; font-weight: 700; font-size: 1.35rem; color: var(--gold-bright); text-align: center; margin-bottom: .1rem; }
.footer-contacts { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1.4rem 3rem; width: 100%; max-width: 960px; }
.footer-contacts a {
  flex: 0 1 auto;
  display: flex; flex-direction: column; align-items: center; gap: .3rem; direction: rtl;
  font-family: "Hillel CLM", "EB Garamond", serif; font-size: 1.1rem; color: var(--cream); transition: color .18s;
}
.footer-contacts a:hover { color: var(--gold-soft); }
.fc-head { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.footer-contacts svg, .footer-contacts svg path { fill: var(--gold-deep); }
.footer-contacts svg { height: 20px; width: auto; flex: none; }
/* outline (non-filled) mail glyph */
.footer-contacts svg.fc-mail, .footer-contacts svg.fc-mail rect, .footer-contacts svg.fc-mail path {
  fill: none; stroke: var(--gold-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.footer-contacts svg.fc-mail { height: 17px; }
.footer-contacts a:first-child svg { height: 19px; } /* whatsapp a tad smaller */
.footer-contacts .fc-value { direction: ltr; font-size: 1rem; white-space: nowrap; font-family: "Alef", sans-serif; }
.footer-note { font-family: "Alef", sans-serif; font-size: .95rem; color: rgba(253,246,227,.7); letter-spacing: .02em; margin-top: 1rem; }

/* ===== Contact ===== */
.contact { background: var(--papyrus) var(--paper-light); border-block: 1px solid var(--rule); }
.contact-links {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 1.8rem); max-width: 880px; margin-inline: auto;
}
.contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .7rem;
  background: none; border: 0; padding: .5rem; box-shadow: none;
}
.contact-ic {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold-deep); color: var(--paper-card);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, background .18s ease;
}
.contact-ic svg { width: 30px; height: 30px; fill: currentColor; }
.contact-ic:hover, .contact-ic:focus-visible { background: var(--amber); transform: translateY(-3px); outline: none; }
.contact-sub { font-family: "Alef", sans-serif; font-size: 1.05rem; color: var(--ink); direction: ltr; user-select: text; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem);
  background: rgba(28, 20, 10, .9); backdrop-filter: blur(3px);
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: min(1100px, 96vw); max-height: 90vh; width: auto; height: auto;
  border-radius: var(--radius); border: 1px solid rgba(253,246,227,.3);
  box-shadow: 0 20px 60px rgba(0,0,0,.5); object-fit: contain;
}
.lightbox-close {
  position: absolute; top: clamp(.8rem, 3vw, 1.6rem); inset-inline-end: clamp(.8rem, 3vw, 1.6rem);
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(253,246,227,.3);
  background: rgba(0,0,0,.35); color: #fdf6e3; font-size: 1.8rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .18s, transform .12s;
}
.lightbox-close:hover { background: var(--amber); transform: scale(1.05); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(253,246,227,.3); background: rgba(0,0,0,.35); color: #fdf6e3;
  cursor: pointer; display: grid; place-items: center;
  transition: background .18s;
}
.lightbox-nav:hover { background: var(--amber); }
.lightbox-nav.prev { inset-inline-start: clamp(.8rem, 3vw, 1.6rem); }
.lightbox-nav.next { inset-inline-end: clamp(.8rem, 3vw, 1.6rem); }
.lightbox-nav svg { width: 24px; height: 24px; }
[dir="rtl"] .lightbox-nav svg { transform: scaleX(-1); }
@media (max-width: 620px) {
  .lightbox-nav { width: 42px; height: 42px; }
}
.gallery img { cursor: zoom-in; }

/* ===== Lecture detail page ===== */
.lecture-cover {
  position: relative; display: grid; align-content: center; justify-items: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) 1.2rem;
  background:
    linear-gradient(160deg, rgba(202,162,63,.78) 0%, rgba(185,132,42,.78) 46%, rgba(168,112,31,.78) 74%, rgba(156,95,27,.78) 100%),
    url("assets/texture-brick.webp") center / cover no-repeat;
  color: var(--cream); text-align: center;
  border-bottom: 1px solid var(--gold-deep);
  overflow: hidden;
}
/* thin inset double-rule frame, like the homepage hero */
.lecture-cover::before {
  content: ""; position: absolute; inset: 16px;
  border: 1px solid rgba(253, 246, 227, .28);
  pointer-events: none;
}
.cover-inner { position: relative; z-index: 1; max-width: 62ch; }
.cover-inner .hero-brandline { display: inline-block; margin-bottom: .8rem; }
.lecture-cover h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); color: #fffaf0; line-height: 1.25;
}
.lecture-detail .container { max-width: 1000px; }
.lecture-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.lecture-photo img { width: 100%; cursor: zoom-in; border-radius: var(--radius); border: 1px solid var(--rule); box-shadow: var(--shadow-md); }
@media (max-width: 720px) {
  .lecture-layout { grid-template-columns: 1fr; }
  .lecture-photo { order: -1; max-width: 480px; width: 100%; margin-inline: auto; }
}
.back-link {
  display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.6rem;
  color: var(--gold-deep); font-weight: 600; font-family: "Hillel CLM", "Frank Ruhl Libre", serif; font-size: 1.15rem;
  text-decoration: underline; text-underline-offset: 4px; transition: color .18s;
}
.back-link:hover { color: var(--amber); }
.lecture-article p { margin-bottom: 1.25rem; color: var(--ink); font-size: 1.14rem; line-height: 1.85; }
.lecture-article .lecture-taste {
  font-family: "Hillel CLM", "Frank Ruhl Libre", serif; color: var(--gold-deep);
  font-size: 1.2rem; border-top: 1px solid var(--rule); padding-top: 1.25rem; margin-top: 1.6rem;
}
/* booking form: lecture shown as a read-only chip */
.booked-view { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.booked-lecture {
  font-family: "Alef", "Frank Ruhl Libre", serif; font-weight: 600; color: var(--gold-deep);
  background: rgba(199,154,54,.14); border: 1px solid var(--gold); border-radius: var(--radius);
  padding: .7rem .9rem; direction: rtl; text-align: right; width: 100%;
}
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: "Alef", sans-serif; font-size: 1rem; color: var(--gold-deep);
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--amber); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { order: -1; }
  .hero-logo img { width: 150px; filter: drop-shadow(0 5px 12px rgba(40,22,4,.28)); }
  .hero-actions { justify-content: center; }
  .hero-copy .kicker, .hero .ornament { text-align: center; margin-inline: auto; }
  .hero-copy .kicker { margin-bottom: .9rem; }
  .hero-lead { margin-inline: auto; }
  .about-layout { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .about-copy > .btn { display: flex; width: fit-content; margin-inline: auto; }
  .about-copy .kicker { text-align: center; }
  .signup-inner { grid-template-columns: 1fr; }
  .signup-copy { text-align: center; }
  .signup-logo { margin-inline: auto; }
  .signup-copy .kicker, .signup-copy p { margin-inline: auto; text-align: center; }
  .lecture-card--wide { flex-direction: column; }
  .lecture-card--wide .lecture-media { flex: none; aspect-ratio: 16/10; border-inline-start: 0; border-bottom: 1px solid var(--rule); }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; inset-inline: 0; top: 62px; flex-direction: column; align-items: stretch; gap: 0;
    background: linear-gradient(to bottom, rgba(94,63,27,.7), var(--bar)), url("assets/texture-brick.webp") top center / max(100%, 1400px) auto;
    border-bottom: 1px solid var(--gold-deep); padding: .4rem 1.2rem 1rem;
    box-shadow: var(--shadow-md); max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
  }
  .nav-menu.open { max-height: 320px; opacity: 1; pointer-events: auto; }
  .nav-menu li { border-bottom: 1px solid rgba(253,246,227,.14); }
  .nav-menu li:last-child { border-bottom: 0; }
  .nav-menu a { display: block; padding: .9rem .3rem; }
  .nav-cta { text-align: center; margin-top: .6rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

@media (max-width: 620px) {
  .lecture-grid { grid-template-columns: 1fr; }
  .signup-form { grid-template-columns: 1fr; }
  .field:nth-child(3), .field:nth-child(4) { grid-column: auto; }
  .hero::after { inset: 10px; }
  /* stack contact links (contact section + footer) on mobile */
  .footer-contacts { flex-direction: column; max-width: 320px; }
  .footer-contacts a { flex: none; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}



/* contact cards: stack early - the caption text clips in 4 columns at mid widths */
@media (max-width: 900px) {
  .contact-links { grid-template-columns: 1fr; max-width: 320px; gap: 1.2rem; }
}

/* mobile: rein in the enlarged body/accent text (headings unaffected) */
@media (max-width: 620px) {
  .hero-sub { font-size: 1.15rem; }
  .hero-lead { font-size: 1.05rem; }
  .hero-brandline { font-size: 1.2rem; }
  .section-intro { font-size: 1.1rem; }
  .signup-copy p { font-size: 1.1rem; }
  .highlight { font-size: 1.15rem; }
  .lectures .check-list li { font-size: 1.05rem; }
}
