/* === CSS Custom Properties === */
:root {
  --navy: #1B2A4A;
  --dark-navy: #0F1A2E;
  --white: #FFFFFF;
  --gold: #B8962D;
  --light-gray: #F5F5F5;
  --whatsapp-green: #25D366;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 70px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul {
  list-style: none;
}

/* === Utility: Section heading with gold underline === */
.section-heading {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold);
}

/* === Utility: scroll animation === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Section padding === */
section {
  padding: 5rem 1.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  padding: 1rem 1.5rem;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header__logo-img {
  height: 55px;
  width: auto;
}

.header__logo-accent {
  color: var(--gold);
}

.header__nav-list {
  display: flex;
  gap: 2rem;
}

.header__nav-link {
  color: var(--navy);
  font-size: 0.95rem;
  transition: color 0.3s;
}

.header__nav-link:hover {
  color: var(--gold);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 1rem;
}

.lang-switcher__btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  padding: 2px;
  opacity: 0.5;
  transition: opacity 0.3s, border-color 0.3s;
  display: flex;
  align-items: center;
  line-height: 0;
}

.lang-switcher__btn:hover {
  opacity: 0.8;
}

.lang-switcher__btn--active {
  opacity: 1;
  border-color: var(--gold);
}

.lang-switcher__flag {
  display: block;
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.header__hamburger span {
  width: 25px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav */
@media (max-width: 768px) {
  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding: 5rem 2rem;
    z-index: 999;
  }

  .header__nav.open {
    right: 0;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .header__nav-link {
    font-size: 1.2rem;
  }

  .lang-switcher {
    margin-left: auto;
    margin-right: 0.75rem;
  }

  /* Hamburger X animation */
  .header__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .header__hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .header__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}


/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 169, 81, 0.4);
}

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn--secondary:hover {
  background: var(--navy);
  color: var(--white);
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(30deg, rgba(184,150,45,0.08) 12%, transparent 12.5%, transparent 87%, rgba(184,150,45,0.08) 87.5%),
    linear-gradient(150deg, rgba(184,150,45,0.08) 12%, transparent 12.5%, transparent 87%, rgba(184,150,45,0.08) 87.5%),
    linear-gradient(30deg, rgba(184,150,45,0.08) 12%, transparent 12.5%, transparent 87%, rgba(184,150,45,0.08) 87.5%),
    linear-gradient(150deg, rgba(184,150,45,0.08) 12%, transparent 12.5%, transparent 87%, rgba(184,150,45,0.08) 87.5%);
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

.hero__content {
  position: relative;
  z-index: 1;
  animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__logo {
  max-width: 320px;
  height: auto;
  margin: 0 auto 2rem;
}

.hero__title {
  font-size: 3rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.hero__rotating {
  display: inline-block;
  animation: rotateFadeIn 0.6s ease-out;
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.4s ease;
}

.hero__rotating--navy {
  color: var(--navy);
}

.hero__rotating--gold {
  color: var(--gold);
}

@keyframes rotateFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--navy);
  opacity: 0.6;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero__logo {
    max-width: 220px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1.05rem;
  }
}

/* === About === */
.about {
  background: var(--white);
}

.about__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about__card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--gold);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.about__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.about__card-title {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.about__card-text {
  color: #555;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .about__cards {
    grid-template-columns: 1fr;
  }
}

/* === Clients === */
.clients {
  background: var(--light-gray);
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.clients__logo {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.clients__logo span {
  color: #aaa;
  font-size: 0.9rem;
  font-weight: 500;
}

.clients__logo img {
  max-height: 60px;
  max-width: 80%;
  object-fit: contain;
}

.clients__logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .clients__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === Teachers === */
.teachers {
  background: var(--white);
}

.teachers__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.teachers__card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  width: calc(33.333% - 1.5rem);
  min-width: 250px;
}

.teachers__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.teachers__avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--light-gray);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: 700;
}

.teachers__photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  margin: 0 auto 1.2rem;
}

.teachers__name {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.teachers__role {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.teachers__bio {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .teachers__card {
    width: 100%;
  }
}

/* === Testimonials === */
.testimonials {
  background: var(--light-gray);
}

.section-heading--light {
  color: var(--white);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonials__card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid #e0e0e0;
}

.testimonials__quote-icon {
  font-size: 3.5rem;
  color: var(--gold);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.testimonials__text {
  color: var(--navy);
  opacity: 0.85;
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.testimonials__author {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
}

/* === CTA === */
.cta {
  background: var(--gold);
  text-align: center;
}

.cta__title {
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.cta__text {
  font-size: 1.1rem;
  color: var(--navy);
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn--whatsapp {
  background: var(--whatsapp-green);
  color: var(--white);
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn__icon {
  flex-shrink: 0;
}

.cta__email {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--navy);
  opacity: 0.7;
}

.cta__email a {
  text-decoration: underline;
}

/* === Footer === */
.footer {
  background: var(--dark-navy);
  padding: 3rem 1.5rem 1rem;
  color: var(--white);
}

.footer__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer__nav a:hover {
  color: var(--gold);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  transition: border-color 0.3s, color 0.3s;
}

.footer__social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer__bottom {
  text-align: center;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .footer__container {
    flex-direction: column;
    text-align: center;
  }

  .footer__nav {
    justify-content: center;
  }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__content {
    animation: none;
  }

  .hero__rotating {
    animation: none;
    transition: none;
  }
}
