:root {
  --ink: #161414;
  --muted: #6e6760;
  --paper: #fbfaf7;
  --ivory: #f0eadf;
  --walnut: #7b4d33;
  --brass: #b88b46;
  --burgundy: #6f2537;
  --sage: #556b5f;
  --line: rgba(22, 20, 20, 0.12);
  --shadow: 0 24px 70px rgba(22, 20, 20, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--brass), #f0c878, var(--burgundy));
  box-shadow: 0 0 18px rgba(240, 200, 120, 0.56);
}

.site-header {
  min-height: 92vh;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(14, 12, 11, 0.78) 0%, rgba(14, 12, 11, 0.58) 42%, rgba(14, 12, 11, 0.18) 100%),
    url("../assets/hero-academia-musica.png") center / cover no-repeat;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 34%, rgba(240, 200, 120, 0.16), transparent 28%),
    linear-gradient(180deg, transparent 62%, rgba(251, 250, 247, 0.08));
  opacity: var(--hero-glow, 0.85);
  transform: translateY(calc(var(--scroll-ratio, 0) * 34px));
}

.nav {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 5;
  animation: navDrop 820ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #f7dfaa;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(92vh - 84px);
  margin: 0 auto;
  padding: 80px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 670px) minmax(260px, 360px);
  align-items: end;
  gap: 64px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--brass);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.96;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(50px, 7vw, 96px);
  text-wrap: balance;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
  color: #15110d;
  background: #f0c878;
}

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(16, 14, 13, 0.52);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transform: translateY(calc(var(--scroll-ratio, 0) * -28px));
}

.hero-panel div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-panel strong {
  font-family: var(--sans);
  color: #f7dfaa;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.hero-panel span {
  max-width: 130px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  text-align: right;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

[data-animate] {
  opacity: 0;
  transform: translateY(54px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.is-visible .reveal-group > *,
.hero.is-visible .reveal-group > * {
  opacity: 1;
  transform: translateY(0);
}

.is-visible .reveal-group > *:nth-child(2) {
  transition-delay: 120ms;
}

.is-visible .reveal-group > *:nth-child(3) {
  transition-delay: 210ms;
}

.is-visible .reveal-group > *:nth-child(4) {
  transition-delay: 300ms;
}

.stagger-grid > * {
  opacity: 0;
  transform: translateY(34px) scale(0.98);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease, border-color 220ms ease;
}

.is-visible .stagger-grid > * {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: calc(var(--item-index, 0) * 85ms);
}

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.intro {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 70px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(36px, 5vw, 64px);
}

.intro > p,
.method-copy p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 34px;
}

.program-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.program-card,
.testimonial-grid article {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  position: relative;
  overflow: hidden;
}

.program-card::before,
.testimonial-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(184, 139, 70, 0.16), transparent 46%, rgba(111, 37, 55, 0.1));
  transition: opacity 220ms ease;
}

.program-card:hover,
.testimonial-grid article:hover {
  border-color: rgba(184, 139, 70, 0.44);
  box-shadow: 0 18px 45px rgba(22, 20, 20, 0.1);
}

.program-card:hover::before,
.testimonial-grid article:hover::before {
  opacity: 1;
}

.program-card span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.program-card h3,
.method-list h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}

.program-card p,
.method-list p,
.testimonial-grid p {
  margin: 0;
  color: var(--muted);
}

.method {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-copy p {
  margin-top: 24px;
}

.method-list {
  display: grid;
  gap: 18px;
}

.method-list div {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.method-list span {
  color: var(--brass);
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.schedule {
  padding-top: 70px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fffdf9;
}

.schedule-grid div {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.schedule-grid div:last-child {
  border-right: 0;
}

.schedule-grid strong,
.schedule-grid span {
  display: block;
}

.schedule-grid strong {
  font-family: var(--serif);
  font-size: 30px;
}

.schedule-grid span {
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  align-items: stretch;
}

.gallery-feature,
.quote-box {
  border-radius: 8px;
  overflow: hidden;
}

.gallery-feature img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  transform: scale(1.08) translateY(var(--media-shift, 0px));
  transition: transform 260ms linear;
}

.quote-box {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--sage);
  color: #fff;
}

.quote-box p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.quote-box span {
  color: rgba(255, 255, 255, 0.72);
}

.testimonials {
  border-bottom: 1px solid var(--line);
}

.testimonial-grid article {
  min-height: 190px;
}

.testimonial-grid strong {
  display: block;
  margin-top: 28px;
  color: var(--burgundy);
}

.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.contact p {
  margin-top: 22px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-form label:nth-child(4) {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(22, 20, 20, 0.18);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(184, 139, 70, 0.72);
  box-shadow: 0 0 0 4px rgba(184, 139, 70, 0.13);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
}

.contact-form .btn {
  border: 0;
  cursor: pointer;
}

.whatsapp {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--sage);
  font-weight: 800;
}

.whatsapp:hover {
  border-color: rgba(85, 107, 95, 0.44);
  background: rgba(85, 107, 95, 0.08);
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 46px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    min-height: auto;
  }

  .nav {
    min-height: 74px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(18, 15, 13, 0.94);
  }

  .nav-links.is-open {
    display: grid;
  }

  .hero,
  .intro,
  .method,
  .gallery,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 760px;
    padding-top: 78px;
    align-items: end;
    gap: 30px;
  }

  .hero-panel {
    transform: none;
  }

  .program-grid,
  .testimonial-grid,
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .schedule-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .schedule-grid div:last-child {
    border-bottom: 0;
  }

  .section-head {
    display: block;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  [data-animate],
  .stagger-grid > *,
  .reveal-group > *,
  .gallery-feature img,
  .hero-panel {
    opacity: 1;
    transform: none !important;
  }
}

@media (max-width: 560px) {
  .nav,
  .hero,
  .section,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .brand strong {
    font-size: 20px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions,
  .footer {
    flex-direction: column;
  }

  .btn,
  .whatsapp {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .section h2 {
    font-size: 38px;
  }

  .method-list div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery-feature img {
    min-height: 330px;
  }
}
