/* KidSquad Website - Stylesheet */
:root {
  --primary-color: #C43AB9;
  --primary-dark: #a02e96;
  --primary-light: #e8c4e0;
  --text-color: #333;
  --light-bg: #f5f5f5;
  --white: #fff;
  --accent-color: #ff6b9d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', serif;
  color: var(--primary-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1200px;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}

header.header-hidden {
  transform: translate(-50%, -150%);
}

.header-container {
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  background: var(--primary-color);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.mobile-menu-toggle:hover {
  background: var(--primary-dark);
}

.logo img {
  height: 50px;
  display: block;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--text-color);
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: var(--primary-color);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  padding-top: 120px; /* Offset for floating header */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero-btns .btn-outline {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.hero-btns .btn-outline:hover {
  background-color: white;
  color: var(--primary-color);
}

/* Statistics Bar */
.stats-bar {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  margin-top: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  color: var(--text-color);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #666;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-left: 5px solid var(--primary-color);
  font-style: italic;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.testimonial-card p {
  margin-bottom: 0;
  color: #444;
  font-size: 1.1rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.2);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Sections */
section {
  padding: 5rem 0;
}

section.light-bg {
  background-color: var(--light-bg);
}

section.primary-bg {
  background-color: var(--primary-color);
  color: white;
}

section.primary-bg h2 {
  color: white;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  transform: translateY(-8px);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
  text-align: center;
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.card p {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-decoration: none;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: scale(1.02);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(196, 58, 185, 0.1);
}

/* FAQ */
.faq-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background-color: var(--primary-dark);
}

.faq-answer {
  background-color: var(--light-bg);
  padding: 1rem;
  display: none;
  color: #666;
}

.faq-answer.show {
  display: block;
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.two-column img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.two-column.reverse {
  direction: rtl;
}

.two-column.reverse > * {
  direction: ltr;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255,255,255,0.9);
  transition: color 0.3s;
}

.footer-section a:hover {
  color: white;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Messages */
.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: none;
}

.success-message.show {
  display: block;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: none;
}

.error-message.show {
  display: block;
}

/* Enhanced Sections */
.welcome-section {
  background: linear-gradient(135deg, var(--light-bg) 0%, rgba(196, 58, 185, 0.05) 100%);
  padding: 6rem 2rem;
}

.welcome-section .container {
  max-width: 900px;
}

.welcome-section h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
}

.welcome-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

/* Contact Section Enhancement */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(196, 58, 185, 0.08) 100%);
  border-radius: 12px;
}

.contact-info h2 {
  text-align: left;
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.contact-form-wrapper {
  background: white;
  border: 2px solid var(--light-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contact-form-wrapper h3 {
  margin-bottom: 1.5rem;
  text-align: left;
}

/* Activity Grid Enhancement */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.activity-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.activity-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.activity-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.activity-card-content {
  padding: 1.5rem;
}

.activity-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.activity-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .two-column {
    gap: 2rem;
    margin-bottom: 3rem;
  }

  section h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .header-container {
    padding: 0.75rem 1.5rem;
  }

  nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  nav.show {
    display: flex;
  }

  nav a {
    padding: 1rem;
    border-bottom: 1px solid #f5f5f5;
  }

  nav a:last-child {
    border-bottom: none;
  }

  .hero-btns {
    flex-direction: column;
    padding: 0 2rem;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2rem;
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .two-column.reverse {
    direction: ltr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .activity-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 2rem 0;
  }

  section h2 {
    font-size: 1.8rem;
  }

  .contact-info {
    padding: 1.5rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .welcome-section {
    padding: 3rem 1.5rem;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-1 { margin-bottom: 1rem; }

.max-width-2xl {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.max-width-3xl {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Partners Section */
.partners-section {
    background-color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 2rem;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    max-width: 200px;
}

.partner-item:hover {
    transform: translateY(-5px);
}

.partner-item img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-item p {
    font-weight: bold;
    color: var(--text-color);
    font-size: 0.9rem;
}
