/* ================================================================
   chrome.css — Header · Footer · Bottom Nav
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── Chrome layout tokens ────────────────────────────────────── */
:root {
  --ch-surface: rgba(255,255,255,0.92);
  --ch-height: 52px;
  --ch-bottom: 62px;
}

body { font-family: var(--font-sans); padding-top: var(--ch-height); }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1040;
  height: var(--ch-height); background: var(--color-white);
  border-bottom: 1px solid var(--color-slate-200);
  transition: background 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.site-header.is-scrolled {
  background: var(--ch-surface);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: 0 1px 0 0 var(--color-slate-200), 0 4px 16px rgba(15,23,42,0.07);
}
.site-header__inner {
  max-width: 1240px; margin: 0 auto; padding: 0 20px;
  height: 100%; display: flex; align-items: center; gap: 0;
}

/* ── Brand ───────────────────────────────────────────────────── */
.site-header__brand {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; flex-shrink: 0; margin-right: auto; padding: 6px 0;
}
.site-header__brand-icon {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  color: var(--color-brand); font-size: 15px; flex-shrink: 0;
  animation: ch-brand-in 600ms cubic-bezier(0,0,0.2,1) 0.3s both;
}
@keyframes ch-brand-in {
  0%   { opacity: 0; transform: scale(0.7) translateY(3px); }
  55%  { opacity: 1; transform: scale(1.12) translateY(-1px); }
  100% { opacity: 1; transform: scale(1); }
}
.site-header__brand-name {
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.025em;
  color: var(--color-slate-800); line-height: 1;
  animation: ch-fade-in 400ms cubic-bezier(0,0,0.2,1) 0.15s both;
}
.site-header__brand:hover .site-header__brand-name { color: var(--color-brand); }

/* ── Shared header button base (nav links, lang picker) ──────── */
.site-header__nav-link,
.site-header__nav-btn,
.site-header__lang-btn {
  height: 34px; display: inline-flex; align-items: center;
  border-radius: 8px; border: none; background: none; cursor: pointer;
  font-family: var(--font-sans); line-height: 1;
  transition: color 140ms, background 140ms;
}
.site-header__nav-link:hover,
.site-header__nav-btn:hover,
.site-header__lang-btn:hover {
  color: var(--color-slate-800); background: var(--color-slate-100);
}

/* ── Desktop nav ─────────────────────────────────────────────── */
.site-header__nav { display: flex; align-items: center; gap: 2px; }
.site-header__nav-link,
.site-header__nav-btn {
  padding: 0 13px; font-size: 13.5px; font-weight: 500;
  color: var(--color-slate-500); text-decoration: none;
  letter-spacing: -0.015em; white-space: nowrap;
}
.site-header__nav-link--cta {
  background: var(--color-brand); color: #ffffff !important; border: none; margin-left: 6px;
}
.site-header__nav-link--cta:hover { background: var(--color-brand-dark) !important; color: #ffffff !important; }

/* ── Language picker ─────────────────────────────────────────── */
.site-header__lang { position: relative; display: flex; align-items: center; }
.site-header__lang-btn {
  padding: 0 10px; gap: 6px; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.05em; color: var(--color-slate-500);
}
.site-header__lang-btn img { border-radius: 2px; flex-shrink: 0; display: block; }
.site-header__lang-chevron {
  font-size: 9px; opacity: 0.55; transition: transform 200ms var(--ease), opacity 200ms;
}
.site-header__lang.is-open .site-header__lang-chevron { transform: rotate(180deg); opacity: 0.9; }

.site-header__lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 118px;
  background: var(--color-white); border: 1px solid var(--color-slate-200);
  border-radius: 11px; padding: 4px;
  box-shadow: 0 4px 6px rgba(15,23,42,0.05), 0 10px 32px rgba(15,23,42,0.10);
  opacity: 0; pointer-events: none;
  transform: translateY(-5px) scale(0.96); transform-origin: top right;
  transition: opacity 150ms var(--ease), transform 150ms var(--ease);
}
.site-header__lang.is-open .site-header__lang-menu {
  opacity: 1; pointer-events: auto; transform: translateY(0) scale(1);
}
.site-header__lang-option {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  border-radius: 7px; font-size: 13px; font-weight: 500;
  color: var(--color-slate-600); text-decoration: none; white-space: nowrap;
  transition: background 120ms, color 120ms;
}
.site-header__lang-option:hover { background: var(--color-slate-100); color: var(--color-slate-800); }
.site-header__lang-option.is-active { background: rgba(79,70,229,0.08); color: var(--color-brand); }
.site-header__lang-option img { border-radius: 2px; }

/* ── Vertical divider ────────────────────────────────────────── */
.site-header__sep { width: 1px; height: 18px; background: var(--color-slate-300); margin: 0 4px; flex-shrink: 0; }

/* ── Bottom nav (mobile) ─────────────────────────────────────── */
.site-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040;
  height: calc(var(--ch-bottom) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-top: 1px solid var(--color-slate-200);
}
.site-bottom-nav__items { display: flex; align-items: stretch; height: var(--ch-bottom); padding: 0 4px; }
.site-bottom-nav__item,
.site-bottom-nav__form > .site-bottom-nav__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; text-decoration: none; color: var(--color-slate-500);
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.01em; padding: 6px 4px;
  border: none; background: none; cursor: pointer; font-family: var(--font-sans);
  position: relative; min-height: 44px; border-radius: 10px;
  transition: color 150ms; -webkit-tap-highlight-color: transparent;
}
.site-bottom-nav__item i { font-size: 19px; line-height: 1; display: block; transition: transform 200ms var(--ease); }
.site-bottom-nav__item img { border-radius: 3px; display: block; }

/* Active dot indicator */
.site-bottom-nav__item::before {
  content: ''; position: absolute; top: 7px; left: 50%;
  transform: translateX(-50%) scaleX(0); width: 18px; height: 2px;
  background: var(--color-brand); border-radius: 2px;
  transition: transform 200ms var(--ease), opacity 200ms; opacity: 0;
}
.site-bottom-nav__item.is-active { color: var(--color-brand); }
.site-bottom-nav__item.is-active::before { transform: translateX(-50%) scaleX(1); opacity: 1; }
.site-bottom-nav__item.is-active i { transform: scale(1.1); }

.site-bottom-nav__form { flex: 1; display: flex; }
.site-bottom-nav__form > .site-bottom-nav__item { flex: 1; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { margin-top: auto; border-top: 1px solid var(--color-slate-200); background: var(--color-white); }
.site-footer__inner {
  max-width: 1240px; margin: 0 auto; padding: 13px 20px;
  display: flex; justify-content: center;
}
.site-footer__copy {
  font-size: 11.5px; color: #94a3b8; letter-spacing: -0.01em;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  body { padding-bottom: calc(var(--ch-bottom) + env(safe-area-inset-bottom, 0px)); }
  .site-bottom-nav { display: block; }
  .site-header__nav { display: none; }
  .site-footer { display: none; }
}
@media (max-width: 500px) {
  .site-footer__inner { justify-content: space-between; }
}

/* ── Utilities ───────────────────────────────────────────────── */
@keyframes ch-fade-in {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}
