/* ==========================================================================
   LAYOUT — container, announcement bar, header, footer
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.container--wide { max-width: var(--container-wide); }

.section { position: relative; padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-7); }

.section__head { max-width: 680px; margin: 0 auto var(--sp-7); text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }
.section__kicker {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-600);
  margin-bottom: var(--sp-3);
}
.section__title { font-size: var(--fs-3xl); }
.section__sub { color: var(--text-muted); margin-top: var(--sp-4); font-size: var(--fs-md); }

/* ---------------- Announcement bar (thin, brand orange) ---------------- */
.topbar {
  position: relative;
  z-index: var(--z-header);
  background: var(--grad-cta);
  color: #fff;
  font-size: var(--fs-xs);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding-block: 6px;
  text-align: center;
  line-height: 1.4;
}
.topbar__icon {
  display: inline-flex;
  width: 15px; height: 15px;
  opacity: .95;
}
.topbar__icon svg { width: 15px; height: 15px; }
.topbar strong { color: #fff; font-weight: 700; }
.topbar .accent {
  font-weight: 700;
  color: #fff;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
}

/* ---------------- Header ---------------- */
.header {
  position: sticky;
  top: 10px;
  z-index: var(--z-header);
  background: transparent;
  padding-block: var(--sp-3);
}

/* Floating, centered, rounded glass capsule */
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  max-width: 1060px;
  margin-inline: auto;
  padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-5);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-mid) var(--ease-out),
              background var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out);
}
.header.is-scrolled .header__inner {
  background: var(--glass-strong);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.brand__logo {
  height: 40px;
  width: auto;
  display: block;
}
/* In dark mode the orange logo already reads well; add a soft lift */
[data-theme="dark"] .brand__logo { filter: drop-shadow(0 2px 10px rgba(249,115,22,.35)); }
.footer .brand__logo { height: 38px; }

.nav { display: flex; align-items: center; gap: var(--sp-1); margin-inline: auto; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav__link:hover { color: var(--text); background: var(--surface-2); }
.nav__link svg { width: 15px; height: 15px; opacity: .6; }

.header__actions { display: flex; align-items: center; gap: var(--sp-2); }

/* Icon button (theme toggle, utility icons) */
.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  transition: all var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }
.icon-btn svg { width: 20px; height: 20px; }

/* Theme toggle icon swap */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: none; }

/* Theme toggle shown only inside the mobile drawer */
.nav__theme { display: none; }
.nav__theme-ic { display: inline-flex; align-items: center; }
.nav__theme-ic svg { width: 20px; height: 20px; }

/* ---------------- Footer (taped card design) ---------------- */
.footer { background: transparent; padding-block: var(--sp-9) var(--sp-6); }

/* White rounded card that looks taped to the page */
.footer__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: var(--sp-7);
}
@media (min-width: 768px) {
  .footer__card {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--sp-8);
  }
}

/* Tape pieces at the top corners */
.footer__tape {
  position: absolute;
  width: 86px; height: auto;
  color: var(--brand-600);
  opacity: 0.92;
  filter: drop-shadow(0 8px 14px rgba(40, 22, 8, 0.28));
  pointer-events: none;
}
.footer__tape path { fill: currentColor; }
.footer__tape--left { top: -16px; left: -14px; transform: rotate(-5deg) scale(0.92); }
.footer__tape--br   { bottom: -16px; right: -14px; transform: rotate(175deg) scale(0.92); }
@media (max-width: 767px) { .footer__tape { display: none; } }

/* Brand column */
.footer__brandcol { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 340px; }
.footer__tagline { color: var(--text-muted); font-size: var(--fs-sm); }

/* Link columns */
.footer__links { display: flex; flex-wrap: wrap; gap: var(--sp-6) var(--sp-8); }
.footer__col h4 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-bottom: var(--sp-4);
  font-family: var(--font-sans);
  font-weight: 600;
}
.footer__col ul { display: grid; gap: var(--sp-3); }
.footer__col a { color: var(--text-muted); font-size: var(--fs-sm); transition: color var(--dur-fast); white-space: nowrap; }
.footer__col a:hover { color: var(--brand-600); }
[data-theme="dark"] .footer__col a:hover { color: var(--brand-400); }

.footer__soon {
  display: inline-flex;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  color: var(--text-faint);
  font-size: 0.66rem;
  font-weight: 600;
  transform: rotate(-3deg);
}

/* Bottom bar (below the card) */
.footer__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); flex-wrap: wrap;
  padding: var(--sp-5) var(--sp-3) 0;
  color: var(--text-faint);
  font-size: var(--fs-sm);
}
.footer__legal { display: flex; gap: var(--sp-5); align-items: center; flex-wrap: wrap; }
.footer__bar a { color: var(--text-faint); transition: color var(--dur-fast); }
.footer__bar a:hover { color: var(--brand-600); }

.footer__socials { display: flex; gap: var(--sp-4); align-items: center; }
.footer__social { color: var(--text-faint); transition: color var(--dur-fast), transform var(--dur-fast); }
.footer__social:hover { color: var(--brand-600); transform: translateY(-2px); }
.footer__social svg { width: 20px; height: 20px; }
