/*
 * Founarna - clean header, navigation, mobile menu and hero controls
 * Version: 20260714hs11
 *
 * This file intentionally contains appearance only. Geometry and fail-open
 * safeguards live in founarna-runtime-recovery.css, which must load last.
 */

:root {
  --fn-hs-ink: #101827;
  --fn-hs-muted: #59677d;
  --fn-hs-line: rgba(190, 205, 226, .7);
  --fn-hs-white: rgba(255, 255, 255, .97);
  --fn-hs-yellow: #ffc528;
  --fn-hs-pink: #ed63b4;
  --fn-hs-blue: #55b7e9;
  --fn-hs-violet: #8b75ec;
  --fn-hs-mint: #42b89e;
}

/* Store information bar ------------------------------------------------ */
html.fn-header-showcase .top-navigation-bar {
  min-height: 34px;
  border: 0;
  background: #111927;
  color: #fff;
}

html.fn-header-showcase .top-navigation-bar > .container {
  width: min(1760px, calc(100% - 32px));
  max-width: none;
  min-height: 34px;
  margin: 0 auto;
  padding: 0;
}

html.fn-header-showcase .fn-store-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 34px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
}

html.fn-header-showcase .fn-store-strip__left,
html.fn-header-showcase .fn-store-strip__right,
html.fn-header-showcase .fn-store-strip__item,
html.fn-header-showcase .fn-store-strip__hours,
html.fn-header-showcase .fn-store-strip__pickup,
html.fn-header-showcase .fn-store-strip__delivery {
  display: flex;
  align-items: center;
  min-width: 0;
}

html.fn-header-showcase .fn-store-strip__left {
  flex: 1 1 auto;
  justify-content: flex-start;
  gap: clamp(11px, 1.35vw, 24px);
}

html.fn-header-showcase .fn-store-strip__right {
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 18px;
  margin-left: auto;
}

html.fn-header-showcase .fn-store-strip__item,
html.fn-header-showcase .fn-store-strip__item:visited,
html.fn-header-showcase .fn-store-strip__hours,
html.fn-header-showcase .fn-store-strip__pickup,
html.fn-header-showcase .fn-store-strip__delivery {
  gap: 6px;
  color: rgba(255, 255, 255, .94);
  text-decoration: none;
  white-space: nowrap;
}

html.fn-header-showcase .fn-store-strip__item:hover {
  color: #ffe173;
}

html.fn-header-showcase .fn-store-strip svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

html.fn-header-showcase .fn-store-strip__label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 11px;
  border: 1px solid rgba(255, 205, 46, .42);
  border-radius: 999px;
  color: #ffe06e;
  white-space: nowrap;
}

/* Desktop navigation appearance -------------------------------------- */
@media (min-width: 992px) {
  html.fn-header-showcase #navigation {
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 1px 0 rgba(186, 200, 220, .55);
  }

  html.fn-header-showcase #navigation .menu-level-1 > li > a {
    letter-spacing: -.012em;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
  }

  html.fn-header-showcase #navigation .menu-level-1 > li > a::before,
  html.fn-header-showcase #navigation .menu-level-1 > li > a::after {
    display: none;
    content: none;
  }

  html.fn-header-showcase #navigation .menu-level-1 > li:hover > a,
  html.fn-header-showcase #navigation .menu-level-1 > li:focus-within > a,
  html.fn-header-showcase #navigation .menu-level-1 > li.active > a {
    color: #111827;
    text-decoration: none;
  }

  html.fn-header-showcase #navigation .menu-level-2 {
    border: 1px solid rgba(185, 201, 223, .72);
    border-radius: 0 0 24px 24px;
    background:
      radial-gradient(circle at 88% 16%, rgba(192, 232, 255, .42), transparent 28%),
      radial-gradient(circle at 9% 85%, rgba(255, 229, 178, .35), transparent 28%),
      rgba(255, 255, 255, .985);
    box-shadow: 0 24px 55px rgba(38, 51, 76, .18);
  }

  html.fn-header-showcase #navigation .menu-level-2 > li {
    border-radius: 18px;
    overflow: hidden;
  }

  html.fn-header-showcase #navigation .menu-level-2 > li:hover,
  html.fn-header-showcase #navigation .menu-level-2 > li:focus-within {
    box-shadow: 0 10px 24px rgba(43, 56, 82, .09);
  }
}

/* Hero scene transitions and controls -------------------------------- */
html.fn-header-showcase .fn-model-finder--slider .fn-hero-scene {
  visibility: hidden;
  opacity: 0;
  transition: opacity .55s ease, visibility 0s linear .55s;
}

html.fn-header-showcase .fn-model-finder--slider .fn-hero-scene.is-active {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

html.fn-header-showcase .fn-hero-controls {
  position: absolute;
  z-index: 12;
  right: 24px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 5px 8px;
  border: 1px solid rgba(190, 205, 226, .7);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 24px rgba(40, 52, 78, .12);
  backdrop-filter: blur(9px);
}

html.fn-header-showcase .fn-hero-control,
html.fn-header-showcase .fn-hero-control-list button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  background: transparent;
  color: #405069;
  cursor: pointer;
}

html.fn-header-showcase .fn-hero-control {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  font-size: 15px;
}

html.fn-header-showcase .fn-hero-control:hover,
html.fn-header-showcase .fn-hero-control:focus-visible {
  background: rgba(229, 237, 251, .9);
}

html.fn-header-showcase .fn-hero-control-list {
  display: flex;
  align-items: center;
  gap: 5px;
}

html.fn-header-showcase .fn-hero-control-list button {
  width: 18px;
  height: 28px;
  padding: 0;
}

html.fn-header-showcase .fn-hero-control-list button i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a9b5c8;
  transition: width .18s ease, background-color .18s ease;
}

html.fn-header-showcase .fn-hero-control-list button[aria-current="true"] i {
  width: 18px;
  border-radius: 999px;
  background: #7156dc;
}

/* Mobile menu --------------------------------------------------------- */
@media (max-width: 991px) {
  html.fn-header-showcase .fn-store-strip__label,
  html.fn-header-showcase .fn-store-strip__hours,
  html.fn-header-showcase .fn-store-strip__pickup,
  html.fn-header-showcase .fn-store-strip__delivery,
  html.fn-header-showcase .fn-store-strip__mail {
    display: none;
  }

  html.fn-header-showcase .top-navigation-bar > .container {
    width: calc(100% - 20px);
  }

  html.fn-header-showcase .fn-store-strip {
    min-height: 31px;
    gap: 8px;
    font-size: 11px;
  }

  html.fn-header-showcase .fn-store-strip__left,
  html.fn-header-showcase .fn-store-strip__right {
    flex: 0 1 auto;
    gap: 8px;
  }

  html.fn-header-showcase .fn-store-strip__address span,
  html.fn-header-showcase .fn-store-strip__phone span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.fn-header-showcase .fn-store-strip__address span {
    max-width: 176px;
  }

  html.fn-header-showcase .fn-mobile-menu.fn-mobile-menu-v2 {
    width: 100%;
    padding: 14px 14px 22px;
    overflow-x: hidden;
    background:
      radial-gradient(circle at 0 0, rgba(255, 226, 164, .2), transparent 28%),
      radial-gradient(circle at 100% 8%, rgba(196, 229, 255, .24), transparent 34%),
      #fff;
    color: var(--fn-hs-ink);
  }

  html.fn-header-showcase .fn-mobile-menu-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px;
    padding: 13px 14px;
    border: 1px solid var(--fn-hs-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 9px 24px rgba(37, 51, 76, .08);
  }

  html.fn-header-showcase .fn-mobile-menu-kicker {
    display: block;
    margin-bottom: 2px;
    color: #8c6c12;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.1;
    text-transform: uppercase;
  }

  html.fn-header-showcase .fn-mobile-menu-head strong {
    display: block;
    color: var(--fn-hs-ink);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
  }

  html.fn-header-showcase .fn-mobile-menu-head > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid rgba(238, 185, 22, .55);
    border-radius: 999px;
    background: #fff9df;
    color: #5d4910;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
  }

  html.fn-header-showcase .fn-mobile-menu-section-v2 {
    display: block;
    margin: 0;
    padding: 12px 0 14px;
    border: 0;
    border-top: 1px solid rgba(193, 207, 226, .66);
    background: transparent;
  }

  html.fn-header-showcase .fn-mobile-menu-section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 1px 9px;
  }

  html.fn-header-showcase .fn-mobile-menu-section-toggle {
    min-width: 0;
    color: #536177;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
  }

  html.fn-header-showcase .fn-mobile-menu-section-all {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f2f6fc;
    color: #526176;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
  }

  html.fn-header-showcase .fn-mobile-menu-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  html.fn-header-showcase .fn-mobile-menu-items[hidden] {
    display: grid !important;
  }

  html.fn-header-showcase .fn-mobile-menu-v2 .fn-mobile-menu-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-width: 0;
    min-height: 68px;
    height: 68px;
    margin: 0;
    padding: 7px;
    border: 1px solid rgba(190, 205, 226, .72);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 7px 18px rgba(43, 58, 83, .06);
    color: var(--fn-hs-ink);
    text-decoration: none;
    overflow: hidden;
  }

  html.fn-header-showcase .fn-mobile-menu-v2 .fn-mobile-menu-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 52px;
    margin: 0;
    padding: 3px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(145deg, #fff8fb, #eef8ff);
    overflow: hidden;
  }

  html.fn-header-showcase .fn-mobile-menu-v2 .fn-mobile-menu-img img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
  }

  html.fn-header-showcase .fn-mobile-menu-v2 .fn-mobile-menu-title {
    display: block;
    min-width: 0;
    color: var(--fn-hs-ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.22;
    overflow-wrap: anywhere;
  }

  html.fn-header-showcase .fn-mobile-menu-v2 .fn-mobile-menu-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0;
    color: #6b7890;
  }

  html.fn-header-showcase .fn-mobile-menu-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    width: 100%;
    margin-top: 14px;
    padding: 15px;
    border: 1px solid rgba(190, 205, 226, .72);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff8e7, #eef8ff 60%, #f6f0ff);
    overflow: hidden;
  }

  html.fn-header-showcase .fn-mobile-menu-footer strong {
    margin-bottom: 3px;
    color: var(--fn-hs-ink);
    font-size: 16px;
  }

  html.fn-header-showcase .fn-mobile-menu-footer a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #3d4c63;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    overflow-wrap: anywhere;
  }

  html.fn-header-showcase .fn-mobile-menu-footer svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
  }

  html.fn-header-showcase .fn-hero-controls {
    right: 12px;
    bottom: 12px;
    min-height: 34px;
    padding: 3px 6px;
  }
}

@media (min-width: 992px) and (max-width: 1420px) {
  html.fn-header-showcase .fn-store-strip__delivery {
    display: none;
  }
}

@media (min-width: 992px) and (max-width: 1190px) {
  html.fn-header-showcase .fn-store-strip__pickup {
    display: none;
  }
}

@media (prefers-color-scheme: dark) and (max-width: 991px) {
  html.fn-header-showcase .fn-mobile-menu.fn-mobile-menu-v2 {
    background: #151b24;
    color: #f4f7fb;
  }

  html.fn-header-showcase .fn-mobile-menu-head,
  html.fn-header-showcase .fn-mobile-menu-v2 .fn-mobile-menu-item {
    border-color: rgba(119, 139, 168, .5);
    background: #202833;
  }

  html.fn-header-showcase .fn-mobile-menu-head strong,
  html.fn-header-showcase .fn-mobile-menu-v2 .fn-mobile-menu-title,
  html.fn-header-showcase .fn-mobile-menu-footer strong {
    color: #f7f9fc;
  }

  html.fn-header-showcase .fn-mobile-menu-section-toggle,
  html.fn-header-showcase .fn-mobile-menu-footer a {
    color: #d5deec;
  }

  html.fn-header-showcase .fn-mobile-menu-footer {
    border-color: rgba(119, 139, 168, .5);
    background: linear-gradient(135deg, #242a35, #1b2732 62%, #252235);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.fn-header-showcase .fn-model-finder--slider .fn-hero-scene {
    transition: none;
  }
}
