/* Home page styles from the original unifiedsolutionsfiji.com design (hero, trust strip, category sliders,
   testimonials, quote strip). Loaded on the home page only. */
:root {
  --navy:        #0a2239;
  --navy-deep:   #061626;
  --navy-soft:   #13355a;
  --cyan:        #00B4D8;
  --cyan-bright: #48CAE4;
  --cyan-deep:   #0077B6;
  --amber:       #FFB627;
  --red-sale:    #E63946;
  --ink:         #0a2239;
  --muted:       #5b6a7e;
  --line:        #E2E8F0;
  --bg:          #F4F7FB;
  --white:       #ffffff;
  --shadow-lg:   0 18px 40px -16px rgba(10, 34, 57, 0.28);
  --shadow-sm:   0 4px 14px -6px rgba(10, 34, 57, 0.18);
  --shadow-glow: 0 10px 40px -10px rgba(0, 180, 216, 0.45);
  --radius:      18px;
  --radius-sm:   12px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ============== HERO ============== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% 12%, rgba(0, 180, 216, 0.28), transparent 60%),
    radial-gradient(700px 500px at 8% 90%, rgba(72, 202, 228, 0.16), transparent 65%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 90px 0 110px;
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 180, 216, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 216, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(72, 202, 228, 0.12) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0, 180, 216, 0.12);
  color: var(--cyan-bright);
  border: 1px solid rgba(0, 180, 216, 0.35);
  padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-tag i { font-size: 10px; }
.hero h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: 22px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--cyan-bright) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 900;
}
.hero .tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  margin: 0 0 28px;
  position: relative;
  padding-left: 36px;
}
.hero .tagline::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 2px;
  background: var(--cyan);
  transform: translateY(-50%);
}
.hero p.lede {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  border: none; cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--cyan);
  color: var(--navy-deep);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--cyan-bright); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  justify-self: end;
  width: 100%;
}
.hero-ring {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background:
    conic-gradient(from 180deg, transparent 0deg, rgba(0, 180, 216, 0.35) 90deg, transparent 180deg, rgba(72, 202, 228, 0.3) 270deg, transparent 360deg);
  animation: spin 18s linear infinite;
  filter: blur(8px);
}
.hero-core {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--cyan-bright), var(--cyan-deep) 70%);
  box-shadow:
    0 0 80px rgba(0, 180, 216, 0.55),
    inset 0 0 60px rgba(255,255,255,0.15);
  opacity: 0.35;
}
.hero-chips {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 14px;
  padding: 18%;
}
.hero-chip {
  background: rgba(255,255,255,0.97);
  color: var(--navy);
  border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  box-shadow: 0 12px 30px -8px rgba(0, 180, 216, 0.35);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  padding: 12px;
  border: 1px solid rgba(0, 180, 216, 0.15);
}
.hero-chip i { font-size: 26px; color: var(--cyan-deep); }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stats .stat .num {
  font-family: 'Outfit', sans-serif;
  font-size: 32px; font-weight: 800;
  color: var(--cyan-bright);
}
.hero-stats .stat .lbl {
  font-size: 12px; color: rgba(255,255,255,0.65);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600;
}

/* ============== SECTION HEAD ============== */
.section { padding: 80px 0; }
.section-eyebrow {
  display: inline-block;
  background: var(--cyan);
  color: var(--navy-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 5px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}
.section .sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
  margin-bottom: 36px;
}

/* ============== CATEGORY BLOCKS ============== */
.cat-block { margin-bottom: 70px; }
.cat-block:last-child { margin-bottom: 0; }

/* Wrap the swiper itself in some internal breathing room so
   cards don't sit flush against the page container edges */
.cat-block .swiper-track {
  padding: 0 4px;
}

.cat-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.cat-title { display: flex; align-items: center; gap: 14px; }
.cat-title-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--cyan-deep) 110%);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 20px -6px rgba(0, 180, 216, 0.45);
  flex-shrink: 0;
}
.cat-title h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
}
.cat-title .count {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0;
}
.cat-head-right {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.cat-nav { display: flex; gap: 8px; }
.cat-nav button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .18s ease;
}
.cat-nav button:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cyan-bright);
}
.cat-nav button:disabled { opacity: 0.35; cursor: not-allowed; }
.cat-nav button:disabled:hover {
  background: var(--white); color: var(--navy); border-color: var(--line);
}

/* View All dropdown */
.view-all-wrap { position: relative; }
.view-all-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s ease;
}
.view-all-btn:hover { background: var(--cyan-deep); }
.view-all-btn i.chev { font-size: 10px; transition: transform .2s ease; }
.view-all-wrap.open .view-all-btn i.chev { transform: rotate(180deg); }

.view-all-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s ease;
  z-index: 30;
}
.view-all-wrap.open .view-all-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.view-all-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  transition: background .15s ease;
}
.view-all-menu a:hover { background: var(--bg); color: var(--cyan-deep); }
.view-all-menu a i { color: var(--cyan-deep); font-size: 11px; }

/* ====== Nuclear overrides — defeat style.css interference ====== */
.prod-swiper {
  padding: 6px 0 14px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  margin: 0 !important;
  position: relative !important;
}
.prod-swiper .swiper-wrapper {
  box-sizing: content-box !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  margin: 0 !important;
}
.prod-swiper .swiper-slide {
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  /* NOTE: do NOT override margin here — Swiper uses margin-right
     to implement `spaceBetween`. Killing it removes the gap.
     style.css uses padding (not margin) so this is safe. */
  text-align: left !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  transform: none !important;
  transition: none !important;
  cursor: default !important;
}
/* Every card fills its slide, so all cards in a row are as tall as the tallest */
.prod-swiper .swiper-slide > .prod-card {
  flex: 1 1 auto !important;
}

/* ============== PRODUCT CARD ============== */
.prod-card {
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
.prod-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-lg) !important;
  border-color: transparent !important;
}
.prod-card .prod-image-wrap {
  position: relative !important;
  width: 100% !important;
  height: 180px !important;       /* explicit height — no aspect-ratio dependence */
  background: var(--bg) !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}
.prod-card .prod-image-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 14px !important;
  margin: 0 !important;
  display: block !important;
  transition: transform .35s ease !important;
  box-sizing: border-box !important;
}
.prod-card:hover .prod-image-wrap img { transform: scale(1.06) !important; }

.prod-card .sale-badge {
  position: absolute !important;
  top: 10px !important; left: 10px !important;
  background: var(--red-sale) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  padding: 4px 9px !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 10px -2px rgba(230, 57, 70, 0.5) !important;
  z-index: 2 !important;
}

.prod-card .prod-body {
  padding: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  flex: 1 !important;
  min-height: 0 !important;
  background: #fff !important;
}
.prod-card .prod-name {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  color: var(--navy) !important;
  line-height: 1.35 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  word-break: break-word !important;
  min-height: 2.7em !important;
  margin: 0 !important;
}
.prod-card .prod-price {
  margin-top: auto !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  padding-top: 4px !important;
}
.prod-card .price-now {
  font-family: 'Outfit', sans-serif !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--navy) !important;
  white-space: nowrap !important;
}
.prod-card .price-now.sale { color: var(--red-sale) !important; }
.prod-card .price-was {
  color: var(--muted) !important;
  font-size: 13px !important;
  text-decoration: line-through !important;
  white-space: nowrap !important;
}
.prod-card .prod-cta {
  margin-top: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: var(--cyan-deep) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}
.prod-card .prod-cta i { transition: transform .2s ease; }
.prod-card:hover .prod-cta i { transform: translateX(4px); }

/* "View all" inline final slide */
.view-all-slide {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  height: 100%;
  min-height: 340px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease;
}
.view-all-slide::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.5), transparent 70%);
}
.view-all-slide:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.view-all-slide i.big {
  font-size: 38px;
  color: var(--cyan-bright);
  position: relative; z-index: 1;
}
.view-all-slide .va-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px; font-weight: 800;
  position: relative; z-index: 1;
}
.view-all-slide .va-sub {
  font-size: 13px; color: rgba(255,255,255,0.7);
  position: relative; z-index: 1;
}
.view-all-slide .va-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--cyan-bright);
  font-weight: 700;
  font-size: 13px;
  position: relative; z-index: 1;
}

/* ============== TRUST STRIP ============== */
.trust {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item i {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(0, 180, 216, 0.1);
  color: var(--cyan-deep);
  font-size: 20px;
  flex-shrink: 0;
}
.trust-item .t-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  display: block;
}
.trust-item .t-sub { color: var(--muted); font-size: 13px; }

/* ============== TESTIMONIALS ============== */
.testimonials {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(0, 180, 216, 0.07), transparent 70%),
    var(--bg);
  text-align: center;
}
.testimonials .section-eyebrow { background: var(--navy); color: var(--cyan-bright); }
.test-wrap {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-top: 30px;
}
/* Allow vertical overflow (for the quote bubble) but clip
   horizontally (so other slides don't spill into view) */
.test-wrap .mySwiper {
  overflow: visible !important;
  clip-path: inset(-40px 0 -40px 0);
  padding-top: 0 !important;
}
.test-wrap .swiper-slide {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.test-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 48px 36px 36px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  border-top: 4px solid var(--cyan);
  margin-top: 0;
}
.test-card .quote-mark {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy-deep);
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: var(--shadow-glow);
  z-index: 2;
}
.test-card .stars {
  color: var(--amber);
  font-size: 20px;
  margin: 0 0 16px;
  letter-spacing: 2px;
}
.test-card .review-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  font-style: italic;
  margin: 0 0 18px;
}
.test-card .review-author {
  color: var(--cyan-deep);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.swiper-pagination-bullet { background: var(--navy); opacity: 0.25; }
.swiper-pagination-bullet-active {
  background: var(--cyan); opacity: 1;
  width: 24px; border-radius: 4px;
}

/* ============== CTA STRIP ============== */
.cta-strip {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(0, 180, 216, 0.18);
  filter: blur(20px);
}
.cta-strip::after {
  content: "";
  position: absolute;
  bottom: -50%; left: -10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(72, 202, 228, 0.12);
  filter: blur(20px);
}
.cta-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.cta-inner h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  max-width: 600px;
}
.cta-inner .btn-light {
  background: var(--cyan);
  color: var(--navy-deep);
}
.cta-inner .btn-light:hover { background: var(--cyan-bright); }

/* ============== RESPONSIVE ============== */
@media (max-width: 960px) {
  .hero { padding: 60px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 360px; justify-self: center; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .section { padding: 56px 0; }
  .hero h1 { font-size: 36px; }
  .hero .tagline { font-size: 12px; padding-left: 28px; }
  .hero .tagline::before { width: 18px; }
  .hero p.lede { font-size: 16px; }
  .hero-stats .stat .num { font-size: 24px; }
  .cat-title h3 { font-size: 22px; }
  .cat-title-icon { width: 44px; height: 44px; font-size: 18px; }
  .test-card { padding: 32px 22px; }
  .trust-grid { grid-template-columns: 1fr; }
  .cat-nav { display: none; }
  .view-all-menu { right: auto; left: 0; }
}

/* ---- Fixes on top of the original styles ----
   header-footer.css centres everything in .hero; the hero below is laid out left-aligned. */
.hero { text-align: left; display: block; min-height: 0; font-size: inherit; }
.hero > .wrap { width: 100%; }
/* The testimonial slider shows the quote bubble outside its box and hides the neighbouring
   slides with clip-path, which still widened the page; clip the section sideways instead. */
.testimonials { overflow-x: clip; }
/* On phones the "View all in ..." menu opens from the right edge so it stays on screen */
@media (max-width: 640px) { .view-all-menu { left: auto; right: 0; } }