/* ==========================================================================
   DP Coatings — Precision Luxury v2
   ========================================================================== */

:root {
  --bg-deep: #060609;
  --bg-primary: #0b0b10;
  --bg-elevated: #111118;
  --bg-card: #15151e;
  --bg-card-hover: #1a1a26;

  --gold: #c8a84e;
  --gold-light: #dfc36e;
  --gold-dim: #9a8240;
  --gold-glow: rgba(200, 168, 78, 0.12);

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(200, 168, 78, 0.25);

  --text-heading: #f0ede6;
  --text-body: #94949e;
  --text-muted: #55556a;

  --nav-height: 72px;
  --max-width: 1140px;
  --section-pad: clamp(5rem, 10vw, 8rem);

  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius: 12px;
  --radius-lg: 18px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Section chrome ---------- */
.section-tag, .hero-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

section h2 {
  font-family: var(--font-display);
  color: var(--text-heading);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-transform: none;
  text-align: left;
  position: static;
  padding-bottom: 0;
}

section h2::after { display: none; }

.section-intro {
  color: var(--text-body);
  max-width: 540px;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ---------- Navigation ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(6, 6, 9, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s, border-color 0.4s;
}

.site-header.scrolled {
  background: rgba(6, 6, 9, 0.92);
  border-bottom-color: var(--border-hover);
}

.site-header .container {
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}

.logo img { height: 44px; width: auto; }

.main-nav ul { display: flex; gap: 0.25rem; align-items: center; }

.main-nav a {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  transition: color 0.3s, background 0.3s;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--text-heading);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  background: var(--gold) !important;
  color: #0a0a0a !important;
  font-weight: 600 !important;
  padding: 0.45rem 1.1rem !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
}

.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 26px; height: 26px;
  background: none; border: none; cursor: pointer; padding: 0; z-index: 1001;
}

.nav-toggle span {
  display: block; width: 100%; height: 1.5px;
  background: var(--text-heading); border-radius: 4px;
  transition: transform 0.3s, opacity 0.3s; transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
#hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(6,6,9,0.92) 0%, rgba(6,6,9,0.7) 50%, rgba(6,6,9,0.3) 100%),
    linear-gradient(to top, rgba(6,6,9,1) 0%, transparent 40%);
}

#hero .container {
  position: relative;
  z-index: 2;
}

.hero-content { max-width: 620px; }

.hero-tag {
  margin-bottom: 1.25rem;
}

#hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

#hero p {
  color: var(--text-body);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 480px;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--gold);
  color: #0a0a0a;
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 6px 24px rgba(200,168,78,0.25);
  transform: translateY(-1px);
}

.btn-primary svg { transition: transform 0.3s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--text-heading);
  border-color: rgba(255,255,255,0.18);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.4);
}

.btn-full { width: 100%; justify-content: center; }

/* ---------- Proof Bar ---------- */
.proof-bar {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}

.proof-items {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: nowrap;
}

.proof-item { text-align: center; }

.proof-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.proof-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.proof-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ---------- Transformations / Portfolio ---------- */
#work {
  background: var(--bg-deep);
  padding: var(--section-pad) 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.portfolio-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: ew-resize;
  --slider-pos: 50%;
}

.portfolio-slider .before-img,
.portfolio-slider .after-img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover;
}

.portfolio-slider .before-img { z-index: 1; }
.portfolio-slider .after-img {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

.portfolio-slider::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  left: var(--slider-pos);
  width: 2px;
  background: var(--gold);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(200,168,78,0.4);
}

.portfolio-slider input[type="range"] {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 5; margin: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent; cursor: ew-resize; opacity: 0;
  touch-action: none;
}

.portfolio-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 2px; height: 100vh; background: transparent;
}

.portfolio-slider input[type="range"]::-moz-range-thumb {
  width: 2px; height: 100%; background: transparent; border: none;
}

.label-before, .label-after {
  position: absolute; bottom: 14px; z-index: 4;
  font-family: var(--font-body);
  font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: #fff;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  pointer-events: none;
}

.label-before { left: 14px; }
.label-after { right: 14px; }

.project-detail {
  padding: 1.5rem 1.75rem 1.75rem;
}

.project-detail h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.project-detail p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 0.75rem;
}

.project-meta {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ---------- Why Spray ---------- */
#why-spray {
  background: var(--bg-primary);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
}

.why-spray-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-spray-content h2 {
  margin-bottom: 1.25rem;
}

.why-spray-content > p {
  margin-bottom: 2rem;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.why-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  color: var(--gold);
  margin-top: 2px;
}

.why-list span {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-body);
}

.why-list strong {
  color: var(--text-heading);
  font-weight: 600;
}

.why-spray-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.why-spray-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* ---------- Services ---------- */
#services {
  background: var(--bg-deep);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.75rem;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.service-card:hover::after { opacity: 1; }

.card-num {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-dim);
  display: block;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-family: var(--font-display);
  color: var(--text-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-body);
}

/* ---------- Process ---------- */
#process {
  background: var(--bg-primary);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 0 0.5rem;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(200, 168, 78, 0.08);
  border: 1px solid rgba(200, 168, 78, 0.2);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.process-step h3 {
  font-family: var(--font-display);
  color: var(--text-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-body);
}

/* ---------- Reviews ---------- */
#reviews {
  background: var(--bg-deep);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
}

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

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s;
}

.review-card:hover {
  border-color: var(--border-hover);
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  max-width: 16px;
  min-height: 16px;
  max-height: 16px;
  color: var(--gold);
}

.review-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.review-card cite {
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ---------- Contact ---------- */
#contact {
  background: var(--bg-primary);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-intro h2 {
  margin-bottom: 1rem;
}

.contact-intro > p {
  margin-bottom: 2rem;
  max-width: 420px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

.contact-item a {
  color: var(--text-body);
  font-size: 0.92rem;
}

.contact-item a:hover { color: var(--gold); }

.social-links {
  display: flex;
  gap: 0.6rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s;
}

.social-links a:hover {
  color: var(--gold);
  border-color: var(--border-hover);
}

.social-links svg { width: 16px; height: 16px; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.optional {
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 0.78rem 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-group textarea { resize: vertical; min-height: 120px; }

input.error, textarea.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important;
}

.contact-form .btn {
  margin-top: 0.5rem;
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep);
  padding: 3rem 0 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

.footer-logo { height: 36px; width: auto; margin-bottom: 0.75rem; opacity: 0.7; }

.footer-col p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; }

.footer-col h4 {
  font-family: var(--font-body);
  color: var(--text-body);
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 1rem;
}

.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-muted); font-size: 0.85rem; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  text-align: center;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.footer-bottom p { color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.3px; }

/* ---------- Animations ---------- */
.js-ready .fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-ready .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .services-grid .fade-in:nth-child(2) { transition-delay: 0.08s; }
.js-ready .services-grid .fade-in:nth-child(3) { transition-delay: 0.16s; }
.js-ready .services-grid .fade-in:nth-child(4) { transition-delay: 0.24s; }

.js-ready .process-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.js-ready .process-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.js-ready .process-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

.js-ready .projects-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.js-ready .projects-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.js-ready .projects-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

.js-ready .reviews-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.js-ready .reviews-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .reviews-grid { grid-template-columns: 1fr; }
  .why-spray-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-spray-image { max-width: 500px; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .proof-items { gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--nav-height); left: 0; width: 100%;
    background: rgba(6,6,9,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0; pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1; pointer-events: auto;
  }

  .main-nav ul { flex-direction: column; gap: 0; padding: 1rem 0; }
  .main-nav a { display: block; padding: 0.8rem 2rem; font-size: 0.9rem; border-radius: 0; }
  .nav-cta { margin: 0.5rem 2rem !important; border-radius: 100px !important; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .proof-items { flex-wrap: wrap; gap: 1.5rem; }
  .proof-divider { display: none; }
  .proof-items { justify-content: space-around; }

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

  #hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }

  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
