/* ============================================
   TECH HIKE — DESIGN SYSTEM
   ============================================ */

:root {
  /* Color tokens */
  --navy: #14335E;
  --navy-dark: #0B2038;
  --teal: #1CA88F;
  --teal-bright: #17C4A8;
  --sky: #B5CFF7;
  --ink: #1A1F2B;
  --muted: #64748B;
  --cloud: #F7F9FC;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --success: #2FA84F;
  --warning: #E8A93D;
  --error: #D64545;

  /* Type */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 1200px;
  --shadow: 0 1px 2px rgba(20, 51, 94, 0.06), 0 4px 16px rgba(20, 51, 94, 0.06);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; color: var(--navy); }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 12px 20px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--cloud); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  color: var(--teal); text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 14px; display: inline-block;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); }
.section-head p { color: var(--muted); font-size: 17px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 15px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  border: none; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-bright); box-shadow: 0 8px 20px rgba(28,168,143,0.28); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost { background: var(--cloud); color: var(--muted); }
.btn-ghost:hover { background: var(--border); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--container); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--navy); }
.brand img { height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; color: var(--ink);
  position: relative;
}
.nav-link:hover { background: var(--cloud); color: var(--navy); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow);
  min-width: 280px; padding: 10px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: all 0.18s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.dropdown a:hover { background: var(--cloud); }
.dropdown a strong { display: block; color: var(--navy); font-weight: 500; margin-bottom: 2px; }
.dropdown a span { color: var(--muted); font-size: 13px; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: none; padding: 8px; }
.menu-toggle svg { width: 24px; height: 24px; stroke: var(--navy); }

@media (max-width: 900px) {
  .main-nav { position: fixed; inset: 64px 0 0 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 20px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; margin-left: 12px; }
  .has-dropdown.open .dropdown { display: block; }
  .menu-toggle { display: block; }
  .nav-cta .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, var(--cloud) 0%, var(--white) 100%);
  position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.01em; }
.hero .lede { font-size: 18px; color: var(--muted); max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  aspect-ratio: 4/3; border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-dark) 100%);
  position: relative; overflow: hidden;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(28,168,143,0.35) 1px, transparent 1px);
  background-size: 26px 26px; opacity: 0.5;
}
.hero-visual .pulse-line {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.hero-visual svg { width: 72%; opacity: 0.9; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; max-height: 280px; } }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px; transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--teal); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(28,168,143,0.1);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--teal); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.card-link { font-size: 14px; font-weight: 500; color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

/* ---------- Stats ---------- */
.stats-band { background: var(--navy); border-radius: var(--radius-lg); padding: 48px; color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; text-align: center; }
.stat-value { font-family: var(--font-mono); font-size: clamp(30px, 4vw, 42px); font-weight: 500; color: var(--teal-bright); }
.stat-label { font-size: 14px; color: var(--sky); margin-top: 6px; }

/* ---------- Personas ---------- */
.persona-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.persona-card { border-left: 3px solid var(--teal); padding: 4px 0 4px 24px; }
.persona-card h3 { font-size: 17px; margin-bottom: 8px; }
.persona-card p { color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius-lg); padding: 64px; text-align: center; color: var(--white);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--sky); max-width: 560px; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: var(--sky); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 30px; }
.footer-brand span { color: var(--white); font-weight: 600; font-size: 17px; }
.site-footer p { color: var(--muted); font-size: 14px; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 14px; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--sky); font-size: 14px; padding: 6px 0; opacity: 0.85; }
.footer-col a:hover { opacity: 1; color: var(--teal-bright); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--muted);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Inner page hero ---------- */
.page-hero { padding: 56px 0 48px; background: var(--cloud); }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.page-hero .lede { color: var(--muted); font-size: 17px; max-width: 620px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--teal); }

/* ---------- Prose ---------- */
.prose { max-width: 720px; }
.prose p { font-size: 16px; color: var(--ink); }
.prose h3 { margin-top: 1.4em; font-size: 19px; }

/* ---------- Checklist ---------- */
.check-list li { display: flex; gap: 10px; padding: 9px 0; font-size: 15.5px; }
.check-list svg { flex-shrink: 0; width: 20px; height: 20px; stroke: var(--teal); margin-top: 2px; }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { min-height: 140px; resize: vertical; }
.honeypot-field { position: absolute; left: -9999px; top: -9999px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.form-status { margin-top: 18px; font-size: 14px; padding: 12px 14px; border-radius: 8px; display: none; }
.form-status.success { background: rgba(47,168,79,0.1); color: var(--success); display: block; }
.form-status.error { background: rgba(214,69,69,0.1); color: var(--error); display: block; }
.contact-aside { background: var(--cloud); border-radius: var(--radius-md); padding: 28px; }
.contact-aside h3 { font-size: 16px; margin-bottom: 10px; }
.contact-aside p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.contact-aside a.email-link { color: var(--teal); font-weight: 500; }

/* ---------- Legal pages ---------- */
.legal-body h2 { font-size: 20px; margin-top: 1.6em; }
.legal-body p, .legal-body li { color: var(--muted); font-size: 15px; }
.legal-body ul { padding-left: 20px; list-style: disc; margin-bottom: 1em; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
