/* ========================================================
   SugarSpin Shared Layout — header, footer, nav, base
   Included on every page of the site.
======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --gold: #E8A838;
  --gold-light: #F2C46D;
  --gold-dark: #C48A20;
  --gold-glow: rgba(232, 168, 56, 0.25);
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1E1E1E;
  --text-primary: #F5F5F5;
  --text-secondary: #AAAAAA;
  --text-muted: #666666;
  --border: #222222;
  --border-light: #333333;
  --gradient-gold: linear-gradient(135deg, #F2C46D, #E8A838, #C48A20);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
}
.btn-primary {
  background: var(--gradient-gold);
  color: #000;
  padding: 12px 28px;
  box-shadow: 0 4px 20px rgba(232, 168, 56, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 168, 56, 0.4);
}
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  padding: 12px 28px;
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.btn-header {
  background: var(--gold);
  color: #000 !important;
  padding: 8px 22px;
  border-radius: 8px;
  font-size: 13px;
}
.btn-header:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s;
}
header.scrolled {
  background: rgba(10, 10, 10, 0.96);
  border-bottom-color: var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo { height: 30px; width: auto; }
.header-nav { display: flex; gap: 32px; align-items: center; }
.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.header-nav a:hover { color: var(--text-primary); }
.header-nav a:not(.btn-header)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}
.header-nav a:not(.btn-header):hover::after { width: 100%; }
.header-nav a.active-page { color: var(--gold); }
.header-nav a.active-page::after { width: 100%; }

/* ===== MOBILE TOGGLE ===== */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle svg { width: 24px; height: 24px; }

/* ===== FOOTER ===== */
footer {
  padding: 60px 32px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-brand { max-width: 300px; }
.footer-brand img { height: 26px; margin-bottom: 14px; display: block; }
.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-links { display: flex; gap: 60px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--gold); text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .header-nav a:not(.btn-header) { display: none; }
  .mobile-toggle { display: block; }
  .header-inner { padding: 12px 20px; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 58px;
    left: 0; right: 0;
    background: rgba(10,10,10,0.97);
    padding: 20px 24px 30px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
    z-index: 999;
  }
  .header-nav.open a { display: block; font-size: 16px; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
