/* ============================================================
   VAARD — Valves Aviation & Airspace Research & Development
   Dark industrial theme based on the brand hero visual
   ============================================================ */

:root {
  --bg: #0a0e13;
  --bg-2: #0d131b;
  --panel: #111927;
  --panel-2: #141e2c;
  --line: rgba(148, 163, 184, 0.16);
  --text: #e7edf5;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-deep: #0ea5e9;
  --accent-2: #ff8a3d;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: 'Saira', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow-card: 0 10px 30px rgba(2, 6, 12, 0.45);
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.18rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(56, 189, 248, 0.35); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #06121c;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(14, 165, 233, 0.5); }
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-ghost {
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text);
  background: rgba(148, 163, 184, 0.06);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(10, 14, 19, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  background: rgba(9, 13, 18, 0.92);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 44px; height: 26px; color: var(--accent); flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: 0.09em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav > a:not(.btn) {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.18s ease;
}
.site-nav > a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    url('../img/hero.jpg') center / cover no-repeat,
    var(--bg-2);
  padding: calc(var(--header-h) + 40px) 0 90px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 17, 0.95) 0%, rgba(8, 12, 17, 0.78) 38%, rgba(8, 12, 17, 0.28) 72%, rgba(8, 12, 17, 0.45) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 14, 19, 0) 26%);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero .eyebrow {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead {
  font-size: 1.13rem;
  color: #c4cedb;
  max-width: 580px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 42px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}
.hero-meta li {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(10, 16, 24, 0.55);
  padding: 7px 14px;
  border-radius: 999px;
}
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid rgba(148, 163, 184, 0.5);
  border-radius: 14px;
  z-index: 2;
}
.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt {
  background:
    radial-gradient(1000px 400px at 85% 0%, rgba(14, 165, 233, 0.07), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { max-width: 720px; margin-bottom: 52px; }
.kicker {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head h2 { margin-bottom: 16px; }
.section-intro { color: var(--muted); font-size: 1.02rem; }

.grid { display: grid; gap: 22px; }
.services-grid { grid-template-columns: repeat(4, 1fr); }
.industries-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: var(--shadow-card);
}
.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon.sm { width: 42px; height: 42px; margin-bottom: 0; flex-shrink: 0; }
.card-icon.sm svg { width: 21px; height: 21px; }
.industry-card .card-icon svg { width: 32px; height: 32px; }

.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.94rem; }

.industry-card .tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(255, 138, 61, 0.4);
  background: rgba(255, 138, 61, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin: -6px 0 14px;
}
.industry-card h3 { margin-bottom: 10px; }
.industry-card > p { color: var(--muted); font-size: 0.94rem; margin-bottom: 16px; }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.tag-list li {
  font-size: 0.78rem;
  color: #b9c4d2;
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.07);
  padding: 4px 11px;
  border-radius: 999px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { color: #b9c4d2; margin-bottom: 16px; }
.about-text strong { color: var(--text); }
.about-panel {
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.about-panel h3 { margin-bottom: 18px; font-size: 1.1rem; }
.check-list { list-style: none; margin-bottom: 24px; }
.check-list li {
  position: relative;
  padding: 8px 0 8px 32px;
  color: #c4cedb;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.09);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.45);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 17px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.about-addr {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 0.88rem;
  color: var(--muted);
}
.about-addr .addr-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}
.contact-row {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-of-type { border-bottom: 0; }
.contact-row h4 { font-size: 0.98rem; margin-bottom: 6px; }
.contact-row p { color: var(--muted); font-size: 0.93rem; }
.contact-note {
  margin-top: 14px;
  font-size: 0.84rem;
  color: #64748b;
}

.contact-form { padding: 34px 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #b9c4d2;
  margin-bottom: 7px;
}
.form-field label em { color: var(--accent-2); font-style: normal; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: rgba(9, 14, 20, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.form-field input.invalid,
.form-field textarea.invalid { border-color: #f87171; }
.form-field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

/* honeypot — visually hidden but present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  opacity: 0;
}

.form-status { margin-top: 16px; font-size: 0.93rem; display: none; }
.form-status.ok { display: block; color: var(--ok); }
.form-status.err { display: block; color: #f87171; }
.form-error-detail { margin-top: 6px; font-size: 0.82rem; color: #64748b; display: none; }
.form-error-detail.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: #070a0f;
  border-top: 1px solid var(--line);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 44px;
  padding-bottom: 44px;
}
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 16px; max-width: 340px; }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-addr { color: #64748b; font-size: 0.86rem; margin-top: 10px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 20px 0 26px;
}
.footer-bottom p { color: #64748b; font-size: 0.84rem; }
.admin-link {
  color: #475569;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.admin-link:hover { color: var(--muted); }

/* ---------- Reveal animations (progressive enhancement: only
   hidden when JS adds the .js class to <html>) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint span { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(320px, 84vw);
    height: calc(100vh - var(--header-h));
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 28px 26px;
    background: rgba(9, 13, 18, 0.98);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }
  .site-nav.open { transform: none; }
  .site-nav > a:not(.btn) { font-size: 1.05rem; padding: 10px 0; }
  .nav-cta { margin-left: 0; margin-top: 14px; }
  .nav-toggle { display: flex; }
  .industries-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-panel { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero { padding-bottom: 120px; }
  .hero-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .brand-word { font-size: 1.15rem; }
}
