/* ══════════════════════════════════════════════════════
   style.css — Página Principal (index.html)
   ══════════════════════════════════════════════════════ */

:root {
  /* Hero usa main-header.jpg (existe no projeto) como fallback */
  --header-bg: url('assets/images/main-header.jpg');
  --header-overlay: rgba(0, 0, 0, 0.52);
  --primary: #0f3c46;
  --secondary: #1f6f78;
  --accent: #1a8c6e;
  --light-bg: #f4f6f8;
  --dark-bg: #0b2d35;
  --teal-bg: #0f3c46;
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f6f9fa;
  color: #222;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}


/* ══════════════════════════════════════════════════════
   TOP-BAR CENTER — bloco MEMORA centralizado
   (posição da marcação vermelha na imagem)
   ══════════════════════════════════════════════════════ */
.top-bar-center {
  position: absolute;
  left: 28%;
  top: 35%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.top-bar-title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  line-height: 1;
}

.top-bar-sub {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 1.5px;
  margin-top: 3px;
}

.site-header .top-bar {
  position: relative;
}


/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
.hero {
  min-height: 84vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.60)),
    url("assets/images/hero-bg.jpg") center / cover no-repeat,
    url("assets/images/main-header.jpg") center / cover no-repeat;
  /* Fallback em cascata: tenta hero-bg.jpg, se não existir usa main-header.jpg */
  display: flex;
  align-items: center;
}

.hero-content {
  padding: 56px 0;
}

.hero-text {
  max-width: 780px;
}

.hero-text h1 {
  color: #fff;
  font-size: 50px;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-text>p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 38px;
  max-width: 540px;
}

/* Botões do hero */
.hero-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 680px;
}

.hero-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.93);
  color: #0b3a42;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s, box-shadow 0.2s, background 0.15s;
}

.hero-btn:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  color: #0b3a42;
}

.hero-btn:active {
  transform: translateY(-1px);
}

.hero-btn--accent {
  background: #1f6f78;
  color: #fff;
  box-shadow: 0 4px 18px rgba(31, 111, 120, 0.45);
}

.hero-btn--accent:hover {
  background: #0f3c46;
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 60, 70, 0.45);
}

.hero-btn-icon {
  font-size: 18px;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════
   SEÇÕES "SOBRE"
   ══════════════════════════════════════════════════════ */

/* ── Base de seção ── */
.about-section {
  padding: 90px 0;
}

.about-section--light {
  background: var(--light-bg);
}

.about-section--dark {
  background: var(--dark-bg);
}

.about-section--teal {
  background: var(--teal-bg);
}

/* ── Container split (texto + imagem) ── */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-container--reverse {
  direction: rtl;
  /* inverte coluna sem mudar HTML */
}

.about-container--reverse>* {
  direction: ltr;
  /* restaura texto normal */
}

/* ── Texto ── */
.about-text {
  max-width: 520px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-text--white p {
  color: rgba(255, 255, 255, 0.72);
}

.about-text--white h2 {
  color: #fff;
}

/* ── Badge (pílula colorida) ── */
.about-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: #e8f5f7;
  color: var(--secondary);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.about-badge--light {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}

/* ── Stats (números grandes) ── */
.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-stat strong {
  font-size: 36px;
  font-weight: 800;
  color: #27ae60;
  line-height: 1;
}

.about-stat span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 130px;
  line-height: 1.5;
}

/* ── Imagem placeholder ── */
.about-image-wrap {
  width: 100%;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: #e8f2f4;
  border: 2px inset #b8d4d8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.about-image-placeholder--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.about-image-placeholder--teal {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.img-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}

.img-placeholder-icon {
  font-size: 36px;
  opacity: 0.4;
}

.img-placeholder-content span {
  font-size: 13px;
  color: #aaa;
  font-weight: 500;
}

.about-image-placeholder--dark .img-placeholder-content span,
.about-image-placeholder--teal .img-placeholder-content span {
  color: rgba(255, 255, 255, 0.35);
}

.img-placeholder-content code {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
  color: #888;
  font-family: monospace;
}

.about-image-placeholder--dark .img-placeholder-content code,
.about-image-placeholder--teal .img-placeholder-content code {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
}


/* ══════════════════════════════════════════════════════
   FUNCIONALIDADES — grid de cards
   ══════════════════════════════════════════════════════ */

.features-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 52px;
}

.features-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.2;
}

.features-header p {
  font-size: 15px;
  color: #777;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.22s, box-shadow 0.22s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.13);
}

/* Área da imagem do feature-card */
.feature-img-wrap {
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: #f0f7f8;
}

.feature-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.feature-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f5f7, #d4edef);
  border-bottom: 1px dashed #b0d4d8;
}

.feature-img-placeholder span {
  font-size: 11px;
  color: #a0bfc4;
  font-family: monospace;
  text-align: center;
  padding: 0 12px;
}

/* Corpo do feature-card */
.feature-body {
  padding: 22px 22px 26px;
}

.feature-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.feature-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.feature-body p {
  font-size: 13px;
  color: #777;
  line-height: 1.65;
}


/* ══════════════════════════════════════════════════════
   TECNOLOGIAS — lista estilizada
   ══════════════════════════════════════════════════════ */

.tech-list {
  list-style: none;
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.tech-dot {
  width: 8px;
  height: 8px;
  background: #27ae60;
  border-radius: 50%;
  flex-shrink: 0;
}

.about-evolution {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-style: italic;
  margin-top: 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
}


/* ══════════════════════════════════════════════════════
   CTA FINAL
   ══════════════════════════════════════════════════════ */

.cta-section {
  padding: 100px 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.70)),
    url("assets/images/main-header.jpg") center / cover no-repeat;
}

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

.cta-content h2 {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.cta-content>p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.70);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 15px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
}

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

.cta-btn--primary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 6px 22px rgba(31, 111, 120, 0.45);
}

.cta-btn--primary:hover {
  background: #0f3c46;
  box-shadow: 0 10px 30px rgba(15, 60, 70, 0.5);
}

.cta-btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}


/* ══════════════════════════════════════════════════════
   RESPONSIVO
   ══════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-container--reverse {
    direction: ltr;
  }

  .about-text {
    max-width: 100%;
  }

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

  .top-bar-center {
    display: none;
  }

  /* esconde em tablet/mobile */
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 36px;
  }

  .hero-text>p {
    font-size: 15px;
  }

  .hero-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .about-section {
    padding: 60px 0;
  }

  .about-text h2 {
    font-size: 26px;
  }

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

  .cta-content h2 {
    font-size: 28px;
  }
}

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

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}