/* RotorWise Media - styles.css
   Plain CSS, no build step. Brand: dark navy, white, blue. */

:root {
  --navy-950: #060e20;
  --navy-900: #0a1630;
  --navy-800: #10224a;
  --navy-700: #1a3166;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-300: #8fb0ff;
  --white: #ffffff;
  --mist: #f3f6fc;
  --ink: #0a1630;
  --ink-soft: #46546f;
  --on-dark: #b9c5df;
  --line-light: #d9e1f0;
  --line-dark: rgba(255, 255, 255, 0.16);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --radius: 10px;
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.25rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--blue-600); }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--white); color: var(--navy-900); padding: 0.6rem 1rem; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 3px; border-radius: 4px; }
.section--light :focus-visible, .section--mist :focus-visible { outline-color: var(--blue-600); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.75rem 1.5rem;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover { background: var(--blue-700); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: var(--white); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(6, 14, 32, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--white); text-decoration: none; font: 700 1.2rem/1 var(--font-display); letter-spacing: -0.01em; }
.brand svg { width: 2rem; height: 2rem; color: var(--blue-300); }
.brand span span { color: var(--blue-300); font-weight: 500; }

.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav ul { display: flex; gap: 1.6rem; }
.primary-nav a:not(.btn) { color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: 0.97rem; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.primary-nav a:not(.btn):hover { color: var(--white); }
.primary-nav a[aria-current="location"]:not(.btn) { color: var(--white); border-bottom-color: var(--blue-600); }
.primary-nav .btn { min-height: 2.6rem; padding: 0.5rem 1.2rem; font-size: 0.95rem; }

.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; background: transparent; border: 1px solid var(--line-dark); border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 1.3rem; height: 2px; background: var(--white); border-radius: 2px; content: ""; position: relative; transition: transform 0.2s, background-color 0.2s; }
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--light { background: var(--white); color: var(--ink); }
.section--mist { background: var(--mist); color: var(--ink); }
.section--dark { background: var(--navy-900); color: var(--white); }
.section--dark p { color: var(--on-dark); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; }
.section--dark .section-head p { color: var(--on-dark); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy-950); color: var(--white); padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(4rem, 9vw, 7rem); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60rem 36rem at 78% 45%, rgba(37, 99, 235, 0.28), transparent 70%);
}
.hero-copy { position: relative; z-index: 1; max-width: 41rem; }
.hero-copy .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--on-dark); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2rem 0 1.5rem; }
.hero-note { font-size: 0.92rem; color: var(--on-dark); margin: 0; }
.hero-rotor { position: absolute; z-index: 0; right: -14%; top: 50%; width: min(62vw, 46rem); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
.hero-rotor svg { width: 100%; height: 100%; }
.rotor-blades { transform-origin: 200px 200px; animation: rotor-spin 40s linear infinite; }
@keyframes rotor-spin { to { transform: rotate(360deg); } }

/* One orchestrated page-load moment: the hero text */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.34s; }
}
@media (prefers-reduced-motion: reduce) { .rotor-blades { animation: none; } }

/* About */
.about-grid { display: grid; gap: clamp(2rem, 6vw, 5rem); grid-template-columns: 1fr; }
.principles { display: grid; gap: 1.6rem; }
.principles li { border-left: 3px solid var(--blue-600); padding-left: 1.2rem; }
.principles h3 { margin-bottom: 0.3em; }
.principles p { margin: 0; color: var(--ink-soft); }

/* Services: a ruled list, not a card grid */
.service-list { border-bottom: 1px solid var(--line-light); }
.service { display: grid; gap: 0.4rem 3rem; padding: 1.8rem 0; border-top: 1px solid var(--line-light); }
.service h3 { margin: 0; font-size: 1.4rem; }
.service p { margin: 0; color: var(--ink-soft); max-width: 58ch; }

/* How it works */
.steps { display: grid; gap: 2.2rem; grid-template-columns: 1fr; counter-reset: step; }
.step { position: relative; padding-top: 1.4rem; border-top: 2px solid var(--line-dark); }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 3.5rem; border-top: 2px solid var(--blue-600); }
.step-num { display: block; font: 700 2.4rem/1 var(--font-display); color: var(--blue-300); margin-bottom: 0.9rem; }
.step h3 { color: var(--white); }
.step p { margin: 0; }

/* Offer */
.offer-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
.offer-intro p { color: var(--ink-soft); font-size: 1.1rem; }
.terms { background: var(--navy-900); color: var(--white); border-radius: 16px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.terms h3 { font-size: 1.35rem; margin-bottom: 1.1rem; }
.terms li { position: relative; padding: 0.85rem 0 0.85rem 1.8rem; border-top: 1px solid var(--line-dark); color: var(--on-dark); }
.terms li::before { content: ""; position: absolute; left: 0; top: 1.4rem; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--blue-600); }
.terms li strong { color: var(--white); font-weight: 600; }
.callout { margin-top: clamp(2rem, 4vw, 3rem); padding: 1.5rem 1.6rem; background: var(--mist); border-left: 4px solid var(--blue-600); border-radius: 0 var(--radius) var(--radius) 0; }
.callout h3 { margin-bottom: 0.4em; }
.callout p { margin: 0; color: var(--ink-soft); max-width: 75ch; }
.callout p + p { margin-top: 0.7em; }

/* Contact */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
.contact-methods { display: grid; gap: 0.9rem; margin: 1.8rem 0 0; }
.contact-methods .btn { justify-content: flex-start; }
.contact-line { color: var(--on-dark); margin: 1.4rem 0 0; }
.contact-line a { color: var(--white); font-weight: 600; overflow-wrap: anywhere; }
.form-panel { background: var(--white); color: var(--ink); border-radius: 16px; padding: clamp(1.4rem, 4vw, 2.2rem); }
.form-panel h3 { font-size: 1.4rem; }
.form-panel > p { color: var(--ink-soft); font-size: 0.98rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.field input, .field select {
  width: 100%; min-height: 3rem; padding: 0.65rem 0.9rem;
  font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--white); border: 1.5px solid #9aa8c4; border-radius: 8px;
}
.field input:hover, .field select:hover { border-color: var(--navy-700); }
.field input:focus, .field select:focus { outline: 3px solid rgba(37, 99, 235, 0.35); border-color: var(--blue-600); }
.form-panel .form-fine { font-size: 0.85rem; color: var(--ink-soft); margin: 0.9rem 0 0; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--on-dark); padding: 3.5rem 0 2rem; font-size: 0.97rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dark); }
.site-footer h2 { font: 600 1rem/1.2 var(--font-body); color: var(--white); letter-spacing: 0; margin-bottom: 0.9rem; }
.site-footer ul { display: grid; gap: 0.5rem; }
.site-footer a { color: var(--on-dark); text-decoration-color: rgba(185, 197, 223, 0.4); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--white); }
.site-footer .brand { margin-bottom: 0.9rem; }
.site-footer p { max-width: 34ch; }
.footer-base { padding-top: 1.5rem; display: grid; gap: 0.4rem; font-size: 0.88rem; }
.footer-base p { margin: 0; max-width: none; }

/* Simple pages (thank-you, 404) */
.simple-page { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; background: var(--navy-950); color: var(--white); padding: 4rem 0; }
.simple-page p { color: var(--on-dark); }
.simple-page .hero-actions { margin-bottom: 0; }

/* Breakpoints */
@media (min-width: 48rem) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 17rem 1fr; align-items: baseline; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: 1fr 1.1fr; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .footer-base { grid-template-columns: 1fr auto; }
}
@media (min-width: 70rem) { .steps { grid-template-columns: repeat(4, 1fr); } }

@media (max-width: 61.99rem) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem 1.25rem 1.5rem; background: var(--navy-950); border-bottom: 1px solid var(--line-dark);
  }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li a:not(.btn) { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
  .primary-nav a[aria-current="location"]:not(.btn) { border-bottom-color: var(--line-dark); color: var(--blue-300); }
  .primary-nav .btn { min-height: 3rem; }
  html.js .primary-nav { display: none; }
  html.js .primary-nav.is-open { display: flex; }
  .hero-rotor { right: -38%; width: 118vw; opacity: 0.3; }
}
@media (max-width: 30rem) {
  .hero-actions .btn { width: 100%; }
  .brand { font-size: 1.1rem; }
}
