/* ─────────────────────────────────────────────
   GLANZWERK – Custom Styles & Animations
   ───────────────────────────────────────────── */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: #0a0a0a;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ── Typography ── */
.font-heading, h1, h2, h3.heading {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.02em;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #dc2626; border-radius: 3px; }

/* ── Navigation ── */
#header {
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
#header.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,0.06);
}
.nav-link {
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #dc2626;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Hero Section ── */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: slowZoom 20s ease-out forwards;
}
@keyframes slowZoom {
  0%   { transform: scale(1.05); }
  100% { transform: scale(1.0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 10, 10, 0.97) 0%,
    rgba(10, 10, 10, 0.85) 40%,
    rgba(10, 10, 10, 0.45) 75%,
    rgba(10, 10, 10, 0.3) 100%
  );
}

/* ── Decorative car logo in hero ── */
.hero-car-logo {
  position: absolute;
  right: -5%;
  bottom: -5%;
  width: 65%;
  max-width: 900px;
  opacity: 0.04;
  filter: invert(1);
  pointer-events: none;
  animation: carFloat 8s ease-in-out infinite;
}
@keyframes carFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

/* ── Red accent line ── */
.red-line {
  display: inline-block;
  width: 0;
  height: 2px;
  background: #dc2626;
  animation: drawLine 0.8s ease forwards;
}
@keyframes drawLine {
  to { width: 3rem; }
}

/* ── Hero heading: visible on first paint for LCP, transform-only animation ── */
@keyframes heroSlideUp {
  from { transform: translateY(18px); }
  to   { transform: none; }
}
.hero-heading {
  animation: heroSlideUp 0.6s ease;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Scroll indicator ── */
.scroll-line {
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, rgba(220,38,38,0.8), transparent);
  animation: scrollLine 1.5s ease forwards 1.5s;
}
@keyframes scrollLine {
  to { height: 3rem; }
}

/* ── Service cards ── */
.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.03) 50%,
    transparent 100%
  );
  transition: left 0.6s ease;
  pointer-events: none;
}
.service-card:hover::before { left: 150%; }
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.service-card.featured {
  box-shadow: 0 0 0 1px #dc2626, 0 20px 60px rgba(220,38,38,0.12);
}
.service-card.featured:hover {
  box-shadow: 0 0 0 1px #dc2626, 0 24px 60px rgba(220,38,38,0.2);
  transform: translateY(-4px);
}

/* Checkmark list items */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: #d4d4d4;
  line-height: 1.5;
}
.check-icon {
  width: 1.1rem;
  height: 1.1rem;
  color: #ef4444;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Process steps ── */
.process-step {
  position: relative;
}
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2rem;
  left: calc(50% + 2rem);
  right: calc(-50% + 2rem);
  height: 1px;
  background: linear-gradient(to right, rgba(220,38,38,0.4), rgba(220,38,38,0.1));
}
@media (max-width: 768px) {
  .process-step:not(:last-child)::after { display: none; }
}

/* ── USP icons ── */
.usp-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
}
.usp-card:hover .usp-icon-wrap {
  background: rgba(220,38,38,0.2);
  border-color: rgba(220,38,38,0.5);
}

/* ── Stats counter ── */
.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  line-height: 1;
  color: #dc2626;
}

/* ── Partner cards ── */
.partner-card {
  background: #141414;
  border: 1px solid #242424;
  border-radius: 1rem;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}
.partner-card:hover {
  border-color: rgba(220,38,38,0.4);
  transform: translateY(-3px);
}
.partner-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ef4444;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(220,38,38,0.2);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

/* ── Gallery grid ── */
.gallery-item {
  overflow: hidden;
  border-radius: 0.75rem;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── Contact form ── */
.form-input {
  width: 100%;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}
.form-input::placeholder { color: #525252; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #a3a3a3;
  margin-bottom: 0.375rem;
  letter-spacing: 0.03em;
}
.btn-submit {
  width: 100%;
  background: #dc2626;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-submit:hover {
  background: #b91c1c;
  box-shadow: 0 8px 24px rgba(220,38,38,0.3);
  transform: translateY(-1px);
}

/* ── Section divider ── */
.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.section-label span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ef4444;
}
.section-label::before,
.section-label::after {
  content: '';
  flex: 0 0 2.5rem;
  height: 1px;
  background: #dc2626;
}

/* ── Badge ── */
.badge-recommended {
  position: absolute;
  top: -0.875rem;
  left: 50%;
  transform: translateX(-50%);
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.875rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Mobile menu ── */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
}
#mobile-menu.open { display: flex; }

/* ── Red glow button ── */
.btn-red {
  background: #dc2626;
  color: #fff;
  font-weight: 700;
  border-radius: 0.375rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-red:hover {
  background: #b91c1c;
  box-shadow: 0 0 20px rgba(220,38,38,0.4);
  transform: translateY(-1px);
}
.btn-outline {
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 600;
  border-radius: 0.375rem;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

/* ── Ribbon / callout ── */
.callout-box {
  background: linear-gradient(135deg, rgba(220,38,38,0.08) 0%, rgba(220,38,38,0.02) 100%);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 1rem;
}

/* ── Shimmer text effect (hero pre-heading) ── */
@keyframes shimmerText {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.shimmer-text {
  background: linear-gradient(90deg, #dc2626 0%, #ff6b6b 50%, #dc2626 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 3s linear infinite;
}

/* ── Pulsing dot ── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}
.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #dc2626;
  animation: pulse 2s ease-in-out infinite;
}

/* ── Footer ── */
footer a:hover { color: #dc2626; }

/* ── WhatsApp FAB ── */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  left: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
  color: #fff;
}
@media (max-width: 640px) {
  .whatsapp-fab { bottom: 16px; left: 12px; width: 50px; height: 50px; }
}

/* ── reCAPTCHA badge – hidden until contact section is visible ── */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease, visibility 0s 0.3s !important;
}
.grecaptcha-badge.gw-visible {
  visibility: visible !important;
  opacity: 1 !important;
  transition: opacity 0.3s ease, visibility 0s !important;
}

/* ── Responsive adjustments ── */
@media (max-width: 640px) {
  .hero-car-logo { width: 120%; right: -20%; opacity: 0.03; }
}
