/* ==========================================================================
   Dronetjenesten — site styles
   Built on the V1.0 brand token set (ink / paper / slate foundation).
   ========================================================================== */

:root {
  /* Brand colour tokens */
  --c-ink: #0f2b33;     /* deep petrol — primary text & dark surfaces */
  --c-paper: #f6f2ea;   /* warm sand — primary background */
  --c-smoke: #f0f0ee;   /* soft neutral surface */
  --c-slate: #4a7fa5;   /* accent — links, buttons, focus */
  --c-sage: #7a9e7e;    /* data / category tags only */
  --c-mid: #9c9482;     /* supporting text, dividers */
  --c-white: #ffffff;

  --c-ink-90: rgba(15, 43, 51, 0.90);
  --c-ink-70: rgba(15, 43, 51, 0.70);
  --c-ink-55: rgba(15, 43, 51, 0.55);
  --c-ink-12: rgba(15, 43, 51, 0.12);
  --c-paper-80: rgba(246, 242, 234, 0.80);
  --c-paper-60: rgba(246, 242, 234, 0.60);
  --c-paper-15: rgba(246, 242, 234, 0.15);

  /* Type families */
  --f-display: 'Archivo', system-ui, sans-serif;
  --f-body: 'Inter Tight', 'Archivo', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Fluid type scale */
  --s-xs: 0.75rem;
  --s-sm: 0.875rem;
  --s-md: 1rem;
  --s-lg: 1.25rem;
  --s-xl: clamp(1.5rem, 1.1rem + 1.6vw, 1.9rem);
  --s-2xl: clamp(2rem, 1.3rem + 3vw, 3rem);
  --s-3xl: clamp(2.6rem, 1.2rem + 6vw, 5.5rem);

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Spacing */
  --space-section: clamp(4rem, 2rem + 8vw, 8rem);
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);

  --shadow-card: 0 8px 28px rgba(15, 43, 51, 0.08);
  --shadow-lift: 0 16px 44px rgba(15, 43, 51, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Reset & base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  background: var(--c-paper);
  color: var(--c-ink);
  font-size: var(--s-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--c-slate); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--c-slate);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--c-ink); color: var(--c-paper);
  padding: 10px 16px; border-radius: var(--r-md); z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; text-decoration: none; }

/* ----- Layout helpers ----------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--s-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-slate);
  font-weight: 500;
}

.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--s-2xl);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 0.6rem;
}
.section-head p { margin-top: 1rem; color: var(--c-ink-70); font-size: var(--s-lg); max-width: 52ch; }

/* ----- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--f-body); font-weight: 600;
  font-size: var(--s-md);
  padding: 0.85em 1.5em;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--c-slate); color: var(--c-white); }
.btn-primary:hover { background: #3f6f92; }
.btn-ink { background: var(--c-ink); color: var(--c-paper); }
.btn-ink:hover { background: #163945; }
.btn-ghost { background: transparent; color: var(--c-ink); border-color: var(--c-ink-12); }
.btn-ghost:hover { border-color: var(--c-ink); }
.on-ink .btn-ghost { color: var(--c-paper); border-color: var(--c-paper-15); }
.on-ink .btn-ghost:hover { border-color: var(--c-paper); }
.btn .arrow { transition: transform 0.18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ----- Header / nav ------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-header.scrolled {
  background: var(--c-paper-80);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--c-ink-12);
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--c-paper); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .mark path { fill: currentColor; }
.brand .wordmark {
  font-family: var(--f-display); font-weight: 800;
  font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1;
}
.site-header.scrolled .brand { color: var(--c-ink); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 0.4rem + 1.6vw, 2.2rem); }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 0.4rem + 1.6vw, 2rem); }
.nav-links a {
  color: var(--c-paper); font-weight: 500; font-size: var(--s-sm);
  letter-spacing: 0.01em; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--c-slate); transition: right 0.25s var(--ease);
}
.nav-links a:hover { text-decoration: none; }
.nav-links a:hover::after { right: 0; }
.site-header.scrolled .nav-links a { color: var(--c-ink); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: inherit; }
.nav-toggle svg { width: 26px; height: 26px; stroke: currentColor; }

/* ----- Hero --------------------------------------------------------------- */
.hero {
  position: relative; background: var(--c-ink); color: var(--c-paper);
  padding-top: clamp(7rem, 5rem + 9vw, 11rem);
  padding-bottom: clamp(3rem, 2rem + 5vw, 6rem);
  overflow: hidden;
}
.hero::before { /* faint topographic grid */
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--c-paper-15) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-paper-15) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000, transparent 75%);
  opacity: 0.5; pointer-events: none;
}
.hero .container { position: relative; }
.hero-inner { max-width: 18ch; }
.hero h1 {
  font-family: var(--f-display); font-weight: 900;
  font-size: var(--s-3xl); line-height: 0.92; letter-spacing: -0.035em;
  margin-top: 1.4rem; text-transform: uppercase;
}
.hero h1 .accent { color: var(--c-slate); }
.hero .lede {
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.45rem);
  color: var(--c-paper-80); max-width: 46ch; margin-top: 1.6rem; line-height: 1.5;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }
.telemetry {
  font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: 0.12em;
  color: var(--c-paper-60); margin-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-items: center;
}
.telemetry .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--c-sage); display: inline-block; }

/* ----- Trust bar ---------------------------------------------------------- */
.trust { background: var(--c-ink); border-top: 1px solid var(--c-paper-15); color: var(--c-paper); }
.trust .container {
  display: flex; flex-wrap: wrap; gap: 0.8rem 2.4rem; justify-content: space-between;
  padding-block: 1.15rem; align-items: center;
}
.trust span { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--s-sm); color: var(--c-paper-80); }
.trust span svg { width: 18px; height: 18px; stroke: var(--c-sage); flex: none; }

/* ----- Services ----------------------------------------------------------- */
.services-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.service-card {
  background: var(--c-white); border: 1px solid var(--c-ink-12);
  border-radius: var(--r-lg); padding: 1.6rem 1.5rem 1.7rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.service-card .icon {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: var(--c-paper); display: grid; place-items: center; flex: none;
}
.service-card .icon svg { width: 40px; height: 40px; }
.service-card .num { font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: 0.18em; color: var(--c-mid); }
.service-card h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--s-xl); line-height: 1.05; letter-spacing: -0.01em; }
.service-card p { color: var(--c-ink-70); font-size: var(--s-sm); line-height: 1.55; }

/* ----- About / stats ------------------------------------------------------ */
.about { background: var(--c-smoke); }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 1rem + 5vw, 5rem); align-items: center; }
.about-copy p + p { margin-top: 1rem; color: var(--c-ink-70); }
.about-copy .lead { font-size: var(--s-lg); color: var(--c-ink); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--c-ink-12); border: 1px solid var(--c-ink-12); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--c-paper); padding: 1.6rem 1.4rem; }
.stat .num { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); line-height: 1; letter-spacing: -0.02em; color: var(--c-ink); }
.stat .label { font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-mid); margin-top: 0.6rem; }

/* ----- Process ------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding-top: 1.6rem; border-top: 2px solid var(--c-ink); }
.step .n { font-family: var(--f-mono); font-size: var(--s-sm); color: var(--c-slate); font-weight: 600; }
.step h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--s-xl); margin-top: 0.5rem; letter-spacing: -0.01em; }
.step p { margin-top: 0.6rem; color: var(--c-ink-70); font-size: var(--s-sm); }

/* ----- Contact ------------------------------------------------------------ */
.contact { background: var(--c-ink); color: var(--c-paper); }
.contact .section-head h2 { color: var(--c-paper); }
.contact .section-head p { color: var(--c-paper-80); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 1rem + 5vw, 4.5rem); align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-item .k { font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-paper-60); }
.contact-item .v { font-size: var(--s-lg); margin-top: 0.25rem; }
.contact-item .v a { color: var(--c-paper); border-bottom: 1px solid var(--c-paper-15); }
.contact-item .v a:hover { color: var(--c-slate); text-decoration: none; border-color: var(--c-slate); }

.form { display: grid; gap: 1rem; }
.form .row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: var(--s-sm); color: var(--c-paper-80); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--c-paper); background: rgba(246,242,234,0.06);
  border: 1px solid var(--c-paper-15); border-radius: var(--r-md);
  padding: 0.8em 0.9em; transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--c-paper-60); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--c-slate); background: rgba(246,242,234,0.10); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.form .actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form .note { font-size: var(--s-xs); color: var(--c-paper-60); }

/* ----- Footer ------------------------------------------------------------- */
.site-footer { background: var(--c-ink); color: var(--c-paper-80); border-top: 1px solid var(--c-paper-15); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand { max-width: 34ch; }
.footer-brand .brand { color: var(--c-paper); }
.footer-brand .tag { margin-top: 1rem; color: var(--c-paper-60); font-size: var(--s-sm); }
.footer-cols { display: flex; gap: clamp(2rem, 1rem + 4vw, 4.5rem); flex-wrap: wrap; }
.footer-col h4 { font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-paper-60); margin-bottom: 0.9rem; font-weight: 500; }
.footer-col a, .footer-col span { display: block; color: var(--c-paper-80); font-size: var(--s-sm); padding: 0.22rem 0; }
.footer-col a:hover { color: var(--c-paper); text-decoration: none; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); padding-top: 1.4rem;
  border-top: 1px solid var(--c-paper-15);
  font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: 0.08em; color: var(--c-paper-60);
}

/* ----- Reveal on scroll --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ----- Responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-ink); padding: 0.5rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--c-paper-15);
    transform: translateY(-130%); transition: transform 0.32s var(--ease); z-index: 90;
  }
  .nav-links.open { transform: none; }
  .nav-links a { color: var(--c-paper); padding: 0.9rem 0; border-bottom: 1px solid var(--c-paper-15); font-size: var(--s-md); }
  .site-header.scrolled .nav-links a { color: var(--c-paper); }
  .nav-links a::after { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .form .row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}

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