/* Donut Hole-der — Global Stylesheet
   Shared across all pages. Page-specific styles live in each page's <style> block. */

/* ─── CUSTOM PROPERTIES ─────────────────────────────────────────────────── */
:root {
  --orange:       #F26F21;
  --orange-dark:  #D45A0A;
  --orange-light: #FDE8D5;
  --brown:        #5C2E00;
  --brown-mid:    #7A3D00;
  --pink:         #E8197D;
  --pink-light:   #FDDCEE;
  --white:        #FFFFFF;
  --off-white:    #FAFAF8;
  --text:         #1A0A00;
  --text-muted:   #6B4226;

  --sp-1:  0.5rem;
  --sp-2:  1rem;
  --sp-3:  1.5rem;
  --sp-4:  2rem;
  --sp-5:  2.5rem;
  --sp-6:  3rem;
  --sp-8:  4rem;
  --sp-12: 6rem;

  --r-sm:   6px;
  --r-md:   12px;
  --r-full: 999px;
}

/* ─── THEME OVERRIDES ────────────────────────────────────────────────────── */
body.theme-canuck {
  --orange:      #C8102E;
  --orange-dark: #A00D24;
  --orange-light:#F5D0D5;
  --brown:       #111111;
  --brown-mid:   #222222;
  --pink:        #C8102E;
  --pink-light:  #F5D0D5;
  --text:        #0A0A0A;
  --text-muted:  #444444;
}

body.theme-concealed {
  --orange:      #FF6B00;
  --orange-dark: #CC5500;
  --orange-light:#FFE8D0;
  --brown:       #2A2A2A;
  --brown-mid:   #3D3D3D;
  --pink:        #FF6B00;
  --pink-light:  #FFE8D0;
  --white:       #F5F5F5;
  --off-white:   #EFEFEF;
  --text:        #1A1A1A;
  --text-muted:  #555555;
}

body.theme-y2k {
  --orange:      #CC00FF;
  --orange-dark: #9900CC;
  --orange-light:#F0D0FF;
  --brown:       #330066;
  --brown-mid:   #6600CC;
  --pink:        #00FFFF;
  --pink-light:  #D0FFFF;
  --white:       #FFFFFF;
  --off-white:   #F5F0FF;
  --text:        #1A0033;
  --text-muted:  #6600AA;
}

body.theme-y2k nav    { border-bottom-color: #CC00FF; }
body.theme-y2k footer { background: #0D0020; }

/* ─── BASE RESET ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

.hidden { display: none !important; }

/* ─── NAV ────────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-2) var(--sp-6);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid #E8E0D8;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 48px; width: auto; display: block; }
nav ul { list-style: none; display: flex; gap: var(--sp-5); align-items: center; }
nav ul a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
nav ul a:hover { color: var(--orange); }
.nav-cta {
  background: var(--orange) !important;
  color: white !important;
  padding: var(--sp-1) var(--sp-3) !important;
  border-radius: var(--r-full) !important;
  font-weight: 700 !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: var(--orange-dark) !important; transform: translateY(-1px) !important; }

/* ─── HAMBURGER BUTTON ───────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-sm);
  transition: background 0.15s;
  z-index: 101;
}
.nav-hamburger:hover {
  background: var(--orange-light);
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── NAV DRAWER ─────────────────────────────────────────────────────────── */
.nav-drawer {
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  z-index: 99;
  border-bottom: 1.5px solid #EDE5DC;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer-links {
  list-style: none;
  padding: var(--sp-2) 0 var(--sp-3);
  margin: 0;
  display: flex;
  flex-direction: column;
}
.nav-drawer-links li a {
  display: block;
  padding: var(--sp-2) var(--sp-4);
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-drawer-links li a:hover {
  color: var(--orange);
  background: var(--orange-light);
}
.nav-drawer-cta {
  margin: var(--sp-2) var(--sp-4) 0;
  background: var(--orange) !important;
  color: white !important;
  border-radius: var(--r-sm) !important;
  text-align: center;
  padding: var(--sp-2) var(--sp-4) !important;
}
.nav-drawer-cta:hover {
  background: var(--orange-dark) !important;
}

@media (max-width: 768px) {
  nav { padding: var(--sp-2) var(--sp-3); }
  .nav-links {
    display: none !important;
  }
  .nav-hamburger {
    display: flex;
  }
  .color-toggle {
    display: none;
  }
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
footer {
  background: var(--brown);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: var(--sp-12) var(--sp-4) var(--sp-6);
  font-size: 0.85rem;
  font-weight: 500;
}
footer a { color: var(--orange); text-decoration: none; }

.footer-logo {
  display: block;
  margin: 0 auto var(--sp-2);
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.75);
}

.footer-email-section {
  max-width: 480px;
  margin: 0 auto var(--sp-8);
}
.footer-email-heading {
  font-family: 'Concert One', cursive;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: white;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.5px;
}
.footer-email-sub {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--sp-3);
  line-height: 1.55;
}
.footer-email-form {
  display: flex;
  gap: var(--sp-2);
}
.footer-input {
  flex: 1;
  min-width: 0;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: white;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--r-sm);
  padding: 0.75rem var(--sp-2);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.footer-input::placeholder { color: #B8A898; font-weight: 500; }
.footer-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242,111,33,0.2);
}
.footer-submit {
  font-family: 'Concert One', cursive;
  font-size: 1rem;
  letter-spacing: 0.3px;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: var(--r-full);
  padding: 0.75rem var(--sp-4);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.footer-submit:hover:not(:disabled) { background: var(--orange-dark); transform: translateY(-1px); }
.footer-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.footer-error {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange-light);
  text-align: center;
  min-height: 1.2em;
  margin-top: var(--sp-1);
}
.footer-success {
  color: rgba(255,255,255,0.85);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: var(--sp-2);
}
.footer-copy { color: rgba(255,255,255,0.45); }

@media (max-width: 480px) {
  .footer-email-form { flex-direction: column; }
  .footer-submit { width: 100%; }
}

/* ─── SHARED BUTTONS ─────────────────────────────────────────────────────── */
.btn-primary {
  font-family: 'Concert One', cursive;
  font-size: 1rem;
  background: var(--orange);
  color: white;
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }

.btn-secondary {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown);
  text-decoration: none;
  border-bottom: 2px solid var(--orange-light);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-secondary:hover { color: var(--orange); border-bottom-color: var(--orange); }

.btn-white {
  background: white;
  color: var(--brown);
  font-family: 'Concert One', cursive;
  font-size: 1rem;
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-white:hover { background: var(--orange-light); transform: translateY(-2px); }

/* ─── REDUCED MOTION ─────────────────────────────────────────────────────── */
/* Honour the OS "reduce motion" setting: neutralise all CSS animation and
   transition. JS-driven motion (model auto-spin, donut parallax) is gated
   separately in each page's script via matchMedia. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
