/* ============================================================
   Shree Jee Associates – Custom Styles
   Faithfully matching the Figma prototype design
   ============================================================ */

/* ---------- Custom Fonts ---------- */
@font-face {
  font-family: 'CenturyGothic';
  src: url('assets/fonts/centurygothic.ttf') format('truetype');
}

@font-face {
  font-family: 'CenturyGothic-Bold';
  src: url('assets/fonts/centurygothic_bold.ttf') format('truetype');
}

/* ---------- Variables ---------- */
:root {
  --primary: #1c5988;
  --secondary: #4693cb;
  --accent: #9ae2ed;
  --dark: #071622;
  --light-bg: #f2f4f8;
  --adv-bg: #d0f0fa;
  --text-dark: #1a1a2e;
  --text-mid: #333;
  --text-muted: #555;
  --radius-lg: 20px;
}

/* Standardizing container max-widths and centering for very large screens */
.container,
.container-lg,
.container-md,
.container-sm,
.container-xl {
  margin-inline: auto;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'CenturyGothic', sans-serif;
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

/* ── Lenis Smooth Scroll ── */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'CenturyGothic', sans-serif;
}

/* ── Consistent side padding for ALL container-xl sections ──
   clamp(min, preferred, max):
   16px on mobile → scales with viewport → 40px max on desktop.
   Same amount on every screen size, no extra Bootstrap gutter stacking. */
.container-xl,
.container-xl>* {
  --bs-gutter-x: clamp(16px, 7vw, 80px);
  /* Increased max from 60px to 80px */
}

.container-xl {
  padding-left: calc(var(--bs-gutter-x));
  padding-right: calc(var(--bs-gutter-x));
}

.section-title {
  font-family: 'CenturyGothic', sans-serif;
  font-size: clamp(1.8rem, 3vw, 40px);
  font-weight: 400;
  color: #000000;
  text-align: center;
  margin-bottom: 1rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  margin: 0 auto 1.5rem;
}

.section-divider.left {
  margin: 0 0 1.5rem;
}

/* =============================================================
   SECTION 1 – HERO  (matches Figma reference image exactly)
   ============================================================= */

/* ── Wrapper ── */
#hero {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 140vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  z-index: 1;
  /* Was -1, moved to 1 for interactivity while visible */
  will-change: transform, filter;
  transform-origin: center center;
}

/* ── Video background ── */
#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ── Fallback background (light blue water) if video can't load ── */

/* ── Very slight dark overlay (Figma is mostly bright/light) ── */

/* ── Full content wrapper (flex col, fills section) ── */
.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
}

/* ── TOP area: logo strip ── */
.hero-top {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
}

/* ── Logo wrapper: column layout (circle + brand name) ── */
.hero-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Circular border ring around logo ── */

/* Actual logo image inside the circle ── */
.hero-logo-img {
  width: 140px;
  height: auto;
  object-fit: contain;
  border-radius: 50%;
}

/* Brand name below the circle ── */
.hero-brand-name {
  font-family: 'CenturyGothic', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  white-space: nowrap;
}

/* Legacy label (hidden) */
.hero-logo-label {
  display: none;
}

/* ── Full-width white horizontal rule ── */
.hero-hr {
  width: 100%;
  height: 1px;
  background: #ffffff;
  margin: 0;
  flex-shrink: 0;
}

/* ── Hero body: text + button, vertically centered in remaining space ── */
.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1rem 9rem;
  margin: 0 auto;
}

.hero-body h1 {
  font-size: clamp(2rem, 5.5vw, 80px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 2rem;
  /* text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); */
}

.hero-body p {
  font-size: clamp(0.9rem, 1.8vw, 20px);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
  /* max-width: 620px; */
  margin: 0 auto 2.2rem;
  font-weight: 400;
  max-width: 800px;
}

/* ── CTA Button: matches Figma dark rounded rectangle ── */
.btn-hero-cta {
  display: inline-block;
  background: #000000;
  color: #fff;
  border: none;
  border-radius: 15px;
  padding: 0.5rem 5.4rem;
  font-size: 20px;
  font-family: 'CenturyGothic', sans-serif;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition:
    background 0.25s,
    transform 0.2s;
  cursor: pointer;
  /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); */
  background: linear-gradient(to right, #000000, #1c5988);
}

.btn-hero-cta:hover {
  background: rgba(28, 89, 136, 0.95);
  transform: translateY(-2px);
  color: #fff;
}

/* Legacy class kept for any fallback references */
.btn-hero-primary {
  display: inline-block;
  background: rgba(10, 18, 36, 0.88);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 2.4rem;
  font-size: 0.97rem;
  font-family: 'CenturyGothic', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.25s,
    transform 0.2s;
  cursor: pointer;
}

.btn-hero-primary:hover {
  background: rgba(28, 89, 136, 0.9);
  transform: translateY(-2px);
  color: #fff;
}

/* =============================================================
   SECTION 2 – ABOUT US
   ============================================================= */
#about {
  position: relative;
  z-index: 10;
  background: #fff;
  padding: 70px 0 0;
}

.about-text {
  font-size: 20px;
  line-height: 1.8;
  color: #000000;
  max-width: 100%;
  margin: 0 auto;
  font-family: 'CenturyGothic', sans-serif;
}

/* ── Split Text Reveal Styles ── */
.about-text .split-char {
  display: inline-block;
  color: #aaa;
  /* Initial light gray color */
  white-space: pre;
  /* Maintain spaces between words */
  /* Removed CSS transition on color so it doesn't fight GSAP scroll scrubbing! */
}

@media (max-width: 767px) {
  .about-text .split-char {
    color: #aaa;
    /* Slightly darker starting color for mobile */
  }
}

/* ============================================================
   ABOUT-IMAGE SCROLL OVERLAP ANIMATION
   ─────────────────────────────────────────────────────────────
   The ENTIRE #about-image section (not just the inner image)
   is the animated element. It starts in its normal flow
   position, then GSAP lifts the whole section upward so it
   visually overlaps #vision below.

   Key layout trick:
   - margin-bottom: -200px collapses the space below the section
     so #vision starts higher in the document flow.
   - GSAP then translateY's the section further upward into
     #vision's space while the user scrolls.
   - z-index: 10 keeps the section painted above #vision (z:5).
   - overflow: visible on the section so the image is NOT clipped.
   ============================================================ */

#about-image {
  position: relative;
  z-index: 10;
  margin-top: 0;
  /* Removed 100vh to sit under hero normally */
  padding-top: 70px;
  margin-bottom: 0;
  will-change: transform, filter;
}

/* Wrapper — purely visual: rounded corners + shadow on the image card */
.about-image-outer {
  position: relative;
  border-radius: 20px;
  /* overflow: hidden; Removed to dramatically boost mobile GPU rendering speeds */
}

/* Inner element — for blur/opacity reveal only, no transform here */
.about-image-wrap {
  position: relative;
  width: 100%;
  height: auto;
  /* Initial state: slightly blurred + faded; JS reveals these */
  transform-origin: center center;
  will-change:
    opacity, transform, filter;
  /* GPU layer hint for smooth animation */
}

/* Subtle light-leak shimmer overlay */
.about-image-wrap::after {
  content: "";
  position: absolute;

  pointer-events: none;
  z-index: 1;
}

#vision {
  position: relative;
  z-index: 5;
  background: #fff;
  padding-top: 20px;
  overflow-x: hidden;
}

#vision .container-xl {
  perspective: 1200px;
  /* Enable 3D depth for side reveals */
}

.vision-slide-left,
.vision-slide-right {
  will-change: transform, opacity;
  /* GPU layer hint */
}

/* Mask to hide horizontal bleed from Vision animation outside the container content bounds (DESKTOP ONLY) */
@media (min-width: 1200px) {

  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    max-width: none;
  }

  #vision .container-xl {
    position: relative;
  }

  #vision .container-xl::before,
  #vision .container-xl::after {
    content: "";
    position: absolute;
    top: -200px;
    /* extends upward to mask the overlap overlap area */
    bottom: 0;
    /* stops before the icon strip below */
    width: 50vw;
    background: #fff;
    z-index: 99;
    pointer-events: none;
  }

  #vision .container-xl::before {
    /* Right edge of the mask touches the left content edge */
    right: calc(100% - var(--bs-gutter-x));
  }

  #vision .container-xl::after {
    /* Left edge of the mask touches the right content edge */
    left: calc(100% - var(--bs-gutter-x));
  }
}

.about-main-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  border-radius: 24px;
}

.sidepadding {
  padding-left: 20px;
  padding-right: 20px;
  margin-inline: auto;
}

@media (max-width: 767px) {
  #about-image {
    padding: 40px 0 0;
  }

  .sidepadding {
    padding-left: 15px;
    padding-right: 15px;
  }

  .about-main-img {
    height: 550px;
  }
}

@media (min-width: 1250px) {
  .sidepadding {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.about-img-play {
  position: absolute;
  top: 50%;
  left: 50%;

  cursor: pointer;
  transition: transform 0.2s;
}

.about-img-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

/* =============================================================
   SECTION 3 – VISION
   ============================================================= */
#vision {
  background: #fff;
  padding: 70px 0 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.vision-slide-left,
.vision-slide-right {
  opacity: 1 !important;
  transform: translateX(0);
}

.vision-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
}

/* Force horizontal side-by-side layout */

/* in-view class kept as fallback if GSAP fails to load */
.vision-slide-left.in-view,
.vision-slide-right.in-view {
  transform: translateX(0);
  opacity: 1;
}

.vision-text {
  font-size: 18px;
  line-height: 1.85;
  color: #000000;
  text-align: justify;
  margin-bottom: 1.2rem;
}

.vision-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* ── Icon Strip ── */
/* ── Vision Icon Strip (actual image × 3 to fill screen width) ── */

/* Wrapper */
/* =========================
   Vision Infinite Marquee
========================= */

.vision-icon-strip {
  width: 100%;
  overflow: hidden;
  background: #fff;
  padding: 10px 0;
  position: relative;
}

.vision-track {
  display: flex;
  align-items: center;
  width: max-content;

  animation: visionMarquee 100s linear infinite;
}

.vision-icon-img {
  height: 90px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

/* Smooth Infinite Animation */
@keyframes visionMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =============================================================
   SECTION 4 – WATER TREATMENT
   ============================================================= */
/* =============================================================
   SECTION 4 – WATER TREATMENT  (matches Figma screenshot exactly)
   ============================================================= */
#services {
  background: #fafafa;
  /* Computed equivalent of rgba(217, 217, 217, 0.12) over white */
  padding: 70px 0 80px;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

/* Mask to hide horizontal bleed from Water Treatment animation (DESKTOP ONLY) */
@media (min-width: 1200px) {
  #services .container-xl {
    position: relative;
  }

  #services .container-xl::before,
  #services .container-xl::after {
    content: "";
    position: absolute;
    top: -100px;
    bottom: -100px;
    width: 50vw;
    background: #fafafa;
    z-index: 99;
    pointer-events: none;
  }

  #services .container-xl::before {
    right: calc(100% - var(--bs-gutter-x));
  }

  #services .container-xl::after {
    left: calc(100% - var(--bs-gutter-x));
  }
}

/* Centered subtitle */
.wt-subtitle {
  font-size: 18px;
  color: #000000;
  margin: 0 auto 2.2rem;
  line-height: 1.75;
  text-align: center;
}

/* ── Tab Row ── */
.wt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 2rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1250px) {
  .wt-tabs {
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    flex-wrap: nowrap;
  }

  .wt-tabs .wt-tab {
    padding: 0.65rem 2rem;
  }
}

/* ── Tab button base ── */
.wt-tab {
  position: relative;
  border: 1.5px solid #4693cb;
  background: transparent;
  border-radius: 50px;
  padding: 0.55rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'CenturyGothic', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
  line-height: 1.4;
  overflow: hidden;
  /* clips the ::before gradient fill */
  z-index: 0;
  /* Slow transitions for border, color, text and shadow */
  transition:
    border-color 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.6s ease,
    transform 0.3s ease;
}

/* The gradient fill lives on ::before — opacity transition makes it
   appear/disappear slowly without any snap */
.wt-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to right, #1c5988, #4693cb);
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  /* sits behind the text */
  pointer-events: none;
}

/* Hover: slight lift + primary colour preview */
.wt-tab:hover {
  border-color: #1c5988;
  color: #1c5988;
  box-shadow: 0 4px 14px rgba(28, 89, 136, 0.18);
}

/* Active: fade the gradient fill IN slowly, swap text color */
.wt-tab.active {
  color: #ffffff;
  font-weight: 500;
}

.wt-tab.active::before {
  opacity: 1;
  /* gradient fades IN over 0.85 s */
}

/* When a tab loses active — gradient fades OUT slowly */
.wt-tab:not(.active)::before {
  opacity: 0;
  /* gradient fades OUT over 0.85 s */
}

/* ── Tab Panel base ── */
.wt-panel {
  display: none;
}

.wt-panel.active {
  display: block;
}

/* ── Panel content row: top-aligned with gap (via Bootstrap g-4 align-items-start on each row) ── */
/* Content: text left, image right */
.wt-desc {
  font-size: 18px;
  line-height: 1.8;
  color: #000000;
  padding-right: 5rem;
  text-align: justify;
}

/* Image – rounded corners ~12px, natural aspect ratio */
.wt-img {
  width: 100%;
  height: auto;

  border-radius: 20px;
  display: block;
}

/* ── One-off slide animations (replacing GSAP fromTo) ── */
.slide-in-left {
  opacity: 0;
  transform: translate3d(-150px, 0, 0);
  transition:
    opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1),
    transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.slide-in-right {
  opacity: 0;
  transform: translate3d(150px, 0, 0);
  transition:
    opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1),
    transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* =============================================================
   SECTION 5 – GRAVITREAT
   ============================================================= */
#gravitreat {
  background: #fff;
  padding: 70px 0 0;
  position: relative;
  z-index: 10;
}

.gravitreat-sub {
  font-size: 20px;
  color: #000000;
  margin-bottom: 2rem;
}

.gravitreat-img-wrap {
  width: 100%;
  overflow: hidden;
  /* no border-radius — full bleed edge-to-edge */
  background: none;
  line-height: 0;
  /* removes bottom gap under img */
  margin-inline: auto;
}

@media (min-width: 1600px) {

  .container-xl,
  .container-xl>* {
    --bs-gutter-x: clamp(16px, 10vw, 200px);
  }

  .sidepadding {
    max-width: 100%;
    padding: 0 clamp(16px, 10vw, 200px);
  }

  .app-swiper-outer {
    margin-left: clamp(16px, 10vw, 200px) !important;
  }

  .app-card {
    height: 350px !important;
  }
}

.gravitreat-main-img {
  width: 100%;
  height: auto;
  /* natural height — shows full image */
  display: block;
}

.gravitreat-label {
  position: absolute;
  top: 20px;
  right: 20px;
}

.gravitreat-label-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 10px 16px;
}

/* Process flow div — now lives inside #gravitreat */
#process {
  background: transparent;
  padding: 50px 0 0;
}

.process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.process-item {
  text-align: center;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Standalone illustration image – no circle background */
.process-img {
  width: auto;
  height: 250px;
  object-fit: contain;
  display: block;
  /* margin: 0 auto 1rem; */
}

.process-label {
  font-size: 20px;
  font-weight: 500;
  color: #000000;
  max-width: 225px;
  margin: 0 auto;
  line-height: 1.4;
  text-align: center;
}

.process-arrow {
  flex: 0 0 auto;
  padding: 0 0px;
  margin-bottom: 50px;
  /* pushes arrow up to align with image midpoint */
  display: flex;
  align-items: center;
}

/* Arrow image sizing */
.process-arrow-img {
  width: 200px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* =============================================================
   SECTION 7 – APPLICATIONS  (Swiper)
   ============================================================= */
#applications {
  background: #fff;
  padding: 70px 0;
}

.applications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.app-nav-btns {
  display: flex;
  gap: 10px;
}

.app-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  /* background: var(--accent); */
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--dark);
  transition:
    background 0.25s,
    transform 0.2s,
    box-shadow 0.25s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: linear-gradient(to bottom, #9ae2ed, #ffffff);
}

.app-nav-btn:hover {
  background: linear-gradient(135deg,
      var(--primary),
      var(--secondary)) !important;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(28, 89, 136, 0.25);
}

/* ── Swiper outer: left-aligned with container, bleeds right edge ── */
.app-swiper-outer {
  /* Must match container-xl's padding-left exactly.
     var(--bs-gutter-x) doesn't work here because this element is OUTSIDE
     .container-xl, so it resolves to Bootstrap's default 24px instead.
     Using the same clamp() value as the container guarantees pixel-perfect alignment. */
  margin-left: clamp(16px, 7vw, 80px);
  overflow: hidden;
}

/* ── Swiper container ── */
.app-swiper {
  width: 100%;
  overflow: visible;
  /* allow Swiper to manage its own translate */
}

/* ── Each slide/card ── */
.app-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 300px;
  cursor: pointer;
  transition:
    box-shadow 0.3s,
    transform 0.3s;
}

.app-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.app-card:hover img {
  transform: scale(1.06);
}

/* ── Bottom label overlay ── */
.app-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, #00000038 100%);
  color: #ffffff;
  font-family: 'CenturyGothic', sans-serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0.2px;
  pointer-events: none;
  text-align: center;
}

/* =============================================================
   SECTION 8 – ADVANTAGES
   ============================================================= */
#advantages {
  background: linear-gradient(to bottom, #bbf3fb, #ffffff);
  padding: 70px 0;
  overflow-x: hidden;
  /* Important for the right bleed */
}

#advantages .section-title {
  margin-bottom: 2rem;
}

/* ── Checklist ── */
.advantage-list {
  margin: 0;
  padding: 0;
}

.advantage-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
  font-size: 18px;
  color: #000000;
  line-height: 1.5;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.advantage-list li {
  transition: all 0.3s ease;
}

.advantage-list li i {
  transition: all 0.3s ease;
}

.advantage-list li.active {
  font-weight: 600;
  color: #1c5988;
}

.advantage-list li.active i {
  color: #1c5988;
}

.advantage-list li i {
  font-size: 20px;
  margin-top: 2px;
}

/* ── Swiper (Right side bleed) ── */
.adv-swiper-outer {
  position: relative;
  /* Bleed to the right screen edge on desktop by offsetting container padding */
  margin-right: calc(-1 * var(--bs-gutter-x));
  overflow: hidden;
  /* Allow the content to show outside the column, caught by section overflow-x: hidden */
}

.adv-swiper {
  width: 100%;
  overflow: visible !important;
}

.adv-card {
  height: 580px;
  /* Vertically long (portrait) */
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.adv-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Nav Buttons Centered BELOW the images ── */
.adv-nav-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  width: 100%;
}

#advantages .app-nav-btns {
  justify-content: center;
  gap: 15px;
}

#advantages .app-nav-btn {
  background: linear-gradient(to bottom, #9ae2ed, #ffffff);
  width: 40px;
  height: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* =============================================================
   SECTION 9 – MAP
   ============================================================= */
#location {
  padding: 0;
  background: white;
}

#map {
  width: 100%;
  height: 480px;
  display: block;
  border-radius: 20px;
}

.about-image-outer {
  background: #fff;
  /* Covers Hero as this div enters */
  border-radius: 20px;
  overflow: hidden;
  /* Clips the inner-wrap scale */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  /* Ensure child wrapper has rounded corners too */
  mask-image: -webkit-radial-gradient(white, black);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.map-container {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  margin: 0 30px;
  width: calc(100% - 60px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.gm-style-iw-chr {
  height: 10px !important;
}

/* ── Custom InfoWindow Styles ── */
.info-window-content {
  padding: 10px;
  max-width: 250px;
  font-family: 'CenturyGothic', sans-serif;
}

.info-window-title {
  font-weight: 700;
  font-size: 15px;
  color: #1c5988;
  margin-bottom: 8px;
}

.info-window-body {
  display: flex;
  gap: 12px;
}

.info-window-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.info-window-text {
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}

.info-window-address {
  margin-top: 4px;
  display: block;
  font-weight: 600;
  color: #333;
}

/* =============================================================
   SECTION 10 – CLIENTELE MARQUEE
   ============================================================= */
#clients {
  padding: 70px 0;
  background-color: #ffffff;
  overflow: hidden;
}

.client-row {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 30px;
  padding: 18px 0;
}

.client-track {
  display: flex;
  flex-shrink: 0;
  gap: 30px;
  align-items: center;
  justify-content: space-around;
  min-width: 100%;
}

.client-track img {
  width: 180px;
  height: 80px;
  object-fit: contain;

  transition: all 0.3s ease;
  padding: 0 15px;
}

.client-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* ── Animation Directions ── */
.row-left-to-right .client-track {
  animation: scrollRight 40s linear infinite;
}

.row-right-to-left .client-track {
  animation: scrollLeft 40s linear infinite;
}

/* ── Keyframes ── */
@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% / 2));
  }
}

@keyframes scrollRight {
  from {
    transform: translateX(calc(-100% / 2));
  }

  to {
    transform: translateX(0);
  }
}

/* Clientele horizontal sliding continues on hover */
.client-row .client-track {
  animation-play-state: running;
}

/* =============================================================
   SECTION 11 – CONTACT US (REDESIGN)
   ============================================================= */
#contact {
  padding: 70px 0;
  background: linear-gradient(to right, #c0f4fc, #ffffff);
  color: #000000;
}

.contact-description {
  font-size: 16px;
  font-family: 'CenturyGothic', sans-serif;
  line-height: 1.6;
  color: #000000;
  max-width: 500px;
  margin-bottom: auto;
  text-align: justify;
}

.contact-details-list {
  margin-top: 15%;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
}

.contact-detail-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4693cb;
  font-size: 22px;
  flex-shrink: 0;
}

.contact-detail-content {
  flex-grow: 1;
}

.office-row {
  display: flex;
  gap: 30px;
}

.office-name {
  font-weight: 600;
  font-size: 16px;
  color: #000000;
  flex: 0 0 185px;
  line-height: 1.4;
}

.office-phones {
  font-size: 16px;
  color: #000000;
  font-weight: 500;
  line-height: 1.6;
}

.web-email-row {
  font-weight: 600;
  font-size: 16px;
  color: #000000;
  word-break: break-all;
}

.contact-divider {
  height: 1px;
  background-color: #9ae2ed;
  width: 100%;
  max-width: 500px;
}

/* ── Contact Form Card ── */
.contact-form-card {
  background: #ffffff;
  border-radius: 40px;
  padding: 40px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.contact-form-card h4 {
  font-weight: 500;
  font-size: 30px;
  color: #000000;
  margin-bottom: 20px;
  text-align: center;
  font-family: 'CenturyGothic', sans-serif;
}

.contact-form-card .form-label {
  font-size: 18px;
  color: #000000a6;
  font-weight: 400;
  margin-bottom: 8px;
}

.contact-form-card .form-control {
  background-color: #ffffff;
  border: 1px solid #1c5988;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.contact-form-card .form-control:focus {
  border-color: #1c5988;
  box-shadow: 0 0 0 3px rgba(28, 89, 136, 0.1);
  outline: none;
}

.btn-send-gradient {
  background: linear-gradient(to right, #000000, #4693cb);
  border: none;
  border-radius: 12px;
  color: #fff;
  padding: 10px 60px;
  font-size: 20px;
  font-weight: 400;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-send-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(28, 89, 136, 0.3);
}

@media (max-width: 991px) {
  .office-row {
    flex-direction: column;
    gap: 8px;
  }

  .office-name {
    flex: none;
  }

  .contact-form-card {
    padding: 35px 25px;
    border-radius: 30px;
  }
}

/* =============================================================
   FOOTER
   ============================================================= */
#footer {
  background: #fff;
  color: #000;
  padding: 70px 0 0;
  border-top: 1px solid #ddd;
}

.footer-logo-img {
  width: 140px;
  /* Adjusted based on visual */
  height: auto;
}

.footer-tagline-new {
  font-size: 16px;
  line-height: 1.6;
  color: #000000;
  margin-top: 12px;
  max-width: 100%;
  text-align: justify;
}

.footer-social-icons img {
  width: 50px;
  height: 50px;
  transition: transform 0.2s;
}

.footer-social-icons a:hover img {
  transform: scale(1.1);
}

.footer-heading-new {
  font-family: 'CenturyGothic', sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: #000000;
  margin-bottom: 30px;
}

.footer-links-new {
  padding: 0;
  margin: 0;
}

.footer-links-new li {
  margin-bottom: 20px;
}

.footer-links-new a {
  font-size: 16px;
  color: #000000;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links-new a:hover {
  color: #1c5988;
}

.footer-address-new {
  font-size: 16px;
  color: #000000;
  line-height: 1.5;
}

.footer-contact-icon {
  font-size: 20px;
  color: #1c5988;
}

.footer-hr {
  border: 0;
  border-top: 1px solid #000000;
  opacity: 1;
  margin: 30px 0 0;
}

.footer-bottom-new {
  font-size: 16px;
  color: #000000;
  font-weight: 400;
  font-family: 'CenturyGothic', sans-serif;
}

.footer-bottom-new p {
  margin: 0;
}

.terms-link {
  color: #333;
  text-decoration: none;
}

.terms-link:hover {
  text-decoration: underline;
}

/* =============================================================
   SCROLL TO TOP
   ============================================================= */
#scrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  font-size: 1.2rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(28, 89, 136, 0.4);
  transition: transform 0.2s;
}

#scrollTop:hover {
  transform: translateY(-3px);
}

#scrollTop.show {
  display: flex;
}

/* =============================================================
   RESPONSIVE – FULLY RESPONSIVE SYSTEM
   Desktop 1200px+ → LOCKED (zero changes)
   992–1199px  → Small Desktop
   769–991px   → Tablet
   577–768px   → Large Mobile
   320–576px   → Mobile
   ============================================================= */

/* ─────────────────────────────────────────────────────────────
   SMALL DESKTOP: 992px – 1199px
   Keep all layouts same as desktop, only minor containment fixes
   ───────────────────────────────────────────────────────────── */

/* Hero: slightly reduce h1 at this range */
.hero-body h1 {
  font-size: clamp(2.2rem, 6.5vw, 75px);
}

/* About-image: reduce negative margin to avoid over-overlap */

/* Advantages: let it bleed to screen edge naturally using the gutter variable */
.adv-swiper-outer {
  margin-right: calc(-1 * var(--bs-gutter-x));
}

/* Applications: correct left margin for slightly smaller container */

/* Process images: slightly smaller than desktop */
.process-img {
  height: 200px;
}

/* Water treatment image */
.wt-img {
  height: auto;
}

/* Gravitreat image */

/* Adv card height */

/* ─────────────────────────────────────────────────────────────
   LARGE TABLET / IPAD PRO: 992px – 1366px
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1366px) {

  #hero,
  .hero-inner {
    height: auto;
    min-height: 95vh;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   TABLET: 769px – 991px
   Stack col-lg-6 columns, scale images, fix overflows
   ───────────────────────────────────────────────────────────── */
@media (max-width: 991px) {

  /* Global section padding reduction */
  section {
    padding: 60px 0;
  }

  /* Container: ensure horizontal padding */
  .container-xl {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* ── HERO ── */
  #hero,
  .hero-inner {
    height: auto;
    min-height: 95vh;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero-body {
    padding: 0rem 1.5rem 0rem;
  }

  .hero-body h1 {
    font-size: clamp(1.9rem, 5vw, 48px);
    margin-bottom: 1.5rem;
  }

  .hero-body p {
    font-size: clamp(0.9rem, 2vw, 18px);
  }

  .btn-hero-cta {
    /* Fix CTA button from overflowing on tablet */
    padding: 0.5rem 3.5rem;
    font-size: 18px;
  }

  /* ── ABOUT ── */
  #about {
    padding: 50px 0 0;
  }

  .about-text {
    font-size: 17px;
  }

  .about-image-outer {
    border-radius: 16px;
  }

  .about-main-img {
    height: auto;
    /* Let image scale naturally */
  }

  .vision-img {
    height: 280px;
  }

  .vision-text {
    font-size: 16px;
  }

  /* Icon strip: scale on tablet */
  .vision-icon-img {
    width: auto;
  }

  /* ── WATER TREATMENT ── */
  .wt-tabs {
    gap: 12px;
  }

  .wt-tab {
    font-size: 14px;
    padding: 0.5rem 0.9rem;
  }

  .wt-img {
    height: auto;
    margin-top: 1rem;
    /* Gap when stacked */
  }

  .wt-desc {
    font-size: 16px;
  }

  /* ── GRAVITREAT ── */

  /* ── PROCESS FLOW ── */
  .process-img {
    height: 170px;
  }

  .process-arrow {
    margin-bottom: 35px;
  }

  /* ── APPLICATIONS ── */
  .app-card {
    height: 210px;
  }

  /* Fix left offset for the swiper on tablet */
  .app-swiper-outer {
    margin-left: 20px;
  }

  /* ── ADVANTAGES ──
     Kill the right bleed technique on tablet → causes h-scroll */
  .adv-swiper-outer {
    margin-right: 0;
    /* Remove right bleed */
    padding-right: 0;
    /* Remove right padding */
    overflow: hidden;
  }

  .adv-card {
    height: 400px;
  }

  .adv-nav-wrapper {
    margin-top: 25px;
  }

  /* ── MAP ── */
  #map {
    height: 360px;
  }

  /* ── CONTACT ── */
  .contact-details-list {
    margin-top: 2rem;
    /* Replace % with a fixed value */
  }

  /* office-row was already fixed in existing @media(max-width:991px) */
  .contact-form-card {
    padding: 35px 25px;
    border-radius: 30px;
    margin-top: 2rem;
  }

  /* ── FOOTER ── */
  /* Neutralise the hardcoded ms-5 Bootstrap margin on Quick Links col */
  #footer .col-lg-3.ms-5 {
    margin-left: 0 !important;
  }

  .footer-brand-col {
    margin-bottom: 2rem;
  }

  /* Footer bottom: wrap on smaller widths */
  .footer-bottom-new {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ─────────────────────────────────────────────────────────────
   LARGE MOBILE: 577px – 768px
   Further stack/reduce, keep readable typography ≥14px
   ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #clients {
    padding: 40px 0;
  }

  #location .section {
    padding: 0 0;
  }

  #advantages .app-nav-btn {
    width: 40px;
    height: 40px;
  }

  section {
    padding: 48px 0;
  }

  /* Container side padding */
  .container-xl {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* ── HERO ── */
  /* Reduce hero to ~60% screen height on large mobile */
  #hero,
  .hero-inner {
    min-height: 70vh;
    padding: 40px 0;
    height: 80vh;
  }

  #about-image {
    margin-top: 0;
  }

  .hero-body {
    padding: 1.5rem 1rem 1.5rem;
  }

  .hero-body h1 {
    font-size: clamp(1.7rem, 6vw, 36px);
    margin-bottom: 1.2rem;
  }

  .hero-body p {
    font-size: 15px;
    max-width: 100%;
  }

  .btn-hero-cta {
    padding: 0.5rem 2.5rem;
    font-size: 17px;
  }

  /* ── ABOUT ── */
  .about-text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0rem;
  }

  /* ── ABOUT IMAGE ── */

  .about-image-outer {
    border-radius: 14px;
  }

  /* ── VISION ── */

  .vision-img {
    height: 240px;
    margin-top: 1.5rem;
    /* Space when images stack below text */
  }

  .vision-text {
    font-size: 15px;
  }

  /* Icon strip: allow natural wrap */
  .vision-icon-strip {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .vision-icon-img {
    width: auto;
    min-width: 0;
  }

  /* ── WATER TREATMENT ── */
  #services {
    padding: 40px 0 60px;
  }

  .wt-subtitle {
    font-size: 15px;
  }

  .wt-tabs {
    gap: 8px;
    justify-content: flex-start;
  }

  .wt-tab {
    font-size: 13px;
    padding: 0.4rem 0.8rem;
    white-space: normal;
    /* Allow wrapping on truly small buttons */
    text-align: center;
  }

  .wt-desc {
    font-size: 15px;
    padding-right: 0;
  }

  .wt-img {
    height: auto;
    margin-top: 1rem;
  }

  /* ── GRAVITREAT ── */
  .gravitreat-main-img {
    height: auto;
  }

  .gravitreat-sub {
    font-size: 17px;
  }

  /* ── PROCESS FLOW: Stack vertically on large mobile ── */
  .process-flow {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .process-item {
    flex: none;
    width: 100%;
    max-width: 220px;
  }

  .process-img {
    height: 200px;
  }

  /* Show a small vertical arrow by rotating the existing arrow */
  .process-arrow {
    margin-bottom: 0;
    transform: rotate(90deg);
  }

  .process-arrow-img {
    width: 110px;
  }

  .process-label {
    font-size: 16px;
  }

  /* ── APPLICATIONS ── */
  .app-card {
    height: 180px;
  }

  .app-swiper-outer {
    margin-left: 16px;
  }

  .app-card-label {
    font-size: 18px;
  }

  /* Applications header: keep spread */
  .applications-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* ── ADVANTAGES ── */
  #advantages {
    padding: 48px 0;
  }

  .advantage-list li {
    font-size: 15px;
    gap: 12px;
  }

  .adv-swiper-outer {
    margin-right: 0;
    padding-right: 0;
    margin-top: 2rem;
  }

  .adv-card {
    height: 300px;
  }

  /* ── MAP ── */
  #map {
    height: 300px;
    border-radius: 14px;
  }

  /* ── CONTACT ── */
  #contact {
    padding: 48px 0;
  }

  .contact-description {
    max-width: 100%;
    font-size: 15px;
  }

  .contact-details-list {
    margin-top: 2rem;
  }

  .contact-detail-item {
    gap: 12px;
  }

  .office-row {
    flex-direction: column;
    gap: 6px;
  }

  .office-name {
    flex: none;
    font-size: 15px;
  }

  .office-phones {
    font-size: 14px;
  }

  .web-email-row {
    font-size: 14px;
    word-break: break-word;
  }

  .contact-form-card {
    padding: 28px 20px;
    border-radius: 24px;
    margin-top: 2rem;
  }

  .contact-form-card h4 {
    font-size: 22px;
  }

  .contact-form-card .form-label {
    font-size: 15px;
  }

  .btn-send-gradient {
    padding: 10px 40px;
    font-size: 17px;
    width: 100%;
    /* Full width on mobile for easy tap */
  }

  /* ── FOOTER ── */
  #footer {
    padding: 50px 0 0;
  }

  #footer .col-lg-3.ms-5 {
    margin-left: 0 !important;
  }

  .footer-heading-new {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .footer-links-new li {
    margin-bottom: 14px;
  }

  .footer-links-new a {
    font-size: 15px;
  }

  .footer-address-new {
    font-size: 15px;
  }

  .footer-tagline-new {
    font-size: 15px;
    margin-top: 16px;
  }

  .footer-bottom-new {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 14px;
    padding: 16px 0;
  }

  .client-track img {
    width: 150px;
    height: 60px;
  }

  .client-row {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 25px;
    padding: 12px 0;
  }

  /* Social icons smaller */
  .footer-social-icons img {
    width: 40px;
    height: 40px;
  }

  /* ── SCROLL TO TOP ── */
  #scrollTop {
    bottom: 20px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
}

/* ─────────────────────────────────────────────────────────────
   MOBILE: 320px – 576px
   Maximum stacking, minimum font sizes, touch-target sizes ≥44px
   ───────────────────────────────────────────────────────────── */
@media (max-width: 576px) {
  section {
    padding: 40px 0;
  }

  /* Container: minimum side padding */
  .container-xl {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* ── HERO ── */
  /* ~60% screen height on small mobile */
  #hero,
  .hero-inner {
    min-height: 97vh;
  }

  .hero-body {
    padding: 1rem 0.75rem 1rem;
  }

  .hero-body h1 {
    font-size: clamp(1.5rem, 7vw, 30px);
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .hero-body p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .btn-hero-cta {
    padding: 0.55rem 2rem;
    font-size: 16px;
    border-radius: 12px;
    /* Ensure touch target */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-logo-img {
    width: 70px;
    /* Slightly smaller logo on mobile */
  }

  /* ── SECTION TITLES ── */
  .section-title {
    font-size: clamp(1.4rem, 7vw, 30px);
    margin-bottom: 0.75rem;
  }

  /* ── ABOUT ── */
  #about {
    padding: 40px 0 0;
  }

  .about-text {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 0rem;
  }

  /* ── ABOUT IMAGE ── */

  .about-image-outer {
    border-radius: 10px;
  }

  .about-main-img {
    border-radius: 10px;
    height: 350px;
  }

  /* ── VISION ── */
  #vision {
    padding-top: 40px;
  }

  .vision-text {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 1rem;
  }

  .vision-img {
    height: 200px;
    margin-top: 1rem;
  }

  /* Icon strip: if 3 images are too small, allow overflow scroll within strip */
  .vision-icon-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }


  /* ── WATER TREATMENT ── */
  #services {
    padding: 40px 0 50px;
  }

  .wt-subtitle {
    font-size: 14px;
    line-height: 1.6;
  }

  .wt-tabs {
    gap: 6px;
    margin-bottom: 1.5rem;
  }

  .wt-tab {
    font-size: 12px;
    padding: 0.38rem 0.65rem;
    border-radius: 40px;
    min-height: 36px;
    /* Keep touch-friendly */
    line-height: 1.3;
    white-space: normal;
    text-align: center;
  }

  .wt-desc {
    font-size: 14px;
    line-height: 1.65;
    padding-right: 0;
  }

  .wt-img {
    height: auto;
    border-radius: 10px;
    margin-top: 1rem;
  }

  .wt-content-area {
    margin-top: 0;
  }

  /* ── GRAVITREAT ── */
  #gravitreat {
    padding: 40px 0 0;
  }

  .gravitreat-sub {
    font-size: 15px;
    margin-bottom: 1.2rem;
  }

  .gravitreat-main-img {
    height: auto;
    /* Mobile: compact image */
    object-fit: cover;
  }

  /* ── PROCESS FLOW ── */
  #process {
    padding: 40px 0;
  }

  .process-flow {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .process-item {
    width: 100%;
    max-width: 180px;
  }

  .process-label {
    font-size: 15px;
    max-width: 160px;
  }

  /* Rotate arrow to point down when stacked vertically */
  .process-arrow {
    margin-bottom: 0;
    transform: rotate(90deg);
  }

  /* ── APPLICATIONS ── */
  #applications {
    padding: 40px 0;
  }

  .applications-header {
    align-items: flex-start;
    gap: 12px;
  }

  .app-nav-btns {
    align-self: flex-start;
  }

  .app-swiper-outer {
    margin-left: 14px;
  }

  .app-card-label {
    font-size: 15px;
    padding: 10px;
  }

  /* ── ADVANTAGES ── */
  #advantages {
    padding: 40px 0;
  }

  .advantage-list li {
    font-size: 14px;
    gap: 10px;
    margin-bottom: 8px;
    align-items: flex-start;
    /* Allow multi-line items to align top */
  }

  .advantage-list li i {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 3px;
  }

  .adv-swiper-outer {
    margin-right: 0;
    padding-right: 0;
    margin-top: 1.5rem;
  }

  .adv-card {
    height: 260px;
  }

  .adv-nav-wrapper {
    margin-top: 16px;
  }

  /* ── MAP ── */
  #location {
    padding: 0px 0;
  }

  #map {
    height: 250px;
    border-radius: 12px;
  }

  /* ── CONTACT ── */
  #contact {
    padding: 40px 0;
  }

  .contact-description {
    font-size: 14px;
    max-width: 100%;
  }

  .contact-details-list {
    margin-top: 1.5rem;
  }

  .contact-detail-item {
    gap: 10px;
    padding: 10px 0;
  }

  .contact-detail-icon {
    font-size: 18px;
    width: 28px;
    height: 28px;
  }

  .office-name {
    font-size: 14px;
  }

  .office-phones {
    font-size: 13px;
  }

  .web-email-row {
    font-size: 13px;
  }

  .contact-divider {
    max-width: 100%;
  }

  .contact-form-card {
    padding: 22px 16px;
    border-radius: 20px;
    margin-top: 1.5rem;
  }

  .contact-form-card h4 {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .contact-form-card .form-label {
    font-size: 14px;
  }

  .contact-form-card .form-control {
    padding: 10px 14px;
    font-size: 14px;
  }

  .btn-send-gradient {
    padding: 12px 30px;
    font-size: 16px;
    width: 100%;
    min-height: 44px;
    /* Touch target */
    border-radius: 10px;
  }

  /* Reduce space between form fields */
  #contactForm .mb-4 {
    margin-bottom: 1rem !important;
  }

  /* ── FOOTER ── */
  #footer {
    padding: 40px 0 0;
  }

  #footer .col-lg-3.ms-5 {
    margin-left: 0 !important;
  }

  /* Stack footer columns — Bootstrap col-lg-* already handles this,
     but add margin top for breathing room between stacked cols */
  #footer .row>[class*="col-"]+[class*="col-"] {
    margin-top: 0rem;
  }

  .footer-logo-img {
    width: 90px;
  }

  .footer-tagline-new {
    font-size: 14px;
    margin-top: 12px;
  }

  .footer-heading-new {
    font-size: 17px;
    margin-bottom: 12px;
  }

  .footer-links-new li {
    margin-bottom: 10px;
  }

  .footer-links-new a {
    font-size: 14px;
  }

  .footer-address-new {
    font-size: 14px;
  }

  .footer-social-icons img {
    width: 36px;
    height: 36px;
  }

  .footer-social-icons {
    margin-top: 1rem !important;
    /* Override Bootstrap mt-4 */
  }

  .footer-bottom-new {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 13px;
    padding: 14px 0;
  }

  /* ── SCROLL TO TOP ── */
  #scrollTop {
    bottom: 16px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   EXTRA SMALL: max-width 360px (very small phones)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 360px) {
  .container-xl {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-body h1 {
    font-size: 1.35rem;
  }

  .hero-body p {
    font-size: 13px;
  }

  .btn-hero-cta {
    padding: 0.5rem 1.6rem;
    font-size: 15px;
  }

  .wt-tab {
    font-size: 11px;
    padding: 0.35rem 0.55rem;
  }

  .advantage-list li {
    font-size: 13px;
  }

  .vision-icon-img {
    min-width: auto;
  }
}

/* --- Loader Animation --- */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}