/**
 * Israelis in Florida — City page layout
 *
 * Scoped to the public city subpages (/parkland/, and every city after it).
 * Requires: fonts.css → tokens.css → base.css → components.css → city.css
 *
 * Shared primitives (reset, .container, .section-*, .btn*, .tag, .form-row,
 * .form-error, .fade-up) live in base.css / components.css — never redefine
 * them here.
 */

/* ── Hebrew / RTL ───────────────────────────────────
   base.css already switches body + headings to --font-hebrew.
   These are the city-only selectors that also need the letter-spacing
   and text-transform reset. */
html[lang="he"] .nav a,
html[lang="he"] .section-label,
html[lang="he"] .hero-badge,
html[lang="he"] .hero-card-label,
html[lang="he"] .snav-label,
html[lang="he"] .snav-title,
html[lang="he"] .filter-tab,
html[lang="he"] .footer-col h4 {
  font-family: var(--font-hebrew);
  letter-spacing: 0;
  text-transform: none;
}

/* ─────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border, var(--color-border));
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-mark {
  width: 36px; height: 36px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mark svg { width: 20px; height: 20px; }

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text .brand-main {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--color-primary-dark);
}
.logo-text .brand-sub {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: capitalize;
  letter-spacing: 0.3px;
  transition: all 0.15s ease;
}
.nav a:hover, .nav a.active { color: var(--color-primary); background: var(--color-primary-soft); }
.nav a.nav-back {
  color: var(--color-text-subtle);
  border-right: 1px solid var(--color-border);
  margin-right: 6px;
  padding-right: 18px;
  border-radius: 0;
}
.nav a.nav-back:hover { color: var(--color-text); background: none; }

.header-right { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--color-bg-sunken);
  border-radius: 99px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  background: none;
  font-family: var(--font-display);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lang-btn.active {
  background: var(--color-bg-elevated);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--color-text); border-radius: 2px;
  transition: all 0.25s ease;
}

/* ── Mobile header / drawer ─────────────────────────
   The bar previously kept Feedback + language + Member Portal visible
   alongside the hamburger, which overflowed the row and pushed the
   hamburger off-screen entirely — the menu was unreachable on a phone.
   On mobile the bar keeps only logo + language + hamburger; everything
   else moves into the drawer. */
@media (max-width: 900px) {
  .hamburger { display: flex; }

  .header-right .btn-feedback,
  .header-right .btn-portal { display: none; }

  .header-inner { gap: 12px; }
  .header-right { gap: 8px; flex-shrink: 0; }
  .logo-text .brand-sub { display: none; }

  .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    position: fixed;
    top: var(--header-height, 68px);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--header-height, 68px));
    overflow-y: auto;
    padding: 8px 20px calc(20px + env(safe-area-inset-bottom));

    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    z-index: 190;

    /* Animate without display:none so the drawer can transition and stays
       out of the tab order while closed. */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity var(--duration-normal) var(--ease),
      transform var(--duration-normal) var(--ease),
      visibility 0s linear var(--duration-normal);
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
  }

  .nav a:last-child { border-bottom: none; }

  /* .nav-back carries a right-border + radius as a desktop divider; both
     read as artefacts once the nav is a vertical list. */
  .nav a.nav-back {
    border-right: none;
    border-radius: 0;
    margin: 0;
    padding-left: 4px;
  }

  /* Feedback + Member Portal, re-homed into the drawer */
  .nav .nav-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
  }

  .nav .nav-drawer-actions .btn-portal,
  .nav .nav-drawer-actions .btn-feedback {
    display: block;
    width: 100%;
    text-align: center;
  }

  /* Dim the page behind the drawer */
  .nav-scrim {
    position: fixed;
    inset: var(--header-height, 68px) 0 0;
    background: rgba(15, 41, 34, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) var(--ease), visibility 0s linear var(--duration-normal);
    z-index: 180;
  }

  .nav-scrim.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }

  body.nav-open { overflow: hidden; }

  /* Hamburger → X */
  .hamburger span { transition: transform var(--duration-fast) var(--ease), opacity var(--duration-fast) var(--ease); }
  .hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.is-open span:nth-child(2) { opacity: 0; }
  .hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (min-width: 901px) {
  .nav .nav-drawer-actions { display: none; }
  .nav-scrim { display: none; }
}

/* ─────────────────────────────────────────────────
   HERO — full-bleed photo
───────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  margin-top: 68px;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  background-image: url('../images/Parkland.webp');
  background-size: cover;
  background-position: center 35%;
  filter: brightness(0.90) saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(15, 41, 34, 0.88) 0%, rgba(15, 41, 34, 0.55) 42%, rgba(15, 41, 34, 0.15) 68%, transparent 100%),
    linear-gradient(to top, rgba(15, 41, 34, 0.45) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 60px;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
  color: var(--color-bg-elevated);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 22px;
  width: fit-content;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--color-bg-elevated);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.hero h1 em {
  font-style: italic;
  color: #e8a87c;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  max-width: 380px;
  line-height: 1.65;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-content { padding: 0 24px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── Section Overview Nav Strip ─────────────────── */
.section-nav {
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-bg-sunken);
  overflow-x: auto;
  scrollbar-width: none;
}
.section-nav::-webkit-scrollbar { display: none; }

.section-nav-inner {
  display: flex;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.section-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 32px;
  border-right: 1px solid var(--color-bg-sunken);
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 200px;
  transition: background 0.18s, border-color 0.18s;
  position: relative;
  cursor: pointer;
}
.section-nav-item:last-child { border-right: none; }
.section-nav-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  border-radius: 2px 2px 0 0;
}
.section-nav-item:hover { background: var(--color-primary-tint); }
.section-nav-item:hover::after { transform: scaleX(1); }

.snav-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: background 0.18s;
}
.section-nav-item:hover .snav-icon { background: var(--color-primary); }

.snav-text { display: flex; flex-direction: column; }
.snav-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 2px;
}
.snav-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}
.snav-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .section-nav-item { min-width: 160px; padding: 18px 20px; }
  .snav-sub { display: none; }
}

@media (max-width: 560px) {
  .section-nav-inner { justify-content: stretch; }
  .section-nav-item {
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    text-align: center;
  }
  .snav-icon { width: 36px; height: 36px; font-size: 1.1rem; }
  .snav-sub { display: none; }
  .snav-title { display: none; }
  .snav-label { font-size: 0.6rem; letter-spacing: 1px; }
}

/* ─────────────────────────────────────────────────
   THINGS TO DO
───────────────────────────────────────────────── */
.things-section { background: var(--color-bg); padding: 88px 0; }

.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .activities-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .activities-grid { grid-template-columns: 1fr; } }

.activity-card {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-bg-sunken);
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}
.activity-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.activity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.activity-card.green::before  { background: #059669; }
.activity-card.violet::before { background: #7C3AED; }
.activity-card.blue::before   { background: #0284C7; }
.activity-card.amber::before  { background: #D97706; }
.activity-card.navy::before   { background: var(--color-info-dark); }
.activity-card.red::before    { background: #DC2626; }

.activity-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 1.4rem;
}
.activity-card.green  .activity-icon { background: #D1FAE5; }
.activity-card.violet .activity-icon { background: #EDE9FE; }
.activity-card.blue   .activity-icon { background: #DBEAFE; }
.activity-card.amber  .activity-icon { background: #FEF3C7; }
.activity-card.navy   .activity-icon { background: var(--color-info-soft); }
.activity-card.red    .activity-icon { background: #FEE2E2; }

.activity-card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--color-text); margin-bottom: 6px; }
.activity-card p  { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: 16px; line-height: 1.55; }

.activity-items { display: flex; flex-direction: column; gap: 6px; }
.activity-items li {
  font-size: 0.875rem; color: var(--color-text-muted);
  display: flex; align-items: center; gap: 8px;
}
.activity-items li { justify-content: space-between; }
.activity-items li > span:first-child { flex: 1; }
.item-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 8px;
}
.item-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: var(--color-bg-sunken);
  color: var(--color-text-subtle);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.item-link-icon:hover { background: var(--color-primary-soft); color: var(--color-primary); }
.item-link-map:hover { background: #FEE2E2; color: #DC2626; }

.activity-suggest {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.activity-suggest a {
  color: var(--color-primary);
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.activity-suggest a:hover { color: var(--color-primary-dark); text-decoration: underline; }

/* Gated suggest box — blurred until login ready */
.activity-suggest-gated {
  position: relative;
  margin-top: 14px;
}
.activity-suggest-gated .activity-items {
  margin-top: 0;
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
  opacity: 0.7;
}
.activity-suggest-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.85);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 12px 16px;
  line-height: 1.4;
}
.activity-items li::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; flex-shrink: 0;
}
.activity-card.green  .activity-items li::before { background: #059669; }
.activity-card.violet .activity-items li::before { background: #7C3AED; }
.activity-card.blue   .activity-items li::before { background: #0284C7; }
.activity-card.amber  .activity-items li::before { background: #D97706; }
.activity-card.navy   .activity-items li::before { background: var(--color-info-dark); }
.activity-card.red    .activity-items li::before { background: #DC2626; }

/* expand / collapse */
.extra-items { overflow: hidden; max-height: 0; transition: max-height 0.38s ease; }
.extra-items.open { max-height: 1200px; }
.show-more-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; padding: 6px 0 2px;
  font-size: 0.8rem; font-weight: 600; color: var(--color-primary);
  cursor: pointer; font-family: inherit; transition: color 0.15s;
}
.show-more-btn:hover { color: var(--color-primary-dark); }
.show-more-btn .arrow { font-size: 0.65rem; display: inline-block; transition: transform 0.25s; }
.show-more-btn.open .arrow { transform: rotate(180deg); }
.activity-sub-label {
  font-size: 0.75rem; font-weight: 700; color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin: 14px 0 6px; padding-top: 10px;
  border-top: 1px dashed var(--color-border);
}

/* ─────────────────────────────────────────────────
   EVENTS
───────────────────────────────────────────────── */
.events-section { background: var(--color-info-tint); padding: 88px 0; }

.events-filter-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--color-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.events-filter-bar::-webkit-scrollbar { display: none; }

.filter-tab {
  padding: 10px 20px;
  font-size: 0.9rem; font-weight: 600;
  font-family: var(--font-display);
  color: var(--color-text-muted);
  background: none; border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.filter-tab.active       { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.filter-tab:hover:not(.active) { color: var(--color-text); }

.events-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 1024px) { .events-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .events-grid { grid-template-columns: 1fr; } }

.event-card {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.22s ease;
  display: flex; flex-direction: column;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.event-card-top-bar { height: 4px; }
.event-card-top-bar.religious { background: var(--color-warning); }
.event-card-top-bar.cultural  { background: var(--color-info); }
.event-card-top-bar.social    { background: var(--color-success); }

.event-card-body { padding: 22px 22px 16px; flex: 1; }
.event-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

.event-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 600;
  padding: 3px 10px; border-radius: 99px; letter-spacing: 0.03em;
}
.event-badge.religious { background: #FEF3C7; color: #92400E; }
.event-badge.cultural  { background: #DBEAFE; color: #1E3A8A; }
.event-badge.social    { background: #D1FAE5; color: #065F46; }

.event-date { font-size: 0.8rem; font-weight: 600; color: var(--color-text-muted); }
.event-card-body h3 { font-size: 1.0625rem; font-weight: 700; color: var(--color-text); margin-bottom: 8px; line-height: 1.3; }
.event-card-body p  { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.55; }

.event-card-footer {
  border-top: 1px solid var(--color-bg-sunken);
  padding: 14px 22px;
  display: flex; flex-direction: column; gap: 5px;
}
.event-detail { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--color-text-muted); }
.event-detail svg { flex-shrink: 0; color: var(--color-primary); }
.event-request-btn {
  margin-top: 10px;
  width: 100%;
  padding: 9px 0;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.3px;
}
.event-request-btn:hover { background: var(--color-primary); color: var(--color-bg-elevated); }

/* ─────────────────────────────────────────────────
   WHATSAPP GROUPS
───────────────────────────────────────────────── */
.groups-section { background: var(--color-bg); padding: 60px 0; }
.groups-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
@media (max-width: 1024px) { .groups-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px) { .groups-grid { grid-template-columns: repeat(2,1fr); gap: 10px; } }
@media (max-width: 480px) { .groups-grid { grid-template-columns: 1fr; } }
.group-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
}
.group-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-primary-soft); }
.group-card-icon { font-size: 1.35rem; }
.group-card h3 { font-size: 0.9375rem; font-weight: 700; color: var(--color-text); margin: 0; line-height: 1.25; }
.group-card p { font-size: 0.8rem; color: var(--color-text-muted); line-height: 1.4; margin: 0; flex: 1; }
.group-card .btn { width: 100%; justify-content: center; padding: 6px 12px; font-size: 0.8rem; }

/* ─────────────────────────────────────────────────
   PARENT CONNECTIONS
───────────────────────────────────────────────── */
.parents-section { background: var(--color-bg-elevated); padding: 88px 0; }

.parents-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 1024px) { .parents-grid { grid-template-columns: repeat(2,1fr); } }

/* ── Parent cards: carousel on mobile ───────────────
   Stacked vertically these ran most of a phone screen each, so the section
   became a long scroll before anything else on the page. A snap carousel
   keeps the whole section to one card-height and makes it obvious there are
   more by letting the next one peek in from the edge. */
@media (max-width: 640px) {
  .parents-grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

    /* Bleed to the viewport edges so a card can peek, while the first and
       last still line up with the page gutter. */
    margin-inline: calc(var(--space-5) * -1);
    padding-inline: var(--space-5);
    padding-bottom: 4px;
  }

  .parents-grid::-webkit-scrollbar { display: none; }

  .parents-grid > * {
    flex: 0 0 82%;          /* the remaining 18% is the next card, peeking */
    scroll-snap-align: center;
    min-width: 0;
  }

  .parents-grid > *:last-child { scroll-snap-align: end; }

  /* A dragged carousel must not also swipe the page sideways. */
  .parents-section { overflow-x: clip; }
}

/* Respect a reduced-motion preference: keep the carousel, drop the snap. */
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .parents-grid { scroll-snap-type: none; scroll-behavior: auto; }
}

.parent-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
}
.parent-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-primary-soft); }
.parent-card.cta-card {
  background: var(--color-accent-soft); border-color: #E9D683;
  justify-content: center; align-items: center; text-align: center; min-height: 220px;
}

.parent-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem;
  color: var(--color-bg-elevated); flex-shrink: 0;
}
.parent-header { display: flex; align-items: center; gap: 14px; }
.parent-info h3 { font-size: 1rem; font-weight: 700; color: var(--color-text); margin-bottom: 2px; }
.parent-info p  { font-size: 0.8rem; color: var(--color-text-muted); }
.parent-details { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.5; }
.parent-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.parent-card .btn { width: 100%; justify-content: center; }

.cta-icon { font-size: 2.25rem; margin-bottom: 4px; }
.cta-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--color-text); margin-bottom: 6px; }
.cta-card p  { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: 16px; }

.parent-placeholder {
  border-style: dashed; border-color: var(--color-text-subtle);
  justify-content: center; align-items: center; text-align: center;
}
.parent-placeholder:hover { border-color: var(--color-primary-soft); }
.parent-placeholder-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.parent-placeholder-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-border); color: var(--color-text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700;
}
.parent-placeholder h3 { font-size: 1rem; font-weight: 700; color: var(--color-text); margin: 0; }
.parent-placeholder p { font-size: 0.875rem; color: var(--color-text-muted); margin: 0; line-height: 1.4; }

/* ─────────────────────────────────────────────────
   RELOCATION GUIDES
───────────────────────────────────────────────── */
.relocation-section { background: var(--color-bg); padding: 88px 0; }

.guides-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-bottom: 48px; }
@media (max-width: 768px) { .guides-grid { grid-template-columns: 1fr; } }

.guide-card {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-bg-sunken);
  display: flex; gap: 20px;
  transition: all 0.22s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.guide-number {
  font-family: var(--font-display); font-weight: 800; font-size: 1.75rem;
  color: var(--color-primary-soft); line-height: 1; flex-shrink: 0; width: 40px; padding-top: 2px;
}

.guide-content h3 { font-size: 1.0625rem; font-weight: 700; color: var(--color-text); margin-bottom: 10px; }
.guide-sections { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.guide-sections li { font-size: 0.875rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 8px; }
.guide-sections li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); flex-shrink: 0; }
.guide-sections li a { color: var(--color-text-muted); text-decoration: none; transition: color 0.15s; }
.guide-sections li a:hover { color: var(--color-primary); text-decoration: underline; }
.guide-school-note { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 12px; line-height: 1.5; }
.guide-school-note a { color: var(--color-primary); font-weight: 600; }
.guide-school-note a:hover { text-decoration: underline; }
.guide-school-heading { font-size: 0.8rem; font-weight: 700; color: var(--color-text); margin-bottom: 6px; margin-top: 4px; }

.text-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.875rem; font-weight: 600; color: var(--color-primary);
  transition: gap 0.15s ease;
}
.text-link:hover { gap: 8px; }

.quick-links-title { font-size: 1.0625rem; font-weight: 700; color: var(--color-text); margin-bottom: 16px; }

.quick-links-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
@media (max-width: 768px) { .quick-links-row { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .quick-links-row { grid-template-columns: 1fr; } }

.quick-link-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: all 0.15s ease;
}
.quick-link-card:hover { border-color: var(--color-primary); background: var(--color-primary-tint); }
.quick-link-card.quick-link-coming-soon { opacity: 0.85; cursor: default; }
.quick-link-card.quick-link-coming-soon:hover { border-color: var(--color-border); background: var(--color-bg-elevated); }

.quick-link-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0; background: var(--color-primary-soft);
}
.quick-link-text { font-size: 0.875rem; font-weight: 600; color: var(--color-text); line-height: 1.2; }
.quick-link-sub  { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 2px; }

/* ─────────────────────────────────────────────────
   CTA BANNER (full-bleed)
───────────────────────────────────────────────── */
.cta-banner {
  position: relative; overflow: hidden;
  padding: 90px 32px;
  background: var(--color-primary-dark);
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 15% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 85% 30%, rgba(0,0,0,0.2) 0%, transparent 55%);
}
.cta-inner { position: relative; z-index: 2; }
.cta-inner h2 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; color: var(--color-bg-elevated); letter-spacing: -0.02em; margin-bottom: 16px; }
.cta-inner p  { font-size: 1rem; color: rgba(255,255,255,0.85); max-width: 480px; margin: 0 auto 32px; line-height: 1.7; }

/* ─────────────────────────────────────────────────
   MOBILE ACCORDION CARDS
───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .card-chevron {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--color-text-subtle);
    transition: transform 0.25s ease, color 0.2s;
    pointer-events: none;
    flex-shrink: 0;
  }
  .expanded .card-chevron { transform: rotate(180deg); color: var(--color-primary); }

  /* Activity cards — compact row when collapsed */
  .activity-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 16px 48px 16px 18px;
    cursor: pointer;
  }
  .activity-card .activity-icon {
    width: 36px; height: 36px;
    font-size: 1rem;
    flex-shrink: 0;
  }
  .activity-card h3 { flex: 1; margin-bottom: 0; font-size: 0.9375rem; }
  .activity-card > p,
  .activity-card > .activity-items { display: none; }
  .activity-card.expanded { flex-wrap: wrap; align-items: flex-start; }
  .activity-card.expanded .activity-icon { margin-top: 2px; }
  .activity-card.expanded h3 { margin-bottom: 6px; }
  .activity-card.expanded > p,
  .activity-card.expanded > .activity-items { display: block; width: 100%; margin-top: 0; }

  /* Event cards */
  .event-card { cursor: pointer; }
  .event-card .event-card-body { padding-right: 40px; }
  .event-card .event-card-body > p,
  .event-card .event-card-footer { display: none; }
  .event-card.expanded .event-card-body > p,
  .event-card.expanded .event-card-footer { display: block; }
  .event-card .card-chevron { top: 22px; }

  /* Parent cards are a carousel below 640px, not an accordion — they sit
     side by side, so collapsing them yields a row of name-only cards.
     (The .parent-placeholder rules that were here are gone with the
     placeholder cards themselves.) */
  .parent-card { cursor: default; padding-right: 26px; }
  .parent-card .card-chevron { display: none; }

  /* Guide cards */
  .guide-card { cursor: pointer; padding-right: 48px; }
  .guide-card .guide-sections,
  .guide-card .text-link { display: none; }
  .guide-card.expanded .guide-sections,
  .guide-card.expanded .text-link { display: block; margin-top: 10px; }
}

/* ─────────────────────────────────────────────────
   CONTACT MODAL
───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.25s ease;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--color-bg-sunken); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; color: var(--color-text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.modal-close:hover { background: var(--color-border); }
.modal-header { text-align: center; margin-bottom: 28px; }
.modal-icon { font-size: 2.5rem; margin-bottom: 12px; }
.modal-header h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--color-text); margin-bottom: 8px; }
.modal-header p  { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.5; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } .modal-box { padding: 28px 20px; } }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--color-text); }
.req { color: var(--color-primary); }
.optional { font-weight: 400; color: var(--color-text-muted); }
.form-group input,
.form-group textarea {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(74,124,89,0.12); }
.form-group input.invalid,
.form-group textarea.invalid { border-color: #DC2626; }
.form-group textarea { resize: vertical; min-height: 80px; }
.radio-group { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.radio-option { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.9rem; color: var(--color-text); }
.radio-option input[type="radio"] { accent-color: var(--color-primary); width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }
.form-confirm { text-align: center; padding: 20px 0; }
.success-icon { font-size: 3rem; margin-bottom: 12px; }
.form-confirm h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--color-text); margin-bottom: 8px; }
.form-confirm p  { font-size: 0.9rem; color: var(--color-text-muted); }

/* ─────────────────────────────────────────────────
   BACK TO TOP
───────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-bg-elevated);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.18s;
  pointer-events: none;
  z-index: 200;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover { background: var(--color-primary-dark); }

@media (max-width: 560px) {
  #back-to-top { bottom: 80px; right: 20px; width: 42px; height: 42px; }
}

/* ─────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────── */
.footer { background: var(--color-text); color: rgba(255,255,255,0.65); padding: 64px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand .logo-mark { background: rgba(255,255,255,0.1); margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.65; max-width: 280px; margin-bottom: 24px; }

.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer;
  transition: background 0.15s ease; border: none;
  color: rgba(255,255,255,0.8);
}
.social-btn:hover { background: rgba(255,255,255,0.18); }

.footer-col h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: rgba(255,255,255,0.9); margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-links span {
  font-size: 0.9rem; color: rgba(255,255,255,0.6);
  transition: color 0.15s ease; display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.footer-links a:hover { color: var(--color-bg-elevated); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.4); transition: color 0.15s ease; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.75); }
