/* Rodrigo Olli — layout inspirado na referência: verde, serif + sans */
:root {
  --green-900: #1a4d2e;
  --green-800: #2d6b3a;
  --green-600: #3d8c4a;
  --green-400: #5cb85c;
  --yellow: #f5e942;
  --yellow-soft: #fff9c4;
  --white: #ffffff;
  --gray-50: #f8faf8;
  --gray-200: #e8ede9;
  --gray-600: #5c6b5f;
  --gray-900: #1c241c;
  --shadow: 0 12px 40px rgba(26, 77, 46, 0.12);
  --radius: 18px;
  --radius-pill: 999px;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
}

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

a {
  color: var(--green-800);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  flex-wrap: wrap;
}

.header__social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.social-link {
  color: var(--gray-900);
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}

.social-link:hover {
  opacity: 1;
  color: var(--green-800);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-900);
  text-decoration: none;
}

.nav__link:hover {
  color: var(--green-800);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  text-decoration: none;
}

.btn--header {
  background: var(--green-800);
  color: var(--white);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(45, 107, 58, 0.35);
}

.btn--header:hover {
  background: var(--green-900);
  transform: translateY(-1px);
}

.btn--pill {
  background: var(--green-800);
  color: var(--white);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
}

.btn--pill:hover {
  background: var(--green-900);
  transform: translateY(-2px);
}

.btn__arrow {
  font-size: 1.1em;
}

.btn--small {
  background: var(--green-800);
  color: var(--white);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
}

.btn--small:hover {
  background: var(--green-900);
}

.btn--ghost {
  background: transparent;
  color: var(--green-800);
  border: 2px solid var(--green-600);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
}

.btn--ghost:hover {
  background: var(--gray-50);
}

.btn--upload {
  background: var(--green-800);
  color: var(--white);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
}

.btn--upload:hover {
  background: var(--green-900);
}

.btn--light {
  background: var(--yellow);
  color: var(--green-900);
}

.btn--light:hover {
  background: var(--white);
}

.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.header__menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 1px;
}

/* Hero — slide com imagem de fundo (slide-topo.png) */
.hero {
  padding: 0;
}

/* Faixa cinza full-width; a arte fica só dentro do .container (centralizado) — evita vão branco no meio em telas largas */
.hero--slide {
  position: relative;
  background-color: #f7f8f7;
  padding-inline: clamp(1rem, 4vw, 2.75rem);
  padding-block: clamp(1.25rem, 3vw, 2rem);
  box-sizing: border-box;
  overflow: hidden;
}

/* Sem width: 100% aqui — senão sobrescreve .container e o slide estica até 1920px com vão no meio */
.hero--slide__inner {
  position: relative;
  z-index: 1;
  min-height: clamp(240px, 34vw, 400px);
  display: flex;
  align-items: center;
  padding-block: clamp(1rem, 3vw, 2rem);
  padding-inline: clamp(0.75rem, 2vw, 1.25rem);
  box-sizing: border-box;
  background-color: #f7f8f7;
  background-image: url("../slide-topo.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
}

.hero__content--slide {
  max-width: min(34rem, 100%);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.2;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.hero__lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--gray-600);
  margin: 0 0 1.75rem;
  max-width: 38ch;
  line-height: 1.55;
}

.hero__content--slide .hero__lead {
  max-width: 42ch;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--muted {
  background: var(--gray-50);
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--green-900);
  text-align: center;
  margin: 0 0 1rem;
}

.section__title--sm {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.section__title--light {
  color: var(--white);
  text-align: left;
}

.section__intro {
  text-align: center;
  color: var(--gray-600);
  max-width: 62ch;
  margin: 0 auto 2.5rem;
}

.section__intro--sm {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.section__intro--light {
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
  margin-left: 0;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(45, 107, 58, 0.12);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0;
  color: var(--green-900);
}

.card__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-600);
  flex: 1;
}

.card__link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-800);
  text-decoration: none;
}

.card__link:hover {
  text-decoration: underline;
}

/* Courses */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}

.course-card__media {
  height: 180px;
  background-image: var(--course-img);
  background-size: cover;
  background-position: center;
}

.course-card:nth-child(1) .course-card__body {
  border-top: 4px solid #e53935;
}

.course-card:nth-child(2) .course-card__body {
  border-top: 4px solid var(--yellow);
}

.course-card:nth-child(3) .course-card__body {
  border-top: 4px solid var(--green-600);
}

.course-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--green-900);
}

.course-card__desc {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--gray-600);
  flex: 1;
}

.course-card__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gray-600);
}

.course-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.course-card__price {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--green-800);
}

/* Partners */
.section--partners {
  padding-bottom: 3rem;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
}

.partners__item {
  min-width: 140px;
  min-height: 72px;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.3s, opacity 0.3s, box-shadow 0.3s;
}

.partners__item:hover {
  filter: grayscale(0);
  opacity: 1;
  box-shadow: var(--shadow);
}

.partners__placeholder {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-600);
  text-align: center;
}

.partners__hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 1.5rem;
}

.inline-code {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  background: var(--gray-200);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Gallery */
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.gallery-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gray-200);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item__remove:hover {
  background: rgba(180, 40, 40, 0.9);
}

.gallery-item__badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(26, 77, 46, 0.85);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  max-width: 800px;
  margin-inline: auto;
}

.testimonials__viewport {
  overflow: hidden;
  border-radius: var(--radius);
  width: 100%;
  --slides: 3;
}

.testimonials__track {
  display: flex;
  width: calc(var(--slides) * 100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial {
  flex: 0 0 calc(100% / var(--slides));
  margin: 0;
  padding: 2rem;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.testimonial__quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gray-900);
  margin: 0 0 1.25rem;
  line-height: 1.65;
}

.testimonial__footer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-image: var(--avatar);
  background-size: cover;
  background-position: center;
  border: 3px solid var(--green-600);
  flex-shrink: 0;
}

.testimonial__name {
  display: block;
  font-weight: 700;
  font-style: normal;
  color: var(--green-900);
}

.testimonial__role {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.testimonials__nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--green-600);
  background: var(--white);
  color: var(--green-800);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.testimonials__nav:hover {
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--gray-200);
  cursor: pointer;
  padding: 0;
}

.testimonials__dot[aria-selected="true"] {
  background: var(--green-800);
}

/* CTA / Contact */
.section--cta {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 50%, #256a3a 100%);
  color: var(--white);
  padding: 3.5rem 0;
}

.section--cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field span {
  font-size: 0.85rem;
  font-weight: 500;
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.field--full {
  grid-column: 1 / -1;
}

.contact-form .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

/* Footer */
.footer {
  padding: 2rem 0;
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.75);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__logo {
  opacity: 0.95;
}

.footer__copy {
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero--slide {
    padding-inline: clamp(0.875rem, 3.5vw, 1.5rem);
  }

  .hero--slide__inner {
    min-height: clamp(220px, 42vw, 360px);
    background-position: 72% center;
  }

  .hero__content--slide {
    max-width: 100%;
    text-align: center;
    margin-inline: auto;
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(26, 77, 46, 0.08);
  }

  .hero__lead {
    margin-inline: auto;
    max-width: 40ch;
  }

  .cards,
  .course-grid {
    grid-template-columns: 1fr;
  }

  .section--cta__inner {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .section__title--light,
  .section__intro--light {
    text-align: center;
  }

  .section--cta__inner > div {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .header__social {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 1rem 0;
  }

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

  .header__menu-btn {
    display: flex;
  }

  .header__inner.nav-open .nav {
    order: 5;
  }
}
