:root {
  --color-primary: #004183;
  --color-primary-dark: #002d5c;
  --color-accent-red: #d71125;
  --color-accent-yellow: #fab726;
  --color-white: #ffffff;
  --color-bg-light: #f5f7fa;
  --color-text: #1a1a1a;
  --color-text-muted: #4a5568;
  --font-family: 'Open Sans', -apple-system, sans-serif;
  --max-width: 1140px;
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-white);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; text-align: center; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

.section-lead {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

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

/* Buttons */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: var(--color-accent-red);
  color: var(--color-white);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  margin-top: 16px;
}

.btn-small {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn-full {
  width: 100%;
  margin-top: 8px;
}

/* Header */

.site-header {
  background: var(--color-white);
  border-bottom: 1px solid #e5e9f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 15px;
}

.logo {
  height: 60px;
  width: auto;
}

@media (max-width: 400px) {
  .logo {
    height: 44px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  font-weight: 700;
  color: var(--color-primary);
  display: none;
}

@media (min-width: 640px) {
  .header-phone {
    display: inline-block;
  }
}

/* Menu hambúrguer (mobile) */

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--color-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--color-primary);
  padding-top: 12px;
}

.mobile-menu.open {
  display: flex;
}

.site-header.menu-open {
  border-bottom-color: var(--color-primary);
}

.mobile-menu a {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
  color: var(--color-white);
}

.mobile-menu-cta {
  color: var(--color-accent-yellow) !important;
}

@media (max-width: 640px) {
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (min-width: 641px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Hero */

.hero {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 50px 0;
}

.hero h1 {
  color: var(--color-white);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "heading"
    "image"
    "body";
  gap: 32px;
  align-items: center;
  text-align: center;
}

.hero-heading {
  grid-area: heading;
}

.hero-image {
  grid-area: image;
}

.hero-body {
  grid-area: body;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas:
      "heading image"
      "body image";
    row-gap: 0;
    text-align: left;
  }
}

.eyebrow {
  display: inline-block;
  background: var(--color-accent-yellow);
  color: var(--color-primary-dark);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero-subtitle {
  color: #d7e5f7;
  margin: 18px 0 16px;
  font-size: 1.05rem;
}

.hero-list-title {
  color: var(--color-white);
  font-weight: 600;
  margin: 0 0 10px;
}

.hero-list {
  color: #d7e5f7;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 28px;
  padding-left: 0;
}

.hero-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;
  text-align: left;
}

.hero-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent-yellow);
  color: var(--color-primary-dark);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .hero-list {
    align-items: flex-start;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

@media (min-width: 900px) {
  .hero-ctas {
    justify-content: flex-start;
  }
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

/* Segmentos */

.segmentos {
  padding: 60px 0;
  background: var(--color-bg-light);
}

.segmentos-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.segmentos-intro p {
  margin: 0 0 16px;
  line-height: 1.7;
}

.segmentos-intro p:first-child {
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 500;
}

.segmentos-intro p:last-child {
  color: var(--color-primary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.segmentos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
  max-width: 832px;
  margin-left: auto;
  margin-right: auto;
}

.segmento-card:last-child {
  grid-column: 1 / -1;
  max-width: calc(50% - 12px);
  margin: 0 auto;
}

@media (max-width: 600px) {
  .segmentos-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .segmento-card:last-child {
    max-width: 100%;
  }
}

.segmento-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.segmento-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.segmento-card h3 {
  margin: 16px 16px 6px;
  font-size: 1.3rem;
}

.segmento-card-subtitle {
  color: var(--color-primary);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 16px 8px;
}

.segmento-card p {
  color: var(--color-text-muted);
  font-size: 1rem;
  padding: 0 16px;
  flex-grow: 1;
}

.segmentos-grid-feature {
  grid-template-columns: 1fr;
  max-width: 900px;
}

.segmentos-grid-feature .segmento-card:last-child {
  max-width: 100%;
}

.segmento-card-feature {
  text-align: left;
}

.segmento-card-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
}

.segmento-card-body h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.segmento-card-body > p {
  padding: 0;
  margin: 0 0 20px;
  font-size: 1rem;
  flex-grow: 0;
}

.segmento-card-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.segmento-card-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 0.94rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.segmento-card-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.segmento-card:not(.segmento-card-feature) .segmento-card-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.segmento-card:not(.segmento-card-feature) .segmento-card-list li {
  text-align: left;
  color: var(--color-primary);
}

.segmento-card-tagline {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.segmento-card-tagline li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.segmento-card-tagline li:last-child {
  margin-bottom: 0;
}

.tagline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.tagline-icon-red {
  color: var(--color-accent-red);
}

.tagline-icon-yellow {
  color: var(--color-accent-yellow);
}

.segmento-card-feature .btn-card {
  margin: 0;
  align-self: flex-start;
  padding: 12px 28px;
}

.segmento-card-section {
  margin-bottom: 20px;
}

.segmento-card-section h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--color-primary);
}

.segmento-card-section p {
  margin: 0 0 4px;
  font-size: 0.94rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.segmento-card-section .segmento-card-list {
  margin-bottom: 4px;
}

.detalhe-lista {
  font-size: 0.85em;
  font-weight: 700;
}

.segmentos-extra {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .segmentos-extra {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

.segmentos-extra-item {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.segmentos-extra-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 65, 131, 0.12);
}

.segmentos-extra-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
}

.segmentos-extra-item:nth-child(3n+2) .segmentos-extra-icon {
  background: var(--color-accent-red);
}

.segmentos-extra-item:nth-child(3n+3) .segmentos-extra-icon {
  background: var(--color-accent-yellow);
  color: var(--color-primary-dark);
}

.segmentos-extra-item h4 {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-size: 1.05rem;
}

.segmentos-extra-item p {
  margin: 0 0 4px;
  font-size: 0.94rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.atividades-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 480px) {
  .atividades-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.atividade-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.atividade-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-light);
  color: var(--color-primary);
}

@media (min-width: 700px) {
  .segmento-card-feature {
    flex-direction: row;
    align-items: stretch;
  }

  .segmento-card-feature img {
    width: 42%;
    max-width: 340px;
    flex-shrink: 0;
  }

  .segmento-card-feature .segmento-card-body {
    flex: 1;
    justify-content: center;
  }
}

.btn-card {
  display: block;
  margin: 16px;
  padding: 10px 16px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  border-radius: 8px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-card:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* Diferenciais */

.diferenciais {
  padding: 60px 0;
  background: #e4ecf7;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 32px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .diferenciais-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .diferenciais-grid {
    grid-template-columns: 1fr;
  }
}

.diferencial-item {
  padding: 28px 22px;
  background: var(--color-bg-light);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.diferencial-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 65, 131, 0.12);
}

.diferencial-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
}

.diferencial-item:nth-child(3n+2) .diferencial-icon {
  background: var(--color-accent-red);
}

.diferencial-item:nth-child(3n+3) .diferencial-icon {
  background: var(--color-accent-yellow);
  color: var(--color-primary-dark);
}

.diferencial-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.diferenciais-cta {
  text-align: center;
  margin-top: 40px;
}

.segmentos-cta {
  text-align: center;
  margin-top: 40px;
}

/* Prova social */

.prova-social {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 50px 0;
  text-align: center;
}

.prova-social h2 {
  color: var(--color-white);
}

.prova-social p {
  color: #cfe0f5;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--color-white);
  transition: transform 0.15s ease, color 0.15s ease;
}

.social-icon:hover {
  color: var(--color-accent-yellow);
  transform: translateY(-3px);
}

.social-icon-small {
  width: 28px;
  height: 28px;
  color: #cfe0f5;
}

/* Localização */

.localizacao {
  padding: 60px 0;
}

.localizacao-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .localizacao-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.localizacao-texto p {
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .localizacao-texto {
    text-align: center;
  }
}

.localizacao-mapa iframe {
  border-radius: var(--radius);
}

/* Matrícula (form) */

.matricula {
  padding: 60px 0;
  background: #e4ecf7;
}

.matricula-inner {
  max-width: 560px;
}

#form-matricula {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d9e2;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 1rem;
}

.form-row input:focus,
.form-row select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.form-row-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-row-checkbox input {
  margin-top: 4px;
}

.form-row-checkbox label {
  font-weight: 400;
  font-size: 0.88rem;
}

.form-error {
  color: var(--color-accent-red);
  font-size: 0.85rem;
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

/* Footer */

.site-footer {
  background: var(--color-primary-dark);
  color: #cfe0f5;
  padding: 40px 0;
  text-align: center;
}

.footer-inner p {
  margin: 6px 0;
}

.footer-inner a {
  color: var(--color-white);
}

.logo-footer {
  margin: 0 auto 16px;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
}

.footer-legal {
  margin-top: 16px !important;
}

.footer-copy {
  font-size: 0.82rem;
  color: #8fa9c7;
  margin-top: 12px !important;
}

/* Botão flutuante WhatsApp */

.whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.whatsapp-float {
  position: relative;
  width: 58px;
  height: 58px;
  min-width: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.6;
  animation: whatsapp-pulse 2.2s ease-out infinite;
  z-index: -1;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* Caixa de diálogo do WhatsApp */

.whatsapp-bubble {
  position: relative;
  max-width: 240px;
  background: var(--color-white);
  color: var(--color-text);
  padding: 14px 30px 14px 16px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  cursor: pointer;
  margin-bottom: 18px;
}

.whatsapp-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.whatsapp-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 22px;
  width: 16px;
  height: 16px;
  background: var(--color-white);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  transform: rotate(-45deg);
}

.whatsapp-bubble-close {
  position: absolute;
  top: 4px;
  right: 6px;
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  color: #9aa5b1;
  cursor: pointer;
  padding: 4px;
}

.whatsapp-bubble-close:hover {
  color: var(--color-text);
}

@media (max-width: 480px) {
  .whatsapp-widget {
    bottom: 14px;
    right: 14px;
  }

  .whatsapp-bubble {
    max-width: 190px;
  }
}
