/* ===========================================================
   HURGE — design tokens
   Palette is anchored on the two required brand colours
   (mint #77c9bd, yolk #ffe658) against a deep teal-black ink,
   so the accents read as intentional rather than decorative.
   =========================================================== */

:root {
  --ink: #0f2622;
  --ink-2: #16342f;
  --ink-soft: #4a615c;
  --paper: #f3f7f5;
  --paper-raised: #ffffff;
  --line: #d8e6e2;
  --line-dark: #26433d;

  --mint: #77c9bd;
  --mint-deep: #4c9a8e;
  --mint-tint: #e4f4f1;
  --yolk: #ffe658;
  --yolk-deep: #e6c92f;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;

  --container: 1180px;
  --shadow-card: 0 20px 40px -24px rgba(15, 38, 34, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--mint-deep);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yolk);
  box-shadow: 0 0 0 4px rgba(255, 230, 88, 0.25);
}
.section--dark .eyebrow { color: var(--mint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--yolk);
  color: var(--ink);
  box-shadow: 0 10px 24px -10px rgba(255, 230, 88, 0.7);
}
.btn-primary:hover { background: var(--yolk-deep); box-shadow: 0 14px 28px -10px rgba(255, 230, 88, 0.8); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.section:not(.section--dark) .btn-outline:hover { background: rgba(15,38,34,0.06); }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: inherit;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 247, 245, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .dot { color: var(--mint-deep); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--mint-deep);
}

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 11px 20px; font-size: 14px; }
.call-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
}
.call-pill:hover { border-color: var(--mint-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--ink); color: #eaf3f1; }
.section--raised { background: var(--paper-raised); }
.section--border-top { border-top: 1px solid var(--line); }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { color: var(--ink-soft); font-size: 17px; }
.section--dark .section-head p { color: #b7cfca; }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: #eaf3f1;
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119,201,189,0.35), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -220px;
  left: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,230,88,0.16), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--mint);
  position: relative;
}
.hero-sub {
  font-size: 18px;
  color: #c3d9d4;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #93b4ad;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-note .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(119,201,189,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(119,201,189,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(119,201,189,0); }
  100% { box-shadow: 0 0 0 0 rgba(119,201,189,0); }
}

/* ----- Hero dashboard signature element ----- */
.dashboard {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-l);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #93b4ad;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dashboard-dots { display: flex; gap: 6px; }
.dashboard-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-label {
  font-size: 12px;
  color: #93b4ad;
  margin-bottom: 6px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}
.stat-value .up { color: var(--mint); font-size: 14px; margin-left: 4px; }
.dashboard-graph { width: 100%; height: 110px; display: block; }
.dashboard-graph .line {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw 1.8s ease forwards 0.3s;
}
.dashboard-graph .fill { opacity: 0; animation: fadein 1s ease forwards 1.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--mint);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--mint-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--mint-deep);
}
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 0; }

/* ---------- Process ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
.process-item {
  position: relative;
  padding: 0 24px 0 0;
  border-left: 1px solid var(--line-dark);
  padding-left: 24px;
}
.process-item:first-child { border-left: none; padding-left: 0; }
.process-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mint);
  margin-bottom: 14px;
  display: block;
}
.process-item h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.process-item p { color: #b7cfca; font-size: 14.5px; margin-bottom: 0; }

/* ---------- Cards: projects & articles ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card-media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--mint-tint), #fff 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .placeholder-mark {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mint-deep);
  opacity: 0.6;
}
.card-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--yolk);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
}
.card-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 18px; margin-bottom: 8px; }
.card-body p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 14px; }
.card-meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mint-deep);
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-stats {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.card-stats div { font-family: var(--font-mono); font-size: 13px; }
.card-stats b { display: block; font-size: 16px; color: var(--mint-deep); }

.empty-state {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-m);
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Contact / lead section ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-methods { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  padding: 16px 18px;
  border-radius: var(--radius-m);
  border: 1px solid rgba(255,255,255,0.14);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-method:hover { border-color: var(--mint); background: rgba(119,201,189,0.08); }
.contact-method .icn {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(119,201,189,0.16);
  display: flex; align-items: center; justify-content: center;
  color: var(--mint);
  flex-shrink: 0;
}
.contact-method .label { font-size: 12px; color: #93b4ad; font-family: var(--font-mono); }
.contact-method .value { font-size: 16px; font-weight: 600; color: #fff; }

.form-card {
  background: var(--paper-raised);
  border-radius: var(--radius-l);
  padding: 32px;
  color: var(--ink);
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  border-color: var(--mint-deep);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-msg { font-size: 14px; margin-top: 12px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { color: var(--mint-deep); }
.form-msg.err { color: #c0533f; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #b7cfca;
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 24px;
}
.footer-logo { font-family: var(--font-display); font-size: 22px; color: #fff; font-weight: 700; margin-bottom: 10px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: #93b4ad; margin-bottom: 14px; }
.footer-col a { display: block; text-decoration: none; color: #d3e6e2; font-size: 14.5px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #7f9c96;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Floating CTA ---------- */
.float-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.float-cta-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.float-cta.open .float-cta-options {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.float-cta-options a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}
.float-cta-btn {
  position: relative;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--yolk);
  border: none;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(255,230,88,0.7);
  transition: transform 0.2s ease;
}
.float-cta-btn:hover { transform: scale(1.06); }
.float-cta-btn svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.float-cta-btn .icon-close { opacity: 0; transform: translate(-50%, -50%) rotate(-45deg); }
.float-cta.open .float-cta-btn .icon-msg { opacity: 0; transform: translate(-50%, -50%) rotate(45deg); }
.float-cta.open .float-cta-btn .icon-close { opacity: 1; transform: translate(-50%, -50%) rotate(0deg); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  background: var(--ink);
  color: #eaf3f1;
  padding: 64px 0 56px;
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.page-hero p { color: #c3d9d4; font-size: 17px; max-width: 620px; margin-bottom: 0; }

/* ---------- Filters ---------- */
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  cursor: pointer;
  color: var(--ink-soft);
}
.filter-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Article/Project detail ---------- */
.detail-wrap { max-width: 760px; margin: 0 auto; }
.detail-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mint-deep);
  margin-bottom: 16px;
}
.detail-cover {
  border-radius: var(--radius-l);
  overflow: hidden;
  margin: 28px 0 40px;
  aspect-ratio: 16/9;
  background: var(--mint-tint);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 17px; color: #26332f; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 20px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose img { border-radius: var(--radius-m); margin: 20px 0; }
.prose a { color: var(--mint-deep); text-decoration-thickness: 1.5px; }
.prose blockquote {
  border-left: 3px solid var(--mint);
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  color: var(--ink-soft);
  font-style: italic;
}
.stats-strip {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--mint-tint);
  border-radius: var(--radius-m);
  padding: 24px 28px;
  margin: 32px 0;
}
.stats-strip div { font-family: var(--font-mono); }
.stats-strip b { display: block; font-size: 26px; color: var(--ink); }
.stats-strip span { font-size: 12.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.detail-cta {
  margin-top: 56px;
  padding: 32px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-l);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.detail-cta h3 { margin-bottom: 4px; }
.detail-cta p { color: #b7cfca; margin-bottom: 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 24px;
}
.back-link:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .process-item { border-left: none; padding-left: 0; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header-cta .call-pill,
  .header-cta .btn-primary { display: none; }
  .nav-toggle { display: block; }
  .header-cta { gap: 8px; }
  .services-grid, .card-grid, .process-list { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .section { padding: 64px 0; }

  .main-nav {
    position: fixed;
    top: -100vh; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transition: top 0.25s ease;
  }
  .main-nav.open { top: 76px; }
  .main-nav a.active::after { display: none; }
}
