/* Thisdomaindontexist123.ddd — Budget Healthy Eating NZ */

:root {
  --accent: #E19D29;
  --accent-dark: #b87a1a;
  --bg-warm: #faf6f0;
  --bg-cream: #f3ebe0;
  --bg-deep: #2c2418;
  --bg-section-alt: #3d3226;
  --text-dark: #1a1612;
  --text-light: #faf6f0;
  --text-muted: #5c5248;
  --border: #d4c4b0;
  --shadow: 0 8px 32px rgba(44, 36, 24, 0.12);
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-width: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--bg-warm);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
h3 { font-size: 1.2rem; }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  color: #000;
}

.section--dark .container,
.section--deep .container,
.page-hero .container,
.site-header .container,
.site-footer .container,
.disclaimer-bar .container {
  color: inherit;
}

/* Header */
.site-header {
  background: var(--bg-deep);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.logo-link img {
  width: 42px;
  height: 42px;
}

.logo-text span {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--text-light);
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Disclaimer bar */
.disclaimer-bar {
  background: #4a3f32;
  color: var(--text-light);
  font-size: 0.8rem;
  padding: 0.5rem 0;
  text-align: center;
  border-bottom: 3px solid var(--accent);
}

.disclaimer-bar p {
  margin: 0;
  max-width: 52rem;
  margin-inline: auto;
}

/* Hero collage */
.hero-collage {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(6, minmax(72px, 1fr));
  gap: 0.65rem;
  padding: 0.75rem 1rem 1.25rem;
  background: var(--bg-deep);
  overflow: hidden;
}

.hero-collage__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}

.hero-collage__tile {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
  box-shadow: var(--shadow);
  border: 2px solid rgba(225, 157, 41, 0.4);
}

.hero-collage__tile:hover {
  transform: scale(1.04);
  z-index: 5;
  box-shadow: 0 16px 48px rgba(225, 157, 41, 0.35);
  filter: brightness(1.08);
}

.hero-collage__tile--1 { grid-column: 1 / 5; grid-row: 1 / 4; }
.hero-collage__tile--2 { grid-column: 5 / 9; grid-row: 1 / 3; }
.hero-collage__tile--3 { grid-column: 9 / 13; grid-row: 1 / 5; }
.hero-collage__tile--4 { grid-column: 5 / 8; grid-row: 3 / 6; }
.hero-collage__tile--5 { grid-column: 1 / 5; grid-row: 4 / 7; }
.hero-collage__tile--6 { grid-column: 8 / 13; grid-row: 5 / 7; }

.hero-collage__content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem 1rem 2rem;
  pointer-events: none;
}

.hero-collage__text {
  background: rgba(26, 22, 18, 0.88);
  color: var(--text-light);
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  max-width: 36rem;
  text-align: center;
  border: 2px solid var(--accent);
  pointer-events: auto;
}

.hero-collage__text h1 {
  margin-bottom: 0.5rem;
}

.hero-collage__text p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  background: var(--accent);
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: #f0b04a;
  color: var(--text-dark);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--bg-section-alt);
  color: var(--text-light);
}

.btn--secondary:hover {
  background: #524535;
  color: var(--text-light);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--text-light);
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--text-dark);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section--light {
  background: var(--bg-warm);
  color: var(--text-dark);
}

.section--cream {
  background: var(--bg-cream);
  color: var(--text-dark);
}

.section--dark {
  background: var(--bg-section-alt);
  color: var(--text-light);
}

.section--accent {
  background: var(--accent);
  color: var(--text-dark);
}

.section--deep {
  background: var(--bg-deep);
  color: var(--text-light);
}

.section-header {
  margin-bottom: 2rem;
}

.section-header .material-icons {
  font-size: 2.25rem;
  color: var(--accent);
  vertical-align: middle;
  margin-right: 0.35rem;
}

.section--dark .section-header .material-icons,
.section--deep .section-header .material-icons {
  color: #f5d89a;
}

.section--accent .section-header .material-icons {
  color: var(--bg-deep);
}

/* Layout blocks */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.section--dark .card,
.section--deep .card {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  border-left-color: var(--accent);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.feature-list .material-icons {
  color: var(--accent);
  flex-shrink: 0;
}

.section--dark .feature-list .material-icons {
  color: #f5d89a;
}

.numbered-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.numbered-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
}

.numbered-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: var(--text-dark);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.image-block {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-block img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.image-block figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  background: var(--bg-cream);
  color: var(--text-muted);
}

.section--dark .image-block figcaption {
  background: var(--bg-deep);
  color: #c9bfb0;
}

.quote-block {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  background: rgba(225, 157, 41, 0.12);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.tag-list li {
  background: var(--accent);
  color: var(--text-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--border);
}

.data-table th {
  background: var(--bg-deep);
  color: var(--text-light);
}

.data-table tr:nth-child(even) {
  background: rgba(225, 157, 41, 0.08);
}

/* FAQ */
.faq-list details {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  overflow: hidden;
  color: #000;
}

.section--dark .faq-list details,
.section--deep .faq-list details {
  background: #fff;
  border-color: var(--border);
  color: #000;
}

.faq-list summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #000;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before {
  content: "+";
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
}

.faq-list details[open] summary::before {
  content: "−";
}

.faq-list .faq-answer {
  padding: 0 1.25rem 1rem;
  margin: 0;
  color: #000;
}

/* Events calendar */
.events-grid {
  display: grid;
  gap: 1rem;
}

.event-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
}

.section--dark .event-card {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-light);
}

.event-date {
  text-align: center;
  min-width: 4rem;
}

.event-date .day {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.event-date .month {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section--dark .event-date .month {
  color: #c9bfb0;
}

/* Contact form */
.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  color: var(--text-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.checkbox-label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.checkbox-label input {
  width: auto;
  margin-top: 0.25rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
}

.map-placeholder {
  padding: 2rem;
  background: var(--bg-cream);
  text-align: center;
  color: var(--text-muted);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}

/* Footer */
.site-footer {
  background: var(--bg-deep);
  color: var(--text-light);
  padding: 2.5rem 0 1.5rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer a {
  color: #f5d89a;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid #5c5248;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #c9bfb0;
}

.footer-cookie-settings {
  margin-top: 0.5rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-deep);
  color: var(--text-light);
  padding: 1.25rem;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(110%);
  transition: transform 0.35s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.cookie-banner__title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.cookie-banner__intro {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.cookie-categories {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.cookie-categories__item {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.cookie-categories__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-categories__note {
  font-size: 0.8rem;
  margin: 0.35rem 0 0 1.75rem;
  color: #c9bfb0;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.cookie-banner__legal {
  font-size: 0.8rem;
  color: #c9bfb0;
  margin: 0;
}

.cookie-banner__link-btn {
  background: none;
  border: none;
  color: #f5d89a;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
}

.cookie-banner__link-btn:hover {
  color: var(--accent);
}

/* Policy pages */
.policy-content {
  max-width: 48rem;
}

.policy-content h2 {
  margin-top: 2rem;
}

.policy-content ul {
  padding-left: 1.25rem;
}

.policy-content code {
  background: rgba(0, 0, 0, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.trust-panel {
  background: #fff;
  border: 2px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}

.trust-panel p {
  margin-top: 0;
}

.section--accent .feature-list .material-icons {
  color: var(--bg-deep);
}

.disclaimer-bar p {
  max-width: 52rem;
  margin: 0 auto;
}

.footer-compliance {
  font-size: 0.85rem;
  color: #c9bfb0;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.footer-compliance a {
  color: #f5d89a;
}

/* Success page */
.success-box {
  text-align: center;
  padding: 4rem 1rem;
  max-width: 32rem;
  margin: 0 auto;
}

.success-box .material-icons {
  font-size: 4rem;
  color: var(--accent);
}

/* Page hero (inner) */
.page-hero {
  background: var(--bg-deep);
  color: var(--text-light);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 4px solid var(--accent);
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .site-nav.is-open {
    max-height: 420px;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.5rem 0 1rem;
    gap: 0.5rem;
  }

  .hero-collage {
    min-height: 78vh;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(8, minmax(48px, 1fr));
  }

  .hero-collage__tile--1 { grid-column: 1 / 4; grid-row: 1 / 4; }
  .hero-collage__tile--2 { grid-column: 4 / 7; grid-row: 1 / 3; }
  .hero-collage__tile--3 { grid-column: 1 / 4; grid-row: 4 / 7; }
  .hero-collage__tile--4 { grid-column: 4 / 7; grid-row: 3 / 6; }
  .hero-collage__tile--5 { grid-column: 1 / 4; grid-row: 7 / 9; }
  .hero-collage__tile--6 { grid-column: 4 / 7; grid-row: 6 / 9; }

  .hero-collage__text {
    padding: 1.25rem;
    font-size: 0.95rem;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner__actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 320px) {
  body {
    font-size: 0.95rem;
  }

  .container {
    width: min(100% - 1rem, var(--max-width));
  }

  .logo-link {
    font-size: 0.8rem;
  }

  .logo-link img {
    width: 36px;
    height: 36px;
  }

  .section {
    padding: 2.5rem 0;
  }

  .hero-collage {
    padding: 0.35rem 0.35rem 0.75rem;
    gap: 0.35rem;
    min-height: 68vh;
  }

  .btn {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
  }
}
