/* =========================================================
   Nexo | Estilos
   Paleta Oficial: Opção 3 — Minimalista (5 Cores)
   ========================================================= */
:root {
  /* 1. Verde Principal (Identidade e Destaques) */
  --primary: #0A9092;
  
  /* 2. Cinza Chumbo Suave (Títulos, Textos Principais e Botões Escuros) */
  --text-main: #626A6B;
  
  /* 3. Cinza Médio Claro (Textos Secundários, Subtítulos e Ícones Muted) */
  --text-muted: #A0A5A5;
  
  /* 4. Cinza Muito Claro (Cards, Tags, Bordas e Detalhes Leves) */
  --surface-light: #E1E3E2;
  --line: #E1E3E2;
  
  /* 5. Fundo (Background Geral e Papel) */
  --bg-main: #FAF9F7;
  --paper: #FFFFFF;

  /* Tipografia */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Geometria e Layout */
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: var(--surface-light); color: var(--primary); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.view-title:focus, main:focus { outline: none; }

h1, h2, h3 { font-family: var(--serif); color: var(--primary); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.2rem; }
h1 em { font-style: italic; font-weight: 500; color: var(--primary); }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 2 * clamp(20px, 4vw, 40px)); margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--paper); padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; }

/* ---------- Botões ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.button i { font-size: .8em; }

.button-primary { background: var(--primary); color: var(--bg-main); box-shadow: 0 10px 24px -12px rgba(10, 144, 146, 0.4); }
.button-primary:hover { background: var(--text-main); transform: translateY(-1px); }

.button-ghost { border-color: var(--line); color: var(--primary); }
.button-ghost:hover { border-color: var(--primary); background: var(--surface-light); }

.button-light { background: var(--surface-light); color: var(--primary); }
.button-light:hover { background: var(--paper); }
.button:disabled { opacity: .7; cursor: progress; transform: none; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 249, 247, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(98, 106, 107, 0.2); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; padding-bottom: 4px;
  background: var(--primary); color: var(--bg-main);
  font: 700 1.45rem/1 var(--serif);
}
.brand-word { display: flex; flex-direction: column; font: 700 1.6rem/1 var(--serif); color: var(--primary); letter-spacing: -0.02em; }
.brand-dot { color: var(--primary); }
.brand-word small { font: 500 .66rem/1.4 var(--sans); letter-spacing: .08em; color: var(--text-muted); margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.button) {
  padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--text-main);
  transition: background-color .2s, color .2s;
}
.main-nav a:not(.button):hover { color: var(--primary); }
.main-nav a[aria-current="page"] { background: var(--surface-light); color: var(--primary); }
.nav-cta { margin-left: 10px; min-height: 42px; padding: 8px 20px; font-size: .88rem; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--primary); font-size: 1.25rem; cursor: pointer; }
.menu-toggle:hover { background: var(--surface-light); }

/* ---------- Views ---------- */
main { flex: 1; overflow-x: clip; }
.view { padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.view.is-entering { animation: viewIn .38s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.kicker { font-weight: 600; font-size: .9rem; color: var(--primary); margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-main); max-width: 62ch; margin-top: 20px; }
.view-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-title { margin: clamp(56px, 8vw, 96px) 0 28px; }
.block-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 28px; }
.block-head p { max-width: 42ch; color: var(--text-muted); margin: 0; }

.icon-tile {
  width: 46px; height: 46px; flex: none; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--surface-light); color: var(--primary); font-size: 1.1rem;
  transition: background-color .2s, color .2s;
}
.icon-tile-lg { width: 64px; height: 64px; border-radius: 20px; font-size: 1.5rem; }

.arch { width: 100%; object-fit: cover; border-radius: 999px 999px var(--r-lg) var(--r-lg); }

/* ---------- Início ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--surface-light); border: 1px solid var(--line);
  color: var(--primary); font-size: .85rem; font-weight: 600; margin-bottom: 28px;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-figure { position: relative; margin: 0; }
.hero-figure::before {
  content: ""; position: absolute; inset: 6% -6% -4% 10%; z-index: -1;
  border-radius: 999px 999px var(--r-lg) var(--r-lg); background: var(--surface-light);
}
.hero-figure .arch { aspect-ratio: 4 / 5; object-position: 50% 30%; }
.hero-badge {
  position: absolute; left: -28px; bottom: 32px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 999px;
  background: var(--paper); box-shadow: 0 16px 40px -18px rgba(98, 106, 107, 0.3);
  font-size: .85rem; line-height: 1.35; color: var(--text-muted);
}
.hero-badge strong { color: var(--primary); font-weight: 600; }
.hero-badge-faces { display: flex; flex: none; }
.hero-badge-faces img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--paper); }
.hero-badge-faces img + img { margin-left: -10px; }

.home-areas { margin-top: clamp(64px, 10vw, 120px); }
.area-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.area-row {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 22px; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; transition: border-color .2s;
}
.area-row-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.area-row-text strong { color: var(--primary); font-weight: 600; }
.area-row-text span { color: var(--text-muted); font-size: .9rem; line-height: 1.5; }
.area-row-arrow { color: var(--primary); transition: transform .2s; }
.area-row:hover { border-color: var(--primary); }
.area-row:hover .icon-tile { background: var(--primary); color: var(--bg-main); }
.area-row:hover .area-row-arrow { transform: translateX(4px); }

.band { background: var(--primary); color: var(--bg-main); margin-top: clamp(64px, 10vw, 120px); margin-bottom: calc(-1 * clamp(64px, 9vw, 112px)); padding: clamp(56px, 8vw, 96px) 0; }
.band h2 { color: var(--bg-main); margin-bottom: 20px; }
.band p { color: rgba(250, 249, 247, 0.85); }
.band .button { margin-top: 12px; }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.principles li { padding: 22px 24px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); }
.principles h3 { color: var(--bg-main); margin-bottom: 6px; }
.principles p { margin: 0; font-size: .95rem; }

/* ---------- Proposta ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-copy > p:not(.kicker):not(.lead) { max-width: 62ch; }
.statement { font: italic 500 1.3rem/1.45 var(--serif); color: var(--primary); border-left: 3px solid var(--primary); padding-left: 20px; margin-top: 28px; }
.split-figure { margin: 0; }
.split-figure .arch { aspect-ratio: 4 / 5; }

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.card h3 { font-size: 1.4rem; margin: 18px 0 10px; }
.card p { color: var(--text-main); margin: 0; font-size: .97rem; }

.cta-panel {
  margin-top: clamp(48px, 7vw, 80px);
  background: var(--primary); color: var(--bg-main);
  border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px);
  text-align: center;
}
.cta-panel h2 { color: var(--bg-main); }
.cta-panel p { color: rgba(250, 249, 247, 0.85); max-width: 56ch; margin: 14px auto 26px; }
.cta-panel .cta-quote { font: italic 400 clamp(1.15rem, 2vw, 1.45rem)/1.5 var(--serif); color: var(--bg-main); max-width: 60ch; margin-top: 0; }

/* ---------- Quem somos ---------- */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.person { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.person-photo { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 25%; }
.person-body { padding: clamp(24px, 3vw, 36px); }
.person-body h2 { font-size: 1.85rem; }
.person-role { color: var(--primary); font-weight: 600; font-size: .92rem; margin: 6px 0 18px; }
.person-body > p:not(.person-role) { color: var(--text-main); font-size: .97rem; }
.person-body h3 { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--primary); margin: 24px 0 10px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; border-radius: 999px; background: var(--surface-light); color: var(--primary); font-size: .84rem; }

.synergy {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  background: var(--surface-light); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 28px);
}
.synergy img { aspect-ratio: 1; object-fit: cover; object-position: 50% 45%; border-radius: var(--r-md); }
.synergy p { max-width: 60ch; color: var(--text-main); margin: 12px 0 22px; }

/* ---------- Soluções ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 30px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; transition: border-color .2s;
}
.service-card h2 { font-size: 1.55rem; margin-top: 8px; }
.service-card p { color: var(--text-main); margin: 0; flex: 1; }
.service-open { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--primary); margin-top: 8px; }
.service-open i { transition: transform .2s; }
.service-card:hover { border-color: var(--primary); }
.service-card:hover .icon-tile { background: var(--primary); color: var(--bg-main); }
.service-card:hover .service-open i { transform: translateX(4px); }
.services-note { margin-top: 28px; color: var(--text-muted); }
.services-note a { color: var(--primary); font-weight: 600; }

.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 600; text-decoration: none; margin-bottom: 32px; }
.back-link:hover { text-decoration: underline; }
.detail-head { display: flex; gap: 24px; align-items: flex-start; max-width: 820px; }
.detail-head .lead { margin-top: 14px; }
.detail-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.detail-list li { display: flex; gap: 14px; padding: 22px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }
.detail-list li > i { color: var(--primary); margin-top: 4px; }
.detail-list h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.detail-list p { margin: 0; color: var(--text-main); font-size: .94rem; }
.other-areas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; }
.other-areas > span { color: var(--text-muted); font-size: .9rem; margin-right: 6px; }
.other-areas a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; font-size: .9rem; color: var(--primary); }
.other-areas a:hover { border-color: var(--primary); }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-photo { margin-top: 36px; max-width: 360px; aspect-ratio: 4 / 5; object-position: 50% 40%; }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 60px -40px rgba(98, 106, 107, 0.2); }
.checks { border: 0; margin: 0 0 22px; padding: 0; }
.checks legend { font-weight: 600; color: var(--primary); margin-bottom: 12px; padding: 0; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check-grid label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); cursor: pointer; font-size: .92rem; transition: background-color .2s, border-color .2s; }
.check-grid label:hover { background: var(--surface-light); }
.check-grid label:has(input:checked) { border-color: var(--primary); background: var(--surface-light); }
.check-grid input { accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.field-label { display: block; font-weight: 600; font-size: .9rem; color: var(--primary); margin: 0 0 6px; }
.field-label span { color: var(--primary); }
.contact-form select, .contact-form input:not([type="checkbox"]), .contact-form textarea {
  width: 100%; padding: 13px 14px; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-main);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; }
.contact-form :is(select, input, textarea):focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10, 144, 146, 0.2); }
.contact-form :is(input, select):user-invalid { border-color: #A3412E; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { font-size: .85rem; color: var(--text-muted); }
.submit-button { width: 100%; }

/* ---------- Rodapé ---------- */
.site-footer { background: #E1E3E2; color: #0A9092; padding: 56px 0 28px; }
.footer-main { display: grid; grid-template-columns: auto 1fr auto; gap: 32px 56px; align-items: center; padding-bottom: 32px; border-bottom: 1px solid rgba(10, 144, 146, 0.2); }
.brand-footer .brand-mark { background: #0A9092; color: var(--bg-main); }
.brand-footer .brand-word { color: #0A9092; }
.brand-footer .brand-word small { color: #0A9092; opacity: 0.8; }
.footer-main p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: #0A9092; }
.footer-main nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-main nav a { color: #0A9092; text-decoration: none; }
.footer-main nav a:hover, .footer-legal a:hover { opacity: 0.7; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .85rem; color: #0A9092; }
.footer-legal a { color: #0A9092; text-decoration: none; }


/* ---------- Toast ---------- */
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; max-width: min(420px, calc(100% - 40px));
  padding: 16px 20px; border-radius: var(--r-md);
  background: var(--primary); color: var(--bg-main); box-shadow: 0 20px 40px -16px rgba(10, 144, 146, 0.5);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.on { opacity: 1; transform: none; }
.toast.erro { background: #7A2E22; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .menu-toggle { display: grid; place-items: center; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 20px 22px; background: var(--bg-main);
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -24px rgba(98, 106, 107, 0.3);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.button) { padding: 12px 16px; border-radius: var(--r-sm); font-size: 1rem; }
  .nav-cta { margin: 10px 0 0; }

  .hero, .split, .contact, .band-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 440px; margin-inline: auto; width: 100%; }
  .hero-badge { left: 50%; transform: translateX(-50%); bottom: -20px; width: max-content; max-width: calc(100% - 24px); }
  .split-figure { max-width: 440px; }
  .contact-photo { display: none; }
  .footer-main { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .area-rows, .pillars, .people, .services-grid, .detail-list, .check-grid, .field-grid { grid-template-columns: 1fr; }
  .synergy { grid-template-columns: 1fr; }
  .synergy img { aspect-ratio: 16 / 10; }
  .detail-head { flex-direction: column; gap: 16px; }
  .actions .button { width: 100%; }
  .brand-word { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}