/* ===== IMPORTS ===== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Montserrat:wght@100..900&display=swap");

/* ===== RESET ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* ===== ROOT ===== */

:root {
  /* ===== COLORS ===== */

  --color-primary: #e10600;
  --color-primary-hover: #ff2a23;

  --color-bg: #0b0c0e;
  --color-surface: #14171a;
  --color-surface-light: #1b1f23;

  --color-text: #f5f5f5;
  --color-text-muted: #c2c2c2;

  --border-subtle: rgba(255, 255, 255, 0.09);

  /* ===== TEXT SIZE ===== */

  --text-sm: clamp(0.75rem, 1vw + 0.5rem, 1rem);
  --text-base: clamp(0.95rem, 1.2vw + 0.7rem, 1.125rem);
  --text-lg: clamp(1.05rem, 1.6vw + 0.8rem, 1.25rem);
  --text-xl: clamp(1.2rem, 2vw + 1rem, 1.5rem);
  --text-2xl: clamp(1.35rem, 2vw + 1rem, 2rem);
  --text-3xl: clamp(1.8rem, 2.8vw + 1rem, 3rem);
  --text-4xl: clamp(2.4rem, 4vw + 1rem, 4rem);

  /* ===== TYPOGRAPHY ===== */

  --font-title: "Montserrat", Arial, Helvetica, sans-serif;
  --font-text: "Inter", Arial, Helvetica, sans-serif;

  /* ===== SPACING ===== */

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* ===== Radius ===== */

  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.5rem;

  /* ===== Shadow ===== */

  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);

  /* ===== Transition ===== */

  --transition-fast: 150ms ease;
  --transition: 300ms ease;
  --transition-slow: 500ms ease;

  /* ===== Animation ===== */

  --animation-duration: 700ms ease;

  /* ===== Utils ===== */

  --container-width: 1200px;
}

/* ===== ANIMATIONS ===== */

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

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.visible {
  animation: fadeUpReveal 900ms ease;
}

/* ===== GLOBAL ===== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-text);
  font-size: var(--text-base);
  line-height: 1.6;

  color: var(--color-text-muted);
  background-color: var(--color-bg);

  overflow-x: hidden;
}

a {
  color: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

/* ===== UTILITIES ===== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.15;
}

.container {
  width: min(90% - 2rem, var(--container-width));
  margin-inline: auto;
}

section {
  padding-block: clamp(4rem, 8vw, 7rem);
  scroll-margin-top: 80px;
}

/* ===== COMPONENTS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;
  padding: 0.9rem 1.5rem;

  border: 1px solid transparent;
  border-radius: var(--radius-md);

  background-color: var(--color-primary);
  color: var(--color-text);

  font-family: var(--font-text);
  font-size: var(--text-base);
  font-weight: 600;

  box-shadow: var(--shadow-sm);

  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.btn:active {
  transform: translateY(0);
}

.card {
  padding: var(--space-lg);

  background: var(--color-surface);

  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-sm);

  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);

  border-color: rgba(225, 6, 0, 0.3);

  box-shadow: var(--shadow-md);
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

/* ===== Layout ===== */

.section-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);

  width: min(100%, 700px);

  margin-inline: auto;
  margin-bottom: var(--space-xl);

  text-align: center;
}

.section-header h2 {
  font-size: var(--text-3xl);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

/* ===== HEADER ===== */

.navbar-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;

  width: 100%;

  background: rgba(11, 12, 14, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition:
    background-color var(--transition),
    border-color var(--transition);
}

.navbar-header > .container {
  min-height: 76px;

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

.logo {
  display: block;
}

.logo img {
  width: auto;
  height: 52px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links > a {
  display: inline-flex;
  align-items: center;

  padding: 0.65rem 0.9rem;

  border-radius: var(--radius-sm);

  color: var(--color-text-muted);

  font-size: var(--text-sm);
  font-weight: 500;

  transition:
    color var(--transition-fast),
    background-color var(--transition-fast);
}

.nav-links > a:hover,
.nav-links > a:focus-visible {
  color: var(--color-text);
  background-color: rgba(255, 255, 255, 0.06);
}

.nav-links > .nav-cta {
  margin-left: 0.5rem;

  background-color: var(--color-primary);
  color: var(--color-text);

  font-weight: 600;
}

.nav-links > .nav-cta:hover,
.nav-links > .nav-cta:focus-visible {
  background-color: var(--color-primary-hover);
}

.menu-toggle {
  display: none;

  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);

  background: transparent;
  color: var(--color-text);

  font-size: 1.5rem;
  cursor: pointer;

  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ===== HERO ===== */

#hero {
  position: relative;
  padding: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(11, 12, 14, 0.95),
    rgba(11, 12, 14, 0.65),
    rgba(11, 12, 14, 0.15)
  );
  z-index: 1;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-background > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

  display: flex;
  align-items: center;
}

.hero-content {
  width: min(100%, 620px);

  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.tagline {
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;

  animation: fadeUp var(--animation-duration);
}

#hero h1 {
  max-width: 15ch;
  font-size: var(--text-4xl);
  line-height: 1.05;
  letter-spacing: -0.03em;

  animation: fadeUp var(--animation-duration) 100ms backwards;
}

.hero-description {
  max-width: 55ch;
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text-muted);

  animation: fadeUp var(--animation-duration) 200ms backwards;
}

#hero .btn {
  animation: fadeUp var(--animation-duration) 300ms backwards;
}

/* ===== BENEFÍCIOS ===== */

.beneficios-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card-beneficio {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.card-beneficio:nth-child(2) {
  animation-delay: 100ms;
}

.card-beneficio:nth-child(3) {
  animation-delay: 200ms;
}

.card-icon {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  border: 1px solid rgba(225, 6, 0, 0.35);
  border-radius: var(--radius-md);

  background: rgba(225, 6, 0, 0.08);
  color: var(--color-primary);

  font-family: var(--font-title);
  font-size: var(--text-lg);
  font-weight: 700;
}

.card-beneficio h3 {
  font-size: var(--text-2xl);
  line-height: 1.2;
}

.card-beneficio p {
  max-width: 34ch;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== SOBRE ===== */

#sobre .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-2xl);
  align-items: center;
}

.sobre-image {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.sobre-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.sobre-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-md);
}

.sobre-content h2 {
  max-width: 15ch;
  font-size: var(--text-3xl);
  line-height: 1.1;
}

.sobre-content p {
  max-width: 55ch;
  line-height: 1.7;
}

.sobre-content ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  color: var(--color-text);
  font-weight: 500;
}

.sobre-content li::before {
  content: "✔";
  color: var(--color-primary);
  font-weight: 700;
}

/* ===== PROFESSORES ===== */

#professores {
  scroll-margin-top: 0;
}

#professores .section-header {
  width: min(100%, 800px);
}

#professores .section-header h2 {
  font-size: var(--text-2xl);
  line-height: 1.15;
}

#professores .section-header p {
  max-width: 65ch;
  margin-inline: auto;
  font-size: var(--text-base);
  line-height: 1.6;
}

.professores-grid {
  grid-template-columns: repeat(2, 1fr);
}

.card-professor {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  overflow: hidden;
}

.card-professor:nth-child(2) {
  animation-delay: 150ms;
}

.card-professor img {
  width: 100%;
  height: 360px;
  object-fit: cover;

  border-radius: var(--radius-md);

  transition: transform var(--transition);
}

.card-professor:hover img {
  transform: scale(1.04);
}

.card-professor h3 {
  font-size: var(--text-2xl);
  line-height: 1.2;
}

.card-professor p {
  max-width: 35ch;
  font-size: var(--text-base);
  line-height: 1.6;
}

/* ===== PLANOS ===== */

#planos {
  scroll-margin-top: 0;
}

#planos .section-header {
  width: min(100%, 800px);
}

#planos .section-header h2 {
  font-size: var(--text-2xl);
  line-height: 1.15;
}

#planos .section-header p {
  max-width: 65ch;
  margin-inline: auto;
  font-size: var(--text-base);
  line-height: 1.6;
}

.planos-grid {
  width: min(100%, 1050px);
  margin-inline: auto;

  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.card-plano {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-height: 460px;
}

.card-plano:nth-child(2) {
  animation-delay: 150ms;
}

.card-plano:nth-child(3) {
  animation-delay: 300ms;
}

.card-plano:hover {
  transform: translateY(-6px);
}

.destaque {
  position: relative;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.card-plano h3 {
  font-size: var(--text-2xl);
  color: var(--color-text);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}

.plan-price strong {
  font-size: var(--text-2xl);
  line-height: 1;
  color: var(--color-text);
}

.plan-price span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.plan-monthly {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.card-plano ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);

  margin-block: var(--space-sm);
}

.card-plano li {
  color: var(--color-text-muted);
}

.card-plano li::before {
  content: "✔";
  margin-right: var(--space-xs);
  color: var(--color-primary);
  font-weight: 700;
}

.plan-badge {
  align-self: flex-start;

  padding: 0.35rem 0.7rem;

  border-radius: 999px;

  background-color: var(--color-primary);
  color: var(--color-text);

  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card-plano .btn {
  margin-top: auto;
}

/* ===== FAQ ===== */

.faq-list {
  width: min(100%, 800px);
  margin-inline: auto;

  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-list details {
  background-color: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);

  transition:
    border-color var(--transition),
    background-color var(--transition);
}

.faq-list details:hover {
  border-color: var(--color-primary);
}

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
}

summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary);
  transition: transform var(--transition);
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin-top: var(--space-sm);
  padding-right: var(--space-lg);
  line-height: 1.7;
}

/* ===== CONTATO ===== */

#contato .section-header {
  width: min(100%, 700px);
}

#contato form {
  width: min(100%, 600px);
  margin-inline: auto;

  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

#contato input {
  width: 100%;
  padding: var(--space-sm);

  background-color: var(--color-surface);
  color: var(--color-text);

  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);

  font: inherit;

  outline: none;

  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

#contato input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

#contato input:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.15);
}

#contato label {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
}

#contato form button {
  width: 100%;
  margin-top: var(--space-xs);

  border: 0;
  border-radius: var(--radius-md);

  padding: 0.9rem 1.5rem;

  background-color: var(--color-primary);
  color: var(--color-text);

  font: inherit;
  font-weight: 600;

  box-shadow: var(--shadow-sm);

  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

#contato form button:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== FOOTER ===== */

footer {
  background-color: var(--color-surface);
  padding-block: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

footer h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

footer p:first-of-type {
  max-width: 55ch;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-muted);
}

footer p:last-of-type {
  width: 100%;
  padding-top: var(--space-md);

  border-top: 1px solid var(--border-subtle);

  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
}

/* ===== MEDIA ===== */

/* ===== TABLETS ===== */

@media (max-width: 992px) {
  .nav-links {
    gap: var(--space-xs);
  }

  .nav-links a {
    padding: 0.75rem;
  }

  .btn {
    padding: 0.85rem 1.25rem;
  }

  #sobre .container {
    gap: var(--space-lg);
  }
}

/* ===== CELULARES ===== */

@media (max-width: 768px) {
  :root {
    --text-3xl: clamp(1.8rem, 6vw, 2.4rem);
    --text-4xl: clamp(2.2rem, 9vw, 3rem);
  }

  section {
    padding-block: var(--space-xl);
  }

  /* HEADER */

  .navbar-header > .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-md);
    row-gap: 0;
    min-height: auto;
  }

  a.logo > img {
    height: 52px;
  }

  .navbar {
    width: 100%;
    order: 1;
  }

  .nav-links {
    display: none;
  }

  .nav-links > a {
    width: 100%;
    justify-content: center;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
  }

  .menu-toggle {
    display: flex;
  }

  /* HERO */

  #hero {
    min-height: 100svh;
    padding-block: 6rem 4rem;
  }

  #hero > .container {
    justify-content: center;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-description {
    max-width: 55ch;
  }

  /* BENEFÍCIOS */

  #beneficios {
    scroll-margin-top: 30px;
  }

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

  /* SOBRE */

  #sobre {
    scroll-margin-top: 30px;
  }

  #sobre .container {
    grid-template-columns: 1fr;
  }

  .sobre-image {
    order: 1;
  }

  .sobre-content {
    align-items: center;
    text-align: center;
  }

  .sobre-content p {
    max-width: 55ch;
  }

  .sobre-content ul {
    align-self: center;
    text-align: left;
  }

  /* PROFESSORES */

  #professores {
    scroll-margin-top: 20px;
  }

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

  /* PLANOS */

  #planos {
    scroll-margin-top: 20px;
  }

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

  .destaque {
    transform: none;
  }

  /* FAQ */

  #faq {
    scroll-margin-top: 20px;
  }

  summary {
    font-size: var(--text-base);
  }

  /* CONTATO */

  #contato {
    scroll-margin-top: 30px;
  }

  #contato form button {
    font-size: var(--text-base);
  }
}
