/* ============================================================
   AIRTEK ENTERPRISE - PIXEL-PERFECT HOMEPAGE SECTIONS CSS
   Covers: Hero Slider | Trusted Brands | AC Solutions | Feature Bar
   Responsive: Desktop > Tablet > Mobile
   ============================================================ */

/* ── Google Font Import ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --clr-navy:       #0D2137;
  --clr-blue:       #1565C0;
  --clr-blue-light: #EBF4FF;
  --clr-blue-mid:   #DBEEFF;
  --clr-gray:       #F7F9FC;
  --clr-gray-text:  #555F6D;
  --clr-border:     #E5E9EF;
  --clr-white:      #ffffff;
  --font-main:      'Inter', sans-serif;
  --transition:     all 0.3s ease;
}

/* ============================================================
   1. HERO SLIDER — .rt-slider (style2)
   ============================================================ */

/* Wrapper: no margin/padding — sits flush below header like original */
.rt-slider.slider-inner-wrapper {
  font-family: var(--font-main) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: hidden !important;
}

/* Swiper container must clip arrows inside */
.rt-slider .swiper {
  position: relative !important;
  overflow: hidden !important;
}

/* Swiper slide wrapper */
.rt-slider .swiper-slide.v-center {
  display: flex;
  align-items: stretch;
}

/* Inner background area */
.rt-slider .swiper-inner {
  width: 100%;
  min-height: 560px;
  background: linear-gradient(135deg, #EBF4FF 0%, #dbeeff 40%, #f0f7ff 100%) !important;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Subtle decorative blob top-right */
.rt-slider .swiper-inner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(21,101,192,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Caption wrapper */
.rt-slider .sw-caption {
  width: 100%;
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

/* ── Left Column: Text Content ─────────────────────────────── */
.rt-slider .sw-text-wrapper {
  padding-right: 20px;
}

/* Eyebrow / Subtitle */
.rt-slider .subtitle {
  font-family: var(--font-main) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  color: var(--clr-blue) !important;
  margin-bottom: 14px !important;
  display: block;
  background: none !important;
  padding: 0 !important;
}

/* Main Heading */
.rt-slider .slider-title {
  font-family: var(--font-main) !important;
  font-size: 52px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  color: var(--clr-navy) !important;
  margin-bottom: 18px !important;
  letter-spacing: -0.5px;
}

/* Description */
.rt-slider .slider-teaser {
  font-family: var(--font-main) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  color: var(--clr-gray-text) !important;
  margin-bottom: 32px !important;
  max-width: 420px;
}

/* ── Buttons wrapper ───────────────────────────────────────── */
.rt-slider .slider-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.rt-slider .btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 13px 28px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: var(--transition) !important;
  cursor: pointer;
  border: 2px solid transparent !important;
  line-height: 1.4 !important;
  white-space: nowrap;
}

/* Primary: dark navy filled */
.rt-slider .btn-primary-slide {
  background-color: var(--clr-navy) !important;
  color: var(--clr-white) !important;
  border-color: var(--clr-navy) !important;
}
.rt-slider .btn-primary-slide:hover {
  background-color: var(--clr-blue) !important;
  border-color: var(--clr-blue) !important;
  color: var(--clr-white) !important;
}

/* Secondary: white outlined */
.rt-slider .btn-outline-slide {
  background-color: var(--clr-white) !important;
  color: var(--clr-navy) !important;
  border-color: var(--clr-navy) !important;
}
.rt-slider .btn-outline-slide:hover {
  background-color: var(--clr-navy) !important;
  color: var(--clr-white) !important;
}

/* ── Right Column: Product Image ───────────────────────────── */
.rt-slider .slide_img {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(13, 33, 55, 0.12));
  animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* ── Swiper Navigation Arrows — INSIDE the banner ─────────── */
.rt-slider .swiper-button-prev,
.rt-slider .swiper-button-next {
  width: 44px !important;
  height: 44px !important;
  background: rgba(13,33,55,0.75) !important;
  border-radius: 50% !important;
  color: #fff !important;
  transition: var(--transition) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin-top: 0 !important;
  /* Keep arrows well INSIDE the banner edges */
  z-index: 10 !important;
}

.rt-slider .swiper-button-prev { left: 16px !important; }
.rt-slider .swiper-button-next { right: 16px !important; }

.rt-slider .swiper-button-prev:hover,
.rt-slider .swiper-button-next:hover {
  background: var(--clr-blue) !important;
}

.rt-slider .swiper-button-prev::after,
.rt-slider .swiper-button-next::after {
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #fff !important;
}

/* ── Swiper Pagination Dots — INSIDE at bottom of banner ───── */
.rt-slider .swiper-pagination {
  position: absolute !important;
  bottom: 18px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  text-align: center !important;
  z-index: 10 !important;
  /* Prevent dots appearing OUTSIDE the slider */
  overflow: hidden !important;
}

.rt-slider .swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  background: rgba(13,33,55,0.25) !important;
  opacity: 1 !important;
  transition: var(--transition) !important;
  display: inline-block !important;
}

.rt-slider .swiper-pagination-bullet-active {
  background: var(--clr-navy) !important;
  width: 22px !important;
  border-radius: 4px !important;
}

/* ============================================================
   2. TRUSTED BRANDS SECTION
   ============================================================ */
.trusted-brands-section {
  background: var(--clr-white);
  padding: 50px 0;
  border-bottom: 1px solid var(--clr-border);
}

/* Section heading with side lines */
.trusted-brands-section .section-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 36px;
}

.trusted-brands-section .section-tag::before,
.trusted-brands-section .section-tag::after {
  content: '';
  flex: 1;
  max-width: 180px;
  height: 1px;
  background: linear-gradient(to right, transparent, #c9d8ec);
}

.trusted-brands-section .section-tag::after {
  background: linear-gradient(to left, transparent, #c9d8ec);
}

.trusted-brands-section .section-tag span {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--clr-blue);
  white-space: nowrap;
}

/* Brand logos row */
.trusted-brands-section .brands-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
}

.trusted-brands-section .brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(20%);
  transition: var(--transition);
  opacity: 0.85;
}

.trusted-brands-section .brand-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.trusted-brands-section .brand-item img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

/* Brand text fallback (when no logo image) */
.trusted-brands-section .brand-text {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.5px;
  transition: var(--transition);
}

.trusted-brands-section .brand-text.general  { color: #CC0000; }
.trusted-brands-section .brand-text.panasonic { color: #003087; font-style: italic; font-size: 26px; }
.trusted-brands-section .brand-text.haier     { color: #0054A6; font-size: 28px; }
.trusted-brands-section .brand-text.vertiv    { color: #1a1a1a; }

/* ============================================================
   3. OUR AC SOLUTIONS SECTION
   ============================================================ */
.ac-solutions-section {
  background: var(--clr-gray);
  padding: 70px 0;
}

/* Section heading */
.ac-solutions-section .section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.ac-solutions-section .section-heading h2 {
  font-family: var(--font-main);
  font-size: 30px;
  font-weight: 800;
  color: var(--clr-navy);
  margin-bottom: 8px;
  display: inline-block;
  position: relative;
}

/* Blue underline accent like the screenshot */
.ac-solutions-section .section-heading h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--clr-blue);
  border-radius: 2px;
}

/* Cards grid */
.ac-solutions-section .cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* Single card */
.ac-solutions-section .ac-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  padding: 28px 20px 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  cursor: pointer;
}

.ac-solutions-section .ac-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13, 33, 55, 0.10);
  border-color: rgba(21,101,192,0.25);
}

/* Card image */
.ac-solutions-section .ac-card .card-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 18px;
  transition: var(--transition);
}

.ac-solutions-section .ac-card:hover .card-img {
  transform: scale(1.04);
}

/* Card title */
.ac-solutions-section .ac-card .card-title {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--clr-navy);
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Card description */
.ac-solutions-section .ac-card .card-desc {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 400;
  color: #6B7280;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   4. FEATURE BAR SECTION
   ============================================================ */
.feature-bar-section {
  background: var(--clr-navy);
  padding: 36px 60px;
}

.feature-bar-section .features-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

/* Single feature item */
.feature-bar-section .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

/* Divider between items */
.feature-bar-section .feature-item:not(:last-child) {
  padding-right: 20px;
  border-right: 1px solid rgba(255,255,255,0.12);
}

/* Icon wrapper */
.feature-bar-section .feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-bar-section .feature-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.feature-bar-section .feature-icon i,
.feature-bar-section .feature-icon svg {
  font-size: 30px;
  color: rgba(255,255,255,0.9);
}

/* Text content */
.feature-bar-section .feature-text {}

.feature-bar-section .feature-title {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 4px;
  line-height: 1.3;
}

.feature-bar-section .feature-desc {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ── Tablet: 992px – 1199px ─────────────────────────────────── */
@media (max-width: 1199px) {

  /* Hero */
  .rt-slider .slider-title {
    font-size: 40px !important;
  }
  .rt-slider .swiper-inner {
    min-height: 500px;
  }
  .rt-slider .slide_img {
    max-width: 420px;
  }

  /* AC Solutions */
  .ac-solutions-section .cards-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Feature Bar */
  .feature-bar-section {
    padding: 36px 30px;
  }
}

/* ── Tablet: 768px – 991px ──────────────────────────────────── */
@media (max-width: 991px) {

  /* Hero */
  .rt-slider .swiper-inner {
    min-height: auto;
  }
  .rt-slider .sw-caption {
    padding: 50px 0;
  }
  .rt-slider .slider-title {
    font-size: 34px !important;
  }
  .rt-slider .slider-teaser {
    font-size: 14px !important;
    max-width: 100%;
  }
  .rt-slider .slide_img {
    max-width: 100%;
    animation: none;
    margin-top: 30px;
  }
  /* Stack: content top, image bottom on tablet */
  .rt-slider .row.gx-5 {
    flex-direction: column !important;
  }
  .rt-slider .col-lg-6 {
    width: 100% !important;
    text-align: center;
  }
  .rt-slider .sw-text-wrapper {
    padding-right: 0;
    text-align: center;
  }
  .rt-slider .slider-teaser {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .rt-slider .btn-main {
    margin-bottom: 10px;
  }

  /* Brands */
  .trusted-brands-section .brands-row {
    gap: 30px;
  }

  /* AC Solutions */
  .ac-solutions-section .cards-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Feature Bar */
  .feature-bar-section {
    padding: 30px 20px;
  }
  .feature-bar-section .features-grid {
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
  }
  .feature-bar-section .feature-item {
    flex: 0 0 calc(50% - 12px);
    border-right: none !important;
    padding-right: 0 !important;
  }
}

/* ── Mobile: < 768px ────────────────────────────────────────── */
@media (max-width: 767px) {

  /* Hero */
  .rt-slider .slider-title {
    font-size: 28px !important;
    line-height: 1.25 !important;
  }
  .rt-slider .subtitle {
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
  }
  .rt-slider .slider-teaser {
    font-size: 13px !important;
  }
  .rt-slider .btn-main {
    font-size: 13px !important;
    padding: 11px 18px !important;
  }
  .rt-slider .slider-btns {
    justify-content: center;
    gap: 10px;
  }
  .rt-slider .swiper-button-prev,
  .rt-slider .swiper-button-next {
    width: 36px !important;
    height: 36px !important;
    display: none; /* hide arrows on mobile for clean look */
  }

  /* Brands */
  .trusted-brands-section {
    padding: 36px 0;
  }
  .trusted-brands-section .brands-row {
    gap: 20px;
  }
  .trusted-brands-section .brand-text {
    font-size: 18px;
  }
  .trusted-brands-section .section-tag::before,
  .trusted-brands-section .section-tag::after {
    max-width: 60px;
  }

  /* AC Solutions */
  .ac-solutions-section {
    padding: 50px 0;
  }
  .ac-solutions-section .cards-row {
    grid-template-columns: repeat(1, 1fr);
    gap: 14px;
  }
  .ac-solutions-section .section-heading h2 {
    font-size: 24px;
  }
  .ac-solutions-section .ac-card .card-img {
    height: 120px;
  }

  /* Feature Bar */
  .feature-bar-section {
    padding: 30px 16px;
  }
  .feature-bar-section .features-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-bar-section .feature-item {
    flex: 0 0 100%;
    border-right: none !important;
    padding-right: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
  }
  .feature-bar-section .feature-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* ── Small Mobile: < 480px ──────────────────────────────────── */
@media (max-width: 480px) {
  .rt-slider .slider-title {
    font-size: 24px !important;
  }
  .trusted-brands-section .brands-row {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    place-items: center;
  }
  .ac-solutions-section .ac-card {
    padding: 20px 14px;
  }
}
