/* ========================================================== */
/*                        VARIABLES                         */
/* ========================================================== */
:root {
  /* Colors */
  --color-background: #fff9ef;
  --color-surface: #ffffff;
  --color-text: #232637;
  --color-primary: #ff8e42; /* playful orange */
  --color-success: #4eda66;
  --color-warning: #fed12c;
  --color-danger: #ff5c76;
  --color-gray-100: #fcfcfc;
  --color-gray-200: #f3f3f6;
  --color-gray-300: #e2e2e8;
  --color-gray-400: #cbcbd8;
  --color-gray-500: #acadc7;
  --color-gray-600: #81829e;
  --color-gray-700: #52536d;
  --color-gray-800: #303146;
  --color-gray-900: #232637;
  /* Typography */
  --font-family-sans: 'Nunito', 'Quicksand', 'Segoe UI', Arial, sans-serif;
  --font-family-display: 'Fredoka One', 'Baloo', 'Nunito', cursive, sans-serif;
  --font-size-xs: 0.875rem;     /* 14px */
  --font-size-sm: 1rem;         /* 16px */
  --font-size-base: 1.125rem;   /* 18px */
  --font-size-lg: 1.375rem;     /* 22px */
  --font-size-xl: 1.75rem;      /* 28px */
  --font-size-2xl: 2.25rem;     /* 36px */
  --line-height-base: 1.6;
  --line-height-heading: 1.2;
  /* Spacing Scale */
  --space-0: 0px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  /* Radius, Shadows, Transitions */
  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 24px;
  --shadow-xs: 0 1px 3px 0 rgba(44,72,213,0.06);
  --shadow: 0 4px 24px 0 rgba(255, 142, 66, 0.13);
  --shadow-lg: 0 6px 28px -2px rgba(35,38,55,0.18);
  --transition-fast: 0.15s cubic-bezier(.4,0,.2,1);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* ========================================================== */
/*                          RESET                            */
/* ========================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}
ul[role='list'], ol[role='list'] {
  list-style: none;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
input, button, textarea, select {
  font: inherit;
}
button, [type="button"], [type="submit"] {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ========================================================== */
/*                        BASE STYLES                        */
/* ========================================================== */
body {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
  background: var(--color-background);
  color: var(--color-text);
  line-height: var(--line-height-base);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  line-height: var(--line-height-heading);
  color: var(--color-primary);
}
h1 { font-size: var(--font-size-2xl); margin: var(--space-7) 0 var(--space-5); }
h2 { font-size: var(--font-size-xl); margin: var(--space-6) 0 var(--space-4); }
h3 { font-size: var(--font-size-lg); margin: var(--space-5) 0 var(--space-3); }
h4, h5, h6 {
  font-size: var(--font-size-base);
  margin: var(--space-4) 0 var(--space-2);
}

p {
  margin-bottom: var(--space-4);
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color var(--transition);
}
a:hover,
a:focus-visible {
  color: var(--color-danger);
  text-decoration-thickness: 2px;
  outline: none;
}
a:active {
  color: var(--color-primary);
}

:focus-visible {
  outline: 2px dashed var(--color-primary);
  outline-offset: 2px;
}

/* ========================================================== */
/*                         UTILITIES                         */
/* ========================================================== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}
@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-3);
  }
}

.flex {
  display: flex !important;
}
.flex-center {
  justify-content: center;
  align-items: center;
}
.flex-column {
  flex-direction: column;
}
.grid {
  display: grid !important;
}
.grid-center {
  place-items: center;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-6 {
  gap: var(--space-6);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ========================================================== */
/*                       COMPONENTS                          */
/* ========================================================== */
.button, button, [type="button"], [type="submit"] {
  appearance: none;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-family-sans);
  font-weight: 700;
  padding: var(--space-2) var(--space-4);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  display: inline-block;
  position: relative;
}
.button:hover, button:hover, [type="button"]:hover, [type="submit"]:hover,
.button:focus-visible, button:focus-visible, [type="button"]:focus-visible, [type="submit"]:focus-visible {
  background: var(--color-danger);
  color: #fff;
  box-shadow: var(--shadow);
  outline: none;
}
.button:active, button:active, [type="button"]:active, [type="submit"]:active {
  background: var(--color-success);
  color: #fff;
}
.button:disabled, button:disabled, [type="button"]:disabled, [type="submit"]:disabled {
  background: var(--color-gray-400);
  color: var(--color-gray-600);
  cursor: not-allowed;
  opacity: 0.7;
}

input, textarea, select {
  background: var(--color-surface);
  color: var(--color-text);
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-3);
  box-shadow: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-size: var(--font-size-base);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-warning);
  outline: none;
}
input:disabled, textarea:disabled, select:disabled {
  color: var(--color-gray-600);
  background: var(--color-gray-200);
  cursor: not-allowed;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  transition: box-shadow var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-lg);
}

/* Fun highlight utility for playful callouts */
.highlight {
  color: #fff;
  background: linear-gradient(90deg, var(--color-primary), var(--color-success));
  border-radius: var(--radius);
  padding: 0 var(--space-2);
  font-weight: 700;
}

/* ========================================================== */
/*                Header & Footer styles START               */
/* ========================================================== */

/* Header */
.site-header {
  background: var(--color-primary);
  color: #fff;
  height: 72px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-xs);
}
.header-inner {
  width: 100%;
  justify-content: space-between;
}
.site-logo {
  font-family: var(--font-family-display);
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 1px 8px rgba(255,142,66,0.24);
  letter-spacing: 1px;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.site-logo:focus-visible {
  outline: 2px dashed #fff;
}

.main-nav {
  position: relative;
}
.nav-list {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  list-style: none;
}
.nav-list a {
  color: #fff;
  font-weight: 700;
  font-size: var(--font-size-base);
  text-decoration: none;
  transition: color var(--transition), border-bottom var(--transition);
  padding: var(--space-2) var(--space-1);
  border-radius: var(--radius-sm);
}
.nav-list a:hover,
.nav-list a:focus-visible {
  background: var(--color-warning);
  color: var(--color-primary);
}

/* Mobile Nav */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-3);
  border-radius: var(--radius);
  z-index: 1100;
}
.nav-burger {
  display: inline-block;
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  position: relative;
}
.nav-burger::before, .nav-burger::after {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  position: absolute;
  left: 0;
  border-radius: 2px;
  transition: transform 0.25s;
}
.nav-burger::before { top: -9px; }
.nav-burger::after { top: 9px; }

@media (max-width: 860px) {
  .nav-list {
    display: none;
    flex-direction: column;
    background: var(--color-primary);
    position: absolute;
    right: 0;
    top: 68px;
    width: 220px;
    box-shadow: var(--shadow);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    z-index: 1200;
    gap: var(--space-4);
    padding: var(--space-5) 0;
  }
  .nav-list.open {
    display: flex;
    animation: fadeIn 0.20s;
  }
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.09);
  }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity:1; transform: none; }
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: #fff;
  padding-top: var(--space-6);
  padding-bottom: var(--space-4);
  position: relative;
  z-index: 0;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
}
.footer-brand {
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 1.3rem;
  padding-bottom: var(--space-4);
}
.footer-logo {
  color: #fff;
}
.footer-nav ul,
.footer-legal ul {
  padding: 0;
  list-style: none;
  margin: 0;
}
.footer-links li,
.footer-legal-links li {
  margin-bottom: var(--space-2);
}
.footer-links a,
.footer-legal-links a {
  color: #fff;
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  padding: var(--space-2) var(--space-3);
  display: inline-block;
}
.footer-links a:hover,
.footer-links a:focus-visible,
.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  background: var(--color-warning);
  color: var(--color-primary);
}
.footer-copyright {
  text-align: center;
  margin-top: var(--space-5);
  font-size: var(--font-size-xs);
  color: #fff;
}

@media (max-width: 800px) {
  .footer-content {
    flex-direction: column;
    gap: var(--space-2);
    align-items: flex-start;
  }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: linear-gradient(94deg, var(--color-gray-200) 90%, var(--color-primary) 100%);
  color: var(--color-text);
  box-shadow: 0 -2px 18px 0 rgba(255,142,66,0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s, visibility 0.4s;
}
.cookie-consent-banner[hidden] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cookie-consent-content {
  padding: var(--space-4);
  font-size: var(--font-size-sm);
  max-width: 420px;
  color: var(--color-text);
}
.cookie-consent-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-4) var(--space-2) var(--space-4) 0;
}
.cookie-consent-actions button {
  min-width: 120px;
  min-height: 40px;
  font-size: var(--font-size-base);
  font-weight: 700;
  border-radius: var(--radius);
  transition: background var(--transition);
  padding: var(--space-1) var(--space-4);
}
.cookie-consent-actions #cookie-reject {
  background: var(--color-warning);
  color: var(--color-text);
  border: none;
}
.cookie-consent-actions #cookie-reject:hover,
.cookie-consent-actions #cookie-reject:focus-visible {
  background: var(--color-danger);
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: var(--space-3);
    align-items: stretch;
  }
  .cookie-consent-content, .cookie-consent-actions {
    padding: var(--space-3);
    text-align: left;
  }
}

/* ========================================================== */
/*                 Header & Footer styles END                */
/* ========================================================== */

/* End of base.css */
