/* =====================================================================
   home.css  —  Página inicial
   ===================================================================== */

/* ── Hero ──────────────────────────────────────────────────────────── */
.h-hero {
  position: relative;
  min-height: min(100vh, 860px);
  padding-top: calc(var(--nav-h) + 96px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.h-hero-media { position: absolute; inset: 0; z-index: -1; }
.h-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  animation: h-zoom 18s ease-out both;
}
.h-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 46, 0.96) 0%, rgba(8, 20, 46, 0.86) 38%, rgba(8, 20, 46, 0.35) 72%, rgba(8, 20, 46, 0.2) 100%),
    linear-gradient(0deg, rgba(8, 20, 46, 0.9) 0%, rgba(8, 20, 46, 0) 38%);
}

@keyframes h-zoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.h-hero-body { width: 100%; }
.h-hero-body > * { max-width: 680px; animation: h-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.h-hero-body > :nth-child(2) { animation-delay: 0.08s; }
.h-hero-body > :nth-child(3) { animation-delay: 0.16s; }
.h-hero-body > :nth-child(4) { animation-delay: 0.24s; }

@keyframes h-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.h-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 24px;
}

.h-hero-lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: #c9d3e3;
  max-width: 600px;
  margin-bottom: 40px;
}

.h-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.h-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 96px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.h-facts > div {
  padding: 28px 24px 36px 0;
  margin-right: 24px;
}
.h-facts > div + div {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.h-facts dt {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 10px;
}
.h-facts .h-facts-text { font-size: 1.35rem; line-height: 1.65rem; }
.h-facts dd { font-size: 0.9rem; line-height: 1.5; color: #a9b5c9; margin: 0; }

/* ── Quem somos ────────────────────────────────────────────────────── */
.h-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.h-about-media { position: relative; margin: 0; }
.h-about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 62% center;
  border-radius: var(--radius);
  display: block;
}
.h-about-media figcaption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 40px -20px rgba(10, 27, 61, 0.45);
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}
.h-about-media figcaption i { font-size: 1.4rem; color: var(--brand); line-height: 1; }
.h-about-media figcaption strong { display: block; color: var(--ink); font-size: 0.95rem; }

.h-about-text .h-title { margin-bottom: 24px; }
.h-about-text > p:not(.h-eyebrow) { color: var(--text); line-height: 1.75; margin-bottom: 16px; }
.h-about-text > .h-lead { color: var(--ink); }

.h-values {
  list-style: none;
  margin: 32px 0 36px;
  border-top: 1px solid var(--line);
}
.h-values li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.55;
}
.h-values i { font-size: 1.35rem; color: var(--brand); line-height: 1.1; }
.h-values strong { display: block; color: var(--ink); font-weight: 600; }

/* ── Serviços ──────────────────────────────────────────────────────── */
.h-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.h-service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 32px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.h-service:hover {
  border-color: #c8d6f5;
  box-shadow: 0 22px 44px -28px rgba(10, 27, 61, 0.35);
  transform: translateY(-3px);
}

.h-service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eaf1ff;
  color: var(--brand);
  font-size: 1.5rem;
  margin-bottom: 22px;
}

.h-service h3 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
}

.h-service ul { list-style: none; }
.h-service li {
  position: relative;
  padding-left: 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 8px;
}
.h-service li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 2px;
  background: var(--brand);
}

/* ── Sectores ──────────────────────────────────────────────────────── */
.h-sectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.h-sector {
  padding: 36px 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.25s;
}
.h-sector:hover { background: rgba(255, 255, 255, 0.04); }
.h-sector i { font-size: 1.75rem; color: #7cc0ff; }
.h-sector h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin: 18px 0 8px; }
.h-sector p { font-size: 0.92rem; line-height: 1.6; color: #a9b5c9; }

/* ── Como trabalhamos ──────────────────────────────────────────────── */
.h-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: none;
}
.h-steps li { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.h-steps li::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--brand);
}
.h-step-n {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
}
.h-steps h3 { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.h-steps p { font-size: 0.93rem; line-height: 1.65; color: var(--text); }

/* ── Trabalho recente ──────────────────────────────────────────────── */
.h-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.h-news--1 { grid-template-columns: minmax(0, 720px); }
.h-news--2 { grid-template-columns: repeat(2, 1fr); }

.h-news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s, transform 0.25s;
}
.h-news-card:hover { box-shadow: 0 24px 48px -30px rgba(10, 27, 61, 0.4); transform: translateY(-3px); }

.h-news-img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), var(--brand)); overflow: hidden; }
.h-news-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s; }
.h-news-card:hover .h-news-img img { transform: scale(1.04); }

.h-news-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.h-news-body time { font-size: 0.82rem; font-weight: 500; color: var(--muted); margin-bottom: 10px; }
.h-news-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}
.h-news-body p { font-size: 0.93rem; line-height: 1.6; color: var(--text); margin-bottom: 20px; }
.h-news-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}

/* ── Contacto ──────────────────────────────────────────────────────── */
.h-contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.h-contact-info .h-title { margin-bottom: 18px; }
.h-contact-info .h-lead { color: var(--text); font-size: 1.02rem; }

.h-contact-list { list-style: none; margin-top: 40px; }
.h-contact-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
  color: var(--ink);
}
.h-contact-list li:last-child { border-bottom: 1px solid var(--line); }
.h-contact-list i {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eaf1ff;
  color: var(--brand);
  font-size: 1.25rem;
}
.h-contact-list span { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 2px; }
.h-contact-list a { color: var(--ink); text-decoration: none; }
.h-contact-list a:hover { color: var(--brand); }

.h-form {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 30px 60px -40px rgba(10, 27, 61, 0.35);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.h-form h3 { font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.h-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.h-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.h-form input,
.h-form select,
.h-form textarea {
  font: inherit;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d4dae4;
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.h-form select { appearance: auto; height: 48px; }
.h-form textarea { resize: vertical; min-height: 130px; }
.h-form input::placeholder,
.h-form textarea::placeholder { color: #9aa3b2; }
.h-form input:focus,
.h-form select:focus,
.h-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.14);
}
.h-form-note { font-size: 0.8rem; color: var(--muted); text-align: center; }

.h-map {
  margin-top: 80px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.h-map iframe { display: block; border: 0; }

/* ── Responsivo ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .h-services { grid-template-columns: repeat(2, 1fr); }
  .h-logos { grid-template-columns: repeat(4, 1fr); }
  .h-about, .h-contact { gap: 56px; }
}

@media (max-width: 900px) {
  .h-section { padding: 80px 0; }
  .h-head, .h-clients-head, .h-cta-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .h-head--center { align-items: center; }
  .h-about, .h-contact { grid-template-columns: 1fr; }
  .h-about-media img { aspect-ratio: 16 / 11; }
  .h-sectors { grid-template-columns: repeat(2, 1fr); }
  .h-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .h-news, .h-news--2 { grid-template-columns: 1fr; }
  .h-facts { grid-template-columns: repeat(2, 1fr); margin-top: 64px; }
  .h-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .h-facts > div:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.16); }
}

@media (max-width: 600px) {
  .h-hero { padding-top: calc(var(--nav-h) + 56px); min-height: auto; }
  .h-hero-media img { object-position: 78% center; }
  .h-hero-media::after {
    background: linear-gradient(180deg, rgba(8, 20, 46, 0.78) 0%, rgba(8, 20, 46, 0.92) 60%, rgba(8, 20, 46, 0.98) 100%);
  }
  .h-hero-actions .h-btn { flex: 1 1 100%; }
  .h-facts { grid-template-columns: 1fr 1fr; }
  .h-facts > div { padding: 22px 12px 26px 0; margin-right: 12px; }
  .h-facts > div + div { padding-left: 12px; }
  .h-facts > div:nth-child(3) { padding-left: 0; }
  .h-facts dt { font-size: 1.8rem; }
  .h-facts .h-facts-text { font-size: 1.1rem; line-height: 1.8rem; }
  .h-logos { grid-template-columns: repeat(2, 1fr); }
  .h-logos li { height: 110px; }
  .h-sectors, .h-steps { grid-template-columns: 1fr; }
  .h-services { grid-template-columns: 1fr; }
  .h-form { padding: 28px 22px; }
  .h-form-row { grid-template-columns: 1fr; }
  .h-cta-actions, .h-cta-actions .h-btn { width: 100%; }
  .h-map { margin-top: 56px; }
  .h-map iframe { height: 320px; }
}
