/*
Theme Name: Kids Adventures
Theme URI: https://kidsadventures.bg
Author: Kids Adventures
Author URI: https://kidsadventures.bg
Description: A modern, clean, white minimalist WordPress theme for Kids Adventures children entertainment and party agency in Sofia.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kids-adventures
Tags: white, minimalist, responsive, kids, events, party, agency
*/

/* ==========================================================================
   Design Tokens (CSS Variables) - White Minimalist System
   ========================================================================== */
:root {
  /* Surface & Background Colors */
  --color-bg-body: #FFFFFF;
  --color-bg-surface: #FFFFFF;
  --color-bg-subtle: #F8FAFC;        /* Slate 50 - cards & alternating rows */
  --color-bg-muted: #F1F5F9;         /* Slate 100 - chips & badges */
  --color-bg-backdrop: rgba(15, 23, 42, 0.7);

  /* Typography Colors (WCAG AAA compliant: Slate 900 / 700 / 500) */
  --color-text-main: #0F172A;        /* Slate 900 - AAA contrast ratio 15.8:1 */
  --color-text-body: #334155;        /* Slate 700 - AAA contrast ratio 8.2:1 */
  --color-text-muted: #64748B;       /* Slate 500 - AA contrast ratio 4.6:1 */
  --color-text-inverse: #FFFFFF;

  /* Subtle Playful Accents (Warm & Elegant, WCAG AA >= 5.0:1 against light surfaces) */
  --color-accent-coral: #C92A37;     /* Primary Energy / Primary Action button */
  --color-accent-coral-hover: #A8202C;
  --color-accent-coral-light: #FFF1F2;
  --color-accent-amber: #F59E0B;     /* Magic / Stars / Badges */
  --color-accent-amber-light: #FEF3C7;
  --color-accent-blue: #3B82F6;      /* Adventure / Trust */
  --color-accent-blue-light: #EFF6FF;
  --color-accent-green: #047857;     /* Outdoor / Safety (>= 5.0:1 on white) */
  --color-accent-green-light: #ECFDF5;

  /* Line & Border Tokens */
  --color-border-subtle: rgba(15, 23, 42, 0.08);
  --color-border-hover: rgba(15, 23, 42, 0.22);
  --color-border-focus: #0F172A;

  /* Typography Font Stacks */
  --font-display: 'Manrope', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shorthand / Legacy Compatibility aliases */
  --color-bg: var(--color-bg-body);
  --color-surface: var(--color-bg-surface);
  --color-text: var(--color-text-main);
  --color-primary: var(--color-accent-coral);
  --color-accent: var(--color-accent-amber);
  --color-border: var(--color-border-subtle);
  --font-heading: var(--font-display);

  /* Fluid Typography Scale (WCAG 1.4.4 compliant, max <= 2.5x min) */
  --font-hero: clamp(2.25rem, 1.4rem + 3.8vw, 4.25rem);  /* 36px - 68px */
  --font-h1: clamp(1.85rem, 1.25rem + 2.6vw, 3.25rem);   /* 30px - 52px */
  --font-h2: clamp(1.5rem, 1.15rem + 1.6vw, 2.35rem);    /* 24px - 38px */
  --font-h3: clamp(1.2rem, 1.05rem + 0.8vw, 1.65rem);    /* 19px - 26px */
  --font-lead: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);    /* 17px - 20px */
  --font-body-size: 1rem;                                /* 16px */
  --font-small: 0.875rem;                                /* 14px */
  --font-caption: 0.75rem;                               /* 12px */

  /* Spacing Scale */
  --space-2xs: 0.25rem;  /* 4px */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2.5rem;    /* 40px */
  --space-xl: clamp(3rem, 2rem + 3.5vw, 5rem);           /* 48px - 80px */
  --space-2xl: clamp(4.5rem, 3rem + 5vw, 7.5rem);        /* 72px - 120px */

  /* Elevation Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 10px 30px -4px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 20px 40px -6px rgba(15, 23, 42, 0.12);
  --shadow-dropdown: 0 12px 28px -4px rgba(15, 23, 42, 0.14);
  --shadow-modal: 0 25px 60px -12px rgba(15, 23, 42, 0.35);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Modern CSS Reset & Global Layout Rules
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg-body);
  color: var(--color-text-body);
  font-family: var(--font-body);
  font-size: var(--font-body-size);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* ==========================================================================
   Typography Rules
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text-main);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--font-h1); }
h2 { font-size: var(--font-h2); }
h3 { font-size: var(--font-h3); }

p {
  text-wrap: pretty;
  max-width: 70ch;
  line-height: 1.65;
}

/* ==========================================================================
   Container & Layout Elements
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-align: center;
  cursor: pointer;
  min-height: 48px;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-accent-coral);
  color: var(--color-text-inverse);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-accent-coral-hover);
  color: var(--color-text-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-main);
  border: 1.5px solid var(--color-border-hover);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--color-text-main);
  background-color: var(--color-bg-subtle);
  color: var(--color-text-main);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-height: 40px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  min-height: 54px;
}

.w-full {
  width: 100%;
}

/* Accessibility focus ring */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 3px;
}

/* Utility classes */
.text-center { text-align: center; }
.sr-only,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  word-wrap: normal;
}

.skip-link.screen-reader-text {
  color: var(--color-text-inverse);
  transition: none;
}

.skip-link.screen-reader-text:focus,
.skip-link.screen-reader-text:focus-visible {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1.25rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  background-color: var(--color-text-main);
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: var(--shadow-modal);
  outline: 3px solid var(--color-accent-coral);
  outline-offset: 2px;
}
