/* Eslem blue hero. Entrance: copy → previews → panel → floating bottle. */
.hero-blue {
  --hero-cyan: var(--brand-cyan);
  --hero-gutter: 6%;
  height: clamp(650px, 50vw, 1000px);
  min-height: 0;
  color: #fff;
  background:
    radial-gradient(ellipse at 69% 97%, #0076bc 0%, transparent 46%),
    radial-gradient(ellipse at 77% 0%, #076bb2 0%, transparent 42%),
    radial-gradient(ellipse at 0% 2%, #054770 0%, transparent 47%),
    linear-gradient(120deg, #02334e 4%, #034875 68%, #005c9d);
}
.hero-asset-defs { position: absolute; pointer-events: none; }
.hero-blue img[src$="hero-bottle-cutout.png"] { clip-path: url(#hero-bottle-silhouette); }

.hero-blue .site-header {
  position: absolute;
  inset: 0 auto auto 0;
  width: 64%;
  max-width: none;
  height: 18%;
  padding: 0 0 0 var(--hero-gutter);
  grid-template-columns: minmax(150px, 1fr) auto auto;
  gap: clamp(22px, 4.3vw, 76px);
  overflow: visible;
  z-index: 40;
}

.hero-blue .logo img { width: clamp(170px, 8vw, 250px); height: auto; filter: brightness(0) invert(1); }
.hero-blue .nav ul { gap: clamp(16px, 2.6vw, 44px); }
.hero-blue .nav a { position: relative; font-size: clamp(12px, .9vw, 17px); white-space: nowrap; }
.hero-blue .nav a::after {
  content: "";
  position: absolute;
  left: 5%; right: 5%; bottom: -13px;
  height: 5px;
  border-radius: 8px;
  background: var(--hero-cyan);
  transform: scaleX(0);
  transition: transform 180ms ease;
}
.hero-blue .nav a[aria-current]::after,
.hero-blue .nav a:hover::after { transform: scaleX(1); }
.hero-blue .icon-btn svg { width: 22px; height: 22px; }
.hero-blue a:focus-visible,
.hero-blue button:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.hero-search { position: absolute; top: 85%; right: 0; width: min(370px, 90vw); padding: 20px; border-radius: 14px; background: #034268; box-shadow: 0 16px 40px #001b3d55; font-size: 14px; }
.hero-search label { display: block; margin-bottom: 10px; }
.hero-search > div { display: flex; gap: 8px; }
.hero-search input { width: 100%; min-width: 0; padding: 12px; border: 0; border-radius: 6px; font: inherit; }
.hero-search button { border: 0; border-radius: 6px; padding: 0 14px; color: #fff; background: #008eda; white-space: nowrap; cursor: pointer; }
.hero-search p { margin: 10px 0 0; }

.brand-hero { position: absolute; inset: 23% 0 auto; z-index: 3; }
.brand-hero__copy { width: 40%; margin-left: var(--hero-gutter); }
.brand-hero__eyebrow {
  margin: 0 0 16px;
  font-size: clamp(15px, 1.25vw, 23px);
  font-weight: 600;
  letter-spacing: .27em;
}
.brand-hero__title {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: clamp(46px, 5vw, 96px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.035em;
  color: #fff;
}
.brand-hero__title > span { display: block; white-space: nowrap; }
.brand-hero__light { font-weight: 300; }
.brand-hero__title em { color: var(--hero-cyan); font-style: normal; }
.brand-hero__dot { color: var(--hero-cyan); }
.brand-hero__lead {
  margin: 0 0 22px;
  color: #eef5fb;
  font-size: clamp(15px, 1.17vw, 22px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -.015em;
}
.brand-hero__actions { display: flex; gap: 16px; }
.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.5vw, 26px);
  padding: 0 clamp(18px, 1.9vw, 34px);
  height: clamp(50px, 3.35vw, 64px);
  border-radius: 99px;
  font-size: clamp(13px, .98vw, 18px);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 180ms ease, translate 180ms ease;
}
.hero-button:hover { translate: 0 -3px; box-shadow: 0 10px 30px #00294150; }
.hero-button--blue { background: linear-gradient(110deg, #0094dd, #009ef3); color: #fff; }
.hero-button--white { background: #fbfdff; color: #07558a; }
.hero-button svg { flex-shrink: 0; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-button .hero-button__arrow { width: 19px; height: 19px; }
.hero-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; width: 94%; margin-top: 28px; }
.hero-products__item {
  display: flex; align-items: center; justify-content: center;
  height: clamp(104px, 8.3vw, 162px);
  padding: 10px;
  border: 0;
  border-radius: 25px;
  background: linear-gradient(135deg, #207db34d, #0e6b9e8c);
  color: inherit;
  cursor: pointer;
}
.hero-products__item[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--hero-cyan); }
.hero-products__item img { width: auto; height: 100%; object-fit: contain; filter: drop-shadow(5px 5px 5px #001d3750); transition: transform 180ms var(--ease); }
.hero-products__item:hover img,
.hero-products__item:focus-visible img { transform: scale(1.12); }
.brand-hero__motto {
  margin: 10px 0 0;
  max-width: 100%;
  font-size: clamp(10px, .91vw, 17px);
  font-weight: 600;
  line-height: 1.55;
  color: #9fff79;
  text-shadow: 0 0 16px color-mix(in srgb, #9fff79 28%, transparent);
  position: relative;
}
.brand-hero__motto-sizer {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}
.brand-hero__motto-live {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  max-width: 100%;
}
.brand-hero__motto-caret {
  display: inline-block;
  width: 1px;
  height: .92em;
  margin-left: 1px;
  background: currentColor;
  vertical-align: -.12em;
  letter-spacing: 0;
  pointer-events: none;
  opacity: 0;
}
.brand-hero__motto.is-typing .brand-hero__motto-caret {
  animation: motto-caret 600ms ease-in-out infinite;
}
@keyframes motto-caret {
  0%, 45% { opacity: 1; }
  55%, 100% { opacity: 0; }
}

/* Desktop: wrapper is transparent so panel/scene stay absolute to .hero-blue */
.hero-showcase { display: contents; }

.hero-panel {
  position: absolute; z-index: 1;
  inset: 0 0 0 auto; width: 20%;
  border-radius: clamp(44px, 4.5vw, 90px) 0 0 clamp(44px, 4.5vw, 90px);
  background: linear-gradient(120deg, #0084cf 0%, #0367a8 58%, #007bbe 100%);
  box-shadow: -15px 8px 40px #002b4a35;
}
.hero-panel__intro { position: absolute; top: 7%; left: 36%; margin: 0; padding-left: 18px; border-left: 2px solid #fff; font-size: clamp(11px, .98vw, 19px); font-weight: 700; line-height: 1.42; letter-spacing: .25em; }
.hero-panel__category {
  position: absolute;
  top: 49%; left: 60%;
  transform: translate(-50%, -50%) rotate(-90deg);
  display: flex; flex-direction: column;
  align-items: flex-start;
  font-size: clamp(72px, 8.4vw, 160px);
  line-height: .86;
  letter-spacing: -.04em;
  white-space: nowrap;
  max-width: none;
}
.hero-panel__category strong { font-weight: 900; }
.hero-panel__category span { font-size: .76em; font-weight: 700; color: transparent; -webkit-text-stroke: 1px #fff; }
.hero-panel__category.is-long {
  left: 52%;
  font-size: clamp(58px, 6.4vw, 128px);
}
.hero-panel__values { position: absolute; bottom: 10%; left: 37%; padding: 10px 0 10px 16px; margin: 0; border-left: 2px solid #fff; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.hero-panel__values li { display: flex; align-items: center; gap: 10px; font-size: clamp(9px, .8vw, 15px); white-space: nowrap; }
.hero-panel__values svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.hero-product-scene { position: absolute; z-index: 2; left: 53%; top: 17%; width: 31%; height: 65%; pointer-events: none; }
.hero-bottle-enter { position: absolute; inset: 0; }
.hero-bottle-float { position: relative; height: 100%; }
.hero-bottle { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: contain; transform: rotate(var(--hero-product-rotate, 15deg)) scale(var(--hero-product-scale, 1)); opacity: 1; }
.hero-bottle--outgoing { z-index: 1; pointer-events: none; }
.hero-bottle:not(.hero-bottle--outgoing) { z-index: 2; }
.hero-bottle-float { filter: drop-shadow(14px 24px 18px #00253b60); }
.hero-leaf { position: absolute; width: 54%; height: auto; filter: drop-shadow(6px 14px 10px #002f4360); }
.hero-leaf--left { left: 0; top: 49%; transform: rotate(-88deg); }
.hero-leaf--right { right: -1%; top: 17%; transform: rotate(-7deg); }
.hero-blue + .category-showcase { padding-top: 70px; }

/* JS only enables the entrance once the critical assets are decoded. */
.hero-blue.is-preparing .hero-enter,
.hero-blue.is-preparing .site-header > *,
.hero-blue.is-preparing .nav li,
.hero-blue.is-preparing .hero-panel,
.hero-blue.is-preparing .hero-bottle-enter,
.hero-blue.is-preparing .hero-leaf { opacity: 0; }
.hero-blue.is-ready .hero-enter { animation: hero-reveal 420ms var(--ease) var(--enter-delay, 0ms) both; }
.hero-blue.is-ready .logo { animation: hero-reveal 400ms var(--ease) both; }
.hero-blue.is-ready .nav li { animation: hero-reveal 350ms var(--ease) both; }
.hero-blue.is-ready .nav li:nth-child(2) { animation-delay: 50ms; }
.hero-blue.is-ready .nav li:nth-child(3) { animation-delay: 100ms; }
.hero-blue.is-ready .nav li:nth-child(4) { animation-delay: 150ms; }
.hero-blue.is-ready .header-actions { animation: hero-reveal 350ms var(--ease) 200ms both; }
.hero-blue.is-ready .hero-panel { animation: hero-panel-in 480ms var(--ease) 870ms both; }
.hero-blue.is-ready .hero-leaf { animation: hero-leaf-in 450ms var(--ease) 1030ms both; }
.hero-blue.is-ready .hero-bottle-enter { animation: hero-product-in 520ms var(--ease) 1120ms both; }
.hero-blue.is-ready .hero-bottle-float { animation: hero-float 4.2s ease-in-out 1640ms infinite; }
.hero-blue.is-offscreen .hero-bottle-float { animation-play-state: paused; }
@keyframes hero-reveal { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-panel-in { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes hero-leaf-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-product-in { from { opacity: 0; transform: translate(35px, 20px) scale(.95); } to { opacity: 1; transform: translate(0, 0) scale(1); } }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-17px); } }

@media (max-width: 1100px) and (min-width: 901px) {
  .hero-blue .site-header { width: 75%; gap: 28px; }
  .hero-blue .nav ul { gap: 24px; }
  .brand-hero__copy { width: 45%; }
  .hero-button { padding: 0 16px; gap: 10px; }
  .hero-panel__values { left: 23%; padding-left: 10px; }
  .hero-panel__values li { gap: 6px; }
}
@media (max-width: 900px) {
  .hero-blue {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    --hero-gutter: 6%;
    padding-bottom: 28px;
  }
  .hero-blue .site-header {
    position: relative;
    inset: auto;
    order: 0;
    width: 100%;
    height: 94px;
    padding: 0 6%;
    display: flex;
    justify-content: space-between;
    flex-shrink: 0;
  }
  .hero-blue .logo img { width: 190px; }
  .hero-blue .nav { top: 94px; padding: 24px 6%; background: #03466a; border-radius: 0 0 20px 20px; }
  .hero-blue .nav ul { gap: 26px; }
  .hero-blue .nav a { font-size: 16px; }
  .hero-blue .header-actions { gap: 20px; }
  .hero-blue .menu-toggle { display: block; }

  /* Flatten copy so products/motto can sit after the visual showcase */
  .brand-hero,
  .brand-hero__copy { display: contents; }

  .brand-hero__eyebrow,
  .brand-hero__title,
  .brand-hero__lead,
  .brand-hero__actions {
    order: 1;
    width: 88%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .brand-hero__eyebrow { margin-top: 28px; font-size: 17px; }
  .brand-hero__title { font-size: clamp(43px, 8.6vw, 72px); }
  .brand-hero__title > span { white-space: normal; }
  .brand-hero__lead { font-size: 18px; }
  .brand-hero__lead br { display: none; }
  .brand-hero__actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero-showcase {
    display: block;
    position: relative;
    order: 2;
    width: 100%;
    height: 400px;
    margin-top: 28px;
    flex-shrink: 0;
  }
  .hero-product-scene {
    position: absolute;
    top: auto;
    bottom: 10px;
    left: 10%;
    width: 58%;
    height: 350px;
  }
  .hero-panel {
    position: absolute;
    inset: 0 0 0 auto;
    height: 100%;
    width: 36%;
  }
  .hero-panel__intro { left: 36%; top: 7%; font-size: 10px; padding-left: 10px; }
  .hero-panel__category { font-size: 67px; top: 51%; left: 64%; }
  .hero-panel__category.is-long { left: 56%; font-size: 52px; }
  .hero-panel__values { bottom: 5%; left: 28%; padding: 4px 0 4px 8px; gap: 6px; }
  .hero-panel__values li { font-size: 8px; gap: 5px; }
  .hero-panel__values svg { width: 18px; height: 18px; }

  .hero-products {
    order: 3;
    width: min(500px, 88%);
    margin: 22px auto 0;
    gap: 14px;
  }
  .hero-products__item { height: 112px; }
  .brand-hero__motto {
    order: 4;
    width: min(500px, 88%);
    margin: 10px auto 0;
    font-size: 11px;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .brand-hero__eyebrow { font-size: 13px; margin-top: 20px; margin-bottom: 13px; }
  .brand-hero__title { font-size: 9.6vw; }
  .brand-hero__lead { font-size: 14px; margin-bottom: 20px; }
  .hero-button { height: 47px; gap: 8px; padding: 0 14px; font-size: 12px; }
  .hero-button svg { width: 21px; height: 21px; }
  .hero-button .hero-button__arrow { width: 17px; height: 17px; }
  .brand-hero__actions { gap: 10px; }
  .hero-showcase { height: 380px; margin-top: 22px; }
  .hero-products { gap: 10px; margin-top: 18px; }
  .hero-products__item { height: 96px; padding: 9px; }
  .brand-hero__motto { font-size: 8px; }
  .hero-product-scene { bottom: 8px; height: 330px; left: 6%; width: 62%; }
  .hero-panel { width: 38%; }
  .hero-panel__intro { left: 27%; }
  .hero-panel__category { left: 58%; font-size: 59px; }
  .hero-panel__category.is-long { left: 52%; font-size: 44px; }
  .hero-panel__values { left: 12%; }
  .hero-panel__values li { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-blue *, .hero-blue *::before, .hero-blue *::after { animation: none !important; transition: none !important; }
  .hero-blue.is-preparing .hero-enter, .hero-blue.is-preparing .site-header > *, .hero-blue.is-preparing .nav li,
  .hero-blue.is-preparing .hero-panel, .hero-blue.is-preparing .hero-bottle-enter, .hero-blue.is-preparing .hero-leaf { opacity: 1; }
  .brand-hero__motto-caret { display: none; }
}

.hero-blue .nav-drop__menu {
  background: #fff;
}
.hero-blue .nav .nav-drop__menu a {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #022b43;
}
.hero-blue .nav .nav-drop__menu a:hover,
.hero-blue .nav .nav-drop__menu a[aria-current] {
  background: transparent;
  color: #022b43;
  transform: translateY(-3px);
}
.hero-blue .nav .nav-drop__trigger::after,
.hero-blue .nav .nav-drop__menu a::after {
  content: none !important;
  display: none !important;
}
.hero-blue.is-ready .nav li:nth-child(5) { animation-delay: 200ms; }
.hero-blue.is-ready .nav-drop,
.hero-blue.is-ready .nav-mega {
  animation: none;
  opacity: 1;
  transform: none;
}
@media (max-width: 900px) {
  .hero-blue .nav-drop {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .hero-blue .nav-drop__menu {
    position: static;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 0;
    min-width: 0;
    width: 100%;
  }
  .hero-blue .nav .nav-drop__menu a,
  .hero-blue .nav .nav-drop__menu a:hover,
  .hero-blue .nav .nav-drop__menu a[aria-current] {
    width: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
  }
}
