/* NatureTech — v2 site chrome (announce + header + nav + dropdowns + franchise + footer)
   Sprint 1, 2026-04-25. Source: design/v2/chrome/header-footer.html.
   Coexists with the older .nt-site-header / .nt-site-footer rules in main.css —
   v2 markup uses .header / .footer / .announce / .franchise classes, so the
   v1 rules become orphan dead code (cleaned up later). Some v1 utility classes
   (.nt-cart-count for cart fragments, .nt-menu-toggle for drawer JS) remain in
   the v2 markup as aliases so existing JS + WooCommerce hooks keep working. */

/* ── Announce bar ── */
.announce {
  background: var(--purple-deep);
  color: var(--cream);
  padding: 10px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Rotator viewport — when 2+ messages exist, .announce gains .announce--rotator
   and the JS rotates a single visible track at a time via crossfade. Single-
   message mode keeps the original flex layout. */
.announce__viewport {
  position: relative;
  height: 22px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.announce__track {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 400; letter-spacing: 0.01em;
}
.announce--rotator .announce__track {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}
.announce--rotator .announce__track.is-active {
  opacity: 1;
  visibility: visible;
}
.announce__eyebrow {
  font-size: 10px; font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-left: 14px;
  border-left: 1px solid rgba(230,177,73,0.3);
}
@media (max-width: 640px) {
  .announce { padding: 10px 16px; min-height: auto; }
  .announce__viewport { height: 36px; }
  .announce__track { flex-direction: column; gap: 4px; }
  .announce__eyebrow { padding-left: 0; border-left: none; border-bottom: 1px solid rgba(230,177,73,0.3); padding-bottom: 4px; }
}
.announce a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.announce a:hover { color: var(--gold); }

/* ── Header ── */
.header {
  background: #FFFFFF;
  border-bottom: 1px solid rgba(26,22,40,0.06);
  padding: 18px clamp(20px, 4vw, 64px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(26,22,40,0.06); }
.header__inner {
  max-width: 1920px; margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.header__logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.header__logo img { height: 40px; width: auto; display: block; }

/* Main nav */
.header__nav { display: flex; justify-content: center; gap: 4px; }
.nav-item { position: relative; }
.nav-item__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500;
  color: var(--ink);
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.nav-item__link:hover,
.nav-item:hover > .nav-item__link { background: var(--lavender); color: var(--purple); }
.nav-item__chevron { width: 10px; height: 10px; transition: transform 0.2s ease; }
.nav-item:hover .nav-item__chevron { transform: rotate(180deg); }

/* Dropdown (level 2) */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 280px;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(26,22,40,0.12);
  border: 1px solid rgba(26,22,40,0.06);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 50;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-dropdown__item {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.nav-dropdown__item:hover { background: var(--lavender); color: var(--purple); }
.nav-dropdown__item-chevron {
  width: 10px; height: 10px;
  transform: rotate(90deg);
  opacity: 0.4;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-dropdown__item:hover .nav-dropdown__item-chevron { opacity: 1; transform: rotate(90deg) translateX(-2px); }

/* Sub-dropdown (level 3) */
.nav-sub-dropdown {
  position: absolute;
  top: 0;
  right: calc(100% + 6px);
  min-width: 220px;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(26,22,40,0.12);
  border: 1px solid rgba(26,22,40,0.06);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-dropdown__item:hover .nav-sub-dropdown { opacity: 1; visibility: visible; transform: translateX(0); }
.nav-sub-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 400;
  color: rgba(26,22,40,0.78);
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.nav-sub-dropdown a:hover { background: var(--lavender); color: var(--purple); }

/* Header icons (left side in RTL) */
.header__icons { display: flex; gap: 4px; align-items: center; }
.header__icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.header__icon-btn:hover { background: var(--lavender); color: var(--purple); }
.header__icon-btn svg { width: 20px; height: 20px; }
.header__cart-badge {
  position: absolute;
  top: 4px; left: 4px;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

/* Mobile menu toggle */
.header__menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  align-items: center; justify-content: center;
  color: var(--ink);
  cursor: pointer;
}
.header__menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .header { padding: 14px 20px; }
  .header__inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  .header__nav { display: none; }
  .header__menu-toggle { display: flex; }
  .header__icons { gap: 0; }
  .header__icon-btn:not(.header__cart) { display: none; }
}

/* ── Franchise strip (sits above footer) ── */
.franchise {
  background:
    radial-gradient(ellipse at top left, rgba(230,177,73,0.18) 0%, transparent 55%),
    linear-gradient(135deg, var(--green) 0%, var(--green-deep) 55%, var(--purple) 100%);
  padding: 72px clamp(32px, 5vw, 96px);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.franchise__inner {
  max-width: 1920px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}
.franchise__content { max-width: 580px; }
.franchise__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px; font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.franchise__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600; line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 16px;
}
.franchise__title-accent { color: var(--gold); }
.franchise__lead {
  font-family: var(--font-body);
  font-size: 15px; font-weight: 400; line-height: 1.6;
  color: rgba(247,243,233,0.82);
}
.franchise__cta-wrap { display: flex; justify-content: flex-start; }
@media (min-width: 900px) {
  .franchise__cta-wrap { justify-content: flex-end; }
}
.franchise__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.franchise__cta:hover {
  background: #F5C662;
  transform: translateX(-2px);
  box-shadow: 0 10px 28px rgba(230,177,73,0.35);
}
.franchise__cta-arrow { width: 16px; height: 16px; transition: transform 0.2s ease; }
.franchise__cta:hover .franchise__cta-arrow { transform: translateX(-3px); }
@media (max-width: 900px) {
  .franchise { padding: 56px 24px; }
  .franchise__inner { grid-template-columns: 1fr; gap: 24px; text-align: right; }
}

/* ── Newsletter CTA (between main content and footer) ── */
.newsletter-cta {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 55%, var(--green-deep) 100%);
  color: #fff;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.newsletter-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(230,177,73,.18), transparent 55%);
  pointer-events: none;
}
.newsletter-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.newsletter-cta__eyebrow {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 500;
}
.newsletter-cta h2.newsletter-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.2;
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
}
.newsletter-cta__title-accent {
  color: #fff;
  display: inline;
}
.newsletter-cta__lead {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,.78);
  margin: 0;
  max-width: 56ch;
}
.newsletter-cta__form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.newsletter-cta__input {
  min-width: 240px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.newsletter-cta__input::placeholder { color: rgba(255,255,255,.55); }
.newsletter-cta__input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.14);
}
.newsletter-cta__submit {
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.newsletter-cta__submit:hover { background: var(--gold-deep, #C4922A); color: #fff; }

@media (max-width: 880px) {
  .newsletter-cta__inner { grid-template-columns: 1fr; gap: 28px; }
  .newsletter-cta__form { width: 100%; }
  .newsletter-cta__input { flex: 1 1 220px; }
}

/* ── Footer ── */
.footer {
  background: var(--purple-deep);
  color: rgba(247,243,233,0.7);
  padding: 88px clamp(32px, 5vw, 96px) 32px;
  position: relative;
}
.footer a { color: inherit; text-decoration: none; }
.footer__inner { max-width: 1920px; margin: 0 auto; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 56px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(247,243,233,0.1);
}

.footer__logo {
  display: inline-flex; align-items: center;
  font-family: var(--font-heading);
  font-size: 24px; font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.footer__logo img { height: 44px; width: auto; display: block; }
.footer__brand-tag {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 400; line-height: 1.6;
  color: rgba(247,243,233,0.6);
  margin-bottom: 24px;
  max-width: 320px;
}
.footer__contact {
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 28px;
}
.footer__contact-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.footer__contact a {
  color: var(--cream);
  border-bottom: 1px solid rgba(247,243,233,0.2);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer__contact a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.footer__socials { display: flex; gap: 12px; }
.footer__social {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(247,243,233,0.08);
  color: rgba(247,243,233,0.7);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer__social:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 12px; font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.footer__links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.footer__links a {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 400;
  color: rgba(247,243,233,0.7);
  transition: color 0.2s ease;
  display: inline-block;
}
.footer__links a:hover { color: var(--gold); }

/* Newsletter column */
.footer__newsletter-lead {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 400; line-height: 1.55;
  color: rgba(247,243,233,0.7);
  margin-bottom: 20px;
  max-width: 320px;
}
.footer__newsletter-form {
  display: flex; gap: 8px;
  max-width: 340px;
}
.footer__newsletter-input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(247,243,233,0.2);
  background: rgba(247,243,233,0.06);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  min-width: 0;
}
.footer__newsletter-input::placeholder { color: rgba(247,243,233,0.4); }
.footer__newsletter-input:focus { border-color: var(--gold); background: rgba(247,243,233,0.1); }
.footer__newsletter-submit {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.footer__newsletter-submit:hover { background: #F5C662; transform: translateX(-2px); }
.footer__newsletter-note {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 400;
  color: rgba(247,243,233,0.4);
  margin-top: 12px;
  line-height: 1.5;
}

/* Bottom bar */
.footer__bottom {
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__copyright {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 400;
  color: rgba(247,243,233,0.5);
}
.footer__legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__legal a {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 400;
  color: rgba(247,243,233,0.5);
  transition: color 0.2s ease;
}
.footer__legal a:hover { color: var(--gold); }

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
}
@media (max-width: 640px) {
  .footer { padding: 64px 24px 28px; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer__legal { gap: 16px; }
}

/* ── Drawer: restyle the existing .nt-drawer to v2 palette ── */
.nt-drawer-panel { background: var(--canvas); }
.nt-drawer-head {
  border-bottom: 1px solid var(--lavender);
  background: #FFFFFF;
}
.nt-drawer-head .nt-logo img { height: 36px; }
.nt-drawer-search { border-bottom: 1px solid var(--lavender); }
.nt-drawer-nav-list li,
.nt-drawer-nav .nt-nav-fallback li { border-bottom: 1px solid var(--lavender); }
.nt-drawer-nav-list li a,
.nt-drawer-nav .nt-nav-fallback li a {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
}
.nt-drawer-nav-list li a:hover,
.nt-drawer-nav .nt-nav-fallback li a:hover {
  background: var(--lavender);
  color: var(--purple);
}

/* ── Sticky dock (mobile bottom nav): repaint to v2 palette ── */
.nt-sticky-dock {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--lavender);
  backdrop-filter: blur(8px);
}
.nt-sticky-dock-link { color: var(--ink); }
.nt-sticky-dock-link:hover,
.nt-sticky-dock-link.is-active { color: var(--purple-bright); }
.nt-sticky-dock-link .nt-cart-count {
  background: var(--gold);
  color: var(--ink);
}

/* ── Scroll progress bar: switch to gold ── */
.nt-scroll-progress-bar { background: var(--gold); }
