:root {
  --blue-950: #061f38;
  --blue-900: #0b2f55;
  --blue-800: #0b4f8a;
  --blue-700: #1269aa;
  --green-700: #16824a;
  --green-600: #21a866;
  --teal-100: #e5f2fb;
  --gray-950: #111827;
  --gray-800: #263241;
  --gray-700: #4b5563;
  --gray-200: #e5e7eb;
  --gray-100: #f4f7fa;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(8, 36, 61, 0.16);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  background: var(--white);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue-900);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
  color: var(--blue-900);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  border-radius: 8px;
}

.brand-logo {
  width: 330px;
  max-height: 84px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.footer-logo {
  width: 360px;
  max-height: 150px;
}

.brand strong {
  display: none;
  font-size: 1.18rem;
  line-height: 1;
  letter-spacing: 0;
}

.brand small {
  display: none;
  margin-top: 4px;
  color: var(--gray-700);
  font-size: 0.74rem;
  line-height: 1;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 1;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.main-nav a {
  padding: 8px 0;
}

.main-nav a:hover {
  color: var(--blue-800);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: var(--blue-800);
}

.btn-secondary {
  color: var(--blue-900);
  background: var(--white);
  border-color: rgba(15, 76, 129, 0.22);
}

.btn-whatsapp {
  color: var(--white);
  background: var(--green-700);
  box-shadow: 0 14px 28px rgba(22, 130, 74, 0.2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue-900);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  min-height: 680px;
  color: var(--white);
  overflow: hidden;
  background: var(--blue-950);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 36, 61, 0.96) 0%, rgba(8, 36, 61, 0.82) 48%, rgba(8, 36, 61, 0.18) 100%),
    radial-gradient(circle at 80% 34%, rgba(58, 164, 232, 0.18), transparent 34%),
    url("assets/hero-consultoria.jpg") center/cover;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
  min-height: 680px;
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-600);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #93d7ff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--blue-950);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(2.25rem, 4.6vw, 4.9rem);
}

.hero-text {
  max-width: 760px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.hero-proof li {
  padding: 9px 11px;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.hero-card {
  overflow: hidden;
  color: var(--blue-950);
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card-image {
  height: 168px;
  background:
    linear-gradient(180deg, rgba(15, 76, 129, 0.05), rgba(15, 76, 129, 0.28)),
    url("assets/laboratorio-qualidade.jpg") center/cover;
}

.hero-card strong {
  display: block;
  padding: 24px 28px 0;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.hero-card ul {
  padding-left: 20px;
  margin: 0 28px 28px;
}

.hero-card li + li {
  margin-top: 10px;
}

.section {
  padding: 88px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 40px;
}

.section-heading h2,
.problem-grid h2,
.split-grid h2,
.cta-box h2,
.contact-grid h2,
.proof-box h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
}

.section-heading p,
.split-grid p,
.cta-box p,
.contact-grid p,
.proof-list p {
  color: var(--gray-700);
  font-size: 1.05rem;
}

.problem-band {
  background: var(--gray-100);
}

.problem-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  align-items: start;
}

.problem-list {
  display: grid;
  gap: 16px;
}

.problem-list article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 18px;
  row-gap: 8px;
  min-height: 164px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.problem-list span {
  grid-row: 1 / span 2;
  align-self: start;
  padding-top: 2px;
  color: var(--blue-800);
  font-weight: 850;
  line-height: 1;
}

.problem-list h3,
.service-card h3,
.segment-grid h3 {
  margin-bottom: 8px;
  color: var(--blue-950);
}

.problem-list h3 {
  grid-column: 2;
  min-height: 2.6em;
  line-height: 1.22;
}

.problem-list p,
.service-card p,
.segment-grid p {
  margin-bottom: 0;
  color: var(--gray-700);
}

.problem-list p {
  grid-column: 2;
  max-width: 62ch;
  text-align: left;
  hyphens: none;
  line-height: 1.6;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 285px;
  padding: 28px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 60px rgba(17, 24, 39, 0.06);
}

.icon {
  display: grid;
  width: 48px;
  height: 42px;
  place-items: center;
  margin-bottom: 22px;
  color: var(--white);
  font-weight: 850;
  font-size: 0.9rem;
  background: var(--blue-800);
  border-radius: var(--radius);
}

.inline-cta,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.inline-cta {
  margin-top: 28px;
}

.page-actions {
  margin-top: 28px;
}

.segment-section {
  background: linear-gradient(180deg, var(--white), var(--gray-100));
}

.methodology-section {
  background: var(--blue-950);
}

.methodology-section .section-heading h2,
.methodology-section .section-heading p {
  color: var(--white);
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.methodology-grid article {
  min-height: 300px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
}

.methodology-grid span {
  display: inline-flex;
  margin-bottom: 34px;
  color: #93d7ff;
  font-weight: 850;
}

.methodology-grid h3 {
  color: var(--white);
}

.methodology-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.segment-grid article {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.split-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 54px;
  align-items: center;
}

.photo-panel {
  min-height: 520px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(15, 76, 129, 0.05), rgba(15, 76, 129, 0.24)),
    url("assets/laboratorio-qualidade.jpg") center/cover;
  box-shadow: var(--shadow);
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--blue-800);
  font-weight: 800;
}

.trust-section {
  color: var(--white);
  background: var(--blue-950);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: #93d7ff;
  font-size: 2.8rem;
  line-height: 1;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.82);
}

.proof-box {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--white);
}

.proof-box h2 {
  color: var(--blue-950);
}

.cta-section {
  padding: 56px 0;
  background: var(--teal-100);
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-box p {
  margin-bottom: 0;
}

.faq-section {
  background: var(--gray-100);
}

.faq-list {
  display: grid;
  gap: 14px;
}

details {
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

summary {
  color: var(--blue-950);
  font-weight: 800;
  cursor: pointer;
}

details p {
  margin: 14px 0 0;
  color: var(--gray-700);
}

.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

label {
  display: grid;
  gap: 7px;
  color: var(--blue-950);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--gray-950);
  font: inherit;
  border: 1px solid #cfd8e3;
  border-radius: var(--radius);
  background: var(--white);
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.88rem;
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: var(--blue-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 34px;
  padding: 54px 0 32px;
}

.footer-brand {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 14px 16px;
  color: var(--blue-950);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.footer-brand small {
  color: var(--gray-700);
}

.footer-brand .footer-logo {
  width: min(100%, 360px);
  max-height: 124px;
}

.site-footer .footer-brand span {
  margin-bottom: 0;
}

.site-footer h3 {
  margin-bottom: 12px;
  color: var(--white);
}

.site-footer a,
.site-footer span {
  display: block;
  margin-bottom: 9px;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  min-height: 54px;
  padding: 14px 18px;
  color: var(--white);
  font-weight: 850;
  background: var(--green-700);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(22, 130, 74, 0.28);
}

@media (max-width: 1120px) {
  .header-inner {
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 82px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 0;
    color: var(--blue-950);
    border-bottom: 1px solid var(--gray-200);
  }

  .header-cta {
    display: none;
  }

  .hero-grid,
  .problem-grid,
  .split-grid,
  .proof-box,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 72px 0 50px;
  }

  .hero-card {
    max-width: 520px;
  }

  .service-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .segment-grid,
  .methodology-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand-logo {
    width: clamp(235px, 52vw, 310px);
    max-height: 70px;
  }

  .brand small {
    font-size: 0.64rem;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-text {
    font-size: 1.02rem;
  }

  .hero-actions,
  .contact-actions,
  .inline-cta,
  .page-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .service-grid,
  .segment-grid,
  .methodology-grid,
  .trust-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .problem-list article {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: auto;
    column-gap: 14px;
  }

  .problem-list h3,
  .problem-list p {
    grid-column: 2;
  }

  .problem-list span {
    grid-row: 1 / span 2;
  }

  .problem-list h3 {
    min-height: 0;
  }

  .problem-list p {
    max-width: none;
  }

  .photo-panel {
    min-height: 340px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    min-width: 58px;
    width: 58px;
    height: 58px;
    padding: 0;
  }

  .floating-whatsapp span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

.floating-whatsapp::before {
    content: "WA";
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .hero-media {
    background:
      linear-gradient(180deg, rgba(8, 36, 61, 0.96), rgba(8, 36, 61, 0.88)),
      url("assets/hero-consultoria.jpg") center/cover;
  }
}

.page-hero {
  padding: 96px 0 72px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 36, 61, 0.98), rgba(8, 36, 61, 0.86)),
    url("assets/hero-consultoria.jpg") center/cover;
}

.page-hero h1 {
  max-width: 920px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(2.15rem, 4vw, 4.2rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.15rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-card,
.note-card,
.contact-info-panel {
  padding: 28px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 60px rgba(17, 24, 39, 0.06);
}

.detail-card h2,
.segment-grid.expanded h2,
.editorial-grid h2,
.contact-info-panel h2,
.legal-content h2 {
  color: var(--blue-950);
  font-size: 1.35rem;
}

.detail-card ul,
.note-card ul {
  padding-left: 20px;
  margin-bottom: 0;
  color: var(--gray-700);
}

.segment-grid.expanded {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.segment-grid.expanded article {
  min-height: 190px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: start;
}

.legal-content {
  max-width: 850px;
}

.legal-content a,
.contact-info-panel a {
  color: var(--blue-800);
  font-weight: 800;
}

.compact-footer .footer-bottom {
  border-top: 0;
}

.static-nav {
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .detail-grid,
  .segment-grid.expanded,
  .editorial-grid {
    grid-template-columns: 1fr;
  }
}
