/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  /* 100% = 16px baseline for rem units */
}

/* Accessibility: Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
  width: auto;
  height: auto;
  background: #ffffff;
  color: #000000;
  padding: 8px 12px;
}

/* Main Body Styling */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: radial-gradient(circle at 0% 0%,
      rgba(238, 233, 247, 0.6),
      rgba(255, 246, 229, 0.585));
  color: #444;
  line-height: 1.6;
  font-family: 'GlacialIndifference-Bold', 'Teachers', sans-serif;
  font-size: 1rem;
  /* explicit baseline for rem measurements */
}

/* ===== HOME PAGE STYLES ===== */

/* Hero Section */
.hero {
  text-align: center;
  padding: 40px 20px 23px;
  /* Adjusted padding for better spacing */
  position: relative;
}

.hero h1 {
  font-family: "Sue Ellen Francisco", cursive;
  font-size: 2.5rem;
  /* Larger to match image */
  max-width: 800px;
  margin: 0 auto 50px;
  color: #5d4b4b;
  line-height: 1.08;
  /* tighter but readable for headings */
}

.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.home-landing-page img {
  max-height: 150px;
  width: auto;
  border-radius: 15px;
}

.home-landing-page:hover {
  transform: translateY(-16px)
}

.hero-values {
  text-align: left;
  font-family: "HandyCasual", "Happy monkey", sans-serif;
  color: #5d8a8a;
  /* Grayer to match image */
  font-weight: 700;
  margin-left: 30px;
  /* Gap between image and text */
  letter-spacing: 0.06em;
  /* modest tracking for readability */
  line-height: 1.3;
}

.value-item {
  margin-bottom: 15px;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  /* slightly more for uppercase labels */
  line-height: 1.2;
  text-transform: uppercase;
}

.explore-btn {
  margin-top: 20px;
  background: #9b59b6;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  font-size: 1.25rem;
  /* slightly larger for primary CTA */
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: 'GlacialIndifference-Bold', "Teachers", "Lexend", "Didact Gothic", Helvetica, sans-serif;
  letter-spacing: 0.06em;
}

.explore-btn:hover {
  background: #7d3c98;
}

/* ===== New sections styling: Services, Approach, Testimonials ===== */
.section {
  padding: 30px 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center
}

.section h2 {
  font-size: 1.75rem;
  color: #c198a2;
  margin-bottom: 12px;
  text-align: center;
  font-family: "HandyCasual", "Happy monkey", sans-serif;
}

.section h3 {
  font-size: 1.5rem;
  color: #fabd56;
  margin-bottom: 12px;
  text-align: center;
  font-family: "HandyCasual", "Happy monkey", sans-serif;
  letter-spacing: 0.06em;
  line-height: 1.3;

}

.section p {
  margin: 0 auto 18px auto;
  max-width: 60ch;
  color: #5d4b4b;
  text-align: center;
  font-size: 1.05rem;
  font-family: 'GlacialIndifference-Bold', "Teachers", "Lexend", "Didact Gothic", Helvetica, sans-serif;
  letter-spacing: 0.06em;
}

/* Services grid */
.services-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0;
  margin: 24px 0 8px 0;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(21, 21, 21, 0.06);
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(21, 21, 21, 0.08);
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
   font-family: 'GlacialIndifference-Bold', "Teachers", "Lexend", "Didact Gothic", Helvetica, sans-serif;
  letter-spacing: 0.06em;
  color: #5d4b4b;
}

.service-card a {
  color: #9b59b6;
  text-decoration: none;
}

.service-desc {
  color: #5a5a5a;
  font-size: 0.97rem;
}

/* CTA style */
.cta {
  display: inline-block;
  margin-top: 20px;
  background: #9b59b6;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  font-size: 1.25rem;
  /* slightly larger for primary CTA */
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: 'GlacialIndifference-Bold', "Teachers", "Lexend", "Didact Gothic", Helvetica, sans-serif;
  letter-spacing: 0.06em;
  text-decoration: none;
  font-weight: 700;
  
}

.cta:hover {
  background: #7d3c98;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}

.testimonials-grid--single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto 20px;
}

.testimonial {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 6px 18px rgba(21, 21, 21, 0.05);
}

.testimonial blockquote {
  margin: 0;
  font-style: italic;
  color: #333;
}

.testimonial-author {
  margin-top: 12px;
  font-weight: 700;
  color: #5d4b4b;
  font-size: 0.95rem;
}

.testimonial-author a {
  color: #9b59b6;
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {

  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 40px 16px;
  }
}

/* Accessibility: visible focus states */
.service-card a:focus,
.cta:focus {
  outline: 3px solid rgba(155, 89, 182, 0.18);
  outline-offset: 3px;
}

/* ====== MOBILE NAV STYLING ====== */

/* Tablet / small desktop tweaks */
@media (max-width: 1200px) {
  .hero {
    padding: 70px 18px 80px;
  }

  .hero h1 {
    font-size: 2.2rem;
    max-width: 720px;
  }

  .home-landing-page img {
    max-height: 140px;
  }
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 2rem;
    /* Slightly smaller on mobile */
  }

  .hero-illustration {
    flex-direction: column;
    /* Stack image and values on mobile */
  }

  .hero-values {
    margin-left: 0;
    margin-top: 30px;
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    line-height: 1.3;
  }

  .value-item {
    text-align: center;
  }

  .home-landing-page img {
    max-height: 140px;
  }

  .explore-btn {
    font-size: 1.25rem;
    padding: 12px 22px;
  }
}

/* Small screens (mobile phones) */
@media (max-width: 480px) {
  .hero {
    padding: 50px 12px 60px;
  }

  .hero h1 {
    font-size: 1.6rem;
    max-width: 100%;
    margin-bottom: 28px;
  }

  .home-landing-page img {
    max-height: 120px;
    width: auto;
  }

  .hero-values {
    margin-left: 0;
    margin-top: 20px;
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.04em;
    line-height: 1.3;
  }

  .value-item {
    font-size: 1rem;
    letter-spacing: 0.08em;
  }

  .explore-btn {
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 20px;
  }

  /* Remove transform hover effect on touch devices in favor of no animation */
  .home-landing-page:hover {
    transform: none;
  }
}

/* Prefer hover styles only on devices that support hover */
@media (hover: hover) and (pointer: fine) {
  .home-landing-page:hover {
    transform: translateY(-16px);
  }
}