/* ============================================================
   components.css — Reusable UI Components
   Nilakshith Enterprise — Internet, CCTV & IT Services
   ============================================================ */

/* ═══════════════════════════════════════════════
   BRANDS CAROUSEL SECTION
   ═══════════════════════════════════════════════ */

.brands-section {
  padding: 40px 0 48px;
  background: var(--color-bg-surface, #F7F8FA);
  overflow: hidden;
  position: relative;
}

/* Small uppercase label above the track */
.brands-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary, #4B5563);
  margin-bottom: 24px;
}

/* The outer wrapper — clips the scrolling strip */
.brands-track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Left and right fade masks — create the "fading edges" effect */
.brands-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.brands-fade--left {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-surface, #F7F8FA) 0%, transparent 100%);
}

.brands-fade--right {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-surface, #F7F8FA) 0%, transparent 100%);
}

/* The scrolling container — holds both logo lists side by side */
.brands-track {
  display: flex;
  width: max-content;
  animation: brands-scroll 28s linear infinite;
  will-change: transform;
}

/* Pause on hover — accessible and lets users read logos */
.brands-track:hover {
  animation-play-state: paused;
}

/* Each logo list — logos in a horizontal row */
.brands-list {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 12px 28px;
  list-style: none;
  margin: 0;
}

/* Individual logo item */
.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* The logo image */
.brand-logo {
  height: 80px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.85;
  will-change: transform, opacity;
}

/* ── Perspective scale effect ─────────────────── */
.brands-track-wrapper {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.3) 8%,
    rgba(0,0,0,0.7) 15%,
    black 25%,
    black 75%,
    rgba(0,0,0,0.7) 85%,
    rgba(0,0,0,0.3) 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.3) 8%,
    rgba(0,0,0,0.7) 15%,
    black 25%,
    black 75%,
    rgba(0,0,0,0.7) 85%,
    rgba(0,0,0,0.3) 92%,
    transparent 100%
  );
}

/* ── Keyframe: continuous left scroll ─────────── */
@keyframes brands-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Respect reduced motion preference ────────── */
@media (prefers-reduced-motion: reduce) {
  .brands-track {
    animation: none;
  }
  .brands-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
  }
  .brands-list--dupe {
    display: none;
  }
}

/* ── Mobile overrides ─────────────────────────── */
@media (max-width: 768px) {
  .brands-section {
    padding: 32px 0 40px;
  }
  .brands-list {
    gap: 36px;
    padding: 12px 16px;
  }
  .brand-logo {
    height: 60px;
    max-width: 150px;
  }
  .brands-fade {
    width: 64px;
  }
  .brands-track {
    animation-duration: 22s;
  }
}

@media (max-width: 480px) {
  .brands-section {
    padding: 28px 0 36px;
  }
  .brands-list {
    gap: 28px;
    padding: 10px 12px;
  }
  .brand-logo {
    height: 48px;
    max-width: 120px;
  }
  .brands-fade {
    width: 48px;
  }
  .brands-track {
    animation-duration: 18s;
  }
}

/* ═══════════════════════════════════════════════
   END BRANDS CAROUSEL
   ═══════════════════════════════════════════════ */

/* ============================================================
   MOBILE RESPONSIVE UX ADJUSTMENTS (ADDITIVE OVERRIDES)
   ============================================================ */

@media (max-width: 768px) {
  /* FIX 2 — BROADBAND PLANS: 3-COLUMN GRID ON TABLET/MOBILE */
  .plans-grid,
  .plan-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
  }

  /* FIX 3 — HERO SECTION: LEFT ALIGNMENT, CTA ROW, STAT GRID */
  .hero__content {
    align-items: flex-start !important;
    text-align: left !important;
  }
  
  .hero__badge,
  .hero-badge,
  .trust-badge,
  .hero-eyebrow {
    text-align: left !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
  }
  
  .hero h1,
  .hero-title,
  .hero__headline {
    text-align: center !important;
    width: 100% !important;
  }
  
  .hero__subtext {
    text-align: left !important;
  }
  
  .hero__ctas,
  .hero-actions,
  .hero-cta,
  .btn-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
  }
  
  .hero__ctas a,
  .hero__ctas button,
  .hero__ctas .btn,
  .hero-actions a,
  .hero-cta a,
  .btn-group a {
    flex: 1 !important;
    text-align: center !important;
    padding: 11px 10px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
  }
  
  .hero__stats-row,
  .hero-stats,
  .trust-bar,
  .stat-bar,
  .stats-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 12px !important;
    text-align: left !important;
    margin-top: 16px !important;
    border-top: 1px solid var(--color-border) !important;
    padding-top: var(--space-5) !important;
  }
  
  .hero__stat-divider,
  .stat-divider {
    display: none !important;
  }
  
  .stat-item,
  .trust-stat,
  .hero-stat,
  .hero__stat-item {
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
  }
}

@media (max-width: 480px) {
  /* FIX 1 — GLOBAL MOBILE SIZING */
  .navbar__logo-img,
  .navbar-brand img,
  .logo img,
  .navbar-logo img {
    height: 36px !important;
    width: auto !important;
  }
  
  .navbar {
    height: 56px !important;
    min-height: 56px !important;
  }
  
  section,
  .section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
    padding-block: 48px !important;
  }
  
  .hero,
  section.hero {
    padding-top: 66px !important;
    padding-bottom: 40px !important;
    padding-block: 66px 40px !important;
  }

  .hero__headline {
    width: 100% !important;
    text-align: center !important;
  }

  .hero__badge {
    padding: 8px 14px 8px 12px !important;
    border-radius: 12px !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .hero__badge-dot {
    margin-top: 5px !important;
    margin-right: 8px !important;
    flex-shrink: 0 !important;
  }

  .hero__badge-text {
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
    text-align: left !important;
    display: block !important;
    font-weight: 500 !important;
  }
  
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* RE-ARRANGE BROADBAND PLANS TO 2 COLUMNS ON MOBILE */
  .plans-grid,
  .plan-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  .plan-card {
    padding: 16px 12px !important;
    border-radius: 12px !important;
  }
  
  .plan-card .plan-speed,
  .plan-card .plan-price,
  .plan-card .plan-card__speed-row,
  .plan-card .plan-card__price-row,
  .plan-card__speed-num,
  .plan-card__price-val {
    font-size: 0.95rem !important;
  }
  
  .plan-card .plan-label,
  .plan-card .plan-card__title {
    font-size: 0.75rem !important;
  }
  
  .plan-card .btn {
    font-size: 0.75rem !important;
    padding: 10px 8px !important;
    white-space: nowrap !important;
  }
  
  .plan-card__desc,
  .plan-card .plan-card__desc {
    display: block !important;
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
  }

  /* RE-ARRANGE SERVICES TO 2 COLUMNS ON MOBILE */
  .services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  .service-card {
    padding: 14px 10px !important;
    border-radius: 12px !important;
    gap: 8px !important;
  }
  
  .service-card__icon-wrap {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    background-color: var(--color-brand-light) !important;
    color: var(--color-brand) !important;
  }
  
  .service-card__icon-wrap svg {
    width: 20px !important;
    height: 20px !important;
  }
  
  .service-card__title {
    font-size: 0.85rem !important;
    line-height: 1.2 !important;
  }
  
  .service-card__desc {
    font-size: 0.7rem !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }
  
  .service-card__link {
    font-size: 0.72rem !important;
  }
}

/* ============================================================
   SKELETON LOADER ANIMATION SYSTEM
   ============================================================ */
.preloader {
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
}

.skeleton-wrapper {
  width: 100%;
  max-width: var(--container-xl, 1200px);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: flex-start;
  box-sizing: border-box;
}

.skeleton-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: var(--space-7, 40px);
}

.skeleton-logo {
  width: 180px;
  height: 36px;
  border-radius: var(--radius-sm, 4px);
}

.skeleton-nav {
  width: 480px;
  height: 20px;
  border-radius: var(--radius-sm, 4px);
}

.skeleton-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-7, 48px);
  align-items: center;
  margin-top: var(--space-6, 32px);
}

.skeleton-hero-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 16px);
}

.skeleton-badge {
  width: 260px;
  height: 32px;
  border-radius: var(--radius-pill, 9999px);
}

.skeleton-title {
  width: 100%;
  max-width: 520px;
  height: 110px;
  border-radius: var(--radius-md, 8px);
}

.skeleton-text {
  width: 100%;
  max-width: 580px;
  height: 64px;
  border-radius: var(--radius-sm, 4px);
}

.skeleton-ctas {
  display: flex;
  gap: var(--space-4, 16px);
  margin-top: var(--space-4, 16px);
}

.skeleton-btn {
  width: 150px;
  height: 44px;
  border-radius: var(--radius-pill, 9999px);
}

.skeleton-hero-right {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-lg, 16px);
}

/* Shimmer pulse effect */
.skeleton-pulse {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.08) 37%,
    rgba(255, 255, 255, 0.04) 63%
  );
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Tablet responsive skeleton */
@media (max-width: 900px) {
  .skeleton-nav {
    display: none;
  }
  .skeleton-hero {
    grid-template-columns: 1fr;
    gap: var(--space-5, 24px);
  }
  .skeleton-hero-right {
    height: 240px;
  }
  .skeleton-hero-left {
    align-items: center;
  }
  .skeleton-badge,
  .skeleton-title,
  .skeleton-text {
    align-self: center;
  }
  .skeleton-title {
    height: 80px;
  }
}

/* Mobile responsive skeleton styling */
@media (max-width: 480px) {
  .skeleton-logo {
    width: 130px;
    height: 30px;
  }
  .skeleton-header {
    height: 56px;
    margin-bottom: 24px;
  }
  .skeleton-badge {
    width: 200px;
    height: 24px;
  }
  .skeleton-title {
    height: 60px;
  }
  .skeleton-text {
    height: 50px;
  }
  .skeleton-ctas {
    width: 100%;
    gap: 12px;
  }
  .skeleton-btn {
    flex: 1;
    height: 38px;
  }
  .skeleton-hero-right {
    height: 180px;
  }
}
