/**
 * Página Home - Ionfix Oil & Gás
 * Hero com imagem de fundo (navio)
 */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  overflow: hidden;
}

.hero__image-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../../imgs/navio-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero h1 {
  margin-bottom: var(--space-md);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero__subtitle {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-xl);
  line-height: var(--line-height-relaxed);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.hero__buttons {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__cta {
  margin-top: 0;
}

.hero__cta iconify-icon {
  color: inherit;
}

@media (max-width: 640px) {
  .hero {
    padding: var(--space-xl) var(--space-md);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }
}

/* ========== SEÇÕES RESUMO (SOBRE, SERVIÇOS, FABRICAÇÕES) ========== */

.home-section__cta {
  margin-top: var(--space-lg);
}

.home-section__cta iconify-icon {
  color: inherit;
}

.home-section__cta-wrap {
  text-align: center;
  margin-top: var(--space-2xl);
  margin-bottom: 0;
}

.home-section__cta-wrap .home-section__cta {
  margin-top: 0;
}

/* Grid de 3 cards na home (Serviços e Fabricações) */
.home-diffs-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .home-diffs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .home-diffs-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== NOSSOS CLIENTES ========== */

.home-clients {
  padding: var(--space-4xl) 0;
  background-color: #242d3c;
}

.home-clients__title {
  text-align: center;
  margin-bottom: var(--space-sm);
  color: #fff;
}

.home-clients__subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 auto var(--space-2xl);
}

.home-clients__grid {
  display: grid;
  grid-template-columns: repeat(4, 160px);
  gap: 20px;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.home-clients__logo {
  width: 160px;
  height: 80px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
}

@media (max-width: 900px) {
  .home-clients__grid {
    grid-template-columns: repeat(3, 140px);
    gap: 20px;
  }

  .home-clients__logo {
    width: 140px;
    height: 70px;
  }
}

@media (max-width: 640px) {
  .home-clients {
    padding: var(--space-2xl) 0;
  }

  .home-clients__grid {
    grid-template-columns: repeat(2, 130px);
    gap: 20px;
  }

  .home-clients__logo {
    width: 130px;
    height: 65px;
  }
}

/* ========== DEPOIMENTOS ========== */

.home-depoimentos {
  padding: var(--space-4xl) 0;
}

.home-depoimentos__title {
  text-align: center;
  margin-bottom: var(--space-sm);
}

.home-depoimentos__subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto var(--space-2xl);
}

.home-depoimentos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.depoimento-card {
  background: var(--bg-card);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: box-shadow var(--transition-normal),
    transform var(--transition-normal);
}

.depoimento-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.depoimento-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-lg);
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-full);
  color: var(--text-tertiary);
}

.depoimento-card__quote {
  font-size: var(--font-size-small);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0 0 var(--space-lg);
  font-style: italic;
}

.depoimento-card__quote--rich p {
  margin: 0 0 0.5em;
}

.depoimento-card__quote--rich p:last-child {
  margin-bottom: 0;
}

.depoimento-card__author {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.depoimento-card__name {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  font-style: normal;
}

.depoimento-card__role {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

@media (max-width: 900px) {
  .home-depoimentos__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 640px) {
  .home-depoimentos {
    padding: var(--space-2xl) 0;
  }

  .depoimento-card {
    padding: var(--space-xl);
  }
}

/* ========== CTA FINAL CONTATO ========== */

.home-cta {
  padding: var(--space-4xl) 0;
  background-color: #242d3c;
}

.home-cta__box {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-2xl);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-cta__title {
  margin-bottom: var(--space-sm);
  color: #fff;
}

.home-cta__text {
  margin-bottom: var(--space-xl);
  color: #fff;
}

/* global.css aplica `p { color: var(--text-secondary) }` — forçar branco no CTA escuro */
.home-cta__text--rich p,
.home-cta__text--rich li {
  color: #fff;
}

.home-cta__text--rich a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.home-cta__text--rich a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.home-cta__text--rich > *:last-child {
  margin-bottom: 0;
}

.home-cta__text--rich p {
  margin: 0 0 0.75em;
}

.home-cta .btn--large {
  padding: var(--space-md) var(--space-2xl);
  font-size: 1.0625rem;
}
