/* GilaM is a licensed font (Fontfabric) — add the purchased webfont files to
   assets/fonts/ and this @font-face will pick them up. Until then, body text
   falls back to the system sans-serif stack below. */
@font-face {
  font-family: 'GilaM';
  src: url('../assets/fonts/Gilam-Regular.woff2') format('woff2'),
       url('../assets/fonts/Gilam-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GilaM';
  src: url('../assets/fonts/Gilam-Medium.woff2') format('woff2'),
       url('../assets/fonts/Gilam-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GilaM';
  src: url('../assets/fonts/Gilam-SemiBold.woff2') format('woff2'),
       url('../assets/fonts/Gilam-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #F2F2F2;
  --color-surface: #FFFFFF;
  --color-text: #233942;
  --color-text-muted: #5B6B72;
  --color-primary: #73344B;
  --color-primary-dark: #5A2839;
  --color-accent: #C997AB;
  --color-accent-dark: #8A5A72;
  --color-border: #E2E2E2;
  --color-whatsapp: #25D366;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'GilaM', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 14px;
  --container-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-primary-dark);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-body);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-dark);
}

.btn--secondary {
  background: transparent;
  border-color: var(--color-accent-dark);
  color: var(--color-accent-dark);
}
.btn--secondary:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

.btn--text {
  padding: 0;
  border-radius: 0;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  font-size: 1.1rem;
  padding: 1em 2em;
}
.btn--whatsapp:hover {
  filter: brightness(0.95);
}

/* Language pop-up */
.lang-popup {
  position: fixed;
  inset: 0;
  background: rgba(43, 38, 32, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.lang-popup[hidden] {
  display: none;
}
.lang-popup__card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.lang-popup__heading {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}
.lang-popup__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.lang-popup__btn {
  padding: 0.85em 1em;
  border-radius: 10px;
  border: 2px solid var(--color-border);
  background: var(--color-bg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
}
.lang-popup__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(35, 57, 66, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #F2F2F2;
  text-decoration: none;
}
.main-nav {
  display: none;
  gap: 1.5rem;
}
.main-nav a {
  color: #F2F2F2;
  text-decoration: none;
  font-weight: 500;
}
.main-nav a:hover {
  color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switcher {
  display: flex;
  gap: 4px;
}
.lang-switcher__btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  border-radius: 6px;
  padding: 0.35em 0.6em;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: #F2F2F2;
}
.lang-switcher__btn.is-active {
  background: var(--color-accent);
  color: var(--color-text);
  border-color: var(--color-accent);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #F2F2F2;
  display: block;
}

/* Persona selector */
.persona-selector {
  padding: 2.5rem 0 1rem;
  text-align: center;
}
.persona-selector__heading {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}
.persona-selector__cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}
.persona-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.persona-card__label {
  font-weight: 700;
  font-size: 1.05rem;
}
.persona-card__desc {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}
.persona-card.is-active {
  border-color: var(--color-primary);
  background: #F7ECF0;
}

/* Hero */
.hero {
  padding: 3rem 0 3.5rem;
  text-align: center;
}
.hero__eyebrow {
  color: var(--color-accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.hero__title {
  font-size: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero__subtitle {
  max-width: 560px;
  margin: 0 auto 1.75rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Solutions */
.solutions {
  background: var(--color-surface);
  padding: 3rem 0;
}
.solutions__title {
  font-size: 1.6rem;
  text-align: center;
}
.solutions__intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 1.5rem;
  color: var(--color-text-muted);
}
.solutions__points {
  max-width: 640px;
  margin: 0 auto 2rem;
  padding: 0;
  list-style: none;
}
.solutions__points li {
  padding: 0.75rem 0 0.75rem 1.75rem;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}
.solutions__points li:last-child {
  border-bottom: none;
}
.solutions__points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent-dark);
  font-weight: 700;
}
.solutions {
  text-align: center;
}

/* Section heading shared */
.section-heading {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

/* Services */
.services {
  padding: 3.5rem 0;
}
.services__grid {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 12vw 1rem;
  margin: 0 -20px;
  -webkit-overflow-scrolling: touch;
}
.service-card {
  position: relative;
  flex: 0 0 78%;
  scroll-snap-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transform: scale(0.92);
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
  cursor: pointer;
}
.service-card.is-active {
  transform: scale(1);
  box-shadow: 0 14px 34px rgba(35, 57, 66, 0.15);
}
.service-card__badge {
  position: absolute;
  top: -12px;
  right: 1.25rem;
  background: var(--color-accent);
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3em 0.9em;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.service-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--radius) - 6px);
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  margin-bottom: 1.25rem;
}
.service-card h3 {
  font-size: 1.15rem;
}
.service-card p {
  color: var(--color-text-muted);
}

/* About Teacher */
.about-teacher {
  padding: 3.5rem 0;
}
.about-teacher__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.about-teacher__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-width: 320px;
  margin: 0 auto;
  border-radius: var(--radius);
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}
.about-teacher__text {
  text-align: center;
}
.about-teacher__text .section-heading {
  margin-bottom: 1rem;
}
.about-teacher__text p {
  color: var(--color-text-muted);
}
.about-teacher__credentials {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.about-teacher__credentials li {
  padding-left: 1.5rem;
  position: relative;
  text-align: left;
  color: var(--color-text);
}
.about-teacher__credentials li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent-dark);
  font-weight: 700;
}

/* Testimonials */
.testimonials {
  background: var(--color-surface);
  padding: 3.5rem 0;
}
.testimonials__carousel {
  max-width: 640px;
  margin: 0 auto;
  overflow: hidden;
}
.testimonials__track {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonial-card {
  flex: 0 0 100%;
  box-sizing: border-box;
  margin: 0;
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  text-align: center;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.testimonial-card p {
  font-style: italic;
  margin-bottom: 0.75rem;
}
.testimonial-card cite {
  font-weight: 700;
  font-style: normal;
  color: var(--color-accent-dark);
}
.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.testimonials__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
}
.testimonials__dot.is-active {
  background: var(--color-primary);
}

/* Contact */
.contact {
  padding: 3.5rem 0;
  text-align: center;
}
.contact__inner {
  max-width: 560px;
}
.contact__secondary {
  margin-top: 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* FAQ */
.faq {
  background: var(--color-surface);
  padding: 3.5rem 0;
}
.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  background: var(--color-bg);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}
.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.site-footer__inner p {
  margin: 0.25em 0;
}

/* Responsive */
@media (min-width: 640px) {
  .persona-selector__cards {
    grid-template-columns: 1fr 1fr;
  }
  .services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    padding: 0;
    margin: 0;
  }
  .service-card {
    flex: unset;
    transform: scale(1);
  }
  .service-card:hover,
  .service-card.is-active {
    transform: scale(1.06);
    z-index: 2;
    box-shadow: 0 16px 40px rgba(35, 57, 66, 0.18);
  }
  .service-card.is-dimmed {
    transform: scale(0.96);
    opacity: 0.8;
  }
  .hero__title {
    font-size: 2.5rem;
  }
  .about-teacher__inner {
    grid-template-columns: 280px 1fr;
    text-align: left;
  }
  .about-teacher__text {
    text-align: left;
  }
  .about-teacher__text .section-heading {
    text-align: left;
  }
}

@media (min-width: 860px) {
  .main-nav {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 859px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1rem 20px;
    gap: 0.75rem;
  }
  .main-nav a {
    color: var(--color-text);
  }
  .main-nav a:hover {
    color: var(--color-primary-dark);
  }
  .main-nav:not(.is-open) {
    display: none;
  }
  .main-nav.is-open {
    display: flex;
  }
}
