/* ============================================================
   PIXENTRA — Header Stylesheet
   Font   : Inter (loaded globally)
   Icons  : Boxicons (loaded globally)
   ============================================================ */

/* ── Scoped box-sizing reset ────────────────────────────── */
.header-wrap *,
.header-wrap *::before,
.header-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Safety: prevent horizontal overflow ───────────────── */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ── Global font + browser default reset ───────────────── */
body {
  font-family: var(--font-base);
  margin: 0;
}

/* ════════════════════════════════════════════════════════════
   HEADER SHELL
   ════════════════════════════════════════════════════════════ */
.header-wrap {
  width: 100%;
  background: var(--color-white);
  border-radius: 0 0 1rem 1rem;
  border-bottom: 1px solid var(--clr-border-light);
  box-shadow: var(--shadow-header);
  position: relative;
  z-index: 100;
  overflow: visible;
}

/* ── Shared vertical divider ────────────────────────────── */
.vdivider {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: var(--clr-border-default);
  flex-shrink: 0;
}

.vdivider.tall {
  height: 36px;
}

/* ════════════════════════════════════════════════════════════
   ROW 1 — TOP BAR
   ════════════════════════════════════════════════════════════ */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 40px;
  border-bottom: 2px solid var(--clr-border-strong);
}

/* Tagline */
.top-tagline-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-tagline-dot {
  position: relative;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-tagline-dot::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-green-parrot);
  opacity: 0.4;
  animation: blip-pulse 2s ease-out infinite;
}

.top-tagline-dot::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green-forest);
}

@keyframes blip-pulse {
  0%   { transform: scale(1);  opacity: 0.5; }
  70%  { transform: scale(2);  opacity: 0;   }
  100% { transform: scale(2);  opacity: 0;   }
}

.top-tagline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-text-secondary);
  white-space: nowrap;
}

/* Right cluster */
.top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-links a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--clr-text-secondary);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  transition: color 0.18s;
}

.top-links a:hover { color: var(--color-green-primary); }

.top-socials {
  display: flex;
  align-items: center;
  gap: 2px;
}

.top-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--clr-text-secondary);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  transition: color 0.18s;
}

.top-socials a:hover { color: var(--color-green-primary); }

/* ════════════════════════════════════════════════════════════
   ROW 2 — MAIN NAVBAR
   ════════════════════════════════════════════════════════════ */
.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 40px;
  border-bottom: 1px solid var(--clr-border-light);
}

/* Branding */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-symbol {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-vdivider {
  width: 1px;
  height: 28px;
  background: var(--clr-border-default);
  flex-shrink: 0;
}

.brand-wordmark {
  height: 20px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: invert(1);
}

/* Center nav links (absolutely centered) */
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.nav-item {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-grey-dark);
  text-decoration: none;
  padding: 8px 14px 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 99px;
  background: var(--color-grey-dark);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
}

.nav-item:hover         { color: var(--color-black); }
.nav-item:hover::after  { transform: scaleX(1); }
.nav-item.active        { color: var(--color-black); font-weight: 600; }
.nav-item.active::after { transform: scaleX(1); background: var(--color-green-primary); }

.nav-chevron {
  font-size: 12px;
  color: var(--clr-text-muted);
  display: inline-flex;
  align-items: center;
  margin-left: -2px;
  margin-right: -4px;
  transition: transform 0.2s, color 0.2s;
}

.nav-item:hover .nav-chevron {
  transform: rotate(180deg);
  color: var(--color-black);
}

/* Right utils */
.nav-utils {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* ── Theme toggle ───────────────────────────────────────── */
.st-sunMoonThemeToggleBtn {
  position: relative;
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.st-sunMoonThemeToggleBtn:hover { opacity: 1; }

.themeToggleInput {
  opacity: 0;
  position: absolute;
  inset: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.st-sunMoonThemeToggleBtn svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(40deg);
  transition: transform 0.4s ease;
}

.st-sunMoonThemeToggleBtn svg .sunMoon {
  transform-origin: center;
  transform: scale(1);
  transition: transform 0.4s ease;
}

.st-sunMoonThemeToggleBtn svg .sunRay {
  transform-origin: center;
  transform: scale(0);
}

.st-sunMoonThemeToggleBtn svg mask > circle {
  transform: translate(0, 0);
  transition: transform 0.64s cubic-bezier(0.41, 0.64, 0.32, 1.575);
}

.st-sunMoonThemeToggleBtn svg .sunRay2 { animation-delay: 0.05s !important; }
.st-sunMoonThemeToggleBtn svg .sunRay3 { animation-delay: 0.10s !important; }
.st-sunMoonThemeToggleBtn svg .sunRay4 { animation-delay: 0.17s !important; }
.st-sunMoonThemeToggleBtn svg .sunRay5 { animation-delay: 0.25s !important; }
.st-sunMoonThemeToggleBtn svg .sunRay6 { animation-delay: 0.29s !important; }

.st-sunMoonThemeToggleBtn .themeToggleInput:checked + svg               { transform: rotate(90deg); }
.st-sunMoonThemeToggleBtn .themeToggleInput:checked + svg mask > circle { transform: translate(16px, -3px); }
.st-sunMoonThemeToggleBtn .themeToggleInput:checked + svg .sunMoon      { transform: scale(0.55); }
.st-sunMoonThemeToggleBtn .themeToggleInput:checked + svg .sunRay       { animation: showRay 0.4s ease forwards; }

@keyframes showRay {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ── Utility icon buttons ───────────────────────────────── */
.util-icons {
  display: flex;
  align-items: center;
  gap: 2px;
}

.util-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 9px;
  color: var(--clr-text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}

.util-btn:hover { color: var(--color-black); background: rgba(0, 0, 0, 0.04); }

.notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green-primary);
  border: 1.5px solid var(--color-white);
}

/* ── Get Started CTA button ─────────────────────────────── */
.auth-btns { display: flex; align-items: center; }

.letstalk-wrap {
  width: 158px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.letstalk-label {
  background: transparent;
  border: 1.5px solid var(--clr-green-border);
  display: flex;
  align-items: center;
  border-radius: 50px;
  width: 158px;
  cursor: pointer;
  padding: 4px;
  position: relative;
  transition: border-color 0.4s, width 0.4s;
}

.letstalk-label:hover { border-color: var(--color-green-forest); }

.letstalk-label::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-white);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.letstalk-input { display: none; }

.letstalk-title {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-base);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-green-forest);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  transition: all 0.4s ease;
}

.letstalk-title:last-child { opacity: 0; visibility: hidden; }

.letstalk-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.letstalk-icon {
  color: var(--color-white);
  width: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.letstalk-square {
  aspect-ratio: 1;
  width: 13px;
  border-radius: 2px;
  background: var(--color-white);
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.letstalk-circle::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  background: var(--color-green-deep);
  height: 0;
  transition: all 0.4s ease;
}

/* Checked / loading states */
.letstalk-label:has(.letstalk-input:checked) {
  width: 39px;
  padding: 2px;
  animation: lt-installed 0.4s ease 3.5s forwards;
}

.letstalk-label:has(.letstalk-input:checked)::before {
  animation: lt-rotate 3s ease-in-out 0.4s forwards;
}

.letstalk-label .letstalk-input:checked + .letstalk-circle {
  animation: lt-pulse 1s forwards, lt-circleDelete 0.2s ease 3.5s forwards;
  rotate: 180deg;
}

.letstalk-label .letstalk-input:checked + .letstalk-circle::before {
  animation: lt-installing 3s ease-in-out forwards;
}

.letstalk-label .letstalk-input:checked + .letstalk-circle .letstalk-icon    { opacity: 0; visibility: hidden; }
.letstalk-label .letstalk-input:checked ~ .letstalk-circle .letstalk-square  { opacity: 1; visibility: visible; }
.letstalk-label .letstalk-input:checked ~ .letstalk-title                    { opacity: 0; visibility: hidden; }
.letstalk-label .letstalk-input:checked ~ .letstalk-title:last-child         { animation: lt-showMessage 0.4s ease 3.5s forwards; }

/* Instant-reset helper class (applied via JS during reset) */
.letstalk-resetting,
.letstalk-resetting *,
.letstalk-resetting *::before,
.letstalk-resetting *::after {
  transition: none !important;
  animation: none !important;
}

@keyframes lt-pulse     { 0%   { scale: 0.95; box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
                          70%  { scale: 1;    box-shadow: 0 0 0 14px rgba(255,255,255,0); }
                          100% { scale: 0.95; box-shadow: 0 0 0 0  rgba(255,255,255,0); } }
@keyframes lt-installing{ from { height: 0; } to { height: 100%; } }
@keyframes lt-rotate    { 0%   { transform: rotate(-90deg) translate(24px) rotate(0);       opacity: 1; visibility: visible; }
                          99%  { transform: rotate(270deg) translate(24px) rotate(270deg);  opacity: 1; visibility: visible; }
                          100% { opacity: 0; visibility: hidden; } }
@keyframes lt-installed    { 100% { width: 140px; border-color: var(--color-green-primary); } }
@keyframes lt-circleDelete { 100% { opacity: 0; visibility: hidden; } }
@keyframes lt-showMessage  { 100% { opacity: 1; visibility: visible; right: 44px; } }

/* ── Hamburger (hidden on desktop) ─────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hamburger:hover  { background: rgba(0, 0, 0, 0.04); }
.hamburger:active { transform: scale(0.96); }

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 20px;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile search icon button (hidden on desktop) ──────── */
.mobile-search-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 9px;
  color: var(--color-grey-dark);
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.18s, background 0.18s;
}

.mobile-search-btn:hover  { color: var(--color-green-primary); background: rgba(0, 0, 0, 0.04); }
.mobile-search-btn.active { color: var(--color-green-primary); }

/* ════════════════════════════════════════════════════════════
   MOBILE SEARCH OVERLAY
   ════════════════════════════════════════════════════════════ */
.mobile-search-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-white);
  border-top: 1px solid var(--clr-border-light);
  border-bottom: 1px solid var(--clr-border-light);
  box-shadow: var(--shadow-overlay);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.22s ease;
}

.mobile-search-overlay.open {
  opacity: 1;
  transform: translateY(0);
}

.mobile-search-overlay-wrap {
  padding: 10px 20px;
}

/* Overlay reuses .search-bar styles — only sizing overrides needed */
.mobile-search-overlay .search-bar {
  width: 100%;
  height: 38px;
}

/* Close button replaces the ⌘K kbd in the search-right slot */
.mobile-search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--clr-border-default);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--clr-overlay-05);
  color: var(--clr-text-secondary);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.18s, background 0.18s;
}

.mobile-search-close:hover { color: var(--color-black); background: var(--clr-overlay-08); }

/* ════════════════════════════════════════════════════════════
   MOBILE MENU DRAWER
   ════════════════════════════════════════════════════════════ */
.mobile-menu {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 0;
  padding: 0 24px;
  overflow: hidden;
  background: var(--color-white);
  border-top: 0 solid transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease,
    transform 0.3s ease,
    padding 0.35s ease,
    border-color 0.25s ease;
  will-change: max-height, opacity, transform;
}

.mobile-menu.open {
  max-height: 850px;
  padding-top: 8px;
  padding-bottom: 18px;
  border-top: 1px solid var(--clr-border-light);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Mobile nav links */
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 6px;
  border-bottom: 1px solid var(--clr-border-light);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-grey-dark);
  text-decoration: none;
  background: transparent;
  transition: color 0.18s, background 0.18s, padding-left 0.18s;
}

.mobile-nav-item:first-child { padding-top: 12px; }
.mobile-nav-item:last-child  { border-bottom: none; }

.mobile-nav-item > i {
  font-size: 19px;
  color: var(--clr-text-subtle);
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-item:hover        { padding-left: 10px; color: var(--color-green-primary); background: var(--clr-hover-bg-nav); }
.mobile-nav-item:hover > i    { color: var(--color-green-primary); transform: translateX(3px); }
.mobile-nav-item.active       { position: relative; color: var(--color-green-primary); font-weight: 600; }

.mobile-nav-item.active::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  width: 3px;
  height: 22px;
  transform: translateY(-50%);
  border-radius: 20px;
  background: var(--color-green-primary);
}

/* Divider */
.mobile-divider {
  width: 100%;
  margin: 8px 0;
  border: none;
  border-top: 1px solid var(--clr-border-light);
}

/* Secondary utility links */
.mobile-util-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 2px 0;
}

.mobile-util-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--clr-text-secondary);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 7px;
  transition: color 0.18s;
}

.mobile-util-link:hover { color: var(--color-green-primary); }

/* Social icons */
.mobile-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  padding: 7px 0 3px;
}

.mobile-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--clr-text-secondary);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  border: 1px solid transparent;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}

.mobile-socials a:hover { color: var(--color-green-primary); background: var(--clr-hover-bg-mid); border-color: var(--clr-green-border); }

/* Utility icons row */
.mobile-util-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0 0;
}

/* Get Started CTA — mobile drawer only */
.mobile-start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  margin-left: auto;
  padding: 0 15px;
  color: var(--color-white);
  background: var(--gradient-brand-cta);
  border-radius: 99px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: var(--shadow-cta);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-start-btn:hover          { transform: translateY(-1px); box-shadow: var(--shadow-cta-hover); }
.mobile-start-btn i:first-child  { font-size: 17px; }
.mobile-start-btn i:last-child   { font-size: 18px; transition: transform 0.2s ease; }
.mobile-start-btn:hover i:last-child { transform: translateX(2px); }

/* ════════════════════════════════════════════════════════════
   ROW 3 — INFO BAR
   ════════════════════════════════════════════════════════════ */
.info-bar {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 40px;
}

.info-section {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
}

.info-bar .vdivider.tall {
  flex-shrink: 0;
  margin: 0 28px;
}

/* Offers rotator */
.offers-section {
  gap: 10px;
  overflow: hidden;
}

.offer-icon {
  font-size: 18px;
  color: var(--color-green-primary);
  flex-shrink: 0;
}

.offer-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-green-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.offer-rotator {
  position: relative;
  height: 20px;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
}

.offer-slide {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-grey-dark);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(calc(-50% + 100%));
  transition: none;
}

.offer-slide.active {
  opacity: 1;
  transform: translateY(-50%);
}

/* Greeting */
.greet-section {
  gap: 8px;
  justify-content: center;
}

.greet-icon-wrap {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.bx-sun       { color: var(--clr-icon-sun); }
.bx-cloud-sun { color: var(--clr-icon-cloud-sun); }
.bx-sunset    { color: var(--clr-icon-sunset); }
.bx-moon      { color: var(--clr-icon-moon); }

.greet-content {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.greet-welcome { font-size: 13px; font-weight: 400; color: var(--clr-text-muted); }
.greet-name    { font-size: 13px; font-weight: 600; color: var(--color-black); }
.greet-dot     { font-size: 13px; color: #ccc; }

.greet-nudge {
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  background: linear-gradient(to right, var(--color-green-forest), var(--color-green-parrot));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nudge-gradient {
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Search bar */
.search-section { justify-content: flex-end; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 32px;
  padding: 0 10px 0 14px;
  border: none;
  border-radius: 99px;
  background: var(--gradient-search-default);
  cursor: text;
  position: relative;
  transition: background 0.2s;
}

.search-bar:focus-within {
  background: var(--gradient-search-focus);
  outline: 1px solid var(--clr-green-border-focus);
}

.search-icon {
  font-size: 18px;
  color: var(--color-green-parrot);
  flex-shrink: 0;
}

.search-placeholder-wrap {
  flex: 1;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.search-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-base);
  font-size: 13px;
  color: var(--color-grey-dark);
  outline: none;
  z-index: 2;
  padding: 0;
  caret-color: var(--color-green-primary);
}

.search-input::placeholder { color: transparent; }

.search-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.15s;
}

.search-bar.typing .search-placeholder { opacity: 0; }

.search-ph-static {
  font-size: 13px;
  color: var(--clr-text-placeholder);
  flex-shrink: 0;
  margin-right: 4px;
}

.search-ph-dynamic {
  font-size: 13px;
  font-weight: 500;
  color: var(--clr-text-muted);
}

.search-cursor {
  font-size: 14px;
  color: var(--color-green-primary);
  line-height: 1;
  animation: blink-cursor 0.9s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.search-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.search-divider {
  width: 1px;
  height: 14px;
  background: var(--clr-border-default);
}

.search-kbd {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-base);
  color: var(--color-green-forest);
  background: var(--clr-overlay-05);
  border: 1px solid var(--clr-border-default);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 6px;
  letter-spacing: 0.02em;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.search-kbd:hover { background: var(--clr-overlay-08); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════════════════ */

/* 1280px — Large tablet / small desktop */
@media (max-width: 1280px) {
  .top-bar,
  .main-nav,
  .info-bar { padding-inline: 28px; }

  .nav-item { padding: 8px 11px 10px; font-size: 11.5px; }
}

/* 1120px — Switch to compact / mobile navigation */
@media (max-width: 1120px) {

  /* Top bar */
  .top-bar          { padding-inline: 24px; }
  .top-tagline      { font-size: 10px; letter-spacing: 0.18em; }
  .top-right        { gap: 10px; }
  .top-links a      { padding-inline: 7px; }
  .top-socials a    { width: 26px; height: 26px; font-size: 15px; }

  /* Main nav */
  .main-nav         { height: 68px; padding-inline: 24px; }
  .nav-links        { display: none; }
  .util-icons       { display: none; }
  .auth-btns        { display: none; }
  .nav-utils        { margin-left: auto; gap: 18px; }
  .nav-utils > .vdivider { display: none; }

  /* Branding */
  .brand-symbol     { height: 46px; }
  .brand-wordmark   { height: 18px; }
  .brand-vdivider   { height: 26px; }

  /* Show hamburger and mobile search */
  .hamburger        { display: flex; }
  .mobile-search-btn { display: flex; }

  /* Info bar */
  .info-bar         { padding-inline: 24px; }
  .info-bar .vdivider.tall { margin-inline: 18px; }
  .offer-slide      { overflow: hidden; text-overflow: ellipsis; }
  .greet-content    { min-width: 0; overflow: hidden; }
  .greet-nudge      { overflow: hidden; text-overflow: ellipsis; }

  /* Hide the search section — replaced by mobile overlay */
  .search-section   { display: none; }
}

/* 920px */
@media (max-width: 920px) {
  .top-tagline-wrap            { flex-shrink: 0; }
  .top-right                   { margin-left: auto; }
  .top-socials a:nth-child(n+7){ display: none; }
  .main-nav                    { padding-inline: 20px; }
  .brand-symbol                { height: 42px; }
  .brand-wordmark              { height: 17px; }
  .info-bar                    { padding-inline: 20px; }
  .info-bar .vdivider.tall     { margin-inline: 14px; }
  .greet-nudge                 { display: none; }
}

/* 768px — Tablet portrait */
@media (max-width: 768px) {
  .header-wrap { border-radius: 0 0 0.75rem 0.75rem; }

  /* Top bar: show tagline, hide desktop-only nav links */
  .top-bar            { height: 34px; padding-inline: 16px; }
  .top-tagline-wrap   { display: flex; }
  .top-tagline        { display: block; font-size: 10px; letter-spacing: 0.15em; }
  .top-links          { display: none; }
  .top-right          { width: auto; justify-content: flex-end; gap: 8px; }
  .top-right > .vdivider { display: none; }
  .top-socials        { min-width: 0; justify-content: flex-end; }
  .top-socials a      { width: 25px; height: 25px; font-size: 14px; }
  .top-socials a:nth-child(n+6) { display: none; }

  /* Main nav */
  .main-nav           { height: 62px; padding-inline: 16px; }
  .brand              { gap: 10px; }
  .brand-symbol       { height: 39px; }
  .brand-wordmark     { height: 16px; }
  .brand-vdivider     { height: 23px; }
  .nav-utils          { gap: 14px; }
  .st-sunMoonThemeToggleBtn { width: 21px; height: 21px; }

  /* Mobile menu */
  .mobile-menu        { padding-inline: 16px; }
  .mobile-menu.open   { padding-bottom: 16px; }

  /* Info bar — stacked */
  .info-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding-inline: 16px;
  }

  .info-bar .vdivider.tall { display: none; }

  .info-section {
    width: 100%;
    min-height: 42px;
    padding: 9px 0;
    border-bottom: 1px solid var(--clr-border-subtle);
    flex: none;
  }

  .info-section:last-child { border-bottom: none; }

  /* Offers */
  .offers-section   { width: 100%; gap: 8px; }
  .offer-icon       { font-size: 17px; }
  .offer-label      { font-size: 12px; }
  .offer-rotator    { min-width: 0; }
  .offer-slide      { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }

  /* Greeting */
  .greet-section    { justify-content: flex-start; }
  .greet-content    { max-width: 100%; }
  .greet-welcome,
  .greet-name       { font-size: 12.5px; }
  .greet-dot        { font-size: 12px; }
  .greet-nudge      { display: inline; max-width: 45vw; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }

  /* Search */
  .search-section   { justify-content: stretch; }
  .search-bar       { width: 100%; max-width: none; height: 34px; }
}

/* 640px */
@media (max-width: 640px) {
  .top-bar             { justify-content: space-between; }
  .top-tagline-wrap    { display: flex; }
  .top-tagline         { font-size: 9.5px; letter-spacing: 0.13em; }
  .top-links           { display: none; }
  .top-right > .vdivider,
  .top-socials         { display: none; }
  .main-nav            { padding-inline: 15px; }
  .brand-wordmark      { max-width: 132px; }
  .mobile-menu         { padding-inline: 15px; }
  .info-bar            { padding-inline: 15px; }
  .greet-nudge         { max-width: 40vw; }
}

/* 480px — Standard phones */
@media (max-width: 480px) {
  .top-bar          { height: 32px; padding-inline: 12px; }
  .top-tagline      { font-size: 9px; letter-spacing: 0.1em; }
  .main-nav         { height: 58px; padding-inline: 13px; }
  .brand            { gap: 8px; }
  .brand-symbol     { height: 35px; }
  .brand-vdivider   { height: 21px; }
  .brand-wordmark   { height: 14px; max-width: 115px; }
  .nav-utils        { gap: 11px; }
  .st-sunMoonThemeToggleBtn { width: 20px; height: 20px; }
  .hamburger        { width: 37px; height: 37px; padding: 7px; }
  .hamburger-line   { width: 21px; }
  .mobile-menu        { padding-inline: 13px; }
  .mobile-nav-item    { padding-block: 12px; font-size: 12.5px; }
  .mobile-util-link   { font-size: 11.5px; }
  .mobile-socials a   { width: 34px; height: 34px; font-size: 17px; }
  .mobile-start-btn   { min-height: 36px; padding-inline: 12px; gap: 6px; font-size: 10px; letter-spacing: 0.055em; }
  .info-bar           { padding-inline: 13px; }
  .info-section       { padding-block: 8px; }
  .offer-icon         { font-size: 15px; }
  .offer-label        { font-size: 11px; }
  .offer-slide        { font-size: 11.5px; }
  .greet-icon-wrap    { font-size: 16px; }
  .greet-welcome,
  .greet-name         { font-size: 11.5px; }
  .greet-dot          { display: none; }
  .greet-nudge        { max-width: 44vw; font-size: 11px; }
  .search-bar         { height: 34px; padding-left: 12px; padding-right: 8px; gap: 7px; }
  .search-icon        { font-size: 16px; }
  .search-ph-static,
  .search-ph-dynamic  { font-size: 11.5px; }
  .search-kbd         { padding: 2px 5px; font-size: 10px; }
}

/* 390px — Common small phones */
@media (max-width: 390px) {
  .top-tagline      { font-size: 8.5px; letter-spacing: 0.08em; }
  .main-nav         { padding-inline: 11px; }
  .brand            { gap: 7px; }
  .brand-symbol     { height: 32px; }
  .brand-vdivider   { height: 19px; }
  .brand-wordmark   { height: 13px; max-width: 105px; }
  .nav-utils        { gap: 9px; }
  .hamburger        { width: 35px; height: 35px; }
  .mobile-menu      { padding-inline: 11px; }
  .mobile-socials   { gap: 1px; }
  .mobile-socials a { width: 32px; height: 32px; font-size: 16px; }
  .mobile-util-icons { gap: 2px; }
  .mobile-util-icons .util-btn { width: 33px; height: 33px; font-size: 17px; }
  .mobile-start-btn  { padding-inline: 11px; }
  .info-bar          { padding-inline: 11px; }
  .offer-label       { display: none; }
  .offer-rotator     { flex: 1; min-width: 0; }
  .greet-nudge       { display: none; }
  .search-ph-static,
  .search-ph-dynamic { font-size: 11px; }
  .search-kbd        { font-size: 9.5px; }
}

/* 350px — Very small devices */
@media (max-width: 350px) {
  .top-tagline-dot  { display: none; }
  .top-tagline      { font-size: 8px; letter-spacing: 0.06em; }
  .brand-symbol     { height: 30px; }
  .brand-wordmark   { height: 12px; max-width: 95px; }
  .mobile-start-btn { font-size: 9.5px; padding-inline: 9px; }
  .search-divider,
  .search-kbd       { display: none; }
}

/* ════════════════════════════════════════════════════════════
   TOUCH DEVICES
   ════════════════════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  .nav-item:hover::after         { transform: scaleX(0); }
  .nav-item.active::after        { transform: scaleX(1); }
  .mobile-nav-item:hover         { padding-left: 6px; color: var(--color-grey-dark); background: transparent; }
  .mobile-nav-item.active        { color: var(--color-green-primary); }
  .mobile-socials a:hover        { color: var(--clr-text-secondary); background: transparent; border-color: transparent; }
}

/* ════════════════════════════════════════════════════════════
   LANDSCAPE PHONES
   ════════════════════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 950px) {
  .mobile-menu.open { max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; }
  .mobile-nav-item  { padding-block: 9px; }
  .mobile-socials   { padding-block: 3px; }
}

/* ════════════════════════════════════════════════════════════
   ACCESSIBILITY — KEYBOARD FOCUS
   ════════════════════════════════════════════════════════════ */
.hamburger:focus-visible,
.mobile-search-btn:focus-visible,
.mobile-nav-item:focus-visible,
.mobile-util-link:focus-visible,
.mobile-socials a:focus-visible,
.mobile-start-btn:focus-visible {
  outline: 2px solid var(--color-green-primary);
  outline-offset: 2px;
}

/* ════════════════════════════════════════════════════════════
   REDUCED MOTION
   ════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .hamburger-line,
  .mobile-menu,
  .mobile-search-overlay,
  .mobile-nav-item,
  .mobile-nav-item > i,
  .mobile-socials a,
  .mobile-start-btn,
  .mobile-start-btn i {
    transition: none !important;
    animation: none !important;
  }
}
