:root {
  
  /* ===== DESIGN TOKENS ===== */

  /* Fonts */
  --font-main: 'Inter', sans-serif;
  --font-additional: 'Montserrat SemiBold', sans-serif;

  /* Font sizes */
  --fs-heading: 28px;
  --fs-button: 22px;
  --fs-phone: 20px;
  --fs-logo: 24px;
  --ls-button: 0.5px;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;

  /* Layout sizes */
  --header-height: 110px;
  --header-width: 214px;
  --header-logo-width: 90px;
  --header-gap: 10px;
  --theme-btn-size: 50px;
  --theme-btn-icon-size: 50px;

  --hero-img-width: 300px;
  --hero-img-margin: 30px;
  --hero-img-margin-large: 60px;

  --cta-width: 90%;
  --cta-height: 72px;
  --cta-offset: -110px;
  --cta-offset-large: -90px;
  --cta-border-width: 4px;
  --cta-shadow-y: 12px;
  --cta-shadow-blur: 30px;
  --cta-btn-active-scale: 0.96;

  --dot-size: 8px;
  --dot-gap: 8px;
  --dot-bottom-offset: 25px;
  --dot-active-scale: 1.3;
  --bottom-safe-space: calc( var(--dot-bottom-offset) + 40px + env(safe-area-inset-bottom));

  --radius-pill: 999px;

  /* Animation */
  --transition-fast: 800ms;
  --transition-normal: 800ms;
}

body.light {
  --bg: #FEF9EE;
  --header-bg: #4B7CAE;
  --color-main: #262F4C;
  --color-accent: #FDA24D;
  --contact-btn-icon: #FEF9EE;
  --contact-btn-bg: #4B7CAE;
  --color-shadow: rgba(0,0,0,0.25);
}

body.light #logoImg {
  content: url("/static/img/squirrels/logo.png");
}

body.light #heroImg {
  content: url("/static/img/squirrels/in_a_bucket.png");
}

body.dark {
  --bg: #262F4C;
  --header-bg: #262F4C;
  --color-main: #FEF9EE;
  --color-accent: #FDA24D;
  --contact-btn-icon: #262F4C;
  --contact-btn-bg: #4B7CAE;
  --color-shadow: rgba(255,255,255,0.15);
}

body.dark #logoImg {
  content: url("/static/img/squirrels/logo_dark.png");
}

body.dark #heroImg {
  content: url("/static/img/squirrels/in_a_bucket_dark.png");
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--color-main);
  transition: background-color var(--transition-normal) ease, color var(--transition-normal) ease;
}

/* ===== THEME ===== */

.floating-theme-toggle {
  position: fixed;
  right: -80px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right 0.8s ease, transform .3s ease;
  z-index: 9999;
}

.floating-theme-toggle.show {
  right: 30px;
}

.floating-theme-toggle img {
  width: 35px;
  height: 35px;
  transition: opacity .4s ease, transform .3s ease, filter .3s ease;
}

.floating-theme-toggle:hover img {
  transform: scale(1.12);
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.25));
}

.floating-theme-toggle img.fade {
  opacity: 0;
  transform: rotate(90deg) scale(0.8);
}

.tooltip {
  position: absolute;
  right: 70px;
  background: #262F4C;
  color: #FEF9EE;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  opacity: 0;
  white-space: nowrap;
  transition: opacity .3s ease;
  pointer-events: none;
}

.floating-theme-toggle:hover .tooltip {
  opacity: 1;
}

/* ===== DEV TOAST ===== */

.toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-main);
  color: var(--bg);
  padding: 14px 26px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 30px var(--color-shadow);
  transition: bottom .5s cubic-bezier(.4,0,.2,1);
  z-index: 9999;
}

.toast.show {
  bottom: 40px;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
