/* ============================================
   English Teacher — Purple/Lavender theme
   Mobile-first, friendly & professional
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS custom properties — purple/lavender palette */
:root {
  --bg-page: #faf5ff;           /* purple-50 */
  --bg-section-alt: #f3e8ff;    /* purple-100 */
  --text-primary: #312e81;      /* deep indigo */
  --text-body: #4c1d95;        /* purple-900, readable */
  --text-muted: #6b21a8;        /* purple-800 muted */
  --accent: #9333ea;            /* purple-600 primary */
  --accent-hover: #7e22ce;      /* purple-700 */
  --accent-light: #e9d5ff;      /* purple-200 */
  --white: #ffffff;
  --shadow-soft: 0 4px 6px -1px rgba(147, 51, 234, 0.08), 0 2px 4px -2px rgba(147, 51, 234, 0.05);
  --shadow-card: 0 10px 15px -3px rgba(147, 51, 234, 0.08), 0 4px 6px -4px rgba(147, 51, 234, 0.05);
  --shadow-card-hover: 0 20px 25px -5px rgba(147, 51, 234, 0.1), 0 8px 10px -6px rgba(147, 51, 234, 0.06);
  --radius: 1rem;                /* rounded-2xl */
  --radius-lg: 1.25rem;
}

body {
  font-family: "Heebo", sans-serif;
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hero (mobile-first) ---------- */
.hero-section {
  width: 100%;
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 50%, #312e81 100%);
  padding: 2.5rem 1.25rem 3rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg width="80" height="80" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="8" fill="rgba(255,255,255,0.06)"/><circle cx="60" cy="60" r="12" fill="rgba(255,255,255,0.04)"/></svg>');
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  color: var(--white);
  text-align: center;
}
.hero-text h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.hero-text p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 1.5rem;
  opacity: 0.95;
  font-weight: 400;
  max-width: 32ch;
  margin-inline: auto;
}

.hero-image {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}
.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 280px;
  background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
}

/* ---------- Buttons ---------- */
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: var(--shadow-soft);
}
.cta-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* ---------- Sections (generous whitespace) ---------- */
.section {
  width: 100%;
  padding: 3rem 1.25rem;
  background: var(--white);
}
.section:nth-child(even) {
  background: var(--bg-section-alt);
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* ---------- Why cards ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.why-card {
  background: var(--white);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(147, 51, 234, 0.08);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.why-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}
.why-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.why-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--accent) 0%, #6d28d9 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(147, 51, 234, 0.06);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.service-image {
  width: 100%;
  height: 10rem;
  background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-content {
  padding: 1.5rem 1.25rem;
}
.service-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}
.service-content p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(147, 51, 234, 0.06);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #6d28d9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-info h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
  font-weight: 600;
}
.testimonial-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.testimonial-text {
  color: var(--text-body);
  font-size: 0.9375rem;
  line-height: 1.65;
  font-style: italic;
}

/* ---------- About ---------- */
.about-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  border-radius: var(--radius-lg);
  min-height: 16rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.about-image-img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-content h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}
.about-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 1rem;
}

/* ---------- Contact ---------- */
.contact-section {
  padding: 3rem 1.25rem;
  background: var(--white);
}

.contact-form {
  max-width: 28rem;
  margin: 0 auto;
  background: var(--bg-page);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(147, 51, 234, 0.08);
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group:last-of-type {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9375rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--accent-light);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: "Heebo", sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--white);
  color: var(--text-body);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}
.form-group input:hover,
.form-group textarea:hover {
  border-color: #d8b4fe;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #f472b6;
}
.form-group textarea {
  min-height: 6rem;
  resize: vertical;
  font-family: inherit;
}

.submit-button {
  width: 100%;
  background: var(--accent);
  color: var(--white);
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: var(--shadow-soft);
  font-family: "Heebo", sans-serif;
}
.submit-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.submit-button:active {
  transform: translateY(0);
}
.submit-button:disabled {
  background: #a78bfa;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- Final CTA ---------- */
.final-cta {
  width: 100%;
  background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 100%);
  padding: 3rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="20" fill="rgba(255,255,255,0.04)"/></svg>');
  pointer-events: none;
}
.final-cta h2 {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

.final-cta-content {
  max-width: 36rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.cta-button-secondary {
  display: inline-block;
  background: var(--white);
  color: var(--text-primary);
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: var(--shadow-soft);
}
.cta-button-secondary:hover {
  background: var(--bg-page);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* ---------- Tablet and up ---------- */
@media (min-width: 640px) {
  .hero-section {
    padding: 3.5rem 1.5rem 4rem;
  }
  .hero-content {
    gap: 2.5rem;
  }
  .hero-image-placeholder {
    max-height: 320px;
  }
  .why-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .contact-form {
    padding: 2rem 1.5rem;
  }
  .cta-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 1.5rem;
  }
  .section-title {
    margin-bottom: 2.5rem;
  }
  .why-grid,
  .services-grid {
    margin-top: 2rem;
  }
  .about-section {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
  }
  .about-image {
    flex: 1;
    min-height: 20rem;
  }
  .about-image-img {
    min-height: 20rem;
  }
  .about-content {
    flex: 1;
  }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    text-align: right;
  }
  .hero-text p {
    margin-inline: 0;
  }
  .hero-image {
    flex: 1;
    max-width: 50%;
  }
  .hero-image-placeholder {
    aspect-ratio: 4/3;
    max-height: 380px;
  }
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .about-image {
    min-height: 24rem;
  }
  .about-image-img {
    min-height: 24rem;
    height: 65%;
    width: auto;
  }
  .contact-section {
    padding: 4rem 1.5rem;
  }
  .contact-form {
    padding: 2.5rem 2rem;
    max-width: 32rem;
  }
  .final-cta {
    padding: 4rem 1.5rem;
  }
  .final-cta h2 {
    margin-bottom: 2rem;
  }
}
