/* =========================================================================
   WiserWorks — site stylesheet
   Single stylesheet, no framework, no third-party requests.

   Every colour below is copied verbatim from
   brands/wiserworks-llc/assets/design-tokens.json. No new colours are
   introduced, and the "permitted_on" scope rules in that file are respected:
     - --accent / --text-muted / --border-interactive are used on --bg and
       --surface only; on --surface-2 the documented escape-hatch values are
       used instead.
     - --accent is never used as a button fill behind white text (2.89:1).
     - The light primary button is --l-text with white text (15.62:1).
   Type scale: 48 / 40 / 30 / 22 / 17 / 14 px, per the tokens.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Fonts — self-hosted, SIL OFL 1.1, subset to Latin + Latin Extended-A
   (covers Turkish). No Google Fonts CDN. font-display: swap, and the system
   fallbacks in the token file are metrically close enough that the swap does
   not reflow the hero.
   ------------------------------------------------------------------------- */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------------------
   2. Tokens
   ------------------------------------------------------------------------- */
:root {
  /* dark surfaces */
  --bg: #0E141C;
  --surface: #1C2430;
  --surface-2: #28323F;
  --border: #2E3A48;
  --border-interactive: #6E7A88;
  --text: #F4F7FA;
  --text-secondary: #A6B2BF;
  --text-muted: #8793A0;
  --accent: #2AA7B2;
  --accent-on: #08191C;
  --focus: #6FD8E2;
  --logo-ink: #FFFFFF;
  /* documented escape hatches for --surface-2 only */
  --accent-on-surface-2: #38BAC5;
  --muted-on-surface-2: #95A1AD;
  --border-interactive-on-surface-2: #838D99;

  /* light sections */
  --l-bg: #F7F8FA;
  --l-surface: #FFFFFF;
  --l-border: #E1E6EB;
  --l-border-interactive: #838D99;
  --l-text: #1C2430;
  --l-text-secondary: #5A6672;
  --l-link: #0E7C86;
  --l-link-hover: #0A5F67;

  /* type */
  --font-heading: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: Inter, "Inter var", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;

  /* spacing / layout */
  --measure: 68ch;          /* token guidance: 62-72 characters */
  --page-max: 1140px;
  --gutter: 24px;
  --radius: 4px;            /* restrained; no shadows anywhere in this system */
}

/* -------------------------------------------------------------------------
   3. Reset / base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--l-bg);
  color: var(--l-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.005em;         /* -0.5% below 32px */
}
h1 { font-size: 40px; letter-spacing: -0.01em; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
h4 { font-size: 17px; }

@media (min-width: 800px) {
  h1 { font-size: 48px; letter-spacing: -0.01em; }
  h2 { font-size: 40px; letter-spacing: -0.01em; }
  h3 { font-size: 22px; }
}

p, ul, ol { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .4em; }
small, .small { font-size: 14px; }   /* 14px floor, never below */

strong { font-weight: 600; }

/* -------------------------------------------------------------------------
   4. Links and focus
   Links on dark: --accent + a 60%-opacity underline; hover --focus.
   Focus ring: 2px --focus with a 2px offset. Never outline:none.
   ------------------------------------------------------------------------- */
a { color: var(--l-link); text-decoration-color: color-mix(in srgb, currentColor 60%, transparent); text-underline-offset: 2px; }
a:hover { color: var(--l-link-hover); text-decoration-color: currentColor; }
a:visited { color: var(--l-link); }

:where(.section--dark, .site-header, .site-footer, .hero) a {
  color: var(--accent);
}
:where(.section--dark, .site-header, .site-footer, .hero) a:hover { color: var(--focus); }
:where(.section--dark, .site-header, .site-footer, .hero) a:visited { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}
/* On light backgrounds --focus alone is pale; pair it with a dark inner edge
   so the ring is visible on white too (non-text contrast, WCAG 1.4.11). */
.section--light :focus-visible,
body > main .section--light :focus-visible {
  outline-color: var(--l-link-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  padding: 12px 16px;
  font-weight: 500;
}
.skip-link:focus { left: 8px; top: 8px; }

/* -------------------------------------------------------------------------
   5. Layout helpers
   ------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.measure { max-width: var(--measure); }

.section { padding-block: 56px; }
@media (min-width: 800px) { .section { padding-block: 80px; } }

.section--light { background: var(--l-bg); color: var(--l-text); }
.section--white { background: var(--l-surface); color: var(--l-text); }
.section--dark { background: var(--bg); color: var(--text); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--text); }
.section--dark p, .section--dark li { color: var(--text-secondary); }

/* The dark-to-light seam is flush: no gradient, no diagonal divider. */

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--l-text-secondary);
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--accent); }

.lead { font-size: 22px; line-height: 1.45; }
@media (max-width: 600px) { .lead { font-size: 19px; } }

.section--light .lead, .section--white .lead { color: var(--l-text-secondary); }

/* -------------------------------------------------------------------------
   6. Header
   ------------------------------------------------------------------------- */
.site-header {
  background: var(--surface);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; order: 1; }
.header-right { order: 3; margin-left: auto; display: inline-flex; align-items: center; gap: 16px; }
.site-nav { order: 2; margin-left: auto; }
.brand img { width: 168px; height: auto; }
@media (min-width: 800px) { .brand img { width: 196px; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-interactive);
  border-radius: var(--radius);
  padding: 8px 12px;
  font: 500 14px/1 var(--font-body);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--focus); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-block;
  padding: 10px 2px;
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--focus); border-bottom-color: var(--focus); }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

.site-nav .nav-cta {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 9px 16px;
  color: var(--accent);
}
.site-nav .nav-cta:hover { border-color: var(--focus); color: var(--focus); }

.lang-switch { font-size: 14px; }
.lang-switch a { color: var(--text-secondary); text-decoration: none; font-weight: 500; }
.lang-switch a:hover { color: var(--focus); }
.lang-switch [aria-current="true"] { color: var(--text); font-weight: 600; }
.lang-switch span[aria-hidden="true"] { color: var(--border-interactive); padding: 0 6px; }

/* Small screens: the nav collapses behind a button. The button ships with the
   HTML `hidden` attribute and is only revealed by site.js, so a visitor with
   JavaScript disabled never sees a control that cannot work; for them
   noscript.css puts the full nav back on screen. */
@media (max-width: 899px) {
  .site-nav {
    display: none;
    order: 4;
    width: 100%;
    margin-left: 0;
    border-top: 1px solid var(--border);
    padding-block: 8px 16px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .site-nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 1px solid var(--accent); }
  .site-header .wrap { padding-block: 10px; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none !important; }
  .site-nav { display: block; }
}

/* Header fit (added 2026-10-18). Just above the point where the full menu appears (900px) the menu does not fit on one row at
   its normal spacing and the language switch drops to a second row: EN 900-920px (since the Drone Services item was added),
   TR 900-909px (already so before). In exactly those bands the menu gap is tightened; at every other width nothing changes. */
@media (min-width: 900px) and (max-width: 920px) {
  html[lang="en"] .site-nav ul { gap: 4px 12px; }
}
@media (min-width: 900px) and (max-width: 909px) {
  html[lang="tr"] .site-nav ul { gap: 4px 12px; }
}

/* -------------------------------------------------------------------------
   7. Hero (dark)
   ------------------------------------------------------------------------- */
.hero {
  background: var(--bg);
  color: var(--text);
  padding-block: 64px 72px;
}
@media (min-width: 800px) { .hero { padding-block: 96px 104px; } }
.hero h1 { color: var(--text); max-width: 18ch; }
.hero .lead { color: var(--text-secondary); max-width: 56ch; margin-top: 20px; }
.hero--compact { padding-block: 48px 52px; }
@media (min-width: 800px) { .hero--compact { padding-block: 72px 76px; } }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 32px;
  align-items: center;
}

/* -------------------------------------------------------------------------
   8. Buttons
   On dark: filled --accent with --accent-on text (6.23:1).
   On light: filled --l-text with white text (15.62:1) — deliberately not teal.
   ------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font: 500 16px/1.2 var(--font-body);
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn--primary { background: var(--l-text); color: #FFFFFF; border-color: var(--l-text); }
.btn--primary:hover { background: #0E141C; color: #FFFFFF; }
.btn--primary:visited { color: #FFFFFF; }

.btn--on-dark { background: var(--accent); color: var(--accent-on); border-color: var(--accent); }
.btn--on-dark:hover { background: var(--focus); color: var(--accent-on); border-color: var(--focus); }
.btn--on-dark:visited { color: var(--accent-on); }

.btn--ghost-dark { background: transparent; color: var(--text); border-color: var(--border-interactive); }
.btn--ghost-dark:hover { border-color: var(--focus); color: var(--focus); }
.btn--ghost-dark:visited { color: var(--text); }

.btn--ghost-light { background: transparent; color: var(--l-text); border-color: var(--l-border-interactive); }
.btn--ghost-light:hover { border-color: var(--l-text); color: var(--l-text); }

/* -------------------------------------------------------------------------
   9. Cards and grids
   ------------------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-bottom: .35em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--flat { background: transparent; border: 0; padding: 0; }

.section--dark .card {
  background: var(--surface-2);
  border-color: var(--border);
}
.section--dark .card h3 { color: var(--text); }
.section--dark .card p, .section--dark .card li { color: var(--text-secondary); }
/* On --surface-2 only the documented escape-hatch values are permitted. */
.section--dark .card a { color: var(--accent-on-surface-2); }
.section--dark .card a:hover { color: var(--focus); }
.section--dark .card .small { color: var(--muted-on-surface-2); }

/* Numbered step list (Discover -> Analyse -> Prototype -> Deploy) */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 20px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps > li {
  counter-increment: step;
  border-top: 2px solid var(--l-border);
  padding-top: 16px;
  margin: 0;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--l-link);
  margin-bottom: 6px;
}
.steps h3 { font-size: 19px; margin-bottom: .3em; }
.steps p { font-size: 16px; color: var(--l-text-secondary); margin: 0; }
.section--dark .steps > li { border-top-color: var(--border); }
.section--dark .steps > li::before { color: var(--accent); }
.section--dark .steps p { color: var(--text-secondary); }

/* Plain checked / crossed lists used on "What we do not do" */
.list-plain { list-style: none; padding-left: 0; }
.list-plain > li {
  padding-left: 28px;
  position: relative;
  margin-bottom: .6em;
}
.list-plain > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 10px;
  height: 2px;
  background: var(--l-link);
}
.section--dark .list-plain > li::before { background: var(--accent); }

/* Definition-style pairs used on About */
.pairs { display: grid; gap: 4px 32px; margin: 0 0 1.1em; }
@media (min-width: 720px) { .pairs { grid-template-columns: 200px 1fr; } }
.pairs dt { font-weight: 600; font-family: var(--font-heading); }
.pairs dd { margin: 0 0 12px; color: var(--l-text-secondary); }

/* -------------------------------------------------------------------------
   10. Call-to-action band
   ------------------------------------------------------------------------- */
.cta-band { background: var(--surface); color: var(--text); padding-block: 48px; }
.cta-band h2 { color: var(--text); margin-bottom: .35em; }
.cta-band p { color: var(--text-secondary); }
.cta-band .hero-actions { margin-top: 24px; }

/* -------------------------------------------------------------------------
   11. Forms
   ------------------------------------------------------------------------- */
.form { max-width: 640px; }
.field { margin-bottom: 20px; }
.field > label {
  display: block;
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--l-text);
}
.field .hint { display: block; font-size: 14px; color: var(--l-text-secondary); margin-bottom: 6px; }
.req { color: var(--l-link-hover); }

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font: 400 17px/1.5 var(--font-body);
  color: var(--l-text);
  background: var(--l-surface);
  border: 1px solid var(--l-border-interactive);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--l-link-hover);
  outline-offset: 1px;
  border-color: var(--l-link-hover);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #0A5F67; border-width: 2px; }

.field--check { display: flex; gap: 10px; align-items: flex-start; }
.field--check input { margin-top: .35em; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--l-link); }
.field--check label { font-weight: 400; font-size: 16px; }

/* Honeypot: hidden from sighted users AND from screen readers/keyboard.
   A real visitor never sees or tabs into it; naive bots fill it in. */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status { margin-bottom: 20px; }
.form-status:empty { display: none; }
.notice {
  border: 1px solid var(--l-border);
  border-left: 4px solid var(--l-link);
  background: var(--l-surface);
  padding: 14px 16px;
  border-radius: var(--radius);
}
.notice--error { border-left-color: #0A5F67; }
.notice p:last-child { margin-bottom: 0; }
.notice-title { font-weight: 600; font-family: var(--font-heading); display: block; margin-bottom: 4px; }

/* Marker style for unfinished copy. No page uses it any more -- every
   placeholder was replaced with real content on 2026-09-22 -- but the rule is
   kept so a future draft can flag missing copy the same way. */
.placeholder {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--l-text-secondary);
  background: #FFFFFF;
  border: 1px dashed var(--l-border-interactive);
  border-radius: var(--radius);
  padding: 2px 8px;
}
.section--dark .placeholder,
.site-footer .placeholder {
  color: var(--text-secondary);
  background: var(--surface);
  border-color: var(--border-interactive);
}

/* -------------------------------------------------------------------------
   12. Language notice (TR home -> EN pages)
   ------------------------------------------------------------------------- */
.lang-note {
  border: 1px solid var(--l-border);
  border-left: 4px solid var(--l-link);
  background: var(--l-surface);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.lang-note p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------------
   13. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg);
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-block: 48px 32px;
  font-size: 16px;
}
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 {
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--focus); text-decoration: underline; }
.site-footer .brand img { width: 180px; margin-bottom: 14px; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   14. Utilities
   ------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.center { text-align: center; }

/* Reserve space for the header logo so the swap-in of the SVG cannot shift
   layout (CLS): the img has explicit width/height attributes in the HTML. */
