/* =========================================================
   GLOBAL VARIABLES — COLOR SYSTEM
========================================================= */
:root {
  --color-primary: #004b8d;
  --color-primary-dark: #00345f;
  --color-accent: #f5a623;
  --color-bg: #f5f7fa;
  --color-text: #222;
  --color-muted: #666;

  --header-height: 80px;
  --font-main: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-card: 14px;
  --shadow-soft: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-hover: 0 10px 22px rgba(0,0,0,0.12);
}

/* =========================================================
   GLOBAL RESET
========================================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-bg);
  font-size: 1.05rem;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* =========================================================
   HEADER — PREMIUM SCROLL BEHAVIOR
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(6px);
  transition: padding 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.top-bar {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  transition: height 0.25s ease;
}

body.scrolled .top-bar { height: 64px; }

body.scrolled .site-header {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}

.logo img {
  height: 40px;
  transition: height 0.25s ease, opacity 0.25s ease;
}

body.scrolled .logo img { height: 32px; }

/* Default: show full logo, hide small logo */
.logo-full { display: block; }
.logo-small { display: none; }

/* When scrolled: swap logos */
body.scrolled .logo-full { display: none; }
body.scrolled .logo-small { display: block; }

/* =========================================================
   NAVIGATION — PREMIUM
========================================================= */
.main-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.97rem;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 4px 0;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.main-nav a:hover,
.main-nav a.active { color: var(--color-primary-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-primary-dark);
  transition: color 0.25s ease;
}

/* =========================================================
   RESPONSIVE NAVIGATION
========================================================= */
@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 18px;
    display: none;
  }

  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

.nav-toggle:hover {
  color: var(--color-primary);
}

body.scrolled .nav-toggle {
  color: var(--color-primary-dark);
}

body.scrolled .nav-toggle:hover {
  color: var(--color-primary);
}

/* =========================================================
   LANGUAGE SWITCHER
========================================================= */
.lang-switcher {
  display: flex;
  gap: 0.25rem;
}

.lang-switcher button {
  background: rgba(255,255,255,0.18);
  color: var(--color-primary-dark);
  border: 1px solid rgba(0,0,0,0.25);
  padding: 0.25rem 0.6rem;
  font-size: 0.82rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.25s ease, color 0.25s ease;
  backdrop-filter: blur(4px);
}

.lang-switcher button:hover,
.lang-switcher button.active {
  background: var(--color-primary-dark);
  color: #fff;
}

/* =========================================================
   GLOBAL HERO (BASE)
========================================================= */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.hero-inner { height: 45vh; min-height: 320px; }

.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0,0,0,0.55), rgba(0,0,0,0.35));
  z-index: 5;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1100px !important; /* wider container */
  padding: 0 30px; /* keeps edges clean on large screens */

}

.hero-content h1 {
max-width: 1000px;
  font-size: 2.75rem;
  line-height: 1.1;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn-primary {
  display: inline-block;
  padding: 14px 26px;
  background: var(--color-primary-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.25s ease;
}

.btn-primary:hover { background: #004a82; }

/* =========================================================
   PAGE HEADERS
========================================================= */
.page-header {
  text-align: center;
  max-width: 800px;
  margin: 40px auto 20px;
  padding: 0 20px;
}

.page-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--color-muted);
}

/* =========================================================
   SERVICES PAGE
========================================================= */
.services-grid {
  max-width: 1200px;
  margin: 40px auto 50px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.service-title {
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
  padding: 14px 18px;
}

.service-title h3 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
}

.service-body {
  padding: 18px 20px 22px;
  color: #444;
}

/* =========================================================
   CTA ABOVE FOOTER — CENTERED + PREMIUM SPACING
========================================================= */

.services-cta {
  text-align: center;
  margin: 60px auto 90px; /* balanced spacing above and below */
}

.services-cta .btn-primary {
  display: inline-block;
}

/* =========================================================
   VEHICLES PAGE
========================================================= */
.vehicles-gallery {
  max-width: 1200px;
  margin: 40px auto 50px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.vehicle-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vehicle-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.vehicle-images { display: grid; grid-template-columns: 1fr; }

.vehicle-img-large {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.vehicle-img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.vehicle-img-small {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.vehicle-images,
.vehicle-img-row {
  gap: 8px; /* space between photos */
}

.vehicle-img-large,
.vehicle-img-small {
  border-radius: 10px;
  overflow: hidden;
}

.vehicle-info {
  padding: 18px 20px 22px;
}

/* Lightbox overlay */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* =========================================================
   FAQ — FINAL, FULLY COMPATIBLE FIX FOR YOUR HTML
========================================================= */

/* Remove default padding from wrapper */
body[data-page="faq"] .faq-item {
  padding: 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
  background: #fff;
  overflow: hidden;
  max-width: 760px;
  margin: 18px auto; /* centers each card */
}

/* FAQ question button layout */
body[data-page="faq"] .faq-question {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 22px 26px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

/* Left icon (question icon) */
body[data-page="faq"] .faq-q-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--color-primary-dark);
}

/* Question text */
body[data-page="faq"] .faq-question span {
  flex: 1;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  display: block;
}

/* Right icon (chevron) */
body[data-page="faq"] .faq-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--color-primary-dark);
  transition: transform 0.25s ease;
}

/* Rotate chevron when open */
body[data-page="faq"] .faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* Answer container */
body[data-page="faq"] .faq-answer {
  display: none;
  padding: 0 26px 22px 26px;
  border-top: 1px solid rgba(0,0,0,0.08);
  line-height: 1.65;
}

/* Show answer when open */
body[data-page="faq"] .faq-item.open .faq-answer {
  display: block;
}

/* Answer icon */
body[data-page="faq"] .faq-a-icon {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  vertical-align: middle;
  color: var(--color-primary-dark);
}

/* Lighten all FAQ icons (SVG stroke + fill) */
body[data-page="faq"] .faq-q-icon,
body[data-page="faq"] .faq-icon,
body[data-page="faq"] .faq-a-icon {
  stroke: rgba(0, 75, 141, 0.55);
  fill: rgba(0, 75, 141, 0.20);
  color: rgba(0, 75, 141, 0.55);
}

/* =========================================================
   FAQ — HOVER EFFECT (DARKER BLUE ON HOVER)
========================================================= */

body[data-page="faq"] .faq-question:hover span {
  color: var(--color-primary); /* brighter blue */
}

body[data-page="faq"] .faq-question:hover .faq-q-icon,
body[data-page="faq"] .faq-question:hover .faq-icon {
  stroke: var(--color-primary);
  fill: rgba(0, 75, 141, 0.25);
  color: var(--color-primary);
}

/* =========================================================
   CONTACT PAGE — PREMIUM
========================================================= */
.contact-container {
  max-width: 900px;
  margin: 50px auto 60px;
  background: #fff;
  padding: 60px 70px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
  line-height: 1.6;
}

.contact-container h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
}

.contact-container p {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 30px;
}

.contact-container form {
  display: grid;
  gap: 22px;
}

.contact-container label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
  display: block;
}

.contact-container input,
.contact-container textarea,
.contact-container select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-container input:focus,
.contact-container textarea:focus,
.contact-container select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,75,141,0.15);
  outline: none;
}

.contact-container textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-container .btn-primary {
  margin-top: 10px;
  padding: 16px 28px;
  font-size: 1.15rem;
  border-radius: 10px;
}

/* =========================================================
   FOOTER — PREMIUM
========================================================= */
.site-footer {
  background: var(--color-primary-dark);
  color: #ffffff;
  padding: 50px 20px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.6;
  border-top: 4px solid rgba(255,255,255,0.08);
  opacity: 0;
  transform: translateY(8px);
  animation: footerFadeIn 0.6s ease forwards;
}

.site-footer p {
  margin: 8px 0;
  opacity: 0.92;
  letter-spacing: 0.3px;
}

@keyframes footerFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   HOMEPAGE — PREMIUM HERO
========================================================= */
body[data-page="home"] .hero-home {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}

body[data-page="home"] .hero-home .hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.02);
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: brightness(0.78) contrast(1.05) saturate(1.08);
}

body[data-page="home"] .hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.12),
    rgba(0, 0, 0, 0.32),
    rgba(0, 0, 0, 0.50)
  );
  z-index: 2;
}

body[data-page="home"] .hero-home .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 100%;
  max-width: 800px;
  text-align: center;
  padding: 0 20px;
}

body[data-page="home"] .hero-home h1 {
  max-width: 1000px; /* allow full-width title */
  font-size: 3.2rem; /* slightly larger for balance */
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: #ffffff;
  margin: 0 auto 18px;
}

body[data-page="home"] .hero-home p {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto 28px;
}

/* =========================================================
   HOMEPAGE — FEATURES
========================================================= */
body[data-page="home"] .features-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

body[data-page="home"] .section-title {
  text-align: center;
  margin-bottom: 30px;
}

body[data-page="home"] .section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

body[data-page="home"] .section-title p {
  font-size: 1.05rem;
  color: var(--color-muted);
}

body[data-page="home"] .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

body[data-page="home"] .feature-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 26px 28px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

body[data-page="home"] .feature-card:hover {
  background: #eef6ff;
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

body[data-page="home"] .feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
}

/* FIX BROKEN RULE */
body[data-page="home"] .feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}


/* =========================================================
   HOMEPAGE — TESTIMONIALS (FULL-WIDTH WITH BACKGROUND IMAGE)
========================================================= */
body[data-page="home"] .testimonials {
  width: 100%;
  padding: 60px 20px;
  text-align: center;
  background-image: url('/assets/img/testimonials-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Lighter overlay so the image is visible */
body[data-page="home"] .testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); 
  z-index: 0;
}

/* Ensure content stays above overlay */
body[data-page="home"] .testimonials > * {
  position: relative;
  z-index: 1;
}

/* Title */
body[data-page="home"] .testimonials > h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 40px;
}

/* Grid stays centered inside a max-width container */
body[data-page="home"] .testimonials-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Testimonial card */
body[data-page="home"] .testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 26px 30px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body[data-page="home"] .testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Photo fix */
body[data-page="home"] .testimonial-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 12px;
}

/* Text */
body[data-page="home"] .testimonial-name {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-primary-dark);
}

body[data-page="home"] .testimonial-role {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 10px;
}

body[data-page="home"] .testimonial-text {
  font-size: 0.98rem;
  color: #444;
}


/* =========================================================
   CONTACT PAGE — REQUIRED TAG + PLACEHOLDERS + HOVER EFFECT
   (SAFE ADD-ON, DOES NOT BREAK EXISTING STRUCTURE)
========================================================= */

/* Required badge */
.contact-container .required-tag {
  color: #d9534f;
  font-size: 0.82rem;
  margin-left: 6px;
  font-weight: 600;
}

/* Placeholder examples */
.contact-container input::placeholder,
.contact-container textarea::placeholder {
  color: #9aa3b5;
  opacity: 1;
}

/* Hover effect (subtle, no layout shift) */
.contact-container input:hover,
.contact-container select:hover,
.contact-container textarea:hover {
  border-color: var(--color-primary);
  background-color: #ffffff;
}

/* Focus effect — keep your existing glow, just enhance border */
.contact-container input:focus,
.contact-container select:focus,
.contact-container textarea:focus {
  border-color: var(--color-primary-dark);
}

/* Optional: highlight required fields when empty (non-breaking) */
.contact-container input:required:invalid,
.contact-container select:required:invalid,
.contact-container textarea:required:invalid {
  border-color: #d9534f33;
}


/* =========================================================
   CONTACT PAGE — HINT TEXT (SAFE ADD-ON)
========================================================= */

.contact-container .hint {
  font-size: 0.82rem;
  color: #9aa3b5;
  margin-top: 4px;
  line-height: 1.3;
}

/* Optional: slightly tighten spacing under labels */
.contact-container label + .hint {
  margin-top: -2px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 900px) {
  body[data-page="home"] .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  body[data-page="home"] .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .contact-container {
    padding: 40px 20px; /* reduce side padding on small screens */
  }
}

@media (max-width: 700px) {
  .contact-container {
    padding: 40px 20px;
  }
}

@media (max-width: 700px) {
  .form-row {
    display: block;
  }

  .form-row .form-group {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .contact-container form > div {
    grid-column: 1 / -1 !important;
  }
}
