/* ============================================
   Sri Metro Enterprises — Custom Styles
   Theme: Deep Blue + Cyan + Green accents
   ============================================ */

:root {
  --brand-blue: #0c307e;
  --brand-blue-dark: #081f52;
  --brand-cyan: #0da3e8;
  --brand-green: #1cb873;
  --brand-soft: #f3f6fc;
}

body {
  font-family: "Inter", sans-serif;
  color: #1c2740;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ---------- Buttons ---------- */
.btn-brand {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: #fff;
  border: none;
}
.btn-brand:hover { color: #fff; filter: brightness(1.1); }
.btn-cyan {
  background: var(--brand-cyan);
  color: #fff;
  border: none;
}
.btn-cyan:hover { color: #fff; filter: brightness(1.08); }

/* ---------- Navbar ---------- */
.navbar-custom {
  background: linear-gradient(135deg, var(--brand-blue), #123a9e);
  padding: 1rem 0;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.navbar-custom.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 6px 24px rgba(12, 48, 126, 0.25);
}
.navbar-custom .nav-link {
  color: #fff;
  font-weight: 500;
  margin: 0 0.25rem;
}
.navbar-custom .navbar-collapse { color: #fff; }
.navbar-custom .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.8);
}
.navbar-custom .navbar-toggler-icon {
  filter: invert(1);
}
.navbar-custom .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: #fff;
}
.brand-logo {
  display: block;
  width: min(300px, 58vw);
  height: 68px;
  object-fit: contain;
  object-position: left center;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.navbar-brand:hover .brand-logo {
  transform: scale(1.05);
  filter: brightness(1.12);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding: 140px 0 90px;
  background-image:
    linear-gradient(135deg, rgba(12, 48, 126, 0.88) 0%, rgba(18, 82, 184, 0.82) 55%, rgba(13, 163, 232, 0.78) 130%),
    url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255,255,255,0.14), transparent 45%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: #fff;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
}
.hero-sub { font-size: 1.05rem; color: rgba(255, 255, 255, 0.85); }
.hero-features span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}
.hero-card { border-radius: 1.25rem !important; }

/* ---------- Sections ---------- */
.section-pad { padding: 90px 0; }
.section-soft { background: var(--brand-soft); }
.eyebrow {
  display: inline-block;
  color: var(--brand-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}
.section-title {
  font-weight: 800;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

/* ---------- Stats ---------- */
.stat-card {
  background: #fff;
  border: 1px solid #e4ebf7;
  border-radius: 1rem;
  padding: 1.75rem 1rem;
  box-shadow: 0 8px 30px -14px rgba(12, 48, 126, 0.25);
}
.stat-card i { font-size: 1.6rem; color: var(--brand-cyan); }
.stat-card h3 { font-weight: 800; font-size: 1.9rem; margin: 0.5rem 0 0.25rem; color: var(--brand-blue); }
.stat-card p { color: #64748b; margin: 0; font-size: 0.9rem; }

/* ---------- About ---------- */
.about-img { width: 100%; height: 420px; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: -20px;
  left: 12px;
  max-width: 230px;
  border-radius: 1rem !important;
}
.badge-num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: #fff;
  font-weight: 800;
}

/* ---------- Services ---------- */
.filter-btn {
  border-radius: 999px;
  border: 1px solid #d5e0f2;
  color: #33415e;
  font-weight: 500;
  padding: 6px 18px;
  font-size: 0.9rem;
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: #fff;
  border-color: transparent;
}
.service-card {
  box-shadow: 0 6px 24px -12px rgba(12, 48, 126, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px -14px rgba(12, 48, 126, 0.32);
}
.service-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #e8f1fd;
  color: var(--brand-blue);
  font-size: 1.4rem;
}
.service-link {
  color: var(--brand-cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.service-item.hidden { display: none; }

/* ---------- Steps ---------- */
.step-card {
  background: #fff;
  border: 1px solid #e4ebf7;
  border-radius: 1.25rem;
  padding: 2rem 1.25rem 1.5rem;
  position: relative;
  box-shadow: 0 8px 30px -16px rgba(12, 48, 126, 0.2);
}
.step-num {
  position: absolute;
  top: 14px;
  right: 18px;
  font-weight: 800;
  color: #dbe6fb;
  font-size: 1.4rem;
}
.step-icon { font-size: 1.9rem; color: var(--brand-cyan); }

/* ---------- Before / After ---------- */
.ba-slider {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  box-shadow: 0 16px 50px -18px rgba(12, 48, 126, 0.4);
}
.ba-img { display: block; width: 100%; height: 440px; object-fit: cover; }
.ba-after {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}
.ba-after .ba-img { position: absolute; top: 0; left: 0; width: auto; height: 100%; max-width: none; }
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-blue);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  z-index: 3;
}
.ba-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: #fff;
  z-index: -1;
}
.ba-label {
  position: absolute;
  top: 14px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}
.ba-label-before { left: 14px; }
.ba-label-after { right: 14px; }

/* ---------- Gallery ---------- */
.gallery-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  border-radius: 1.25rem;
  overflow: hidden;
}
.gallery-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-btn:hover .gallery-img { transform: scale(1.07); }
.gallery-cap {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(12, 48, 126, 0.85);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 4px 12px;
}
.gallery-item.hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 25, 0.88);
  display: none;
  place-items: center;
  z-index: 2000;
  padding: 1.5rem;
}
.lightbox.open { display: grid; }
.lightbox img {
  max-width: 92vw;
  max-height: 85vh;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.2rem;
}

/* ---------- CTA ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-cyan) 100%);
}

/* ---------- Testimonials ---------- */
.testimonial {
  max-width: 640px;
  background: #fff;
  border: 1px solid #e4ebf7;
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  box-shadow: 0 10px 34px -16px rgba(12, 48, 126, 0.25);
}
.testimonial p { font-size: 1rem; color: #33415e; }
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-blue);
  border: none;
}
.carousel-indicators .active { background: var(--brand-cyan); }

/* ---------- Quote / Contact ---------- */
.quote-card { border-radius: 1.25rem !important; }
.contact-card {
  box-shadow: 0 6px 24px -12px rgba(12, 48, 126, 0.18);
  transition: transform 0.3s ease;
}
.contact-card:hover { transform: translateY(-5px); }
.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #e8f1fd;
  color: var(--brand-cyan);
  font-size: 1.3rem;
}

/* ---------- Footer ---------- */
.footer { background: var(--brand-blue-dark); }
.footer-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  line-height: 2;
}
.footer-link:hover { color: #fff; }
.social-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  transition: background 0.25s ease;
}
.social-btn:hover { background: var(--brand-cyan); color: #fff; }

/* ---------- Floating buttons ---------- */
.float-btn {
  position: fixed;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: #fff;
  z-index: 1050;
  text-decoration: none;
  border: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
}
.float-btn:hover { transform: translateY(-3px); color: #fff; }
.float-whatsapp { bottom: 84px; background: #22c15e; }
.float-call { bottom: 24px; background: var(--brand-blue); }
.float-top {
  left: 20px;
  right: auto;
  bottom: 24px;
  background: #fff;
  color: var(--brand-blue);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.25s ease;
}
.float-top.show { opacity: 1; visibility: visible; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero { padding-top: 120px; }
  .nav-cta { margin-top: 0.75rem; }
  .about-img { height: 340px; }
  .ba-img { height: 320px; }
}
@media (max-width: 575px) {
  .ba-img { height: 240px; }
  .gallery-img { height: 180px; }
}
