:root {
  --blue-deep: #154f9e;
  --blue-mid: #2268c4;
  --blue-soft: #3d86db;
  --white: #ffffff;
  --ink: #16324a;
  --ink-soft: #3d5f78;
  --font: "Tajawal", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

body.is-loading {
  overflow: hidden;
}

/* Page loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(61, 134, 219, 0.35), transparent 55%),
    linear-gradient(165deg, #eaf4fc 0%, #d6eaf8 45%, #b9d8f0 100%);
  transition:
    opacity 0.7s var(--ease),
    visibility 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  animation: loaderPulseIn 0.7s var(--ease) both;
}

.loader-logo {
  width: clamp(5.5rem, 18vw, 7.5rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1.15rem;
  box-shadow:
    0 16px 36px rgba(21, 79, 158, 0.28),
    0 0 0 4px rgba(255, 255, 255, 0.55);
  animation: loaderLogoFloat 2.2s ease-in-out infinite;
}

@keyframes loaderPulseIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes loaderLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.bg-wash {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(133, 203, 239, 0.45), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(96, 166, 218, 0.28), transparent 50%),
    linear-gradient(165deg, #ffffff 0%, #f3f9fd 45%, #e8f4fb 100%);
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  position: relative;
  z-index: 10;
  animation: fadeDown 0.8s var(--ease) both;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-deep);
}

.lang-switch {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(56, 134, 198, 0.35);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.lang-switch:hover {
  background: var(--blue-deep);
  color: var(--white);
  border-color: var(--blue-deep);
}

/* Hero */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: calc(100dvh - 7.5rem);
  position: relative;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 2rem;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.water-plane {
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(133, 203, 239, 0.35) 18%, rgba(96, 166, 218, 0.55) 55%, rgba(56, 134, 198, 0.75) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.2' d='M0,160L48,154.7C96,149,192,139,288,149.3C384,160,480,192,576,197.3C672,203,768,181,864,165.3C960,149,1056,139,1152,149.3C1248,160,1344,192,1392,208L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") bottom / 100% auto no-repeat;
  animation: tide 8s ease-in-out infinite alternate;
}

.ripple {
  position: absolute;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  left: 50%;
  bottom: 22%;
  translate: -50% 0;
  opacity: 0;
  animation: ripple 5.5s var(--ease) infinite;
}

.r1 { width: 8rem; height: 8rem; animation-delay: 0s; }
.r2 { width: 14rem; height: 14rem; animation-delay: 1.2s; }
.r3 { width: 22rem; height: 22rem; animation-delay: 2.4s; }

.product-slider {
  position: relative;
  z-index: 2;
  width: min(18.5rem, 84vw);
  margin: 0.75rem auto 1.25rem;
  order: -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.55rem 0.35rem;
  animation: bottleFloat 5.5s ease-in-out infinite;
}

.product-slider-stage {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: 100%;
  border-radius: 1.35rem;
  overflow: hidden;
  background: linear-gradient(160deg, #e8f3fb, #d5e8f7);
  box-shadow:
    0 18px 40px rgba(21, 79, 158, 0.22),
    0 0 0 3px rgba(255, 255, 255, 0.75);
}

.product-slider-track {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
}

.slider-nav {
  grid-row: 1;
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(21, 79, 158, 0.18);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.slider-nav:hover {
  transform: scale(1.06);
  background: var(--white);
}

.slider-prev { grid-column: 1; }
.slider-next { grid-column: 3; }

[dir="rtl"] .slider-nav svg {
  transform: scaleX(-1);
}

.product-slider-dots {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  left: auto;
  bottom: auto;
  translate: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  z-index: 3;
  padding-top: 0.15rem;
}

.product-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(18%) scale(0.97);
  transition:
    opacity 0.65s var(--ease),
    transform 0.65s var(--ease);
  pointer-events: none;
}

.product-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 1;
}

.product-slide.is-exit {
  opacity: 0;
  transform: translateX(-18%) scale(0.97);
}

.product-slide-media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.product-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem 0.9rem 0.85rem;
  text-align: center;
  color: var(--white);
  background: linear-gradient(180deg, transparent 0%, rgba(12, 40, 72, 0.55) 45%, rgba(12, 40, 72, 0.82) 100%);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.product-slide-title {
  font-family: var(--font);
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.2rem;
}

.product-slide-subtitle {
  font-family: var(--font);
  font-size: clamp(0.75rem, 1.8vw, 0.88rem);
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  opacity: 0.95;
}

.product-dot {
  width: 0.42rem;
  height: 0.42rem;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(34, 104, 196, 0.3);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), width 0.25s var(--ease);
}

.product-dot.is-active {
  width: 1.05rem;
  border-radius: 999px;
  background: var(--blue-deep);
  transform: none;
  box-shadow: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  padding-block: clamp(1.25rem, 4vh, 2.5rem) 0.5rem;
  animation: fadeUp 0.95s var(--ease) 0.12s both;
}

[dir="ltr"] .hero-copy {
  margin-inline-start: 0;
}

[dir="rtl"] .hero-copy {
  margin-inline-start: auto;
}

.title-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.title-logo {
  width: clamp(3.5rem, 12vw, 5.25rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.95rem;
  flex-shrink: 0;
  box-shadow:
    0 10px 24px rgba(21, 79, 158, 0.22),
    0 0 0 3px rgba(255, 255, 255, 0.7);
}

.brand-hero {
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--blue-deep);
  margin: 0;
  background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue-mid) 55%, var(--blue-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.brief {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.35rem;
  border-radius: 0.85rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  box-shadow: 0 10px 28px rgba(56, 134, 198, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(56, 134, 198, 0.45);
}

.btn-ghost {
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(56, 134, 198, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--white);
  border-color: var(--blue-mid);
}

.socials {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.social {
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(96, 166, 218, 0.4);
  border-radius: 50%;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.social:hover {
  background: var(--blue-deep);
  color: var(--white);
  transform: translateY(-2px);
}

.phone-line {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.phone-line a {
  font-weight: 700;
  color: var(--blue-deep);
  margin-inline-start: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.phone-line a:hover {
  border-bottom-color: var(--blue-mid);
}

.footer {
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 1.4rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s var(--ease) 0.35s both;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drip {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(3px) scale(1.05); }
}

@keyframes tide {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

@keyframes ripple {
  0% { opacity: 0.55; transform: scale(0.55); }
  70% { opacity: 0; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.2); }
}

@keyframes bottleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy {
    padding-block: clamp(2rem, 8vh, 5rem);
  }

  .hero-visual {
    position: absolute;
    inset: 0;
  }

  .water-plane {
    inset: 0 0 0 42%;
    height: auto;
    border-radius: 0;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  }

  [dir="ltr"] .water-plane {
    inset: 0 0 0 42%;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  }

  [dir="rtl"] .water-plane {
    inset: 0 42% 0 0;
    clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
  }

  .ripple {
    bottom: 40%;
  }

  [dir="ltr"] .ripple { left: 72%; }
  [dir="rtl"] .ripple { left: 28%; }

  .product-slider {
    position: absolute;
    left: 50%;
    bottom: auto;
    top: 50%;
    margin: 0;
    order: 0;
    width: clamp(16rem, 26vw, 21rem);
    translate: -50% -50%;
  }

  [dir="ltr"] .product-slider { left: 72%; }
  [dir="rtl"] .product-slider { left: 28%; }

  .product-slider-stage {
    box-shadow:
      0 22px 48px rgba(12, 40, 72, 0.28),
      0 0 0 3px rgba(255, 255, 255, 0.55);
  }

  .slider-nav {
    background: rgba(255, 255, 255, 0.92);
    color: var(--blue-deep);
  }

  .product-dot {
    background: rgba(255, 255, 255, 0.5);
  }

  .product-dot.is-active {
    background: var(--white);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
