/* Base e identidade visual */
:root {
  --blue: #2563eb;
  --blue-dark: #1747ad;
  --ink: #0f172a;
  --muted: #526075;
  --line: #dce3ed;
  --soft: #f2f6fb;
  --white: #ffffff;
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { color: var(--muted); }
address { color: inherit; font-style: normal; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { max-width: 900px; }
.section { padding: clamp(72px, 9vw, 124px) 0; }
.light-section { background: var(--soft); }

.skip-link {
  position: fixed;
  z-index: 10001;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }

/* Cabeçalho desktop preservado */
.site-header {
  position: relative;
  z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; text-decoration: none; }
.brand img { width: 168px; height: 62px; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.desktop-nav a { position: relative; padding: 30px 0; color: #263348; font-size: .96rem; font-weight: 700; text-decoration: none; }
.desktop-nav a::after { position: absolute; right: 0; bottom: 21px; left: 0; height: 2px; content: ""; background: var(--blue); transform: scaleX(0); transition: transform .2s ease; }
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { padding: 12px 18px; color: var(--white); background: var(--blue); border-radius: 9px; font-size: .9rem; font-weight: 800; text-decoration: none; }
.header-cta:hover { background: var(--blue-dark); }
.menu-toggle { display: none; }

/* Menu mobile: fechado por padrão e sem vazamento visual */
.mobile-panel {
  display: none;
  visibility: hidden;
  position: fixed;
  z-index: 10000;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
}
.mobile-panel[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.mobile-panel-inner {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
}
.mobile-panel-head {
  min-height: 88px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left));
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.menu-close {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  padding: 0;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.menu-close::before, .menu-close::after {
  position: absolute;
  top: 25px;
  left: 14px;
  width: 24px;
  height: 2px;
  content: "";
  background: #ffffff;
  border-radius: 2px;
}
.menu-close::before { transform: rotate(45deg); }
.menu-close::after { transform: rotate(-45deg); }
.mobile-nav {
  width: min(100%, 640px);
  margin-inline: auto;
  padding: clamp(28px, 7vh, 64px) 24px 30px;
}
.mobile-nav a {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 14px 4px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.35rem, 6vw, 2rem);
  font-weight: 800;
  letter-spacing: -.025em;
  text-decoration: none;
}
.mobile-nav a:first-child { border-top: 1px solid var(--line); }
.mobile-nav a[aria-current="page"] { color: var(--blue); }
.mobile-nav a span:last-child { color: var(--blue); font-size: 1.3rem; }
.mobile-panel-footer {
  width: min(100%, 640px);
  margin: auto auto 0;
  padding: 24px max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background: #ffffff;
}
.mobile-panel-footer p { margin-bottom: 12px; font-size: .9rem; }
.mobile-panel-footer .button { width: 100%; }

/* Componentes */
.eyebrow { margin-bottom: 14px; color: var(--blue); font-size: .75rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-light { color: #9dc0ff; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border: 1px solid transparent; border-radius: 9px; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.button-primary { color: var(--white); background: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { color: var(--ink); background: var(--white); border-color: #b7c2d2; }
.button-secondary:hover { border-color: var(--blue); color: var(--blue); }
.button-white { color: var(--blue-dark); background: var(--white); }
.button-outline-white { color: var(--white); border-color: rgba(255,255,255,.65); background: transparent; }
.text-link { color: var(--blue); font-weight: 800; text-decoration: none; }

/* Página inicial */
.hero { overflow: hidden; padding: clamp(48px, 5.5vw, 72px) 0 clamp(58px, 6vw, 82px); background: linear-gradient(90deg, #f4f8fd 0 62%, #e9f1fb 62%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(380px, .93fr); gap: clamp(38px, 5vw, 70px); align-items: center; }
.hero-copy h1 { max-width: 700px; margin-bottom: 22px; text-wrap: balance; }
.hero-lead { max-width: 650px; margin-bottom: 28px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.hero-visual { position: relative; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 34px; color: var(--white); background: #0d1b33; border-radius: 30px 5px 30px 5px; }
.technical-mark { position: absolute; top: -30px; right: -7px; color: rgba(255,255,255,.055); font-size: clamp(5rem, 10vw, 8rem); font-weight: 950; letter-spacing: -.1em; writing-mode: vertical-rl; }
.visual-content { position: relative; max-width: 330px; margin-bottom: 44px; }
.visual-content strong { display: block; font-size: 1.3rem; line-height: 1.35; }
.visual-label { margin-bottom: 7px; color: #8ca4c9; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.visual-rule { width: 100%; height: 1px; margin: 25px 0; background: rgba(255,255,255,.18); }
.hero-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 23px; border-top: 1px solid rgba(255,255,255,.18); }
.hero-stats div { padding-right: 12px; }
.hero-stats strong, .hero-stats span { display: block; }
.hero-stats strong { font-size: 1.25rem; }
.hero-stats span { color: #9aabc4; font-size: .72rem; }
.section-heading { max-width: 800px; margin-bottom: 48px; }
.split-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.split-heading > div { max-width: 760px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 300px; display: flex; flex-direction: column; padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-number { margin-bottom: 42px; color: var(--blue); font-size: .76rem; font-weight: 900; }
.service-card p { margin-bottom: 25px; }
.service-card a { margin-top: auto; color: var(--blue); font-weight: 800; text-decoration: none; }
.dark-section { color: var(--white); background: #0c172a; }
.dark-section h2 { color: var(--white); }
.dark-section p { color: #aebcd0; }
.segments-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(50px, 10vw, 130px); align-items: center; }
.segment-list { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.16); list-style: none; }
.segment-list li { padding: 20px 8px; border-bottom: 1px solid rgba(255,255,255,.16); color: #e5edf8; font-weight: 750; }
.about-feature, .editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px, 9vw, 120px); }
.about-copy p, .editorial-grid p { font-size: 1.08rem; }
.testimonials { background: var(--soft); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
blockquote { margin: 0; padding: 30px; background: var(--white); border-top: 3px solid var(--blue); }
blockquote p { min-height: 92px; color: var(--ink); font-size: 1.06rem; }
blockquote footer { font-weight: 850; }
blockquote footer span { display: block; color: var(--muted); font-size: .78rem; font-weight: 500; }
.stars { margin-bottom: 18px; color: #e59216; letter-spacing: .08em; }
.cta-section { padding: clamp(60px, 8vw, 95px) 0; color: var(--white); background: var(--blue); }
.cta-section h2 { color: var(--white); }
.cta-section p { color: #dce8ff; }
.cta-layout { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; }
.cta-layout > div:first-child { max-width: 720px; }

/* Internas */
.page-hero { padding: clamp(72px, 9vw, 120px) 0; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 25px; }
.page-hero p:last-child { max-width: 780px; font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.values-grid article { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values-grid span { display: block; margin-bottom: 40px; color: var(--blue); font-size: .78rem; font-weight: 900; }
.service-list { border-top: 1px solid var(--line); }
.service-list > article { display: grid; grid-template-columns: 80px 1fr auto; gap: 35px; align-items: start; padding: 45px 0; border-bottom: 1px solid var(--line); }
.service-index { color: var(--blue); font-size: .82rem; font-weight: 900; }
.service-list h2 { margin-bottom: 14px; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.service-list article > div:nth-child(2) { max-width: 690px; }
.service-list ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0 0; padding: 0; list-style: none; }
.service-list li { color: var(--muted); font-size: .88rem; }
.service-list li::before { content: "• "; color: var(--blue); }
.action-box { padding: 34px; border: 1px solid rgba(255,255,255,.18); }
.contact-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(50px, 9vw, 120px); align-items: start; }
.contact-info { position: sticky; top: 30px; }
.contact-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-item span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.contact-item a { color: var(--ink); font-size: 1.08rem; font-weight: 800; text-decoration: none; }
.contact-form { padding: clamp(25px, 5vw, 48px); background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 7px; font-size: .88rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; color: var(--ink); background: var(--white); border: 1px solid #b9c4d2; border-radius: 7px; }
.field textarea { resize: vertical; }
.privacy-text { font-size: .78rem; }
.form-submit { width: 100%; border: 0; }

/* Rodapé */
.site-footer { padding-top: 70px; color: #c2cddd; background: #07101f; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 70px; padding-bottom: 55px; }
.footer-logo { width: 170px; height: 62px; margin-bottom: 18px; object-fit: contain; object-position: left; filter: brightness(0) invert(1); }
.footer-grid p { max-width: 440px; color: #94a4ba; }
.footer-grid h2 { margin-bottom: 18px; color: var(--white); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid a { display: block; width: fit-content; margin-bottom: 9px; color: #c2cddd; text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom p { margin: 0; color: #7f8da1; font-size: .8rem; }

@media (max-width: 900px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .desktop-nav, .header-cta { display: none; }
  .header-inner { min-height: 76px; }
  .header-inner .brand img { width: 146px; height: 54px; }
  .menu-toggle {
    width: 50px;
    height: 50px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    padding: 0;
    background: var(--white);
    border: 1px solid #aeb9c8;
    border-radius: 50%;
    cursor: pointer;
  }
  .menu-toggle span { width: 21px; height: 2px; background: var(--ink); border-radius: 2px; }
  .mobile-panel { display: block; }
  .mobile-panel[aria-hidden="true"] { display: none; }
  .hero { background: var(--soft); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .segments-layout, .about-feature, .editorial-grid, .contact-layout { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  blockquote p { min-height: 0; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-layout { grid-template-columns: 1fr; }
  .service-list > article { grid-template-columns: 50px 1fr; }
  .service-list > article > .button { grid-column: 2; width: fit-content; }
  .contact-info { position: static; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .section { padding: 68px 0; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.45rem); }
  h2 { font-size: clamp(1.85rem, 9vw, 2.55rem); }
  .hero { padding-top: 55px; }
  .hero-copy .button { width: 100%; }
  .hero-visual { min-height: 370px; padding: 27px; border-radius: 22px 4px; }
  .hero-stats span { font-size: .64rem; }
  .split-heading { display: block; }
  .split-heading .text-link { display: inline-block; margin-top: 12px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 255px; padding: 26px; }
  .card-number { margin-bottom: 25px; }
  .segment-list { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .service-list > article { grid-template-columns: 1fr; gap: 15px; padding: 35px 0; }
  .service-list > article > .button { grid-column: 1; width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-grid > div:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
