:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --ink: #0f172a;
  --ink-muted: #475569;
  --border: #e2e8f0;
  --accent: #0369a1;
  --accent-hover: #075985;
  --whatsapp: #15803d;
  --whatsapp-hover: #166534;
  --radius: 12px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', system-ui, sans-serif;
  margin: 0;
  line-height: 1.18;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Header: strict 3-zone Top Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.brand-wordmark {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.header-cta-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline-light {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.btn-outline-light:hover {
  background: rgba(15, 23, 42, 0.8);
}

.btn-outline-dark {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}

.btn-outline-dark:hover {
  border-color: var(--ink);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

.mobile-drawer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 16px;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-link {
  padding: 10px 4px;
  font-weight: 500;
  border-bottom: 1px solid var(--surface-muted);
}

.mobile-link.is-active {
  color: var(--accent);
  font-weight: 600;
}

/* Hero Banner Slider */
.hero-slider {
  position: relative;
  width: 100%;
  background: #020617;
  color: #ffffff;
  overflow: hidden;
  min-height: 540px;
}

.hero-slides {
  position: relative;
  width: 100%;
  min-height: 540px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 450ms ease;
  display: flex;
  align-items: center;
}

.hero-slide.is-active {
  position: relative;
  min-height: 540px;
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide-img,
.page-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.68) 55%, rgba(2, 6, 23, 0.35) 100%);
  z-index: 1;
}

.hero-content,
.page-banner-content {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  padding-block: 72px 88px;
}

.hero-kicker {
  display: block;
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #7dd3fc;
  margin-bottom: 12px;
}

.hero-title,
.page-banner-title {
  display: block;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 16px;
}

.hero-subtitle {
  display: block;
  font-size: 1.0625rem;
  color: #e2e8f0;
  max-width: 56ch;
  margin-bottom: 28px;
}

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

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 24px;
  height: 6px;
  border-radius: 3px;
  border: 0;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: width 160ms ease, background-color 160ms ease;
}

.hero-dot.is-active {
  background: #ffffff;
  width: 40px;
}

.hero-arrows {
  display: flex;
  gap: 8px;
}

.hero-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(2, 6, 23, 0.65);
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

/* Subpage Banner */
.page-banner {
  position: relative;
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  background: #020617;
  color: #ffffff;
  overflow: hidden;
}

/* Metrics Strip */
.metrics-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric-cell {
  padding: 24px 16px;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.metric-cell:first-child {
  padding-left: 0;
}

.metric-cell:last-child {
  border-right: 0;
}

.metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.metric-label {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* Sections */
.section {
  padding-block: 64px;
}

.section-muted {
  background: var(--surface-muted);
  border-block: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.text-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.text-link:hover {
  text-decoration: underline;
}

/* Bento & Cards */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.service-card-wide {
  grid-column: span 2;
}

.service-card-media {
  height: 220px;
  overflow: hidden;
  background: var(--surface-muted);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.service-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-meta {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.card-text {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* Districts */
.districts-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.district-link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  min-width: 0;
  transition: border-color 160ms ease, transform 160ms ease;
}

.district-link-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.district-link-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
}

.district-meta {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-top: 6px;
}

/* Support Split */
.support-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.support-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.support-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 22%;
}

.lead-text {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  margin-top: 14px;
  margin-bottom: 24px;
}

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

/* Services Page */
.filter-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: var(--surface-muted);
  border-radius: 10px;
  margin-bottom: 32px;
}

.filter-tab {
  padding: 8px 16px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
}

.filter-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-detail-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-detail-card[hidden] {
  display: none;
}

.service-detail-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center 22%;
}

.service-detail-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.service-detail-title {
  font-size: 1.5rem;
}

.detail-bullets {
  margin: 4px 0 8px;
  padding-left: 18px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.service-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

/* Districts Page */
.district-tabs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 32px;
}

.district-tab {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
}

.district-tab small {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.district-tab.is-active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.district-tab.is-active small {
  color: #cbd5e1;
}

.district-detail-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.district-panel-title {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.sub-heading {
  font-size: 1rem;
  margin-top: 20px;
  margin-bottom: 8px;
}

.neighborhood-list-text {
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.district-contact-box {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.district-phone {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  margin-block: 8px 16px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.principles-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.principle-item {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.principle-item h3 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.principle-item p {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.about-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-figure img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.about-figure figcaption {
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.contact-card,
.contact-info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  min-width: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 0.875rem;
  font-weight: 600;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: #ffffff;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.field-error {
  font-size: 0.8125rem;
  color: #b91c1c;
}

.form-success-box {
  margin-top: 24px;
  padding: 24px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}

.form-success-box h3 {
  color: #166534;
  margin-bottom: 8px;
}

.form-success-box p {
  margin-bottom: 16px;
}

.contact-item {
  padding-block: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item-label {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.contact-item-value {
  font-weight: 600;
  font-size: 1.0625rem;
}

/* Footer */
.site-footer {
  background: #020617;
  color: #e2e8f0;
  padding-top: 56px;
  padding-bottom: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-desc {
  font-size: 0.9375rem;
  color: #94a3b8;
  margin-top: 12px;
  margin-bottom: 14px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.footer-heading {
  font-size: 0.9375rem;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.footer-districts-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-phone-label {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.footer-phone {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-block: 6px 14px;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* Right-bottom Floating WhatsApp Bubble */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 9999px;
  background: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.22);
  transition: background-color 160ms ease, transform 160ms ease;
}

.whatsapp-float:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
}

.whatsapp-float-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.whatsapp-float-title {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.92;
}

.whatsapp-float-phone {
  font-size: 0.875rem;
  font-weight: 700;
}

@media (max-width: 960px) {
  .header-inner {
    height: 64px;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-cell:first-child {
    padding-left: 16px;
  }

  .metric-cell:nth-child(2n) {
    border-right: 0;
  }

  .metric-cell:nth-child(1),
  .metric-cell:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .bento-grid,
  .districts-preview-grid,
  .support-split,
  .service-detail-card,
  .district-detail-panel,
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card-wide {
    grid-column: span 1;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row-split {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    padding: 8px 14px;
  }
}
