
:root {
  --apogeu-red: #8b0000;
  --apogeu-red-light: #b22222;
  --apogeu-gold: #f5c542;
  --apogeu-bg: #f7f7f7;
  --apogeu-dark: #1f1f1f;
  --apogeu-gray: #666666;
  --border-radius-lg: 16px;
  --shadow-soft: 0 18px 40px rgba(0,0,0,0.12);
  --max-width: 1180px;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--apogeu-bg);
  color: var(--apogeu-dark);
}

body {
  line-height: 1.5;
}

/* Layout base */

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-area img {
  height: 40px;
  width: auto;
  border-radius: 8px;
  background: #eee;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text span:first-child {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-text span:last-child {
  font-size: 0.8rem;
  color: var(--apogeu-gray);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: var(--apogeu-dark);
  font-weight: 500;
}

.nav a:hover {
  color: var(--apogeu-red);
}

.header-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--apogeu-red), var(--apogeu-red-light));
  color: #fff;
  box-shadow: 0 10px 25px rgba(139,0,0,0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(139,0,0,0.36);
}

.btn-ghost {
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  color: var(--apogeu-dark);
}

.btn-ghost:hover {
  background: #f0f0f0;
}

/* Hero */

.hero {
  padding: 2.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.section-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--apogeu-red);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 2.3rem;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--apogeu-gray);
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.badge {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(139,0,0,0.05);
  color: var(--apogeu-red);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--apogeu-gray);
}

.hero-visual {
  background: radial-gradient(circle at top, rgba(139,0,0,0.18), transparent 55%),
              radial-gradient(circle at bottom, rgba(0,0,0,0.06), transparent 60%);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.hero-visual-inner {
  border-radius: 18px;
  background: #fff;
  padding: 1rem;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.75rem;
}

.hero-visual img {
  width: 100%;
  border-radius: 14px;
  height: 180px;
  object-fit: cover;
  background: #ddd;
}

/* Form card */

.form-card {
  border-radius: 18px;
  background: #fff;
  padding: 1.1rem 1.1rem 1.3rem;
  box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.form-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.form-card p {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--apogeu-gray);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.6rem;
}

.form-row label {
  font-size: 0.78rem;
  font-weight: 600;
}

.form-row input,
.form-row select,
.form-row textarea {
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  width: 100%;
  font-family: inherit;
}

.form-row textarea {
  resize: vertical;
  min-height: 80px;
}

.form-helper {
  font-size: 0.72rem;
  color: var(--apogeu-gray);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.72rem;
  margin-bottom: 0.6rem;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 0.15rem;
}

.form-actions {
  margin-top: 0.6rem;
}

.form-note {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--apogeu-gray);
}

/* Sections genéricas */

.section {
  padding: 2.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--apogeu-gray);
  max-width: 540px;
  margin: 0 auto;
}

/* Cards cursos */

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.course-card {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Thumbnail dos cursos nos cards da home */

.course-card-thumb {
  width: 100%;
  height: 140px;           /* altura do thumb no card */
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.65rem;
  background: #ddd;
}

.course-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--apogeu-red);
}

.course-card h3 {
  font-size: 1rem;
  margin: 0;
}

.course-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--apogeu-gray);
}

.course-meta {
  font-size: 0.78rem;
  color: var(--apogeu-gray);
}

/* Indique e Ganhe */

.highlight-strip {
  border-radius: 18px;
  background: linear-gradient(135deg, var(--apogeu-red), #5a0000);
  color: #fff;
  padding: 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.highlight-strip h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.highlight-strip p {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  opacity: 0.95;
}

.highlight-strip ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.8rem;
}

.highlight-strip .badge {
  background: rgba(0,0,0,0.18);
}

/* Depoimentos */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.testimonial {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  font-size: 0.85rem;
}

.testimonial-author {
  margin-top: 0.75rem;
  font-weight: 600;
}

.testimonial-course {
  font-size: 0.78rem;
  color: var(--apogeu-gray);
}

/* FAQ */

.faq-grid {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.faq-item h4 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--apogeu-gray);
}

/* Contato + mapa */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 1.5rem;
}

.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  font-size: 0.85rem;
}

.contact-item {
  margin-bottom: 0.6rem;
}

.contact-item span {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--apogeu-gray);
}

.map-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
  min-height: 260px;
}

/* Footer */

.site-footer {
  margin-top: auto;
  background: #1a0000;
  color: #f1f1f1;
  padding: 2rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  font-size: 0.85rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo .logo-text span:first-child {
  color: #fff;
}

.footer-logo .logo-text span:last-child {
  color: #ccc;
}

.footer-links h4 {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.3rem;
}

.footer-links a {
  color: #f5f5f5;
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 1.3rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 0.9rem;
  font-size: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.social-icons {
  display: flex;
  gap: 0.6rem;
}

.social-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Páginas internas cursos / vestibular / obrigado */

.page-hero {
  padding: 2rem 0 1.8rem;
}

.page-hero h1 {
  margin: 0 0 0.4rem;
  font-size: 1.9rem;
}

.page-hero p {
  margin: 0;
  color: var(--apogeu-gray);
  max-width: 540px;
}

.page-layout {
  padding-bottom: 3rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.course-hero-image {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #ddd;
}

.course-hero-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Vestíbular textarea maior */

.textarea-redacao {
  min-height: 220px;
}

/* Mensagens de status de formulário */

.form-status {
  font-size: 0.75rem;
  margin-top: 0.35rem;
}

/* Utilitários */

.text-center {
  text-align: center;
}

.mt-sm { margin-top: 0.75rem; }
.mt-md { margin-top: 1.25rem; }
.mt-lg { margin-top: 2rem; }

.badge-soft {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(0,0,0,0.04);
}

/* Responsividade */

@media (max-width: 960px) {
  .hero-grid,
  .highlight-strip,
  .contact-grid,
  .two-column,
  .footer-grid,
  .course-grid,
  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 1.75rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .nav {
    display: none; /* simplificado; pode virar menu mobile depois */
  }
  .header-cta {
    margin-left: auto;
  }
  .hero-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 540px) {
  .hero-grid {
    gap: 1.4rem;
  }
  .hero-visual img {
    height: 150px;
  }
  .course-grid,
  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Cards de portais (Portal do Aluno, EAD, Calendário) */

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.portal-card {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
}

.portal-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.portal-card p {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  color: var(--apogeu-gray);
}

/* Responsivo para os portais */
@media (max-width: 960px) {
  .portal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}