/**
 * Home Page Styles
 * Part 3.1 — Full-Screen Hero Banner, Services Grid, Testimonials, Trust, Mission CTA
 * Color scheme: Indian tricolor inspired (Saffron, White, Green + Navy)
 */

/* ==========================================================================
   SECTION 1: FULL-WIDTH HERO CAROUSEL (Smooth Cross-Fade & Clean Fit)
   ========================================================================== */

/*
 * All 6 banner images are unified at 1376 x 768 (16:9 aspect ratio).
 * The container uses aspect-ratio: 16/9 with NO max-height so the
 * banners always fill edge-to-edge with zero white bars, zero crop.
 */

.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  user-select: none;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  aspect-ratio: 16 / 9;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  will-change: opacity;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.carousel-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 0;
  text-decoration: none;
  outline: none;
}

/* All banners share identical 16:9 ratio — fill the container edge-to-edge */
.carousel-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Prev / Next Navigation Arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #0d3b66;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 0;
}

.carousel-btn:hover {
  background: #ffffff;
  color: #FF9933;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 22px rgba(255, 153, 51, 0.35);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-btn--prev {
  left: 20px;
}

.carousel-btn--next {
  right: 20px;
}

/* Progress bar at top of carousel */
.carousel-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.05);
  z-index: 12;
  overflow: hidden;
}

.carousel-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FF9933, #138808);
  transition: width 0.1s linear;
}

/* Circular Dots Indicator */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  padding: 8px 18px;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.18);
}

.carousel-dot.active {
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 1px 4px rgba(0, 0, 0, 0.4);
  transform: scale(1.25);
}

/* ── Tablet ── */
@media (max-width: 1024px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  .carousel-btn--prev { left: 12px; }
  .carousel-btn--next { right: 12px; }
  .carousel-dots {
    bottom: 15px;
    padding: 7px 15px;
    gap: 10px;
  }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .carousel-btn {
    display: none; /* Touch users swipe natively */
  }
  .carousel-dots {
    bottom: 10px;
    padding: 5px 12px;
    gap: 8px;
    background: rgba(0, 0, 0, 0.38);
  }
  .carousel-dot {
    width: 8px;
    height: 8px;
  }
  .carousel-dot.active {
    transform: scale(1.2);
  }
}


/* ==========================================================================
   SECTION 2: BRAND INTRO / MISSION SPOTLIGHT (Premium)
   ========================================================================== */
.section-intro {
  background: linear-gradient(180deg, #f0f4f8 0%, var(--bg-page) 100%);
  padding: 4rem 0 3rem;
}

.intro-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem 3rem;
  box-shadow: 0 8px 40px rgba(10, 40, 75, 0.06), 0 1px 3px rgba(0,0,0,0.04);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Tricolor top stripe */
.intro-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FF9933 0%, #FF9933 33%, #FFFFFF 33%, #FFFFFF 66%, #138808 66%, #138808 100%);
}

/* Ghost watermark */
.intro-box__watermark {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

.intro-box__watermark img {
  height: 420px;
  width: auto;
}

/* Badge */
.intro-box__badge-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.intro-box__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.06) 100%);
  color: #92400e;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.intro-box__badge svg {
  color: #f59e0b;
  flex-shrink: 0;
}

/* Title */
.intro-box__title {
  position: relative;
  z-index: 1;
  font-size: 2.2rem;
  font-weight: 800;
  color: #0a284b;
  line-height: 1.3;
  margin-bottom: 1.15rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.text-saffron {
  color: #e68a00;
  position: relative;
}

.text-saffron::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(230, 138, 0, 0.4), rgba(230, 138, 0, 0.1));
  border-radius: 2px;
}

.hide-mobile { display: inline; }

/* Description */
.intro-box__text {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #475569;
  max-width: 740px;
  margin: 0 auto 2rem;
}

/* --- Stats Counter Bar --- */
.intro-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: linear-gradient(135deg, #0a284b 0%, #0f3d6e 100%);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin-bottom: 2.25rem;
}

.intro-stat {
  flex: 1;
  text-align: center;
}

.intro-stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #f59e0b;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.intro-stat__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
}

.intro-stats__divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* --- Pillar Cards --- */
.intro-box__pillars {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.25rem;
  text-align: left;
}

.intro-pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.intro-pillar--saffron { border-left-color: #f59e0b; }
.intro-pillar--blue    { border-left-color: #3b82f6; }
.intro-pillar--green   { border-left-color: #138808; }
.intro-pillar--navy    { border-left-color: #0a284b; }

.intro-pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(10, 40, 75, 0.1);
  border-color: transparent;
}

.intro-pillar--saffron:hover { border-left-color: #f59e0b; }
.intro-pillar--blue:hover    { border-left-color: #3b82f6; }
.intro-pillar--green:hover   { border-left-color: #138808; }
.intro-pillar--navy:hover    { border-left-color: #0a284b; }

/* Icon circles */
.intro-pillar__icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.intro-pillar__icon-wrap--saffron { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.intro-pillar__icon-wrap--blue    { background: rgba(59, 130, 246, 0.1);  color: #2563eb; }
.intro-pillar__icon-wrap--green   { background: rgba(19, 136, 8, 0.1);   color: #138808; }
.intro-pillar__icon-wrap--navy    { background: rgba(10, 40, 75, 0.08);  color: #0a284b; }

.intro-pillar:hover .intro-pillar__icon-wrap--saffron { background: #f59e0b; color: #fff; }
.intro-pillar:hover .intro-pillar__icon-wrap--blue    { background: #3b82f6; color: #fff; }
.intro-pillar:hover .intro-pillar__icon-wrap--green   { background: #138808; color: #fff; }
.intro-pillar:hover .intro-pillar__icon-wrap--navy    { background: #0a284b; color: #fff; }

.intro-pillar__content strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a284b;
  margin-bottom: 0.3rem;
}

.intro-pillar__content span {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

/* --- CTA Buttons --- */
.intro-box__actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-intro-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: var(--transition);
}

.btn-intro-primary:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  color: #ffffff;
}

.btn-intro-primary svg {
  transition: transform 0.25s ease;
}

.btn-intro-primary:hover svg {
  transform: translateX(4px);
}

.btn-intro-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0a284b;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid #0a284b;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-intro-outline:hover {
  background: #0a284b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(10, 40, 75, 0.2);
}

.btn-intro-outline svg {
  transition: transform 0.25s ease;
}

.btn-intro-outline:hover svg {
  transform: translateX(4px);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .intro-box__pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  .intro-box__title {
    font-size: 1.7rem;
  }
  .intro-stats {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 1rem;
  }
  .intro-stats__divider {
    display: none;
  }
  .intro-stat {
    min-width: 40%;
  }
  .hide-mobile { display: none; }
}

@media (max-width: 576px) {
  .intro-box {
    padding: 2.5rem 1.25rem 2rem;
  }
  .intro-box__pillars {
    grid-template-columns: 1fr;
  }
  .intro-box__title {
    font-size: 1.5rem;
  }
  .intro-stat__number {
    font-size: 1.4rem;
  }
  .intro-box__watermark {
    display: none;
  }
  .btn-intro-primary,
  .btn-intro-outline {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   SECTION SHARED STYLES
   ========================================================================== */
.section-header {
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  color: #d4880f;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}


/* ==========================================================================
   SECTION 2: SERVICES GRID
   ========================================================================== */
.section-services {
  background: var(--bg-page);
}

/* Service Cards */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4880f, #138808);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(212, 136, 15, 0.1);
  color: #d4880f;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.service-card:hover .service-card__icon {
  background: #d4880f;
  color: #ffffff;
}

.service-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.service-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #138808;
  transition: var(--transition);
}

.service-card__link:hover {
  color: #0d6606;
}


/* ==========================================================================
   SECTION 3: TESTIMONIALS GRID (Multiple, No Photos)
   ========================================================================== */
.section-testimonials {
  background: var(--bg-muted);
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.testimonials-grid {
  gap: 1.25rem;
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial-card__stars {
  color: #d4880f;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.testimonial-card__text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 1rem;
  border: none;
  padding: 0;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.testimonial-card__avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF9933, #138808);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-card__name {
  display: block;
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.88rem;
}

.testimonial-card__location {
  font-size: 0.78rem;
  color: var(--text-muted);
}


/* ==========================================================================
   SECTION 4: TRUST / WHY CHOOSE US
   ========================================================================== */
.section-trust {
  background: var(--bg-page);
}

.trust-grid {
  gap: 1.5rem;
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.trust-card__icon {
  font-size: 2rem;
  margin-bottom: 0.85rem;
}

.trust-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.trust-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ==========================================================================
   SECTION 5: MISSION / CTA BANNER
   ========================================================================== */
.section-mission {
  position: relative;
  background-color: #0a284b;
  background-image: url('../images/banners/mission-banner-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  color: var(--text-white);
  padding: 6rem 0;
  text-align: center;
  overflow: hidden;
}

.mission-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 40, 75, 0.85) 0%, rgba(15, 61, 110, 0.80) 50%, rgba(19, 136, 8, 0.75) 100%);
  pointer-events: none;
}

.mission-content {
  position: relative;
  z-index: 1;
}

.mission-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff !important;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.mission-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92) !important;
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.mission-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-light {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

@media (max-width: 768px) {
  .mission-title {
    font-size: 1.6rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
}
