/* ============================================
   DEVA POWER GRINDER SERVICE - DESIGN SYSTEM
   ============================================ */

/* ---------- IMPORTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  /* Professional Light Theme - Warm Gray & Crisp White */
  --clr-bg-primary: #f8fafc;
  --clr-bg-secondary: #ffffff;
  --clr-bg-card: #ffffff;
  --clr-bg-glass: rgba(255, 255, 255, 0.9);
  --clr-border-glass: #e2e8f0;
  --clr-border-hover: #cbd5e1;
  --clr-header-bg: rgba(255, 255, 255, 0.95);
  --clr-accent-orange: #d97706; /* Rich Amber Engineering Gold */
  --clr-accent-orange-light: #f59e0b;
  --clr-accent-teal: #0284c7; /* Precision Tech Blue */
  --clr-accent-emerald: #059669; /* Mint Verified Emerald */
  --clr-accent-blue: #2563eb;
  --clr-text-primary: #0f172a; /* Deep crisp slate */
  --clr-text-secondary: #475569; /* High legibility slate */
  --clr-text-muted: #64748b;
  --clr-whatsapp: #16a34a;
  --clr-danger: #dc2626;
  
  /* Gradients */
  --grad-hero: radial-gradient(circle at 85% 15%, rgba(217, 119, 6, 0.08) 0%, transparent 50%),
               radial-gradient(circle at 15% 85%, rgba(2, 132, 199, 0.08) 0%, transparent 50%),
               linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
  --grad-accent: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  --grad-card: linear-gradient(145deg, #ffffff, #fbfcfd);
  --grad-cta: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  --grad-cta-hover: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-teal: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --grad-blue: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography */
  --ff-heading: 'Outfit', sans-serif;
  --ff-body: 'Inter', sans-serif;
  --fs-hero: clamp(2.5rem, 6vw, 4.5rem);
  --fs-h2: clamp(2rem, 4vw, 3rem);
  --fs-h3: clamp(1.25rem, 2.5vw, 1.75rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 35px -4px rgba(15, 23, 42, 0.1), 0 8px 16px -2px rgba(15, 23, 42, 0.06);
  --shadow-glow-orange: 0 8px 24px -2px rgba(217, 119, 6, 0.22);
  --shadow-glow-teal: 0 8px 24px -2px rgba(2, 132, 199, 0.2);
  --shadow-glow-blue: 0 8px 24px -2px rgba(37, 99, 235, 0.2);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 200ms var(--ease-out);
  --transition-default: 400ms var(--ease-out);
  --transition-slow: 600ms var(--ease-out);
}

/* ---------- THEME PRESETS (ALL ELEGANT LIGHT THEMES) ---------- */
[data-theme="nordic"] {
  --clr-bg-primary: #f0f4f8;
  --clr-bg-secondary: #ffffff;
  --clr-bg-card: #ffffff;
  --clr-border-glass: #dbeafe;
  --clr-header-bg: rgba(255, 255, 255, 0.95);
  --clr-accent-orange: #2563eb;
  --clr-accent-orange-light: #3b82f6;
  --clr-accent-teal: #0284c7;
  --clr-text-primary: #0b192c;
  --clr-text-secondary: #334155;
  --grad-hero: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.09) 0%, transparent 50%),
               radial-gradient(circle at 20% 80%, rgba(2, 132, 199, 0.08) 0%, transparent 60%),
               linear-gradient(135deg, #f0f4f8 0%, #ffffff 50%, #e2e8f0 100%);
  --grad-accent: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --grad-cta: linear-gradient(135deg, #2563eb, #1d4ed8);
  --grad-cta-hover: linear-gradient(135deg, #3b82f6, #2563eb);
  --shadow-glow-orange: 0 8px 24px rgba(37, 99, 235, 0.22);
}

[data-theme="ivory"] {
  --clr-bg-primary: #faf8f5;
  --clr-bg-secondary: #ffffff;
  --clr-bg-card: #ffffff;
  --clr-border-glass: #e7e2d9;
  --clr-header-bg: rgba(255, 255, 255, 0.95);
  --clr-accent-orange: #b45309;
  --clr-accent-orange-light: #d97706;
  --clr-accent-teal: #0f766e;
  --clr-text-primary: #1c1917;
  --clr-text-secondary: #44403c;
  --grad-hero: radial-gradient(circle at 80% 20%, rgba(180, 83, 9, 0.08) 0%, transparent 50%),
               radial-gradient(circle at 20% 80%, rgba(15, 118, 110, 0.07) 0%, transparent 60%),
               linear-gradient(135deg, #faf8f5 0%, #ffffff 50%, #f3efe6 100%);
  --grad-accent: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  --grad-cta: linear-gradient(135deg, #b45309, #78350f);
  --grad-cta-hover: linear-gradient(135deg, #d97706, #b45309);
  --shadow-glow-orange: 0 8px 24px rgba(180, 83, 9, 0.22);
}

/* ---------- RESET ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--clr-bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--clr-accent-orange);
  border-radius: var(--radius-full);
}

/* ---------- UTILITY ---------- */
.container {
  width: min(1280px, 90%);
  margin-inline: auto;
}

.section-label {
  font-family: var(--ff-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent-orange);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--clr-text-secondary);
  max-width: 600px;
  margin-bottom: var(--space-2xl);
}

.accent-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--grad-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--clr-border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ---------- SCROLL-DRIVEN ENTRY ANIMATIONS (Progressive Enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fade-slide-up {
      from {
        opacity: 0;
        transform: translateY(60px);
      }
    }

    .scroll-reveal {
      animation: fade-slide-up auto linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

/* Fallback for browsers without scroll-driven animation support */
.scroll-reveal-fallback {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.scroll-reveal-fallback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- FLOATING MOTOR GEAR DECORATIONS ---------- */
.motor-gear {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  color: #64748b;
  will-change: transform;
}

.motor-gear svg {
  width: 100%;
  height: 100%;
}

.gear-1 {
  width: 200px;
  height: 200px;
  top: 15%;
  left: -60px;
  animation: spin-gear 25s linear infinite;
}

.gear-2 {
  width: 150px;
  height: 150px;
  top: 45%;
  right: -40px;
  animation: spin-gear 20s linear infinite reverse;
}

.gear-3 {
  width: 120px;
  height: 120px;
  bottom: 20%;
  left: 5%;
  animation: spin-gear 30s linear infinite;
}

.gear-4 {
  width: 180px;
  height: 180px;
  bottom: 10%;
  right: 10%;
  animation: spin-gear 22s linear infinite reverse;
}

@keyframes spin-gear {
  to { transform: rotate(360deg); }
}

/* Scroll-linked gear rotation (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .motor-gear-scroll {
      position: absolute;
      pointer-events: none;
      z-index: 0;
      opacity: 0.06;
      animation: spin-gear auto linear;
      animation-timeline: scroll();
    }
  }
}

/* ---------- HEADER / NAV ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: background var(--transition-default), box-shadow var(--transition-default);
}

.header.scrolled {
  background: var(--clr-header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--clr-border-glass);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* Theme Switcher */
.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--clr-bg-glass);
  border: 1px solid var(--clr-border-glass);
  border-radius: var(--radius-full);
}

.theme-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid transparent;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.theme-btn:hover {
  transform: scale(1.15);
}

.theme-btn.active {
  border-color: var(--clr-text-primary);
  transform: scale(1.1);
}

.theme-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: block;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--grad-accent);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  animation: spin-gear 8s linear infinite;
}

.logo-icon svg {
  width: 26px;
  height: 26px;
  fill: white;
}

.logo-text {
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
}

.logo-text small {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--clr-text-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-accent);
  border-radius: var(--radius-full);
  transition: width var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--clr-text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: var(--space-sm) var(--space-lg);
  background: var(--grad-cta);
  color: white !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-orange);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: var(--space-sm);
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--clr-text-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grad-hero);
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  filter: blur(2px);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(248, 250, 252, 0.65) 0%,
    rgba(248, 250, 252, 0.92) 60%,
    var(--clr-bg-primary) 100%
  );
}

/* Animated glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: float-orb 8s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(2, 132, 199, 0.08);
  top: -100px;
  right: -100px;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(217, 119, 6, 0.08);
  bottom: -50px;
  left: -100px;
  animation-delay: 3s;
}

@keyframes float-orb {
  to {
    transform: translate(40px, -30px) scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  padding-top: 100px;
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: #ffffff;
  border: 1px solid var(--clr-border-glass);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-accent-orange);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s var(--ease-out) both;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--clr-accent-emerald);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: var(--ff-heading);
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s var(--ease-out) 0.15s both;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--clr-text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.45s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-body);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grad-cta);
  color: white;
}
.btn-primary:hover {
  box-shadow: var(--shadow-glow-orange);
}

.btn-whatsapp {
  background: var(--clr-whatsapp);
  color: white;
}
.btn-whatsapp:hover {
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.3);
}

.btn-outline {
  border: 1px solid #cbd5e1;
  color: var(--clr-text-primary);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.btn-outline:hover {
  border-color: var(--clr-accent-orange);
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-family: var(--ff-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInRight 1s var(--ease-out) 0.4s both;
  width: 100%;
}

/* Assembly Showcase Glass Card */
.assembly-card {
  width: 100%;
  max-width: 580px;
  background: #ffffff;
  border: 1px solid var(--clr-border-glass);
  border-radius: var(--radius-xl);
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-default), box-shadow var(--transition-default);
}

.assembly-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

/* Card Top Bar */
.assembly-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--clr-border-glass);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.assembly-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-accent-teal);
  background: #f0f9ff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #bae6fd;
}

.assembly-badge .live-dot {
  width: 7px;
  height: 7px;
  background: var(--clr-accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--clr-accent-emerald);
  animation: pulse-dot 1.5s infinite;
}

/* View Mode Toggles (Graphic Motion vs Real Photo) */
.view-toggle-group {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid #e2e8f0;
}

.view-btn {
  padding: 4px 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.view-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

/* Views Container */
.assembly-views-wrap {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Real Photo View */
.real-photo-view {
  display: none;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.real-photo-view.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.real-photo-view img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.real-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(3, 13, 18, 0.95), transparent);
  font-size: var(--fs-xs);
  color: var(--clr-text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Graphic Motion Canvas */
.graphic-motion-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.graphic-motion-view.hidden {
  display: none;
}

.grinder-stage-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 540 / 520;
  overflow: visible;
}

/* Mechanical Parts Styling & Transitions */
.assembly-part {
  transition: transform 0.9s cubic-bezier(0.34, 1.35, 0.64, 1), filter 0.3s ease, opacity 0.4s ease;
  cursor: pointer;
  transform-box: fill-box;
}

.assembly-part:hover {
  filter: drop-shadow(0 0 10px var(--clr-accent-orange)) brightness(1.1);
}

/* Alignment Dashed Blueprint Lines */
.alignment-rays {
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.alignment-rays line {
  stroke-dasharray: 4 4;
  animation: dashMove 1.5s linear infinite;
}

@keyframes dashMove {
  to { stroke-dashoffset: -16; }
}

/* Exploded State Transforms */
.is-exploded #part-hood {
  transform: translateY(-90px);
}

.is-exploded #part-wiper {
  transform: translateY(-60px);
}

.is-exploded #part-stones {
  transform: translateY(-35px) scale(0.98);
}

.is-exploded #part-drum {
  transform: translateY(-12px);
}

.is-exploded #part-cradle {
  transform: translate(16px, 16px);
}

.is-exploded #part-belt {
  transform: translate(-55px, -15px);
}

.is-exploded #part-motor {
  transform: translate(-70px, 25px);
}

.is-exploded .alignment-rays {
  opacity: 0.85;
}

.is-exploded .part-hud-tag {
  opacity: 1;
  pointer-events: auto;
}

/* Assembled State (all parts docked at 0, 0) */
.is-assembled #part-hood,
.is-assembled #part-wiper,
.is-assembled #part-stones,
.is-assembled #part-drum,
.is-assembled #part-cradle,
.is-assembled #part-belt,
.is-assembled #part-motor {
  transform: translate(0, 0) scale(1);
}

.is-assembled .alignment-rays {
  opacity: 0;
}

.is-assembled .part-hud-tag {
  opacity: 0.15;
}

/* Running State - Live Grinding Motion */
.is-running #drum-rotor {
  animation: spinDrumMotion 3.5s linear infinite;
  transform-origin: 270px 275px;
}

.is-running #stone-left-roller {
  animation: spinRollerStone 2.5s linear infinite;
  transform-origin: 228px 260px;
}

.is-running #stone-right-roller {
  animation: spinRollerStone 2.5s linear infinite reverse;
  transform-origin: 312px 260px;
}

.is-running #motor-drive-pulley {
  animation: spinPulleyWheel 0.9s linear infinite;
  transform-origin: 190px 420px;
}

.is-running #v-belt-band {
  stroke-dasharray: 6 3;
  animation: beltLoop 0.5s linear infinite;
}

.is-running .power-led {
  fill: #10b981 !important;
  filter: drop-shadow(0 0 8px #10b981);
}

.is-running .running-aura {
  opacity: 0.6;
  animation: auraPulse 2s ease-in-out infinite alternate;
}

@keyframes spinDrumMotion {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinRollerStone {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinPulleyWheel {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes beltLoop {
  to { stroke-dashoffset: -18; }
}

@keyframes auraPulse {
  0% { opacity: 0.3; transform: scale(0.98); }
  100% { opacity: 0.7; transform: scale(1.02); }
}

/* Snap Ring Pulse on Assembly Lock */
.snap-ring {
  opacity: 0;
  pointer-events: none;
  transform-origin: 270px 280px;
}

.snap-ring.fire {
  animation: snapPulseRing 0.8s ease-out forwards;
}

@keyframes snapPulseRing {
  0% { opacity: 0.9; transform: scale(0.4); stroke: var(--clr-accent-orange); }
  50% { opacity: 0.6; stroke: var(--clr-accent-teal); }
  100% { opacity: 0; transform: scale(1.6); stroke: #10b981; }
}

/* HUD Leader Line Tags */
.part-hud-tag {
  transition: opacity 0.4s ease, transform 0.3s ease;
  cursor: pointer;
}

.part-hud-tag:hover text {
  fill: var(--clr-accent-orange);
}

.part-hud-tag rect {
  fill: #ffffff;
  stroke: #cbd5e1;
  rx: 4;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.08));
}

.part-hud-tag text {
  font-family: var(--ff-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  fill: #0f172a;
}

/* Assembly Controls Bar */
.assembly-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: all var(--transition-fast);
}

.ctrl-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: var(--clr-accent-orange);
}

.ctrl-btn.active {
  background: var(--grad-cta);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.ctrl-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Interactive Part Inspector Strip */
.part-inspector-box {
  margin-top: var(--space-md);
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: var(--fs-xs);
  min-height: 48px;
}

.inspector-meta {
  display: flex;
  flex-direction: column;
}

.inspector-part-name {
  font-family: var(--ff-heading);
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.inspector-part-desc {
  color: var(--clr-text-secondary);
  font-size: 0.75rem;
  line-height: 1.3;
}

.inspector-action-link {
  color: white;
  background: var(--grad-cta);
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
  transition: all var(--transition-fast);
}

.inspector-action-link:hover {
  background: var(--grad-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---------- SERVICES SECTION ---------- */
.services {
  padding: var(--space-4xl) 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  padding: var(--space-xl);
  transition: transform var(--transition-default), box-shadow var(--transition-default);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-default);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow-orange);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--grad-accent);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-lg);
  transition: transform var(--transition-default);
}

.service-card:hover .service-icon {
  transform: rotate(10deg) scale(1.1);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.service-card h3 {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.service-card p {
  color: var(--clr-text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

/* ---------- CATEGORIES / MACHINES SECTION ---------- */
.categories {
  padding: var(--space-4xl) 0;
  background: var(--clr-bg-secondary);
  position: relative;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.category-card {
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-default), box-shadow var(--transition-default);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-glow-blue);
}

.category-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover .category-img img {
  transform: scale(1.1);
}

.category-info {
  padding: var(--space-lg);
}

.category-info h3 {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.category-info p {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
}

.category-tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  color: var(--clr-accent-orange);
  font-weight: 600;
  margin-top: var(--space-sm);
}

/* ---------- PRICING SECTION ---------- */
.pricing {
  padding: var(--space-4xl) 0;
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
  max-width: 900px;
  margin-inline: auto;
}

.pricing-card {
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  transition: transform var(--transition-default), box-shadow var(--transition-default);
}

.pricing-card.featured {
  border-color: var(--clr-accent-orange);
  box-shadow: var(--shadow-glow-orange);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-xs) var(--space-lg);
  background: var(--grad-accent);
  color: white;
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card:hover {
  transform: translateY(-8px);
}

.pricing-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: var(--clr-bg-glass);
  border: 1px solid var(--clr-border-glass);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
}

.pricing-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--clr-accent-orange);
}

.pricing-card h3 {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.pricing-card .price {
  font-family: var(--ff-heading);
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: var(--space-xs);
}

.pricing-card .price-note {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-bottom: var(--space-xl);
}

.pricing-features {
  text-align: left;
  margin-bottom: var(--space-xl);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  border-bottom: 1px solid var(--clr-border-glass);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .check {
  width: 20px;
  height: 20px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pricing-features .check svg {
  width: 12px;
  height: 12px;
  fill: var(--clr-accent-emerald);
}

/* ---------- BOOKING SECTION ---------- */
.booking {
  padding: var(--space-4xl) 0;
  background: var(--clr-bg-secondary);
  position: relative;
}

.booking-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.booking-info h2 {
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  font-weight: 800;
  margin-bottom: var(--space-lg);
}

.booking-channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.channel-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  transition: transform var(--transition-fast);
}

.channel-card:hover {
  transform: translateX(8px);
}

.channel-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.channel-icon.whatsapp { background: rgba(37, 211, 102, 0.15); }
.channel-icon.email { background: rgba(56, 189, 248, 0.15); }
.channel-icon.phone { background: rgba(245, 158, 11, 0.15); }

.channel-icon svg {
  width: 24px;
  height: 24px;
}

.channel-details h4 {
  font-family: var(--ff-heading);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.channel-details p {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
}

.channel-details a {
  color: var(--clr-accent-orange);
  font-weight: 600;
}

/* Contact Form */
.booking-form {
  padding: var(--space-2xl);
}

.booking-form h3 {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-text-secondary);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  color: var(--clr-text-primary);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-accent-orange);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.16);
  background: #ffffff;
}

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

.form-group select option {
  background: #ffffff;
  color: #0f172a;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.btn-submit {
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  background: var(--grad-cta);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--fs-body);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-orange);
}

/* ---------- CONTACT / FOOTER SECTION ---------- */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--clr-border-glass);
  background: #f1f5f9;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  color: var(--clr-text-secondary);
  font-size: var(--fs-sm);
  margin-top: var(--space-md);
  max-width: 300px;
  line-height: 1.7;
}

.footer h4 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: var(--fs-body);
  margin-bottom: var(--space-lg);
  color: var(--clr-text-primary);
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
  color: var(--clr-accent-orange);
  padding-left: 4px;
}

.footer-contact-info p {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  margin-bottom: var(--space-sm);
}

.footer-contact-info svg {
  width: 16px;
  height: 16px;
  fill: var(--clr-accent-orange);
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--clr-border-glass);
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--clr-border-glass);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.social-links a:hover {
  border-color: var(--clr-accent-orange);
  background: rgba(245, 158, 11, 0.12);
}

.social-links svg {
  width: 16px;
  height: 16px;
  fill: var(--clr-text-secondary);
}

/* ---------- FLOATING WHATSAPP BUTTON ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: var(--clr-whatsapp);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  animation: bounce-subtle 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- TOAST / NOTIFICATION ---------- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: var(--space-md) var(--space-xl);
  background: var(--clr-accent-emerald);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--fs-sm);
  z-index: 9999;
  transition: transform 0.4s var(--ease-out);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }
  
  .hero-text {
    max-width: 100%;
  }
  
  .hero-description {
    margin-inline: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    max-width: 500px;
    margin-inline: auto;
  }
  
  .booking-wrapper {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--clr-header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-lg);
    border-top: 1px solid var(--clr-border-glass);
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero-stats {
    gap: var(--space-lg);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  
  .gear-1, .gear-2, .gear-3, .gear-4 {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    justify-content: center;
    width: 100%;
  }
}

/* ============================================
   SCROLL CINEMA REDESIGN
   ============================================ */
:root {
  --clr-bg-primary: #f7f2ea;
  --clr-bg-secondary: #fffaf2;
  --clr-bg-card: #fffdf8;
  --clr-bg-glass: rgba(255, 253, 248, 0.92);
  --clr-border-glass: rgba(30, 24, 18, 0.16);
  --clr-header-bg: rgba(18, 17, 15, 0.82);
  --clr-accent-orange: #e85d25;
  --clr-accent-orange-light: #ffb000;
  --clr-accent-teal: #007f7a;
  --clr-accent-emerald: #169b62;
  --clr-text-primary: #161411;
  --clr-text-secondary: #5f574d;
  --clr-text-muted: #80776b;
  --grad-hero: linear-gradient(180deg, #15120f 0%, #2f2118 58%, #f7f2ea 100%);
  --grad-accent: linear-gradient(90deg, #e85d25, #ffb000);
  --grad-card: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(246, 238, 224, 0.96));
  --grad-cta: linear-gradient(90deg, #161411, #e85d25);
  --grad-cta-hover: linear-gradient(90deg, #e85d25, #ffb000);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  --shadow-card: 0 18px 50px rgba(35, 27, 19, 0.12);
  --shadow-hover: 0 28px 70px rgba(35, 27, 19, 0.18);
  --shadow-glow-orange: 0 18px 44px rgba(232, 93, 37, 0.24);
  --scroll-y: 0;
  --hero-shift: 0;
  --fs-hero: 4.8rem;
  --fs-h2: 3.25rem;
  --fs-h3: 1.45rem;
}

[data-theme="nordic"],
[data-theme="ivory"] {
  --clr-bg-primary: #f7f2ea;
  --clr-bg-secondary: #fffaf2;
  --clr-bg-card: #fffdf8;
  --clr-border-glass: rgba(30, 24, 18, 0.16);
  --clr-header-bg: rgba(18, 17, 15, 0.82);
  --clr-accent-orange: #e85d25;
  --clr-accent-orange-light: #ffb000;
  --clr-accent-teal: #007f7a;
  --clr-text-primary: #161411;
  --clr-text-secondary: #5f574d;
  --grad-hero: linear-gradient(180deg, #15120f 0%, #2f2118 58%, #f7f2ea 100%);
  --grad-accent: linear-gradient(90deg, #e85d25, #ffb000);
  --grad-card: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(246, 238, 224, 0.96));
  --grad-cta: linear-gradient(90deg, #161411, #e85d25);
  --grad-cta-hover: linear-gradient(90deg, #e85d25, #ffb000);
}

html {
  scroll-padding-top: 80px;
}

body {
  background:
    linear-gradient(90deg, rgba(22, 20, 17, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(22, 20, 17, 0.04) 1px, transparent 1px),
    var(--clr-bg-primary);
  background-size: 56px 56px, 56px 56px, auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  width: 100%;
  height: 4px;
  background: var(--grad-accent);
  transform: scaleX(var(--scroll-y));
  transform-origin: left;
}

.hero-orb,
.theme-switcher {
  display: none;
}

.header {
  padding: 14px 0;
  color: #fffaf2;
  mix-blend-mode: normal;
}

.header .container {
  width: min(1440px, calc(100% - 32px));
}

.header.scrolled,
.nav-links.open {
  background: var(--clr-header-bg);
  color: #fffaf2;
  box-shadow: 0 1px 0 rgba(255, 250, 242, 0.14);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fffaf2;
  animation: spin-gear 10s linear infinite;
}

.logo-icon svg {
  fill: #161411;
}

.logo-text,
.nav-links a,
.logo-text small {
  color: inherit;
}

.nav-links {
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.08);
}

.nav-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 250, 242, 0.78);
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: #161411;
  background: #fffaf2;
}

.nav-cta {
  background: var(--clr-accent-orange) !important;
  color: #fffaf2 !important;
  border-radius: 999px;
  box-shadow: none;
}

.hero {
  min-height: 118vh;
  align-items: start;
  padding: 120px 0 120px;
  background: var(--grad-hero);
  color: #fffaf2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26vh;
  background: linear-gradient(180deg, transparent, var(--clr-bg-primary));
  pointer-events: none;
}

.hero-bg img {
  opacity: 0.18;
  filter: grayscale(0.45) contrast(1.2);
  transform: scale(calc(1.04 + (var(--hero-shift) * 0.08))) translateY(calc(var(--hero-shift) * -34px));
}

.hero-bg::after {
  background:
    linear-gradient(90deg, rgba(18, 17, 15, 0.92), rgba(18, 17, 15, 0.58) 48%, rgba(18, 17, 15, 0.22)),
    linear-gradient(180deg, rgba(18, 17, 15, 0.08), rgba(18, 17, 15, 0.82));
}

.hero-content {
  width: min(1440px, calc(100% - 32px));
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
  padding-top: 0;
}

.hero-text {
  position: sticky;
  top: 118px;
  max-width: 760px;
  padding-top: 4vh;
  transform: translateY(calc(var(--hero-shift) * -40px));
}

.hero-badge {
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.12);
  border-color: rgba(255, 250, 242, 0.22);
  color: #ffcf6c;
  box-shadow: none;
}

.hero h1 {
  max-width: 760px;
  color: #fffaf2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-description {
  max-width: 620px;
  color: rgba(255, 250, 242, 0.78);
}

.accent-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
}

.btn {
  min-height: 48px;
  border-radius: 8px;
}

.btn-primary {
  background: #fffaf2;
  color: #161411;
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(255, 250, 242, 0.18);
}

.btn-whatsapp {
  background: #0c8f54;
}

.hero-stats {
  gap: 12px;
}

.stat-item {
  min-width: 150px;
  padding: 14px;
  border: 1px solid rgba(255, 250, 242, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.08);
}

.stat-label {
  color: rgba(255, 250, 242, 0.62);
  letter-spacing: 0;
}

.hero-visual {
  position: sticky;
  top: 104px;
  min-height: calc(100vh - 128px);
  align-items: center;
  perspective: 1400px;
}

.motor-showcase {
  width: min(100%, 560px);
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.1);
  border: 1px solid rgba(255, 250, 242, 0.22);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.36);
  transform:
    translateY(calc(var(--hero-shift) * 34px))
    rotateX(calc(var(--hero-shift) * 5deg))
    rotateZ(calc((var(--hero-shift) - 0.5) * -3deg))
    scale(calc(0.96 + (var(--hero-shift) * 0.06)));
  transition: transform 120ms linear;
}

.showcase-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 12;
  border-radius: 8px;
  background: #161411;
}

.showcase-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(1.1);
  transform: scale(calc(1.02 + (var(--hero-shift) * 0.08)));
}

.showcase-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.54));
  pointer-events: none;
}

.showcase-scanline {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(255, 176, 0, 0.24), transparent);
  transform: translateY(calc(-80% + (var(--hero-shift) * 160%)));
  mix-blend-mode: screen;
}

.showcase-readout {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 250, 242, 0.2);
  border-radius: 8px;
  color: #fffaf2;
  background: rgba(18, 17, 15, 0.62);
  backdrop-filter: blur(12px);
}

.showcase-readout span,
.showcase-readout strong {
  font-size: 0.78rem;
}

.showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 6px 4px;
  color: #fffaf2;
}

.showcase-footer p {
  margin: 3px 0 0;
  color: rgba(255, 250, 242, 0.68);
  font-size: 0.78rem;
}

.machine-capacity,
.pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 250, 242, 0.18);
  background: rgba(255, 250, 242, 0.08);
  color: #fffaf2;
}

.hero-card-footer {
  padding: 10px 6px 4px;
}

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 6px 10px;
  font-size: 0.76rem;
}

.quick-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  color: #fffaf2;
  background: rgba(18, 17, 15, 0.54);
}

.quick-callout small {
  display: block;
  color: rgba(255, 250, 242, 0.68);
}

.btn-sm {
  min-height: 40px;
  padding: 9px 13px;
  font-size: 0.86rem;
}

.services,
.categories,
.pricing,
.booking {
  padding: 96px 0;
  background: transparent;
  scroll-margin-top: 0;
}

.services .container,
.categories .container,
.pricing .container,
.booking .container,
.footer .container {
  width: min(1320px, calc(100% - 32px));
}

.section-label {
  letter-spacing: 0;
  color: var(--clr-accent-teal);
}

.section-title,
.booking-info h2 {
  letter-spacing: 0;
  max-width: 900px;
}

.services .scroll-reveal:first-child,
.categories .scroll-reveal:first-child,
.pricing .scroll-reveal:first-child {
  max-width: 860px;
  margin-bottom: 42px;
}

.categories .scroll-reveal:first-child,
.pricing .scroll-reveal:first-child {
  margin-inline: auto;
}

.section-subtitle {
  font-size: 1.06rem;
}

.glass-card {
  border-radius: 8px;
  border: 1px solid var(--clr-border-glass);
  background: var(--grad-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transform: translateY(44px) rotateX(12deg);
  transform-origin: center bottom;
}

.service-card::before {
  height: 100%;
  opacity: 0.1;
  transform: scaleY(0);
  transform-origin: bottom;
}

.service-card:hover {
  transform: translateY(-8px) rotateX(0);
}

.service-icon,
.pricing-icon,
.channel-icon {
  border-radius: 8px;
}

.service-icon {
  background: #161411;
}

.categories {
  position: relative;
  background: #161411;
  color: #fffaf2;
}

.categories::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 250, 242, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.categories .section-subtitle,
.categories .category-info p {
  color: rgba(255, 250, 242, 0.7);
}

.categories .section-label {
  color: #ffcf6c;
}

.categories-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 250, 242, 0.08);
  border-color: rgba(255, 250, 242, 0.16);
  color: #fffaf2;
}

.category-card:nth-child(1),
.category-card:nth-child(6) {
  grid-column: auto;
}

.category-img {
  flex: 1;
  min-height: 300px;
  border-radius: 8px 8px 0 0;
}

.category-info {
  padding: 20px;
}

.category-tag {
  border-radius: 999px;
  color: #ffcf6c;
  background: rgba(255, 176, 0, 0.13);
}

.pricing-grid {
  max-width: 1040px;
  gap: 18px;
}

.pricing-card {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.featured::before {
  border-radius: 999px;
  background: #161411;
}

.price {
  font-size: 2.2rem !important;
}

.booking-wrapper {
  grid-template-columns: minmax(320px, 0.78fr) minmax(420px, 1fr);
  gap: 12px;
}

.booking-info,
.booking-form {
  position: sticky;
  top: 104px;
  align-self: start;
  min-width: 0;
}

.booking-info {
  padding: 28px;
  border: 1px solid var(--clr-border-glass);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
}

.channel-card {
  border-radius: 8px;
  min-width: 0;
}

.channel-details,
.booking-form form,
.form-group,
.form-row {
  min-width: 0;
}

.booking-form {
  padding: 28px;
}

.form-group input,
.form-group select,
.form-group textarea,
.btn-submit {
  border-radius: 8px;
  max-width: 100%;
}

.btn-submit {
  min-height: 52px;
  background: #161411;
  color: #fffaf2;
}

.footer {
  background: #fffaf2;
}

.whatsapp-float {
  border-radius: 8px;
}

.toast {
  width: min(420px, calc(100% - 24px));
  text-align: center;
  transform: translate(-50%, calc(100% + 40px));
}

.toast.show {
  transform: translate(-50%, 0);
}

.motor-gear {
  color: #e85d25;
  opacity: 0.08;
  mix-blend-mode: multiply;
}

.scroll-reveal,
.scroll-reveal-fallback {
  opacity: 0;
  transform: translateY(54px) scale(0.98);
  animation: none !important;
  transition:
    opacity 800ms var(--ease-out),
    transform 800ms var(--ease-out),
    filter 800ms var(--ease-out);
  filter: blur(4px);
}

.scroll-reveal.in-view,
.scroll-reveal-fallback.is-visible,
.scroll-reveal-fallback.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .motor-showcase,
  .hero-bg img,
  .showcase-media video,
  .showcase-scanline,
  .scroll-reveal,
  .scroll-reveal-fallback {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 1200px) {
  :root {
    --fs-hero: 3.8rem;
    --fs-h2: 2.7rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-text,
  .hero-visual {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --fs-hero: 3rem;
    --fs-h2: 2.2rem;
  }

  .header .container {
    color: #fffaf2;
  }

  .mobile-toggle span {
    background: #fffaf2;
  }

  .nav-links {
    border-radius: 0;
    border-inline: 0;
  }

  .services-grid,
  .categories-grid,
  .pricing-grid,
  .booking-wrapper {
    grid-template-columns: 1fr;
  }

  .category-card,
  .category-card:nth-child(1),
  .category-card:nth-child(6) {
    grid-column: auto;
    min-height: auto;
  }

  .booking-info,
  .booking-form {
    position: relative;
    top: auto;
  }
}

@media (max-width: 560px) {
  :root {
    --fs-hero: 2.28rem;
    --fs-h2: 1.9rem;
  }

  .hero {
    padding-top: 104px;
  }

  .hero-content,
  .header .container,
  .services .container,
  .categories .container,
  .pricing .container,
  .booking .container,
  .footer .container {
    width: min(100% - 24px, 1320px);
  }

  .hero-stats,
  .quick-callout,
  .showcase-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .stat-item {
    width: 100%;
  }

  .showcase-readout {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-info,
  .booking-form {
    padding: 18px;
  }

  .channel-card {
    gap: 12px;
    padding: 14px;
  }

  .channel-details span,
  .channel-details p {
    overflow-wrap: anywhere;
  }

  #channel-email {
    flex-direction: column;
    align-items: flex-start;
  }

  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
  }

  .services,
  .categories,
  .pricing,
  .booking {
    padding: 64px 0;
  }

  .services .scroll-reveal:first-child,
  .categories .scroll-reveal:first-child,
  .pricing .scroll-reveal:first-child {
    margin-bottom: 28px;
  }

  .service-card {
    min-height: 250px;
    padding: 22px;
  }

  .category-img {
    min-height: 260px;
  }
}

@media (max-width: 768px) {
  .header .nav-links {
    position: absolute;
    top: 100%;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
  }
}

.form-delivery-note {
  margin-top: 12px;
  color: var(--clr-text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

#email-thanks {
  margin: auto;
  width: min(440px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid var(--clr-border-glass);
  border-radius: 12px;
  background: #fffaf2;
  color: #161411;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}
#email-thanks::backdrop { background: rgba(0, 0, 0, 0.65); }
#email-thanks h2 { font-size: 1.5rem; line-height: 1.3; }
#email-thanks p { margin: 16px 0 24px; line-height: 1.6; }
.email-thanks-close {
  display: block;
  margin: 16px auto 0;
  padding: 10px 20px;
  background: transparent;
  color: #161411;
  border: 1px solid #80776b;
  border-radius: 8px;
  cursor: pointer;
}

.local-service { padding: 64px 0; }
.local-service .container { width: min(100% - 32px, 1000px); }
.local-service p { margin: 16px 0; line-height: 1.8; color: var(--clr-text-secondary); }
.local-service p a { text-decoration: underline; }
.service-faq { margin: 28px 0; }
.service-faq details { padding: 16px 0; border-bottom: 1px solid var(--clr-border-glass); }
.service-faq summary { cursor: pointer; font-weight: 700; }
@media (max-width: 560px) { .local-service .container { width: calc(100% - 24px); } }
/* Keep service content readable for crawlers and visitors without JavaScript. */
