/* =========================================================
   Mobile Magic Super Screens — starter site styles
   Neutral build that mirrors the LED PROS system (goledpros.com).
   Every brand decision lives in the tokens below, so the designer's
   final style guide can be dropped in by editing :root only.
   ========================================================= */

:root {
  /* Neutrals (shared with LED PROS) */
  --canvas: #E8E7E3;
  --canvas-2: #DDDCD7;
  --paper: #F2F1EC;
  --ink: #0F1013;
  --charcoal: #16181C;
  --charcoal-2: #22252B;
  --steel: #5F6166;      /* darkened from LED PROS #6B6D72 to pass 4.5:1 on canvas */
  --steel-2: #9A9B9E;
  --rule: #C7C5BF;
  --rule-dark: #2A2D33;

  /* Mobile Magic brand anchor + one accent (swap when the style guide lands) */
  --brand: #1F2A44;        /* deep navy */
  --brand-2: #2B3A5E;
  --accent: #FF5A1A;       /* blaze; fill only, read with ink text */
  --accent-deep: #A63A00;  /* accent as text on light grounds */
  --on-accent: #0F1013;

  /* Type */
  --font-display: "League Spartan", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Layout */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --section-y: clamp(64px, 9vw, 120px);
}

*, *::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(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink); color: #fff;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.announce .wrap { padding-top: 9px; padding-bottom: 9px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.announce a { color: var(--accent); text-decoration: none; }
.announce a:hover { color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--canvas-2);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 72px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink);
}
.wordmark svg { width: 34px; height: 34px; flex: none; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1; }
.wordmark-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.wordmark-sub {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--steel); margin-top: 4px;
}
.nav-toggle {
  display: none; min-height: 44px; min-width: 44px; padding: 0 14px;
  border: 1px solid var(--ink); border-radius: var(--radius); background: transparent;
  font: 600 0.875rem var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.site-nav a { text-decoration: none; font-weight: 500; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav .nav-phone { font-family: var(--font-mono); font-size: 0.9375rem; }

@media (max-width: 880px) {
  .wordmark-sub { letter-spacing: 0.12em; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--canvas-2); border-bottom: 1px solid var(--rule); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .site-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .site-nav li:last-child a { border-bottom: 0; margin-top: 12px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius);
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-secondary { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.on-dark .btn-secondary { color: #fff; }
.on-dark .btn-secondary:hover { background: #fff; color: var(--ink); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.75rem, 8vw, 6.5rem); line-height: 0.92; letter-spacing: -0.01em; margin: 0;
}
h2, .h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.04; letter-spacing: -0.01em; margin: 0;
}
h2 em, .h2 em, .display em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none;
  letter-spacing: 0;
}
h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; margin: 0; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; max-width: 40rem; margin: 0; }
.muted { color: var(--steel); }
.mono { font-family: var(--font-mono); }

.eyebrow {
  display: flex; align-items: baseline; gap: 14px; margin: 0 0 20px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel);
}
.eyebrow .num { font-family: var(--font-mono); color: var(--ink); }
.on-dark .eyebrow { color: var(--steel-2); }
.on-dark .eyebrow .num { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: clamp(36px, 5vw, 56px); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 48px; }
}
.on-dark { background: var(--charcoal); color: #fff; border-top-color: var(--rule-dark); }
.on-dark .muted { color: var(--steel-2); }
.on-brand { background: var(--brand); color: #fff; border-top: 0; }
.on-brand .muted { color: #C9CFDC; }
.on-brand .eyebrow { color: #C9CFDC; }
.on-brand .eyebrow .num { color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: end; column-gap: 56px; } }
.hero-title { grid-column: 1 / -1; }
.hero .display { font-size: clamp(2.6rem, 8.2vw, 7.25rem); }
.hero .lede { margin-top: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; padding: 0; list-style: none;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel);
}
.hero-figure { margin: 0; position: relative; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--charcoal); }
.hero-badge {
  position: absolute; left: 16px; bottom: 16px;
  background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: var(--radius);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-badge .mono { font-weight: 600; }

.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.page-hero .display { font-size: clamp(2.5rem, 6.5vw, 5rem); }
.page-hero .lede { margin-top: 24px; }

/* ---------- Pillars (Rent / Install / Manage) ---------- */
.pillars { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 820px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillar { background: var(--paper); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.pillar .num { font-family: var(--font-mono); font-size: 0.875rem; color: var(--steel); }

/* ---------- Product cards ---------- */
.products { display: grid; gap: 20px; }
@media (min-width: 760px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.product-card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink);
}
.product-card:hover { border-color: var(--ink); color: var(--ink); }
.product-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--charcoal); }
.product-card .body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.product-card .kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }
.product-card .more { margin-top: auto; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--rule); border-radius: 2px; padding: 4px 8px; color: var(--ink); background: var(--canvas);
}
.on-dark .chips li { border-color: var(--rule-dark); background: var(--charcoal-2); color: #fff; }

/* ---------- Product detail rows ---------- */
.product-detail { display: grid; gap: 32px; padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--rule); scroll-margin-top: 90px; }
@media (min-width: 960px) {
  .product-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .product-detail.flip .product-media { order: 2; }
}
.product-media { margin: 0; }
.product-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--charcoal); }
.product-media figcaption { font-size: 0.875rem; color: var(--steel); margin-top: 10px; }
.product-copy { display: flex; flex-direction: column; gap: 18px; }
.product-copy ul.uses { margin: 0; padding-left: 20px; }
.product-copy ul.uses li { margin-bottom: 4px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.spec-table caption { text-align: left; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); padding-bottom: 8px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--steel); width: 42%; padding-right: 16px; }
.spec-table td { font-family: var(--font-mono); font-size: 0.875rem; }

/* ---------- Work / gallery ---------- */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--charcoal); }
.gallery figcaption { font-size: 0.875rem; margin-top: 8px; color: var(--steel); }
.on-dark .gallery figcaption { color: var(--steel-2); }

/* ---------- Clients ---------- */
.clients {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.clients li {
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 18px 20px; font-weight: 500; font-size: 0.9375rem; background: var(--paper);
}
.client-groups { display: grid; gap: 40px; }
.client-groups h3 { font-size: 0.8125rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); margin-bottom: 14px; }

/* ---------- Carve-outs (Racing / Airshows) ---------- */
.carveouts { display: grid; gap: 20px; }
@media (min-width: 900px) { .carveouts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.carveout {
  border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column; gap: 16px; min-height: 360px;
}
.carveout.racing { background: var(--ink); color: #fff; }
.carveout.airshow { background: var(--brand); color: #fff; }
.carveout .tag {
  align-self: flex-start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 2px; background: var(--accent); color: var(--on-accent);
}
.carveout .tag.outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.carveout ul { margin: 0; padding-left: 20px; color: #E6E7EA; }
.carveout .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; }
.carveout a:not(.btn) { color: #fff; }
.powered {
  display: inline-flex; align-items: center; gap: 10px; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-2);
}
.powered strong { font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: 0.04em; color: #fff; }

/* ---------- Timeline (about) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.timeline .when { font-family: var(--font-mono); font-weight: 600; }
@media (max-width: 560px) { .timeline li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

.two-col { display: grid; gap: 32px; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.prose p { margin: 0 0 1em; max-width: 38rem; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(56px, 8vw, 96px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.cta-band h2 { max-width: 46rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; } }
.meta-list { margin: 0; display: grid; gap: 0; align-content: start; border-top: 1px solid var(--rule); }
.meta-list div { padding: 16px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
.meta-list dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }
.meta-list dd { margin: 0; }

.form { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field legend { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.field .hint { font-size: 0.875rem; color: var(--steel); margin: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"],
.field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #8F8D88; border-radius: var(--radius);
  background: #fff; color: var(--ink); font: 400 1rem var(--font-body);
}
.field input[type="date"] { -webkit-appearance: none; appearance: none; height: 50px; line-height: 1.5; text-align: left; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid #8F8D88; border-radius: var(--radius); background: #fff; cursor: pointer; font-weight: 500;
}
.choice input { accent-color: var(--brand); width: 18px; height: 18px; }
.req { color: var(--accent-deep); }
.form-note { font-size: 0.875rem; color: var(--steel); margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 64px 0 32px; }
.footer-tag {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.75rem, 4.4vw, 3.25rem); line-height: 1; margin: 0 0 48px;
}
.footer-tag span { display: block; color: var(--steel-2); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding-bottom: 40px; border-bottom: 1px solid var(--rule-dark); }
.footer-grid h2 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-2); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: #E6E7EA; }
.footer-grid a:hover { color: var(--accent); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 0.8125rem; color: var(--steel-2); }
.footer-legal a { color: var(--steel-2); }
