/* ========== Site header ========== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 2400;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cs-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: visible;
}

.app-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px max(16px, env(safe-area-inset-left, 0px)) 10px max(16px, env(safe-area-inset-right, 0px));
  min-height: var(--cs-header-height);
  overflow: visible;
}

.app-header__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius-sm);
  background: var(--cs-surface);
  color: var(--cs-ink);
  cursor: pointer;
  transition: background var(--cs-transition), border-color var(--cs-transition), box-shadow var(--cs-transition);
}

.app-header__menu-btn:hover {
  background: var(--cs-brand-light);
  border-color: var(--cs-brand-muted);
}

.app-header__menu-btn:focus-visible {
  outline: 2px solid var(--cs-brand);
  outline-offset: 2px;
}

.app-header__menu-btn .fa {
  font-size: 1.15rem;
}

.app-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--cs-font);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cs-ink);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.app-header__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cs-brand) 0%, #d4d000 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.app-header__brand:hover {
  color: var(--cs-brand-dark);
}

.app-header__search-slot {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.app-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  overflow: visible;
  position: relative;
}

.app-header__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 12px;
}

#ParentMemberIn {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  overflow: visible;
}

#ParentMemberIn #childMemberIn {
  display: none;
}

#Topdiv {
  padding: 0;
  background: var(--cs-surface);
  color: var(--cs-ink);
}

#mojoDIV {
  display: none;
}

#hrline {
  display: none;
}

#MemberAccess {
  background: transparent;
  margin: 0;
}

/* ========== Brand buttons ========== */
.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 20px;
  border-radius: var(--cs-radius-pill);
  border: 1px solid transparent;
  font-family: var(--cs-font);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform var(--cs-transition), box-shadow var(--cs-transition), background var(--cs-transition), border-color var(--cs-transition), color var(--cs-transition);
  text-decoration: none;
}

.btn-brand:hover {
  transform: translateY(-1px);
}

.btn-brand:active {
  transform: translateY(0);
}

.btn-brand--primary {
  background: linear-gradient(135deg, var(--cs-brand) 0%, #c4c200 100%);
  color: #1a1900;
  box-shadow: 0 8px 20px rgba(179, 176, 0, 0.28);
}

.btn-brand--primary:hover {
  box-shadow: 0 12px 28px rgba(179, 176, 0, 0.34);
}

.btn-brand--secondary {
  background: var(--cs-surface);
  color: var(--cs-ink);
  border-color: var(--cs-border-strong);
  box-shadow: var(--cs-shadow-sm);
}

.btn-brand--secondary:hover {
  background: var(--cs-surface-warm);
  border-color: var(--cs-brand-muted);
}

.btn-brand--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(6px);
}

.btn-brand--ghost:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.65);
}

#MemberAccess .button-6,
#MemberAccess .btn-brand {
  min-height: 38px;
  padding: 8px 18px;
  font-size: 0.88rem;
}

/* ========== Landing hero ========== */
.landing-hero {
  position: relative;
  min-height: min(72vh, 640px);
}

.landing-hero .image-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%;
}

.landing-hero .image-slide {
  height: min(72vh, 640px);
}

.landing-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 20, 34, 0.15) 0%, rgba(8, 20, 34, 0.55) 58%, rgba(8, 20, 34, 0.72) 100%),
    linear-gradient(90deg, rgba(8, 20, 34, 0.45) 0%, transparent 55%);
}

.landing-hero__content {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 max(24px, env(safe-area-inset-right, 0px)) 48px max(24px, env(safe-area-inset-left, 0px));
  max-width: 720px;
}

.landing-hero__eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: var(--cs-radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-hero__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  text-transform: none;
}

.landing-hero__sub {
  margin: 0 0 22px;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  line-height: 1.55;
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

#sliderEltsdiv .text-slider-wrapper {
  display: none !important;
}

/* Hide landing hero while nav drawer or sign-in panel is open */
body.nav-drawer-open #sliderEltsdiv,
body.auth-panel-open #sliderEltsdiv {
  visibility: hidden;
  pointer-events: none;
}

body.nav-drawer-open #sliderEltsdiv .landing-hero__content,
body.nav-drawer-open #sliderEltsdiv .landing-hero__shade,
body.nav-drawer-open #sliderEltsdiv .landing-hero__actions,
body.auth-panel-open #sliderEltsdiv .landing-hero__content,
body.auth-panel-open #sliderEltsdiv .landing-hero__shade,
body.auth-panel-open #sliderEltsdiv .landing-hero__actions,
body.nav-drawer-open .landing-hero .slick-dots,
body.auth-panel-open .landing-hero .slick-dots {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ========== Footer ========== */
.site-footer {
  margin-top: 48px;
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, var(--cs-surface-muted) 0%, #e9eef4 100%);
  border-top: 1px solid var(--cs-border);
}

.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}

.site-footer__brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cs-ink);
}

.site-footer__copy {
  margin: 0;
  color: var(--cs-ink-muted);
  font-size: 0.88rem;
}

.site-footer__tagline {
  margin: 0;
  color: var(--cs-ink-soft);
  font-size: 0.88rem;
}

#bottomdiv {
  position: static;
  top: auto;
  height: auto;
  padding: 0;
  background: transparent;
  color: inherit;
}

/* ========== Ingredient modal polish ========== */
#myModal.modal {
  z-index: 100010;
  padding-top: 72px;
  background: rgba(15, 34, 52, 0.45);
  backdrop-filter: blur(4px);
}

#myModal .Ingredmodal-content {
  max-width: 440px;
  width: calc(100% - 32px);
  margin: 0 auto;
  padding: 28px 24px 24px;
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius-lg);
  box-shadow: var(--cs-shadow-lg);
  background: var(--cs-surface);
  font-family: var(--cs-font);
  line-height: 1.5;
}

#myModal .Ingredmodal-content .close {
  float: none;
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cs-surface-muted);
  color: var(--cs-ink-soft);
  font-size: 1.4rem;
  line-height: 1;
}

#myModal .Ingredmodal-content .input-container {
  width: 100% !important;
}

#myModal #IngredDescriptionInput {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--cs-border-strong);
  border-radius: var(--cs-radius-sm);
  font-family: var(--cs-font);
  resize: vertical;
}

@media (max-width: 768px) {
  .app-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 8px 10px;
  }

  .app-header__brand-text {
    display: none;
  }

  .app-header__cta {
    padding-bottom: 10px;
  }

  .landing-hero__content {
    padding-bottom: 36px;
  }
}

@media (min-width: 900px) {
  .app-header__inner {
    grid-template-columns: auto auto 1fr auto;
  }

  .app-header__menu-btn {
    order: 0;
  }

  .app-header__brand {
    order: 1;
  }

  .app-header__search-slot {
    order: 2;
  }

  .app-header__actions {
    order: 3;
  }
}
