/* Errota Systems LLC — site styles */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #F4F6F7;
  --surface: #FFFFFF;
  --ink: #14212B;
  --muted: #51606B;
  --line: #D9E0E4;
  --primary: #24566B;
  --primary-ink: #FFFFFF;
  --accent: #C98A1E;
  --ok: #2E7D4F;
  --err: #B3261E;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E171D;
    --surface: #15222A;
    --ink: #E4ECEF;
    --muted: #93A3AC;
    --line: #253540;
    --primary: #7DB8CC;
    --primary-ink: #0E171D;
    --accent: #E2A845;
    --ok: #6FCF97;
    --err: #F2827A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E171D;
  --surface: #15222A;
  --ink: #E4ECEF;
  --muted: #93A3AC;
  --line: #253540;
  --primary: #7DB8CC;
  --primary-ink: #0E171D;
  --accent: #E2A845;
  --ok: #6FCF97;
  --err: #F2827A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.375rem); }
h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.brand svg { width: 30px; height: 30px; }
.brand .blades { fill: var(--primary); }
.brand .hub { fill: var(--accent); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; font-weight: 600; }
.nav a:hover { color: var(--ink); }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
[data-theme-current="dark"] .theme-toggle .sun { display: none; }
[data-theme-current="dark"] .theme-toggle .moon { display: block; }
@media (max-width: 720px) { .nav .nav-link { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--font-body); padding: 14px 22px; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: center; }
.hero p.lead { margin-top: 22px; font-size: 1.1875rem; color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.rotor { width: 100%; max-width: 360px; justify-self: end; aspect-ratio: 1; }
.rotor .blades { fill: var(--primary); transform-origin: 50% 50%; animation: turn 2.4s cubic-bezier(.2,.7,.2,1) both; }
.rotor .hub { fill: var(--accent); }
.rotor .ring { fill: none; stroke: var(--line); stroke-width: .4; }
@keyframes turn { from { transform: rotate(-120deg); } to { transform: rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .rotor .blades { animation: none; } }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .rotor { max-width: 200px; justify-self: start; order: -1; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: end; margin-bottom: 48px; }
.section-head p { color: var(--muted); max-width: 36em; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; gap: 14px; } }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.service { padding: 26px 0; border-top: 1px solid var(--line); }
.service p { margin-top: 8px; color: var(--muted); }
@media (max-width: 720px) { .services { grid-template-columns: 1fr; } }

.surface-band { background: var(--surface); }
.equipment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; }
.equipment h3 { font-size: 1.0625rem; }
.equipment p { margin-top: 6px; color: var(--muted); font-size: 0.9875rem; }
@media (max-width: 900px) { .equipment { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .equipment { grid-template-columns: 1fr; } }
.note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; max-width: 52em; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--primary);
  color: var(--primary); font: 700 1rem/1 var(--font-display); margin-bottom: 18px;
}
.steps p { margin-top: 8px; color: var(--muted); font-size: 0.9875rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.contact-info p { color: var(--muted); }
.contact-info dl { margin: 28px 0 0; }
.contact-info dt { font-weight: 600; font-size: 0.9375rem; margin-top: 18px; }
.contact-info dd { margin: 2px 0 0; color: var(--muted); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 36px; } }

form { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3vw, 32px); }
.surface-band form { background: var(--bg); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 0.9375rem; }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; width: 100%;
}
.surface-band input, .surface-band select, .surface-band textarea { background: var(--surface); }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.9375rem; color: var(--muted); margin-bottom: 22px; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--primary); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; font-size: 0.9375rem; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 0.9375rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* Legal pages */
.legal { padding: clamp(48px, 7vw, 80px) 0 80px; }
.legal .wrap { max-width: 780px; }
.legal .updated { color: var(--muted); margin-top: 10px; }
.legal h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.25em; margin: 12px 0; }
.legal li + li { margin-top: 6px; }
.legal .back { display: inline-block; margin-bottom: 28px; font-weight: 600; text-decoration: none; }

/* 404 */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound p { color: var(--muted); margin: 16px 0 28px; }
