:root {
  --bg-main: #f2eae0;
  --bg-alt: #b4d3d9;
  --accent-soft: #bda6ce;
  --accent-strong: #9b8ec7;
  --text-main: #2c2b30;
  --text-muted: #5a5861;
  --ok: #2f7b4e;
  --warn: #a34747;
  --surface: #fffdf9;
  --shadow-a: 0 12px 34px rgba(66, 47, 83, 0.12);
  --shadow-b: 0 4px 16px rgba(39, 42, 58, 0.15);
  --radius-xl: 26px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --space-xs: 0.4rem;
  --space-s: 0.8rem;
  --space-m: 1.1rem;
  --space-l: 1.8rem;
  --space-xl: 2.9rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Inter", Arial, sans-serif;
  color: var(--text-main);
  background: linear-gradient(165deg, var(--bg-main), #f8f4ef 42%, #f0e9dc);
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.9);
  border-bottom: 1px solid rgba(155, 142, 199, 0.25);
  backdrop-filter: blur(10px);
}

.header-wrap {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
}

.brand {
  display: block;
}

.brand img {
  width: 4rem;
  position: relative;
  z-index: 20;
}

.brand img {
  display: inline-block;
  transform: rotate(-5deg);
  transition: transform var(--transition-normal);
}

.brand:hover img {
  transform: rotate(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .brand img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 768px) {
  .brand img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 576px) {
  .brand img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 400px) {
  .brand img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

.menu-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.menu-pills a {
  padding: 0.46rem 0.92rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  background: rgba(180, 211, 217, 0.38);
  transition: transform 0.2s ease, background 0.2s ease;
}

.menu-pills a:hover,
.menu-pills a:focus-visible {
  background: rgba(155, 142, 199, 0.38);
  transform: translateY(-1px);
}

.menu-pills .is-active {
  background: rgba(155, 142, 199, 0.55);
}

main {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.hero-slider {
  position: relative;
  margin-top: var(--space-l);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-a);
}

.slides {
  display: grid;
}

.slide {
  grid-area: 1 / 1;
  min-height: 420px;
  padding: clamp(1.2rem, 4vw, 2.6rem);
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.55s ease, transform 0.55s ease;
  display: grid;
  align-items: end;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide-1 {
  background: linear-gradient(140deg, #dceaf0, #f5ede4);
}

.slide-2 {
  background: linear-gradient(140deg, #e2d5eb, #ece7f9);
}

.slide-3 {
  background: linear-gradient(140deg, #d7e6df, #e4f0ef);
}

.slide article {
  max-width: 620px;
  background: rgba(255, 255, 255, 0.75);
  padding: var(--space-m) var(--space-l);
  border-radius: var(--radius-md);
}

.slider-controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.5rem;
}

.slider-controls button,
.chip-btn,
.btn {
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-controls button:hover,
.chip-btn:hover,
.btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.section-shell {
  margin: 2.2rem 0;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--surface);
  border-radius: 24px 8px 24px 8px;
  box-shadow: var(--shadow-a);
  position: relative;
  overflow: clip;
}

.section-shell::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -65px;
  top: -65px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 211, 217, 0.22), transparent 64%);
}

.split-irregular {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: 1.2fr 0.8fr;
}

.note-card {
  border-left: 4px solid var(--accent-strong);
  background: #f5f0fa;
  padding: 1rem;
  border-radius: 4px 14px 14px 14px;
}

.water-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.water-item {
  background: linear-gradient(160deg, #ffffff, #edf6f7);
  border: 1px solid rgba(155, 142, 199, 0.18);
  border-radius: 18px;
  padding: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.water-item:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: 0 10px 20px rgba(84, 70, 97, 0.14);
}

.steps-path {
  display: grid;
  gap: 0.85rem;
}

.steps-path article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.8rem;
  align-items: start;
}

.step-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--accent-soft), var(--accent-strong));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.faq-item {
  border-top: 1px solid rgba(52, 49, 61, 0.18);
  padding: 0.7rem 0;
}

.faq-item button {
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  font-size: 1rem;
  padding: 0.25rem 0;
  cursor: pointer;
}

.faq-item [hidden] {
  display: none;
}

.doc-box {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.87rem;
  line-height: 1.5;
  background: #f3f2f7;
  border-radius: 12px;
  padding: 1rem;
  border: 1px dashed rgba(155, 142, 199, 0.44);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-btn[aria-pressed="true"] {
  background: var(--accent-strong);
  color: #fff;
}

.program-list article {
  margin: 0.7rem 0;
  padding: 0.8rem;
  border-radius: 10px;
  background: #f8f8fd;
  border: 1px solid rgba(180, 211, 217, 0.6);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.program-list article:hover {
  transform: translateX(3px);
  border-color: rgba(155, 142, 199, 0.65);
}

.program-list article.is-hidden {
  display: none;
}

form {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(90, 88, 97, 0.35);
  border-radius: 9px;
  padding: 0.7rem;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(155, 142, 199, 0.45);
  border-color: transparent;
}

.error {
  color: var(--warn);
  font-size: 0.82rem;
  min-height: 1.1rem;
}

.ok {
  color: var(--ok);
  font-size: 0.84rem;
  min-height: 1.1rem;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
}

.policy-aside {
  background: #eef5f6;
  border-radius: 12px;
  padding: 0.8rem;
}

.map-frame {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 16px;
}

.site-footer {
  margin-top: 2rem;
  background: linear-gradient(160deg, #b4d3d9, #bda6ce);
  padding: 1.5rem 0 2rem;
}

.nz-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
}

.nz-voice {
  background: #eef6f7;
  border-radius: 14px;
  padding: 0.9rem;
}

.tide-board {
  border-radius: 14px;
  background: linear-gradient(150deg, #ffffff, #f1edf8);
  border: 1px solid rgba(155, 142, 199, 0.28);
  padding: 0.9rem;
}

.tide-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
  align-items: center;
}

.tide-meter {
  height: 8px;
  border-radius: 999px;
  background: #e4ebec;
  overflow: hidden;
}

.tide-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bg-alt), var(--accent-strong));
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.flip-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

.flip-card {
  position: relative;
  min-height: 170px;
  perspective: 800px;
}

.flip-card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.45s ease;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 0.9rem;
  backface-visibility: hidden;
  border: 1px solid rgba(155, 142, 199, 0.35);
}

.flip-back {
  transform: rotateY(180deg);
  background: #f4effa;
}

.table-lite {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.table-lite th,
.table-lite td {
  border-bottom: 1px solid rgba(90, 88, 97, 0.2);
  text-align: left;
  padding: 0.5rem 0.4rem;
}

.micro-pulse {
  animation: pulse 2.7s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(155, 142, 199, 0.18);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(155, 142, 199, 0);
  }
}

.footer-wrap {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}

.footer-cta {
  background: rgba(255, 255, 255, 0.74);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  font-size: 0.92rem;
}

.disclaimer {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-b);
  padding: 0.9rem;
  z-index: 99;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-dialog {
  position: fixed;
  inset: 0;
  background: rgba(23, 23, 24, 0.45);
  display: grid;
  place-items: center;
  z-index: 100;
}

.cookie-dialog[hidden] {
  display: none;
}

.cookie-panel {
  width: min(580px, 92vw);
  background: #fff;
  border-radius: 18px;
  padding: 1rem;
}

.toggle {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin: 0.6rem 0;
  padding: 0.45rem 0;
}

.toggle input {
  width: auto;
}

.thank-you {
  min-height: 56vh;
  display: grid;
  place-items: center;
  text-align: left;
}

@media (max-width: 860px) {
  .split-irregular {
    grid-template-columns: 1fr;
  }

  .header-wrap {
    align-items: flex-start;
    gap: 0.6rem;
    flex-direction: column;
  }

  .nz-panel {
    grid-template-columns: 1fr;
  }
}