/* ==========================================================================
   OttawaBMitzvah.com — Site styles
   Palette: deep navy, warm gold, soft cream
   ========================================================================== */

:root {
  --navy: #16273f;
  --navy-soft: #22395c;
  --navy-deep: #0e1a2b;
  --gold: #c19a3d;
  --gold-light: #dcc07a;
  --cream: #faf6ee;
  --cream-dark: #f1e9da;
  --ink: #2b2b2b;
  --ink-soft: #5a5a5a;
  --white: #ffffff;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --shadow: 0 24px 48px -24px rgba(14, 26, 43, 0.22);
  --shadow-lift: 0 32px 56px -24px rgba(14, 26, 43, 0.32);
  --radius: 18px;
}

::selection { background: var(--gold-light); color: var(--navy-deep); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-soft); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--cream-dark);
  box-shadow: 0 12px 32px -20px rgba(14, 26, 43, 0.25);
}

.nav-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand svg { flex-shrink: 0; }

.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.brand-name span { color: var(--gold); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover { color: var(--gold); }

.site-nav a.active { border-bottom-color: var(--gold); }

.site-nav a.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border-bottom: none;
  transition: background 0.2s;
}

.site-nav a.nav-cta:hover { background: var(--gold); color: var(--navy-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-dark);
    display: none;
    box-shadow: var(--shadow);
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
  }

  .site-nav li { width: 100%; }

  .site-nav a {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--cream-dark);
  }

  .site-nav a.nav-cta {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.55rem 1.4rem;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(193, 154, 61, 0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(193, 154, 61, 0.10), transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 6.5rem 1.5rem 6rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(220, 192, 122, 0.35);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
  backdrop-filter: blur(4px);
}

.hero-hebrew {
  font-family: var(--serif);
  color: var(--gold-light);
  font-size: 1.5rem;
  letter-spacing: 0.35em;
  margin-bottom: 1rem;
}

/* floating decorative stars */
.hero-star {
  position: absolute;
  opacity: 0.16;
  animation: float 7s ease-in-out infinite;
  pointer-events: none;
}

.hero-star.s1 { top: 18%; left: 8%; animation-delay: 0s; }
.hero-star.s2 { top: 60%; right: 7%; animation-delay: 2.2s; }
.hero-star.s3 { bottom: 12%; left: 18%; animation-delay: 4s; transform: scale(0.6); }

@keyframes float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -16px; rotate: 8deg; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-star { animation: none; }
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  max-width: 820px;
  margin: 0 auto 1.2rem;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold-light), #f0dba4, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  max-width: 640px;
  margin: 0 auto 2.2rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2.1rem;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn::after {
  content: "→";
  transition: transform 0.25s;
}

.btn:hover { transform: translateY(-2px); }

.btn:hover::after { transform: translateX(4px); }

.btn-gold {
  background: linear-gradient(120deg, var(--gold), #d4af52);
  color: var(--navy-deep);
  box-shadow: 0 14px 28px -14px rgba(193, 154, 61, 0.75);
}

.btn-gold:hover {
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  box-shadow: 0 18px 34px -14px rgba(193, 154, 61, 0.9);
}

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover { background: var(--navy-soft); }

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */

.stats-strip {
  max-width: 1000px;
  margin: -3rem auto 0;
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
}

.stats-inner {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.stat {
  text-align: center;
  padding: 1.6rem 1rem;
  border-right: 1px solid var(--cream-dark);
}

.stat:last-child { border-right: none; }

.stat .stat-num {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.stat .stat-num span { color: var(--gold); }

.stat .stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

@media (max-width: 760px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--cream-dark); }
}

/* --------------------------------------------------------------------------
   Scroll-reveal animation (classes applied by js/main.js)
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section-tight { padding-top: 3rem; padding-bottom: 3rem; }

.section-heading {
  text-align: center;
  margin-bottom: 2.8rem;
}

.section-heading .eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.section-heading h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }

.section-heading p.sub {
  max-width: 620px;
  margin: 0.8rem auto 0;
  color: var(--ink-soft);
}

.divider {
  width: 64px;
  height: 3px;
  background: var(--gold);
  margin: 1.1rem auto 0;
  border-radius: 2px;
}

.band {
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
}

.band-navy {
  background: linear-gradient(150deg, var(--navy-deep), var(--navy));
  color: var(--white);
}

.band-navy h2, .band-navy h3 { color: var(--white); }

/* --------------------------------------------------------------------------
   Cards / grids
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--gold-light);
}

.card:hover::before { transform: scaleX(1); }

.card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--cream), var(--cream-dark));
  border: 1px solid var(--cream-dark);
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 1.2rem;
}

.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.card p { color: var(--ink-soft); font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   Bio split
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
}

.portrait-frame {
  position: relative;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 1rem;
  rotate: -1.5deg;
  transition: rotate 0.35s;
}

.portrait-frame:hover { rotate: 0deg; }

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1.5px solid var(--gold-light);
  border-radius: calc(var(--radius) + 8px);
  opacity: 0.55;
  pointer-events: none;
  rotate: 1.5deg;
}

.portrait-frame img {
  width: 100%;
  border-radius: calc(var(--radius) - 8px);
}

.portrait-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--navy-soft), var(--navy-deep));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--gold-light);
}

.portrait-placeholder .initials {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 700;
}

.portrait-placeholder .hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.split h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1rem; }

.split p { margin-bottom: 1rem; color: var(--ink); }

.split .more-link { margin-top: 0.6rem; display: inline-block; font-weight: 700; }

/* --------------------------------------------------------------------------
   Prose pages (about, fees)
   -------------------------------------------------------------------------- */

.page-hero {
  background: linear-gradient(150deg, var(--navy-deep), var(--navy));
  color: var(--white);
  text-align: center;
  padding: 3.5rem 1.5rem;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0.8rem auto 0;
}

.prose { max-width: 760px; margin: 0 auto; }

.prose h2 {
  font-size: 1.7rem;
  margin: 2.4rem 0 0.9rem;
}

.prose h2:first-child { margin-top: 0; }

.prose p { margin-bottom: 1.15rem; }

.prose ul { margin: 0 0 1.15rem 1.4rem; }

.prose li { margin-bottom: 0.5rem; }

/* --------------------------------------------------------------------------
   Fees page
   -------------------------------------------------------------------------- */

.fee-highlight {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.fee-highlight .amount {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
}

.fee-highlight .amount small {
  font-size: 1.2rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.policy-list { list-style: none; margin: 0; }

.policy-list li {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 0.9rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.policy-list .pl-icon {
  flex-shrink: 0;
  font-size: 1.3rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--gold-light);
}

.testimonial .quote-mark {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: 1rem;
}

.testimonial blockquote {
  font-style: italic;
  color: var(--ink);
  flex-grow: 1;
  margin-bottom: 1.2rem;
}

.testimonial cite {
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
}

.testimonial cite span {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Booking page
   -------------------------------------------------------------------------- */

.booking-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .booking-grid { grid-template-columns: 1fr; }
}

.booking-embed {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 640px;
}

.embed-placeholder {
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem;
  gap: 1rem;
}

.embed-placeholder .big-icon { font-size: 3rem; }

.embed-placeholder p { color: var(--ink-soft); max-width: 420px; }

.side-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
}

.side-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.side-card ul { list-style: none; }

.side-card li {
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--cream-dark);
  font-size: 0.95rem;
}

.side-card li:last-child { border-bottom: none; }

/* Hebrew calendar / parsha table */

.parsha-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.parsha-row .p-name { font-weight: 700; color: var(--navy); }

.parsha-row .p-hebrew {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.05rem;
}

.parsha-row .p-date {
  color: var(--ink-soft);
  font-size: 0.85rem;
  white-space: nowrap;
}

.shabbat-times {
  background: linear-gradient(150deg, var(--navy-deep), var(--navy));
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
}

.shabbat-times h3 {
  color: var(--gold-light);
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

.shabbat-times li {
  border-bottom-color: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.9);
}

.shabbat-times ul { list-style: none; }

.shabbat-times li { padding: 0.4rem 0; border-bottom: 1px dashed rgba(255,255,255,0.15); font-size: 0.95rem; }

.cal-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.8rem; }

/* --------------------------------------------------------------------------
   Resources page
   -------------------------------------------------------------------------- */

.resource-list { list-style: none; max-width: 760px; margin: 0 auto; }

.resource-list li {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.resource-list li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--gold-light);
}

.resource-list a {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.3rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
}

.resource-list .r-icon { font-size: 1.8rem; }

.resource-list .r-title {
  font-weight: 700;
  color: var(--navy);
}

.resource-list .r-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.resource-list .r-action {
  margin-left: auto;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band { text-align: center; }

.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 0.8rem; }

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 1.8rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.site-footer h4 {
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.site-footer ul { list-style: none; }

.site-footer li { margin-bottom: 0.5rem; }

.site-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }

.site-footer a:hover { color: var(--gold-light); }

.footer-brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.footer-brand span { color: var(--gold); }

.footer-bottom {
  max-width: 1120px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */

.note-box {
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 2rem;
}
