/* ============================================================
   Dental Marketing NZ — global styles
   Brand: deep teal-navy #123F4E · mint #A8D8CC · teal #59BBA4
   Type: Poppins 300/400/500/600/700 · square corners everywhere
   ============================================================ */

:root {
  --ink: #123F4E;            /* deep teal-navy — nav, footer, dark sections, text on light */
  --mint: #A8D8CC;           /* primary accent — CTAs, active links, eyebrows on dark */
  --teal: #59BBA4;           /* mid teal — hover state, gstripe highlight */
  --teal-deep: #1F6B83;
  --teal-bright: #2A7A93;
  --grad-brand: linear-gradient(155deg, #2A7A93 0%, #1F6B83 55%, #123F4E 100%);
  --white: #FFFFFF;
  --paper: #F6FAF8;          /* light section background */
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(18, 63, 78, 0.14);
  --text-on-dark: rgba(255, 255, 255, 0.85);
  --text-on-dark-soft: rgba(255, 255, 255, 0.7);
  --shadow-cta: 0 6px 18px rgba(9, 36, 45, 0.25);
  --font: 'Poppins', sans-serif;
  --ease: cubic-bezier(0.25, 0.6, 0.3, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }
@media (max-width: 720px) { .container { padding-left: 24px; padding-right: 24px; } }

/* ── Signature stripe highlight ─────────────────────────── */
.gstripe {
  font-style: normal;
  background-image: linear-gradient(#59BBA4, #59BBA4);
  background-size: 100% 28%;
  background-repeat: no-repeat;
  background-position: 0 86%;
  transition: background-position 220ms ease-out;
}
.gstripe:hover { background-position: 0 36%; }

/* ── Buttons (square, mint) ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 24px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--mint);
  color: var(--ink);
  border: 1px solid var(--mint);
  box-shadow: var(--shadow-cta);
  border-radius: 8px;           /* page context; nav/footer overrides to square */
  transition: all 160ms ease-out;
  cursor: pointer;
  white-space: nowrap;
}
.site-nav .btn, .pre-footer .btn { border-radius: 0; }
.btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-1px); }
.btn .arr { font-weight: 400; font-size: 1.1em; }

.btn-lg { height: 54px; padding: 0 36px; font-size: 14.5px; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(168, 216, 204, 0.08); border-color: var(--mint); color: var(--mint); transform: translateY(-1px); }

.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: rgba(18, 63, 78, 0.35);
  box-shadow: none;
}
.btn-ghost-dark:hover { background: rgba(18, 63, 78, 0.05); border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }

/* ── Eyebrow labels ─────────────────────────────────────── */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
}
.on-light .eyebrow, .eyebrow.dark { color: var(--teal); }

/* ── Navigation ─────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: #fff;
}
.site-nav .nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  min-height: var(--nav-h);
  padding: 12px 48px;
}
.site-nav .nav-logo img { height: 44px; width: auto; display: block; }
.site-nav .nav-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.site-nav .nav-links > a,
.site-nav .nav-links > .nav-services-toggle {
  color: rgba(255, 255, 255, 0.85);
  transition: color 160ms ease-out;
  text-transform: uppercase;
}
.site-nav .nav-links > a:hover,
.site-nav .nav-links > .nav-services-toggle:hover,
.site-nav .nav-links > a.is-active,
.site-nav .nav-links > .nav-services-toggle.is-active,
.site-nav .nav-links > .nav-services-toggle.is-open { color: var(--mint); }
.nav-services-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  font: inherit;
  padding: 0;
}
.nav-services-toggle .chev { font-size: 9px; transition: transform 160ms ease-out; }
.nav-services-toggle.is-open .chev { transform: rotate(180deg); }

/* Mega menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  box-shadow: 0 30px 60px rgba(9, 36, 45, 0.5);
  display: none;
}
.mega-menu.is-open { display: block; }
.mega-menu .mega-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: 48px;
  padding: 40px 48px 44px;
}
.mega-menu .mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mega-menu .mega-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line-dark);
  color: #fff;
  transition: all 160ms ease-out;
}
.mega-menu .mega-card:hover { border-color: var(--mint); background: rgba(168, 216, 204, 0.06); }
.mega-menu .mega-card .t { font-weight: 500; font-size: 15px; margin-bottom: 5px; }
.mega-menu .mega-card .d { font-weight: 300; font-size: 12.5px; line-height: 1.6; color: var(--text-on-dark-soft); }
.mega-menu .mega-side {
  border-left: 1px solid var(--line-dark);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.mega-menu .mega-link { font-size: 13px; font-weight: 400; color: var(--mint); transition: color 160ms ease-out; }
.mega-menu .mega-link:hover { color: #fff; }

/* Mobile nav */
.nav-burger {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.nav-burger span { display: block; width: 18px; height: 1.5px; background: var(--mint); transition: all 200ms ease-out; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line-dark);
  padding: 12px 24px 28px;
  flex-direction: column;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 13px 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-menu a.is-active { color: var(--mint); }
.mobile-menu a.sub { padding-left: 18px; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.mobile-menu .btn { margin-top: 18px; justify-content: center; }

@media (max-width: 960px) {
  .site-nav .nav-bar { padding: 12px 24px; }
  .site-nav .nav-links, .site-nav .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .mega-menu { display: none !important; }
}

/* ── Footer ─────────────────────────────────────────────── */
.pre-footer {
  background: var(--grad-brand);
  color: #fff;
}
.pre-footer .inner { max-width: 900px; margin: 0 auto; text-align: center; padding: 96px 48px; }
.pre-footer h2 { font-weight: 400; font-size: clamp(34px, 3.6vw, 46px); line-height: 1.2; }
.pre-footer p {
  margin: 20px auto 34px;
  max-width: 480px;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}
.pre-footer .meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 30px;
  font-weight: 300;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
}
.pre-footer .meta a { color: var(--mint); transition: color 160ms ease-out; }
.pre-footer .meta a:hover { color: #fff; }

.site-footer { background: var(--ink); color: #fff; }
.site-footer .inner { max-width: 1200px; margin: 0 auto; padding: 56px 48px 26px; }
.site-footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer .logo img { height: 46px; width: auto; margin-bottom: 18px; display: block; }
.site-footer .about { font-weight: 300; font-size: 13.5px; line-height: 1.75; color: var(--text-on-dark-soft); max-width: 280px; }
.site-footer .col-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 16px;
}
.site-footer .col-links { display: flex; flex-direction: column; gap: 10px; font-weight: 300; font-size: 13.5px; }
.site-footer .col-links a { color: rgba(255, 255, 255, 0.8); transition: color 160ms ease-out; }
.site-footer .col-links a:hover { color: var(--mint); }
.site-footer .col-links a.mint { color: var(--mint); }
.site-footer .col-links a.mint:hover { color: #fff; }
.site-footer .socials { display: flex; gap: 12px; margin-bottom: 16px; }
.site-footer .socials a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 160ms ease-out;
}
.site-footer .socials a:hover { border-color: var(--mint); background: rgba(168, 216, 204, 0.08); transform: translateY(-1px); }
.site-footer .legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  font-weight: 300;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.66);
}

@media (max-width: 720px) {
  .pre-footer .inner { padding: 72px 24px; }
  .site-footer .inner { padding: 48px 24px 24px; }
}

/* ── Animation helpers (initial states set by JS, not CSS,
      so content stays visible without JavaScript) ───────── */
[data-reveal], [data-reveal-stagger] > * { will-change: transform, opacity; }
