/* ==========================================================================
   BetterConcepcion: civic theme in the BetterLGU / BetterAlcala style
   Navy and flag-gold hero with a sunburst, colourful service cards,
   warm paper ground. Loaded last on every page over the template.
   ========================================================================== */

:root {
  --navy: #00226e;
  --navy-2: #0b3a9e;
  --navy-ink: #0f2342;
  --gold: #fcd116;
  --gold-deep: #e6b800;
  --flag-blue: #0038a8;
  --flag-red: #ce1126;
  --c-blue: #2b4fb5;
  --c-red: #c13d23;
  --c-navy: #13294b;
  --c-green: #277a43;
  --c-teal: #1a6fa0;
  --paper: #faf7f2;
  --sand: #f4efe6;
  --line: #d1d8e6;
  --muted: #4b5875;
  --radius: 12px;
  --shadow-1: 0 1px 2px rgba(15, 35, 66, 0.06), 0 1px 1px rgba(15, 35, 66, 0.04);
  --shadow-2: 0 10px 24px -8px rgba(15, 35, 66, 0.22);

  --color-primary: #00226e;
  --color-primary-dark: #001a55;
  --color-secondary: #0b3a9e;
  --color-accent: #fcd116;
  --color-success: #277a43;
  --color-danger: #ce1126;
  --color-info: #1a6fa0;
  --color-bg: #ffffff;
  --color-bg-alt: #f4efe6;
  --color-text: #0f2342;
  --color-text-light: #4b5875;
  --font-main: 'Archivo', system-ui, sans-serif;
  --font-display: 'Inter Tight', 'Archivo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --border-radius: 12px;
  --shadow-sm: var(--shadow-1);
  --shadow-md: var(--shadow-2);
  --max-width: 1200px;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-main);
  background: var(--paper);
  color: var(--navy-ink);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--navy-ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
::selection {
  background: var(--gold);
  color: var(--navy-ink);
}
a {
  color: var(--navy-2);
}
:focus-visible {
  outline: 3px solid var(--gold) !important;
  outline-offset: 2px !important;
}
::placeholder {
  color: #66708a !important;
  opacity: 1;
}
.skip-link {
  position: absolute !important;
  left: 12px !important;
  top: -100px !important;
  background: var(--gold) !important;
  color: var(--navy-ink) !important;
  padding: 10px 16px !important;
  border-radius: 6px !important;
  font-weight: 700;
  z-index: 2000;
}
.skip-link:focus {
  top: 12px !important;
}
.page-header-badge,
.section-tag,
.stats-hero-badge,
.trans-hero-badge-v2,
.hotlines-badge,
.home-fb-eyebrow,
.text-center > span[style*='border-radius: 50px'] {
  display: none !important;
}
.pwa-install-banner {
  display: none !important;
}

/* ---------- Hotline bar ---------- */
.hotline-bar {
  background: var(--navy);
  color: #fff;
  padding: 7px 0;
  font-size: 0.8125rem;
}
.hotline-inner,
.hotline-items {
  justify-content: flex-start !important;
}
.hotline-items {
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none;
  gap: 8px !important;
}
.hotline-items::-webkit-scrollbar {
  display: none;
}
.hotline-item {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
  flex: none;
  font-weight: 600;
}
.hotline-item i {
  color: var(--gold);
}
.hotline-item:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
/* Hotlines scroll by themselves; hover, focus or a tap pauses them */
.hotline-items {
  overflow-x: hidden !important;
}
.hotline-items-track {
  display: flex !important;
  gap: 8px !important;
  padding-right: 8px;
  width: max-content;
  transform: none;
  animation: civic-hotline-scroll 40s linear infinite !important;
}
.hotline-items-track:hover,
.hotline-items-track:focus-within,
.hotline-items-track:active {
  animation-play-state: paused !important;
}
@keyframes civic-hotline-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* The sun turns slowly behind the hero and page headers */
.civic-sun {
  transform-origin: 50% 50%;
  animation: civic-sun-spin 120s linear infinite;
}
@keyframes civic-sun-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hotline-items {
    overflow-x: auto !important;
  }
  .hotline-items-track {
    animation: none !important;
  }
  .hotline-items-track > [aria-hidden='true'] {
    display: none !important;
  }
  .civic-sun {
    animation: none;
  }
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  box-shadow: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
}
.brand-mark svg {
  width: 44px;
  height: 44px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3125rem;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.brand-name b {
  color: var(--gold-deep);
  font-weight: 800;
}
.brand-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 3px;
}
.main-nav a {
  color: var(--navy-ink);
  font-weight: 600;
  font-size: 0.9375rem;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--navy);
  box-shadow: inset 0 -3px 0 var(--gold);
  text-decoration: none;
}
.dropdown-menu {
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  box-shadow: var(--shadow-2) !important;
  transition: none !important;
}
.dropdown-menu a {
  box-shadow: none !important;
}
.dropdown-menu a:hover {
  background: var(--sand) !important;
}
.lang-selector .lang-btn {
  border: 1.5px solid var(--navy) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--navy) !important;
  font-weight: 700;
  min-width: 40px;
}
.lang-selector .lang-btn.active,
.lang-selector .lang-btn[aria-pressed='true'] {
  background: var(--navy) !important;
  color: #fff !important;
}
.mobile-menu-toggle {
  border-radius: 8px !important;
}

/* ---------- Info bar ---------- */
.info-bar {
  background: #fff;
  color: var(--navy-ink);
  border-bottom: 1px solid var(--line);
}
.info-bar *,
.info-bar i {
  color: var(--navy-ink) !important;
  font-size: 0.8125rem !important;
  opacity: 1 !important;
}
.info-bar i {
  color: var(--gold-deep) !important;
}
.info-bar-inner {
  flex-wrap: wrap !important;
  row-gap: 4px;
}

/* ---------- Navy hero field (home hero and inner page headers) ---------- */
.civic-hero,
.page-header,
.stats-hero,
.trans-hero-v2 {
  position: relative;
  overflow: hidden;
  background-color: var(--navy) !important;
  background-image: radial-gradient(80% 60% at 50% 0, rgba(11, 79, 209, 0.45), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) !important;
  background-size:
    auto,
    44px 44px,
    44px 44px !important;
  color: #fff !important;
}
.civic-sun {
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 560px;
  height: 560px;
  opacity: 0.22;
  pointer-events: none;
}
.page-header .civic-sun,
.stats-hero .civic-sun,
.trans-hero-v2 .civic-sun {
  width: 380px;
  height: 380px;
  right: -90px;
  bottom: -190px;
}
.page-header,
.stats-hero,
.trans-hero-v2 {
  padding: 46px 0 50px !important;
}
.page-header::before,
.page-header::after,
.stats-hero::before,
.stats-hero::after,
.trans-hero-v2::before,
.trans-hero-v2::after {
  display: none !important;
}
.page-header-content,
.stats-hero-content,
.trans-hero-content-v2 {
  position: relative;
  z-index: 1;
}
.page-header h1,
.stats-hero h1,
.trans-hero-v2 h1 {
  color: #fff !important;
  font-family: var(--font-display) !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
}
.page-header p,
.page-header-desc,
.stats-hero p,
.trans-hero-v2 p {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 1.0625rem !important;
}
.page-header .search-input-wrapper,
.page-header input {
  border-radius: 10px !important;
}

/* Home hero */
.civic-hero {
  text-align: center;
  padding: 0 0 26px;
}
.civic-hero-inner {
  position: relative;
  z-index: 1;
  padding: 52px 0 18px;
  max-width: 860px;
  margin: 0 auto;
}
.civic-hero-place {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 14px;
}
.civic-hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
}
.civic-hero h1 .dot-org {
  color: var(--gold);
}
.civic-hero-lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 600px;
  margin: 18px auto 0;
}
.civic-hero-facts {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
}
.civic-hero-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.civic-hero-facts li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.civic-hero-facts li:nth-child(2)::before {
  background: #34c27a;
}
.civic-hero-facts li:nth-child(3)::before {
  background: #5aa7ff;
}
.civic-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.civic-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}
.civic-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.civic-btn--gold {
  background: var(--gold);
  color: var(--navy-ink);
}
.civic-btn--gold:hover {
  background: #ffdc3d;
  color: var(--navy-ink);
}
.civic-btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.civic-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.civic-search {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 30px auto 0;
}
.civic-search .search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px !important;
  padding: 8px 8px 8px 16px;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.45);
}
.civic-search .search-input-wrapper > i {
  color: var(--gold-deep);
  font-size: 1.25rem;
}
.civic-search .service-search-input {
  flex: 1;
  border: 0 !important;
  font: inherit;
  font-size: 1rem;
  padding: 10px 4px;
  min-width: 0;
  background: transparent;
}
.civic-search .search-submit-btn {
  position: static !important;
  transform: none !important;
  width: 44px !important;
  height: 44px !important;
  flex: none;
  border: 0;
  border-radius: 10px !important;
  background: var(--navy) !important;
  color: #fff !important;
  display: grid;
  place-items: center;
  font-size: 1.125rem;
}
.civic-popular {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
}
.civic-popular a {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 3px 12px;
  font-weight: 600;
}

/* Tile band: a row of flag-coloured service tiles */
.civic-tiles {
  display: flex;
  overflow: hidden;
  height: 40px;
  border-top: 3px solid var(--gold);
}
.civic-tiles span {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
}
.civic-tiles span:nth-child(4n + 1) {
  background: var(--c-blue);
}
.civic-tiles span:nth-child(4n + 2) {
  background: var(--c-green);
}
.civic-tiles span:nth-child(4n + 3) {
  background: var(--c-red);
}
.civic-tiles span:nth-child(4n + 4) {
  background: var(--c-teal);
}

/* ---------- Popular services: colour cards ---------- */
.civic-services {
  padding: 56px 0 60px;
  background: #fff;
}
.civic-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.civic-section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0;
}
.civic-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}
.civic-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.civic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 168px;
  padding: 20px;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  background-color: var(--card, var(--c-blue));
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0 2px,
    transparent 2px 14px
  );
  box-shadow: var(--shadow-1);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}
.civic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  text-decoration: none;
  color: #fff;
}
.civic-card-icon {
  position: absolute;
  top: 18px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}
.civic-card-tag {
  position: absolute;
  top: 20px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
}
.civic-card h3 {
  color: #fff;
  font-size: 1.1875rem;
  font-weight: 800;
  margin: 0;
}
.civic-card p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9375rem;
  margin: 4px 0 0;
}
.civic-card--blue {
  --card: var(--c-blue);
}
.civic-card--red {
  --card: var(--c-red);
}
.civic-card--navy {
  --card: var(--c-navy);
}
.civic-card--green {
  --card: var(--c-green);
}
.civic-card--teal {
  --card: var(--c-teal);
}
.civic-card--ink {
  --card: #0d1d3a;
}

/* Boat card */
.civic-boat {
  margin-top: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--sand);
  border: 1px solid #e7dfd0;
}
.civic-boat-time {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 2.75rem;
  color: var(--navy);
  line-height: 1;
}
.civic-boat h3 {
  margin: 0;
  font-size: 1.1875rem;
}
.civic-boat p {
  margin: 4px 0 0;
  color: var(--muted);
}
.civic-boat a {
  font-weight: 700;
}

/* ---------- Generic cards and sections ---------- */
.card,
.dept-card,
.contact-card,
.hotline-card,
.finance-card,
.metric-card,
.economy-card,
.councilor-card,
.barangay-card,
.office-card,
.service-item-card,
.service-category-card,
.home-service-card,
.home-contact-v2-card,
.home-stat-card,
.home-leader-card,
.timeline-content,
.history-card,
.process-card,
.stat-card,
.faq-item,
.weather-widget,
.map-card,
.sitemap-link-item,
.info-card,
.requirement-card {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-1) !important;
  background-image: none !important;
}
.card:hover,
.dept-card:hover,
.contact-card:hover,
.service-category-card:hover,
.home-service-card:hover,
.home-contact-v2-card:hover,
.office-card:hover,
.sitemap-link-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-2) !important;
}
[class*='card'] h3,
[class*='card'] h4 {
  text-transform: none !important;
  letter-spacing: -0.01em !important;
  color: var(--navy-ink);
}
.dept-card-icon,
.contact-card-icon,
.service-category-icon,
.home-service-icon,
.home-contact-v2-icon,
.home-stat-card-icon,
.office-card-icon,
.metric-icon,
.economy-icon,
.history-card-icon {
  width: 44px !important;
  height: 44px !important;
  min-height: 0 !important;
  align-self: flex-start !important;
  flex: none !important;
  margin: 16px 0 0 16px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: #e8eefc !important;
  color: var(--c-blue) !important;
  font-size: 1.25rem !important;
}
.dept-card-icon i,
.contact-card-icon i,
.service-category-icon i,
.home-service-icon i,
.home-contact-v2-icon i,
.home-stat-card-icon i,
.office-card-icon i,
.metric-icon i,
.economy-icon i,
.history-card-icon i {
  color: inherit !important;
}
.home-stat-card-icon,
.metric-icon,
.economy-icon {
  margin: 0 !important;
}
.home-stat-card:nth-child(2) .home-stat-card-icon {
  background: #e4f4ea !important;
  color: var(--c-green) !important;
}
.home-stat-card:nth-child(3) .home-stat-card-icon {
  background: #e3f1fa !important;
  color: var(--c-teal) !important;
}
.home-stat-card:nth-child(4) .home-stat-card-icon {
  background: #fdebe6 !important;
  color: var(--c-red) !important;
}
.home-stat-card {
  padding: 18px !important;
  display: flex !important;
  gap: 14px !important;
  align-items: flex-start !important;
}
.home-stat-card::before,
.home-stat-card::after,
.metric-card::before,
.finance-card::before {
  display: none !important;
}
.home-stat-card-value,
.metric-value,
.finance-card-value,
.economy-value,
.trend-stat-value {
  font-family: var(--font-mono) !important;
  font-weight: 600 !important;
  color: var(--c-blue) !important;
  letter-spacing: -0.02em;
}
.home-stat-card:nth-child(2) .home-stat-card-value {
  color: var(--c-green) !important;
}
.home-stat-card:nth-child(3) .home-stat-card-value {
  color: var(--c-teal) !important;
}
.home-stat-card:nth-child(4) .home-stat-card-value {
  color: var(--c-red) !important;
}
.home-stat-card-label {
  font-weight: 700;
  color: var(--navy-ink);
}

.home-stats-v2,
.bg-alt,
.history-section,
.office-hours-section,
.home-leadership-section {
  background: var(--sand) !important;
}
.home-section-header h2,
.home-stats-v2-header h2,
.section-title,
.section-header-minimal h2,
.hotlines-title h2 {
  font-family: var(--font-display) !important;
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  font-weight: 800 !important;
  color: var(--navy-ink) !important;
}
.home-section-link {
  color: var(--navy-2) !important;
  font-weight: 700;
}
.history-section h2 > i {
  color: var(--navy) !important;
}

/* timeline */
.timeline-marker {
  border-color: var(--navy) !important;
}
.history-timeline::before {
  background: linear-gradient(180deg, var(--navy) 0%, rgba(0, 34, 110, 0.15) 100%) !important;
}
.timeline-year {
  background: #e8eefc !important;
  color: var(--navy) !important;
  border-radius: 6px !important;
  font-family: var(--font-mono);
  font-weight: 600;
}

/* buttons */
.btn-primary,
.portal-cta-btn {
  background: var(--navy) !important;
  color: #fff !important;
  border-radius: 6px !important;
}
.btn-primary:hover,
.portal-cta-btn:hover {
  background: var(--navy-2) !important;
}
.btn-outline,
.btn-secondary {
  border-radius: 6px !important;
  border: 1.5px solid var(--navy) !important;
  color: var(--navy) !important;
  background: #fff !important;
}

/* executive cards */
.executive-card {
  background: var(--navy) !important;
  border-radius: var(--radius) !important;
  border: 0 !important;
  box-shadow: var(--shadow-1) !important;
}
.executive-card * {
  color: #fff !important;
}
.executive-badge,
.councilor-badge,
.home-leader-badge {
  background: var(--gold) !important;
  color: var(--navy-ink) !important;
  border-radius: 999px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 700 !important;
}
.executive-contacts > * {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

/* hotline cards */
.hotline-card {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 16px 18px !important;
  color: var(--navy-ink) !important;
}
.hotline-card i {
  color: var(--flag-red) !important;
}
.hotline-card[href^='tel:911'] {
  background: var(--flag-red) !important;
  border-color: var(--flag-red) !important;
  color: #fff !important;
}
.hotline-card[href^='tel:911'] * {
  color: #fff !important;
}
.hl-text {
  display: flex;
  flex-direction: column;
}
.hl-name {
  font-weight: 600;
  font-size: 0.9375rem;
}
.hl-num {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2px;
}
.unverified-note {
  display: inline-block;
  border: 1px dashed #8a93a8;
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}
.data-source {
  color: var(--muted) !important;
}
.search-submit-btn {
  background: var(--navy) !important;
  color: #fff !important;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy) !important;
  border-top: 4px solid var(--gold);
}
.site-footer h3,
.site-footer h4 {
  color: var(--gold) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 1rem !important;
}
.site-footer p,
.site-footer span,
.site-footer li,
.footer-tagline {
  color: rgba(255, 255, 255, 0.82) !important;
}
.site-footer a {
  color: #fff !important;
}
.site-footer a:hover {
  color: var(--gold) !important;
}
.footer-cost-value {
  color: var(--gold) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .civic-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .civic-cards {
    grid-template-columns: 1fr;
  }
  .civic-card {
    min-height: 140px;
  }
  .civic-boat {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .civic-hero-inner {
    padding-top: 36px;
  }
  .civic-sun {
    width: 360px;
    height: 360px;
    right: -140px;
    bottom: -120px;
  }
  .header-inner {
    flex-wrap: wrap !important;
    column-gap: 10px;
    row-gap: 0;
  }
  .header-inner > .logo-container {
    flex: 1 1 0;
    min-width: 0;
  }
  .main-nav {
    flex: 0 0 100%;
  }
  .brand-tag {
    display: none;
  }
  .brand-mark,
  .brand-mark svg {
    width: 38px;
    height: 38px;
  }
  .brand-name {
    font-size: 1.125rem;
  }
  .header-actions {
    order: 2;
    margin-left: auto;
  }
  .mobile-menu-toggle {
    order: 3;
  }
  .civic-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .civic-card,
  .civic-btn {
    transition: none;
  }
  .civic-card:hover,
  .civic-btn:hover {
    transform: none;
  }
}
body {
  overflow-x: clip;
}
.civic-card h3,
.civic-boat h3 {
  letter-spacing: -0.01em !important;
}
.civic-card h3 {
  color: #fff !important;
}
@media (max-width: 640px) {
  .civic-hero h1 {
    font-size: clamp(1.75rem, 8.4vw, 2.5rem);
    letter-spacing: -0.03em;
  }
  .civic-hero-place {
    font-size: 0.6875rem;
  }
}

/* ---------- Finish-review fixes ---------- */
.civic-sun {
  opacity: 1 !important;
}
.civic-sun g {
  fill-opacity: 0.3;
}
/* Getting There row on the Visit Sibale grid */
.home-service-card--all {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
}
.home-service-card--all h3,
.home-service-card--all p,
.home-service-card--all .home-service-arrow {
  color: #fff !important;
}
.home-service-card--all .home-service-icon {
  background: var(--gold) !important;
  color: var(--navy-ink) !important;
}
.history-section h2 > i {
  display: none !important;
}
/* lower sections carry the family: gold rule under section heads, navy figures */
.home-section-header h2,
.home-stats-v2-header h2 {
  position: relative;
  padding-bottom: 12px;
}
.home-section-header h2::after,
.home-stats-v2-header h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--gold);
}
.home-leadership-section {
  background: var(--navy) !important;
}
.home-leadership-section h2 {
  color: #fff !important;
}
.home-leadership-section .home-section-link,
.home-leadership-section .data-source,
.home-leadership-section .data-source * {
  color: rgba(255, 255, 255, 0.85) !important;
}
@media (max-width: 480px) {
  .civic-hero-inner,
  .civic-services .container {
    padding-inline: 16px;
  }
}
.civic-sun g {
  fill-opacity: 0.6;
}

/* ---------- Budget by barangay ---------- */
.brgy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.brgy-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: 14px;
  padding: 18px 20px 16px;
}
.brgy-card h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  color: var(--navy);
  margin: 0 0 2px;
}
.brgy-pop {
  font-weight: 700;
  color: var(--navy-ink);
  margin: 0 0 12px;
}
.brgy-pop span {
  font-weight: 500;
  color: var(--muted);
}
.brgy-card dl {
  margin: 0;
  display: grid;
  gap: 8px;
}
.brgy-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}
.brgy-card dt {
  font-size: 0.875rem;
  color: var(--muted);
}
.brgy-card dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-ink);
  text-align: right;
}
.brgy-card dd.brgy-pending {
  color: #9a5b00;
}
.brgy-notes {
  margin-top: 22px;
  max-width: 72ch;
  color: var(--navy-ink);
}
.brgy-notes p {
  margin: 0 0 10px;
}

.brgy-card dd { max-width: 60%; }

/* ---------- Projects ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin: 8px 0 20px;
}
.proj-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.proj-card p { margin: 0; color: var(--navy-ink); }
.proj-head { display: flex; gap: 10px; align-items: flex-start; }
.proj-head i {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold);
  font-size: 1.05rem;
}
.proj-head h3 { font-size: 1.0625rem; margin: 0; color: var(--navy); line-height: 1.3; }
.proj-amount { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--navy) !important; }
.proj-status {
  margin-top: auto !important;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-green) !important;
}

/* ---------- Pista sa Sibale ---------- */
.fiesta-list {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.fiesta-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.fiesta-list time {
  flex: none;
  min-width: 58px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  background: var(--gold);
  border-radius: 8px;
  padding: 4px 6px;
}
.fiesta-list li:last-child { background: var(--navy); border-color: var(--navy); color: #fff; }
.fiesta-list span { line-height: 1.4; }
.proj-amount--none { font-family: inherit; font-size: 0.875rem; font-weight: 700; color: #9a5b00 !important; }

/* ---------- Barangays page ---------- */
.brgy-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.brgy-jump a {
  padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--navy);
  color: var(--navy); font-weight: 700; font-size: 0.875rem; text-decoration: none; background: #fff;
}
.brgy-jump a:hover, .brgy-jump a:focus-visible { background: var(--navy); color: #fff; }
.brgy-grid--full { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.brgy-card--full { scroll-margin-top: 110px; }
.brgy-alt { font-family: var(--font-body, inherit); font-weight: 500; font-size: 0.875rem; color: var(--muted); }
.brgy-card h4 { margin: 14px 0 4px; font-size: 0.8125rem; color: var(--muted); font-weight: 700; }
.brgy-card ul { margin: 0; padding-left: 18px; color: var(--navy-ink); font-size: 0.9375rem; }
.brgy-card li { margin: 2px 0; }
.brgy-date { color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }

/* ---------- Visit page ---------- */
.advisory-box {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff8db; border: 1px solid #f0d35a; border-left: 5px solid var(--gold);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 36px; color: #3d3000;
}
.advisory-box > i { font-size: 1.5rem; color: #9a7400; }
.advisory-box p { margin: 4px 0 0; }
.advisory-links a { font-weight: 700; }
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.dest-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.dest-card h3 { font-size: 1.0625rem; color: var(--navy); margin: 0 0 4px; }
.dest-card p { margin: 6px 0 0; color: var(--navy-ink); font-size: 0.9375rem; }
.dest-loc {
  display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--c-teal);
  background: #e6f2f9; border-radius: 6px; padding: 2px 8px;
}
.table-wrap { overflow-x: auto; margin: 6px 0 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.civic-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.civic-table th { background: var(--navy); color: #fff; text-align: left; padding: 10px 14px; font-weight: 700; }
.civic-table td { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--navy-ink); vertical-align: top; }
.civic-table tr:nth-child(even) td { background: var(--paper); }
.tips-list { padding-left: 20px; color: var(--navy-ink); }
.tips-list li { margin: 6px 0; }
.stay-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 6px 0 14px; }
.stay-list li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-weight: 600; color: var(--navy); }
.stay-contact { font-weight: 600; color: var(--navy-ink); }

/* Collapsed menu runs up to 1279px: keep the logo left and the menu button right */
@media (max-width: 1279px) {
  .header-inner > .logo-container { flex: 1 1 0; min-width: 0; }
  .main-nav { flex: 0 0 100%; }
}

/* ---------- Logo (Nov 2026 lockup) ---------- */
.brand-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 100%;
}
@media (max-width: 640px) {
  .brand-logo { height: 38px; }
}
@media (max-width: 380px) {
  .brand-logo { height: 32px; }
}
.footer-logo {
  height: auto !important;
  width: 100% !important;
  max-width: 280px !important;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  filter: none !important;
}

/* ---------- 3D map ---------- */
.map-card:hover { transform: none; }
#map-container.map3d,
.map3d {
  height: 440px !important;
  min-height: 440px;
  background: linear-gradient(180deg, #cfe8ff 0%, #e8f3ff 55%, #f3efe3 100%);
  border-radius: 0;
}
.map3d .map-iframe { height: 440px; }
.map3d .map3d-stage { position: absolute !important; inset: 0; width: 100%; height: 100%; }
@media (max-width: 640px) {
  #map-container.map3d, .map3d { height: 360px !important; min-height: 360px; }
  .map3d .map-iframe { height: 360px; }
}
.map3d-pin {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.map3d-pin-label {
  order: -1;
  background: #fff; color: var(--navy);
  font: 700 12px/1 var(--font-body, system-ui, sans-serif);
  padding: 5px 8px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15, 35, 66, 0.25);
  white-space: nowrap;
}
.map3d-pin-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 2.5px solid var(--navy);
  box-shadow: 0 0 0 4px rgba(252, 209, 22, 0.35);
}
.map3d-pin--main .map3d-pin-label { background: var(--navy); color: #fff; }
.map3d-pin:focus-visible .map3d-pin-label { outline: 3px solid var(--gold); outline-offset: 2px; }
.maplibregl-popup-content { border-radius: 12px; font: 14px/1.45 var(--font-body, system-ui, sans-serif); color: var(--navy-ink); padding: 10px 14px; }
.maplibregl-popup-content a { font-weight: 700; color: var(--navy); }
.maplibregl-cooperative-gesture-screen { font: 600 15px/1.4 var(--font-body, system-ui, sans-serif); }
.brgy-map { margin: 8px 0 20px; }

/* ==========================================================================
   Sunrise over Sibale (Nov 2026)
   The logo's sun rising over the island and the sea replaces the generic
   grid-paper hero. Colours stay the logo's: navy, sun gold, sea blue.
   ========================================================================== */
:root {
  --font-display: 'Outfit', 'Archivo', system-ui, sans-serif;
  --font-mono: 'Outfit', 'Archivo', system-ui, sans-serif;
  --sun: #ffc61a;
  --sun-deep: #f59e0b;
  --sea: #1877d2;
  --sea-2: #2f9bea;
  --sea-3: #7cc6ff;
  --sea-deep: #0b3f8f;
}
.civic-boat-time, .home-stat-value, .civic-card-tag, [class*="stat-value"] {
  font-variant-numeric: tabular-nums;
}

/* Sky: deep navy at the top, lighter toward the horizon, warm glow around the sun */
.civic-hero,
.page-header,
.stats-hero,
.trans-hero-v2 {
  background-color: #001a55 !important;
  background-image:
    radial-gradient(420px 260px at 82% calc(100% - 96px), rgba(255, 184, 64, 0.55), rgba(255, 184, 64, 0) 70%),
    linear-gradient(180deg, #00174d 0%, #00226e 48%, #16409f 100%) !important;
  background-size: auto !important;
}

/* The sun sits on the horizon at the right and keeps turning */
.civic-sun,
.page-header .civic-sun,
.stats-hero .civic-sun,
.trans-hero-v2 .civic-sun {
  width: 300px;
  height: 300px;
  right: 6%;
  left: auto;
  bottom: -40px;
  opacity: 1 !important;
  z-index: 0;
}
.civic-sun g { fill-opacity: 1 !important; fill: var(--sun); }
.page-header .civic-sun,
.stats-hero .civic-sun,
.trans-hero-v2 .civic-sun {
  width: 210px;
  height: 210px;
  bottom: -50px;
  right: 5%;
}

/* Horizon: island silhouette in front of the sun, then the sea */
.civic-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 150px;
  pointer-events: none;
  z-index: 0;
}
.civic-island {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(62%, 760px);
  height: 74px;
}
.civic-island path { fill: #0a1f5c; }
.civic-waves {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 100px;
  animation: civic-sea 40s linear infinite;
}
.civic-waves .w1 { fill: var(--sea-deep); }
.civic-waves .w2 { fill: var(--sea); opacity: 0.95; }
.civic-waves .w3 { fill: var(--paper); }
@keyframes civic-sea {
  to { transform: translateX(-50%); }
}
.page-header .civic-horizon,
.stats-hero .civic-horizon,
.trans-hero-v2 .civic-horizon { height: 96px; }
.page-header .civic-island,
.stats-hero .civic-island,
.trans-hero-v2 .civic-island { bottom: 34px; height: 48px; width: min(48%, 560px); }
.page-header .civic-waves,
.stats-hero .civic-waves,
.trans-hero-v2 .civic-waves { height: 62px; }
.page-header,
.stats-hero,
.trans-hero-v2 { padding: 46px 0 104px !important; }

/* Home hero: text on the left, the sunrise scene on the right */
.civic-hero { text-align: left; padding: 0 0 170px; }
.civic-hero-inner { max-width: 1200px; padding-top: 64px; }
.civic-hero h1,
.civic-hero-lead,
.civic-hero-facts,
.civic-hero-actions,
.civic-search,
.civic-popular { max-width: 640px; margin-left: 0; margin-right: 0; justify-content: flex-start; }
.civic-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); letter-spacing: -0.03em; }
.civic-hero h1 .dot-org { color: var(--sun); }
.civic-btn { border-radius: 999px; padding: 13px 26px; }
.civic-btn--gold { background: linear-gradient(180deg, var(--sun) 0%, #ffb21a 100%); }
.civic-search .search-input-wrapper { border-radius: 999px !important; padding-left: 20px; }
.civic-search .search-submit-btn { border-radius: 50% !important; }
@media (max-width: 900px) {
  .civic-hero { padding-bottom: 150px; }
  .civic-sun { width: 220px; height: 220px; right: -20px; bottom: -20px; }
  .civic-island { width: 92%; height: 56px; bottom: 56px; }
  .civic-waves { height: 86px; }
}
@media (max-width: 640px) {
  .civic-hero-inner { padding-top: 40px; }
  .page-header .civic-sun, .stats-hero .civic-sun, .trans-hero-v2 .civic-sun { width: 150px; height: 150px; bottom: -36px; }
}
@media (prefers-reduced-motion: reduce) {
  .civic-waves { animation: none; }
}

/* Barangay ribbon: the island's 9 barangays instead of decorative tiles */
.civic-ribbon { background: var(--paper); padding: 6px 0 22px; }
.civic-ribbon-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.civic-ribbon-title { font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: 1rem; }
.civic-ribbon-list { display: flex; flex-wrap: wrap; gap: 8px; }
.civic-ribbon-list a {
  padding: 6px 14px; border-radius: 999px; background: #fff; border: 1.5px solid #cfe0f5;
  color: var(--sea-deep); font-weight: 700; font-size: 0.875rem; text-decoration: none;
}
.civic-ribbon-list a:hover, .civic-ribbon-list a:focus-visible { background: var(--sea-deep); border-color: var(--sea-deep); color: #fff; }

/* Section heads: a small wave instead of the gold bar */
.home-section-header h2::after,
.home-stats-v2-header h2::after,
.civic-section-head h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 10px;
  border-radius: 0;
  background: var(--sea-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 10'%3E%3Cpath d='M0 5 Q8 0 16 5 T32 5 T48 5 T64 5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 10'%3E%3Cpath d='M0 5 Q8 0 16 5 T32 5 T48 5 T64 5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.civic-section-head h2 { position: relative; padding-bottom: 14px; }

/* Service cards: white, with a wave edge in the card's colour */
.civic-services { background: var(--paper); padding-top: 34px; }
.civic-card {
  background: #fff !important;
  background-image: none !important;
  color: var(--navy-ink);
  border: 1px solid #dfe6f1;
  justify-content: flex-start;
  padding: 26px 22px 22px;
  min-height: 0;
  box-shadow: 0 1px 2px rgba(15, 35, 66, 0.05);
}
.civic-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: var(--card);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0H40V6Q30 10 20 6T0 6Z'/%3E%3C/svg%3E") 0 0 / 40px 10px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0H40V6Q30 10 20 6T0 6Z'/%3E%3C/svg%3E") 0 0 / 40px 10px repeat-x;
}
.civic-card:hover { color: var(--navy-ink); box-shadow: 0 14px 30px -14px rgba(15, 35, 66, 0.35); }
.civic-card-icon {
  position: static;
  margin-bottom: 14px;
  background: var(--card);
  color: #fff;
  border-radius: 50%;
}
.civic-card-tag {
  top: 24px;
  background: #f1f5fb;
  color: var(--muted);
  font-family: var(--font-main);
  font-weight: 700;
}
.civic-card h3 { color: var(--navy-ink) !important; }
.civic-card p { color: var(--muted); }
.civic-card--blue { --card: var(--sea); }
.civic-card--red { --card: #d9622b; }
.civic-card--navy { --card: var(--navy); }
.civic-card--green { --card: #2e8b57; }
.civic-card--teal { --card: #138a9e; }
.civic-card--ink {
  background: var(--navy) !important;
  border-color: var(--navy);
  --card: var(--sun);
}
.civic-card--ink h3 { color: #fff !important; }
.civic-card--ink p { color: rgba(255, 255, 255, 0.82); }
.civic-card--ink .civic-card-icon { color: var(--navy); }
.civic-card--ink .civic-card-tag { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* Boat card: a ferry ticket */
.civic-boat {
  background: #fff;
  border: 1.5px dashed #b9cde8;
  border-radius: 16px;
}
.civic-boat-time { color: var(--sea-deep); font-weight: 800; }

/* Navy bands (leadership, footer) get a calm sea tint */
.home-leadership-section { background: linear-gradient(180deg, #00226e 0%, #0b3f8f 100%) !important; }
.civic-hero-inner { padding-left: 24px !important; padding-right: 24px !important; }
@media (max-width: 480px) { .civic-hero-inner { padding-left: 16px !important; padding-right: 16px !important; } }

/* ==========================================================================
   Refined sunrise (Nov 2026): same composition, more natural rendering.
   Sun: soft glow, graded disc, tapered blurred rays. Ridges: three layers
   with atmospheric depth and a warm rim light from the sun behind. Sea:
   graded bands with light crests and a golden reflection under the sun.
   ========================================================================== */
.civic-hero,
.page-header,
.stats-hero,
.trans-hero-v2 {
  background-image:
    radial-gradient(560px 320px at 82% calc(100% - 92px), rgba(255, 200, 100, 0.5), rgba(255, 172, 72, 0.14) 55%, rgba(255, 160, 60, 0) 78%),
    linear-gradient(180deg, rgba(255, 214, 150, 0) 58%, rgba(140, 175, 235, 0.16) 84%, rgba(255, 210, 150, 0.2) 100%),
    linear-gradient(180deg, #001548 0%, #00226e 40%, #123d9c 76%, #2756ba 100%) !important;
}
.civic-sun { filter: drop-shadow(0 0 24px rgba(255, 200, 90, 0.35)); }
.civic-sun g { fill: none; }

.civic-island path:nth-of-type(1) { fill: url(#ridgeFar); }
.civic-island path:nth-of-type(2) { fill: url(#ridgeMid); }
.civic-island path:nth-of-type(3) { fill: url(#ridgeNear); }
.civic-island path:nth-of-type(4) { fill: url(#ridgeShade); }
.civic-island path:nth-of-type(5) { fill: none; }

.civic-waves .w1 { fill: url(#seaBack); }
.civic-waves .w2 { fill: url(#seaMid); opacity: 1; }

/* golden reflection on the water under the sun */
.civic-glint {
  position: absolute;
  right: calc(6% + 92px);
  bottom: 30px;
  width: 116px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(255, 236, 180, 0.75), rgba(255, 206, 110, 0.32) 55%, rgba(255, 190, 90, 0) 100%);
  mix-blend-mode: screen;
  filter: blur(1.5px);
  animation: civic-glint 6s ease-in-out infinite alternate;
}
@keyframes civic-glint {
  from { opacity: 0.7; transform: scaleX(0.92); }
  to { opacity: 1; transform: scaleX(1.06); }
}
.page-header .civic-glint,
.stats-hero .civic-glint,
.trans-hero-v2 .civic-glint { right: calc(5% + 66px); width: 78px; height: 40px; bottom: 18px; }
@media (max-width: 900px) {
  .civic-hero .civic-glint { right: 56px; width: 90px; height: 48px; bottom: 26px; }
}
@media (max-width: 640px) {
  .page-header .civic-glint, .stats-hero .civic-glint, .trans-hero-v2 .civic-glint { right: calc(5% + 46px); width: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .civic-glint { animation: none; }
}

/* ==========================================================================
   Layered range and golden sun (Nov 2026): five receding blue ridges with mist
   in the valleys and warm rim light, and a low sun with soft light shafts.
   Same place and footprint as the earlier island silhouette.
   ========================================================================== */
.civic-range {
  position: absolute;
  right: 0;
  bottom: 50px;
  width: min(64%, 780px);
  height: 124px;
}
.page-header .civic-range,
.stats-hero .civic-range,
.trans-hero-v2 .civic-range { bottom: 30px; height: 80px; width: min(52%, 600px); }
@media (max-width: 900px) {
  .civic-range { width: 96%; height: 96px; bottom: 50px; }
}
.civic-sun { filter: none; }
.civic-sun .sun-rays { mix-blend-mode: screen; }
.civic-range {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}

/* Show the whole sun disc just above the ridges (was partly hidden behind them) */
.civic-hero .civic-sun { bottom: 66px; }
.page-header .civic-sun,
.stats-hero .civic-sun,
.trans-hero-v2 .civic-sun { bottom: 36px; }
@media (max-width: 900px) {
  .civic-hero .civic-sun { bottom: 54px; }
}
@media (max-width: 640px) {
  .page-header .civic-sun, .stats-hero .civic-sun, .trans-hero-v2 .civic-sun { bottom: 56px; }
}
@media (max-width: 640px) {
  .page-header, .stats-hero, .trans-hero-v2 { padding-bottom: 136px !important; }
}
@media (max-width: 640px) {
  .page-header .civic-sun, .stats-hero .civic-sun, .trans-hero-v2 .civic-sun { width: 124px; height: 124px; bottom: 58px; right: 4%; }
  .page-header .civic-glint, .stats-hero .civic-glint, .trans-hero-v2 .civic-glint { right: calc(4% + 36px); width: 52px; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .page-header .page-header-desc, .page-header p { max-width: 440px; margin-left: auto; margin-right: auto; }
}
.page-header h1, .page-header p, .page-header-desc { text-shadow: 0 1px 12px rgba(0, 21, 72, 0.55); }

/* ==========================================================================
   BetterAlcala reference (Nov 2026)
   1) Hotline numbers run edge to edge instead of inside the centred container.
   2) Hero laid out like BetterAlcala's: centred headline, lead, facts, buttons
      and search. Our sun and mountain illustration stays.
   ========================================================================== */
.hotline-bar > .container { max-width: none !important; width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
.hotline-inner, .hotline-items { max-width: none !important; width: 100% !important; margin: 0 !important; }

.civic-hero { text-align: center; }
.civic-hero-inner { max-width: 960px; margin-left: auto; margin-right: auto; padding-top: 56px; }
.civic-hero h1 {
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.civic-hero h1,
.civic-hero-lead,
.civic-hero-facts,
.civic-hero-actions,
.civic-search,
.civic-popular { margin-left: auto !important; margin-right: auto !important; justify-content: center !important; }
.civic-hero-lead { max-width: 620px; font-size: 1.1875rem; }
.civic-hero-actions .civic-btn { border-radius: 6px; padding: 13px 28px; }
.civic-search { max-width: 720px; margin-top: 48px !important; }
.civic-search .search-input-wrapper { border-radius: 10px !important; }
.civic-search .search-submit-btn { border-radius: 8px !important; }
.civic-hero h1 { max-width: none !important; font-size: clamp(2.5rem, 6.4vw, 5.5rem); }
.civic-hero-facts, .civic-hero-actions, .civic-popular { max-width: none !important; }

/* ==========================================================================
   Home hero matched to BetterAlcala's (Nov 2026), drawn in our own code:
   navy field with a top glow and a faint 44px grid, a large faint gold
   sunburst on the right, centred text, square-cornered buttons, centred
   search, and the coloured tile band underneath. Inner page headers keep
   the sun and mountain illustration.
   ========================================================================== */
.civic-hero {
  background-color: #00226e !important;
  background-image:
    radial-gradient(80% 60% at 50% 0, rgba(11, 79, 209, 0.45), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) !important;
  background-size: auto, 44px 44px, 44px 44px !important;
  min-height: 644px;
  padding: 41px 0 !important;
  display: flex;
  align-items: center;
}
.civic-hero > .container { width: 100%; }
.hero-burst {
  position: absolute;
  width: 993px;
  height: 993px;
  left: calc(50% - 127px);
  top: 50%;
  transform: translateY(-50%);
  color: rgba(252, 209, 22, 0.18);
  pointer-events: none;
  z-index: 0;
}
.civic-hero-inner { position: relative; z-index: 1; padding-top: 0 !important; padding-bottom: 0 !important; }
.civic-hero h1 {
  font-family: 'Inter Tight', var(--font-display);
  font-size: clamp(2.75rem, 7.1vw, 6rem) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.025em !important;
  margin-bottom: 18px !important;
}
.civic-hero-lead {
  font-size: 1.3rem !important;
  line-height: 1.6 !important;
  color: rgba(255, 255, 255, 0.86) !important;
  max-width: 572px !important;
}
.civic-hero-facts { font-size: 1rem !important; font-weight: 600 !important; margin-top: 22px !important; }
.civic-hero-actions { margin-top: 28px !important; gap: 12px !important; }
.civic-hero-actions .civic-btn {
  min-width: 250px;
  justify-content: center;
  padding: 12px 26px !important;
  border-radius: 2px !important;
  font-size: 0.95rem;
  font-weight: 700;
}
.civic-btn--gold { background: #fcd116 !important; border: 1px solid #fcd116; color: #0a0a0a !important; }
.civic-btn--gold:hover { background: #ffdc3d !important; }
.civic-btn--ghost { background: rgba(255, 255, 255, 0.18) !important; border: 1px solid rgba(255, 255, 255, 0.85) !important; color: #fff !important; }
.civic-search { max-width: 604px !important; margin-top: 56px !important; }
.civic-search .search-input-wrapper { border-radius: 10px !important; padding: 6px 6px 6px 14px !important; }
.civic-search .search-submit-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 8px !important;
  background: #0038a8 !important;
}
.civic-search-emblem { width: 24px; height: 24px; flex: none; }
.civic-popular { margin-top: 14px !important; }
.civic-hero .hero-credit { display: none; }
/* tile band directly under the hero */
.civic-tiles { display: flex !important; }
@media (max-width: 760px) {
  .civic-hero { min-height: 0; padding: 40px 0 56px !important; }
  .hero-burst { width: 640px; height: 640px; left: 45%; top: 62%; }
  .civic-hero-actions .civic-btn { min-width: 0; width: 100%; max-width: 320px; }
}
@media (max-width: 760px) {
  .civic-hero h1 { font-size: clamp(1.45rem, 8.4vw, 3.6rem) !important; }
}

/* Hero sunburst, refined: 24 alternating long and short rays that fade outward,
   a soft glow, a thin ring and a graded disc. The rays turn slowly; the disc stays. */
.hero-burst { color: inherit; overflow: visible; }
.hero-burst-rays {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: hero-burst-spin 120s linear infinite;
}
@keyframes hero-burst-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hero-burst-rays { animation: none; }
}
@media (max-width: 760px) {
  .hero-burst { width: 520px; height: 520px; left: calc(88% - 260px); top: 74%; }
}
@media (max-width: 760px) {
  .civic-hero { padding-bottom: 150px !important; }
  .hero-burst { width: 540px; height: 540px; left: calc(78% - 270px); top: calc(100% - 46px); }
}
/* Spin the rays around the sun's own centre (user-space 0,0), not the corner of the drawing */
.hero-burst-rays { transform-box: view-box; transform-origin: 0 0; }
/* Phones: less empty space under the search, sun sits higher behind the shortcuts */
@media (max-width: 760px) {
  .civic-hero { padding-bottom: 64px !important; }
  .hero-burst { width: 480px; height: 480px; left: calc(80% - 240px); top: calc(100% - 110px); }
}

/* Hero sun matched to BetterAlcala's (drawn in our own code): flat faint gold,
   small disc, 8 groups of a long ray between two shorter ones, the whole sun
   turning once every two minutes. Replaces the glow/ring version. */
.hero-burst {
  width: 1000px;
  height: 1000px;
  left: calc(50% - 131px);
  top: 50%;
  color: rgba(252, 209, 22, 0.18);
  transform: translateY(-50%);
  animation: hero-sun-turn 120s linear infinite;
}
@keyframes hero-sun-turn {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}
.hero-burst-rays { animation: none; }
@media (max-width: 760px) {
  .civic-hero { padding-bottom: 56px !important; }
  .hero-burst { width: 478px; height: 478px; left: calc(65% - 239px); top: 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-burst { animation: none; }
}

/* ==========================================================================
   Hero pennants (our own take on BetterAlcala's hanging tabs): four coloured
   tabs hanging from the top of the hero with a wavy, sea-like bottom edge and
   the icon in a white circle, then a gold place line.
   ========================================================================== */
.civic-hero { align-items: flex-start; padding-top: 0 !important; }
.hero-pennants {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 26px;
}
.hero-pennant {
  --pc: #2b6fd6;
  position: relative;
  width: 132px;
  padding: 16px 8px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 88%, #000) 0%, var(--pc) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 14px 26px -16px rgba(0, 0, 0, 0.6);
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 12px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 12' preserveAspectRatio='none'%3E%3Cpath d='M0 0H44V4Q38.5 12 33 4T22 4T11 4T0 4Z'/%3E%3C/svg%3E") bottom / 100% 12px no-repeat;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 12px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 12' preserveAspectRatio='none'%3E%3Cpath d='M0 0H44V4Q38.5 12 33 4T22 4T11 4T0 4Z'/%3E%3C/svg%3E") bottom / 100% 12px no-repeat;
  transition: transform 160ms ease;
}
.hero-pennant:hover, .hero-pennant:focus-visible { transform: translateY(3px); color: #fff; text-decoration: none; }
.hero-pennant-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--pc); font-size: 1.15rem;
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--pc) 25%, #fff);
}
.hero-pennant--sea { --pc: #2b6fd6; }
.hero-pennant--green { --pc: #2e8b57; }
.hero-pennant--coral { --pc: #d9542b; }
.hero-pennant--teal { --pc: #138a9e; }
.hero-place {
  margin: 0 auto 18px !important;
  color: #fcd116;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .hero-pennants { gap: 6px; margin-bottom: 20px; }
  .hero-pennant { width: calc((100% - 18px) / 4); padding: 12px 4px 22px; font-size: 0.62rem; letter-spacing: 0.03em; gap: 7px; }
  .hero-pennant-icon { width: 34px; height: 34px; font-size: 1rem; }
  .hero-place { font-size: 0.68rem; letter-spacing: 0.08em; }
}
@media (max-width: 760px) {
  .hero-pennant { padding-left: 2px; padding-right: 2px; font-size: min(0.62rem, 2.3vw); letter-spacing: 0; }
}

/* Hero: Sibale Island's real outline (OpenStreetMap coastline) in place of the sun,
   same faint gold, turning slowly around its own centre. */
.hero-island { width: 860px; height: 860px; left: calc(50% - 60px); }
@media (max-width: 760px) {
  .hero-island { width: 440px; height: 440px; left: calc(65% - 220px); }
}
/* Island outline: stronger gold so it reads, with a brighter coastline edge */
.hero-island { color: rgba(252, 209, 22, 0.34); }
.hero-island path { stroke: rgba(255, 224, 102, 0.7); stroke-width: 6; stroke-linejoin: round; }
/* Island outline: between the two earlier strengths, and smaller on desktop */
.hero-island { color: rgba(252, 209, 22, 0.24); width: 620px; height: 620px; left: calc(50% + 90px); }
.hero-island path { stroke: rgba(255, 224, 102, 0.45); stroke-width: 5; }
@media (max-width: 760px) {
  .hero-island { width: 420px; height: 420px; left: calc(66% - 210px); }
}

/* ==========================================================================
   Sea band under the hero (replaces the coloured icon tiles, which looked like
   BetterAlcala's): two layers of waves drifting in opposite directions over
   deep water, with a thin gold sun-glint line. Our own wave motif.
   ========================================================================== */
.civic-tiles { display: none !important; }
.civic-tide {
  position: relative;
  height: 46px;
  overflow: hidden;
  background: linear-gradient(180deg, #00226e 0%, #0b3f8f 100%);
}
.tide {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background-repeat: repeat-x;
  animation: tide-drift 22s linear infinite;
}
.tide--back {
  height: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 34' preserveAspectRatio='none'%3E%3Cpath d='M0 14 Q40 2 80 14 T160 14 V34 H0Z' fill='%231877d2'/%3E%3C/svg%3E");
  background-size: 160px 34px;
  opacity: 0.9;
}
.tide--front {
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 10 Q30 0 60 10 T120 10 V24 H0Z' fill='%232f9bea'/%3E%3Cpath d='M0 10 Q30 0 60 10 T120 10' fill='none' stroke='%23cfe8ff' stroke-opacity='.7' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 120px 24px;
  animation-duration: 14s;
  animation-direction: reverse;
}
@keyframes tide-drift { to { background-position-x: 480px; } }
.tide-glint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #fcd116 35%, #ffe680 50%, #fcd116 65%, transparent 100%);
  background-size: 200% 100%;
  animation: tide-glint 9s ease-in-out infinite alternate;
  opacity: 0.85;
}
@keyframes tide-glint { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) {
  .tide, .tide-glint { animation: none; }
}

/* ==========================================================================
   Inner page headers in the home hero's style: navy with a top glow and the
   faint 44px grid, and the rotating outline of Sibale on the right (replaces
   the mountain-and-sun scene).
   ========================================================================== */
.page-header,
.stats-hero,
.trans-hero-v2 {
  background-color: #00226e !important;
  background-image:
    radial-gradient(80% 60% at 50% 0, rgba(11, 79, 209, 0.45), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) !important;
  background-size: auto, 44px 44px, 44px 44px !important;
  background-position: 0 0 !important;
  padding: 64px 0 !important;
  overflow: hidden;
}
.page-island {
  position: absolute;
  width: 420px;
  height: 420px;
  right: calc(50% - 600px);
  top: 50%;
  color: rgba(252, 209, 22, 0.24);
  pointer-events: none;
  z-index: 0;
  transform: translateY(-50%);
  animation: hero-sun-turn 120s linear infinite;
}
.page-island path { stroke: rgba(255, 224, 102, 0.45); stroke-width: 5; stroke-linejoin: round; }
@media (max-width: 1260px) { .page-island { right: -60px; } }
@media (max-width: 760px) {
  .page-header, .stats-hero, .trans-hero-v2 { padding: 48px 0 !important; }
  .page-island { width: 300px; height: 300px; right: -90px; }
}
@media (prefers-reduced-motion: reduce) { .page-island { animation: none; } }


/* Live PIO Facebook timeline (fb-feed.js live-only mode) */
.fb-live { margin-top: var(--spacing-xl, 2.5rem); max-width: 560px; }
.fb-live h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.fb-live-note { margin: 0 0 1rem; color: var(--text-secondary, #4a5568); font-size: .92rem; }
.fb-live-feed { position: relative; min-height: 64px; }
.fb-live-feed .fb-live-frame { display: block; width: 100%; max-width: 500px; border: 0; }
.fb-live-fallback { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; border: 1px solid rgba(15,39,96,.16); background: #fff; color: #0f2760; font-weight: 600; text-decoration: none; }
.fb-live-fallback:hover, .fb-live-fallback:focus-visible { border-color: #0f2760; }
.fb-live-fallback .bi-facebook { font-size: 1.4rem; color: #1877f2; }
.fb-live-fallback .bi-box-arrow-up-right { margin-left: auto; opacity: .6; }
