/* ============================================================
   Hebraic Living Academy — Cinematic Design System
   Palette derived from the official seal: navy, gold, ivory
   ============================================================ */

:root{
  --navy:#16294D;
  --navy-deep:#0D1830;
  --gold:#C9A455;
  --gold-bright:#E4C57A;
  --ivory:#F7F1E1;
  --ivory-deep:#EEE4C9;
  --ink:#1C1A15;
  --white:#FFFFFF;
  --line-on-navy: rgba(247,241,225,0.16);
  --line-on-ivory: rgba(22,41,77,0.14);
  --max: 1240px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important;}
}

body{
  margin:0;
  background:var(--ivory);
  color:var(--ink);
  font-family:'Assistant', sans-serif;
  font-weight:400;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3,.display{
  font-family:'Cormorant Garamond', serif;
  margin:0;
  letter-spacing:0.01em;
  font-weight:600;
}

a{color:inherit;}
img,svg{display:block; max-width:100%;}
::selection{ background:var(--gold); color:var(--navy-deep); }
:focus-visible{ outline:2.5px solid var(--gold); outline-offset:3px; border-radius:2px; }

.wrap{ max-width:var(--max); margin:0 auto; padding:0 40px; }

html.js-ready .reveal{
  opacity:0; transform:translateY(40px);
  transition:opacity 1.1s cubic-bezier(.16,.6,.2,1), transform 1.1s cubic-bezier(.16,.6,.2,1);
}
html.js-ready .reveal.is-visible{ opacity:1; transform:translateY(0); }
html.js-ready .reveal-fade{ opacity:0; transition:opacity 1.4s ease; }
html.js-ready .reveal-fade.is-visible{ opacity:1; }

header{
  position:fixed; top:0; left:0; right:0; z-index:200;
  background:transparent;
  transition:background .4s ease, box-shadow .4s ease, padding .3s ease;
  padding:8px 0;
}
header.scrolled{
  background:rgba(13,24,48,0.94);
  backdrop-filter:blur(10px);
  box-shadow:0 6px 24px rgba(0,0,0,0.25);
  padding:0;
}
nav.wrap{ display:flex; align-items:center; justify-content:space-between; padding-top:18px; padding-bottom:18px; }
.brand{ display:flex; align-items:center; gap:14px; text-decoration:none; color:var(--white); }
.brand img{ height:52px; width:auto; transition:height .3s ease; filter:drop-shadow(0 2px 8px rgba(0,0,0,0.35)); }
header.scrolled .brand img{ height:42px; }
.brand-text{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:20px; letter-spacing:0.02em; color:var(--white); }
.navlinks{ display:flex; align-items:center; gap:38px; list-style:none; margin:0; padding:0; }
.navlinks a{ text-decoration:none; font-size:15px; font-weight:600; letter-spacing:0.02em; color:var(--white); opacity:0.85; padding-bottom:4px; border-bottom:1px solid transparent; transition:opacity .2s, border-color .2s; }
.navlinks a:hover{ opacity:1; border-color:var(--gold); }
.navcta{ display:inline-block; background:var(--gold); color:var(--navy-deep) !important; padding:11px 22px; border-radius:2px; font-size:14px; font-weight:700; text-decoration:none; opacity:1 !important; border:none !important; transition:background .25s, transform .2s; }
.navcta:hover{ background:var(--gold-bright); transform:translateY(-1px); }
.menu-btn{ display:none; background:none; border:none; cursor:pointer; padding:6px; }
.menu-btn span{ display:block; width:24px; height:2px; background:var(--white); margin:5px 0; }
#mnav{ background:var(--navy-deep); }
#mnav a{ color:var(--white) !important; }

.cine-hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  color:var(--white);
}
.cine-hero-bg{
  position:absolute; top:0; left:0; right:0; bottom:0; z-index:0;
  background-image:url('images/hero.jpg');
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
}
.cine-hero-tint{ position:absolute; top:0; left:0; right:0; bottom:0; z-index:1; }
.tint-navy{ background:linear-gradient(180deg, rgba(13,24,48,0.35) 0%, rgba(13,24,48,0.55) 50%, rgba(13,24,48,0.92) 100%); }
.tint-gold{ background:linear-gradient(180deg, rgba(45,34,10,0.4) 0%, rgba(60,44,10,0.55) 50%, rgba(20,15,4,0.92) 100%); }
.tint-deep{ background:linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.6) 50%, rgba(8,8,8,0.94) 100%); }

.cine-hero-content{ position:relative; z-index:2; padding:0 0 100px; width:100%; }
.cine-eyebrow{ display:inline-flex; align-items:center; gap:12px; font-family:'Cormorant Garamond',serif; font-style:italic; font-size:19px; letter-spacing:0.08em; color:var(--gold-bright); margin-bottom:24px; }
.cine-eyebrow::before{ content:''; width:44px; height:1px; background:var(--gold); }
.cine-hero h1{ font-size:clamp(46px, 7.5vw, 108px); font-weight:600; line-height:1.02; max-width:18ch; text-shadow:0 4px 30px rgba(0,0,0,0.4); }
.cine-hero h1 em{ font-style:italic; color:var(--gold-bright); }
.cine-hero-sub{ max-width:52ch; font-size:20px; font-weight:300; opacity:0.9; margin-top:28px; line-height:1.7; }
.cine-hero-actions{ margin-top:44px; display:flex; align-items:center; gap:26px; flex-wrap:wrap; }
.btn-gold{ display:inline-flex; align-items:center; gap:10px; background:var(--gold); color:var(--navy-deep); padding:17px 32px; border-radius:2px; font-weight:700; font-size:15.5px; letter-spacing:0.02em; text-decoration:none; transition:background .25s, transform .2s, box-shadow .25s; }
.btn-gold:hover{ background:var(--gold-bright); transform:translateY(-2px); box-shadow:0 12px 30px rgba(201,164,85,0.35); }
.btn-gold svg{ width:15px; height:15px; }
.btn-ghost{ display:inline-flex; align-items:center; gap:10px; color:var(--white); text-decoration:none; font-size:15px; font-weight:600; border-bottom:1px solid rgba(247,241,225,0.5); padding-bottom:4px; transition:border-color .2s, opacity .2s; }
.btn-ghost:hover{ border-color:var(--gold-bright); opacity:0.85; }

.scroll-cue{ position:absolute; bottom:36px; left:50%; transform:translateX(-50%); z-index:2; display:flex; flex-direction:column; align-items:center; gap:10px; color:rgba(247,241,225,0.7); font-size:11px; letter-spacing:0.18em; text-transform:uppercase; }
.scroll-cue .line{ width:1px; height:38px; background:linear-gradient(180deg, var(--gold-bright), transparent); animation:scrollpulse 2.2s ease-in-out infinite; }
@keyframes scrollpulse{ 0%,100%{opacity:0.4;} 50%{opacity:1;} }

.cine-subhero{ min-height:64vh; }
.cine-subhero .cine-hero-content{ padding-bottom:80px; }
.crumb{ font-size:13px; opacity:0.7; margin-bottom:20px; color:var(--ivory); }
.crumb a{ text-decoration:none; color:var(--gold-bright); }
.crumb a:hover{ text-decoration:underline; }

section{ padding:150px 0; position:relative; }
.on-navy{ background:var(--navy-deep); color:var(--ivory); }
.on-navy h1,.on-navy h2,.on-navy h3{ color:var(--white); }
.on-ivory{ background:var(--ivory); color:var(--ink); }
.on-ivory-deep{ background:var(--ivory-deep); color:var(--ink); }

.section-head{ max-width:720px; margin-bottom:80px; }
.section-eyebrow{ display:inline-flex; align-items:center; gap:12px; font-family:'Cormorant Garamond',serif; font-style:italic; font-size:19px; color:var(--gold); margin-bottom:22px; }
.on-navy .section-eyebrow{ color:var(--gold-bright); }
.section-eyebrow::before{ content:''; width:44px; height:1px; background:var(--gold); }
.section-head h2{ font-size:clamp(34px, 4.4vw, 58px); font-weight:600; line-height:1.12; }
.section-head p{ margin-top:24px; font-size:18.5px; opacity:0.75; max-width:62ch; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head.center p{ margin-left:auto; margin-right:auto; }

.hr-divider{ position:relative; height:1px; background:var(--line-on-ivory); margin:0; }
.hr-divider.on-navy-line{ background:var(--line-on-navy); }
.hr-divider .glyphs{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); background:var(--ivory); padding:0 26px; font-family:'Cormorant Garamond',serif; font-size:15px; letter-spacing:0.5em; color:var(--gold); }
.hr-divider.navy-bg .glyphs{ background:var(--navy-deep); color:var(--gold-bright); }

.prose{ max-width:760px; }
.prose h2{ font-size:clamp(28px,3.2vw,38px); font-weight:600; margin-top:60px; margin-bottom:20px; }
.prose h2:first-child{ margin-top:0; }
.prose p{ font-size:18px; opacity:0.82; margin:0 0 20px; line-height:1.75; }
.prose p:last-child{ margin-bottom:0; }

.pillars{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line-on-navy); border:1px solid var(--line-on-navy); }
.pillar{ background:var(--navy-deep); padding:60px 46px; position:relative; transition:background .3s; }
.pillar:hover{ background:#132347; }
.pillar .letter{ font-family:'Cormorant Garamond', serif; font-size:72px; font-weight:600; line-height:1; margin-bottom:28px; color:var(--gold-bright); }
.pillar .name-heb{ font-size:13px; letter-spacing:0.14em; text-transform:uppercase; color:var(--gold); font-weight:700; margin-bottom:10px; }
.pillar h3{ font-size:26px; font-weight:600; margin-bottom:16px; color:var(--white); }
.pillar p{ font-size:16px; opacity:0.68; margin:0; line-height:1.7; }

.fact-list{ list-style:none; margin:32px 0 0; padding:0; display:flex; flex-direction:column; gap:26px; }
.fact-list li{ display:flex; gap:20px; align-items:flex-start; padding-bottom:26px; border-bottom:1px solid var(--line-on-ivory); }
.on-navy .fact-list li{ border-bottom-color:var(--line-on-navy); }
.fact-list li:last-child{ border-bottom:none; }
.fact-list .dot{ flex:0 0 auto; width:9px; height:9px; border-radius:50%; background:var(--gold); margin-top:9px; box-shadow:0 0 0 4px rgba(201,164,85,0.15); }
.fact-list strong{ font-family:'Cormorant Garamond',serif; font-weight:600; display:block; margin-bottom:5px; font-size:19px; }
.fact-list p{ font-size:16px; opacity:0.7; margin:0; max-width:60ch; line-height:1.7; }

.status-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line-on-navy); border:1px solid var(--line-on-navy); margin-top:20px; }
.status-card{ background:var(--navy-deep); padding:36px 32px; }
.status-card .label{ font-size:12.5px; letter-spacing:0.12em; text-transform:uppercase; color:var(--gold-bright); font-weight:700; margin-bottom:12px; }
.status-card .val{ font-family:'Cormorant Garamond', serif; font-size:22px; font-weight:600; color:var(--white); line-height:1.35; }
.status-card .sub{ font-size:13.5px; opacity:0.6; margin-top:10px; color:var(--ivory); }

.pill{ display:inline-flex; align-items:center; gap:8px; border:1px solid rgba(228,197,122,0.5); color:var(--gold-bright); font-size:12.5px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; padding:8px 16px; border-radius:20px; margin:0 10px 10px 0; }

.rhythm{ display:flex; flex-direction:column; border-top:1px solid var(--line-on-ivory); margin-top:24px; }
.rhythm-row{ display:grid; grid-template-columns:160px 1fr; gap:32px; padding:32px 0; border-bottom:1px solid var(--line-on-ivory); }
.rhythm-row .time{ font-family:'Cormorant Garamond', serif; font-weight:600; font-size:19px; color:var(--gold); font-style:italic; }
.rhythm-row .what strong{ display:block; font-family:'Cormorant Garamond', serif; font-size:20px; margin-bottom:6px; }
.rhythm-row .what p{ font-size:16px; opacity:0.72; margin:0; line-height:1.7; }

.faq-item{ border-bottom:1px solid var(--line-on-ivory); padding:30px 0; }
.faq-item h3{ font-size:20px; font-weight:600; margin-bottom:12px; }
.faq-item p{ font-size:16px; opacity:0.72; margin:0; max-width:66ch; line-height:1.7; }

.thread-wrap{ position:relative; padding-top:36px; }
.thread-svg{ width:100%; height:auto; }
.thread-path{ fill:none; stroke:url(#threadGrad); stroke-width:2; stroke-dasharray:1 9; stroke-linecap:round; }
.thread-dot{ fill:var(--gold-bright); filter:drop-shadow(0 0 8px rgba(228,197,122,0.7)); }
.thread-points{ display:grid; grid-template-columns:1fr 1fr; gap:56px; margin-top:-6px; }
.campus-card{ border-left:1px solid var(--line-on-navy); padding-left:30px; }
.campus-card h3{ font-size:28px; font-weight:600; margin-bottom:12px; color:var(--white); }
.campus-card .tag{ font-size:13px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--gold-bright); margin-bottom:14px; display:block;}
.campus-card p{ font-size:16px; opacity:0.68; max-width:40ch; line-height:1.7; }
.campus-card.right{ text-align:right; margin-left:auto; border-left:none; border-right:1px solid var(--line-on-navy); padding-left:0; padding-right:30px; }
.campus-card.right .tag{ color:var(--gold); }
.campus-card.right p{ margin-left:auto; }

.contact-grid{ display:flex; gap:90px; }
.contact-info{ flex:0 0 340px; }
.contact-form-wrap{ flex:1 1 0; min-width:0; }
.contact-info .label{ font-size:12.5px; letter-spacing:0.12em; text-transform:uppercase; color:var(--gold-bright); font-weight:700; margin-bottom:10px; }
.contact-info .item{ margin-bottom:32px; }
.contact-info .item .val{ font-size:16.5px; opacity:0.88; }
.contact-info .flag{ font-size:13px; color:var(--gold-bright); background:rgba(201,164,85,0.1); border:1px solid rgba(201,164,85,0.3); padding:12px 14px; border-radius:3px; margin-top:8px; }
form.contact-form{ display:flex; flex-direction:column; gap:18px; max-width:540px; }
form.contact-form label{ font-size:13px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; color:var(--gold-bright); margin-bottom:-8px; }
form.contact-form input, form.contact-form textarea{ padding:16px 18px; border:1.5px solid rgba(247,241,225,0.22); background:rgba(247,241,225,0.05); border-radius:2px; font-family:'Assistant',sans-serif; font-size:16px; color:var(--ivory); resize:vertical; }
form.contact-form input::placeholder, form.contact-form textarea::placeholder{ color:rgba(247,241,225,0.4); }
form.contact-form input:focus, form.contact-form textarea:focus{ border-color:var(--gold); outline:none; background:rgba(247,241,225,0.08); }
form.contact-form button{ align-self:flex-start; border:none; cursor:pointer; background:var(--gold); color:var(--navy-deep); padding:17px 32px; border-radius:2px; font-weight:700; font-size:16px; margin-top:8px; transition:background .25s, transform .2s; font-family:'Assistant',sans-serif; }
form.contact-form button:hover{ background:var(--gold-bright); transform:translateY(-2px); }
.form-msg{ margin-top:18px; font-size:14px; opacity:0.65; min-height:20px; }

.cta-band{ text-align:center; }
.cta-band .section-head{ margin:0 auto; }

footer{ padding:64px 0 46px; border-top:1px solid var(--line-on-navy); background:var(--navy-deep); color:var(--ivory); }
.footer-grid{ display:flex; justify-content:space-between; align-items:flex-end; gap:28px; flex-wrap:wrap; }
.footer-brand-row{ display:flex; align-items:center; gap:16px; margin-bottom:14px; }
.footer-brand-row img{ height:44px; width:auto; }
.footer-brand{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:19px; color:var(--white); }
.footer-legal{ font-size:13px; opacity:0.55; max-width:48ch; margin-top:6px; line-height:1.7; }
.footer-legal a{ color:var(--gold-bright); text-decoration:none; }
.footer-links{ display:flex; gap:26px; list-style:none; margin:0; padding:0; }
.footer-links a{ font-size:14px; text-decoration:none; opacity:0.65; }
.footer-links a:hover{ opacity:1; text-decoration:underline; }

@media (max-width: 880px){
  .navlinks{ display:none; }
  .menu-btn{ display:block; }
  .pillars{ grid-template-columns:1fr; }
  .thread-points{ grid-template-columns:1fr; gap:36px; }
  .campus-card.right{ text-align:left; margin-left:0; border-right:none; border-left:1px solid var(--line-on-navy); padding-left:30px; padding-right:0; }
  .campus-card.right p{ margin-left:0; }
  section{ padding:100px 0; }
  .cine-hero{ min-height:88vh; }
  .cine-hero-bg{ background-attachment:scroll; }
  .status-grid{ grid-template-columns:1fr; }
  .rhythm-row{ grid-template-columns:1fr; gap:8px; }
  .contact-grid{ flex-direction:column; gap:52px; }
  .contact-info{ flex:none; }
  .wrap{ padding:0 24px; }
}
