:root {
  color-scheme: light;
  --bg: #f7f2ea;
  --bg-dark: #10100f;
  --text: #171614;
  --muted: #6b6259;
  --primary: #0b7a3a;
  --accent: #f5a400;
  --accent-red: #ff1e2a;
  --surface: #ffffff;
  --radius: 20px;
  --shadow: 0 24px 48px rgba(17, 17, 15, 0.15);
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

main {
  margin-top: -75px;
}

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

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

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 241, 237, 0.4);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.logo img {
  height: 60px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  padding: 10px 16px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: var(--surface);
  border-radius: 999px;
  font-weight: 600;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
}

.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 8px 0 16px;
}

.hero-text {
  margin-left: 60px;
  max-width: 520px;
  background: rgba(17, 17, 15, 0.45);
  color: #fff;
  padding: 32px 36px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.testimonials {
  margin-top: 32px;
}

.testimonials h3 {
  margin-bottom: 16px;
}

.testimonial-carousel {
  position: relative;
}

.testimonial {
  display: none;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border-radius: 18px;
  padding: 18px 18px 42px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow);
  color: var(--text);
}

.testimonial.is-active {
  display: grid;
  grid-template-columns: 64px 1fr;
}

.testimonial img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--text);
}

.testimonial-dots {
  display: flex;
  gap: 10px;
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #b8b8b8;
  cursor: pointer;
  padding: 0;
}

.testimonial-dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 164, 0, 0.25);
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

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

.btn.ghost {
  border-color: rgba(0, 0, 0, 0.2);
  background: var(--surface);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
}

.carousel {
  position: absolute;
  inset: 0;
}

.carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel img.is-active {
  opacity: 1;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.6), rgba(10, 10, 10, 0.25));
  z-index: 1;
}

.carousel-dots {
  position: absolute;
  inset: auto 20px 20px 20px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
}

.carousel-dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 164, 0, 0.25);
}

.section {
  padding: 90px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section-dark {
  background: var(--bg-dark);
  color: #f7f4ef;
}

#eventos {
  position: relative;
  overflow: hidden;
}

#eventos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.eventos-bg {
  position: absolute;
  inset: -10% 0 0;
  background-image: url("assets/bg-eventos.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(6px) brightness(0.7);
  transform: translateY(0) scale(1.08);
  will-change: transform;
  z-index: 0;
}

#eventos > .container {
  position: relative;
  z-index: 1;
}

.story {
  display: grid;
  gap: 40px;
}

.story-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}

.story-row.reverse {
  grid-template-columns: 1fr auto;
}

.story-media {
  width: 100%;
  max-width: 200px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.text-link {
  color: var(--primary);
  font-weight: 600;
}

.section-header {
  max-width: 640px;
  margin-bottom: 40px;
}

.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.timeline-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(23, 22, 20, 0.85);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: opacity 0.6s ease, transform 0.3s ease;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
}

.timeline-card:hover {
  transform: scale(1.05);
}

.timeline-card .event-content {
  min-width: 0;
  flex: 1;
}

.timeline-card .event-content > p:not(.event-meta) {
  display: none;
}

.timeline-card .event-content h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  margin: 0;
}

.timeline-card.hidden {
  display: none;
}

.timeline-card.animating {
  opacity: 0 !important;
  transform: translateY(20px) !important;
}

.timeline-load-more {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.timeline-load-more.hidden {
  display: none;
}

@media (min-width: 600px) {
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }
}

.event-photo {
  width: calc(100% + 44px) !important;
  max-width: none !important;
  height: 180px;
  margin-top: -22px;
  margin-right: -22px;
  margin-left: -22px;
  border-radius: 16px 16px 0 0;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.event-meta {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin: 0;
}

.event-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.5);
  padding: 20px;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.event-modal.is-open {
  display: flex;
}

.event-modal-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 40px;
  margin: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7);
}

.event-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: background 0.2s ease;
}

.event-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.event-modal-image {
  width: calc(100% + 80px);
  max-width: none;
  margin-top: -40px;
  margin-right: -40px;
  margin-left: -40px;
  max-height: 500px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.event-modal-title {
  color: #fff;
  margin-bottom: 12px;
}

.event-modal-meta {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.event-modal-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: start;
}

.contact-address {
  margin: 24px 0;
}

.contact-address p {
  margin: 8px 0;
  line-height: 1.6;
}

.contact-card {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 40px 0;
  background: #0c0c0b;
  color: #f5f1ed;
}

.footer-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.spotify-playlist {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  flex: 1;
  max-width: 400px;
}

@media (max-width: 800px) {
  .hero {
    position: relative;
    padding: 0;
  }

  .hero-content {
    width: 100%;
    margin: 0;
    padding: 80px 5% 100px;
  }

  .hero-text {
    width: 100%;
    padding: 24px;
    margin-left: 0;
    margin: auto;
  }

  .hero-text .btn.ghost {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
  }

  .testimonial {
    padding: 14px;
    padding-bottom: 40px;
  }

  .testimonial.is-active {
    grid-template-columns: 48px 1fr;
  }

  .testimonial img {
    width: 48px;
    height: 48px;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 5%;
    background: var(--surface);
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: none;
  }

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

  .menu-toggle {
    display: inline-flex;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .event-photo {
    height: 180px;
  }

  .event-modal-content {
    padding: 24px;
    margin: 20px;
  }

  .event-modal-image {
    max-height: 300px;
  }

  .story-media {
    max-width: 140px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* Enrollment Modal */
.enrollment-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.enrollment-modal.is-open {
  display: flex;
}

.enrollment-modal-content {
  position: relative;
  max-width: 500px;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px;
  margin: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.enrollment-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: background 0.2s ease;
}

.enrollment-modal-close:hover {
  background: rgba(0, 0, 0, 0.15);
}

.enrollment-modal-title {
  color: var(--text);
  margin: 0 0 16px;
  font-size: 2rem;
}

.enrollment-modal-description {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.enrollment-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.enrollment-modal-actions .btn {
  width: 100%;
  justify-content: center;
}

/* Floating Enrollment Button */
.floating-enrollment-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: var(--primary);
  color: #fff;
  padding: 16px 24px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(11, 122, 58, 0.4);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  text-decoration: none;
}

.floating-enrollment-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-enrollment-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(11, 122, 58, 0.5);
}

.floating-enrollment-btn span {
  white-space: nowrap;
}

@media (max-width: 800px) {
  .enrollment-modal-content {
    padding: 32px 24px;
    margin: 20px;
  }

  .enrollment-modal-title {
    font-size: 1.5rem;
  }

  .enrollment-modal-description {
    font-size: 1rem;
  }

  .floating-enrollment-btn {
    bottom: 16px;
    right: 16px;
    padding: 14px 20px;
    font-size: 0.9rem;
  }
}
