/* Homepage v2 — new sections. Same language as the current homepage: Meycauayan green, white cards with soft shadows,
   centred bold section titles (the theme's .section-title), pale #ECECF2 / #F5F5F5 bands. Everything is prefixed hv2-. */
:root {
  --hv2-green: #0D7535;
  --hv2-green-dark: #0A5D2A;
  --hv2-blue: #004F6E;
  --hv2-tint: #F5F5F5;
  --hv2-band: #ECECF2;
  --hv2-line: #E5E7EB;
  --hv2-text: #111827;
  --hv2-muted: #6B7280;
}

/* ── Layout helpers ───────────────────────────────────────────── */
.hv2-section { padding: 64px 0; }
.hv2-section--tint { background: var(--hv2-tint); }
.hv2-head { max-width: 780px; margin: 0 auto 32px; }
.hv2-head .section-title { margin-bottom: 8px; }
.hv2-grid { display: grid; gap: 16px; }
.hv2-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hv2-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hv2-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hv2-btn { display: inline-flex; align-items: center; height: 42px; padding: 0 22px; border-radius: 8px; background: var(--hv2-green); color: #fff !important; font-size: 15px; font-weight: 700; text-decoration: none !important; transition: background .2s; }
.hv2-btn:hover { background: var(--hv2-green-dark); }

/* ── Cards ────────────────────────────────────────────────────── */
.hv2-card { display: flex; align-items: flex-start; gap: 14px; padding: 20px; background: #fff; border-radius: 12px; box-shadow: 0 0 4px rgba(0, 0, 0, .25); color: var(--hv2-text) !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.hv2-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.hv2-icon { flex: 0 0 52px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: #e8f5ed; color: var(--hv2-green); }
.hv2-service-body { display: block; min-width: 0; }
.hv2-service-body strong { display: block; font-size: 16px; line-height: 1.3; letter-spacing: -.2px; }
.hv2-service-body small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--hv2-muted); }

/* ── Emergency band ───────────────────────────────────────────── */
.hv2-hotlines { background: linear-gradient(100deg, var(--hv2-green-dark) 0%, var(--hv2-green) 60%, #1a8c47 100%); color: #fff; }
.hv2-hotlines-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 22px 0; }
.hv2-hotlines-lead { display: flex; align-items: center; gap: 14px; }
.hv2-hotlines-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.hv2-hotlines-lead strong { display: block; font-size: 18px; line-height: 1.2; }
.hv2-hotlines-lead small { display: block; font-size: 13px; opacity: .85; line-height: 1.4; }
.hv2-911 { margin-left: 8px; display: inline-flex; align-items: center; height: 44px; padding: 0 24px; border-radius: 999px; background: #fff; color: var(--hv2-green-dark) !important; font-size: 18px; font-weight: 800; letter-spacing: .3px; text-decoration: none !important; }
.hv2-911:hover { background: #f0faf4; }
.hv2-hotline-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hv2-hotline-list a { display: flex; flex-direction: column; min-width: 140px; padding: 8px 16px; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #fff !important; text-decoration: none !important; line-height: 1.3; transition: background .2s; }
.hv2-hotline-list a:hover { background: rgba(255, 255, 255, .26); }
.hv2-hotline-list span { font-size: 12px; opacity: .85; }
.hv2-hotline-list strong { font-size: 15px; }

/* ── At a glance ──────────────────────────────────────────────── */
.hv2-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.hv2-tile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 16px; background: #fff; border-radius: 12px; box-shadow: 0 0 4px rgba(0, 0, 0, .25); }
.hv2-tile-value { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -1px; color: var(--hv2-green); }
.hv2-tile-label { margin-top: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--hv2-text); }
.hv2-tile small { margin-top: 4px; font-size: 12.5px; color: var(--hv2-muted); }

/* ── Elected officials (swipeable row, no script needed) ──────── */
.hv2-row { display: flex; gap: 16px; overflow-x: auto; padding: 6px 4px 18px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.hv2-person { flex: 0 0 210px; scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 4px rgba(0, 0, 0, .25); color: var(--hv2-text) !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.hv2-person:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.hv2-person-photo { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: #e8f5ed; color: var(--hv2-green); overflow: hidden; }
.hv2-person-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hv2-person-body { display: block; padding: 12px 14px 14px; }
.hv2-person-body strong { display: block; font-size: 15px; line-height: 1.3; }
.hv2-person-body small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--hv2-muted); }

/* ── Panels and lists (ordinances, offices, barangays) ────────── */
.hv2-panel { background: #fff; border-radius: 12px; box-shadow: 0 0 4px rgba(0, 0, 0, .25); padding: 22px 22px 14px; }
.hv2-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--hv2-green); }
.hv2-panel-head h4 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.4px; line-height: 1.2; }
.hv2-panel-head a { font-size: 13px; font-weight: 600; color: var(--hv2-green) !important; text-decoration: none !important; white-space: nowrap; }
.hv2-panel-head a:hover { text-decoration: underline !important; }
.hv2-list { margin: 0; padding: 0; list-style: none; }
.hv2-list li + li { border-top: 1px solid #f1f5f9; }
.hv2-list a { display: flex; align-items: center; gap: 12px; padding: 10px 2px; color: var(--hv2-text) !important; text-decoration: none !important; }
.hv2-list a:hover b { color: var(--hv2-green); }
.hv2-list-icon { flex: 0 0 34px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #e8f5ed; color: var(--hv2-green); }
.hv2-list-body { display: block; min-width: 0; flex: 1; }
.hv2-list-body b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.hv2-list-body small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--hv2-muted); }
.hv2-list--plain a { padding: 9px 2px; }
.hv2-code { flex: 0 0 auto; padding: 2px 9px; border-radius: 999px; background: #e8f5ed; color: var(--hv2-green-dark); font-size: 11.5px; font-weight: 700; }
.hv2-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.hv2-chip { padding: 6px 14px; border-radius: 999px; border: 1px solid #cfe9d9; background: #f6fbf8; color: var(--hv2-green-dark) !important; font-size: 13.5px; font-weight: 600; text-decoration: none !important; transition: background .2s, color .2s; }
.hv2-chip:hover { background: var(--hv2-green); border-color: var(--hv2-green); color: #fff !important; }

/* ── Promo banners ────────────────────────────────────────────── */
.hv2-promos-section { padding: 48px 0; }
.hv2-promo { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 230px; padding: 26px; border-radius: 14px; color: #fff !important; text-decoration: none !important; overflow: hidden; box-shadow: 0 0 4px rgba(0, 0, 0, .25); transition: transform .2s, box-shadow .2s; }
.hv2-promo::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.hv2-promo:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }
.hv2-promo--green { background: linear-gradient(135deg, #0A5D2A, #17944a); }
.hv2-promo--blue { background: linear-gradient(135deg, #003a52, #0b7aa0); }
.hv2-promo--gold { background: linear-gradient(135deg, #8f5320, #d9993f); }
.hv2-promo-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: .85; }
.hv2-promo strong { font-size: 26px; line-height: 1.15; letter-spacing: -.6px; }
.hv2-promo > span:not(.hv2-promo-kicker):not(.hv2-promo-btn) { font-size: 14.5px; line-height: 1.5; opacity: .95; max-width: 34ch; }
.hv2-promo-btn { margin-top: auto; align-self: flex-start; padding: 8px 16px; border-radius: 999px; background: #fff; color: #111827; font-size: 13.5px; font-weight: 700; z-index: 1; }

/* ── Discover Meycauayan ──────────────────────────────────────── */
.hv2-place { position: relative; display: flex; align-items: flex-end; aspect-ratio: 16 / 10; padding: 18px; border-radius: 12px; overflow: hidden; background-size: cover; background-position: center; text-decoration: none !important; box-shadow: 0 0 4px rgba(0, 0, 0, .25); transition: transform .2s, box-shadow .2s; }
.hv2-place::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .05) 65%); }
.hv2-place--0:not([style]) { background: linear-gradient(135deg, #0A5D2A, #2aa35c); }
.hv2-place--1:not([style]) { background: linear-gradient(135deg, #003a52, #1a8db5); }
.hv2-place--2:not([style]) { background: linear-gradient(135deg, #8f5320, #e0a548); }
.hv2-place:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }
.hv2-place-title { position: relative; z-index: 1; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -.3px; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1199px) { .hv2-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991px) {
  .hv2-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv2-grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .hv2-section { padding: 30px 0; }
  .hv2-grid--4, .hv2-grid--3 { grid-template-columns: 1fr; }
  .hv2-hotlines-inner { padding: 18px 0; }
  .hv2-hotlines-lead { flex-wrap: wrap; }
  .hv2-911 { margin-left: 0; }
  .hv2-hotline-list a { min-width: 0; flex: 1 1 140px; }
  .hv2-person { flex-basis: 170px; }
  .hv2-promo { min-height: 200px; padding: 22px; }
}

/* The theme's body weight is 300, so "bold" only reaches 400 — set the weights explicitly. */
.hv2-service-body strong, .hv2-hotlines-lead strong, .hv2-hotline-list strong, .hv2-person-body strong, .hv2-promo strong, .hv2-list-body b { font-weight: 700; }
.hv2-hotlines-lead small, .hv2-service-body small, .hv2-person-body small, .hv2-list-body small, .hv2-tile small { font-weight: 400; }
.hv2-tile-unit { margin-left: 6px; font-size: .42em; font-weight: 700; letter-spacing: 0; color: var(--hv2-text); }
.hv2-tile-value { white-space: nowrap; }

/* Mayor's welcome */
.hv2-mayor-sign { margin-top: 20px; line-height: 1.5; }
.hv2-mayor-sign span { color: var(--hv2-green-dark); }
.hv2-mayor-vm { margin-top: 40px; }
.hv2-vm { background: var(--hv2-tint); border-left: 4px solid var(--hv2-green); border-radius: 12px; padding: 22px 24px; }
.hv2-vm h4 { margin: 0 0 8px; font-weight: 700; color: var(--hv2-green-dark); }
.hv2-vm p { margin: 0; line-height: 1.6; }
.hv2-mayor-sub { margin: 40px 0 16px; font-weight: 700; color: var(--hv2-green-dark); }
.hv2-priority { padding: 18px 20px; }

/* Emergency contacts */
.hv2-emerg-box { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 4px rgba(0, 0, 0, .25); }
.hv2-emerg-head { display: flex; align-items: center; gap: 18px; padding: 24px 32px; color: #fff; background: linear-gradient(100deg, var(--hv2-green-dark) 0%, var(--hv2-green) 70%, #1a8c47 100%); }
.hv2-emerg-icon { flex: 0 0 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .2); border: 2px solid rgba(255, 255, 255, .4); }
.hv2-emerg-title { flex: 1; min-width: 0; }
.hv2-emerg-title h3 { margin: 0 0 4px; font-size: 28px; font-weight: 700; line-height: 1.15; color: #fff; }
.hv2-emerg-title p { margin: 0; font-size: 14px; line-height: 1.4; opacity: .92; }
.hv2-emerg-pill { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; background: #fff; color: var(--hv2-green-dark) !important; font-size: 15px; font-weight: 700; text-decoration: none !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); white-space: nowrap; }
.hv2-emerg-body { padding: 28px 32px 32px; }
.hv2-emerg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hv2-emerg-grid--1, .hv2-emerg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hv2-emerg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hv2-emerg-grid--5, .hv2-emerg-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hv2-emerg-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 18px 20px; border: 1px solid #cfe8d8; border-radius: 12px; background: #fff; }
.hv2-emerg-card-icon { width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; border-radius: 50%; background: #e8f5ed; color: var(--hv2-green); }
.hv2-emerg-card h4 { margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--hv2-green-dark); }
.hv2-emerg-desc { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: #555; }
.hv2-emerg-tag { margin-top: auto; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #777; }
.hv2-emerg-numbers { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 16px; }
.hv2-emerg-numbers a { font-size: 16px; font-weight: 700; line-height: 1.6; color: var(--hv2-green-dark) !important; text-decoration: none !important; }
.hv2-emerg-numbers a:hover { text-decoration: underline !important; }
.hv2-emerg-call { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 9px 14px; border: 2px solid var(--hv2-green); border-radius: 8px; background: #fff; color: var(--hv2-green-dark) !important; font-size: 14px; font-weight: 700; text-decoration: none !important; transition: background .2s, color .2s; }
.hv2-emerg-call:hover { background: var(--hv2-green); color: #fff !important; }
.hv2-emerg-reminder { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 16px 22px; border: 1px solid #cfe8d8; border-radius: 12px; background: #f1f9f4; }
.hv2-emerg-reminder-icon { flex: 0 0 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--hv2-green); color: #fff; }
.hv2-emerg-reminder strong { flex: 0 0 auto; padding-right: 16px; border-right: 1px solid #b9d9c5; font-size: 15px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--hv2-green-dark); }
.hv2-emerg-reminder p { margin: 0; font-size: 13px; line-height: 1.5; color: #444; }
@media (max-width: 1199px) { .hv2-emerg-grid, .hv2-emerg-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .hv2-emerg-head { flex-wrap: wrap; padding: 20px; }
  .hv2-emerg-title h3 { font-size: 22px; }
  .hv2-emerg-pill { width: 100%; justify-content: center; }
  .hv2-emerg-body { padding: 20px; }
  .hv2-emerg-grid, .hv2-emerg-grid--3 { grid-template-columns: 1fr; }
  .hv2-emerg-reminder { flex-wrap: wrap; }
  .hv2-emerg-reminder strong { border-right: 0; padding-right: 0; }
}

/* Emergency contacts: gold accents + compact cards (later rules override the first pass above) */
.hv2-emerg-head { position: relative; padding: 18px 28px; background: linear-gradient(100deg, var(--hv2-green-dark) 0%, var(--hv2-green) 62%, #1a8c47 100%); }
.hv2-emerg-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #8f5320, #f3d27a 35%, #d9993f 65%, #8f5320); }
.hv2-emerg-icon { flex-basis: 52px; height: 52px; background: linear-gradient(135deg, #f3d27a, #d9993f); border: 0; color: #5a3410; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.hv2-emerg-title h3 { font-size: 24px; margin-bottom: 2px; }
.hv2-emerg-title p { font-size: 13px; }
.hv2-emerg-pill { padding: 9px 18px; font-size: 14px; background: linear-gradient(135deg, #f8e3a1, #e2a94a); color: #4a2a0a !important; }
.hv2-emerg-body { padding: 20px 28px 24px; }
.hv2-emerg-grid { gap: 14px; }
.hv2-emerg-card { position: relative; padding: 16px 14px 14px; border-color: #e6d4a8; overflow: hidden; }
.hv2-emerg-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #8f5320, #f3d27a 45%, #d9993f); }
.hv2-emerg-card-icon { width: 52px; height: 52px; margin-bottom: 10px; background: linear-gradient(135deg, #fdf3d3, #f3d27a); color: #8f5320; }
.hv2-emerg-card-icon svg { width: 24px; height: 24px; }
.hv2-emerg-card h4 { margin-bottom: 4px; font-size: 15px; }
.hv2-emerg-desc { margin-bottom: 10px; font-size: 12px; line-height: 1.4; }
.hv2-emerg-tag { color: #8f5320; font-size: 10px; }
.hv2-emerg-numbers { margin: 2px 0 10px; gap: 0; }
.hv2-emerg-numbers a { font-size: 14px; line-height: 1.5; }
.hv2-emerg-call { padding: 6px 12px; border-color: #d9993f; font-size: 13px; }
.hv2-emerg-call:hover { background: linear-gradient(135deg, #f3d27a, #d9993f); color: #4a2a0a !important; }
.hv2-emerg-reminder { margin-top: 16px; padding: 12px 18px; border-color: #e6d4a8; background: linear-gradient(100deg, #fdf6e0, #f1f9f4 60%); }
.hv2-emerg-reminder-icon { flex-basis: 40px; height: 40px; background: linear-gradient(135deg, #f3d27a, #d9993f); color: #5a3410; }
.hv2-emerg-reminder strong { font-size: 13px; }
.hv2-emerg-reminder p { font-size: 12px; }
@media (max-width: 767px) { .hv2-emerg-head { padding: 16px; } .hv2-emerg-body { padding: 16px; } }

/* Emergency contacts: card hover, no card top bar */
.hv2-emerg-card::before { content: none; }
.hv2-emerg-card { transition: transform .25s ease, box-shadow .25s ease; }
.hv2-emerg-card:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(0, 0, 0, .18); }
.hv2-emerg-card-icon { transition: transform .35s ease, box-shadow .25s ease; }
.hv2-emerg-card:hover .hv2-emerg-card-icon { transform: scale(1.12) rotate(-6deg); box-shadow: 0 4px 12px rgba(217, 153, 63, .55); }
.hv2-emerg-card:hover .hv2-emerg-call { background: linear-gradient(135deg, #f3d27a, #d9993f); color: #4a2a0a !important; }
@media (prefers-reduced-motion: reduce) { .hv2-emerg-card, .hv2-emerg-card-icon { transition: none; } .hv2-emerg-card:hover, .hv2-emerg-card:hover .hv2-emerg-card-icon { transform: none; } }

/* Emergency contacts: card carousel */
.hv2-emerg-carousel { position: relative; }
.hv2-emerg-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 10px; margin: -6px -2px -10px; }
.hv2-emerg-track::-webkit-scrollbar { display: none; }
.hv2-emerg-track > .hv2-emerg-card { flex: 0 0 calc((100% - 3 * 14px) / 4); scroll-snap-align: start; }
.hv2-emerg-arrow { position: absolute; top: 50%; z-index: 2; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; margin-top: -19px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(135deg, #f3d27a, #d9993f); color: #4a2a0a; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); cursor: pointer; transition: transform .2s, opacity .2s; }
.hv2-emerg-arrow[hidden] { display: none; }
.hv2-emerg-arrow:hover:not(:disabled) { transform: scale(1.1); }
.hv2-emerg-arrow:disabled { opacity: .35; cursor: default; }
.hv2-emerg-arrow--prev { left: -18px; }
.hv2-emerg-arrow--next { right: -18px; }
@media (max-width: 1199px) { .hv2-emerg-track > .hv2-emerg-card { flex-basis: calc((100% - 14px) / 2); } }
@media (max-width: 767px) {
  .hv2-emerg-track > .hv2-emerg-card { flex-basis: 86%; }
  .hv2-emerg-arrow--prev { left: -6px; }
  .hv2-emerg-arrow--next { right: -6px; }
}
