/* ============================================================
   LV Autoworkz — Shared Stylesheet
   bg #0a0a0a | surface #1e1e1e | accent #c9a84c | text #f0f0f0
   Bebas Neue (display) + Outfit (body)
   ============================================================ */

/* 1. TOKENS */
:root {
  --bg:            #0a0a0a;
  --surface:       #1e1e1e;
  --surface-2:     #141414;
  --surface-3:     #0f0f0f;
  --accent:        #c9a84c;
  --accent-dim:    rgba(201, 168, 76, 0.12);
  --accent-glow:   rgba(201, 168, 76, 0.25);
  --accent-border: rgba(201, 168, 76, 0.2);
  --text:          #f0f0f0;
  --text-muted:    rgba(240, 240, 240, 0.55);
  --text-dim:      rgba(240, 240, 240, 0.3);
  --border:        rgba(255, 255, 255, 0.07);
  --border-gold:   rgba(201, 168, 76, 0.18);
  --radius-card:   1.5rem;
  --radius-pill:   100px;
  --radius-sm:     0.75rem;
  --spring:        cubic-bezier(0.32, 0.72, 0, 1);
  --nav-h:         72px;
}

/* 2. RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html.has-scroll-smooth { overflow: hidden; }
html.has-scroll-dragging { user-select: none; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* 3. TYPOGRAPHY */
.display-xl  { font-family: 'Bebas Neue', sans-serif; font-size: clamp(4rem, 9vw, 10rem); line-height: 0.92; letter-spacing: 0.02em; }
.display-lg  { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem, 6vw,  7rem); line-height: 0.95; letter-spacing: 0.02em; }
.display-md  { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem, 4vw,  4.5rem); line-height: 1;    letter-spacing: 0.02em; }
.display-sm  { font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.5rem, 3vw, 3rem); line-height: 1.05; letter-spacing: 0.02em; }
h1, h2, h3   { font-family: 'Bebas Neue', sans-serif; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.text-gold  { color: var(--accent); }
.text-muted { color: var(--text-muted); }

/* 4. LAYOUT */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section-pad    { padding: 7rem 0; }
.section-pad-sm { padding: 4rem 0; }

/* 5. GRAIN OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* 6. NAV — floating glass pill */
.nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 3rem);
  max-width: 1100px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.5rem;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.nav.scrolled .nav-inner { background: rgba(10,10,10,0.92); border-color: rgba(201,168,76,0.3); }
.nav-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.05em; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s var(--spring);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--accent) !important;
  color: #0a0a0a !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 600 !important;
  transition: transform 0.3s var(--spring), box-shadow 0.3s ease !important;
}
.nav-cta:hover { transform: scale(1.04); box-shadow: 0 0 20px var(--accent-glow); color: #0a0a0a !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 28px; padding: 4px; }
.hamburger span {
  display: block; width: 100%; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.4s var(--spring), opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.hamburger.open span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* 7. MOBILE MENU */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(40px) brightness(0.35);
  -webkit-backdrop-filter: blur(40px) brightness(0.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  pointer-events: none; opacity: 0;
  transition: opacity 0.4s ease;
}
.mobile-menu.open { pointer-events: all; opacity: 1; }
.mobile-menu a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem; letter-spacing: 0.04em; color: var(--text);
  opacity: 0; transform: translateY(20px);
  transition: color 0.3s ease, opacity 0.5s ease, transform 0.5s var(--spring);
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.22s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.29s; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu-contact {
  font-size: clamp(0.75rem, 4vw, 0.9rem); color: var(--text-dim); letter-spacing: 0.03em;
  opacity: 0; transition: opacity 0.5s ease 0.38s;
  overflow: hidden; max-width: 90vw; text-align: center;
  white-space: normal; word-break: break-word; padding: 0 1rem;
}
.mobile-menu.open .mobile-menu-contact { opacity: 1; }

/* 8. BUTTONS */
.btn-gold {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--accent); color: #0a0a0a;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.85rem 1.75rem; border-radius: var(--radius-pill);
  transition: transform 0.35s var(--spring), box-shadow 0.35s ease;
}
.btn-gold:hover { transform: scale(1.03) translateY(-1px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-gold:active { transform: scale(0.98); }
.btn-gold .btn-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; background: rgba(10,10,10,0.15); border-radius: 50%; font-size: 1rem;
  transition: transform 0.3s var(--spring);
}
.btn-gold:hover .btn-arrow { transform: translate(2px,-2px) scale(1.1); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: transparent; color: var(--text);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.85rem 1.75rem; border-radius: var(--radius-pill);
  border: 1px solid var(--border-gold);
  transition: background 0.35s var(--spring), border-color 0.35s ease, transform 0.35s var(--spring);
}
.btn-outline:hover { background: var(--accent-dim); border-color: var(--accent); transform: translateY(-1px); }
.btn-outline:active { transform: scale(0.98); }

.btn-text-gold {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--accent); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: gap 0.3s var(--spring);
}
.btn-text-gold:hover { gap: 0.9rem; }

/* 9. HERO */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: flex-end; padding-bottom: 6rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 115%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(10,10,10,0.97) 0%, rgba(10,10,10,0.45) 55%, rgba(10,10,10,0.15) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 10vw, 11rem);
  line-height: 0.9; letter-spacing: 0.02em;
  margin: 1rem 0 1.5rem; overflow: hidden;
}
.hero-title .line { display: block; }
.hero-title .accent-line { color: var(--accent); }
.hero-sub {
  font-size: 1rem; font-weight: 300; color: var(--text-muted);
  letter-spacing: 0.04em; max-width: 500px; line-height: 1.7; margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* 10. STATS STRIP */
.stats-strip {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 1.5rem 2rem; border-right: 1px solid var(--border); text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  color: var(--accent); line-height: 1;
}
.stat-suffix {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--accent); line-height: 1;
}
.stat-val { display: flex; align-items: baseline; gap: 0.1rem; }
.stat-label {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted);
}

/* 11. SECTION HEADER */
.section-header { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3.5rem; }

/* 12. SERVICES BENTO */
.services-section { padding: 7rem 0; }
.services-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 480px 260px;
  gap: 1rem;
}
.service-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-gold);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.4s var(--spring), transform 0.4s var(--spring);
  display: block;
}
.service-card:hover { border-color: rgba(201,168,76,0.4); }
.service-card.featured { grid-column: span 2; grid-row: span 2; }
.service-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--spring);
  position: absolute; inset: 0;
}
.service-card:hover .service-card-img { transform: scale(1.05); }
.service-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(10,10,10,0.96) 0%, rgba(10,10,10,0.3) 70%, transparent 100%);
  display: flex; flex-direction: column;
}
.service-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem; letter-spacing: 0.04em; margin: 0.3rem 0 0.25rem;
}
.service-card.featured .service-card-title { font-size: 3rem; }
.service-card-sub { font-size: 0.8rem; color: var(--text-muted); }
.service-card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.75rem; font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s var(--spring);
}
.service-card:hover .service-card-link { opacity: 1; transform: translateY(0); }

/* 13. GALLERY TEASER */
.gallery-teaser { padding: 7rem 0; }
.gallery-strip {
  display: flex; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 0.5rem;
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip-item {
  flex: 0 0 min(360px, 80vw); scroll-snap-align: start;
  aspect-ratio: 4/3; border-radius: var(--radius-card);
  overflow: hidden; border: 1px solid var(--border);
}
.gallery-strip-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--spring);
}
.gallery-strip-item:hover img { transform: scale(1.05); }

/* 14. CTA BANNER */
.cta-banner {
  padding: 9rem 0; position: relative;
  overflow: hidden; text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(201,168,76,0.07), transparent 70%);
}
.cta-banner-line {
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  margin: 0 auto 2rem;
}
.cta-banner-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 8.5rem);
  letter-spacing: 0.02em; line-height: 0.95; margin-bottom: 1.5rem;
}
.cta-banner p { color: var(--text-muted); max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.75; }

/* 15. PAGE HERO (inner pages) */
.page-hero {
  min-height: 42dvh;
  display: flex; align-items: flex-end;
  padding-bottom: 4rem;
  padding-top: calc(var(--nav-h) + 4rem);
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.5) 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 8vw, 9rem);
  line-height: 0.9; letter-spacing: 0.02em; overflow: hidden;
}
.page-hero-sub {
  color: var(--text-muted); font-size: 1rem; font-weight: 300;
  letter-spacing: 0.04em; margin-top: 1rem; max-width: 540px; line-height: 1.7;
}
.page-hero-rule {
  width: 100%; height: 1px;
  background: var(--border-gold);
  margin-top: 0;
}

/* 16. SERVICE DETAIL (services.html) */
.service-detail { padding: 5rem 0; border-bottom: 1px solid var(--border); }
.service-detail:last-of-type { border-bottom: none; }
.service-detail-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.service-detail-inner.reverse { direction: rtl; }
.service-detail-inner.reverse > * { direction: ltr; }
.service-detail-img-wrap {
  border-radius: var(--radius-card); overflow: hidden;
  border: 1px solid var(--border-gold); aspect-ratio: 4/3;
}
.service-detail-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.service-thumb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.6rem; }
.service-thumb-row img {
  aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  cursor: pointer; transition: border-color 0.3s ease, transform 0.3s var(--spring);
}
.service-thumb-row img:hover { border-color: var(--accent); transform: scale(1.02); }
.service-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem; color: var(--accent-dim);
  line-height: 1; margin-bottom: -0.5rem;
  -webkit-text-stroke: 1px var(--accent-border);
}
.service-detail h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1; letter-spacing: 0.02em; margin: 0.5rem 0 1rem;
}
.service-detail p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.5rem; }
.features-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.features-list li {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.88rem; color: var(--text-muted);
}
.features-list li::before {
  content: ''; display: block;
  width: 18px; height: 1px; background: var(--accent); flex-shrink: 0;
}

/* 17. PROCESS SECTION */
.process-section { padding: 7rem 0; background: var(--surface-2); }
.process-track {
  display: grid; grid-template-columns: repeat(3, 1fr);
  position: relative; gap: 2rem; margin-top: 3.5rem;
}
.process-connector {
  position: absolute; top: 2.25rem;
  left: calc(16.6% + 1rem); right: calc(16.6% + 1rem);
  height: 1px;
}
.process-connector-bg  { position: absolute; inset: 0; background: var(--border); }
.process-connector-fill {
  position: absolute; inset: 0; background: var(--accent);
  transform-origin: left; transform: scaleX(0);
}
.process-step { text-align: center; position: relative; z-index: 2; }
.process-num {
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; color: var(--accent);
  margin: 0 auto 1.5rem;
}
.process-step h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; letter-spacing: 0.04em; margin-bottom: 0.5rem;
}
.process-step p { font-size: 0.85rem; color: var(--text-muted); max-width: 200px; margin: 0 auto; }

/* 18. GALLERY PAGE */
.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 3rem; }
.filter-btn {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); background: var(--surface);
  border: 1px solid var(--border); padding: 0.6rem 1.25rem; border-radius: var(--radius-pill);
  transition: all 0.3s var(--spring);
}
.filter-btn:hover { color: var(--text); border-color: var(--border-gold); }
.filter-btn.active { color: #0a0a0a; background: var(--accent); border-color: var(--accent); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.gallery-item {
  aspect-ratio: 4/3; border-radius: var(--radius-card); overflow: hidden;
  border: 1px solid var(--border); cursor: pointer; position: relative;
  transition: border-color 0.4s var(--spring);
}
.gallery-item:hover { border-color: var(--border-gold); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--spring); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem; letter-spacing: 0.12em; color: var(--accent);
  border: 1px solid var(--accent-border); padding: 0.4rem 1rem; border-radius: var(--radius-pill);
}

/* 19. LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5,5,5,0.96);
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.lightbox-close:hover { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.lightbox img {
  max-width: 90vw; max-height: 85vh; object-fit: contain;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}

/* 20. QUOTE FORM */
.quote-section { padding: 5rem 0 8rem; }
.quote-layout { display: grid; grid-template-columns: 1fr 360px; gap: 4rem; align-items: start; }
.quote-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.input-shell {
  padding: 2px; border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid var(--border); background: var(--surface-2);
  transition: border-color 0.3s var(--spring), box-shadow 0.3s ease;
}
.input-shell:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.input-core {
  background: var(--surface); border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem; display: flex; flex-direction: column; gap: 0.25rem;
}
.input-core label {
  font-size: 0.63rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim);
}
.input-core input,
.input-core select,
.input-core textarea {
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: 0.88rem; width: 100%; padding: 0;
}
.input-core input::placeholder,
.input-core textarea::placeholder { color: var(--text-dim); }
.input-core select { -webkit-appearance: none; appearance: none; cursor: pointer; }
.input-core select option { background: var(--surface); color: var(--text); }
.input-core textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-submit { margin-top: 0.5rem; }
.form-submit .btn-gold { width: 100%; justify-content: center; padding: 1.1rem 2rem; font-size: 0.83rem; }
.form-note { font-size: 0.7rem; color: var(--text-dim); letter-spacing: 0.04em; margin-top: 0.75rem; text-align: center; }
.form-success { display: none; text-align: center; padding: 5rem 2rem; }
.form-success .success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 1.5rem;
}
.form-success h3 { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; letter-spacing: 0.04em; margin-bottom: 0.75rem; }
.form-success p { color: var(--text-muted); }

.contact-panel {
  position: sticky; top: calc(var(--nav-h) + 2rem);
  padding: 2rem; background: var(--surface);
  border-radius: var(--radius-card); border: 1px solid var(--border-gold);
  display: flex; flex-direction: column; gap: 1.5rem;
}
.contact-panel h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; letter-spacing: 0.04em; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 0.9rem; margin-top: 0.15rem;
}
.contact-item-label { font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.contact-item-value { font-size: 0.9rem; color: var(--text); margin-top: 0.15rem; line-height: 1.5; }
.contact-item-value a { color: var(--text); transition: color 0.3s ease; }
.contact-item-value a:hover { color: var(--accent); }
.trust-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--border); }
.trust-badge {
  font-size: 0.63rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid var(--accent-border); padding: 0.3rem 0.75rem; border-radius: var(--radius-pill);
}

/* 21. FOOTER */
.footer { background: var(--surface-2); border-top: 1px solid var(--border-gold); padding: 4rem 0 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border);
}
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.footer-logo span { color: var(--accent); }
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); line-height: 1.75; max-width: 280px; }
.footer-col h4 {
  font-size: 0.63rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul a { font-size: 0.87rem; color: var(--text-muted); transition: color 0.3s ease; }
.footer-col ul a:hover { color: var(--accent); }
.footer-contact-list { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-contact-item { font-size: 0.87rem; color: var(--text-muted); }
.footer-contact-item a { color: var(--text-muted); transition: color 0.3s ease; }
.footer-contact-item a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.5rem; font-size: 0.73rem; color: var(--text-dim);
}

/* 22. CHATBOT */
.chat-widget {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 150;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem;
}
.chat-trigger {
  display: flex; align-items: center; gap: 0.65rem;
  background: var(--accent); color: #0a0a0a;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 0.85rem 1.35rem 0.85rem 1rem; border-radius: var(--radius-pill);
  box-shadow: 0 8px 32px rgba(201,168,76,0.3);
  transition: transform 0.35s var(--spring), box-shadow 0.35s ease;
}
.chat-trigger:hover { transform: scale(1.04) translateY(-2px); box-shadow: 0 12px 40px rgba(201,168,76,0.4); }
.chat-trigger svg { width: 18px; height: 18px; flex-shrink: 0; }
.chat-panel {
  width: 330px; background: var(--surface);
  border: 1px solid var(--border-gold); border-radius: var(--radius-card);
  overflow: hidden; display: flex; flex-direction: column;
  transform-origin: bottom right;
  transition: transform 0.4s var(--spring), opacity 0.3s ease;
}
.chat-panel.hidden { transform: scale(0.88) translateY(12px); opacity: 0; pointer-events: none; }
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.chat-header-title { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 600; }
.chat-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4caf50; box-shadow: 0 0 6px rgba(76,175,80,0.5); }
.chat-close { font-size: 1rem; color: var(--text-muted); transition: color 0.3s ease; line-height: 1; }
.chat-close:hover { color: var(--text); }
.chat-messages {
  flex: 1; min-height: 200px; max-height: 280px;
  overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.chat-msg {
  max-width: 85%; padding: 0.7rem 0.9rem;
  border-radius: 1rem; font-size: 0.82rem; line-height: 1.5;
}
.chat-msg.bot {
  background: var(--surface-2); border: 1px solid var(--border);
  border-bottom-left-radius: 0.25rem; align-self: flex-start;
}
.chat-msg.user {
  background: var(--accent); color: #0a0a0a;
  border-bottom-right-radius: 0.25rem; align-self: flex-end;
}
.chat-input-row {
  display: flex; gap: 0.5rem; padding: 0.75rem 1rem;
  border-top: 1px solid var(--border); background: var(--surface-2);
}
.chat-input-row input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 0.55rem 1rem;
  font-size: 0.82rem; color: var(--text); outline: none;
  transition: border-color 0.3s ease;
}
.chat-input-row input:focus { border-color: var(--accent); }
.chat-input-row input::placeholder { color: var(--text-dim); }
.chat-send {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--accent); color: #0a0a0a; border-radius: 50%;
  font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--spring);
}
.chat-send:hover { transform: scale(1.1); }

/* 23. TESTIMONIALS */
.testimonials-section { padding: 7rem 0; background: var(--surface-3); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.testimonial-card {
  padding: 3px;
  border-radius: calc(var(--radius-card) + 3px);
  border: 1px solid var(--border-gold);
  background: linear-gradient(135deg, rgba(201,168,76,0.06), transparent);
  transition: border-color 0.4s var(--spring), transform 0.4s var(--spring);
}
.testimonial-card:hover { border-color: rgba(201,168,76,0.32); transform: translateY(-3px); }
.testimonial-card-inner {
  background: var(--surface); border-radius: var(--radius-card);
  padding: 2rem; height: 100%; display: flex; flex-direction: column;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
}
.testimonial-stars { color: var(--accent); font-size: 0.88rem; letter-spacing: 0.15em; margin-bottom: 1.25rem; }
.testimonial-quote {
  font-size: 0.87rem; color: var(--text-muted); line-height: 1.85;
  margin-bottom: 1.5rem; font-style: italic;
  position: relative; padding-left: 1.25rem;
}
.testimonial-quote::before {
  content: '"'; font-family: 'Bebas Neue', sans-serif; font-style: normal;
  font-size: 3.5rem; color: var(--accent-dim);
  position: absolute; top: -0.75rem; left: -0.25rem; line-height: 1;
}
.testimonial-author {
  margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--border);
}
.testimonial-author-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem; letter-spacing: 0.08em; color: var(--text);
}
.testimonial-author-vehicle {
  font-size: 0.68rem; color: var(--text-dim);
  letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.2rem;
}

/* 24. INSTAGRAM SECTION */
.instagram-section { padding: 6rem 0; }
.instagram-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; margin: 2.5rem 0;
}
.instagram-tile {
  aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  position: relative; display: block; cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.4s var(--spring);
}
.instagram-tile:hover { border-color: rgba(201,168,76,0.3); }
.instagram-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--spring); }
.instagram-tile:hover img { transform: scale(1.06); }
.instagram-tile-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s ease;
}
.instagram-tile:hover .instagram-tile-overlay { opacity: 1; }
.instagram-tile-overlay svg { color: var(--accent); }

/* 25. CHAT MSG CLASSES (used by sendMessage()) */
.msg {
  max-width: 85%; padding: 0.7rem 0.9rem;
  border-radius: 1rem; font-size: 0.82rem; line-height: 1.5;
}
.msg-user {
  background: var(--accent); color: #0a0a0a;
  border-bottom-right-radius: 0.25rem; align-self: flex-end;
}
.msg-bot {
  background: var(--surface-2); border: 1px solid var(--border);
  border-bottom-left-radius: 0.25rem; align-self: flex-start;
}
.msg-typing {
  display: flex; align-items: center; gap: 5px;
  padding: 0.8rem 1rem;
}
.msg-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1s infinite ease-in-out;
}
.msg-typing span:nth-child(2) { animation-delay: 0.15s; }
.msg-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* 26. FOOTER CREDIT */
.footer-credit {
  text-align: center; padding-top: 0.6rem;
  font-size: 0.7rem; color: var(--accent);
  letter-spacing: 0.08em; font-family: 'Outfit', sans-serif;
}

/* 26. RESPONSIVE */
@media (max-width: 1024px) {
  .services-bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .service-card.featured { grid-column: span 2; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .section-pad { padding: 4.5rem 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .services-bento { grid-template-columns: 1fr; grid-template-rows: auto; gap: 0.75rem; }
  .service-card.featured { grid-column: span 1; }
  .service-card.featured .service-card-title { font-size: 2.2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-top: 1px solid var(--border); }
  .service-detail-inner, .service-detail-inner.reverse { grid-template-columns: 1fr; direction: ltr; gap: 2rem; }
  .quote-layout { grid-template-columns: 1fr; }
  .contact-panel { position: static; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .process-track { grid-template-columns: 1fr; }
  .process-connector { display: none; }
  .chat-widget { bottom: 1.5rem; right: 1.25rem; }
  .chat-panel { width: calc(100vw - 2.5rem); }
}
@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .btn-gold, .btn-outline { padding: 0.8rem 1.5rem; }
}

/* ============================================================
   MOBILE ADAPT PASS — impeccable adapt
   Touch targets (WCAG 2.5.8), iOS quirks, 390px readability
   ============================================================ */

/* Service card: full-width variant — replaces broken inline style */
.service-card-wide { grid-column: span 3; min-height: 260px; }
@media (max-width: 1024px) { .service-card-wide { grid-column: span 2; } }

/* Touch targets: 44×44px floor — applies at all sizes */
.hamburger {
  min-width: 44px; min-height: 44px;
  padding: 0.5rem; align-items: center; justify-content: center;
}
.filter-btn { min-height: 44px; align-items: center; }
.chat-send  { width: 44px; height: 44px; }
.mobile-menu a {
  min-height: 52px; display: flex;
  align-items: center; justify-content: center;
  padding: 0.5rem 0;
}

/* ── 768px ──────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* No horizontal bleed from any element */
  html, body { overflow-x: hidden; max-width: 100%; }

  /* Fix inline grid-column on service cards — belt-and-suspenders */
  .services-bento .service-card { grid-column: span 1 !important; }
  .service-card-wide { grid-column: span 1 !important; min-height: 200px; }

  /* Hero: clear space below floating nav pill */
  .hero { padding-top: 6rem; padding-bottom: 3.5rem; }
  .hero-title { font-size: clamp(2.8rem, 13.5vw, 6rem); }
  .hero-sub { font-size: 0.9rem; max-width: 100%; }

  /* Gallery filter: scroll horizontally, never wraps to 2 lines */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.4rem;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; white-space: nowrap; }

  /* iOS Safari: any input font-size < 16px triggers viewport zoom on focus */
  .input-core input,
  .input-core select,
  .input-core textarea { font-size: 16px !important; }
  .chat-input-row input { font-size: 16px !important; height: 44px; }
  .chat-send { flex-shrink: 0; }

  /* Chat panel: bounded so it doesn't overflow phone screen */
  .chat-panel { max-height: 65dvh; }
  .chat-messages { max-height: calc(65dvh - 130px); }

  /* Stats: tighten for narrow viewports */
  .stat-item { padding: 1.25rem 0.75rem; }
  .stat-number { font-size: clamp(2.2rem, 8.5vw, 3.5rem); }
  .stat-suffix { font-size: clamp(1.6rem, 6vw, 2.5rem); }

  /* Inner-page hero */
  .page-hero-title { font-size: clamp(2.5rem, 11vw, 5rem); }

  /* CTA banner */
  .cta-banner { padding: 5rem 0; }
  .cta-banner-title { font-size: clamp(2.5rem, 11vw, 5rem); }

  /* Testimonials */
  .testimonial-card-inner { padding: 1.5rem; }

  /* Process */
  .process-step p { max-width: 100%; padding: 0 0.5rem; }
}

/* ── 430px — iPhone 14/15 viewport ─────────────────────── */
@media (max-width: 430px) {

  /* Nav pill: compact for narrow screen */
  .nav-inner { padding: 0.75rem 1.1rem; }
  .nav-logo  { font-size: 1.2rem; }

  /* Hero CTAs: full-width stacked */
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    width: 100%;
  }
  .hero-ctas .btn-gold,
  .hero-ctas .btn-outline {
    justify-content: center;
    width: 100%;
    min-height: 48px;
  }
  .btn-gold, .btn-outline { min-height: 44px; }

  /* Gallery grid: 2 per row at 390px */
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .gallery-item { border-radius: var(--radius-sm); }

  /* Tighter section rhythm on phone */
  .section-pad { padding: 3rem 0; }
  .stats-strip { padding: 2.5rem 0; }
  .instagram-section { padding: 3rem 0; }

  /* Contact panel */
  .contact-panel { padding: 1.5rem; }

  /* Footer */
  .footer { padding: 3rem 0 1.5rem; }
}
