/*
  KidSentric Website Styles
  A modern, responsive layout using flexbox and CSS grid.
  Colors and spacing are defined with CSS variables for easy adjustment.
*/

:root {
  --primary-color: #0d5367; /* deep blue reminiscent of the presentation */
  --secondary-color: #00a1a1; /* calming teal accent */
  --dark-text: #22313f;
  --light-text: #f7fafc;
  --background-light: #f4f8fb;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--dark-text);
  background-color: #ffffff;
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

/* Container to center content */
.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Header & Navigation */
.site-header {
  background: #ffffff;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.logo img {
  width: 160px;
}
.main-nav {
  position: relative;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 500;
  transition: color 0.2s ease;
}
.main-nav a:hover {
  color: var(--secondary-color);
}

/* Hamburger menu button, hidden on desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.25rem;
}

/* Hero Section */
.hero {
  position: relative;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  text-align: center;
  overflow: hidden;
}
.hero-overlay {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.hero p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn.primary {
  background: var(--secondary-color);
  color: #fff;
}
.btn.primary:hover {
  /* Use a slightly darker shade for the hover state. CSS doesn't support
     darken() natively, so set a manually adjusted color. */
  background: #008989;
}
.btn.secondary {
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}
.btn.secondary:hover {
  background: var(--secondary-color);
  color: #fff;
}

/* Sections generic */
section {
  padding: 4rem 0;
}
section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* About Section */
.about p {
  margin-bottom: 1rem;
  font-size: 1rem;
  max-width: 800px;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.feature-item {
  background: var(--background-light);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}
.feature-item:hover {
  transform: translateY(-4px);
}
.feature-item .icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}
.feature-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.feature-item p {
  font-size: 0.95rem;
  color: #556677;
}

/* Pricing Section */
.pricing-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 330px;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
.pricing-card .price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}
.pricing-card .price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: #6b7280;
}
.pricing-card .equipment-note {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: -0.5rem;
  margin-bottom: 0.75rem;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  text-align: left;
}
.pricing-card ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: #374151;
}
.pricing-card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary-color);
}
.pricing-card .btn {
  margin-top: auto;
}
.pricing-card .badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--secondary-color);
  color: #fff;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.pricing-card.recommended {
  border: 2px solid var(--secondary-color);
  transform: translateY(-6px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}

/* Pros & Cons Section */
.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.pros, .cons {
  background: var(--background-light);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
}
.pros h3, .cons h3 {
  margin-top: 0;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.pros ul, .cons ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pros ul li, .cons ul li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #374151;
}
.pros ul li i, .cons ul li i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}
.pros ul li i {
  color: var(--secondary-color);
}
.cons ul li i {
  color: #e63946; /* red for warnings */
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}
.contact-details p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.contact-details i {
  color: var(--secondary-color);
  margin-right: 0.5rem;
}
.contact-details a {
  color: var(--primary-color);
  text-decoration: none;
  word-break: break-all;
}
.contact-details a:hover {
  text-decoration: underline;
}
.contact-form {
  background: var(--background-light);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
}
.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  margin-bottom: 0.25rem;
  font-weight: 500;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  resize: vertical;
  font-family: 'Montserrat', sans-serif;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 161, 161, 0.2);
}
.contact-form button {
  margin-top: 0.5rem;
  width: 100%;
}

/* Footer */
.site-footer {
  background: var(--primary-color);
  color: var(--light-text);
  text-align: center;
  padding: 1rem 0;
}
.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Utility classes */
.equipment-note {
  font-style: italic;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  /* Show hamburger and hide the desktop navigation */
  .menu-toggle {
    display: block;
  }

  /* Collapse the navigation links into a vertical dropdown */
  .main-nav ul {
    /* Hide the nav by default on mobile */
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    width: 200px;
    padding: 1rem;
    gap: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    /* Ensure the dropdown appears above other content */
    z-index: 200;
  }

  /* When nav is open, display it */
  .main-nav ul.open {
    display: flex;
  }
}