:root {
  --color-teal: #036564;
  --color-cream: #E8DDCB;
  --color-gold: #CDB380;
  --color-wine: #542437;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  font-weight: 300;
  background: var(--color-cream);
  color: var(--color-wine);
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--color-teal);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.site-header__logo {
  height: 76px;
  display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-cream);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.site-nav a {
  color: var(--color-cream);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

/* ---------- Layout helpers ---------- */
.section {
  padding: 72px 24px;
}

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

.section--teal {
  background: var(--color-teal);
  color: var(--color-cream);
}

.section--cream {
  background: var(--color-cream);
}

.section--white {
  background: #ffffff;
}

.section__kicker {
  display: block;
  text-align: center;
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.section__title {
  text-align: center;
  font-weight: 700;
  font-size: 1.9rem;
  margin: 0 0 8px;
  color: inherit;
}

.section--cream .section__title,
.section--white .section__title {
  color: var(--color-wine);
}

.section__divider {
  width: 70px;
  height: 2px;
  background: var(--color-gold);
  margin: 18px auto 40px;
  border: none;
}

.section__lede {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 30px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn--primary:hover {
  filter: brightness(1.05);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-cream);
  color: var(--color-cream);
}

.btn--outline:hover {
  background: rgba(232, 221, 203, 0.12);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 28px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--color-teal);
  color: var(--color-cream);
  text-align: center;
  padding: 90px 24px 80px;
}

.hero__logo {
  height: 160px;
  margin-bottom: 28px;
}

.hero__badge {
  display: inline-block;
  background: rgba(205, 179, 128, 0.18);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.25;
}

.hero p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ---------- About (Sobre) ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about-grid__text p {
  line-height: 1.7;
  font-size: 1.02rem;
  margin-bottom: 18px;
}

.about-grid__image img {
  border-radius: 10px;
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 12px 30px rgba(3, 101, 100, 0.2);
}

/* ---------- Swasthya section ---------- */
.swasthya-parts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.swasthya-parts li {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(84, 36, 55, 0.12);
  border-radius: 10px;
  padding: 18px 16px;
}

.swasthya-parts .part-number {
  display: inline-block;
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.swasthya-parts .part-name {
  display: block;
  font-weight: 700;
  color: var(--color-wine);
  margin-bottom: 4px;
}

.swasthya-parts .part-desc {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.swasthya-text p {
  line-height: 1.7;
  margin-bottom: 18px;
}

.swasthya-source {
  font-size: 0.82rem;
  font-style: italic;
  opacity: 0.75;
  text-align: center;
  margin-top: 32px;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 26px 22px;
  box-shadow: 0 6px 18px rgba(3, 101, 100, 0.08);
  border-top: 3px solid var(--color-gold);
}

.service-card__number {
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.service-card h3 {
  color: var(--color-wine);
  margin: 6px 0 10px;
  font-size: 1.1rem;
}

.service-card p {
  margin: 0;
  line-height: 1.55;
  font-size: 0.95rem;
  color: #3a3a3a;
}

/* ---------- Schedule (Aulas) ---------- */
.schedule-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(84, 36, 55, 0.15);
  border-radius: 14px;
  padding: 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.schedule-card__icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.schedule-card h3 {
  color: var(--color-wine);
  margin: 0 0 12px;
}

.schedule-card p {
  line-height: 1.6;
  margin-bottom: 10px;
}

/* ---------- Teachers (Professores) ---------- */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.teacher-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(3, 101, 100, 0.1);
  display: flex;
  flex-direction: column;
}

.teacher-card__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--color-gold);
}

.teacher-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-teal);
  color: var(--color-cream);
  font-size: 3rem;
  font-weight: 700;
}

.teacher-card__body {
  padding: 20px 22px 26px;
}

.teacher-card__name {
  color: var(--color-wine);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.teacher-card__bio {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #3a3a3a;
  margin: 0 0 10px;
}

.teacher-card__pending {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--color-teal);
}

/* ---------- Testimonials (Depoimentos) ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.testimonial-card {
  background: var(--color-cream);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 6px 18px rgba(3, 101, 100, 0.08);
}

.testimonial-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-card__photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 700;
  color: var(--color-wine);
}

.testimonial-card__quote {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #3a3a3a;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 6px;
}

.testimonial-card__quote p {
  margin: 0 0 12px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  text-align: center;
}

.contact-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(232, 221, 203, 0.25);
  border-radius: 12px;
  padding: 28px 20px;
}

.contact-card__icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  display: block;
}

.contact-card a,
.contact-card p {
  color: var(--color-cream);
}

.contact-card a {
  font-weight: 700;
}

/* ---------- Gallery (existing) ---------- */
.gallery-section__intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.gallery-section__intro h2 {
  font-weight: 700;
  color: var(--color-wine);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-size: 1.9rem;
}

.gallery-section__intro p {
  color: var(--color-teal);
  font-size: 1.05rem;
}

.gallery-grid {
  columns: 4 220px;
  column-gap: 12px;
}

.gallery-grid__item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  background: var(--color-gold);
  break-inside: avoid;
  margin-bottom: 12px;
}

.gallery-grid__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-grid__item:hover img {
  transform: scale(1.06);
}

.gallery-grid__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 101, 100, 0.35), transparent 40%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-grid__item:hover::after {
  opacity: 1;
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
  color: var(--color-cream);
  margin-top: 16px;
  font-size: 0.95rem;
  text-align: center;
  max-width: 640px;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--color-cream);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(232, 221, 203, 0.15);
  border: none;
  color: var(--color-cream);
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox__nav:hover {
  background: rgba(232, 221, 203, 0.3);
}

.lightbox__nav--prev {
  left: 16px;
}

.lightbox__nav--next {
  right: 16px;
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #25D366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  z-index: 800;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-wine);
  color: var(--color-cream);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer a {
  color: var(--color-cream);
}

.site-footer__social a {
  margin: 0 8px;
  font-weight: 700;
}

.site-footer__copy {
  opacity: 0.7;
  font-size: 0.78rem;
}

/* ---------- Legal pages ---------- */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.legal-page h1 {
  color: var(--color-wine);
  font-weight: 700;
}

.legal-page__updated {
  color: var(--color-teal);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-page h2 {
  color: var(--color-teal);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 32px;
}

.legal-page p,
.legal-page li {
  line-height: 1.6;
}

.legal-page a {
  color: var(--color-wine);
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  background: var(--color-teal);
  color: var(--color-cream);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 320px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--color-gold);
  text-decoration: underline;
}

.cookie-banner__accept {
  background: var(--color-gold);
  color: var(--color-wine);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
}

.cookie-banner__accept:hover {
  filter: brightness(1.05);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid__image {
    order: -1;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-teal);
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 14px;
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .hero__logo {
    height: 120px;
  }

  .section {
    padding: 56px 18px;
  }
}

@media (max-width: 600px) {
  .site-header__logo {
    height: 56px;
  }

  .gallery-grid {
    columns: 2 150px;
    column-gap: 8px;
  }

  .gallery-grid__item {
    margin-bottom: 8px;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}
