/* ==========================================================================
   PDIHQ — pdihq.co.nz
   Brand: Black #231f20 | Lime #9dc41a | Teal #4ecdc4 | Light Slate #e8edf2
   Font: Nunito (Arial fallback)
   ========================================================================== */

:root {
  --black: #231f20;
  --lime: #9dc41a;
  --lime-dark: #86a816;
  --teal: #4ecdc4;
  --teal-dark: #3cb5ac;
  --slate: #e8edf2;
  --slate-tint: #f4f7fa;
  --navy: #0e1a35;
  --navy-soft: #16244a;
  --white: #ffffff;
  --grey-line: #d5dde4;
  --grey-text: #5a6472;
  --radius: 12px;
  --shadow: 0 2px 14px rgba(14, 26, 53, 0.08);
  --shadow-lift: 0 8px 28px rgba(14, 26, 53, 0.14);
  --font: 'Nunito', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; color: var(--black); }
h1 { font-size: 2.9rem; font-weight: 800; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
strong { font-weight: 700; }

.lead { font-size: 1.2rem; }
.small { font-size: 0.85rem; color: var(--grey-text); }

/* --------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--slate);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-link img { height: 80px; width: auto; }
.logo-link:hover { text-decoration: none; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: var(--black);
  font-weight: 600;
  font-size: 0.98rem;
}
.main-nav a:hover { color: var(--lime-dark); text-decoration: none; }
.main-nav a.active { color: var(--lime-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--black);
  margin: 5px 0;
  border-radius: 2px;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-lime { background: var(--lime); color: var(--black); }
.btn-lime:hover { background: var(--lime-dark); color: var(--black); }

.btn-outline-light { background: transparent; color: var(--white); border-color: var(--teal); }
.btn-outline-light:hover { background: var(--teal); color: var(--navy); }

.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--teal-dark); }
.btn-outline-dark:hover { background: var(--teal); color: var(--navy); border-color: var(--teal); }

.btn-sm { padding: 9px 20px; font-size: 0.92rem; }

/* --------------------------------------------------------------- hero */

.hero {
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='140' viewBox='0 0 160 140'%3E%3Cpath d='M40 5 L70 22 L70 56 L40 73 L10 56 L10 22 Z' fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='2'/%3E%3Cpath d='M120 70 L150 87 L150 121 L120 138 L90 121 L90 87 Z' fill='none' stroke='%234ecdc4' stroke-opacity='0.07' stroke-width='2'/%3E%3C/svg%3E");
  color: var(--white);
  padding: 96px 0 104px;
}
.hero h1 { color: var(--white); max-width: 780px; }
.hero .sub {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--slate);
  margin: 18px 0 34px;
  max-width: 680px;
}
.hero .btn { margin-right: 12px; margin-bottom: 12px; }
.hero-kicker {
  display: inline-block;
  color: var(--lime);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-inner { position: relative; }

/* --------------------------------------------------------------- sections */

.section { padding: 76px 0; }
.section-slate { background: var(--slate-tint); }
.section-navy { background: var(--navy); color: var(--slate); }
.section-navy h2 { color: var(--white); }

.section-kicker {
  color: var(--lime-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-navy .section-kicker { color: var(--lime); }

.center { text-align: center; }

/* --------------------------------------------------------------- tiles */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.tile-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tile-grid-2 { grid-template-columns: repeat(2, 1fr); }

.tile {
  background: var(--white);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.tile h3 { font-size: 1.08rem; margin-bottom: 8px; }
.tile p { margin-bottom: 0; font-size: 0.95rem; color: var(--grey-text); }

.tile-icon {
  width: 44px;
  height: 40px;
  margin-bottom: 16px;
}

/* stat tiles */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }

.stat {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 36px 30px;
  color: var(--slate);
}
.stat .num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--lime);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat .label { font-size: 1rem; font-weight: 600; color: var(--white); }
.stat p { margin: 8px 0 0; font-size: 0.92rem; color: var(--slate); }

.stat-light {
  background: var(--white);
  border: 1px solid var(--slate);
  box-shadow: var(--shadow);
}
.stat-light .num { color: var(--lime-dark); }
.stat-light .label { color: var(--navy); }
.stat-light p { color: var(--grey-text); }

/* audience cards */
.audience {
  border-top: 6px solid var(--lime);
  display: flex;
  flex-direction: column;
}
.audience.t-teal { border-top-color: var(--teal); }
.audience.t-navy { border-top-color: var(--navy); }
.audience p { flex: 1; }
.audience .btn { margin-top: 18px; align-self: flex-start; }

/* --------------------------------------------------------------- misc blocks */

.check-list { list-style: none; margin: 20px 0; }
.check-list li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 12px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='M10 0 L18.7 4.5 L18.7 13.5 L10 18 L1.3 13.5 L1.3 4.5 Z' fill='%239dc41a'/%3E%3C/svg%3E") no-repeat center / contain;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  text-align: left;
  padding: 14px 20px;
  font-size: 0.98rem;
}
.compare-table th:last-child { background: var(--lime); color: var(--black); }
.compare-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--slate);
  font-size: 0.96rem;
  vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }

.partner-band {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  justify-content: center;
  align-items: center;
  margin-top: 28px;
}
.partner-band span {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--grey-text);
  white-space: nowrap;
}

.quote-card {
  background: var(--white);
  border-left: 6px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 26px 30px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.quote-card .who { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.quote-card p { margin-bottom: 0; }

.figure-card {
  background: var(--white);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin: 34px 0;
}
.figure-card figcaption {
  font-size: 0.85rem;
  color: var(--grey-text);
  padding-top: 14px;
  text-align: center;
}

/* board cards */
.board-card { text-align: center; }
.board-hex {
  width: 84px;
  height: 74px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 88'%3E%3Cpath d='M50 0 L93 22 L93 66 L50 88 L7 66 L7 22 Z' fill='%234ecdc4'/%3E%3C/svg%3E") no-repeat center / contain;
}
.board-card:nth-child(odd) .board-hex {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 88'%3E%3Cpath d='M50 0 L93 22 L93 66 L50 88 L7 66 L7 22 Z' fill='%239dc41a'/%3E%3C/svg%3E");
}

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 46px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: var(--slate); margin: 0; }

/* --------------------------------------------------------------- forms */

.form-card {
  background: var(--white);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 38px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-field .req { color: var(--lime-dark); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--grey-line);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

.consent-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--grey-text);
}
.consent-row input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--lime); }

/* honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-msg {
  display: none;
  grid-column: 1 / -1;
  border-radius: 8px;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 0.98rem;
}
.form-msg.ok { display: block; background: #f0f7d9; border: 1.5px solid var(--lime); color: #3d4d0a; }
.form-msg.err { display: block; background: #fdeeee; border: 1.5px solid #d9534f; color: #8b2b28; }

/* --------------------------------------------------------------- footer */

.site-footer {
  background: var(--navy);
  color: var(--slate);
  border-top: 6px solid var(--lime);
  padding: 56px 0 30px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.site-footer img { height: 52px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: var(--teal); }
.site-footer p { font-size: 0.93rem; margin-bottom: 6px; }
.footer-nav a { display: block; margin-bottom: 8px; font-size: 0.93rem; }
.footer-bottom {
  border-top: 1px solid rgba(232, 237, 242, 0.15);
  padding-top: 22px;
  font-size: 0.85rem;
  color: #9aa6b8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.65rem; }
  .hero { padding: 64px 0 72px; }
  .tile-grid, .tile-grid-3 { grid-template-columns: 1fr 1fr; }
  .stat-grid, .stat-grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }

  .header-inner { height: 80px; }
  .logo-link img { height: 62px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    border-bottom: 1px solid var(--slate);
    box-shadow: var(--shadow-lift);
    gap: 16px;
  }
  .main-nav.open { display: flex; }
}

@media (max-width: 600px) {
  .tile-grid, .tile-grid-3, .tile-grid-2, .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .cta-band { padding: 34px 26px; }
  .compare-table th, .compare-table td { padding: 10px 12px; font-size: 0.88rem; }
}

/* --------------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
  .hero .hero-kicker,
  .hero h1,
  .hero .sub,
  .hero .btn {
    opacity: 0;
    transform: translateY(18px);
    animation: heroRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .hero h1 { animation-delay: 0.12s; }
  .hero .sub { animation-delay: 0.24s; }
  .hero .btn:first-of-type { animation-delay: 0.36s; }
  .hero .btn + .btn { animation-delay: 0.46s; }

  @keyframes heroRise {
    to { opacity: 1; transform: translateY(0); }
  }

  .hero {
    background-size: 160px 140px, auto;
    animation: hexDrift 60s linear infinite;
  }
  @keyframes hexDrift {
    from { background-position: 0 0; }
    to { background-position: 320px 280px; }
  }

  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.in {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-stagger.in { transition-delay: var(--rd, 0s); }
}

/* Full-width photo band (ultra-wide panorama strips) */
.photo-band { position: relative; }
.photo-band img { display: block; width: 100%; height: auto; }
.photo-band-caption {
  position: absolute; right: 0; bottom: 0;
  background: rgba(35, 31, 32, 0.72); color: #fff;
  font-size: 0.78rem; padding: 6px 14px;
}
@media (max-width: 700px) { .photo-band-caption { position: static; background: var(--black); } }
