/* ================================================================
   Dead Stock — Shared Stylesheet
   Covers: reset, variables, header, footer, animations, utilities
   Page-specific styles remain inline in each HTML file
   ================================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lexend', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #141413;
  background: #fff;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: opacity .2s; }
a:hover { opacity: .85; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; }

/* ===== CSS VARIABLES ===== */
:root {
  --navy: #283566;
  --gold: #986424;
  --dark: #141413;
  --light-gray: #E4E6E9;
  --cream: #FAF9F5;
  --white: #FFFFFF;
}

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }
.gap-64 { gap: 64px; }

/* ===== HEADER — default (white, always visible) ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  transition: background .3s, box-shadow .3s;
}

/* Hero variant — starts transparent, becomes white on scroll (.scrolled added by JS) */
.site-header--hero {
  background: transparent;
  box-shadow: none;
}
.site-header--hero.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}
.logo img { height: 42px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 10px 18px;
  font-size: 16px;
  color: var(--navy);
  font-weight: 400;
  transition: color .2s;
}
.nav-links a.active { font-weight: 600; }

/* Hero: nav + logo start white, go original colors after scroll */
.site-header--hero .nav-links a { color: #fff; }
.site-header--hero.scrolled .nav-links a { color: var(--navy); }

.site-header--hero .logo img {
  filter: brightness(0) invert(1);
  transition: filter .3s;
}
.site-header--hero.scrolled .logo img { filter: none; }

.btn-partner {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--gold);
  color: #fff !important;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  transition: background .2s, transform .15s;
}
.btn-partner:hover { background: #7a5019; transform: translateY(-1px); opacity: 1; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: background .3s;
}
.site-header--hero .menu-toggle span { background: #fff; }
.site-header--hero.scrolled .menu-toggle span { background: var(--navy); }

/* ===== FOOTER ===== */
.site-footer {
  background: #111;
  color: #fff;
  padding: 60px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col h4 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 15px; color: rgba(255,255,255,.7); transition: color .2s; }
.footer-col ul li a:hover { color: #fff; opacity: 1; }

.subscribe-form p { font-size: 15px; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.subscribe-row { display: flex; gap: 0; }
.subscribe-row input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-right: none;
  border-radius: 6px 0 0 6px;
  background: rgba(255,255,255,.05);
  color: #fff;
  font-family: 'Lexend', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.subscribe-row input[type="email"]::placeholder { color: rgba(255,255,255,.4); }
.subscribe-row input[type="email"]:focus { border-color: var(--gold); }
.subscribe-row button {
  padding: 12px 24px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 0 6px 6px 0;
  font-family: 'Lexend', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
}
.subscribe-row button:hover { background: #7a5019; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 14px;
  color: rgba(255,255,255,.5);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,.5); }
.footer-legal a:hover { color: #fff; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  transition: background .2s;
}
.footer-social a:hover { background: var(--gold); opacity: 1; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SHARED STATES ===== */
.btn-sending { opacity: .6; pointer-events: none; }
.sub-msg, .join-form-msg, .form-msg {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}
.sub-msg.success, .join-form-msg.success, .form-msg.success { color: #7fdb8a; }
.sub-msg.error,   .join-form-msg.error,   .form-msg.error   { color: #ff6b6b; }

/* ===== RESPONSIVE — header & footer ===== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    padding: 20px;
  }
  .nav-links.active a { color: #fff !important; padding: 12px 0; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
