/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
html {
  scrollbar-gutter: stable;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.7;
  color: #2c2c2c;
  background: #FBE1BF;
}

a {
  color: #2c2c2c;
  text-decoration: none;
}

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

/* Header */
header {
  padding: 1.5em 2.5em;
}

nav {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5em;
}

nav a:hover {
  opacity: 0.6;
}

.nav-links a.active {
  border-bottom: 1.5px solid #2c2c2c;
  padding-bottom: 0.15em;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #2c2c2c;
  padding: 0.25em;
  line-height: 1;
}

/* Main */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2.5em 4em;
}

/* Hero */
.hero {
  padding: 4em 0 3em;
  display: flex;
  gap: 3em;
  align-items: flex-start;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 0 0 403px;
}

.hero-image img {
  width: 100%;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1em;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2em;
}

.btn {
  display: inline-block;
  padding: 0.8em 2em;
  border: 1.5px solid #2c2c2c;
  background: #F2F3F5;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: #2c2c2c;
  color: #faf9f7;
  opacity: 1;
}

/* Image feature */
.image-feature {
  margin-bottom: 3em;
}

.image-feature img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

/* Page intro */
.page-intro {
  padding: 4em 0 2em;
}

.page-intro h1 {
  font-size: 2.5rem;
  font-weight: 400;
}

/* About page */
.about-content::after {
  content: '';
  display: table;
  clear: both;
}

.about-image {
  float: right;
  width: 40%;
  margin: 0 0 1.5em 2em;
}

.about-image img {
  width: 100%;
  object-fit: cover;
}

.about-content .text p {
  color: #555;
  margin-bottom: 1em;
}

.about-content .text h2 {
  margin-top: 1.5em;
}

.about-content .text h2:first-child {
  margin-top: 0;
}

/* About lessons */
.about-lessons {
  display: flex;
  gap: 3em;
  align-items: flex-start;
  padding-bottom: 3em;
  border-bottom: 1px solid #e0ddd8;
  margin-bottom: 3em;
}

.about-lessons .text {
  flex: 1;
}

.about-lessons .image {
  flex: 0 0 280px;
}

.about-lessons .image img {
  width: 100%;
}

h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75em;
}

.about-lessons p {
  color: #555;
  margin-bottom: 1em;
}

/* Pricing */
.pricing {
  padding-bottom: 3em;
  border-bottom: 1px solid #e0ddd8;
  margin-bottom: 3em;
}

.pricing-cards {
  display: flex;
  gap: 1.5em;
  margin: 1.5em 0 2em;
}

.card {
  flex: 1;
  padding: 2em 1.5em;
  border: 1px solid #e0ddd8;
  text-align: center;
}

.card h3 {
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5em;
  color: #777;
}

.card .price {
  font-size: 2rem;
  font-weight: 400;
}

.card .price span {
  font-size: 0.85rem;
  color: #777;
  display: block;
  margin-top: 0.25em;
}

.pricing-note {
  color: #777;
  font-size: 0.95rem;
  margin-top: 0.5em;
}

/* Contact */
.contact {
  max-width: 480px;
}

.contact form {
  margin-top: 1em;
}

.contact label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3em;
  margin-top: 1.25em;
}

.contact label:first-of-type {
  margin-top: 0;
}

.required {
  color: #b44;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 0.7em 0.8em;
  border: 1px solid #d0cdc8;
  background: #fff;
  font-family: inherit;
  /* Prevent iOS auto-zoom on focus: min 16px */
  font-size: max(1rem, 16px);
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: #2c2c2c;
}

.contact textarea {
  height: 120px;
  resize: vertical;
}

.char-count {
  display: block;
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.25em;
}

.contact button {
  margin-top: 1.5em;
  padding: 0.8em 2em;
  background: none;
  border: 1.5px solid #2c2c2c;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.contact button:hover {
  background: #2c2c2c;
  color: #faf9f7;
}

/* Thank you */
.thank-you p {
  color: #555;
  margin-bottom: 2em;
}

/* Testimonials */
.testimonials {
  padding: 3em 0;
  border-top: 1px solid #e0ddd8;
  margin-top: 3em;
}

.testimonials h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5em;
  text-align: center;
}

.carousel {
  max-width: 700px;
  margin: 0 auto;
}

.carousel-main {
  display: flex;
  align-items: center;
  gap: 1em;
}

.carousel-track {
  position: relative;
  min-height: 200px;
  flex: 1;
}

.testimonial-card {
  display: none;
  padding: 2em 1.5em;
  border: 1px solid #e0ddd8;
  background: #F2F3F5;
  margin: 0;
  text-align: center;
}

.testimonial-card.active {
  display: block;
}

.testimonial-card p {
  font-style: italic;
  color: #555;
  margin-bottom: 1em;
}

.testimonial-card cite {
  font-style: normal;
  font-size: 0.9rem;
  color: #777;
}

.carousel-btn {
  background: none;
  border: 1.5px solid #e0ddd8;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  font-size: 1.1rem;
  cursor: pointer;
  color: #2c2c2c;
  transition: background 0.2s, color 0.2s;
}

.carousel-btn:hover {
  background: #2c2c2c;
  color: #faf9f7;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin-top: 1.5em;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  background: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.dot.active {
  background: #2c2c2c;
  border-color: #2c2c2c;
}

/* FAQ */

.faq-item {
  border-bottom: 1px solid #e0ddd8;
  padding: 1.25em 0;
}

.faq-item:first-child {
  border-top: 1px solid #e0ddd8;
}

.faq-item summary {
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25em 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: #999;
  margin-left: 1em;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  color: #555;
  margin-top: 0.75em;
}

/* Footer */
footer {
  text-align: center;
  padding: 2em;
  font-size: 0.85rem;
  color: #999;
}

/* Responsive */
@media (max-width: 700px) {
  header {
    padding: 1.25em 1.5em;
  }

  main {
    padding: 0 1.5em 3em;
  }

  .hero {
    padding: 2.5em 0 2em;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 1.5em;
    background: #FBE1BF;
    border: 1px solid #e0ddd8;
    padding: 0.75em 1.5em;
    gap: 0.5em;
  }

  .nav-links.open {
    display: flex;
  }

  nav {
    position: relative;
  }

  body {
    font-size: 16px;
  }

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

  .hero {
    padding: 2em 0 1.5em;
    flex-direction: column;
  }

  .hero-image {
    flex: none;
    width: 100%;
  }

  .page-intro {
    padding: 2.5em 0 1.5em;
  }

  .testimonials {
    padding: 2em 0;
    margin-top: 2em;
  }

  .about-image {
    float: none;
    width: 100%;
    margin: 0 0 1.5em 0;
  }

  .about-lessons {
    padding-bottom: 2em;
    margin-bottom: 2em;
    flex-direction: column;
  }

  .pricing {
    padding-bottom: 2em;
    margin-bottom: 2em;
  }

  .about-lessons .image {
    flex: none;
    width: 100%;
  }

  .pricing-cards {
    flex-direction: column;
  }

  .card {
    padding: 1.5em 1.25em;
  }
}
