/* ═══════════════════════════════════════════════════════════════
   TMP - Shared Stylesheet
   All design tokens, resets, and shared components live here.
   Page-specific overrides remain in each HTML file's <style> block.
   ═══════════════════════════════════════════════════════════════ */

/* ── GOOGLE FONTS ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&display=swap');

/* ── DESIGN TOKENS ────────────────────────────────────────────── */
:root {
  --teal: oklch(56% 0.13 192);
  --teal-dark: oklch(42% 0.11 192);
  --teal-light: oklch(94% 0.04 192);
  --teal-mid: oklch(72% 0.1 192);
  --orange: oklch(72% 0.18 55);
  --navy: oklch(22% 0.04 240);
  --ink: oklch(18% 0.02 240);
  --muted: oklch(52% 0.02 240);
  --border: oklch(90% 0.01 240);
  --white: #ffffff;
  --bg: oklch(98.5% 0.005 192);
  --ff-display: 'DM Serif Display', Georgia, serif;
  --ff-body: 'DM Sans', system-ui, sans-serif;
  --radius: 8px;
  --max: 1200px;
}

/* ── RESET & BASE ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-body);
  background: var(--white);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ──────────────────────────────────────────────────────── */
.tmp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
}

.tmp-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.tmp-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.tmp-nav-logo img {
  height: 26px;
  width: auto;
  filter: invert(45%) sepia(60%) saturate(500%) hue-rotate(145deg)
    brightness(90%);
}

.tmp-nav-logo-text {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.tmp-nav-logo-text span {
  color: var(--teal);
}

.tmp-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
}

.tmp-nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition:
    color 0.15s,
    background 0.15s;
}

/* Suppress browser-default flash colours on click / visited */
.tmp-nav-links a:visited {
  color: var(--muted);
}
.tmp-nav-links a:active {
  color: var(--ink);
}

.tmp-nav-links a:hover {
  color: var(--ink);
  background: var(--teal-light);
}
.tmp-nav-links a.active {
  color: var(--teal-dark);
  font-weight: 600;
}

.tmp-nav-dropdown {
  position: relative;
}
.tmp-nav-dropdown > a::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.5;
}

.tmp-dropdown-menu {
  /* Hidden by default - use visibility+opacity so transitions work */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%; /* flush to the bottom of the trigger */
  left: 0;
  min-width: 280px;
  /* Invisible top padding creates a seamless hover bridge over the gap */
  padding-top: 10px;
  background: transparent;
  list-style: none;
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease;
}

/* Inner panel - the visual card */
.tmp-dropdown-menu::before {
  content: '';
  position: absolute;
  inset: 10px 0 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px oklch(0% 0 0 / 0.08);
  z-index: -1;
}

.tmp-nav-dropdown:hover .tmp-dropdown-menu,
.tmp-dropdown-menu:hover {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Re-add padding on the li items (previously on the wrapper) */
.tmp-dropdown-menu li {
  padding: 0 6px;
}

.tmp-dropdown-menu li:first-child {
  padding-top: 6px;
}
.tmp-dropdown-menu li:last-child {
  padding-bottom: 6px;
}

.tmp-dropdown-menu li.tmp-dropdown-divider {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.tmp-dropdown-menu li a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 5px;
  color: var(--ink);
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}

.tmp-dropdown-menu li a:visited {
  color: var(--ink);
}
.tmp-dropdown-menu li a:active {
  color: var(--teal-dark);
}

.tmp-dropdown-menu li a:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}
.tmp-nav-cta {
  margin-left: auto;
}

/* ── HAMBURGER MENU ──────────────────────────────────────────── */
.tmp-nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
}

.tmp-nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s ease;
  display: block;
}

.tmp-nav-hamburger.tmp-hamburger-active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.tmp-nav-hamburger.tmp-hamburger-active span:nth-child(2) {
  opacity: 0;
}

.tmp-nav-hamburger.tmp-hamburger-active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ── BUTTONS ──────────────────────────────────────────────────── */
.tmp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.18s,
    transform 0.12s;
  letter-spacing: 0.01em;
}

.tmp-btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.tmp-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--teal-dark);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--teal);
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s;
}

.tmp-btn-outline:hover {
  background: var(--teal-light);
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.tmp-footer {
  background: var(--navy);
  color: oklch(65% 0.02 240);
  padding: 56px 32px 36px;
}

.tmp-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.tmp-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid oklch(30% 0.02 240);
}

.tmp-footer-brand img {
  height: 22px;
  filter: invert(90%) sepia(30%) saturate(200%) hue-rotate(145deg);
  margin-bottom: 14px;
  display: block;
}

.tmp-footer-brand-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 10px;
}
.tmp-footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 240px;
}

.tmp-footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(55% 0.02 240);
  margin-bottom: 14px;
}

.tmp-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tmp-footer-col a {
  text-decoration: none;
  color: oklch(65% 0.02 240);
  font-size: 13px;
  transition: color 0.15s;
}

.tmp-footer-col a:hover {
  color: var(--teal-mid);
}

.tmp-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: oklch(42% 0.02 240);
}

/* ── PAGE HERO (inner pages) ──────────────────────────────────── */
.tmp-page-hero {
  padding-top: 64px;
  background: var(--white);
  overflow: hidden;
  position: relative;
}

.tmp-page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 70% -10%,
    oklch(94% 0.06 192 / 0.4) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.tmp-page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 80% 70% at 60% 40%,
    black 30%,
    transparent 80%
  );
  opacity: 0.4;
}

.tmp-page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 32px 72px;
  position: relative;
  z-index: 1;
  max-width: 760px;
}

/* ── EYEBROW BADGE ────────────────────────────────────────────── */
.tmp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-light);
  color: var(--teal-dark);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.tmp-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
}

/* ── PAGE TYPOGRAPHY ──────────────────────────────────────────── */
.tmp-page-title {
  font-family: var(--ff-display);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 20px;
  text-wrap: pretty;
}

.tmp-page-title em {
  font-style: italic;
  color: var(--teal-dark);
}

.tmp-page-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 300;
  max-width: 600px;
}

/* ── SECTION BASE ─────────────────────────────────────────────── */
.tmp-section {
  padding: 80px 32px;
}
.tmp-section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.tmp-section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.tmp-section-title {
  font-family: var(--ff-display);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 14px;
  text-wrap: pretty;
}

.tmp-section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.65;
  font-weight: 300;
}

/* ── CARDS ────────────────────────────────────────────────────── */
.tmp-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.tmp-card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.tmp-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 28px 32px;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.tmp-card:hover {
  box-shadow: 0 12px 40px oklch(0% 0 0 / 0.06);
  transform: translateY(-2px);
}

.tmp-card-icon {
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
}

.tmp-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}
.tmp-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Dark card variant */
.tmp-card-dark {
  background: oklch(25% 0.03 240);
  border: none;
  border-radius: 12px;
  padding: 32px;
  transition: background 0.2s;
}

.tmp-card-dark:hover {
  background: oklch(27% 0.04 240);
}

.tmp-card-dark .tmp-step-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal-mid);
  margin-bottom: 14px;
}

.tmp-card-dark h3 {
  font-family: var(--ff-display);
  font-size: 20px;
  color: var(--white);
  margin-bottom: 10px;
}
.tmp-card-dark p {
  font-size: 14px;
  color: oklch(68% 0.02 240);
  line-height: 1.65;
}

/* ── CTA BANNER ───────────────────────────────────────────────── */
.tmp-cta-banner {
  background: var(--teal-dark);
  color: var(--white);
  padding: 80px 32px;
  text-align: center;
}

.tmp-cta-banner h2 {
  font-family: var(--ff-display);
  font-size: clamp(26px, 3.2vw, 40px);
  color: var(--white);
  margin-bottom: 14px;
}

.tmp-cta-banner p {
  font-size: 17px;
  color: oklch(85% 0.04 192);
  margin-bottom: 32px;
  font-weight: 300;
}

.tmp-cta-banner .tmp-btn-primary {
  background: var(--white);
  color: var(--teal-dark);
  font-size: 15px;
  padding: 14px 32px;
}

.tmp-cta-banner .tmp-btn-primary:hover {
  background: var(--teal-light);
}

/* ── DARK SECTION ─────────────────────────────────────────────── */
.tmp-dark-section {
  background: var(--navy);
  color: var(--white);
  padding: 80px 32px;
}
.tmp-dark-section .tmp-section-label {
  color: var(--teal-mid);
}
.tmp-dark-section .tmp-section-title {
  color: var(--white);
}
.tmp-dark-section .tmp-section-sub {
  color: oklch(72% 0.02 240);
}

.tmp-dark-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: oklch(30% 0.03 240);
  border: 2px solid oklch(30% 0.03 240);
  border-radius: 16px;
  overflow: hidden;
}

/* ── SCROLL REVEAL ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .tmp-card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tmp-dark-grid {
    grid-template-columns: 1fr;
  }
  .tmp-footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .tmp-card-grid,
  .tmp-card-grid-2 {
    grid-template-columns: 1fr;
  }

  /* Mobile nav */
  .tmp-nav-inner {
    gap: 0;
    padding: 0 16px;
  }

  .tmp-nav-logo-text span {
    display: none;
  }

  .tmp-nav-hamburger {
    display: flex;
  }

  .tmp-nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .tmp-nav-links.tmp-nav-links-open {
    max-height: 600px;
  }

  .tmp-nav-links li {
    padding: 8px 0;
  }

  .tmp-nav-links a {
    display: block;
    font-size: 14px;
    padding: 8px 0;
  }

  .tmp-nav-links .tmp-nav-dropdown {
    position: static;
  }

  .tmp-nav-links .tmp-nav-dropdown > a::after {
    content: ' ▾';
    font-size: 10px;
  }

  .tmp-dropdown-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin-top: 8px;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: max-height 0.3s ease;
  }

  .tmp-dropdown-menu::before {
    display: none;
  }

  .tmp-nav-links .tmp-nav-dropdown:focus-within .tmp-dropdown-menu,
  .tmp-nav-links .tmp-nav-dropdown .tmp-dropdown-menu.open {
    max-height: 500px;
  }

  .tmp-dropdown-menu li {
    padding: 4px 0;
  }

  .tmp-dropdown-menu li:first-child {
    padding-top: 0;
  }

  .tmp-dropdown-menu li:last-child {
    padding-bottom: 0;
  }

  .tmp-dropdown-menu li a {
    padding: 6px 0 6px 16px;
    font-size: 13px;
  }

  .tmp-nav-cta {
    position: absolute;
    top: 12px;
    right: 64px;
    margin-left: 0;
  }

  .tmp-btn-primary {
    padding: 8px 16px;
    font-size: 12px;
  }

  .tmp-footer-top {
    grid-template-columns: 1fr;
  }
}
