/* ============================================
   AutoXpert Phase 1 – Foundation Website
   Pixel-accurate recreation from design screenshots
   ============================================ */

:root {
  --ax-red: #c90808;
  --ax-red-hover: #a80606;
  --ax-red-dark: #8f0505;
  --ax-black: #0b1117;
  --ax-dark: #0c1218;
  --ax-dark-2: #111820;
  --ax-gray: #f6f6f8;
  --ax-text: #1a1a1a;
  --ax-muted: #6c757d;
  --ax-border: #e5e5e8;
  --ax-white: #ffffff;
  --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--ax-text);
  background: var(--ax-white);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

/* ============================================
   NAVBAR
   ============================================ */
.ax-navbar {
  background: var(--ax-white);
  border-bottom: 1px solid var(--ax-border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.ax-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ax-black);
  letter-spacing: -0.02em;
}

.ax-logo-mark {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ax-logo-mark img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.ax-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--ax-red);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ax-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ax-logo-text span:first-child {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ax-black);
  letter-spacing: -0.03em;
}

.ax-logo-text span:last-child {
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--ax-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ax-navbar .nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ax-black) !important;
  padding: 0.5rem 0.85rem !important;
  position: relative;
}

.ax-navbar .nav-link:hover {
  color: var(--ax-red) !important;
}

.ax-navbar .nav-link.active {
  color: var(--ax-red) !important;
}

.ax-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--ax-red);
}

.btn-book-now {
  background: var(--ax-red) !important;
  color: white !important;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.55rem 1.25rem !important;
  border-radius: 4px !important;
  border: none !important;
  white-space: nowrap;
}

.btn-book-now:hover {
  background: var(--ax-red-hover) !important;
  color: white !important;
}

.navbar-toggler {
  border: 1px solid var(--ax-border);
  padding: 0.35rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ============================================
   HERO SECTION
   Background image (van) + left white fade overlay
   Matches reference screenshot structure
   ============================================ */
.ax-hero {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  background: #f5f5f7;
}

/* FULL background image across hero */
.ax-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/van.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Gradient where text sits — readable, no double text */
.ax-hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;  
  pointer-events: none;
}

.ax-hero .container {
  position: relative;
  z-index: 2;
}

.ax-hero-content {
  padding: 7.5rem 0 4.25rem;
  position: relative;
  z-index: 3;
  max-width: 480px;
}

.ax-hero-title {
  font-size: clamp(1.65rem, 3.6vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

.ax-hero-title .line-black {
  color: var(--ax-black);
  display: block;
  white-space: nowrap;
}

.ax-hero-title .line-red {
  color: var(--ax-red);
  display: block;
  white-space: nowrap;
}

.ax-hero-sub {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 1.85rem;
  line-height: 1.55;
  max-width: 360px;
}

.ax-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-hero-primary {
  background: var(--ax-red);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 1.7rem;
  border-radius: 4px;
  border: 2px solid var(--ax-red);
  transition: all 0.2s ease;
}

.btn-hero-primary:hover {
  background: var(--ax-red-hover);
  border-color: var(--ax-red-hover);
  color: white;
}

.btn-hero-secondary {
  background: #ffffff;
  color: var(--ax-black);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 1.7rem;
  border-radius: 4px;
  border: 2px solid #d0d0d5;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.btn-hero-secondary:hover {
  background: var(--ax-black);
  border-color: var(--ax-black);
  color: white;
}

/* ============================================
   TRUST / BENEFITS BAR
   ============================================ */
.ax-trust-bar {
  background: var(--ax-black);
  color: white;
  padding: 1.35rem 0;
}

.ax-trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  position: relative;
}

.ax-trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.ax-trust-icon {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--ax-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ax-red);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.ax-trust-text {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.ax-trust-text span {
  display: block;
}

/* ============================================
   OUR SERVICES SECTION
   ============================================ */
.ax-services {
  background: var(--ax-white);
  padding: 3.5rem 0 3rem;
}

@media (min-width: 1200px) {
  .ax-hero {
    min-height: 560px;
  }

  .ax-hero-content {
    max-width: 500px;
  }
}

@media (min-width: 1400px) {
  .ax-hero-content {
    max-width: 540px;
  }

  .ax-hero .container {
    padding-left: 2rem;
  }

  .ax-hero {
    min-height: 600px;
  }

  .ax-hero-bg {
    background-size: cover;
    background-position: center right;
  }
}

@media (min-width: 1800px) {
  .ax-hero {
    min-height: 640px;
  }

  .ax-hero-bg {
    /* prevent over-zoom on ultra-wide */
    background-size: cover;
    background-position: center right;
  }
}

.ax-section-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ax-black);
  margin-bottom: 2.25rem;
}

.ax-service-item {
  text-align: center;
  padding: 1.15rem 0.6rem;
  position: relative;
  border: none;
}

/* Vertical dividers between services (desktop row) */
.ax-services .row > [class*="col"]:not(:last-child) .ax-service-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 18%;
  height: 64%;
  width: 1px;
  background: #e0e0e4;
}

.ax-service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ax-black);
  font-size: 1.85rem;
}

.ax-service-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ax-black);
  line-height: 1.35;
}

/* ============================================
   QUICK QUOTE SECTION
   ============================================ */
.ax-quote-section {
  background: var(--ax-dark);
  color: white;
  padding: 2.75rem 0;
}

.ax-quote-left h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.ax-quote-left p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
  max-width: 380px;
}

.ax-quote-right h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.ax-quote-form .form-control {
  background: #1a222c;
  border: 1px solid #2a3440;
  color: white;
  border-radius: 4px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.ax-quote-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.ax-quote-form .form-control:focus {
  background: #1e2732;
  border-color: var(--ax-red);
  color: white;
  box-shadow: 0 0 0 0.15rem rgba(201, 6, 13, 0.25);
}

.btn-get-quote {
  background: var(--ax-red);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 4px;
  width: 100%;
  margin-top: 0.25rem;
  transition: background 0.2s ease;
}

.btn-get-quote:hover {
  background: var(--ax-red-hover);
  color: white;
}

/* ============================================
   RED CONTACT BAR
   ============================================ */
.ax-contact-bar {
  background: var(--ax-red);
  color: white;
  padding: 1.1rem 0;
}

.ax-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.4rem 0.5rem;
  position: relative;
  min-width: 0; /* allow shrink in grid */
}

.ax-contact-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.ax-contact-icon {
  font-size: 1.7rem;
  opacity: 0.95;
  flex-shrink: 0;
}

.ax-contact-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  line-height: 1.2;
}

.ax-contact-value {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ax-contact-item > div:last-child {
  min-width: 0;
  flex: 1;
}

.ax-contact-item a {
  color: white;
}

.ax-contact-item a:hover {
  opacity: 0.9;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.ax-page-hero {
  background: var(--ax-black);
  color: white;
  padding: 2.75rem 0;
  text-align: center;
}

.ax-page-hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.ax-page-hero p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ============================================
   SERVICES PAGE CARDS
   ============================================ */
.ax-service-card {
  background: white;
  border: 1px solid var(--ax-border);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  text-align: center;
}

.ax-service-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.ax-service-card .icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.15rem;
  background: #f8f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ax-red);
  font-size: 1.75rem;
}

.ax-service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--ax-black);
}

.ax-service-card p {
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.btn-service-cta {
  background: transparent;
  color: var(--ax-red);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--ax-red);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-service-cta:hover {
  background: var(--ax-red);
  color: white;
}

/* ============================================
   FORMS (shared)
   ============================================ */
.ax-form-section {
  padding: 3rem 0 4rem;
}

.ax-form-card {
  background: white;
  border: 1px solid var(--ax-border);
  border-radius: 10px;
  padding: 2rem 2.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.ax-form-card .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.35rem;
}

.ax-form-card .form-control,
.ax-form-card .form-select {
  border: 1px solid #d0d0d5;
  border-radius: 4px;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
}

.ax-form-card .form-control:focus,
.ax-form-card .form-select:focus {
  border-color: var(--ax-red);
  box-shadow: 0 0 0 0.15rem rgba(201, 6, 13, 0.2);
}

.btn-submit {
  background: var(--ax-red);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.btn-submit:hover {
  background: var(--ax-red-hover);
  color: white;
}

.ax-success-msg {
  display: none;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
}

.ax-success-msg.show {
  display: block;
}

/* ============================================
   AREAS / ABOUT CONTENT
   ============================================ */
.ax-content-section {
  padding: 3rem 0 4rem;
}

.ax-content-card {
  background: white;
  border: 1px solid var(--ax-border);
  border-radius: 10px;
  padding: 2rem;
  height: 100%;
}

.ax-content-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--ax-black);
}

.ax-content-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

.ax-why-list {
  list-style: none;
  padding: 0;
}

.ax-why-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.ax-why-list li i {
  color: var(--ax-red);
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

.ax-map-placeholder {
  background: #eef0f3;
  border: 2px dashed #c0c4cc;
  border-radius: 10px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #888;
  text-align: center;
  padding: 2rem;
}

.ax-map-placeholder i {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  color: var(--ax-red);
  opacity: 0.7;
}

.ax-map-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ax-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  background: #fff;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.ax-map-wrap iframe {
  width: 100%;
  flex: 1;
  min-height: 300px;
  border: 0;
  display: block;
}

.ax-map-caption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #555;
  background: #fafafa;
  border-top: 1px solid var(--ax-border);
}

.ax-areas-list {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 1.5rem;
}

.ax-areas-list li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.ax-areas-list li i {
  color: var(--ax-red);
  margin-right: 0.4rem;
  font-size: 0.75rem;
}

/* ============================================
   CONTACT PAGE INFO
   ============================================ */
.ax-contact-info-card {
  background: var(--ax-black);
  color: white;
  border-radius: 10px;
  padding: 2rem;
  height: 100%;
}

.ax-contact-info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.ax-contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ax-contact-info-item i {
  font-size: 1.25rem;
  color: var(--ax-red);
  margin-top: 0.15rem;
}

.ax-contact-info-item a {
  color: white;
}

.ax-contact-info-item a:hover {
  color: #ffcccc;
}



@media (min-width: 992px) {
  .ax-hero {
    min-height: 520px;
  }
  .ax-hero-content {
    text-align: left;
    max-width: 460px;
  }
  .ax-hero-buttons {
    justify-content: flex-start;
  }
  .ax-hero-bg {
    background-size: cover;
    background-position: 70% center;
  }
}

@media (min-width: 1200px) {
  .ax-hero {
    min-height: 560px;
  }
  .ax-hero-bg {
    background-position: 65% center;
  }
}

@media (min-width: 1400px) {
  .ax-hero {
    min-height: 600px;
  }
  .ax-hero-content {
    max-width: 520px;
  }
  .ax-hero-bg {
    background-position: 60% center;
  }
}

@media (min-width: 1800px) {
  .ax-hero {
    min-height: 640px;
  }
  .ax-hero-bg {
    background-position: center right;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
  .ax-trust-item:not(:last-child)::after,
  .ax-contact-item:not(:last-child)::after,
  .ax-services .row > [class*="col"]:not(:last-child) .ax-service-item::after {
    display: none;
  }

  .ax-hero {
    min-height: 560px;
  }

  .ax-hero-bg {
    background-size: cover;
    background-position: center right;
  }

  .ax-hero-fade {
    background: linear-gradient(
      180deg,
      rgba(247, 247, 249, 0.97) 0%,
      rgba(247, 247, 249, 0.92) 38%,
      rgba(247, 247, 249, 0.55) 62%,
      rgba(247, 247, 249, 0.2) 100%
    );
  }

  .ax-hero-content {
    padding: 2.5rem 0 14rem;
    text-align: center;
  }

  .ax-hero-title .line-black,
  .ax-hero-title .line-red {
    white-space: normal;
  }

  .ax-hero-sub {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .ax-hero-buttons {
    justify-content: center;
  }

  .ax-navbar .nav-link.active::after {
    display: none;
  }

  
}

@media (max-width: 767.98px) {
  .ax-hero {
    min-height: 580px;
  }

  .ax-hero-bg {
    background-size: cover;
    background-position: center right;
  }

  .ax-hero-content {
    padding: 2.25rem 1rem 16rem;
  }

  .ax-hero-title {
    font-size: 1.7rem;
  }

  .ax-quote-left {
    margin-bottom: 2rem;
  }

  .ax-contact-item {
    justify-content: flex-start;
    padding: 0.65rem 0.25rem;
  }

  .ax-contact-value {
    font-size: 0.8rem;
  }

  .ax-trust-item {
    justify-content: flex-start;
    padding: 0.65rem 0;
  }

  .ax-service-item {
    margin-bottom: 0.5rem;
  }

  .ax-areas-list {
    columns: 1;
  }
}

/* Very small phones: stack contact items full width — no overlap */
@media (max-width: 400px) {
  .ax-contact-bar .row > [class*="col"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .ax-contact-item {
    justify-content: flex-start;
    padding: 0.7rem 0.15rem;
  }

  .ax-contact-value {
    font-size: 0.85rem;
  }

  .ax-contact-item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .ax-hero {
    min-height: 560px;
  }

  .ax-hero-content {
    padding: 2rem 0.5rem 15rem;
  }

  .ax-hero-title {
    font-size: 1.5rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
  }

 

  .ax-form-card {
    padding: 1.5rem 1.25rem;
  }
}

/* Utility */
.text-ax-red {
  color: var(--ax-red) !important;
}

.bg-ax-red {
  background-color: var(--ax-red) !important;
}
