/* ==========================================================================
   NERVED MECHANICS — Style Sheet
   Volkswagen | SEAT | Audi Specialist — Walvis Bay, Namibia
   --------------------------------------------------------------------------
   Palette is derived directly from the Nerved Mechanics logo:
   Black + Deep Red + White + Light Gray
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --primary-black: #050505;
  --brand-red: #9E0000;
  --brand-red-dark: #700000;
  --white: #ffffff;
  --light-gray: #f4f4f4;
  --medium-gray: #d9d9d9;
  --dark-gray: #1a1a1a;
  --text-gray: #666666;

  --font-heading: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --shadow-sm: 0 4px 16px rgba(5, 5, 5, 0.08);
  --shadow-md: 0 12px 32px rgba(5, 5, 5, 0.14);
  --shadow-lg: 0 24px 60px rgba(5, 5, 5, 0.22);

  --radius: 10px;
  --radius-lg: 16px;

  --transition: 0.35s cubic-bezier(0.25, 0.7, 0.35, 1);
  --nav-height: 84px;
}

/* --------------------------------------------------------------------------
   2. Base / Reset
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark-gray);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary-black);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-red);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--brand-red-dark);
}

::selection {
  background: var(--brand-red);
  color: var(--white);
}

section {
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Slim premium scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--primary-black);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-red);
  border-radius: 10px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--brand-red);
  color: var(--white);
  padding: 12px 20px;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   3. Shared Utilities
   -------------------------------------------------------------------------- */
.container-wide {
  max-width: 1320px;
}

.text-red {
  color: var(--brand-red) !important;
}

.bg-dark-charcoal {
  background: var(--dark-gray);
}

.section {
  padding: 96px 0;
}
.section-sm {
  padding: 72px 0;
}

/* Section heading block */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 18px;
}
.section-label::before {
  content: "";
  width: 38px;
  height: 2px;
  background: var(--brand-red);
  display: inline-block;
}
.section-label--center::after {
  content: "";
  width: 38px;
  height: 2px;
  background: var(--brand-red);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-title .accent {
  color: var(--brand-red);
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 1.05rem;
  max-width: 640px;
}
.section-subtitle--center {
  margin-left: auto;
  margin-right: auto;
}

.lead-red-line {
  width: 64px;
  height: 3px;
  background: var(--brand-red);
  border: 0;
  opacity: 1;
  margin: 28px 0;
}
.lead-red-line--center {
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 14px 30px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-width: 2px;
  border-style: solid;
}
.btn .material-symbols-outlined {
  font-size: 20px;
}

.btn-brand {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--white);
}
.btn-brand:hover,
.btn-brand:focus {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(158, 0, 0, 0.35);
}

.btn-outline-light-brand {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline-light-brand:hover,
.btn-outline-light-brand:focus {
  background: var(--white);
  border-color: var(--white);
  color: var(--primary-black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: var(--white);
  border-color: var(--white);
  color: var(--primary-black);
}
.btn-white:hover,
.btn-white:focus {
  background: var(--medium-gray);
  border-color: var(--medium-gray);
  color: var(--primary-black);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--primary-black);
  color: var(--primary-black);
}
.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background: var(--primary-black);
  border-color: var(--primary-black);
  color: var(--white);
  transform: translateY(-2px);
}

/* Red sweep effect on primary buttons */
.btn-brand::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-brand:hover::after {
  left: 140%;
}

.btn-lg {
  padding: 17px 38px;
  font-size: 0.95rem;
}
.btn-sm {
  padding: 10px 20px;
  font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   5. Navigation Bar
   -------------------------------------------------------------------------- */
.navbar {
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  min-height: var(--nav-height);
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.75), rgba(5, 5, 5, 0));
}
.navbar .container {
  min-height: var(--nav-height);
}

.navbar-scrolled {
  background: rgba(5, 5, 5, 0.97);
  box-shadow: 0 6px 24px rgba(5, 5, 5, 0.45);
  border-bottom: 2px solid var(--brand-red);
  min-height: 70px;
}
.navbar-scrolled .container {
  min-height: 70px;
}

/* Logo chip — keeps the supplied logo clean on any background */
.brand-logo {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: var(--shadow-sm);
  line-height: 0;
}
.brand-logo img {
  height: 52px;
  width: auto;
  display: block;
  transition: height var(--transition);
}
.navbar-scrolled .brand-logo img {
  height: 44px;
}

.navbar .nav-link {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 14px;
  position: relative;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--white);
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

.navbar .nav-cta {
  padding: 11px 22px;
  font-size: 0.78rem;
}

/* Custom hamburger toggler */
.navbar-toggler {
  border: 0;
  padding: 8px;
  color: var(--white);
}
.navbar-toggler .material-symbols-outlined {
  font-size: 34px;
  color: var(--white);
  transition: transform var(--transition);
}
.navbar-toggler:hover {
  color: var(--brand-red);
}
.navbar-toggler:hover .material-symbols-outlined {
  color: var(--brand-red);
}

@media (max-width: 991.98px) {
  /* Mobile menu = fixed slide panel that enters from a random direction.
     The direction is set via the `data-dir` attribute by script.js. */
  .navbar-collapse.collapse {
    display: block;
    position: fixed;
    top: var(--nav-height);
    bottom: 0;
    width: min(340px, 86vw);
    background: rgba(5, 5, 5, 0.99);
    padding: 18px 24px 30px;
    margin: 0;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 1045;
    visibility: hidden;
    opacity: 0;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.35, 1),
                opacity 0.4s ease, visibility 0.4s;
  }
  .navbar-collapse.collapse[data-dir="left"] {
    left: 0;
    transform: translateX(-105%);
    border-right: 3px solid var(--brand-red);
  }
  .navbar-collapse.collapse[data-dir="right"] {
    right: 0;
    transform: translateX(105%);
    border-left: 3px solid var(--brand-red);
  }
  .navbar-collapse.collapse[data-dir="top"],
  .navbar-collapse.collapse[data-dir="bottom"] {
    width: 100%;
    max-height: calc(100vh - var(--nav-height));
    padding: 10px 24px 26px;
  }
  .navbar-collapse.collapse[data-dir="top"] {
    left: 0;
    right: 0;
    top: var(--nav-height);
    bottom: auto;
    transform: translateY(-110%);
    border-bottom: 3px solid var(--brand-red);
  }
  .navbar-collapse.collapse[data-dir="bottom"] {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: translateY(110%);
    border-top: 3px solid var(--brand-red);
  }
  .navbar-collapse.collapse.menu-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .navbar .nav-link {
    padding: 13px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .navbar .nav-link::after {
    display: none;
  }
  .navbar .nav-cta {
    margin-top: 18px;
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-black);
  isolation: isolate;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  will-change: transform, opacity;
}
.hero-slide.active {
  opacity: 1;
  animation: heroZoom 18s ease-out forwards;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(5, 5, 5, 0.92) 0%,
    rgba(5, 5, 5, 0.78) 42%,
    rgba(5, 5, 5, 0.35) 100%
  );
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 5, 0.65));
  z-index: -1;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.1); }
}

.hero-inner {
  padding: calc(var(--nav-height) + 40px) 0 120px;
  max-width: 780px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(158, 0, 0, 0.18);
  border: 1px solid rgba(158, 0, 0, 0.6);
  border-radius: 100px;
  padding: 10px 20px;
  margin-bottom: 26px;
}
.hero-label .material-symbols-outlined {
  color: #ff5a5a;
  font-size: 20px;
}

.hero-title {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.hero-title .accent {
  color: var(--brand-red);
}
.hero-title .accent::after {
  content: "";
  display: block;
  width: 84px;
  height: 3px;
  background: var(--brand-red);
  margin-top: 16px;
}

.hero-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  max-width: 600px;
  margin-bottom: 34px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Scroll down indicator */
.scroll-indicator {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  z-index: 5;
}
.scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-indicator .mouse span {
  width: 3px;
  height: 8px;
  background: var(--brand-red);
  border-radius: 3px;
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Hero entrance animations (elements start hidden only when JS is active) */
.js .hero-anim {
  opacity: 0;
}
.js .hero-anim.hide-up {
  transform: translateY(34px);
}
.js .hero-anim.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

/* --------------------------------------------------------------------------
   7. Trust / Quick Info Bar
   -------------------------------------------------------------------------- */
.trust-bar {
  background: var(--primary-black);
  border-top: 3px solid var(--brand-red);
  padding: 34px 0;
  position: relative;
  z-index: 4;
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--white);
  padding: 12px 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.trust-item:first-child {
  border-left: 0;
}
.trust-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  background: rgba(158, 0, 0, 0.16);
  border: 1px solid rgba(158, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-icon .material-symbols-outlined {
  color: var(--brand-red);
  font-size: 28px;
}
.trust-number {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
}
.trust-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .trust-item {
    border-left: 0;
    justify-content: flex-start;
  }
}

/* --------------------------------------------------------------------------
   8. About
   -------------------------------------------------------------------------- */
.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.about-image-wrap:hover img {
  transform: scale(1.05);
}
.about-badge {
  position: absolute;
  bottom: 22px;
  left: 22px;
  background: var(--brand-red);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 22px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
}
.about-badge small {
  display: block;
  font-weight: 500;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--dark-gray);
}
.feature-list li .material-symbols-outlined {
  color: var(--brand-red);
  font-size: 22px;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   9. Services
   -------------------------------------------------------------------------- */
.services {
  background: var(--light-gray);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--medium-gray);
  border-top: 4px solid transparent;
  border-radius: var(--radius);
  padding: 40px 34px;
  height: 100%;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), border-top-color var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(158, 0, 0, 0.35);
  border-top-color: var(--brand-red);
}

.service-number {
  position: absolute;
  top: 26px;
  right: 28px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--medium-gray);
  letter-spacing: 0.1em;
  transition: color var(--transition);
}
.service-card:hover .service-number {
  color: var(--brand-red);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: rgba(158, 0, 0, 0.08);
  border: 1px solid rgba(158, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.service-icon .material-symbols-outlined,
.service-icon .bi {
  font-size: 32px;
  color: var(--brand-red);
  transition: transform var(--transition);
}
.service-card:hover .service-icon {
  background: var(--brand-red);
  border-color: var(--brand-red);
  transform: rotate(-6deg) scale(1.06);
}
.service-card:hover .service-icon .material-symbols-outlined,
.service-card:hover .service-icon .bi {
  color: var(--white);
  transform: rotate(6deg);
}

.service-card h3 {
  font-size: 1.22rem;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.service-card-link {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-red);
}
.service-card-link .material-symbols-outlined {
  font-size: 18px;
  transition: transform var(--transition);
}
.service-card:hover .service-card-link .material-symbols-outlined {
  transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   10. Why Choose Us
   -------------------------------------------------------------------------- */
.why-us {
  background: var(--primary-black);
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}
.why-us::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(158, 0, 0, 0.25);
}
.why-us .section-title {
  color: var(--white);
}

.why-us-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
  min-height: 340px;
  aspect-ratio: 4 / 3;
}
.why-us-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.why-us-image:hover img {
  transform: scale(1.05);
}
.why-us-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 55%, rgba(5, 5, 5, 0.6));
}

.why-card {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.why-card:last-child {
  border-bottom: 0;
}
.why-card-icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(158, 0, 0, 0.16);
  border: 1px solid rgba(158, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.why-card:hover .why-card-icon {
  background: var(--brand-red);
  transform: scale(1.08);
}
.why-card-icon .material-symbols-outlined,
.why-card-icon .bi {
  color: var(--brand-red);
  font-size: 28px;
}
.why-card:hover .why-card-icon .material-symbols-outlined,
.why-card:hover .why-card-icon .bi {
  color: var(--white);
}
.why-card h3 {
  color: var(--white);
  font-size: 1.12rem;
  margin-bottom: 8px;
}
.why-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   11. Brand Specialization
   -------------------------------------------------------------------------- */
.specialist {
  background: var(--dark-gray);
  color: var(--white);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.specialist::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-red), transparent);
}
.specialist-label {
  font-family: var(--font-heading);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 26px;
}
.brand-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--white);
  text-transform: uppercase;
}
.brand-logos .brand-name {
  transition: color var(--transition), transform var(--transition);
  cursor: default;
}
.brand-logos .brand-name:hover {
  color: var(--brand-red);
}
.brand-logos .brand-logo-img {
  height: clamp(2.4rem, 5vw, 3.6rem);
  width: auto;
  opacity: 0.9;
  filter: grayscale(0.4);
  transition: opacity var(--transition), filter var(--transition), transform var(--transition);
}
.brand-logos .brand-logo-img:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.06);
}
.brand-logos .separator {
  color: var(--brand-red);
  font-weight: 400;
  font-size: 0.9em;
}
.specialist-note {
  max-width: 640px;
  margin: 30px auto 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}
.specialist-note strong {
  color: var(--white);
}

/* Workshop gallery */
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: var(--primary-black);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}

/* --------------------------------------------------------------------------
   12. Process Timeline
   -------------------------------------------------------------------------- */
.process {
  background: var(--light-gray);
}
.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  counter-reset: step;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--medium-gray);
  z-index: 1;
}
.process-step {
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
  padding: 0 12px;
}
.process-step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--medium-gray);
  color: var(--text-gray);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  position: relative;
}
.process-step-number::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px dashed rgba(158, 0, 0, 0.35);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition);
}
.process-step:hover .process-step-number {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--white);
  transform: scale(1.06);
}
.process-step:hover .process-step-number::after {
  opacity: 1;
}
.process-step h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.process-step p {
  color: var(--text-gray);
  font-size: 0.88rem;
  margin: 0;
}

@media (max-width: 991.98px) {
  .process-steps {
    flex-direction: column;
    gap: 0;
    padding-left: 50px;
  }
  .process-steps::before {
    left: 39px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }
  .process-step {
    display: flex;
    gap: 20px;
    text-align: left;
    padding: 0 0 34px;
    align-items: flex-start;
  }
  .process-step-number {
    margin: 0;
    flex: 0 0 80px;
  }
}

/* --------------------------------------------------------------------------
   13. Reviews
   -------------------------------------------------------------------------- */
.reviews {
  background: var(--white);
}
.reviews-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--dark-gray);
  border: 1px solid var(--medium-gray);
  border-radius: 100px;
  padding: 10px 22px;
  margin-bottom: 20px;
  background: var(--white);
}
.google-badge .bi {
  font-size: 1.15rem;
  color: #4285F4;
}
.rating-stars {
  color: #FBBC04;
  font-size: 1.7rem;
  letter-spacing: 4px;
  margin-bottom: 12px;
}
.rating-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary-black);
  line-height: 1;
}
.rating-based {
  color: var(--text-gray);
  font-size: 0.95rem;
}

.review-card {
  background: var(--light-gray);
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius);
  padding: 34px;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(158, 0, 0, 0.3);
}
.review-card .quote-icon {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.2rem;
  color: rgba(158, 0, 0, 0.18);
}
.review-card .review-stars {
  color: #FBBC04;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.review-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
}
.review-card .review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--medium-gray);
  color: var(--text-gray);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.review-card .review-meta .bi {
  color: #4285F4;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   14. CTA Band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.cta-band::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.cta-band .container {
  position: relative;
  z-index: 2;
}
.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
  max-width: 620px;
}
.cta-band .btn-white:hover {
  background: var(--primary-black);
  border-color: var(--primary-black);
  color: var(--white);
}
.cta-band .btn-outline-light-brand:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */
.contact {
  background: var(--light-gray);
}
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius);
  padding: 38px;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.contact-info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--light-gray);
}
.contact-info-item:last-of-type {
  border-bottom: 0;
}
.contact-info-item .ci-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(158, 0, 0, 0.08);
  border: 1px solid rgba(158, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-item .ci-icon .material-symbols-outlined {
  color: var(--brand-red);
  font-size: 24px;
}
.contact-info-item h3 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 6px;
}
.contact-info-item p {
  margin: 0;
  font-weight: 600;
  color: var(--primary-black);
}
.contact-info-item a {
  font-weight: 600;
  color: var(--primary-black);
}
.contact-info-item a:hover {
  color: var(--brand-red);
}
.contact-info-item .stars {
  color: #FBBC04;
  letter-spacing: 2px;
}

/* --------------------------------------------------------------------------
   16. Contact Form
   -------------------------------------------------------------------------- */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow-sm);
}
.form-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-black);
  margin-bottom: 8px;
}
.form-label .req {
  color: var(--brand-red);
}
.form-control,
.form-select {
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--primary-black);
  background: var(--light-gray);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(158, 0, 0, 0.15);
  background: var(--white);
}
.form-control::placeholder {
  color: #9a9a9a;
}
.form-text {
  color: var(--text-gray);
}
.invalid-feedback {
  font-size: 0.82rem;
  font-weight: 600;
}
.form-control.is-invalid {
  border-color: var(--brand-red);
  background-image: none;
}
.form-check-input:checked {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-gray);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.form-note .material-symbols-outlined {
  font-size: 16px;
  color: var(--brand-red);
  margin-top: 2px;
}

.alert-form {
  border-radius: var(--radius);
  border: 1px solid rgba(158, 0, 0, 0.3);
  background: rgba(158, 0, 0, 0.06);
  color: var(--primary-black);
  font-size: 0.92rem;
}
.alert-form .bi {
  color: var(--brand-red);
}

/* Workshop location photo + map (contact page) */
.location-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 0;
  height: 100%;
  min-height: 320px;
  aspect-ratio: 4 / 3;
}
.location-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
.location-photo:hover img {
  transform: scale(1.04);
}
.location-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 5, 0.85));
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 46px 22px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.location-photo figcaption .material-symbols-outlined {
  color: var(--brand-red);
  font-size: 20px;
  flex: 0 0 auto;
}
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 320px;
  aspect-ratio: 4 / 3;
}

/* --------------------------------------------------------------------------
   17. Page Hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 70px) 0 80px;
  background: var(--primary-black);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.page-hero .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  z-index: 1;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.85), rgba(5, 5, 5, 0.96));
  z-index: 2;
}
.page-hero .container {
  position: relative;
  z-index: 3;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.page-hero .lead-red-line {
  margin-left: auto;
  margin-right: auto;
}
.crumb {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}
.crumb a {
  color: rgba(255, 255, 255, 0.55);
}
.crumb a:hover {
  color: var(--white);
}
.crumb .sep {
  color: var(--brand-red);
  margin: 0 8px;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--primary-black);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 72px;
}
.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}
.footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: var(--brand-red);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 18px;
  line-height: 0;
}
.footer-brand img {
  height: 46px;
  width: auto;
}
.footer-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.62);
  max-width: 320px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-links a .material-symbols-outlined {
  font-size: 16px;
  color: var(--brand-red);
  transition: transform var(--transition);
}
.footer-links a:hover {
  color: var(--white);
}
.footer-links a:hover .material-symbols-outlined {
  transform: translateX(4px);
}
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  align-items: flex-start;
}
.footer-contact .material-symbols-outlined {
  color: var(--brand-red);
  font-size: 20px;
  margin-top: 3px;
  flex: 0 0 auto;
}
.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}
.footer-contact a:hover {
  color: var(--white);
}
.social-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  transition: all var(--transition);
}
.social-icon:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--white);
  transform: translateY(-3px);
}
.footer-bottom {
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom a:hover {
  color: var(--white);
}
.footer-credit {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-credit a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px dotted var(--brand-red);
}
.footer-credit a:hover {
  color: var(--brand-red);
}

/* --------------------------------------------------------------------------
   19. Floating Mobile Contact Buttons
   -------------------------------------------------------------------------- */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.fab-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.fab.open .fab-actions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.fab-action {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.fab-action:hover {
  transform: scale(1.1);
  color: var(--white);
}
.fab-action .tooltip-label {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-black);
  color: var(--white);
  font-size: 0.72rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.fab-action:hover .tooltip-label {
  opacity: 1;
}
.fab-call {
  background: #1685f2;
}
.fab-whatsapp {
  background: #25d366;
}
.fab-map {
  background: var(--brand-red-dark);
}
.fab-main {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-red);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 26px rgba(158, 0, 0, 0.5);
  transition: transform var(--transition), background var(--transition);
}
.fab-main:hover {
  transform: scale(1.08);
  background: var(--brand-red-dark);
}
.fab-main .material-symbols-outlined {
  transition: transform 0.3s ease;
}
.fab.open .fab-main .material-symbols-outlined {
  transform: rotate(45deg);
}

@media (min-width: 992px) {
  .fab {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   20. Scroll Reveal Animations
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.js .reveal-left {
  transform: translateX(-44px);
}
.js .reveal-right {
  transform: translateX(44px);
}
.js .reveal-scale {
  transform: scale(0.92);
}
.js .reveal.show {
  opacity: 1;
  transform: none;
}
.js .reveal.d-1 { transition-delay: 0.12s; }
.js .reveal.d-2 { transition-delay: 0.24s; }
.js .reveal.d-3 { transition-delay: 0.36s; }
.js .reveal.d-4 { transition-delay: 0.48s; }
.js .reveal.d-5 { transition-delay: 0.6s; }

/* --------------------------------------------------------------------------
   21. Back to top
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-black);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--white);
}
.back-to-top .material-symbols-outlined {
  font-size: 22px;
}

/* --------------------------------------------------------------------------
   22. Responsive adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .section {
    padding: 72px 0;
  }
  .hero-title {
    letter-spacing: -0.01em;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 60px 0;
  }
  .hero-inner {
    padding-top: calc(var(--nav-height) + 10px);
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  .btn-lg {
    padding: 16px 24px;
  }
  .contact-form-card,
  .contact-info-card {
    padding: 26px 20px;
  }
  .brand-logo img {
    height: 44px;
  }
}

/* --------------------------------------------------------------------------
   23. Reduced motion — respect user preference
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal,
  .js .hero-anim {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-slide {
    animation: none;
  }
}
