/* ============================================================
   Transavante — Design System
   ============================================================ */
:root {
  /* Brand */
  --navy-900: #071c3b;
  --navy-800: #0d2b57;
  --navy-700: #123a72;
  --navy-600: #1a4d92;
  --cyan-500: #159fd4;
  --cyan-400: #34b3e4;
  --cyan-100: #e2f3fb;

  /* Neutrals */
  --ink: #0f1b2d;
  --slate-700: #33445c;
  --slate-500: #5b6b82;
  --slate-300: #c4cedb;
  --slate-100: #eef2f7;
  --slate-50: #f7f9fc;
  --white: #ffffff;

  /* System */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(7, 28, 59, .08), 0 1px 2px rgba(7, 28, 59, .06);
  --shadow: 0 10px 30px rgba(7, 28, 59, .10);
  --shadow-lg: 0 24px 60px rgba(7, 28, 59, .18);
  --ring: 0 0 0 3px rgba(21, 159, 212, .35);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', var(--font-sans);

  --transition: .28s cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan-500); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; color: var(--navy-800); }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --btn-bg: var(--cyan-500);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-family: var(--font-sans); font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--cyan-500); color: #fff; box-shadow: 0 8px 20px rgba(21, 159, 212, .35); }
.btn-primary:hover { background: var(--cyan-400); box-shadow: 0 12px 26px rgba(21, 159, 212, .45); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.section .btn-ghost { color: var(--navy-800); border-color: var(--slate-300); }
.section .btn-ghost:hover { background: var(--slate-100); border-color: var(--navy-700); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--slate-100);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand-logo { height: 42px; width: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; }
.nav-list a {
  display: inline-block; color: var(--slate-700); font-weight: 500; font-size: .96rem;
  padding: .55rem .85rem; border-radius: 999px; transition: color var(--transition), background var(--transition);
}
.nav-list a:hover { color: var(--navy-800); background: var(--slate-100); text-decoration: none; }
.nav-list a.active { color: var(--navy-800); }
.nav-cta { background: var(--navy-800); color: #fff !important; padding: .6rem 1.3rem !important; }
.nav-cta:hover { background: var(--navy-700) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: var(--transition); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 28, 59, .94) 0%, rgba(13, 43, 87, .82) 42%, rgba(7, 28, 59, .35) 100%),
    linear-gradient(to top, rgba(7, 28, 59, .7), transparent 55%);
}
.hero-content { position: relative; padding: clamp(90px, 15vh, 170px) 0 clamp(64px, 10vh, 110px); max-width: 720px; }
.eyebrow {
  display: inline-block; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  font-size: .8rem; color: var(--cyan-400); margin-bottom: 1rem;
  padding: .35rem .8rem; border: 1px solid rgba(52, 179, 228, .4); border-radius: 999px;
}
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); color: #fff; margin: 0 0 1.2rem; }
.hero h1 span { color: var(--cyan-400); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .88); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem); margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .18); }
.hero-stats div { margin: 0; }
.hero-stats dt { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; }
.hero-stats dd { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .75); max-width: 160px; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-alt { background: var(--slate-50); }
.section-eyebrow { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; color: var(--cyan-500); margin-bottom: .6rem; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 0 0 1rem; }
.section-sub { font-size: 1.1rem; color: var(--slate-700); }
.section-head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

/* Empresa */
.empresa-media > img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 16/10; }
.feature-cards { display: grid; gap: 1rem; margin-top: 1.4rem; }
.feature-card { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; align-items: start; padding: 1.2rem 1.4rem; background: var(--white); border: 1px solid var(--slate-100); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature-ic { grid-row: span 2; font-size: 1.6rem; }
.feature-card h3 { margin: 0; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--slate-500); font-size: .95rem; }

/* Missão / Visão / Valores */
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.mvv-card { background: var(--white); border: 1px solid var(--slate-100); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.mvv-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--navy-700), var(--cyan-500)); }
.mvv-card--accent { background: linear-gradient(150deg, var(--navy-800), var(--navy-600)); color: #fff; border: 0; }
.mvv-card--accent .mvv-tag { color: var(--cyan-400); }
.mvv-tag { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--navy-800); margin-bottom: .6rem; }
.mvv-card p { margin: 0; font-size: 1.02rem; }

.values-title { text-align: center; font-size: 1.5rem; margin: 0 0 2rem; }
.values-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.values-list li { padding: 1.1rem 1.3rem 1.1rem 1.5rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--slate-100); border-left: 3px solid var(--cyan-500); box-shadow: var(--shadow-sm); }
.values-list strong { display: block; color: var(--navy-800); margin-bottom: .15rem; }
.values-list span { color: var(--slate-500); font-size: .93rem; }

/* Certificados */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.cert-card { margin: 0; background: var(--white); border: 1px solid var(--slate-100); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cert-card img { width: 100%; height: 190px; object-fit: contain; background: var(--slate-50); padding: 14px; }
.cert-card figcaption { padding: 1.1rem 1.2rem 1.3rem; border-top: 1px solid var(--slate-100); }
.cert-card figcaption strong { display: block; color: var(--navy-800); margin-bottom: .2rem; }
.cert-card figcaption span { color: var(--slate-500); font-size: .88rem; }

/* Clientes */
.client-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.client-grid li {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 78px; padding: 1rem; background: var(--white); border: 1px solid var(--slate-100);
  border-radius: var(--radius); font-weight: 600; color: var(--navy-700); box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), color var(--transition);
}
.client-grid li:hover { transform: translateY(-3px); border-color: var(--cyan-500); color: var(--navy-800); }

/* Contato */
.contato-grid { align-items: stretch; }
.contact-list { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-ic { flex: 0 0 46px; height: 46px; display: grid; place-items: center; background: var(--cyan-100); border-radius: 12px; font-size: 1.3rem; }
.contact-list a { color: var(--navy-700); font-weight: 600; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; border: 1px solid var(--slate-100); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; display: block; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .78); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-logo { height: 44px; background: #fff; padding: 6px 10px; border-radius: 8px; margin-bottom: 1rem; }
.footer-brand p { max-width: 320px; font-size: .95rem; }
.footer-nav { display: flex; flex-direction: column; gap: .6rem; }
.footer-nav a { color: rgba(255, 255, 255, .78); font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-contact p { margin: 0 0 .5rem; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom .container { padding-block: 1.4rem; font-size: .85rem; color: rgba(255, 255, 255, .55); }

/* ============================================================
   Chat / IA
   ============================================================ */
.chat { position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 150; }
.chat-fab {
  display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.3rem .85rem 1.1rem;
  background: var(--navy-800); color: #fff; border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: var(--shadow-lg); font-weight: 600; font-family: var(--font-sans); font-size: .96rem;
  transition: transform var(--transition), background var(--transition);
}
.chat-fab:hover { transform: translateY(-2px); background: var(--navy-700); }
.chat-fab svg { color: var(--cyan-400); }
.chat.open .chat-fab { transform: scale(.9); opacity: 0; pointer-events: none; }

.chat-panel {
  position: absolute; right: 0; bottom: 0; width: min(390px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 48px));
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--slate-100);
  opacity: 0; transform: translateY(20px) scale(.96); pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.chat.open .chat-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-header { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: #fff; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .15); display: grid; place-items: center; color: var(--cyan-400); }
.chat-head-text { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.chat-head-text strong { font-size: 1rem; }
.chat-head-text span { font-size: .8rem; color: rgba(255, 255, 255, .75); }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; opacity: .8; padding: 0 4px; }
.chat-close:hover { opacity: 1; }

.chat-body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .8rem; background: var(--slate-50); }
.msg { max-width: 84%; padding: .7rem .95rem; border-radius: 16px; font-size: .93rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { align-self: flex-start; background: var(--white); border: 1px solid var(--slate-100); border-bottom-left-radius: 5px; color: var(--ink); box-shadow: var(--shadow-sm); }
.msg.user { align-self: flex-end; background: var(--navy-800); color: #fff; border-bottom-right-radius: 5px; }
.msg a { color: var(--cyan-500); }
.msg.user a { color: var(--cyan-400); }
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing span { width: 7px; height: 7px; background: var(--slate-300); border-radius: 50%; animation: blink 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-suggestions { display: flex; flex-wrap: wrap; gap: .5rem; padding: .7rem 1.1rem; background: var(--slate-50); border-top: 1px solid var(--slate-100); }
.chat-suggestions button { font: inherit; font-size: .82rem; padding: .45rem .8rem; background: var(--white); border: 1px solid var(--slate-300); border-radius: 999px; color: var(--navy-700); cursor: pointer; transition: var(--transition); }
.chat-suggestions button:hover { border-color: var(--cyan-500); color: var(--navy-800); background: var(--cyan-100); }
.chat-suggestions.hidden { display: none; }

.chat-form { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--slate-100); background: var(--white); }
.chat-form input { flex: 1; border: 1px solid var(--slate-300); border-radius: 999px; padding: .7rem 1.1rem; font: inherit; font-size: .93rem; outline: none; transition: var(--transition); }
.chat-form input:focus { border-color: var(--cyan-500); box-shadow: var(--ring); }
.chat-form button { flex: 0 0 44px; height: 44px; border-radius: 50%; border: 0; background: var(--cyan-500); color: #fff; cursor: pointer; display: grid; place-items: center; transition: var(--transition); }
.chat-form button:hover { background: var(--cyan-400); }
.chat-form button:disabled { opacity: .5; cursor: not-allowed; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .mvv-grid { grid-template-columns: 1fr; }
  .values-list { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute; top: 72px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--white); padding: 1rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--slate-100); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform var(--transition); z-index: -1;
  }
  .nav.open .nav-list { transform: translateY(0); }
  .nav-list a { padding: .8rem 1rem; }
  .nav-cta { text-align: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .empresa-media { order: -1; }
}
@media (max-width: 560px) {
  .cert-grid { grid-template-columns: 1fr; }
  .values-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem 2rem; }
  .chat-fab-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
