/* ==========================================================================
   LABCORE — Núcleo Analítico para a Saúde
   Design system: precisão clínica + motivo hexagonal molecular
   ========================================================================== */

:root {
  /* Brand & institutional palette (derived from logo) */
  --ink:      #08243d;   /* deepest navy for dark sections */
  --navy:     #0B4F8A;   /* institutional deep blue */
  --navy-2:   #0d5d9e;
  --brand:    #008DCF;   /* logo blue — actions & links */
  --brand-2:  #0079b8;
  --sky:      #91D8F7;   /* logo light blue — accent */
  --lime:     #9ACC60;   /* logo green — precision/health accent */
  --lime-2:   #7cb246;

  --slate:    #1E293B;   /* strong text */
  --muted:    #566575;   /* secondary text */
  --muted-2:  #7c8a99;
  --mist:     #F5F7FA;   /* light alt background */
  --line:     #e3e9f1;   /* borders */
  --line-2:   #eef2f7;
  --white:    #ffffff;

  --on-dark:      rgba(255,255,255,.92);
  --on-dark-mut:  rgba(203,224,242,.72);

  /* Typography */
  --f-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* Shadows — soft, bluish */
  --sh-xs: 0 1px 2px rgba(11,79,138,.06);
  --sh-sm: 0 4px 16px rgba(11,79,138,.07);
  --sh-md: 0 14px 40px rgba(11,79,138,.10);
  --sh-lg: 0 30px 70px rgba(8,36,61,.16);
  --sh-brand: 0 12px 30px rgba(0,141,207,.28);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --container: 1180px;
  --pad: clamp(1.25rem, 5vw, 2rem);
  --sect-y: clamp(4.5rem, 9vw, 8rem);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--f-body);
  color: var(--slate);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
[hidden] { display: none !important; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-family: var(--f-display); color: var(--slate); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.18rem; letter-spacing: -.01em; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: 1.1rem;
}
.eyebrow-dot { width: 10px; height: 11px; flex: none;
  background: var(--lime);
  clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
}
.eyebrow-light { color: var(--sky); }
.eyebrow-light .eyebrow-dot { background: var(--lime); }

.grad-text {
  background: linear-gradient(100deg, var(--brand) 0%, var(--lime) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 52ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--f-display); font-weight: 600; font-size: .96rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap; line-height: 1;
}
.btn svg { transition: transform .3s var(--ease); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,141,207,.36); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--slate); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.hero .btn-ghost { color: var(--on-dark); border-color: rgba(255,255,255,.25); }
.hero .btn-ghost:hover { border-color: var(--sky); color: #fff; background: rgba(255,255,255,.06); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: .55rem 0;
  transition: background .3s, box-shadow .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: var(--sh-sm); border-bottom-color: var(--line-2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand-logo { height: 46px; width: auto; transition: height .3s; }
.site-header.scrolled .brand-logo { height: 40px; }
/* logo sobre o hero escuro: plate claro para garantir contraste; some ao rolar */
.brand { display: inline-flex; align-items: center; padding: 7px 15px; border-radius: 13px;
  background: #fff; box-shadow: 0 6px 20px rgba(8,36,61,.20); transition: background .3s, box-shadow .3s, padding .3s; }
.site-header.scrolled .brand { background: transparent; box-shadow: none; padding: 4px 10px 4px 2px; }

.main-nav { display: flex; align-items: center; gap: .3rem; }
.main-nav > a:not(.btn) {
  font-family: var(--f-display); font-weight: 500; font-size: .95rem;
  color: var(--slate); padding: .55rem .8rem; border-radius: 8px;
  position: relative; transition: color .2s;
}
.main-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .34rem; height: 2px;
  background: var(--brand); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.main-nav > a:not(.btn):hover { color: var(--brand); }
.main-nav > a:not(.btn):hover::after,
.main-nav > a.is-current:not(.btn)::after { transform: scaleX(1); }
.main-nav > a.is-current:not(.btn) { color: var(--brand); }
.site-header:not(.scrolled) .main-nav > a.is-current:not(.btn) { color: #fff; }
.site-header:not(.scrolled) .main-nav > a.is-current:not(.btn)::after { background: var(--sky); }
.nav-cta { margin-left: .6rem; }

/* header over hero (not scrolled): light text */
.site-header:not(.scrolled) .main-nav > a:not(.btn) { color: rgba(255,255,255,.94); }
.site-header:not(.scrolled) .main-nav > a:not(.btn):hover { color: #fff; }
.site-header:not(.scrolled) .nav-toggle { color: #fff; }

.nav-toggle {
  display: none; background: transparent; border: 0; color: var(--slate);
  width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px;
}
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 130% at 85% -10%, #0e5fa6 0%, var(--navy) 42%, var(--ink) 100%);
  color: #fff; padding: clamp(8rem, 15vh, 11rem) 0 clamp(4rem, 8vw, 6.5rem);
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.glow-a { width: 42vw; height: 42vw; background: radial-gradient(circle, rgba(0,141,207,.55), transparent 65%); top: -12%; right: -8%; }
.glow-b { width: 34vw; height: 34vw; background: radial-gradient(circle, rgba(154,204,96,.30), transparent 68%); bottom: -18%; left: -6%; }
.grid-lines {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}
.hex-field { position: absolute; inset: 0; overflow: hidden; }
.hex-field svg { position: absolute; }

.hero-inner {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch;
}
.hero-copy { max-width: 40rem; }
.hero .eyebrow { color: var(--sky); }
.hero .eyebrow-dot { background: var(--lime); }
.hero h1 { color: #fff; margin-bottom: 1.4rem; }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--on-dark-mut); max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }

.hero-stats { display: flex; gap: clamp(1.2rem, 4vw, 2.6rem); flex-wrap: wrap; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); }
.hero-stats dt { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; color: #fff; letter-spacing: -.02em; }
.hero-stats dd { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-mut); margin-top: .15rem; }

/* Hero visual */
.hero-visual { position: relative; align-self: stretch; justify-self: center; width: 100%; max-width: 480px; min-height: 500px; }
.hero-frame {
  position: absolute; inset: 0; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-lg); border: 1px solid rgba(255,255,255,.14);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-corner { position: absolute; width: 30px; height: 30px; z-index: 2; }
.frame-corner.tl { top: 12px; left: 12px; border-top: 2px solid var(--sky); border-left: 2px solid var(--sky); }
.frame-corner.br { bottom: 12px; right: 12px; border-bottom: 2px solid var(--lime); border-right: 2px solid var(--lime); }

.readout {
  position: absolute; z-index: 3;
  background: rgba(9,37,61,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 12px;
  padding: .6rem .85rem; display: flex; align-items: center; gap: .5rem;
  font-family: var(--f-mono); box-shadow: var(--sh-md);
  animation: float 6s ease-in-out infinite;
}
.readout .ro-label { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--on-dark-mut); }
.readout .ro-value { font-size: .82rem; font-weight: 600; color: #fff; }
.readout svg { color: var(--sky); }
.ro-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(154,204,96,.6); animation: pulse 2.2s infinite; }
.readout-1 { top: 4%; right: -4%; animation-delay: 0s; }
.readout-2 { bottom: 16%; left: -6%; animation-delay: .8s; }
.readout-3 { bottom: -2%; right: 8%; animation-delay: 1.6s; }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-9px);} }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(154,204,96,.55);} 70%{ box-shadow: 0 0 0 9px rgba(154,204,96,0);} 100%{ box-shadow: 0 0 0 0 rgba(154,204,96,0);} }
@media (prefers-reduced-motion: reduce) { .readout, .ro-dot { animation: none; } }

/* ---------- Accreditation strip ---------- */
.accred-strip { background: var(--white); border-bottom: 1px solid var(--line); padding: 2.4rem 0; }
.strip-lead { text-align: center; font-family: var(--f-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted-2); margin-bottom: 1.6rem; }
.accred-list { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.accred { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); transition: border-color .25s, transform .25s, box-shadow .25s; }
.accred:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--sh-sm); }
.accred svg { color: var(--brand); flex: none; }
.accred strong { display: block; font-family: var(--f-display); font-size: .96rem; color: var(--slate); }
.accred span { font-size: .8rem; color: var(--muted); line-height: 1.3; }

/* ---------- Sections base ---------- */
.section { padding: var(--sect-y) 0; position: relative; }
.section-mist { background: var(--mist); }
.section-dark { background: var(--ink); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.section-dark h2, .section-dark h3 { color: #fff; }
.hex-field-dark { z-index: 0; opacity: .5; }
.section-dark .container { position: relative; z-index: 1; }

.section-head { max-width: 44rem; margin: 0 auto clamp(2.6rem,5vw,3.8rem); text-align: center; }
.section-head h2 { margin-bottom: 1rem; }
.section-intro { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-intro { color: var(--on-dark-mut); }

/* ---------- A Empresa ---------- */
.empresa-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem,5vw,4.5rem); align-items: stretch; }
.empresa-media { position: relative; }
.media-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); border: 1px solid var(--line);
  height: 100%; min-height: 440px; clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%, 0 90%); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-badge {
  position: absolute; right: -8px; bottom: -22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-md); padding: 1rem 1.25rem; display: flex; align-items: center; gap: .8rem; max-width: 220px;
}
.media-badge::before { content:""; width: 4px; align-self: stretch; background: linear-gradient(var(--brand), var(--lime)); border-radius: 4px; }
.mb-num { font-family: var(--f-display); font-weight: 800; font-size: 2rem; color: var(--navy); letter-spacing: -.02em; }
.mb-txt { font-size: .82rem; color: var(--muted); line-height: 1.35; }

.feature-list { display: grid; gap: 1.1rem; margin-top: 2rem; }
.feature-list li { display: flex; gap: 1rem; padding: 1.15rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); transition: border-color .25s, box-shadow .25s, transform .25s; }
.feature-list li:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--sh-sm); transform: translateY(-2px); }
.fl-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, var(--white)); }
.feature-list h3 { margin-bottom: .2rem; }
.feature-list p { font-size: .95rem; color: var(--muted); }

/* ---------- Qualidade ---------- */
.quality-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.1rem; margin-bottom: clamp(3rem,6vw,4.5rem); }
.q-card {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md);
  padding: 1.6rem 1.35rem; transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.q-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.08); border-color: rgba(145,216,247,.4); }
.q-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1rem;
  color: var(--ink); background: linear-gradient(135deg, var(--sky), var(--brand)); box-shadow: 0 8px 20px rgba(0,141,207,.3); }
.q-card h3 { margin-bottom: .45rem; font-size: 1.08rem; }
.q-card p { font-size: .92rem; color: var(--on-dark-mut); }

.policy { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-xl); padding: clamp(1.8rem, 4vw, 3rem); }
.policy-head { text-align: center; max-width: 40rem; margin: 0 auto 2.2rem; }
.policy-head h3 { font-size: 1.7rem; margin-bottom: .5rem; }
.policy-head p { color: var(--on-dark-mut); }
.policy-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem 2rem; }
.policy-list li { display: flex; gap: .9rem; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(255,255,255,.09); }
.pl-ico { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  color: var(--lime); background: rgba(154,204,96,.12); border: 1px solid rgba(154,204,96,.25); }
.policy-list strong { display: block; font-family: var(--f-display); color: #fff; font-size: 1rem; margin-bottom: .2rem; }
.policy-list p { font-size: .88rem; color: var(--on-dark-mut); }

/* ---------- Serviços (tabs) ---------- */
.tabs { max-width: 1020px; margin: 0 auto; }
.tablist { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.2rem;
  background: var(--mist); padding: .4rem; border-radius: 999px; width: fit-content; margin-inline: auto; border: 1px solid var(--line); }
.tab {
  display: inline-flex; align-items: center; gap: .5rem; border: 0; background: transparent;
  font-family: var(--f-display); font-weight: 600; font-size: .95rem; color: var(--muted);
  padding: .7rem 1.3rem; border-radius: 999px; transition: color .25s, background .25s, box-shadow .25s;
}
.tab svg { color: currentColor; opacity: .8; }
.tab:hover { color: var(--slate); }
.tab.is-active { background: var(--white); color: var(--brand); box-shadow: var(--sh-sm); }

.panel { display: none; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem,4vw,3rem); align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.4rem,3vw,2.4rem); background: var(--white); box-shadow: var(--sh-sm);
  animation: panelIn .5s var(--ease); }
.panel.is-active { display: grid; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel-media { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); position: relative; }
.panel-media::after { content:""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 60%, rgba(0,141,207,.14)); }
.panel-media img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
.panel-body h3 { font-size: 1.55rem; margin-bottom: .5rem; }
.panel-body > p { color: var(--muted); margin-bottom: 1.4rem; font-size: 1rem; }
.assay-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .55rem 1.2rem; }
.assay-grid li { position: relative; padding-left: 1.5rem; font-size: .93rem; color: var(--slate); }
.assay-grid li::before {
  content: ""; position: absolute; left: 0; top: .48em; width: 11px; height: 12px;
  background: var(--lime); clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
}
.norm-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px dashed var(--line); }
.norm-tag { font-family: var(--f-mono); font-size: .78rem; font-weight: 500; color: var(--navy);
  background: color-mix(in srgb, var(--brand) 8%, var(--white)); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--white));
  padding: .35rem .75rem; border-radius: 8px; }

/* ---------- Setores ---------- */
.sector-list { display: grid; grid-template-columns: repeat(5,1fr); gap: 1.1rem; }
.sector { text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.8rem 1.1rem; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.sector:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.sector-ico { width: 62px; height: 62px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--white)); transition: background .3s, color .3s; }
.sector:hover .sector-ico { background: var(--brand); color: #fff; }
.sector h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.sector p { font-size: .85rem; color: var(--muted); }

/* ---------- Orçamento ---------- */
.orc-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.orc-copy { position: sticky; top: 110px; }
.orc-benefits { display: grid; gap: .7rem; margin: 1.8rem 0; }
.orc-benefits li { display: flex; align-items: center; gap: .65rem; font-size: 1rem; color: var(--slate); }
.orc-benefits svg { color: var(--lime-2); flex: none; }
.orc-contact-mini { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.orc-contact-mini a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; color: var(--slate); font-size: .95rem; }
.orc-contact-mini a:hover { color: var(--brand); }
.orc-contact-mini svg { color: var(--brand); }

.orc-form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-md); padding: clamp(1.5rem,3.5vw,2.4rem);
  position: relative; overflow: hidden; }
.orc-form-wrap::before { content:""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--lime)); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-family: var(--f-display); font-size: .85rem; font-weight: 600; color: var(--slate); }
.field label span { color: var(--brand); }
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: .96rem; color: var(--slate);
  padding: .78rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--mist);
  transition: border-color .2s, box-shadow .2s, background .2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,141,207,.14);
}
.field input:user-invalid, .field select:user-invalid { border-color: #d9534f; }
.orc-form .btn { margin-top: 1.4rem; }
.form-note { font-size: .78rem; color: var(--muted-2); margin-top: .9rem; text-align: center; }
.form-success { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; padding: 1rem 1.2rem;
  background: color-mix(in srgb, var(--lime) 14%, var(--white)); border: 1px solid color-mix(in srgb, var(--lime) 40%, var(--white)); border-radius: var(--r-md); }
.form-success svg { color: var(--lime-2); flex: none; }
.form-success strong { display: block; font-family: var(--f-display); color: var(--slate); }
.form-success span { font-size: .86rem; color: var(--muted); }

/* ---------- Contato ---------- */
.contato-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,5vw,3.5rem); align-items: stretch; }
.contact-cards { display: grid; gap: 1rem; }
.contact-cards li { display: flex; gap: 1rem; padding: 1.2rem 1.3rem; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); transition: border-color .25s, background .25s; }
.contact-cards li:hover { border-color: rgba(145,216,247,.4); background: rgba(255,255,255,.08); }
.cc-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  color: var(--ink); background: linear-gradient(135deg, var(--sky), var(--brand)); }
.contact-cards h3 { font-size: 1rem; margin-bottom: .3rem; }
.contact-cards p { font-size: .95rem; color: var(--on-dark-mut); line-height: 1.6; }
.contact-cards a { color: #fff; font-weight: 500; }
.contact-cards a:hover { color: var(--sky); }
.contact-cards em { font-family: var(--f-mono); font-style: normal; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sky); margin-left: .3rem; }
.contato-map { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.14); box-shadow: var(--sh-lg); min-height: 380px; isolation: isolate; }
.map-fallback { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .5rem; padding: 2rem;
  background: radial-gradient(120% 120% at 30% 20%, #0e5fa6 0%, var(--navy) 45%, var(--ink) 100%); color: #fff; }
.map-fallback::after { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(145,216,247,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(145,216,247,.06) 1px, transparent 1px); background-size: 40px 40px; z-index:-1; }
.mf-ico { width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; margin-bottom: .5rem; color: var(--ink); background: linear-gradient(135deg, var(--sky), var(--brand)); box-shadow: 0 10px 26px rgba(0,141,207,.4); }
.map-fallback strong { font-family: var(--f-display); font-size: 1.1rem; color: #fff; }
.map-fallback .mf-sub { font-size: .9rem; color: var(--on-dark-mut); }
.map-fallback .mf-cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sky); }
.map-frame { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; min-height: 380px; filter: saturate(1.05); opacity: 0; transition: opacity .5s var(--ease); }
.map-frame.loaded { opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { background: #061a2c; color: var(--on-dark-mut); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: clamp(3rem,6vw,4.5rem) var(--pad) 2.5rem; }
.footer-logo { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-word { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.fw-lab { color: var(--sky); } .fw-core { color: #fff; }
.footer-tag { font-family: var(--f-mono); font-size: .82rem; color: var(--lime); margin-bottom: .9rem; letter-spacing: .02em; }
.footer-desc { font-size: .9rem; max-width: 32ch; line-height: 1.6; }
.footer-col h4 { font-family: var(--f-display); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 1.1rem; }
.footer-col a { display: block; color: var(--on-dark-mut); font-size: .92rem; padding: .3rem 0; transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: var(--sky); padding-left: 5px; }
.footer-contact p { font-size: .92rem; margin-bottom: .5rem; line-height: 1.5; }
.footer-contact a { color: var(--on-dark-mut); } .footer-contact a:hover { color: var(--sky); }
.footer-accred { border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-accred .container { display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: center; padding-block: 1.1rem; }
.footer-accred span { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; color: var(--on-dark-mut); position: relative; padding-left: 1.1rem; }
.footer-accred span::before { content:""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 9px; height: 10px; background: var(--lime); clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); }
.footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; }
.footer-bottom p { font-size: .82rem; color: var(--muted-2); }
.matilab-seal { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.matilab-seal .ms-label { font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); white-space: nowrap; }
.matilab-seal img { height: 42px; width: auto; border-radius: 9px; box-shadow: 0 6px 18px rgba(0,0,0,.28); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.matilab-seal:hover img { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 24px rgba(0,0,0,.36); }
.matilab-seal:hover .ms-label { color: var(--sky); }
@media (max-width: 560px) { .footer-bottom .container { justify-content: center; text-align: center; } }

/* ---------- Floating action button (mobile) ---------- */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: none; align-items: center; gap: .5rem;
  background: var(--brand); color: #fff; padding: .85rem 1.15rem; border-radius: 999px; font-family: var(--f-display); font-weight: 600; font-size: .92rem;
  box-shadow: var(--sh-brand); transition: transform .25s; }
.fab:hover { transform: translateY(-2px); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .empresa-grid, .orc-grid, .contato-grid, .panel { grid-template-columns: 1fr; }
  .orc-copy { position: static; }
  .accred-list { grid-template-columns: repeat(2,1fr); }
  .quality-grid { grid-template-columns: repeat(2,1fr); }
  .policy-list { grid-template-columns: repeat(2,1fr); }
  .sector-list { grid-template-columns: repeat(3,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .panel-media { max-width: 420px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .2rem;
    background: var(--white); padding: 5.5rem 1.5rem 2rem; box-shadow: -20px 0 60px rgba(8,36,61,.25);
    transform: translateX(100%); transition: transform .35s var(--ease); z-index: 99;
  }
  .main-nav.open { transform: translateX(0); }
  /* header opaco com o menu aberto: backdrop-filter no pai quebra a renderização do drawer */
  body.nav-open .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--sh-sm); }
  body.nav-open .nav-toggle { color: var(--slate); }
  .site-header:not(.scrolled) .main-nav > a:not(.btn) { color: var(--slate); }
  .main-nav > a:not(.btn) { padding: .85rem .6rem; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .main-nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin: 1rem 0 0; }
  body.nav-open { overflow: hidden; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(8,36,61,.4); backdrop-filter: blur(2px); z-index: 98; opacity: 0; visibility: hidden; transition: opacity .3s; }
  .nav-scrim.show { opacity: 1; visibility: visible; }

  .fab { display: inline-flex; }
  .sector-list { grid-template-columns: repeat(2,1fr); }
  .fields { grid-template-columns: 1fr; }
  .assay-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
  .media-badge { right: 0; }
}

@media (max-width: 460px) {
  .accred-list, .quality-grid, .policy-list, .sector-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .tablist { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: .7rem .5rem; font-size: .85rem; }
  .tab svg { display: none; }
}
