/* =========================================================
   ROOT VARIABLES
   ========================================================= */
:root {
  /* brand colors */
  --brand-red: #c8102e; /* your red */
  --brand-red-accent: #ff4a63; /* slight accent for a tiny gradient pop */
  --brand-navy: #002b5c;

  --z-nav: 6000;
  --z-progress: 1000;
}

/* =========================================================
   HERO / CAROUSEL
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
}

/* make each slide a stacking context */
.hero .carousel-item {
  position: relative;
}

/* each slide creates its own stacking context */
.hero .carousel-item {
  position: relative;
}

/* gradient UNDER the caption, for every slide */
.hero .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 43, 92, 0) 35%, rgba(0, 43, 92, 0.88) 100%);
  pointer-events: none;
  z-index: 1; /* below caption */
}

/* keep caption above the overlay */
.hero .carousel-caption {
  position: absolute; /* bootstrap already does this, just in case */
  z-index: 2 !important;
}

#headerCarousel .carousel-indicators {
  z-index: 3;
}

/* right-half brand gradient, *under* the caption */
.hero .hero-overlay {
  position: absolute;
  inset: 0; /* full slide */
  background: linear-gradient(
    to right,
    rgba(0, 43, 92, 0) 35%,
    /* transparent left */ rgba(0, 43, 92, 0.88) 100% /* solid brand navy right */
  );
  pointer-events: none;
  z-index: 1; /* below caption */
}

/* keep caption above everything */
.hero .carousel-caption {
  position: absolute; /* Bootstrap already sets this */
  z-index: 2 !important;
}

/* keep dots above overlay too */
#headerCarousel .carousel-indicators {
  z-index: 3;
}

.hero-content .btn {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  background: #1a73e8;
  color: #fff;
  border-radius: 6px;
}

.hero .carousel-item img {
  height: 100vh; /* big, immersive */
  object-fit: cover;
  object-position: center;
}

.hero .carousel-caption {
  bottom: 28%;
  text-align: right;
  left: 10%;
  right: 10%;
  z-index: 9999 !important;
}

.carousel-caption h1 {
  font-family: "Poppins", sans-serif; /* Clean, modern font */
  font-size: 3.35rem; /* Larger, bold title */
  font-weight: 700; /* Strong weight */
  letter-spacing: 0.5px; /* Slight spacing for elegance */
  line-height: 1.2; /* Comfortable line spacing */
  color: #fff;
}

.carousel-caption p {
  font-weight: 400;
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem; /* Slightly larger for readability */
  /* Lighter feel for subtitle */
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.9);
}

/* Vertical, right-side dots like the reference */
.carousel-indicators.carousel-indicators-vertical {
  position: absolute;
  top: 50%;
  right: 16px;
  left: auto;
  transform: translateY(-50%);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
}

/* Make them circular dots */
.carousel-indicators.carousel-indicators-vertical button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
  border: 0;
  opacity: 1; /* ignore Bootstrap’s fading */
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.carousel-indicators.carousel-indicators-vertical button.active {
  background-color: #ffffff; /* active dot = solid white */
  transform: scale(1.3);
}

/* Hover (desktop) */
@media (hover: hover) {
  .carousel-indicators.carousel-indicators-vertical button:hover {
    background-color: rgba(255, 255, 255, 0.8);
  }
}

/* Mobile: fall back to default bottom bars for thumb reach */
@media (max-width: 576px) {
  .carousel-caption p {
    font-size: 1.1rem;
  }

  .carousel-indicators.carousel-indicators-vertical {
    top: auto;
    bottom: 16px;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
    gap: 8px;
  }
}

.vertical-dots {
  position: absolute;
  top: 50%;
  right: 20px; /* adjust for placement */
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}

.vertical-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.5); /* inactive dot */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.vertical-dots button.active {
  background-color: white; /* active dot */
}

@media (max-width: 768px) {
  .hero .carousel-item img {
    height: 100vh;
  }

  .hero .carousel-caption {
    bottom: 25%;
  }
}

/* =========================================================
   PRODUCTS SECTION
   ========================================================= */
/* Overlap the hero and create a floating white panel */
.products-section {
  position: relative;
  /* more overlap */
  padding-top: 0; /* no extra space above */
  z-index: 6; /* above hero */
}

/* Brand title color (you already use this helper) */
.text-brand {
  color: #002b5c; /* branded navy */
  font-weight: 800;
}

/* Cards styling – subtle lift like ref */
.products-panel .card {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Mobile: remove overlap so it doesn’t collide */
@media (max-width: 768px) {
  .products-section {
    margin-top: 0;
  }

  .products-panel {
    border-radius: 0;
    box-shadow: none;
    padding-top: 16px;
  }
}

.text-brand {
  color: #002a5c; /* Replace with your brand's main color */
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Optional: shadow + rounded corners for cards like the reference */
.products-section .card {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.products-panel .card:hover {
  transform: scale(1.4);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

/* --- Brand tiles --- */
.brand-tiles .brand-tile {
  display: block; /* make the whole card clickable */
  text-decoration: none; /* keep it card-looking */
  color: inherit;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.brand-tiles .brand-tile:focus,
.brand-tiles .brand-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.12);
}

/* logo zone is taller and centers the image */
.brand-tiles .logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px; /* bigger visual area */
  padding: 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  background: #fff;
}

/* bigger logos but still safe */
.brand-tiles .logo-wrap img {
  max-width: 180px; /* adjust per taste */
  width: auto;
  height: auto;
  transition: transform 0.25s ease;
}

.brand-tiles .brand-tile:hover .logo-wrap img {
  transform: scale(1.1); /* subtle zoom on hover */
}

/* text area */
.brand-tiles .tile-body {
  padding: 18px;
}

.tile-body p {
  font-size: 0.97rem; /* slightly larger than default */
  line-height: 1.8; /* better readability */
  letter-spacing: 0.2px; /* subtle spacing */
  font-weight: 400; /* keeps it light but solid */
  color: #4a4a4a; /* softer than pure black */
  font-family: "Inter", "Roboto", sans-serif; /* modern font */
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* Better tap targets on mobile, slightly shorter logo band */
@media (max-width: 576px) {
  .brand-tiles .logo-wrap {
    height: auto;
    padding: 20px;
  }
}

/* =========================================================
   SCROLL DOWN HINT
   ========================================================= */
.scroll-down {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  color: white; /* Your brand color */
  text-decoration: none;
  animation: bounce 2s infinite;
  z-index: 1;
}

.scroll-down svg {
  display: block;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -8px);
  }
  60% {
    transform: translate(-50%, -4px);
  }
}

.scroll-down:hover {
  color: #004080; /* Slightly darker brand color on hover */
}

/* =========================================================
   SECTION TITLES (W/ UNDERLINE)
   ========================================================= */
.section-title {
  position: relative;
  display: inline-block;
  font-weight: 700;
  font-size: 2rem;
  color: var(--brand-navy); /* main text color */
}

.section-title .underline {
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 100%;
  height: 20px;
  z-index: -1;
}

/* =========================================================
   CONTACT / FORM / MAP
   ========================================================= */
/* Softer card hover */
#contact .card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

#contact .card:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

/* Nice focus states for form fields */
#contact .form-control:focus {
  border-color: #1f3662;
  box-shadow: 0 0 0 0.2rem rgba(14, 74, 166, 0.15);
}

/* =========================================================
   BRANDS CAROUSEL (Swiper)
   ========================================================= */
.brands-carousel {
  position: relative;
}

/* Keep logos nicely sized and centered */
.brandSwiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brandSwiper {
  padding: 1rem 0; /* Optional spacing inside */
}

.brandSwiper img {
  /* tweak if you want them bigger */
  max-width: 100%;
  width: 200px;
  object-fit: contain;
  filter: saturate(1) contrast(1);
}

.brandSwiper .swiper-pagination {
  gap: 10px;
}

.brandSwiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  opacity: 0.35;
  background: #c6cfda;
}

.brandSwiper .swiper-pagination-bullet-active {
  background: #d71920;
  opacity: 1;
}

.swiper-horizontal {
  height: 200px !important; /* adjust as needed */
}

/* Responsive logo size */
@media (max-width: 768px) {
  .brandSwiper .swiper-slide {
    height: 90px;
  }

  .swiper-horizontal {
    height: 150px !important;
  }

  .mob-w-100 {
    width: 100% !important;
  }
}
