/* SAJNAARA JEWELLERY: announcement bar, header, navigation and footer */

/* The mount points must not break the sticky header */
#site-header,
#site-footer { display: contents; }

/* ---------- Announcement bar ---------- */

.announce-bar {
  padding: 0.55rem var(--gutter);
  background: var(--ink-deep);
  color: var(--champagne);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-align: center;
}
.announce-bar a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: 0.9rem;
  transition: padding var(--t) var(--ease);
}
.site-header.is-scrolled .header-top { padding-block: 0.4rem; }

.header-left,
.header-right { display: flex; align-items: center; gap: 0.25rem; }
.header-right { justify-content: flex-end; }

.header-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.25rem;
  font-size: var(--fs-sm);
  color: var(--ink);
}
.header-wa svg { width: 20px; height: 20px; color: var(--whatsapp); }
.header-wa:hover { color: var(--gold-deep); }

.nav-toggle { display: none; }

/* Brand: logo slot + wordmark */

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-self: center;
}

.brand-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  overflow: hidden;
  border: 1px dashed var(--gold);
  border-radius: 50%;
  background: var(--ivory-deep);
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-style: italic;
  line-height: 1.05;
  text-align: center;
  transition: width var(--t) var(--ease), height var(--t) var(--ease);
}
.brand-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Added by JavaScript once your real logo file loads */
.brand-logo.has-logo {
  width: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
}
.brand-logo.has-logo img {
  position: static;
  width: auto;
  max-width: 150px;
  height: 100%;
}
.site-header.is-scrolled .brand-logo { width: 44px; height: 44px; }
.site-header.is-scrolled .brand-logo.has-logo { width: auto; }

.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--ink-deep);
}
.brand-name small {
  margin-top: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.52em;
  color: var(--gold-deep);
}

/* Cart badge */

.cart-count {
  position: absolute;
  top: 3px;
  right: 1px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--wine);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
}
.cart-count[data-count="0"] { display: none; }

/* Main navigation (desktop). The tablet and mobile version is in responsive.css */

.nav-tier { border-top: 1px solid var(--line); }

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem clamp(1.25rem, 2.6vw, 2.6rem);
}
.main-nav a {
  position: relative;
  display: block;
  padding: 0.85rem 0;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  color: var(--ink);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  height: 1px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transition: transform var(--t) var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-close,
.nav-overlay { display: none; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: auto;
  background: var(--ink-deep);
  color: rgba(239, 227, 200, 0.82);
  font-size: var(--fs-sm);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-block: 4.5rem 3rem;
}

.footer-brand .brand { justify-self: start; }
.footer-brand .brand-logo { border-color: var(--gold-soft); background: transparent; color: var(--gold-soft); }
.footer-brand .brand-name strong { color: var(--champagne); }
.footer-brand .brand-name small { color: var(--gold-soft); }
.footer-brand p { margin-top: 1.25rem; max-width: 36ch; }

.footer-col h3 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
  color: var(--gold-soft);
}
.footer-col li + li { margin-top: 0.6rem; }
.footer-col a { color: rgba(239, 227, 200, 0.82); }
.footer-col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-col address { font-style: normal; }
.footer-col address p + p { margin-top: 0.6rem; }

.social-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.25rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(220, 195, 147, 0.2);
  font-size: 0.875rem;
  color: rgba(239, 227, 200, 0.65);
}
