/* ============================================================
   Tāmaki Makaurau — Auckland Council redesign concept
   Palette: Waitematā harbour, whenua, pōhutukawa, warm paper.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --harbour-950: #04191f;
  --harbour-900: #06232c;
  --harbour-800: #0a3542;
  --harbour-700: #0e4a5a;
  --harbour-600: #126173;
  --harbour-500: #177e8f;
  --harbour-400: #2e97a6;
  --harbour-300: #79bcc4;
  --harbour-100: #d9ecec;
  --pohu-700: #99291e;
  --pohu-600: #b03024;
  --pohu-500: #c93b2c;
  --pohu-400: #e2543f;
  --pohu-100: #fbe4dd;
  --whenua-700: #2c4630;
  --whenua-600: #3c5a40;
  --whenua-500: #4c7351;
  --whenua-100: #e4ecdd;
  --sun-500: #e8a33d;
  --sun-100: #faeed3;

  --bg: #faf7f0;
  --bg-soft: #f3eee2;
  --surface: #ffffff;
  --surface-2: #f8f5ec;
  --ink: #10221f;
  --ink-2: #37474a;
  --muted: #4c5c60;
  --line: #e2dbc9;
  --line-strong: #cfc5ab;
  --shadow-s: 0 1px 2px rgba(6, 35, 44, .05), 0 12px 32px -16px rgba(6, 35, 44, .14);
  --shadow-m: 0 2px 6px rgba(6, 35, 44, .06), 0 26px 52px -22px rgba(6, 35, 44, .22);
  --shadow-l: 0 4px 14px rgba(6, 35, 44, .08), 0 36px 80px -26px rgba(6, 35, 44, .28);
  --r-s: 12px; --r-m: 20px; --r-l: 30px;
  /* Organic harbour-swell silhouettes used to join bands without hard seams */
  --wave-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V58C160 30 320 78 520 62 720 46 880 8 1080 30c120 13 240 30 360 12v58z'/%3E%3C/svg%3E");
  --wave-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V38c200 36 380-16 580 10s400 42 580 18 220-26 280-12v46z'/%3E%3C/svg%3E");
  --focus: #b03024;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --ease-out: cubic-bezier(.22, .9, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .44, 1);
  --header-h: 72px;
  font-size: 16px;
}
html[data-theme="night"] {
  --bg: #071e26;
  --bg-soft: #092530;
  --surface: #0c2a34;
  --surface-2: #0f3240;
  --ink: #ecf4f2;
  --ink-2: #c3d4d4;
  --muted: #93a9ab;
  --line: #17404c;
  --line-strong: #235762;
  --harbour-100: #123b46;
  --pohu-100: #3a1b16;
  --whenua-100: #16281c;
  --sun-100: #33270f;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, .28), 0 12px 32px -16px rgba(0, 0, 0, .4);
  --shadow-m: 0 2px 6px rgba(0, 0, 0, .3), 0 26px 52px -22px rgba(0, 0, 0, .45);
  --shadow-l: 0 4px 14px rgba(0, 0, 0, .34), 0 36px 80px -26px rgba(0, 0, 0, .5);
  --focus: #ff7a63;
}
html[data-bigtext] { font-size: 18.5px; }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[data-motion="off"] { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease-out), color .4s var(--ease-out);
}
img { max-width: 100%; display: block; }
a { color: var(--harbour-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
html[data-theme="night"] a { color: var(--harbour-300); }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

::selection { background: var(--pohu-500); color: #fff; }

/* Focus */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.search-input:focus-visible, .bin-field input:focus-visible,
.f-input:focus-visible, .f-area:focus-visible { outline: none; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--harbour-900); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--r-s) var(--r-s); transition: top .25s var(--ease-out);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus-visible { top: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 650; font-size: .95rem; letter-spacing: .01em;
  padding: 12px 22px; border-radius: 999px;
  transition: transform .18s var(--ease-spring), box-shadow .2s var(--ease-out), background .2s, color .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--harbour-700); color: #fff; box-shadow: var(--shadow-s); }
.btn-solid:hover { background: var(--harbour-600); transform: translateY(-1px); box-shadow: var(--shadow-m); color: #fff; }
.btn-pohu { background: var(--pohu-500); color: #fff; box-shadow: 0 2px 10px rgba(201, 59, 44, .35); }
.btn-pohu:hover { background: var(--pohu-400); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(201, 59, 44, .4); color: #fff; }
.btn-ghost { background: transparent; border: 1.5px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--harbour-500); color: var(--harbour-600); background: var(--surface); }
.btn-sm { padding: 8px 16px; font-size: .88rem; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  transition: background .2s, transform .18s var(--ease-spring);
}
.icon-btn:hover { background: rgba(18, 97, 115, .1); transform: translateY(-1px); }
.icon-btn:active { transform: scale(.94); }

/* ---------- Utility bar ---------- */
.utilbar {
  position: relative; z-index: 120;
  background: var(--harbour-950); color: #cfe3e4;
  font-size: .82rem;
}
.utilbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 12px; }
.utilbar-reo { margin: 0; color: #9fc0c3; letter-spacing: .02em; }
.utilbar-tools { display: flex; align-items: center; gap: 4px; }
.util-weather { color: #eaf3f2; font-weight: 600; margin-right: 8px; display: inline-flex; gap: 6px; align-items: center; }
.util-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: #cfe3e4; padding: 6px 10px; border-radius: 6px;
  transition: background .2s, color .2s;
}
.util-btn:hover, .util-btn[aria-pressed="true"] { background: rgba(255, 255, 255, .12); color: #fff; }
.util-btn .ic { width: 1em; height: 1em; }
.lang-menu {
  position: absolute; right: clamp(16px, 4vw, 40px); top: 100%; z-index: 130;
  background: var(--surface); color: var(--ink);
  border-radius: var(--r-s); box-shadow: var(--shadow-l); padding: 10px; min-width: 220px;
  border: 1px solid var(--line);
}
.lang-note { font-size: .75rem; color: var(--muted); margin: 2px 8px 8px; }
.lang-menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; font-size: .9rem; }
.lang-menu button:hover { background: var(--surface-2); }
#themeToggle .ic-moon { display: none; }
html[data-theme="night"] #themeToggle .ic-sun { display: none; }
html[data-theme="night"] #themeToggle .ic-moon { display: block; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 110;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .4s;
}
.header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-s); }
.header-in { display: flex; align-items: center; gap: 24px; height: var(--header-h); transition: height .3s var(--ease-out); }
.header.scrolled .header-in { height: 58px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; color: var(--harbour-700); flex: none; transition: transform .3s var(--ease-spring); }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.05); }
.bm-maunga { fill: var(--pohu-500); stroke: none; }
.bm-dot { fill: var(--sun-500); stroke: none; }
html[data-theme="night"] .brand-mark { color: var(--harbour-300); }
.brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.brand-reo { font-family: var(--font-display); font-weight: 640; font-size: 1.22rem; letter-spacing: -.01em; }
.brand-en { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  position: relative; text-decoration: none; color: var(--ink-2); font-weight: 580; font-size: .95rem;
  padding: 10px 14px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  background: var(--pohu-500); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--harbour-600); }
html[data-theme="night"] .nav a.active { color: var(--harbour-300); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.nav-burger { display: none; }

.drawer {
  position: fixed; inset: 0; z-index: 105;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  padding: calc(var(--header-h) + 40px) 28px 28px;
  animation: drawerIn .3s var(--ease-out);
}
@keyframes drawerIn { from { opacity: 0; transform: translateY(-12px); } }
.drawer nav { display: flex; flex-direction: column; gap: 4px; }
.drawer a {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 560;
  color: var(--ink); text-decoration: none; padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .2s var(--ease-out), color .2s;
}
.drawer a:hover { padding-left: 12px; color: var(--pohu-500); }

/* ---------- Alert banner ---------- */
.alertbanner:empty { display: none; }
.alertbanner {
  background: var(--sun-100); border-bottom: 1px solid var(--line);
}
.alertbanner-in {
  display: flex; align-items: center; gap: 12px;
  padding: 10px clamp(16px, 4vw, 40px); max-width: var(--wrap); margin: 0 auto;
  font-size: .9rem;
}
.alertbanner .ic { color: var(--pohu-600); }
.alertbanner p { flex: 1; }
.alertbanner a { font-weight: 650; }
.alertbanner-close { flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: clip;
  color: #f2f7f6;
  padding: clamp(64px, 11vh, 128px) 0 clamp(120px, 16vh, 190px);
  background: var(--harbour-900);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%;
  transform: scale(1.06);
  will-change: transform;
}
.hero-grade {
  position: absolute; inset: 0;
  background:
    linear-gradient(178deg, rgba(6, 35, 44, .72) 0%, rgba(6, 35, 44, .34) 34%, rgba(8, 44, 56, .55) 68%, rgba(5, 25, 32, .92) 100%),
    linear-gradient(96deg, rgba(10, 53, 66, .55) 0%, transparent 55%);
}
html[data-theme="night"] .hero-grade {
  background:
    linear-gradient(178deg, rgba(4, 20, 27, .82) 0%, rgba(5, 26, 34, .5) 40%, rgba(4, 19, 25, .94) 100%),
    linear-gradient(96deg, rgba(4, 20, 27, .6) 0%, transparent 60%);
}
.hero-maunga { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: clamp(90px, 16vw, 180px); }
.hm { fill: var(--harbour-950); }
.hm-1 { opacity: .5; }
.hm-2 { opacity: .95; fill: var(--bg-soft); transition: fill .4s; }
.hero-light {
  position: absolute; inset: -20%;
  background: radial-gradient(42% 38% at 68% 30%, rgba(232, 163, 61, .22), transparent 70%);
  animation: lightDrift 16s ease-in-out infinite alternate;
  mix-blend-mode: screen; pointer-events: none;
}
html[data-theme="night"] .hero-light {
  background: radial-gradient(40% 36% at 70% 26%, rgba(46, 151, 166, .18), transparent 70%);
}
@keyframes lightDrift { from { transform: translate3d(-3%, -2%, 0); } to { transform: translate3d(3%, 4%, 0); } }

.hero-in { position: relative; z-index: 2; max-width: 860px; }
.hero-kicker {
  font-size: .85rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sun-500); margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 480; font-size: clamp(2.3rem, 6vw, 4.3rem);
  letter-spacing: -.015em; margin-bottom: clamp(26px, 4vh, 40px);
  text-shadow: 0 2px 24px rgba(4, 25, 31, .45);
}
.hero-title em { font-style: italic; font-weight: 560; color: #ffd9a8; }
html[data-theme="night"] .hero-title em { color: var(--harbour-300); }

/* Search */
.search { position: relative; max-width: 660px; }
.search-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 6px 12px 6px 24px;
  box-shadow: var(--shadow-l);
  border: 2px solid transparent;
  transition: border-color .2s, box-shadow .25s, transform .2s var(--ease-out);
}
.search-box:focus-within { border-color: var(--harbour-400); box-shadow: 0 0 0 4px rgba(46, 151, 166, .25), var(--shadow-l); }
.search-ic { color: var(--harbour-600); width: 1.4em; height: 1.4em; }
.search-input {
  flex: 1; border: 0; background: none; font: inherit; font-size: 1.08rem;
  padding: 12px 0; color: var(--ink); min-width: 0;
}
.search-input::placeholder { color: var(--muted); }
.search-clear { display: inline-flex; padding: 8px; border-radius: 50%; color: var(--muted); }
.search-clear:hover { background: var(--surface-2); color: var(--ink); }

.search-panel {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 40;
  background: var(--surface); color: var(--ink);
  border-radius: var(--r-m); box-shadow: var(--shadow-l);
  overflow: hidden; border: 1px solid var(--line);
  animation: panelIn .22s var(--ease-out);
}
@keyframes panelIn { from { opacity: 0; transform: translateY(-8px); } }
.search-list { max-height: min(420px, 60vh); overflow-y: auto; padding: 8px; }
.search-item { border-radius: 10px; }
.search-item button {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 12px 14px; text-align: left; border-radius: 10px;
  transition: background .15s;
}
.search-item button:hover, .search-item.active button { background: var(--harbour-100); }
html[data-theme="night"] .search-item button:hover, html[data-theme="night"] .search-item.active button { background: var(--surface-2); }
.search-item-cat {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--harbour-600); background: var(--surface-2);
  padding: 4px 10px; border-radius: 999px; flex: none; max-width: 34%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
html[data-theme="night"] .search-item-cat { color: var(--harbour-300); }
.search-item-main { min-width: 0; flex: 1; }
.search-item-title { font-weight: 620; font-size: .98rem; }
.search-item-title mark { background: var(--sun-100); color: var(--pohu-600); border-radius: 3px; padding: 0 1px; }
html[data-theme="night"] .search-item-title mark { background: rgba(232,163,61,.18); color: var(--sun-500); }
.search-item-d { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-empty { padding: 22px 20px; font-size: .92rem; color: var(--ink-2); }
.search-empty p + p { margin-top: 8px; color: var(--muted); }

/* Quick actions */
.quick { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.quick-label { font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(230, 242, 241, .75); }
.quick-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .12); color: #f2f7f6;
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 9px 16px; border-radius: 999px; font-size: .9rem; font-weight: 580;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .2s, transform .18s var(--ease-spring), border-color .2s;
}
.chip:hover { background: rgba(255, 255, 255, .24); transform: translateY(-2px); border-color: rgba(255, 255, 255, .4); }
.chip:active { transform: scale(.96); }
.chip .ic { width: 1.05em; height: 1.05em; }

.hero-stats {
  display: flex; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap;
  margin: clamp(34px, 6vh, 56px) 0 0; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero-stats dt { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 560; }
.hero-stats dd { margin: 2px 0 0; font-size: .82rem; color: rgba(230, 242, 241, .72); letter-spacing: .02em; }

.hero-scrollcue {
  position: absolute; left: 50%; bottom: 18px; z-index: 3;
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .4);
  border-radius: 14px; transform: translateX(-50%);
}
.hero-scrollcue span {
  position: absolute; left: 50%; top: 7px; width: 4px; height: 8px;
  background: #fff; border-radius: 2px; transform: translateX(-50%);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 70% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vh, 110px) 0; position: relative; }

/* Bands that hand over to the next band with a swell instead of a seam.
   The ::after is a wave silhouette in the *next* section's colour. */
.myak, .services, .news, .hys, .events, .contact { padding-bottom: 0; }
.myak .wrap, .services .wrap, .news .wrap, .hys .wrap,
.events .wrap, .contact .wrap { padding-bottom: clamp(28px, 5vh, 52px); }
.myak::after, .services::after, .news::after, .hys::after,
.events::after, .contact::after, .interlude::after {
  content: ""; display: block; position: relative; z-index: 2;
  height: clamp(54px, 7.5vw, 112px); margin-top: clamp(26px, 4vh, 44px);
  -webkit-mask: var(--wave-a) center bottom / 100% 100% no-repeat;
  mask: var(--wave-a) center bottom / 100% 100% no-repeat;
}
.myak::after     { background: var(--bg); }
.services::after { background: var(--harbour-950); -webkit-mask-image: var(--wave-b); mask-image: var(--wave-b); }
.interlude::after { background: var(--bg); margin-top: 0; }
.news::after     { background: var(--whenua-700); -webkit-mask-image: var(--wave-b); mask-image: var(--wave-b); }
.hys::after      { background: var(--bg); }
.events::after   { background: var(--bg-soft); -webkit-mask-image: var(--wave-b); mask-image: var(--wave-b); }
.contact::after  { background: var(--harbour-950); }
/* Fade the pōhutukawa backdrop in below the incoming wave so tones merge */
.hys-bg {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 150px);
  mask-image: linear-gradient(to bottom, transparent, #000 150px);
}
.section-head { max-width: 640px; margin-bottom: clamp(34px, 5vh, 54px); }
.eyebrow {
  font-size: .8rem; font-weight: 750; letter-spacing: .24em; text-transform: uppercase;
  color: var(--pohu-500); margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem); letter-spacing: -.01em; margin-bottom: 14px;
}
.section-dek { color: var(--muted); font-size: 1.05rem; }
.section-head-light h2, .section-head-light .section-dek { color: #f2f7f6; }
.section-head-light .section-dek { color: rgba(230, 242, 241, .8); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border-radius: 30px 38px 30px 44px / 40px 32px 42px 30px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-s);
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out), background .4s;
}
.card:hover { box-shadow: var(--shadow-m); }
.card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.card-top h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 580; }
.card-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex: none;
  border-radius: 54% 46% 55% 45% / 48% 55% 45% 52%;
}
.card-ic .ic { width: 1.4em; height: 1.4em; }
.ic-bg-harbour { background: var(--harbour-100); color: var(--harbour-700); }
html[data-theme="night"] .ic-bg-harbour { color: var(--harbour-300); }
.ic-bg-pohu { background: var(--pohu-100); color: var(--pohu-600); }
html[data-theme="night"] .ic-bg-pohu { color: var(--pohu-400); }
.ic-bg-whenua { background: var(--whenua-100); color: var(--whenua-600); }
html[data-theme="night"] .ic-bg-whenua { color: #8fc79b; }
.card-dek { color: var(--muted); font-size: .95rem; }
.card-fine { font-size: .78rem; color: var(--muted); margin-top: 14px; }

/* ---------- My Auckland ---------- */
.myak { background: var(--bg-soft); transition: background .4s; }
.myak-grid {
  display: grid; gap: clamp(20px, 3vw, 34px);
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  align-items: stretch;
}
/* aligned tops, equal heights, one internal rhythm per card */
.myak-grid .card { display: flex; flex-direction: column; }
.bin-card    { border-radius: 30px 38px 34px 46px / 42px 32px 46px 32px; }
.weather-card { border-radius: 46px 30px 40px 30px / 30px 44px 32px 46px; }
.notice-card { border-radius: 32px 46px 30px 40px / 40px 34px 46px 30px; }

.bin-lookup { display: flex; gap: 10px; margin-top: 16px; }
.bin-lookup .btn { flex: none; }
.bin-field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 0 16px; background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.bin-field:focus-within { border-color: var(--harbour-500); box-shadow: 0 0 0 3px rgba(23, 126, 143, .18); }
.bin-field .ic { color: var(--muted); }
.bin-field input { flex: 1; border: 0; background: none; font: inherit; font-size: .95rem; padding: 12px 0; color: var(--ink); min-width: 0; }
.bin-sugg {
  position: absolute; top: calc(100% + 6px); left: -1.5px; right: -1.5px; z-index: 30;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px 22px 18px 22px;
  box-shadow: var(--shadow-m); overflow: hidden; max-height: 240px; overflow-y: auto;
}
.bin-sugg li button {
  width: 100%; text-align: left; padding: 10px 14px; font-size: .9rem;
  display: flex; gap: 10px; align-items: center; transition: background .15s;
}
.bin-sugg li button:hover, .bin-sugg li.active button { background: var(--surface-2); }
.bin-sugg .zone-tag { margin-left: auto; font-size: .7rem; color: var(--muted); flex: none; }

/* result region grows to fill the card so all three strip cards balance */
.bin-result { flex: 1; display: flex; flex-direction: column; margin-top: 18px; }
.bin-result > * { flex: none; }
/* empty state: a quiet line of italic guidance, not a dashed box */
.bin-result:empty::before {
  content: "Your rubbish, recycling and food-scraps days will appear here — with what's due this week.";
  flex: 1; display: flex; align-items: center;
  font-style: italic;
  font-size: .87rem; color: var(--muted);
  border-top: 1px dashed var(--line-strong); padding: 14px 0;
}
/* collection days: open rows separated by hairlines, not boxed chips */
.bin-days { display: grid; gap: 0; }
.bin-row {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--line); padding: 13px 2px;
  animation: panelIn .3s var(--ease-out);
}
.bin-row:first-child { border-top: 0; padding-top: 4px; }
.bin-row .b-ic { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bin-row .b-ic .ic { width: 1.2em; height: 1.2em; }
.b-rubbish { background: #33413f; color: #fff; }
.b-recycle { background: #d7a021; color: #fff; }
.b-food { background: var(--whenua-500); color: #fff; }
.bin-row strong { display: block; font-size: .95rem; }
.bin-row .b-ic + div { flex: 1; min-width: 0; }
.bin-row small { color: var(--muted); font-size: .8rem; }
.bin-row .b-when { margin-left: auto; text-align: right; flex: none; }
.bin-row .b-when strong { color: var(--harbour-600); }
html[data-theme="night"] .bin-row .b-when strong { color: var(--harbour-300); }
/* "tomorrow" gets a soft tonal pill instead of a hard outline */
.bin-row.is-tomorrow {
  border-top-color: transparent; background: var(--pohu-100);
  border-radius: 18px 24px 18px 24px; padding: 13px 14px; margin: 2px 0;
}
.bin-row.is-tomorrow + .bin-row { border-top-color: transparent; }
.bin-note { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.bin-error {
  background: var(--pohu-100); color: var(--pohu-700);
  padding: 13px 16px; border-radius: 18px 24px 18px 24px; font-size: .9rem;
  animation: panelIn .3s var(--ease-out);
}
html[data-theme="night"] .bin-error { color: #f3b2a4; }
.try-line { font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 14px; }
.try { color: var(--harbour-600); text-decoration: underline; text-underline-offset: 2px; font-size: .8rem; }
.try:hover { color: var(--pohu-500); }
html[data-theme="night"] .try { color: var(--harbour-300); }

/* Weather — one open composition: big reading, hairline-split days, tide as text */
.wx-today { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.wx-today .wx-ic { width: 58px; height: 58px; color: var(--sun-500); flex: none; }
.wx-today .wx-ic .ic { width: 100%; height: 100%; }
.wx-temp { font-family: var(--font-display); font-size: 2.6rem; font-weight: 480; line-height: 1; }
.wx-temp sup { font-size: 1.1rem; color: var(--muted); }
.wx-sum { font-size: .9rem; color: var(--ink-2); }
.wx-meta { font-size: .8rem; color: var(--muted); }
.wx-days { display: flex; gap: 4px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.wx-day {
  flex: 1; text-align: center; padding: 2px 4px;
  font-size: .78rem; color: var(--muted);
}
.wx-day + .wx-day { border-left: 1px solid var(--line); }
.wx-day .ic { width: 1.5em; height: 1.5em; margin: 4px auto; color: var(--harbour-500); display: block; }
.wx-day strong { display: block; color: var(--ink); font-size: .88rem; }
.wx-tide {
  margin-top: 16px; display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--line); padding: 14px 2px 0; font-size: .88rem;
}
.wx-tide .ic { color: var(--harbour-600); flex: none; }
.wx-tide strong { display: block; font-size: .82rem; }
.weather-card .card-fine { margin-top: auto; padding-top: 14px; }

/* Notices — hairline-separated list, severity carried by a tinted icon disc */
.notice-list { display: grid; gap: 0; margin-top: 4px; }
.notice {
  display: flex; gap: 13px;
  border-top: 1px solid var(--line); padding: 15px 2px;
}
.notice:first-child { border-top: 0; padding-top: 4px; }
.notice > .ic {
  flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%;
}
.notice strong { display: block; font-size: .92rem; }
.notice p { font-size: .83rem; color: var(--muted); margin-top: 2px; }
.notice .n-meta { font-size: .72rem; color: var(--muted); margin-top: 6px; letter-spacing: .03em; text-transform: uppercase; }
.notice.sev-critical > .ic { background: var(--pohu-100); color: var(--pohu-500); }
.notice.sev-warning > .ic { background: var(--sun-100); color: var(--sun-500); }
.notice.sev-info > .ic { background: var(--harbour-100); color: var(--harbour-500); }
.roadworks { margin-top: auto; border-top: 1px dashed var(--line-strong); padding-top: 14px; }
.roadworks summary {
  cursor: pointer; font-weight: 620; font-size: .9rem; display: flex; align-items: center; gap: 8px;
  list-style: none;
}
.roadworks summary::-webkit-details-marker { display: none; }
.roadworks summary .ic { color: var(--harbour-600); transition: transform .2s; }
.roadworks[open] summary .ic { transform: rotate(90deg); }
.roadworks ul { margin-top: 10px; display: grid; gap: 8px; }
.roadworks li { font-size: .85rem; color: var(--ink-2); padding-left: 14px; position: relative; }
.roadworks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--sun-500); }
.roadworks li small { display: block; color: var(--muted); font-size: .78rem; }

/* ---------- Services ---------- */
.svc-grid {
  display: grid; gap: 6px clamp(18px, 2.5vw, 30px);
  grid-template-columns: repeat(auto-fill, minmax(min(262px, 100%), 1fr));
}
/* editorial index: open entries under hairlines; a soft sheet only appears on hover */
.svc-card {
  position: relative; display: flex; flex-direction: column;
  background: transparent; border-radius: 0;
  border-top: 1px solid var(--line);
  padding: 24px 14px 20px 2px;
  transition: transform .28s var(--ease-out), box-shadow .3s, background .3s,
              border-radius .3s var(--ease-out), border-top-color .3s, padding .3s var(--ease-out);
}
.svc-card::before {
  content: ""; position: absolute; inset: -1px 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--harbour-500), var(--harbour-300));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.svc-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-m);
  background: var(--surface); border-top-color: transparent;
  border-radius: 22px 28px 22px 30px; padding-left: 16px;
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-card .card-ic { width: 42px; height: 42px; margin-bottom: 14px; }
.svc-card h3 { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; }
.svc-reo { font-size: .78rem; color: var(--pohu-500); font-style: italic; font-family: var(--font-display); margin: 2px 0 8px; }
.svc-blurb { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.svc-links { display: grid; gap: 2px; margin-top: auto; }
.svc-links a {
  display: flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 560; color: var(--ink-2); text-decoration: none;
  padding: 7px 8px; border-radius: 8px; margin: 0 -8px;
  transition: background .15s, color .15s, padding-left .2s var(--ease-out);
}
.svc-links a .ic { width: .95em; height: .95em; color: var(--harbour-500); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s var(--ease-out); }
.svc-links a:hover { background: var(--surface-2); color: var(--harbour-700); padding-left: 12px; }
html[data-theme="night"] .svc-links a:hover { color: var(--harbour-300); }
.svc-links a:hover .ic { opacity: 1; transform: translateX(0); }

/* ---------- Do it online ---------- */
.online { background: var(--harbour-950); color: #ecf4f2; }
.online .section-head h2 { color: #f2f7f6; }
.online .section-dek { color: rgba(207, 227, 228, .8); }
.demo-note {
  display: inline-block; font-size: .78rem; font-weight: 600;
  background: rgba(232, 163, 61, .16); color: var(--sun-500);
  border: 1px solid rgba(232, 163, 61, .3);
  padding: 3px 10px; border-radius: 999px; margin-left: 6px; vertical-align: middle;
}
.online-grid { display: grid; gap: clamp(20px, 3vw, 34px); grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); align-items: stretch; }
.online .card { background: var(--harbour-900); color: #ecf4f2; display: flex; flex-direction: column; }
.online .card:hover { box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55); }
.online .card-top h3 { color: #f2f7f6; }
.online .card-dek { color: rgba(207, 227, 228, .75); }
.online .card-fine { color: rgba(207, 227, 228, .55); }
.online .ic-bg-harbour { background: rgba(46, 151, 166, .18); color: var(--harbour-300); }
.online .ic-bg-pohu { background: rgba(226, 84, 63, .16); color: var(--pohu-400); }
.online .do-card { border-radius: 30px 44px 30px 48px / 46px 32px 48px 32px; }
.online .do-report { border-radius: 44px 30px 48px 30px / 32px 46px 32px 48px; }
.online .do-card .card-fine { margin-top: auto; padding-top: 14px; }
/* payment rows: open list under hairlines, pill wash on hover */
.do-list { display: grid; gap: 0; margin-top: 10px; }
.do-item {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 17px 6px; text-align: left;
  background: transparent; border-top: 1px solid rgba(255, 255, 255, .13);
  transition: background .2s, transform .2s var(--ease-out), border-radius .2s, border-top-color .2s;
}
.do-list li:first-child .do-item { border-top: 0; }
.do-item:hover {
  background: rgba(255, 255, 255, .07); transform: translateX(6px);
  border-radius: 16px 22px 16px 22px; border-top-color: transparent;
}
.do-item span { flex: 1; }
.do-item strong { display: block; font-size: .98rem; }
.do-item small { color: rgba(207, 227, 228, .65); font-size: .8rem; }
.do-item .ic { color: var(--sun-500); transition: transform .25s var(--ease-out); }
.do-item:hover .ic { transform: translateX(4px); }
.report-ticks { margin-top: auto; padding-top: 18px; display: grid; gap: 8px; }
.report-ticks li { display: flex; gap: 10px; align-items: center; font-size: .88rem; color: rgba(207, 227, 228, .85); }
.report-ticks .ic { color: var(--whenua-500); }
html[data-theme="night"] .report-ticks .ic, .online .report-ticks .ic { color: #8fc79b; }
.do-report .btn { margin-top: 18px; align-self: flex-start; }

/* ---------- Interlude ---------- */
.interlude {
  position: relative; overflow: clip;
  padding: clamp(90px, 16vh, 170px) 0 0;
  background: var(--harbour-950); color: #f2f7f6;
}
.interlude-in { margin-bottom: clamp(48px, 8vh, 84px); }
.interlude-photo {
  position: absolute; inset: 0; width: 100%; height: 120%; object-fit: cover; object-position: center 30%;
  will-change: transform;
}
.interlude-grade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4, 20, 27, .82) 8%, rgba(4, 20, 27, .45) 48%, rgba(4, 20, 27, .18) 100%);
}
.interlude-in { position: relative; }
.interlude-kicker { font-size: .8rem; font-weight: 750; letter-spacing: .26em; text-transform: uppercase; color: var(--sun-500); margin-bottom: 16px; }
.interlude-quote {
  font-family: var(--font-display); font-style: italic; font-weight: 460;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.28; letter-spacing: -.01em;
  max-width: 22ch; text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}
.interlude-sub { margin-top: 22px; font-size: .88rem; color: rgba(230, 242, 241, .78); letter-spacing: .03em; }

/* ---------- News ---------- */
.news-grid { display: grid; gap: clamp(22px, 3vw, 34px) clamp(18px, 2.5vw, 28px); grid-template-columns: repeat(12, 1fr); align-items: stretch; }
.news-card {
  position: relative; grid-column: span 3; display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  transition: transform .3s var(--ease-out);
}
.news-card:hover { transform: translateY(-5px); color: var(--ink); }
.news-card.feature { grid-column: span 6; grid-row: span 2; }
.news-card.wide { grid-column: span 6; flex-direction: row; align-items: center; }
.news-card.wide .news-imgwrap { aspect-ratio: auto; flex: 0 0 42%; align-self: stretch; }
/* aligned tops per row; row-mates share a baseline, metas pin to a common line */
.news-imgwrap {
  overflow: hidden; aspect-ratio: 16 / 9.5;
  border-radius: 24px 32px 24px 34px; box-shadow: var(--shadow-s);
  transition: box-shadow .3s;
}
.news-card:nth-child(odd) .news-imgwrap { border-radius: 32px 24px 34px 24px; }
.news-card:hover .news-imgwrap { box-shadow: var(--shadow-m); }
.news-card.feature .news-imgwrap { aspect-ratio: 16 / 10; }
.news-imgwrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.news-card:hover .news-imgwrap img { transform: scale(1.05); }
.news-body { padding: 18px 4px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
/* wide card: a deliberate 32px media-to-text gutter so copy never hugs the photo */
.news-card.wide .news-body { padding: 20px 4px 20px 32px; }
.news-tag {
  align-self: flex-start; font-size: .68rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  color: var(--pohu-600); background: var(--pohu-100); padding: 4px 10px; border-radius: 999px;
}
html[data-theme="night"] .news-tag { color: var(--pohu-400); }
.news-card h3 { font-family: var(--font-display); font-weight: 560; font-size: 1.12rem; }
.news-card.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.news-dek { font-size: .88rem; color: var(--muted); }
.news-card.feature .news-dek { font-size: .98rem; }
.news-meta { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); display: flex; gap: 12px; }

/* ---------- Have your say ---------- */
.hys { background: var(--whenua-700); color: #eef4ec; overflow: clip; }
.hys-bg {
  position: absolute; inset: 0;
  background: url("../assets/img/pohutukawa.jpg") center 30% / cover no-repeat;
  opacity: .14; pointer-events: none;
  mix-blend-mode: luminosity;
}
.hys .wrap { position: relative; }
.hys .eyebrow { color: var(--sun-500); }
.hys-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); align-items: stretch; }
.hys-card {
  background: rgba(255, 255, 255, .07);
  border-radius: 28px 38px 28px 44px / 40px 30px 44px 30px;
  padding: 26px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; flex-direction: column; gap: 10px;
  transition: background .25s, transform .28s var(--ease-out);
}
.hys-card:nth-child(even) { border-radius: 38px 28px 44px 28px / 30px 40px 30px 44px; }
.hys-card:hover { background: rgba(255, 255, 255, .12); transform: translateY(-4px); }
.hys-theme { font-size: .7rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--sun-500); }
.hys-card h3 { font-family: var(--font-display); font-size: 1.28rem; font-weight: 560; }
.hys-org { font-size: .8rem; color: rgba(238, 244, 236, .7); }
.hys-blurb { font-size: .9rem; color: rgba(238, 244, 236, .85); margin-bottom: 4px; }
/* one uniform stat layout across every card: equal columns split by hairlines */
.hys-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: .78rem; line-height: 1.4; color: rgba(238, 244, 236, .75);
}
.hys-meta > span { padding: 0 12px; }
.hys-meta > span:first-child { padding-left: 0; }
.hys-meta > span + span { border-left: 1px solid rgba(255, 255, 255, .16); }
.hys-days { font-weight: 700; color: #ffd9a8; }
.hys-days.urgent { color: #ff9c8a; }
/* submission buttons: full width, pinned to a common baseline across the row */
.hys-card .btn { align-self: stretch; justify-content: center; margin-top: 6px; }

/* ---------- Events ---------- */
.ev-scroller {
  display: flex; gap: clamp(18px, 2.5vw, 26px); overflow-x: auto; padding: 10px 8px 26px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.ev-card {
  scroll-snap-align: start; flex: 0 0 min(300px, 84vw);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease-out);
}
.ev-card:nth-child(odd) { transform: rotate(-.7deg); }
.ev-card:nth-child(even) { transform: rotate(.7deg); }
.ev-card:hover { transform: translateY(-5px) rotate(0deg); }
.ev-imgwrap {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 26px 34px 26px 36px; box-shadow: var(--shadow-s);
  transition: box-shadow .3s;
}
.ev-card:nth-child(even) .ev-imgwrap { border-radius: 34px 26px 36px 26px; }
.ev-card:hover .ev-imgwrap { box-shadow: var(--shadow-m); }
.ev-imgwrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.ev-card:hover .ev-imgwrap img { transform: scale(1.06); }
.ev-date {
  position: absolute; top: 12px; left: 12px;
  background: var(--surface); border-radius: 16px 20px 16px 22px; text-align: center;
  padding: 7px 13px; box-shadow: var(--shadow-m); line-height: 1.1;
}
.ev-date strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--pohu-600); }
.ev-date span { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ev-body { padding: 18px 8px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ev-cat { font-size: .68rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--whenua-500); }
html[data-theme="night"] .ev-cat { color: #8fc79b; }
.ev-body h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 580; }
.ev-venue, .ev-time { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ev-free {
  align-self: flex-start; margin-top: auto; font-size: .72rem; font-weight: 700;
  color: var(--whenua-600); background: var(--whenua-100); padding: 3px 10px; border-radius: 999px;
}
html[data-theme="night"] .ev-free { color: #8fc79b; }
.ev-free.paid { color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); }

/* ---------- Contact ---------- */
.contact { background: var(--bg-soft); transition: background .4s; }
.contact-grid { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1.2fr 1fr 1fr; }
.contact-lead h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 520; margin: 10px 0 14px; }
.contact-lead > p { color: var(--muted); max-width: 40ch; }
.contact-phone {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 20px;
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600;
  color: var(--harbour-700); text-decoration: none;
  transition: color .2s, transform .2s var(--ease-out);
}
.contact-phone:hover { color: var(--pohu-500); transform: translateX(4px); }
html[data-theme="night"] .contact-phone { color: var(--harbour-300); }
.contact-free { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.contact-free .ic { width: .9em; height: .9em; vertical-align: -1px; }
.contact h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.contact-centres ul { display: grid; gap: 12px; }
.contact-centres li { border-bottom: 1px dashed var(--line-strong); padding-bottom: 12px; }
.contact-centres li:last-child { border-bottom: 0; }
.contact-centres strong { display: block; font-size: .92rem; }
.contact-centres span { font-size: .82rem; color: var(--muted); display: block; }
.emg-list { display: grid; gap: 12px; }
.emg-list li { display: grid; gap: 2px; }
.emg-list strong { font-size: .88rem; }
.emg-list span, .emg-list a { font-size: .88rem; }
.emg-list a { color: var(--pohu-600); font-weight: 700; }
html[data-theme="night"] .emg-list a { color: var(--pohu-400); }
.contact-emg h3 .ic { color: var(--pohu-500); }

/* ---------- Footer ---------- */
.footer { background: var(--harbour-950); color: #cfe3e4; padding: clamp(48px, 7vh, 80px) 0 30px; }
.foot-top {
  display: grid; gap: 36px; padding-bottom: 40px;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.1fr;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.foot-brand .brand-mark { width: 52px; height: 52px; color: var(--harbour-300); margin-bottom: 14px; }
.foot-reo { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: #f2f7f6; }
.foot-en { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #7fa0a4; margin-top: 2px; }
.foot-note { font-size: .82rem; color: #7fa0a4; margin-top: 14px; max-width: 34ch; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col h3 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #7fa0a4; margin-bottom: 6px; }
.foot-col a { color: #cfe3e4; text-decoration: none; font-size: .9rem; width: fit-content; display: inline-flex; gap: 6px; align-items: center; transition: color .2s, transform .2s var(--ease-out); }
.foot-col a:hover { color: #fff; transform: translateX(3px); }
.foot-col a .ic { width: .85em; height: .85em; opacity: .6; }
.foot-linkbtn { display: inline-flex; align-items: center; gap: 8px; color: #cfe3e4; font-size: .9rem; padding: 2px 0; transition: color .2s; width: fit-content; }
.foot-linkbtn:hover { color: #fff; }
.foot-linkbtn .ic { opacity: .7; }
.foot-linkbtn[aria-pressed="true"] { color: var(--sun-500); }
.foot-acc-note { font-size: .74rem; color: #7fa0a4; margin-top: 10px; }
.foot-legal { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 24px; font-size: .78rem; color: #7fa0a4; }
.foot-legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-legal-links a { color: #9fc0c3; font-size: .78rem; }

/* ---------- Modal ---------- */
.modal-root { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .modal-root { align-items: center; padding: 24px; } }
.modal-veil { position: absolute; inset: 0; background: rgba(4, 20, 27, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  position: relative; width: min(620px, 100%); max-height: min(88vh, 820px);
  background: var(--surface); color: var(--ink);
  border-radius: 32px 38px 0 0; box-shadow: var(--shadow-l);
  display: flex; flex-direction: column; overflow: hidden;
  animation: sheetUp .38s var(--ease-spring);
}
@media (min-width: 700px) { .modal { border-radius: 34px 40px 34px 44px; animation: popIn .32s var(--ease-spring); } }
@keyframes sheetUp { from { transform: translateY(60px); opacity: 0; } }
@keyframes popIn { from { transform: scale(.94) translateY(14px); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; }
.modal-steps { display: flex; gap: 6px; }
.modal-steps span { width: 26px; height: 4px; border-radius: 2px; background: var(--line-strong); transition: background .3s; }
.modal-steps span.done { background: var(--harbour-500); }
.modal-body { padding: 14px 20px 26px; overflow-y: auto; }
.modal-body h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 580; margin: 6px 0 4px; }
.modal-sub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }

.f-field { margin-bottom: 16px; }
.f-field label { display: block; font-weight: 620; font-size: .88rem; margin-bottom: 6px; }
.f-field .f-hint { font-weight: 400; color: var(--muted); font-size: .78rem; margin-left: 6px; }
.f-input, .f-area {
  width: 100%; border: 1.5px solid var(--line-strong); border-radius: 16px 20px 16px 20px;
  padding: 12px 14px; font: inherit; font-size: .95rem; background: var(--surface); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.f-input:focus, .f-area:focus { border-color: var(--harbour-500); box-shadow: 0 0 0 3px rgba(23, 126, 143, .18); outline: none; }
.f-area { min-height: 110px; resize: vertical; }
.f-field.has-error .f-input, .f-field.has-error .f-area { border-color: var(--pohu-500); }
.f-error { display: none; color: var(--pohu-600); font-size: .8rem; margin-top: 5px; font-weight: 560; }
html[data-theme="night"] .f-error { color: var(--pohu-400); }
.f-field.has-error .f-error { display: block; animation: panelIn .2s; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.f-actions .btn { flex: 1; justify-content: center; min-width: 140px; }

.result-panel {
  border-radius: 20px 26px 20px 26px; background: var(--surface-2);
  padding: 16px 18px; margin: 14px 0; animation: panelIn .3s var(--ease-out);
}
.result-panel dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; font-size: .92rem; }
.result-panel dt { color: var(--muted); }
.result-panel dd { margin: 0; font-weight: 600; text-align: right; }
.result-panel .amount-due { font-family: var(--font-display); font-size: 1.7rem; color: var(--harbour-700); }
html[data-theme="night"] .result-panel .amount-due { color: var(--harbour-300); }
.amount-choice { display: flex; gap: 10px; margin: 6px 0 16px; flex-wrap: wrap; }
.amount-choice button {
  flex: 1; min-width: 120px; border: 1.5px solid var(--line-strong); border-radius: 16px 22px 16px 22px;
  padding: 12px; font-weight: 620; transition: border-color .2s, background .2s;
}
.amount-choice button.sel { border-color: var(--harbour-500); background: var(--harbour-100); }
html[data-theme="night"] .amount-choice button.sel { background: var(--surface-2); }

/* report category grid */
.rep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 46%), 1fr)); gap: 10px; }
.rep-cat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  background: var(--surface-2); border-radius: 18px 24px 18px 26px; padding: 16px;
  text-align: left; transition: background .2s, transform .2s var(--ease-out);
}
.rep-cat:hover { background: var(--harbour-100); transform: translateY(-2px); }
.rep-cat .ic { width: 1.5em; height: 1.5em; color: var(--harbour-600); }
html[data-theme="night"] .rep-cat .ic { color: var(--harbour-300); }
.rep-cat strong { font-size: .9rem; }
.rep-cat small { color: var(--muted); font-size: .74rem; }

/* confirmation */
.confirm-hero { text-align: center; padding: 12px 0 6px; }
.confirm-tick {
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--whenua-100); color: var(--whenua-500);
  display: flex; align-items: center; justify-content: center;
  animation: tickPop .5s var(--ease-spring);
}
html[data-theme="night"] .confirm-tick { color: #8fc79b; }
.confirm-tick .ic { width: 2.2em; height: 2.2em; stroke-width: 2.4; }
@keyframes tickPop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } }
.ref-number {
  display: inline-block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 650;
  background: var(--harbour-100); color: var(--harbour-800); border: 1px dashed var(--harbour-400);
  padding: 8px 20px; border-radius: 16px 22px 16px 22px; margin: 10px 0 4px; letter-spacing: .04em;
}
html[data-theme="night"] .ref-number { color: var(--harbour-300); }
.confirm-next { text-align: left; margin-top: 18px; display: grid; gap: 8px; }
.confirm-next li { display: flex; gap: 10px; font-size: .9rem; color: var(--ink-2); }
.confirm-next .ic { color: var(--whenua-500); flex: none; margin-top: 2px; }
html[data-theme="night"] .confirm-next .ic { color: #8fc79b; }

/* processing */
.processing { display: flex; flex-direction: column; align-items: center; padding: 40px 0; gap: 18px; }
.spinner {
  width: 52px; height: 52px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--harbour-500);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing p { color: var(--muted); font-size: .92rem; }

/* decline / error block */
.flow-error {
  background: var(--pohu-100); border-radius: 18px 24px 18px 24px;
  padding: 14px 16px; font-size: .9rem; margin-bottom: 16px; animation: panelIn .25s;
}
.flow-error strong { color: var(--pohu-700); display: block; margin-bottom: 2px; }
html[data-theme="night"] .flow-error strong { color: #f3b2a4; }

/* ---------- Toasts ---------- */
.toast-root { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 260; display: grid; gap: 10px; width: min(430px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--harbour-950); color: #ecf4f2;
  border-radius: 14px; padding: 13px 18px; box-shadow: var(--shadow-l);
  font-size: .9rem; animation: toastIn .35s var(--ease-spring);
  border: 1px solid rgba(255, 255, 255, .12);
}
.toast .ic { color: #8fc79b; flex: none; }
.toast.err .ic { color: var(--pohu-400); }
.toast.out { animation: toastOut .3s var(--ease-out) forwards; }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(20px); opacity: 0; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .14s; }
html[data-motion="off"] .reveal { opacity: 1; transform: none; transition: none; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) .reveal { opacity: 1; transform: none; transition: none; }
  html:not([data-motion="on"]) *, html:not([data-motion="on"]) *::before, html:not([data-motion="on"]) *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-lead { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-burger { display: inline-flex; }
  .news-card, .news-card.wide { grid-column: span 6; flex-direction: column; }
  .news-card.wide .news-imgwrap { flex: none; aspect-ratio: 16 / 9.5; }
  .news-card.wide .news-body { padding: 18px 4px 0; }
  .news-card.feature { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 620px) {
  .header-pay { display: none; }
  .brand-reo { font-size: 1.05rem; }
  .hero { padding-bottom: 110px; }
  .quick { align-items: flex-start; flex-direction: column; gap: 10px; }
  .hero-stats { gap: 18px 26px; }
  .news-card, .news-card.wide { grid-column: 1 / -1; }
  .f-row { grid-template-columns: 1fr; }
  .bin-lookup { flex-direction: column; }
  .bin-lookup .btn { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
  .utilbar-reo { display: none; }
  .util-weather { margin-right: auto; }
  .foot-legal { flex-direction: column; }
}
@media (max-width: 700px) {
  .uw-sum { display: none; }
  .util-btn span { display: none; }
  .util-btn { padding: 8px; }
  .util-btn .ic { width: 1.15em; height: 1.15em; }
  .alertbanner-in { font-size: .82rem; align-items: flex-start; }
  .alertbanner-in .ic { margin-top: 2px; }
}
