/* ==========================================================================
   Bappa Murti — chrome
   Announcement, header, navigation, search, footer, floating WhatsApp
   ========================================================================== */

/* ---------------------------- announcement ------------------------------ */
.announcement {
  position: relative;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(212, 175, 55, 0.08), transparent 30%, transparent 70%, rgba(212, 175, 55, 0.08)),
    var(--maroon-ink);
  color: rgba(255, 248, 231, 0.78);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.announcement__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 38px;
  padding-block: 0.4rem;
  text-align: center;
}

.announcement__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.announcement__item svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
  flex: none;
}

.announcement__item--soft {
  color: rgba(255, 248, 231, 0.56);
}

.announcement__sep {
  width: 1px;
  height: 12px;
  background: rgba(212, 175, 55, 0.4);
  flex: none;
}

/* -------------------------------- header -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 248, 231, 0.9);
  border-bottom: 1px solid rgba(128, 0, 32, 0.1);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 248, 231, 0.97);
  border-bottom-color: rgba(212, 175, 55, 0.38);
  box-shadow: 0 14px 34px -26px rgba(74, 0, 18, 0.5);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 32px);
  min-height: var(--header-h);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--saffron), var(--gold-bright), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.1s linear;
  pointer-events: none;
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  flex: none;
  line-height: 1;
}

.brand__mark {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 6px 12px rgba(74, 0, 18, 0.22));
  transition: transform 0.4s var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(-4deg) scale(1.03);
}

.logo-mark {
  width: 46px;
  height: 46px;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 0.95;
  color: var(--maroon);
}

.brand__tag {
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.27em;
  text-transform: uppercase;
  color: var(--gold-ink);
  line-height: 1;
}

/* nav */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.7vw, 26px);
}

.nav a {
  position: relative;
  padding-block: 0.55rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover {
  color: var(--maroon);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav a.is-active {
  color: var(--maroon);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: none;
}

.header__search {
  width: 40px;
  height: 40px;
  background: transparent;
}

.header__wa {
  margin-left: 0.15rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--maroon);
  background: transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.menu-toggle:hover {
  background: var(--maroon);
  color: var(--cream);
}

/* ----------------------------- mobile menu ------------------------------ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 320;
  display: flex;
  flex-direction: column;
  width: min(410px, 92vw);
  height: 100dvh;
  padding: 1.4rem clamp(20px, 5vw, 34px) 1.8rem;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(212, 175, 55, 0.14), transparent 55%),
    var(--cream);
  border-left: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: -30px 0 70px -30px rgba(43, 27, 22, 0.55);
  transform: translateX(103%);
  transition: transform 0.45s var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.brand--mobile .brand__name {
  font-size: 1.35rem;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding-block: 1rem;
}

.mobile-nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid rgba(128, 0, 32, 0.08);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--maroon);
  transition: color 0.2s var(--ease), padding-left 0.25s var(--ease);
}

.mobile-nav a span {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold-ink);
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: var(--saffron-deep);
  padding-left: 6px;
}

.mobile-menu__cta {
  margin-top: 1.5rem;
}

.mobile-menu__note {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--ink-faint);
  text-align: center;
}

.mobile-menu__info {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1.8rem;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.mobile-menu__info a,
.mobile-menu__info span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mobile-menu__info svg {
  width: 16px;
  height: 16px;
  color: var(--gold-ink);
  flex: none;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 310;
  background: rgba(43, 27, 22, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.menu-overlay.is-open {
  opacity: 1;
}

/* ----------------------------- search overlay --------------------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}

.search-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 27, 22, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.search-overlay__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(212, 175, 55, 0.15), transparent 55%),
    var(--cream);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}

.search-overlay.is-open .search-overlay__panel {
  transform: none;
  opacity: 1;
}

.search-overlay__panel h2 {
  margin-block: 0.35rem 1.6rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.search-overlay__close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.search-form {
  display: flex;
  gap: 0.6rem;
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 0.95rem;
}

.search-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.16);
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.72rem;
  color: var(--ink-faint);
}

.search-suggestions > span {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-right: 0.2rem;
}

.search-suggestions a {
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-soft);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.search-suggestions a:hover {
  border-color: var(--gold);
  color: var(--maroon);
  background: var(--white);
}

/* -------------------------------- footer -------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(40px, 6vw, 80px);
  padding-top: clamp(44px, 6vw, 72px);
  background:
    radial-gradient(ellipse at 8% 0%, rgba(212, 175, 55, 0.16), transparent 46%),
    radial-gradient(ellipse at 92% 90%, rgba(255, 107, 0, 0.1), transparent 42%),
    linear-gradient(160deg, #3c000f 0%, #2c000b 55%, #240009 100%);
  color: rgba(255, 248, 231, 0.68);
  border-top: 1px solid rgba(212, 175, 55, 0.45);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/pattern-mandala.svg") center top / 260px;
  opacity: 0.05;
  pointer-events: none;
}

.footer__ornament {
  position: relative;
  margin-bottom: clamp(34px, 5vw, 52px);
  opacity: 0.9;
}

.footer__top {
  position: relative;
  display: grid;
  grid-template-columns: 1.65fr 0.9fr 1fr 1.25fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(36px, 5vw, 56px);
}

.brand--footer {
  margin-bottom: 1.15rem;
}

.brand--footer .brand__name {
  color: var(--cream);
}

.brand--footer .brand__tag {
  color: var(--gold-bright);
}

.footer__blurb {
  max-width: 36ch;
  margin-bottom: 1.5rem;
  font-size: 0.86rem;
  line-height: 1.8;
  color: rgba(255, 248, 231, 0.6);
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.footer__col h3 {
  margin-bottom: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.footer__col a,
.footer__col > span {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding-block: 0.26rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(255, 248, 231, 0.64);
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: var(--gold-bright);
}

.footer__col svg {
  width: 15px;
  height: 15px;
  margin-top: 0.18rem;
  flex: none;
  color: var(--gold);
}

.footer__contact a,
.footer__contact span {
  max-width: 32ch;
}

.footer__notes {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 44px);
  padding-block: clamp(22px, 3vw, 30px);
  border-top: 1px solid rgba(255, 248, 231, 0.1);
}

.footer__notes p {
  font-size: 0.72rem;
  line-height: 1.75;
  color: rgba(255, 248, 231, 0.48);
}

.footer__notes strong {
  color: rgba(255, 248, 231, 0.78);
  font-weight: 500;
}

.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-block: 1.15rem 1.6rem;
  border-top: 1px solid rgba(255, 248, 231, 0.1);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 248, 231, 0.42);
}

.footer__made {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 248, 231, 0.5);
}

.footer__made svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.footer__bottom a {
  color: rgba(255, 248, 231, 0.55);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.footer__bottom a:hover {
  color: var(--gold-bright);
}

/* --------------------------- floating WhatsApp -------------------------- */
.wa-float-wrap {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 180;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}

.wa-float {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 58px;
  width: 58px;
  padding: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(140deg, #2cc46a 0%, var(--wa) 48%, var(--wa-deep) 100%);
  color: #fff;
  box-shadow:
    0 16px 34px -12px rgba(13, 122, 65, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  overflow: hidden;
  transition: width 0.35s var(--ease-out), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.wa-float:hover {
  width: auto;
  padding-right: 1.2rem;
  transform: translateY(-2px);
  box-shadow:
    0 20px 42px -12px rgba(13, 122, 65, 0.72),
    0 0 0 5px rgba(31, 170, 89, 0.14);
}

.wa-float__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  margin-inline: 14px;
}

.wa-float__icon svg {
  width: 100%;
  height: 100%;
}

.wa-float__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transition: max-width 0.35s var(--ease-out), opacity 0.25s var(--ease);
}

.wa-float:hover .wa-float__label {
  max-width: 180px;
  opacity: 1;
}

.wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: wa-pulse 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 170, 89, 0.5);
  }
  60% {
    box-shadow: 0 0 0 16px rgba(31, 170, 89, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 170, 89, 0);
  }
}

.wa-tooltip {
  position: relative;
  width: min(264px, calc(100vw - 40px));
  padding: 1rem 2.2rem 1rem 1.1rem;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow-md);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.wa-tooltip.is-visible {
  opacity: 1;
  transform: none;
}

.wa-tooltip strong {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--maroon);
}

.wa-tooltip::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: var(--cream);
  border-right: 1px solid rgba(212, 175, 55, 0.5);
  border-bottom: 1px solid rgba(212, 175, 55, 0.5);
  transform: rotate(45deg);
}

.wa-tooltip__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--ink-faint);
}

.wa-tooltip__close svg {
  width: 14px;
  height: 14px;
}

.wa-tooltip__close:hover {
  background: rgba(128, 0, 32, 0.07);
  color: var(--maroon);
}

/* --------------------------- preview notice ----------------------------- */
#preview-notice {
  position: relative;
  z-index: 130;
}

.preview-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.55rem var(--gutter);
  background: #23150f;
  color: rgba(255, 248, 231, 0.78);
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: center;
}

.preview-notice strong {
  color: var(--gold-bright);
  font-weight: 500;
}

.preview-notice code {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-bright);
}

.preview-notice__close {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  color: rgba(255, 248, 231, 0.7);
}

.preview-notice__close svg {
  width: 14px;
  height: 14px;
}

.preview-notice__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
}

/* ------------------------------ responsive ------------------------------ */
@media (max-width: 1180px) {
  .nav {
    gap: 0.9rem;
  }

  .nav a {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .brand__name {
    font-size: 1.4rem;
  }

  .brand__tag {
    letter-spacing: 0.2em;
  }
}

@media (max-width: 1060px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .header__inner {
    min-height: 72px;
  }

  :root {
    --header-h: 72px;
  }
}

@media (max-width: 860px) {
  .header__wa {
    display: none;
  }

  .announcement__item--soft,
  .announcement__sep {
    display: none;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .announcement {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }

  .announcement__inner {
    min-height: 34px;
  }

  .brand {
    gap: 0.55rem;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
  }

  .brand__name {
    font-size: 1.3rem;
  }

  .brand__tag {
    font-size: 0.46rem;
    letter-spacing: 0.16em;
  }

  .header__search {
    display: none;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form .btn {
    width: 100%;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    justify-content: flex-start;
    gap: 0.5rem 1rem;
  }

  .wa-float {
    width: 56px;
    height: 56px;
  }

  .wa-float:hover {
    width: 56px;
    padding-right: 0;
  }

  .wa-float__label {
    display: none;
  }

  .wa-float__icon {
    margin-inline: 13px;
  }

  .preview-notice {
    font-size: 0.64rem;
    text-align: left;
    justify-content: flex-start;
  }
}

@media (max-width: 400px) {
  .brand__tag {
    display: none;
  }

  .header__inner {
    gap: 8px;
  }
}
