body {
  margin: 0;
  font-family: "Carlito", sans-serif;
  background: #ffffff;
  /* background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f2f8ff 45%,
    #dbebfc 100%
  ); */
  color: #2f2f2f;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

main {
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 100px; /* Add only when navbar is not transparent */
}

h1, h2, h3 {
  font-family: "Carlito", sans-serif;
  /* color: #2a5d8f; */
  color: #B00F0F;
  margin-bottom: 15px;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #2a5d8f;
  text-decoration: none;
}

/* a:hover {
  color: #8b5e2b;
} */

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: #2a5d8f;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  background: #1f4568;
  transform: translateY(-2px);
}

.hero {
  background: url("../images/banner.jpg") center/cover no-repeat;
  min-height: 50vh;   /* was 85vh */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  margin: 0;          /* ensure no extra spacing */
  padding: 40px 20px; /* keeps balance but less empty space */
}

.hero-text {
  background: rgba(0,0,0,0.55);
  padding: 40px 30px;
  border-radius: 12px;
  max-width: 1000px;
  animation: fadeIn 1s ease-in-out;
}

/* Full-width hero image */
/* Full screen hero */
.hero-full {
  position: relative;
  /* height: 100vh; FULL screen */
  height: calc(100vh - 100px); /* subtract navbar height, add only if navbar is not transparent */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
}

.hero-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* .hero-full + * {
  margin-top: 120px;
} */

.hero-slideshow {
  position: relative;
}

.hero-slideshow .slides {
  height: 100%;
  width: 100%;
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slideshow .slide.active {
  opacity: 1;
}

/* Shift first slideshow image on mobile */
@media (max-width: 768px) {
  .hero-slideshow .slide.active:first-child {
    object-position: 47% center;
  }
}


.hero-image {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 35vh; /* shorter height */
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature h3 {
  margin: 12px 0 4px;   /* tighter spacing */
  font-size: 1.3rem;
  /* color: #fff; */
  /* color: #2a5d8f; */
  color: #000;
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  /* color: #2a5d8f; */
  /* color: #fff; */
  color: #000;
}



/* .hero-text h1{
  font-size: 4rem !important;
} */

.hero-text p{
  font-size: 1.25rem !important;
}

.home-logo {
  max-width: 700px;
}

.det-font {
  font-family: "Carlito", sans-serif;
  font-size: 4rem !important;
}

.lower {
  font-size: 3rem !important;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 60px;
  text-align: center;
}

.features img {
  width: 100%;          /* stretch full width of .feature */
  height: 350px;          /* keep aspect ratio */
  display: block;       /* removes inline gaps */
  margin: 0;            /* no extra spacing */
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  object-fit: cover;    /* makes sure the image fills neatly */
}

.feature {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;     /* ensures img corners align with container */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  padding: 0 0 10px;    /* remove padding at top so image sits flush */
}

.feature:hover {
  transform: translateY(-5px);
}

.features-overlay {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 70px;
}
.feature-overlay {
  position: relative;
  height: 360px;
  /* border-radius: 18px; */
  overflow: hidden;
  display: block;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.feature-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  transition: background 0.3s ease;
}
.overlay-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.overlay-content h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: #fff;
}

.overlay-content span {
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.9;
}
.feature-overlay:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.feature-overlay:hover::after {
  background: rgba(0,0,0,0.6);
}
@media (max-width: 900px) {
  .features-overlay {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .features-overlay {
    grid-template-columns: 1fr;
  }

  .feature-overlay {
    height: 300px;
  }
}





@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}


/* Why Choose Us */
.why-us {
  margin-top: 80px;
  text-align: center;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.why-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}
.why-card i {
  font-size: 40px;
  color: #2a5d8f;
  margin-bottom: 15px;
}
.why-card:hover {
  transform: translateY(-5px);
}

.facts {
  margin-top: 100px;
  text-align: center;
  padding: 60px 20px;
  background: #ecf2fc;
  border-radius: 16px;
}

.facts-header h2 {
  font-size: 2.4rem;
  margin-bottom: 15px;
  color: #2a5d8f;
}

.facts-header p {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 50px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  justify-items: center;
}

.fact-card h3 {
  font-size: 3rem;
  color: #B00F0F;
  margin-bottom: 10px;
}

.fact-card span {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.fact-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}


/* Testimonials */
.testimonials {
  margin-top: 80px;
  text-align: center;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}
.testimonial {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  font-style: italic;
}
.testimonial span {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  font-style: normal;
  color: #555;
}

/* CTA Section */
.cta {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  margin-top: 80px;
  border-radius: 12px;
}
.cta h2 {
  margin-bottom: 15px;
  color: #fff !important;
}
.cta p {
  margin-bottom: 25px;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Hero Slideshow */
/* .hero-slideshow {
  position: relative;
  height: 60vh;
  overflow: hidden;
  margin-bottom: 40px;
}

.slides {
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
} */

/* Hero Content (Below Slideshow) */
.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 80px;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 30px;
}

@media (max-width: 650px) {
  .hero-content h1 {
    font-size: 2.1rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

.home-hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.home-btn-primary,
.home-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  transition: all 0.3s ease;
}

.home-btn-primary {
  background: #B00F0F;
  color: #fff;
  border: 2px solid #B00F0F;
}

.home-btn-primary:hover {
  background: #8f0d0d;
  border-color: #8f0d0d;
  transform: translateY(-2px);
}

.home-btn-secondary {
  background: transparent;
  color: #2a5d8f;
  border: 2px solid #2a5d8f;
}

.home-btn-secondary:hover {
  background: #2a5d8f;
  color: #fff;
  transform: translateY(-2px);
}


/* Features (Neutralized) */
.feature {
  /* background: linear-gradient(135deg, #1f4568, #0f2a44); */
  background: #f2f5f8;
  box-shadow: none;
  border: 1px solid #e0e0e0;
}

/* Why Section - Clean Industrial Style */
.why-section {
  margin-top: 90px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.why-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
}

.why-item {
  padding: 10px 0 30px;
}

.why-item h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #222;
}

.why-item p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  max-width: 700px;
}

.why-section hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 30px 0;
}

/* Mobile */
@media (max-width: 650px) {
  .why-section h2 {
    font-size: 1.9rem;
  }

  .why-item h3 {
    font-size: 1.4rem;
  }
}


/* Featured Categories (Editorial Style) */
.featured-categories {
  margin-top: 70px;
}

.featured-categories h2 {
  text-align: center;
  font-size: 2.3rem;
  margin-bottom: 50px;
}

.category-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 50px;
  margin: 50px 0;
}

.category-row.reverse {
  grid-template-columns: 1fr 1.1fr;
}

.category-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.category-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #555;
  max-width: 520px;
}

.category-text a {
  display: inline-block;
  margin-top: 15px;
  font-weight: 600;
  color: #2a5d8f;
}

.category-image img {
  max-width: 200px;
  border-radius: 12px;
  object-fit: cover;
}

.featured-categories hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 40px 0;
}

/* Responsive */
@media (max-width: 900px) {
  .category-row,
  .category-row.reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .category-text p {
    margin: 0 auto;
  }
}


/* Testimonials */
.testimonials {
  margin-top: 60px;
  text-align: center;
}

.testimonials h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.testimonial {
  background: #fafafa;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-style: italic;
}





/* Mobile Styles: 650px and below */
@media (max-width: 650px) {
  main {
    padding: 15px 10px;
  }

  .hero-text {
    padding: 25px 15px;
  }

  .hero-text p{
    font-size: .8rem !important;
  }

  .btn-primary{
    font-size: .8rem !important;
  }

  .det-font {
    font-size: 3rem !important;
  }

  .home-logo {
    max-width: 300px;
  }

  .lower {
    font-size: 1.8rem !important;
  }

  .features {
    gap: 20px;
  }

  .why-grid, .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cta {
    padding: 40px 15px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}


/* ===== Modern Why Section ===== */
.why-modern {
  margin-top: 100px;
  padding: 80px 20px;
  /* background: #f2f5f8;
  border-radius: 20px; */
}

.why-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.why-header h2 {
  font-size: 2.4rem;
}

.why-header h2 i{
  color: #2a5d8f;
  text-decoration: underline;
}

.why-header p {
  color: #555;
  font-size: 1.1rem;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.why-box {
  background: #ffffff;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.why-box h3 {
  margin-bottom: 10px;
  /* color: #1f4568; */
  color: #2a5d8f;
}

/* ===== Trusted Companies ===== */
.trusted {
  margin-top: 100px;
  text-align: center;
}

.trusted h2 {
  margin-bottom: 40px;
}

/* Trusted Logos */
.trusted-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* ALWAYS 5 per row */
  gap: 30px;
  align-items: center;
}

.logo-box {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-box img {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  /* filter: grayscale(100%);
  opacity: 0.85;
  transition: all 0.3s ease; */
}

/* .logo-box img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
} */

@media (max-width: 1100px) {
  .trusted-logos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 650px) {
  .trusted-logos {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* ===== Quote Section ===== */
.quote-section {
  margin-top: 120px;
  padding: 90px 20px;
  /* background: linear-gradient(135deg, #1f4568, #0f2a44); */
  background: linear-gradient(135deg, #1f3f68, #0f2044);
  color: #fff;
  border-radius: 24px;
}

.quote-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.quote-text h2 {
  color: #fff;
  font-size: 2.5rem;
}

.quote-text p {
  color: #d0dbe6;
  font-size: 1.1rem;
}

.quote-form {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  color: #000;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  font-family: inherit;
}

.quote-form textarea {
  resize: none;
  height: 120px;
}

.quote-form button {
  width: 100%;
  padding: 15px;
  background: #1f4568;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.quote-form button:hover {
  background: #16344f;
}

/* Responsive */
@media (max-width: 900px) {
  .quote-container {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== Inline Why Section ===== */
.why-inline {
  /* background: #f2f5f8; */
  padding: 90px 30px;
  /* border-radius: 24px; */
}

.why-inline-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.why-inline-item {
  padding: 0 30px;
}

/* Inline Why Section Icons */
.why-inline-item i {
  font-size: 34px;
  color: #2a5d8f;
  margin-bottom: 14px;
  display: block;
}

.why-inline-item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #2a5d8f;
}

.why-inline-item p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
}

/* Vertical dividers */
.why-divider {
  width: 1px;
  background: #d8dce2;
  height: 100%;
}


/* =========================
   MOBILE IMPROVEMENTS
========================= */

@media (max-width: 768px) {

  main {
    margin-top: 90px;
    padding: 0 15px;
  }

  /* HERO */
  .hero-full {
    height: 60vh;
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  /* FACTS SECTION */

  .facts {
    padding: 40px 15px;
    margin-top: 60px;
  }

  .facts-header h2 {
    font-size: 1.7rem;
  }

  .facts-header p {
    font-size: 0.95rem;
  }

  .fact-card h3 {
    font-size: 2.2rem;
  }

  /* PRODUCT FEATURE BOXES */

  .features-overlay {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-overlay {
    height: 240px;
  }

  .overlay-content h3 {
    font-size: 1.4rem;
  }

  /* WHY SECTION */

  .why-modern {
    padding: 50px 15px;
    margin-top: 60px;
  }

  .why-header h2 {
    font-size: 1.8rem;
  }

  .why-header p {
    font-size: 0.95rem;
  }

  .why-inline-row {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .why-inline-item {
    text-align: center;
  }

  /* TRUSTED LOGOS */

  .trusted {
    margin-top: 60px;
  }

  .trusted-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .logo-box {
    padding: 18px;
  }

  .logo-box img {
    max-width: 90px;
  }

}