/* =============================================================================
   DOWN SOUTH PERFORMANCE — STYLES
   Synthwave / outrun aesthetic driven by the logo palette.
   Mobile-first. Edit color tokens in :root to re-theme the whole site.
   ========================================================================== */

:root {
  /* Palette pulled from the logo */
  --cyan:      #2ecbff;
  --cyan-soft: #7fe0ff;
  --pink:      #ff2d8e;
  --pink-soft: #ff77b6;
  --orange:    #ff7a3c;
  --magenta:   #d8359b;

  --bg:        #07060f;
  --bg-2:      #0c0a1c;
  --panel:     rgba(18, 14, 38, 0.62);
  --panel-2:   rgba(24, 18, 48, 0.5);
  --line:      rgba(126, 224, 255, 0.18);
  --line-pink: rgba(255, 45, 142, 0.22);

  --text:      #eef2ff;
  --text-dim:  #aeb4d4;
  --text-mute: #7d83a8;

  --glow-cyan: 0 0 18px rgba(46, 203, 255, 0.55);
  --glow-pink: 0 0 18px rgba(255, 45, 142, 0.55);

  --grad-hot:  linear-gradient(100deg, var(--pink) 0%, var(--orange) 100%);
  --grad-cool: linear-gradient(100deg, var(--cyan) 0%, var(--pink) 100%);

  --font-display: "Orbitron", "Arial Narrow", sans-serif; /* swap for Ethnocentric */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1240px;
  --radius: 14px;
  --radius-sm: 9px;
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* =============================================================================
   DECORATIVE BACKGROUND (grid + sun + scanlines)
   ========================================================================== */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #170c33 0%, var(--bg-2) 42%, var(--bg) 100%); }

/* Clipping wrapper: absolute so it scrolls away; full-width + clipped so the
   oversized sun can't create horizontal scroll on narrow screens. */
.bg-sun-wrap {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 760px; overflow: hidden;
  z-index: -1; pointer-events: none;
}
.bg-sun {
  position: absolute;
  top: -140px; left: 50%; transform: translateX(-50%);
  width: 560px; height: 560px; border-radius: 50%;
  background: linear-gradient(180deg, var(--orange) 0%, var(--pink) 55%, var(--magenta) 100%);
  filter: blur(2px);
  opacity: 0.5;
  mask-image: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 22px);
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 22px);
}

.bg-grid {
  position: absolute;
  left: -25%; right: -25%; bottom: -10%; height: 70%;
  background-image:
    linear-gradient(rgba(46, 203, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 203, 255, 0.35) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(420px) rotateX(70deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(transparent 0%, #000 60%);
  -webkit-mask-image: linear-gradient(transparent 0%, #000 60%);
  opacity: 0.5;
}

.bg-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 3px);
  opacity: 0.35; pointer-events: none;
}

/* =============================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(7,6,15,0.92), rgba(7,6,15,0.55));
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin-inline: auto; padding: 10px 20px;
}
.nav__brand {
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text);
  text-shadow: 0 0 12px rgba(46,203,255,0.35);
  white-space: nowrap;
}
.nav__brand:hover { color: var(--cyan); }

.nav__menu {
  display: flex; align-items: center; gap: 6px;
}
.nav__menu a {
  display: block; padding: 10px 14px; font-size: 0.82rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); border-radius: var(--radius-sm); transition: color .2s, background .2s;
}
.nav__menu a:hover { color: var(--cyan); }
.nav__cta {
  background: var(--grad-hot); color: #fff !important;
  box-shadow: var(--glow-pink);
}
.nav__cta:hover { color: #fff !important; filter: brightness(1.1); }

/* Hamburger */
.nav__toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: 0; padding: 8px;
}
.nav__toggle span { width: 26px; height: 2px; background: var(--cyan); transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding: 48px 0 0; }
.hero__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 0 20px 12px;
  display: grid; gap: 34px;
}
.hero__logo {
  width: min(420px, 86%); margin: 0 auto 6px;
  filter: drop-shadow(0 0 24px rgba(255,45,142,0.35)) drop-shadow(0 0 14px rgba(46,203,255,0.3));
}
.hero__copy { text-align: center; }

.hero__headline {
  font-size: clamp(2.1rem, 8vw, 3.6rem);
  margin-top: 8px;
  background: var(--grad-cool);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 30px rgba(255,45,142,0.25);
}
.hero__sub {
  margin: 16px auto 0; max-width: 540px;
  color: var(--text-dim); font-size: 1.02rem;
}
.hero__cta {
  margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* Hero media slot */
.hero__media { width: 100%; }
.media-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center;
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(46,203,255,0.06), rgba(255,45,142,0.06)),
    var(--panel);
  color: var(--text-mute);
}
.media-slot--hero { aspect-ratio: 16 / 10; }
.media-slot__tag {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.18em;
  font-size: 0.72rem; color: var(--cyan); padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 100px;
}
.media-slot__hint { font-size: 0.82rem; line-height: 1.4; }

/* =============================================================================
   SECTIONS (shared)
   ========================================================================== */
.section { padding: 72px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, rgba(12,10,28,0.6), rgba(7,6,15,0.2)); border-block: 1px solid var(--line); }

.section__head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--pink);
  text-shadow: var(--glow-pink);
}
.section__title {
  font-size: clamp(1.8rem, 5vw, 2.7rem); margin-top: 10px;
  background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section__lede { margin-top: 12px; color: var(--text-dim); }

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

/* =============================================================================
   SERVICES
   ========================================================================== */
.grid--services { grid-template-columns: 1fr; }
.svc {
  position: relative; padding: 26px 22px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.svc::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-hot); opacity: 0.8;
}
.svc:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.svc__icon {
  width: 48px; height: 48px; margin-bottom: 16px; color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(46,203,255,0.5));
}
.svc__title { font-size: 1rem; letter-spacing: 0; color: var(--text); margin-bottom: 8px; }
.svc__desc { color: var(--text-dim); font-size: 0.95rem; }

/* =============================================================================
   BUILDS
   ========================================================================== */
.grid--builds { grid-template-columns: 1fr; }
.build {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.build:hover { transform: translateY(-4px); border-color: var(--pink); box-shadow: var(--glow-pink); }
.build__media { aspect-ratio: 4 / 3; position: relative; }
.build__media img { width: 100%; height: 100%; object-fit: cover; }
.build__placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background:
    repeating-linear-gradient(45deg, rgba(46,203,255,0.05) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, rgba(255,45,142,0.08), rgba(46,203,255,0.08));
  color: var(--text-mute);
}
.build__placeholder .media-slot__tag { color: var(--pink); border-color: var(--line-pink); }
.build__body { padding: 18px 18px 20px; }
.build__vehicle { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; }
.build__desc { color: var(--text-dim); font-size: 0.92rem; margin-top: 6px; }
.build__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 100px;
  color: var(--cyan-soft); border: 1px solid var(--line); background: rgba(46,203,255,0.07);
}

/* =============================================================================
   ABOUT
   ========================================================================== */
.about { display: grid; gap: 36px; }
/*.about__copy { text-align: center; max-width: 620px; margin: 0 auto; }*/
.about__copy { text-align: center; margin: 0 auto; }
.about__copy p + p { margin-top: 14px; }
.about__body p { color: var(--text-dim); margin-top: 14px; }

/* =============================================================================
   CONTACT
   ========================================================================== */
.contact { display: grid; gap: 26px; }
/* Allow grid children to shrink below their content width (default is auto),
   so long values like the email don't force horizontal overflow. */
.contact__info, .contact__form { min-width: 0; }
.contact__list li {
  display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line);
  min-width: 0;
}
.contact__list .ci-label { font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); flex: 0 0 84px; padding-top: 2px; }
.contact__list .ci-value { color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.contact__list .ci-value a:hover { color: var(--cyan); }
.contact__cta { margin-top: 22px; }
.contact__social { display: flex; gap: 12px; margin-top: 18px; }
.contact__social a { font-size: 0.8rem; color: var(--text-dim); border: 1px solid var(--line); padding: 8px 14px; border-radius: 100px; }
.contact__social a:hover { color: var(--pink); border-color: var(--line-pink); }

/* Demo form */
.contact__form {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.form-note {
  font-size: 0.78rem; color: var(--orange); background: rgba(255,122,60,0.08);
  border: 1px solid rgba(255,122,60,0.25); border-radius: var(--radius-sm);
  padding: 10px 12px; margin-bottom: 18px;
}
.form-note--ok {
  color: var(--cyan-soft); background: rgba(46,203,255,0.07);
  border-color: var(--line);
}
.form-status { font-size: 0.85rem; margin-top: 12px; min-height: 1em; }
.form-status--ok   { color: #51e6a4; }
.form-status--err  { color: var(--pink-soft); }
.form-status--warn { color: var(--orange); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--text);
  background: rgba(7,6,15,0.6); border: 1px solid var(--line); border-radius: var(--radius-sm);
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(46,203,255,0.15); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }

/* Map slot */
.map-wrap { margin-top: 30px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { display: block; width: 100%; height: 340px; border: 0; filter: grayscale(0.2) invert(0.9) hue-rotate(180deg); }
.media-slot--map { aspect-ratio: 21 / 9; }
.media-slot--map code { color: var(--cyan-soft); font-size: 0.78rem; }

/* =============================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 100px; cursor: pointer; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase; transition: transform .15s, filter .2s, box-shadow .2s;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--grad-hot); color: #fff; box-shadow: var(--glow-pink); }
.btn--primary:hover { filter: brightness(1.1); box-shadow: 0 0 28px rgba(255,45,142,0.6); }
.btn--ghost { background: rgba(46,203,255,0.06); color: var(--cyan); border-color: var(--cyan); }
.btn--ghost:hover { background: rgba(46,203,255,0.14); box-shadow: var(--glow-cyan); }
.btn--block { width: 100%; justify-content: center; }
.btn__icon { font-size: 1rem; }

/* =============================================================================
   FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: rgba(7,6,15,0.7); }
.site-footer__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.site-footer__logo { height: 48px; opacity: 0.9; }
.site-footer__copy { color: var(--text-dim); font-size: 0.9rem; }
.site-footer__note { color: var(--text-mute); font-size: 0.76rem; }

/* =============================================================================
   RESPONSIVE  (mobile-first → up)
   ========================================================================== */
@media (max-width: 619px) {
  /* Single-column contact: center the call/text CTA and social links */
  .contact__cta { text-align: center; }
  .contact__social { justify-content: center; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__brand { font-size: 0.72rem; letter-spacing: 0.05em; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(7,6,15,0.98); border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px; align-items: stretch;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .22s;
  }
  .nav__menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__menu a { padding: 14px; text-align: center; }
  .nav__cta { margin-top: 6px; text-align: center; }
}

@media (min-width: 620px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .grid--builds { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr 1fr; align-items: start; }
  /* Keep service titles on one line in the multi-column layout */
  .svc__title { white-space: nowrap; }
}

@media (min-width: 880px) {
  .hero { padding-top: 64px; }
  /* Services stay 2x2 (4 cards); builds gallery uses 3 columns */
  .grid--builds { grid-template-columns: repeat(3, 1fr); }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}

/* =============================================================================
   HERO COMPOSITION (finalized)
   Big logo + fixed retro sun pinned to the upper-right. This was previously
   selectable style "5" in a dev preview toggle; that toggle has been removed
   and this look is now the permanent default.
   ========================================================================== */

/* Retro sun: always on, pinned to the viewport's upper-right. position:fixed
   (vs the base .bg-sun-wrap's absolute) keeps it in view instead of scrolling
   away with the page. */
.bg-sun-wrap { display: block; position: fixed; }
.bg-sun {
  left: 80%; top: -60px; width: 460px; height: 460px; opacity: 0.5;
}

/* Big hero logo as the focal point */
.hero__logo { width: min(560px, 92%); }

/* Text wordmark is not used in this layout */
.hero__wordmark { display: none; }
