/*
 * Land Park Montessori - Main Stylesheet
 * Modern Montessori Preschool Website
 * Following Kidz Theme Structure
 */

/* ========================================
   GOOGLE FONTS IMPORT
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ======================================== */
:root {
  /* Brand Colors */
  --color-primary: #FF6B6B;
  /* Coral */
  --color-secondary: #20B2AA;
  /* Teal/Turquoise */
  --color-accent-1: #4ECDC4;
  /* Sky Blue */
  --color-accent-2: #FFE66D;
  /* Sunshine Yellow */
  --color-success: #51CF66;
  /* Green */

  /* Neutral Colors */
  --color-bg-primary: #FAFAFA;
  /* Off-white */
  --color-bg-card: #FFFFFF;
  /* White */
  --color-bg-cream: #FFF8F0;
  /* Light cream */
  --color-bg-dark: #1A3A3A;
  /* Dark Teal/Navy */
  --color-text-primary: #1A202C;
  /* Dark Navy */
  --color-text-secondary: #718096;
  /* Gray */
  --color-border: #F0F0F0;
  /* Light gray */

  /* Typography */
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Font Sizes - Desktop */
  --font-size-h1: clamp(36px, 5vw, 64px);
  --font-size-h2: clamp(32px, 4vw, 48px);
  --font-size-h3: clamp(24px, 3vw, 32px);
  --font-size-body: clamp(16px, 1.5vw, 18px);
  --font-size-small: 14px;
  --font-size-tiny: 13px;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 40px;
  --spacing-2xl: 60px;
  --spacing-3xl: 100px;

  /* Border Radius */
  --radius-sm: 15px;
  --radius-md: 20px;
  --radius-lg: 25px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 20px 60px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index */
  --z-header: 1000;
  --z-dropdown: 1100;
  --z-modal: 1200;
  --z-floating: 900;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

.text-coral {
  color: var(--color-primary);
}

.text-white {
  color: white;
}

.text-gray {
  color: var(--color-text-secondary);
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-3xl) 0;
}

.section-cream {
  background-color: var(--color-bg-cream);
}

.section-white {
  background-color: var(--color-bg-card);
}

.section-dark {
  background-color: var(--color-bg-dark);
  color: white;
}

/* Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 16px 36px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: #FF5252;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: white;
}

.btn-white {
  background-color: white;
  color: var(--color-primary);
}

.btn-white:hover {
  transform: scale(1.05);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ========================================
   BADGES & PILLS
   ======================================== */
.badge {
  display: inline-block;
  padding: 8px 20px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--font-size-small);
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.badge-coral {
  background-color: rgba(255, 107, 107, 0.1);
  color: var(--color-primary);
}

.badge-white {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-popular {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--color-primary);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-small);
}

/* ========================================
   CARDS
   ======================================== */
.card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl) var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card-border {
  border: 2px solid var(--color-border);
}

.card-border:hover {
  border-color: var(--color-primary);
}

/* Icon Container */
.icon-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  font-size: 40px;
}

.icon-coral {
  background-color: rgba(255, 107, 107, 0.15);
  color: var(--color-primary);
}

.icon-green {
  background-color: rgba(81, 207, 102, 0.15);
  color: var(--color-success);
}

.icon-blue {
  background-color: rgba(78, 205, 196, 0.15);
  color: var(--color-accent-1);
}

.icon-yellow {
  background-color: rgba(255, 230, 109, 0.15);
  color: var(--color-accent-2);
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-subtitle {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: var(--font-size-h2);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

.section-dark .section-title {
  color: white;
}

/* ========================================
   FEATURE LIST
   ======================================== */
.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
}

.feature-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: rgba(255, 107, 107, 0.15);
  color: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
  font-weight: 700;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */
@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-h1: 36px;
    --font-size-h2: 32px;
    --font-size-h3: 24px;
    --spacing-3xl: 60px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .btn {
    padding: 14px 28px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }
}

/* ========================================
   NOTIFICATIONS
   ======================================== */
.notification-toast {
  position: fixed;
  top: 100px;
  /* Below header */
  right: 20px;
  background-color: var(--color-bg-card);
  color: var(--color-text-primary);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: var(--z-modal);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-width: 400px;
  border-left: 6px solid var(--color-primary);
  font-family: var(--font-body);
  font-weight: 500;
}

.notification-toast.show {
  transform: translateX(0);
}

.notification-toast.success {
  border-left-color: var(--color-success);
}

.notification-toast.error {
  border-left-color: var(--color-primary);
}

.notification-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.notification-toast.success .notification-icon {
  color: var(--color-success);
}

.notification-toast.error .notification-icon {
  color: var(--color-primary);
}

.notification-message {
  font-size: 15px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .notification-toast {
    top: auto;
    bottom: 20px;
    right: 20px;
    left: 20px;
    max-width: none;
    transform: translateY(120%);
  }

  .notification-toast.show {
    transform: translateY(0);
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block !important;
  }
}