/* ==========================================================================
   Green Diamond Mobile Detailing — Design System
   ========================================================================== */

:root {
  /* Color */
  --color-bg: #0a0b0a;
  --color-bg-alt: #0d0f0d;
  --color-surface: #14160f;
  --color-surface-2: #1b1d17;
  --color-primary: #a6f11f;
  --color-primary-dark: #7fc116;
  --color-primary-dim: #5c8a12;
  --color-text: #f4f5ef;
  --color-muted: #a2a89a;
  --color-muted-2: #6f746a;
  --color-border: #262922;
  --color-border-strong: #3a3e33;
  --color-danger: #ef4444;
  --color-success: #a6f11f;

  /* Type */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.16vw, 0.94rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.13rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.42rem);
  --step-2: clamp(1.44rem, 1.32rem + 0.6vw, 1.8rem);
  --step-3: clamp(1.73rem, 1.53rem + 0.98vw, 2.3rem);
  --step-4: clamp(2.07rem, 1.76rem + 1.55vw, 3rem);
  --step-5: clamp(2.49rem, 2.0rem + 2.44vw, 4rem);
  --step-6: clamp(2.98rem, 2.2rem + 3.9vw, 5.3rem);

  /* Layout */
  --content-max: 1240px;
  --content-pad: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 3px;
  --radius-md: 6px;
  --nav-h: 76px;
  --bar-h: 40px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 600ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur: 0ms; --dur-slow: 0ms; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.5em;
}
h1 { font-size: var(--step-6); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1em; color: var(--color-muted); max-width: 62ch; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Layout helpers ---- */
.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}
.section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  position: relative;
}
.section--surface { background: var(--color-surface); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head p { margin-bottom: 0; }
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.6em;
}
.section-head--center { max-width: 620px; margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

/* Diagonal section divider — the one bold structural signature used sparingly */
.diagonal-cut {
  position: relative;
  clip-path: polygon(0 3.5vw, 100% 0, 100% 100%, 0 calc(100% - 3.5vw));
  margin-block: -3.5vw;
}

/* Glow utility — used sparingly per brief */
.glow-text { text-shadow: 0 0 24px rgba(166, 241, 31, 0.35); }
