/* ==========================================================================
   Coolpex Water Purifier Kuwait — Premium Water & Luxury Design System
   ========================================================================== */

:root {
  --ocean-950: #031e36;
  --ocean-900: #042a49;
  --ocean-800: #084c7f;
  --ocean-700: #0c6aa8;
  --aqua-500: #00b4d8;
  --aqua-400: #2dd4f7;
  --turquoise-500: #0fb9b1;
  --ice-50: #f4fafe;
  --ice-100: #e6f4fa;
  --ice-200: #cde9f6;
  --ink-900: #0c2238;
  --ink-700: #334e68;
  --ink-500: #5c768d;
  --white: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  --radius-sm: 0.65rem;
  --radius-md: 1.1rem;
  --radius-lg: 1.6rem;
  --radius-xl: 2.25rem;

  --shadow-soft: 0 12px 32px rgba(4, 42, 73, 0.08);
  --shadow-card: 0 18px 45px rgba(4, 42, 73, 0.11);
  --shadow-glow: 0 14px 34px rgba(0, 180, 216, 0.28);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-arabic: 'Cairo', 'Plus Jakarta Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background-color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
  font-family: var(--font-arabic);
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .font-display {
  font-family: var(--font-arabic);
  letter-spacing: 0;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--aqua-500), var(--turquoise-500), var(--ocean-700));
  z-index: 1080;
  transition: width 0.08s linear;
}

/* Honeypot anti-spam field */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Announcement bar */
.announcement-bar {
  background: linear-gradient(90deg, var(--ocean-950), var(--ocean-800), var(--ocean-950));
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.84rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-bar a {
  color: var(--aqua-400);
  text-decoration: none;
  font-weight: 600;
}

.announcement-bar a:hover {
  text-decoration: underline;
}

/* Sticky Glass Navbar */
.site-navbar {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(12, 106, 168, 0.08);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 0.7rem 0;
}

.site-navbar.navbar-over-hero {
  background: rgba(4, 42, 73, 0.45);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.site-navbar.navbar-over-hero .nav-link,
.site-navbar.navbar-over-hero .navbar-toggler {
  color: rgba(255, 255, 255, 0.92);
}

.site-navbar.navbar-over-hero .nav-link:hover,
.site-navbar.navbar-over-hero .nav-link.active {
  color: var(--aqua-400);
}

.site-navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(4, 42, 73, 0.09);
  padding: 0.5rem 0;
}

.site-navbar.is-scrolled .nav-link {
  color: var(--ink-900);
}

.site-navbar.is-scrolled .nav-link.active,
.site-navbar .nav-link.active {
  color: var(--ocean-700);
  font-weight: 700;
}

.brand-logo-wrap img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
}

.site-navbar.navbar-over-hero .brand-logo-wrap img {
  filter: brightness(0) invert(1);
}

.site-navbar.is-scrolled .brand-logo-wrap img {
  filter: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.78rem !important;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  background-color: rgba(0, 180, 216, 0.1);
}

/* Language switcher pill */
.lang-switch-btn {
  border: 1px solid rgba(0, 180, 216, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.site-navbar.navbar-over-hero .lang-switch-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.site-navbar.is-scrolled .lang-switch-btn,
.site-navbar:not(.navbar-over-hero) .lang-switch-btn {
  color: var(--ocean-800);
  background: var(--ice-50);
}

/* Buttons */
.btn-ocean {
  background: linear-gradient(135deg, var(--ocean-800), var(--ocean-700), var(--aqua-500));
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 0.78rem 1.65rem;
  font-weight: 600;
  box-shadow: var(--shadow-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-ocean:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 180, 216, 0.35);
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: var(--white);
  border: none;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-whatsapp:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.38);
}

.btn-ice-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 0.75rem 1.55rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-ice-outline:hover {
  background: var(--white);
  color: var(--ocean-900);
}

/* Hero Section */
.hero-ocean {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 6.5rem 0 5.5rem;
  background: radial-gradient(circle at 80% 20%, rgba(0, 210, 255, 0.24), transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(15, 185, 177, 0.22), transparent 42%),
              linear-gradient(140deg, var(--ocean-950) 0%, var(--ocean-900) 45%, var(--ocean-800) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(45, 212, 247, 0.35);
  color: var(--aqua-400);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2.2rem, 4.4vw, 3.85rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
}

.hero-title .text-aqua-gradient {
  background: linear-gradient(90deg, #7be8ff, #2dd4f7, #5efce8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: rgba(235, 247, 255, 0.88);
  max-width: 56ch;
}

.hero-visual-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 28px 65px rgba(2, 16, 30, 0.45);
}

.hero-visual-card img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  max-height: 430px;
}

.hero-floating-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ocean-900);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  box-shadow: 0 14px 30px rgba(3, 30, 54, 0.24);
  font-size: 0.84rem;
}

.hero-floating-pill.pill-top {
  top: 1.25rem;
  right: -0.75rem;
}

.hero-floating-pill.pill-bottom {
  bottom: 1.25rem;
  left: -0.75rem;
}

.hero-wave-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
}

/* Subpage Header */
.page-hero-compact {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at 85% 20%, rgba(0, 180, 216, 0.24), transparent 45%),
              linear-gradient(135deg, var(--ocean-950), var(--ocean-800));
  color: var(--white);
  overflow: hidden;
}

.breadcrumb-light .breadcrumb-item,
.breadcrumb-light .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.88rem;
}

.breadcrumb-light .breadcrumb-item.active {
  color: var(--aqua-400);
}

.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.45);
}

/* Sections */
.section-py {
  padding: 5rem 0;
}

.section-ice {
  background: linear-gradient(180deg, var(--ice-50) 0%, var(--white) 100%);
}

.section-ice-soft {
  background-color: var(--ice-50);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ocean-700);
  background: var(--ice-100);
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
}

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--ocean-900);
}

/* Glass / Premium Cards */
.water-card {
  background: var(--white);
  border: 1px solid rgba(12, 106, 168, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.water-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(0, 180, 216, 0.35);
}

.icon-orb {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--ice-100), #d5f3fb);
  color: var(--ocean-700);
}

/* Product Cards */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid rgba(8, 76, 127, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-card);
  border-color: var(--aqua-500);
}

.product-card-media {
  position: relative;
  background: radial-gradient(circle at center, #ffffff 10%, var(--ice-100) 100%);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.product-card-media img {
  height: 210px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(4, 42, 73, 0.88);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
}

.product-stage-pill {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 180, 216, 0.14);
  color: var(--ocean-800);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* Interactive Filtration Stage Explorer */
.stage-selector-btn {
  width: 100%;
  text-align: start;
  background: var(--white);
  border: 1px solid rgba(8, 76, 127, 0.12);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: all 0.25s ease;
  cursor: pointer;
}

.stage-selector-btn:hover {
  border-color: var(--aqua-500);
  background: var(--ice-50);
}

.stage-selector-btn.active {
  background: linear-gradient(135deg, var(--ocean-900), var(--ocean-800));
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-card);
}

.stage-num-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ice-100);
  color: var(--ocean-800);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stage-selector-btn.active .stage-num-badge {
  background: var(--aqua-500);
  color: var(--ocean-950);
}

.stage-detail-panel {
  background: linear-gradient(160deg, var(--ocean-950), var(--ocean-800));
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

/* Comparison cards */
.comparison-card-highlight {
  border: 2px solid var(--aqua-500);
  background: linear-gradient(180deg, #f3fbff 0%, #ffffff 100%);
  box-shadow: var(--shadow-card);
}

/* Product Detail Gallery */
.gallery-main-frame {
  background: radial-gradient(circle at center, #ffffff 20%, var(--ice-100) 100%);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid rgba(8, 76, 127, 0.1);
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-main-frame img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.gallery-main-frame:hover img {
  transform: scale(1.06);
}

.gallery-thumb-btn {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--ice-50);
  padding: 0.35rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.gallery-thumb-btn.active,
.gallery-thumb-btn:hover {
  border-color: var(--aqua-500);
  transform: translateY(-2px);
}

.gallery-thumb-btn img {
  height: 60px;
  width: 78px;
  object-fit: cover;
  border-radius: 0.4rem;
}

/* FAQ Accordion */
.faq-accordion .accordion-item {
  border: 1px solid rgba(8, 76, 127, 0.1);
  border-radius: var(--radius-md) !important;
  margin-bottom: 0.85rem;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(4, 42, 73, 0.04);
}

.faq-accordion .accordion-button {
  font-weight: 700;
  color: var(--ocean-900);
  background: var(--white);
  padding: 1.15rem 1.35rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--ice-50);
  color: var(--ocean-700);
  box-shadow: none;
}

/* Conversion CTA Banner */
.conversion-cta-box {
  background: radial-gradient(circle at 90% 15%, rgba(45, 212, 247, 0.25), transparent 40%),
              linear-gradient(135deg, var(--ocean-950), var(--ocean-800));
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

/* Footer */
.site-footer {
  background: var(--ocean-950);
  color: rgba(235, 247, 255, 0.82);
  padding: 4.5rem 0 2rem;
}

.site-footer a {
  color: rgba(235, 247, 255, 0.82);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--aqua-400);
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  font-size: 0.84rem;
}

/* Floating WhatsApp & Widget + Back to Top */
.floating-actions {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

html[dir="rtl"] .floating-actions {
  right: auto;
  left: 1.35rem;
  align-items: flex-start;
}

.whatsapp-fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  border: none;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.36);
  transition: transform 0.25s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.07);
  color: var(--white);
}

.back-to-top-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ocean-900);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.whatsapp-widget-panel {
  width: 310px;
  max-width: calc(100vw - 2.5rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 54px rgba(3, 30, 54, 0.24);
  border: 1px solid rgba(8, 76, 127, 0.12);
  overflow: hidden;
  display: none;
}

.whatsapp-widget-header {
  background: linear-gradient(135deg, var(--ocean-900), var(--ocean-700));
  color: var(--white);
  padding: 0.9rem 1.1rem;
}

/* Mobile sticky bottom bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1035;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(8, 76, 127, 0.12);
  padding: 0.5rem 0.75rem;
  box-shadow: 0 -8px 24px rgba(4, 42, 73, 0.1);
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: 66px;
  }
  .floating-actions {
    bottom: 4.85rem;
    right: 0.9rem;
  }
  .hero-ocean {
    min-height: auto;
    padding: 5.5rem 0 4.5rem;
  }
  .hero-floating-pill {
    position: static;
    margin-top: 0.75rem;
  }
}
