/* ============ SpiroTech Global Styles ============ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  --bg: #0b0d10;
  --panel: #11141a;
  --text: #eaeaea;
  --muted: #9ca3af;
  --accent: #00e5ff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* NAV */
.nav {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 24px;
  font-weight: 500;
}
.nav a:hover { color: var(--accent); }

/* ============ ACTIVE NAV LINK ============ */

/* Base nav link (already in your file) */
/* .nav a { color: var(--text); ... } */

/* Current-page link */
.nav a.active {
  color: var(--accent);
  position: relative;
}

/* Underline accent for current page (desktop & mobile) */
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;                 /* distance below text */
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.9;
}

/* Optional: subtle hover lift on all nav links */
.nav a:hover {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 120px 20px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 229, 255, 0.16), transparent 22%),
    radial-gradient(circle at 80% 30%, rgba(0, 229, 255, 0.10), transparent 18%),
    linear-gradient(135deg, #020617 0%, #0b1120 45%, #07131f 100%);
}

/* Animated grid overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.65), rgba(0,0,0,0.08));
  animation: heroGridMove 18s linear infinite;
}

/* Soft floating glow blobs */
.hero::after {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(circle at 25% 40%, rgba(0, 229, 255, 0.12), transparent 18%),
    radial-gradient(circle at 75% 60%, rgba(0, 229, 255, 0.10), transparent 16%),
    radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.05), transparent 14%);
  filter: blur(20px);
  animation: heroGlowFloat 10s ease-in-out infinite alternate;
}

/* Larger logo */
.hero img {
  width: clamp(170px, 18vw, 240px);
  margin-bottom: 28px;
  filter:
    drop-shadow(0 10px 24px rgba(0, 229, 255, 0.16))
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin-bottom: 14px;
  color: var(--accent);
  letter-spacing: 0.3px;
}

.hero p {
  max-width: 720px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 1.06rem;
}

/* Animation keyframes */
@keyframes heroGridMove {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(48px);
  }
}

@keyframes heroGlowFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, -12px, 0) scale(1.04);
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after {
    animation: none;
  }
}

/* ============ BUTTON MICRO-INTERACTIONS ============ */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border: 0;

  /* Interaction polish */
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
  will-change: transform;
}

/* Hover: lift + glow */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 229, 255, 0.28);
  filter: brightness(1.05);
}

/* Active: press down */
.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 229, 255, 0.22);
}

/* Keyboard accessibility */
.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(0, 229, 255, 0.35),
    0 10px 28px rgba(0, 229, 255, 0.28);
}

.btn:hover {
  filter: brightness(1.05);
}

/* LAYOUT */
.section { max-width: 1100px; margin: auto; padding: 80px 20px; }
.section h2 { text-align: center; font-size: 2rem; margin-bottom: 48px; }

/* CARDS & GRID */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--panel); border-radius: 12px; padding: 28px; border: 1px solid rgba(255,255,255,0.06); }
.card h3 { margin-top: 0; color: var(--accent); }
.card p  { color: var(--muted); font-size: 0.95rem; }

/* ICON + TEXT row (for service bullets) */
.row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  margin: 10px 0;
}
.badge {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center;
  background: #0e1820; border: 1px solid rgba(0,229,255,0.25); color: var(--accent);
  font-weight: 700; font-size: 0.85rem;
}

/* PRICING TEASER (no public prices—CTA only) */
.plan {
  background: linear-gradient(180deg, rgba(0,229,255,0.08), rgba(0,229,255,0.02));
  border: 1px solid rgba(0,229,255,0.15);
}

/* FOOTER */
footer {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* UTILITIES */
.center { text-align: center; }
.m0   { margin: 0; }
.mt8  { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.mt32 { margin-top: 32px; }
.mt48 { margin-top: 48px; }

/* ===== Homepage trust / positioning sections ===== */

.section-lead {
  max-width: 760px;
  margin: 0 auto 18px;
  text-align: center;
  color: var(--muted);
  font-size: 1.02rem;
}

.kicker {
  display: inline-block;
  margin: 0 auto 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.18);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.panel {
  background: var(--panel);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.06);
}

.panel h3 {
  margin-top: 0;
  color: var(--accent);
}

.panel p,
.panel li {
  color: var(--muted);
}

.bullets {
  margin: 0;
  padding-left: 18px;
}

.bullets li {
  margin: 10px 0;
}

.steps {
  display: grid;
  gap: 18px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #0e1820;
  border: 1px solid rgba(0,229,255,0.25);
  color: var(--accent);
  font-weight: 700;
}

.step h4 {
  margin: 0 0 6px 0;
  color: var(--text);
}

.step p {
  margin: 0;
  color: var(--muted);
}

.highlight {
  background: linear-gradient(180deg, rgba(0,229,255,0.08), rgba(0,229,255,0.02));
  border: 1px solid rgba(0,229,255,0.15);
}

.cta-strip {
  text-align: center;
  margin-top: 32px;
}

/* ===== Mobile nav cleanup ===== */
@media (max-width: 860px) {
  .nav {
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .brand {
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  .nav > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    align-items: center;
  }

  .nav a {
    margin-left: 0;
    text-align: center;
    font-size: 0.98rem;
    line-height: 1.2;
  }

  .nav a.active::after {
    bottom: -4px;
  }

  .nav a.btn {
    grid-column: 1 / -1;
    width: 100%;
    padding: 12px 18px;
  }

  .hero {
    padding: 88px 18px;
  }

  .hero img {
    width: clamp(140px, 34vw, 200px);
    margin-bottom: 22px;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    line-height: 1.08;
  }

  .hero p {
    font-size: 1rem;
  }

  .split {
    grid-template-columns: 1fr;
  }
}

/* Contact / Quote Form */
.contact-form-section {
  padding: 3rem 0;
}

.contact-form {
  margin-top: 1.5rem;
  background: #ffffff;
  border: 1px solid #dfe5ec;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  color: #1c2a39;
}

.required {
  color: #c62828;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  font: inherit;
  color: #16202a;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #1f6feb;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.form-actions {
  margin-top: 1.25rem;
}

.contact-form .btn {
  min-width: 180px;
}

.contact-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  display: none;
  font-weight: 500;
}

.form-status.status-loading,
.form-status.status-success,
.form-status.status-error {
  display: block;
}

.form-status.status-loading {
  background: #eef4ff;
  color: #174ea6;
  border: 1px solid #cfe0ff;
}

.form-status.status-success {
  background: #edf9f0;
  color: #1b5e20;
  border: 1px solid #cce9d2;
}

.form-status.status-error {
  background: #fff3f3;
  color: #b42318;
  border: 1px solid #f3c7c7;
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 768px) {
  .contact-form {
    padding: 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form .btn {
    width: 100%;
  }
}
