/* ============================================================
   JAB CAR — Custom CSS
   Palette: Blu Notte, Grigio Scuro, Giallo/Oro
   Font: Rajdhani (headings) + Source Sans 3 (body)
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary-color:   #231608;
  --secondary-color: #3a2410;
  --accent-color:    #e8bc31;
  --accent-dark:     #c9a020;
  --primary-dark:    #120b03;
  --text-dark:       #2c1e0c;
  --text-light:      #ffffff;
  --text-muted:      #6c5c4a;
  --bg-light:        #faf6f0;
  --bg-dark:         #120b03;
  --border-radius:   0.5rem;
  --transition:      0.3s ease;
  --shadow-sm:       0 2px 12px rgba(0,0,0,.15);
  --shadow-lg:       0 8px 40px rgba(0,0,0,.25);
}

/* ---- Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text-dark);
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

/* ---- Scrollbar (optional polish) ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 4px; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  background: rgba(18, 11, 3, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  padding-top: .6rem;
  padding-bottom: .6rem;
}

.navbar.scrolled {
  background: rgba(18, 11, 3, 0.98) !important;
  border-bottom-color: var(--accent-color);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}

.navbar-brand img {
  height: 90px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
  transition: transform var(--transition);
}
.navbar-brand:hover img { transform: scale(1.04); }

.navbar-nav .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: .45rem 1rem !important;
  position: relative;
  transition: color var(--transition);
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--accent-color);
  transform: translateX(-50%);
  transition: width var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-color) !important;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 60%;
}

.navbar-toggler {
  border-color: var(--accent-color);
  padding: .3rem .6rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23e8bc31' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- Language switcher ---- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding-left: .6rem;
}
.lang-switch .lang-btn {
  background: transparent;
  border: 0;
  padding: .25rem .45rem;
  color: rgba(255,255,255,.6);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
}
.lang-switch .lang-btn:hover { color: var(--accent-color); }
.lang-switch .lang-btn.active {
  color: var(--accent-color);
  font-weight: 700;
}
.lang-switch .lang-sep {
  color: rgba(255,255,255,.3);
  font-size: .9rem;
  user-select: none;
}
@media (max-width: 991.98px) {
  .lang-switch {
    margin-top: .5rem;
    padding-left: 0;
    justify-content: flex-start;
  }
}

/* ================================================================
   HERO
   ================================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero-section.loaded .hero-bg { transform: scale(1); }

.hero-studio-bg {
  background:
    /* alone caldo centrale (retroilluminazione) */
    radial-gradient(ellipse 70% 35% at 50% 62%,
      rgba(255, 180, 100, 0.35) 0%,
      rgba(255, 140, 60, 0.18) 30%,
      rgba(0, 0, 0, 0) 70%),
    /* vignettatura bordi */
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%),
    /* hero image — desktop/tablet (landscape) */
    url('../img/jabcar-ncc-hero-landscape.webp') center / cover no-repeat;
  background-blend-mode: screen, multiply, normal;
  min-height: 60vh;
  position: relative;
}

/* When used as absolute background layer inside .hero-section */
.hero-bg.hero-studio-bg {
  position: absolute;
  min-height: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(18,11,3,.88) 0%,
    rgba(58,36,16,.70) 50%,
    rgba(18,11,3,.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem 1rem;
}

.hero-logo {
  height: 200px;
  width: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.6));
  animation: fadeInDown .9s ease both;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  animation: fadeInDown 1s .15s ease both;
}
.hero-content h1 span { color: var(--accent-color); }

.hero-services-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.5rem;
  animation: fadeIn 1s .3s ease both;
}
.hero-services-list li {
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255,255,255,.9);
}
.hero-services-list li i {
  color: var(--accent-color);
  font-size: 1rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .28rem .9rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.25);
}

.hero-badge-row {
  display: block;
  margin-bottom: 1.5rem;
  animation: fadeIn 1s .45s ease both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 1s .55s ease both;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-accent {
  background: var(--accent-color);
  color: var(--bg-dark);
  border: 2px solid var(--accent-color);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .65rem 2rem;
  border-radius: var(--border-radius);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 18px rgba(232,188,49,.3);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,188,49,.4);
}

.btn-outline-accent {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.7);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .65rem 2rem;
  border-radius: var(--border-radius);
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-outline-accent:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline-accent i { color: #25D366; }

.btn-primary-custom {
  background: var(--primary-color);
  color: #fff;
  border: 2px solid var(--primary-color);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .65rem 2rem;
  border-radius: var(--border-radius);
  transition: background var(--transition), transform var(--transition);
}
.btn-primary-custom:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
}

/* ================================================================
   SECTION COMMONS
   ================================================================ */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: .5rem;
}
.section-title span { color: var(--accent-color); }

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  margin: .75rem auto 1.5rem;
  border-radius: 2px;
}
.section-divider.left { margin-left: 0; }

/* animate on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   SERVICES SECTION
   ================================================================ */
.services-section {
  background: var(--bg-light);
  padding: 5rem 0;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.service-card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  transition: background var(--transition);
}
.service-card:hover .service-card-icon {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
}
.service-card-icon i {
  font-size: 1.7rem;
  color: #fff;
  transition: color var(--transition);
}
.service-card:hover .service-card-icon i { color: var(--bg-dark); }

.service-card h4 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: .6rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: .96rem;
  line-height: 1.6;
  margin: 0;
}

/* ================================================================
   BOOKING FORM SECTION
   ================================================================ */
.booking-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.booking-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: var(--accent-color);
  opacity: .05;
  border-radius: 50%;
}
.booking-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: var(--accent-color);
  opacity: .04;
  border-radius: 50%;
}

.booking-form-wrapper {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  position: relative;
  z-index: 1;
}
.booking-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-dark));
  border-radius: 16px 16px 0 0;
}

.booking-section .section-title { color: #fff; }
.booking-section .section-subtitle { color: rgba(255,255,255,.7); }

.form-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .03em;
  color: var(--secondary-color);
  margin-bottom: .3rem;
}

.form-control,
.form-select {
  border: 1.5px solid #dee2e6;
  border-radius: var(--border-radius);
  padding: .6rem .9rem;
  font-size: .96rem;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 .2rem rgba(27,47,78,.18);
}

/* FORM VALIDATION */
.form-control.is-invalid,
.form-check-input.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 .2rem rgba(220,53,69,.25) !important;
}
.form-check-input.is-invalid ~ .form-check-label { color: #dc3545; }

.form-check-label a { color: var(--accent-dark); }
.form-check-label a:hover { text-decoration: underline; }

/* ================================================================
   MAP SECTION
   ================================================================ */
.map-section {
  padding: 5rem 0;
  background: #fff;
}
.map-section .section-title { color: var(--primary-color); }

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--primary-color);
}
.map-container iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

/* ================================================================
   FLEET SECTION (flotta.html)
   ================================================================ */
.fleet-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
  padding: 7rem 0 4rem;
  text-align: center;
  color: #fff;
}
.fleet-hero .section-title { color: #fff; }

.fleet-section {
  padding: 5rem 0;
  background: var(--bg-light);
}

.fleet-card {
  background-color: #fff;
  background-image: linear-gradient(to bottom,
    #0a0a0c 0%,
    #15100a 20%,
    rgba(235, 175, 105, 0.55) 34%,
    #2d2d30 35%,
    #252528 100%);
  background-size: 100% 350px;
  background-repeat: no-repeat;
  background-position: top;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.08);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.fleet-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.fleet-card-img {
  width: 80%;
  height: 350px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-bottom: 3px solid var(--accent-color);
}

.fleet-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.fleet-card-body h4 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: .5rem;
}
.fleet-card-body p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.6;
  flex: 1;
}
.fleet-badge {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary-color);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .05em;
  padding: .25rem .85rem;
  border-radius: 50px;
  border: 1px solid var(--accent-color);
  margin-top: 1rem;
  align-self: flex-start;
}

/* fleet-badge come button clickable */
button.fleet-badge,
.fleet-badge-btn {
  font-family: 'Rajdhani', sans-serif;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
button.fleet-badge:hover,
.fleet-badge-btn:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232,188,49,0.35);
}
button.fleet-badge:focus-visible,
.fleet-badge-btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.fleet-cta-bar {
  background: var(--accent-color);
  padding: 3.5rem 0;
  text-align: center;
}
.fleet-cta-bar h3 {
  color: var(--bg-dark);
  font-size: 1.9rem;
  margin-bottom: 1.2rem;
}

/* ================================================================
   ABOUT SECTION (about.html)
   ================================================================ */
.about-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
  padding: 7rem 0 4rem;
  text-align: center;
  color: #fff;
}
.about-hero .section-title { color: #fff; }

.about-section {
  padding: 5rem 0;
  background: #fff;
}

.about-img-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrapper::before {
  content: '';
  position: absolute;
  top: -12px; left: -12px;
  width: 100%; height: 100%;
  border: 3px solid var(--accent-color);
  border-radius: 12px;
  z-index: 0;
}
.about-img-wrapper img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.about-content { padding: 1.5rem 0; }
.about-content .section-title { color: var(--primary-color); }
.about-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.values-section {
  background: var(--bg-light);
  padding: 4rem 0;
}
.value-item {
  text-align: center;
  padding: 2rem 1rem;
}
.value-icon-wrap {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  box-shadow: 0 6px 24px rgba(27,47,78,.2);
  transition: transform var(--transition);
}
.value-item:hover .value-icon-wrap { transform: scale(1.08); }
.value-icon-wrap i {
  font-size: 2rem;
  color: var(--accent-color);
}
.value-item h5 {
  font-size: 1.25rem;
  color: var(--primary-color);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.about-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
  padding: 4rem 0;
  text-align: center;
}
.about-cta h3 {
  color: #fff;
  font-size: 1.9rem;
  margin-bottom: 1rem;
}
.about-cta p {
  color: rgba(255,255,255,.75);
  margin-bottom: 1.8rem;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 0;
}

.footer-brand img {
  height: 200px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: .93rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.footer h6 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: .5rem;
}
.footer h6::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--accent-color);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: .4rem; }
.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: .93rem;
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}
.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .7rem;
  font-size: .93rem;
  color: rgba(255,255,255,.65);
}
.footer-contact-item i {
  color: var(--accent-color);
  font-size: 1rem;
  margin-top: .15rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.2rem 0;
  margin-top: 3rem;
  font-size: .85rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom a {
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--accent-color); }

/* ================================================================
   404 PAGE
   ================================================================ */
.error-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  padding: 5rem 0;
}
.error-icon {
  font-size: 5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}
.error-section h1 {
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: .5rem;
}
.error-section h2 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}
.error-section p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* ================================================================
   WHATSAPP FLOATING (optional)
   ================================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  z-index: 9001;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 18px rgba(37,211,102,.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37,211,102,.55);
}

/* ================================================================
   ANIMATIONS (keyframes)
   ================================================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ================================================================
   RESPONSIVE OVERRIDES
   ================================================================ */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(18,11,3,.97);
    border-radius: 0 0 12px 12px;
    padding: 1rem;
    margin-top: .5rem;
  }
  .navbar-nav .nav-link.active::after,
  .navbar-nav .nav-link:hover::after { display: none; }
  .navbar-brand img { height: 80px; }
  .about-img-wrapper { margin-bottom: 3rem; }
  .about-img-wrapper img { height: 320px; }
}

@media (max-width: 767.98px) {
  .hero-logo { height: 120px; }
  .hero-studio-bg {
    background:
      radial-gradient(ellipse 70% 35% at 50% 62%,
        rgba(255, 180, 100, 0.35) 0%,
        rgba(255, 140, 60, 0.18) 30%,
        rgba(0, 0, 0, 0) 70%),
      radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%),
      /* hero image — mobile (portrait) */
      url('../img/jabcar-ncc-hero-portrait.webp') center / cover no-repeat;
    background-blend-mode: screen, multiply, normal;
  }
  .booking-form-wrapper { padding: 1.5rem 1rem; }
  .fleet-card-img { height: 220px; }
  .about-img-wrapper::before { display: none; }
}

@media (max-width: 575.98px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn-accent,
  .hero-ctas .btn-outline-accent { width: 100%; max-width: 280px; }
  .footer { padding: 2.5rem 0 0; }
  .error-section h1 { font-size: 5rem; }
}

/* ================================================================
   SCROLL TO TOP (optional)
   ================================================================ */
#scrollTop {
  position: fixed;
  bottom: 10rem;
  right: 2.4rem;
  z-index: 9002;
  width: 42px;
  height: 42px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
#scrollTop.visible {
  opacity: 1;
  pointer-events: auto;
}
#scrollTop:hover { transform: translateY(-3px); }

