/* ===========================================================
   Portland Jewish Messianic Congregation — Stylesheet
   =========================================================== */

:root {
  --sky: #3aa9dc;
  --sky-light: #7cc9ec;
  --sky-pale: #eaf6fc;
  --sky-dark: #1c6f9c;
  --ink: #0e1a24;
  --charcoal: #212b33;
  --grey: #5c6b76;
  --grey-light: #e7edf1;
  --white: #ffffff;

  --font-head: "Ubuntu", Helvetica, Arial, sans-serif;
  --font-body: "Ubuntu", Helvetica, Arial, sans-serif;

  --max-width: 1180px;
  --radius: 3px;
  --shadow-sm: 0 2px 10px rgba(14, 26, 36, 0.06);
  --shadow-md: 0 12px 40px rgba(14, 26, 36, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-dark);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.eyebrow::after {
  content: "";
  position: absolute;
  left: 1px; bottom: 0;
  width: 52px; height: 7px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='8'%3E%3Cpath d='M0 5 Q7.5 1 15 5 T30 5 T45 5 T60 5' stroke='%233aa9dc' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}
.hero-content .eyebrow::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='8'%3E%3Cpath d='M0 5 Q7.5 1 15 5 T30 5 T45 5 T60 5' stroke='%237cc9ec' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: var(--sky);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(58, 169, 220, 0.35);
}
.btn-primary:hover { background: var(--sky-dark); box-shadow: 0 14px 34px rgba(28, 111, 156, 0.4); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: var(--white); color: var(--sky-dark); }

.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: var(--sky-dark); }

/* ---------- Header / Nav ---------- */
.fixed-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}
.site-header {
  padding: 16px 0;
  background: rgba(24, 30, 36, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(24, 30, 36, 0.82);
  padding: 11px 0;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.08em; opacity: 0.75; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--sky);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.88rem; }

.lang-toggle {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.lang-toggle:hover { background: rgba(255,255,255,0.18); border-color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--white);
  transition: all 0.35s var(--ease);
}
.nav-open .nav-toggle span { background: var(--ink); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(160deg, #123a52 0%, var(--sky-dark) 45%, var(--sky) 100%);
}
.hero-media {
  /* Placeholder pattern — swap for a real photo: background: url("../images/hero.jpg") center/cover no-repeat; */
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,26,36,0.35) 0%, rgba(14,26,36,0.55) 100%);
}
.hero-shape {
  position: absolute;
  border-radius: 37% 63% 58% 42% / 45% 38% 62% 55%;
  filter: blur(2px);
  opacity: 0.35;
  animation: float 9s ease-in-out infinite;
}

/* ---------- Hero slideshow ---------- */
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: blur(4px) saturate(1.15) contrast(1.05);
  transform: scale(1.08);
  transition: opacity 1.8s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide:nth-child(1) { background-image: url("../images/hero-1.jpg"); }
.hero-slide:nth-child(2) { background-image: url("../images/hero-2.jpg"); }
.hero-slide:nth-child(3) { background-image: url("../images/hero-3.jpg"); }
.hero-slide:nth-child(4) { background-image: url("../images/hero-4.jpg"); }
.hero-shape.s1 { width: 260px; height: 260px; background: var(--sky-light); top: 10%; right: 8%; animation-delay: 0s; }
.hero-shape.s2 { width: 160px; height: 160px; background: var(--white); bottom: 14%; right: 22%; animation-delay: 2s; opacity: 0.18; }
.hero-shape.s3 { width: 110px; height: 110px; background: var(--sky-light); bottom: 22%; left: 6%; animation-delay: 4s; opacity: 0.25; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-26px) translateX(10px); }
}

.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-content .eyebrow { color: var(--sky-light); }
.hero-content h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  color: var(--white);
  margin-bottom: 20px;
}
.hero-content p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

.hero-info {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.hero-info div { display: flex; flex-direction: column; }
.hero-info span.label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; margin-bottom: 4px; }
.hero-info span.value { font-weight: 700; font-size: 1.02rem; }

.scroll-cue {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-cue .line { width: 1px; height: 34px; background: rgba(255,255,255,0.6); overflow: hidden; }
.scroll-cue .line::after {
  content: "";
  display: block;
  width: 100%; height: 40%;
  background: var(--white);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(280%); }
}

/* ---------- Marquee banner ---------- */
.marquee-strip {
  background: rgba(14, 18, 22, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  white-space: nowrap;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-group span {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,0.18);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Sections ---------- */
section { padding: 110px 0; }
section + section { border-top: 1px solid var(--grey-light); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.section-head p { color: var(--grey); font-size: 1.05rem; }

.bg-pale { background: var(--sky-pale); }
.bg-ink {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
}
.bg-ink h2, .bg-ink h3, .bg-ink h4 { color: var(--white); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.1s; }
.reveal-delay-2.is-visible { transition-delay: 0.2s; }
.reveal-delay-3.is-visible { transition-delay: 0.3s; }

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-light);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky-light);
}
.card .icon {
  width: 52px; height: 52px;
  border-radius: 4px;
  background: var(--sky-pale);
  color: var(--sky-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--grey); font-size: 0.96rem; }
.card .numeral {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 500;
  font-size: 2.5rem;
  color: var(--sky-light);
  margin-bottom: 12px;
  line-height: 1;
}

/* Hero bottom edge — irregular, not a perfect wave */
.hero-divider { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; line-height: 0; }
.hero-divider svg { width: 100%; height: 34px; display: block; }

/* Slightly imperfect, hand-placed feel for card grids */
.card { transform: rotate(var(--tilt, 0deg)); }
.card:hover { transform: translateY(-8px) rotate(0deg); }
.grid-4 .card:nth-child(1) { --tilt: -0.6deg; margin-top: 2px; border-radius: 3px 3px 3px 0; }
.grid-4 .card:nth-child(2) { --tilt: 0.5deg; margin-top: 22px; }
.grid-4 .card:nth-child(3) { --tilt: -0.4deg; margin-top: -6px; border-radius: 0 3px 3px 3px; }
.grid-4 .card:nth-child(4) { --tilt: 0.7deg; margin-top: 14px; }
.grid-3 .card:nth-child(1) { --tilt: 0.5deg; }
.grid-3 .card:nth-child(2) { --tilt: -0.6deg; margin-top: 16px; border-radius: 0 3px 3px 3px; }
.grid-3 .card:nth-child(3) { --tilt: 0.4deg; margin-top: -4px; }
@media (max-width: 980px) {
  .grid-4 .card, .grid-3 .card { margin-top: 0 !important; }
}

.card-photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sky-pale);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card-photo:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-photo .photo {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--sky-light), var(--sky-dark));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.card-photo .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.card-photo .caption { padding: 18px 20px; }
.card-photo .caption h3 { font-size: 1.02rem; margin-bottom: 4px; }
.card-photo .caption p { color: var(--grey); font-size: 0.88rem; }

/* ---------- Split section (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split .media {
  aspect-ratio: 5/4;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sky-light), var(--sky-dark));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.split .media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.split.reverse { grid-template-columns: 1fr 1fr; }
.split.reverse .media { order: 2; }
.split.reverse .text { order: 1; }

.stat-row { display: flex; gap: 40px; margin-top: 32px; flex-wrap: wrap; }
.stat-row .stat strong { display: block; font-family: var(--font-head); font-size: 2.1rem; color: var(--sky-dark); }
.stat-row .stat span { font-size: 0.82rem; color: var(--grey); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Timeline / schedule list ---------- */
.schedule-list { display: flex; flex-direction: column; gap: 0; }
.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--grey-light);
  flex-wrap: wrap;
}
.schedule-item:first-child { border-top: 1px solid var(--grey-light); }
.schedule-item .when { display: flex; flex-direction: column; min-width: 160px; }
.schedule-item .when strong { font-size: 1.05rem; }
.schedule-item .when span { color: var(--sky-dark); font-size: 0.85rem; font-weight: 600; }
.schedule-item .what { flex: 1; min-width: 220px; }
.schedule-item .what h4 { margin-bottom: 4px; }
.schedule-item .what p { color: var(--grey); font-size: 0.92rem; }
.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 3px;
  background: var(--sky-pale);
  color: var(--sky-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--sky-dark), var(--sky));
  color: var(--white);
  border-radius: 4px;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 460px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand .brand { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.92rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--sky-light); }
.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
}
.social-row a:hover { background: var(--sky); border-color: var(--sky); transform: translateY(-3px); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 190px 0 90px;
  background: linear-gradient(160deg, #123a52 0%, var(--sky-dark) 55%, var(--sky) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(5px) saturate(1.15) contrast(1.05);
  transform: scale(1.1);
  z-index: 0;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,14,0.55) 0%, rgba(10,12,14,0.7) 100%);
  z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 560px; font-size: 1.05rem; }
.breadcrumb { display: flex; gap: 8px; font-size: 0.85rem; opacity: 0.75; margin-bottom: 18px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--charcoal); }
input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 3px;
  border: 1px solid var(--grey-light);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(58,169,220,0.15);
}
textarea { resize: vertical; min-height: 140px; }

/* ---------- Map / contact block ---------- */
.contact-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 26px; margin-top: 30px; }
.info-list .row { display: flex; gap: 16px; align-items: flex-start; }
.info-list .icon {
  width: 44px; height: 44px;
  border-radius: 4px;
  background: var(--sky-pale);
  color: var(--sky-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-list h4 { font-size: 0.95rem; margin-bottom: 4px; }
.info-list p, .info-list a { color: var(--grey); font-size: 0.92rem; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3.2;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Give page ---------- */
.give-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.give-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.give-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.give-card .icon { margin: 0 auto 20px; }

/* ---------- Utility ---------- */
.mt-lg { margin-top: 60px; }
.text-center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links, .nav-cta .btn-ghost-desktop { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-block { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .media, .split.reverse .text { order: unset; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .give-options { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  /* backdrop-filter on an ancestor creates a new containing block for position:fixed
     children, which traps the full-screen mobile menu inside the header's small box
     instead of the viewport. Disabling it here (mobile only) fixes that. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-links {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    z-index: 1050;
  }
  .nav-links a { color: var(--ink); font-size: 1.3rem; }
  .nav-open .nav-links { transform: translateX(0); }
  .nav-cta { display: none; }
}

@media (max-width: 640px) {
  section { padding: 80px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 28px; flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-info { gap: 20px; }
}

/* ---------- Legal pages & policy links ---------- */
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-links a { transition: color 0.3s var(--ease); }
.legal-links a:hover { color: var(--sky-light); }
.legal { max-width: 760px; }
.legal .updated { color: var(--grey); font-size: 0.9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.45rem; margin: 44px 0 14px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.legal p { margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--sky-dark); text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 0.92rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--grey-light); }
.legal th { background: var(--sky-pale); }
.legal .table-wrap { overflow-x: auto; }
.form-consent { margin-top: 18px; font-size: 0.85rem; color: var(--grey); }
.form-consent a, .form-status a { color: var(--sky-dark); text-decoration: underline; }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }
