/* ====================================================================
   SITE CHROME — header, nav, footer, ticker
==================================================================== */

/* ---- header ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(6, 32, 29, 0.92);
  backdrop-filter: blur(14px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 rgba(212,168,50,0.15);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand img { height: 34px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--cream-100);
  line-height: 1.15;
}
.brand-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 500;
}

.main-nav { display: flex; align-items: center; gap: 1.8rem; }
.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0; padding: 0;
}
.main-nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: rgba(251,249,244,0.72);
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-400); }
.main-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold-500);
}

.nav-actions { display: flex; align-items: center; gap: 0.9rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--gold-500);
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--green-950);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.7rem;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(.16,1,.3,1);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a, .mobile-nav button {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream-100);
  text-decoration: none;
  background: none; border: none;
}
.mobile-nav a:hover { color: var(--gold-400); }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-actions .btn { display: none; }
  .nav-actions .lang-switch { display: none; }
  .hamburger { display: flex; }
}

/* ---- bean texture divider (real photograph, tiled) ---- */
.bean-strip {
  height: 78px;
  background-image:
    linear-gradient(180deg, rgba(6,32,29,0.35) 0%, rgba(6,32,29,0.15) 50%, rgba(6,32,29,0.35) 100%),
    url('/images/bean-texture-strip.jpg');
  background-repeat: no-repeat, repeat-x;
  background-size: 100% 100%, auto 220%;
  background-position: center, center;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.35), inset 0 -2px 6px rgba(0,0,0,0.35);
}
@media (max-width: 720px) {
  .bean-strip { height: 52px; }
}

/* ---- ticker ---- */
.ticker-wrap {
  background: var(--gold-500);
  overflow: hidden;
  padding: 0.6rem 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
}
.ticker-track span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-950);
  padding: 0 1.4rem;
  white-space: nowrap;
  border-right: 1px solid rgba(6,32,29,0.25);
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- footer ---- */
.site-footer {
  background: var(--green-950);
  color: rgba(251,249,244,0.6);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(251,249,244,0.1);
}
.footer-brand .brand-text { color: var(--cream-100); }
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.82rem;
  line-height: 1.7;
  max-width: 280px;
  color: rgba(251,249,244,0.5);
}
.social-icons { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.social-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(251,249,244,0.18);
  border-radius: 50%;
  color: rgba(251,249,244,0.65);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover { color: var(--green-950); border-color: var(--gold-500); background: var(--gold-500); }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a {
  font-size: 0.82rem;
  color: rgba(251,249,244,0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.72rem;
  color: rgba(251,249,244,0.35);
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-400); }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---- page hero (sub-pages) ---- */
.page-hero {
  background: var(--green-950);
  color: var(--cream-100);
  padding: 9.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(212,168,50,0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  max-width: 760px;
  margin-top: 1rem;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--gold-400);
}
.page-hero p.lede {
  margin-top: 1.2rem;
  max-width: 540px;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(251,249,244,0.65);
}

/* ---- toast ---- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--green-950);
  color: var(--cream-100);
  border: 1px solid var(--gold-600);
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  max-width: 320px;
  z-index: 4000;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.toast.is-error { border-color: var(--rust-500); }
.toast.is-show { transform: translateY(0); opacity: 1; }
