/* ===== Design tokens ===== */
:root {
  --navy: #060c22;
  --navy-soft: #0b1638;
  --royal: #1e4fd6;
  --royal-dark: #163aa3;
  --cyan: #22d3ee;
  --white: #ffffff;
  --gray-100: #f4f6fb;
  --gray-300: #d7dce6;
  --gray-500: #8891a4;
  --gray-700: #4a5468;
  --gray-900: #1b2233;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --header-h: 92px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 12, 34, 0.12);
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-heading); margin: 0; line-height: 1.25; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--royal);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn--accent {
  background: var(--cyan);
  color: var(--navy);
}
.btn--accent:hover {
  background: #0fb8d4;
  color: var(--navy);
}

.btn--outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--outline-light:hover {
  background: var(--cyan);
  color: var(--navy);
  border-color: var(--cyan);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(6, 12, 34, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  z-index: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__brand { display: flex; align-items: center; }
.header__logo { height: 78px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 28px; }
.nav__link {
  color: var(--gray-300);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav__link:hover, .nav__link:focus-visible {
  color: var(--white);
  border-color: var(--cyan);
}
.nav__cta { padding: 10px 22px; font-size: 0.92rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 0 64px;
  background-color: var(--navy);
  color: var(--white);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--bg-image);
  background-repeat: no-repeat;
  background-position: center 30%;
  background-size: cover;
  filter: brightness(0.62) saturate(1.15);
  transform: scale(1.03);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(34, 211, 238, 0.28), transparent 60%),
    linear-gradient(165deg, rgba(6, 12, 34, 0.72) 0%, rgba(9, 18, 46, 0.6) 45%, rgba(22, 58, 163, 0.55) 100%);
}
.hero__inner { max-width: 800px; position: relative; z-index: 1; transform: translateY(-28px); }
.eyebrow {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow--dark { color: var(--royal); }

.hero__title {
  font-family: 'Michroma', 'Segoe UI', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 18px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--gray-100);
  max-width: 620px;
  margin: 0 auto 20px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.hero__slogan {
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 40px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.hero__actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section--alt { background: var(--gray-100); }
.section--dark {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
}
.section--photo {
  position: relative;
  color: var(--white);
  background-color: var(--navy);
  isolation: isolate;
  overflow: hidden;
}
.section--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--bg-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  filter: brightness(0.42) saturate(1.1);
  transform: scale(1.03);
}
.section--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(165deg, rgba(6, 12, 34, 0.85) 0%, rgba(11, 22, 56, 0.72) 55%, rgba(11, 22, 56, 0.8) 100%);
}
.section--photo .container { position: relative; z-index: 1; }
.section--photo .section__lead { color: var(--gray-100); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55); }
.section--photo .eyebrow { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55); }
.section--photo .section__title--light { text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45); }
.mercado__text-light { color: var(--gray-100); margin: 0 0 16px; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55); }
.mercado__text-light strong { color: var(--cyan); }
.section__title {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
  max-width: 700px;
}
.section__title--light { color: var(--white); }
.section__lead {
  font-size: 1.08rem;
  color: var(--gray-700);
  max-width: 700px;
  margin-bottom: 50px;
}
.section__lead--light { color: var(--gray-300); }

/* ===== FAQ ===== */
.faq__header {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.faq__header .section__lead { margin-left: auto; margin-right: auto; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 780px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 6px 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item[open] { border-color: var(--royal); box-shadow: var(--shadow); }
.faq-item__question {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--royal);
  border-radius: 2px;
  transition: transform var(--transition);
}
.faq-item__icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-item__icon::after { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-item[open] .faq-item__icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-item__answer {
  margin: 0;
  padding: 0 0 20px;
  color: var(--gray-700);
  font-size: 0.98rem;
}

/* ===== History ===== */
.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 64px;
}
.history-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 30px 28px;
  border-left: 4px solid var(--royal);
}
.history-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.history-card p { color: var(--gray-700); margin: 0; font-size: 0.98rem; }

/* ===== Mission / Vision / Values ===== */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.mvv-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.mvv-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--royal), var(--cyan));
  color: var(--white);
  margin-bottom: 20px;
}
.mvv-card__icon svg { width: 26px; height: 26px; }
.mvv-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 12px; }
.mvv-card p { color: var(--gray-700); margin: 0; font-size: 0.98rem; }
.mvv-list { display: flex; flex-direction: column; gap: 8px; }
.mvv-list li {
  color: var(--gray-700);
  font-size: 0.95rem;
  padding-left: 20px;
  position: relative;
}
.mvv-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

/* ===== Cards (soluções) ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  border-top: 3px solid var(--cyan);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.4);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--cyan);
  margin-bottom: 22px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.25rem; color: var(--white); margin-bottom: 12px; }
.card p { color: var(--gray-100); font-size: 0.98rem; margin: 0 0 16px; }
.card__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
.card__list li {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

/* ===== Mercado ===== */
.mercado__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.mercado__text p { margin: 0 0 16px; }
.mercado__stats {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.stat {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 26px 28px;
  border-left: 3px solid var(--cyan);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}
.stat__num { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--white); }
.stat__label { color: var(--gray-100); font-size: 0.92rem; }

/* ===== CTA ===== */
.cta {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  background: linear-gradient(155deg, var(--navy) 0%, var(--royal-dark) 60%, var(--royal) 130%);
  text-align: center;
  isolation: isolate;
}
.cta__glow {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 12% 20%, rgba(34, 211, 238, 0.28), transparent 60%),
    radial-gradient(700px 500px at 88% 85%, rgba(34, 211, 238, 0.2), transparent 60%);
}
.cta__inner { max-width: 720px; }
.cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #38bdf8;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.cta__title {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 18px;
}
.cta__text {
  font-size: 1.08rem;
  color: var(--gray-100);
  max-width: 560px;
  margin: 0 auto 36px;
}
.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cta__btn {
  padding: 16px 34px;
  font-size: 1.02rem;
  background: #0e7490;
  color: var(--white);
  box-shadow: 0 16px 34px rgba(14, 116, 144, 0.35);
}
.cta__btn:hover { background: #0c5f78; color: var(--white); }
.cta__btn svg { width: 20px; height: 20px; }
.cta__note { font-size: 0.88rem; color: var(--gray-300); }

/* ===== Contato ===== */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.contact-item {
  flex: 1 1 300px;
  max-width: 340px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
a.contact-item:hover {
  background: rgba(34, 211, 238, 0.14);
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.contact-item__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cyan);
  color: var(--navy);
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item strong { display: block; color: var(--white); margin-bottom: 4px; font-size: 1rem; }
.contact-item span span { color: var(--gray-300); font-size: 0.94rem; }

/* ===== Footer ===== */
.footer { background: var(--navy); color: var(--gray-300); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 64px 24px 40px;
}
.footer__logo { height: 84px; margin-bottom: 14px; }
.footer__brand p { font-size: 0.92rem; color: var(--gray-500); }
.footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}
.footer__nav ul, .footer__contact p { margin: 0 0 10px; }
.footer__nav a, .footer__contact a {
  color: var(--gray-300);
  font-size: 0.94rem;
  transition: color var(--transition);
}
.footer__nav a:hover, .footer__contact a:hover { color: var(--cyan); }
.footer__contact p { color: var(--gray-300); font-size: 0.94rem; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}
.footer__bottom p { margin: 0; font-size: 0.85rem; color: var(--gray-500); text-align: center; }

/* ===== WhatsApp float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  z-index: 400;
  transition: background var(--transition);
}
.whatsapp-float:hover { background: #1ebe57; }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .history-grid, .mvv-grid, .cards-grid { grid-template-columns: 1fr; }
  .mercado__inner { grid-template-columns: 1fr; }
  .contact-item { flex: 1 1 100%; max-width: 420px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 30px;
    gap: 20px;
    transform: translateY(-140%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav__link { display: block; padding: 12px 4px; }
  .nav__cta { align-self: flex-start; }
  .menu-toggle { display: flex; }
}

@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .hero {
    align-items: flex-start;
    padding: calc(var(--header-h) + 56px) 0 48px;
  }
  .card__list { grid-template-columns: 1fr; }
}

/* ===== Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.header {
  animation: header-drop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes header-drop {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.whatsapp-float {
  animation: fade-in 0.6s ease 0.4s both;
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.btn--accent, .card__icon, .mvv-card__icon {
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover .card__icon, .mvv-card:hover .mvv-card__icon {
  transform: scale(1.08) rotate(-4deg);
}

.stat {
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .header, .whatsapp-float {
    animation: none;
  }
  .card:hover, .stat:hover {
    transform: none;
  }
}
