:root {
  /* Paleta extraída do logotipo Loggia: arco petróleo/azul-marinho,
     filete dourado e wordmark cinza sobre fundo claro neutro. */
  --navy: #003A52;
  --navy-deep: #002A3C;
  --teal: #097291;
  --teal-bright: #0A87AF;
  --teal-dim: #6FB3CC;
  --gold: #B08040;
  --gold-light: #E8C880;
  --gold-text: #7D5820;

  --graphite: var(--navy);
  --paper: #F2F3F4;
  --paper-alt: #E5E7E9;
  --blueprint: var(--teal);
  --blueprint-dim: var(--teal-dim);
  --rust: var(--gold-text);
  --ink: #26333A;
  --ink-soft: #5A676E;
  --line: rgba(0, 58, 82, 0.16);
  --line-strong: rgba(0, 58, 82, 0.30);

  --font-head: "Maven Pro", sans-serif;
  --font-body: "Open Sans", sans-serif;

  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--graphite);
  margin: 0;
  line-height: 1.15;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--blueprint);
  outline-offset: 3px;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--graphite);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 243, 244, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}

.logo img {
  height: 42px;
  width: auto;
}

@media (max-width: 560px) {
  .logo img { height: 34px; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-color: var(--line-strong);
}

.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  min-width: 260px;
  padding: 8px;
  box-shadow: 0 12px 24px rgba(33,31,28,0.12);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px 12px;
  border-bottom: none !important;
  border-radius: 2px;
}

.dropdown a:hover {
  background: var(--paper-alt);
}

.nav-cta {
  background: var(--graphite);
  color: var(--paper) !important;
  padding: 9px 18px;
  border-radius: 2px;
}

.nav-cta:hover {
  background: var(--blueprint);
  border-color: transparent !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--graphite);
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  padding: 14px 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--ink-soft);
}

.breadcrumbs a:hover { color: var(--blueprint); }

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--line-strong);
}

.breadcrumbs li[aria-current="page"] { color: var(--ink); }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  color: var(--blueprint);
}

.hero-grid {
  position: absolute;
  inset: 0;
  color: var(--teal-bright);
  opacity: 0.20;
}

.hero-grid svg {
  width: 100%;
  height: 100%;
}

.hero-lines line {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-line 1.6s ease forwards;
}

.hero-nodes circle {
  opacity: 0;
  animation: fade-node 0.4s ease forwards;
  animation-delay: 1.3s;
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes fade-node {
  to { opacity: 1; }
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.hero-tag {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blueprint);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  color: var(--graphite);
  max-width: 16ch;
  margin-bottom: 22px;
}

.hero-lede {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 56ch;
  margin: 0 0 34px;
}

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

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}

.page-hero-tag {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--rust);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  max-width: 24ch;
  margin-bottom: 16px;
}

.page-hero-lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 60ch;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--teal);
}

/* Em seções escuras o botão vira dourado, como o filete do logotipo */
.cta-banner .btn-primary,
.section-contact .btn-primary {
  background: var(--gold-light);
  color: var(--navy-deep);
}

.cta-banner .btn-primary:hover,
.section-contact .btn-primary:hover {
  background: #F4DCA6;
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--graphite);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--graphite);
}

/* ---------- Strip ---------- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.strip-item {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.strip-item:last-child { border-right: none; }

.strip-num {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blueprint);
  font-size: 1.15rem;
}

.strip-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
}

.section-tight { padding: 56px 0; }

.section-alt {
  background: var(--paper-alt);
}

.section-head {
  margin-bottom: 48px;
  max-width: 640px;
}

.section-head.center {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sheet-tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--gold-text);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  max-width: 22ch;
}

.section-head.center h2 { margin-left: auto; margin-right: auto; }

.prose {
  max-width: 72ch;
}

.prose h2 {
  font-size: 1.4rem;
  margin: 2em 0 0.6em;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 1.1rem;
  margin: 1.6em 0 0.5em;
}

.prose p, .prose ul, .prose ol {
  color: var(--ink-soft);
  margin: 0 0 1.1em;
}

.prose ul, .prose ol {
  padding-left: 1.2em;
}

.prose li { margin-bottom: 0.4em; }

.prose strong { color: var(--ink); }

/* ---------- Metodologia ---------- */

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.method-step {
  padding: 28px 24px 0;
  border-right: 1px solid var(--line);
}

.method-step:last-child { border-right: none; }

.method-index {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--line-strong);
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.method-step h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.method-step p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ---------- Servicos ---------- */

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  /* zera o padding do .wrap: senão o fundo do container vaza como faixa
     nas laterais. A largura replica a caixa de conteúdo das outras seções. */
  padding: 0;
  width: calc(100% - 56px);
  max-width: calc(var(--wrap) - 56px);
}

.service-card {
  background: var(--paper);
  padding: 30px 24px;
  position: relative;
  text-decoration: none;
  display: flex;
  flex: 1 1 280px;
  flex-direction: column;
  transition: background 0.15s ease;
}

.service-card:hover { background: var(--paper-alt); }

.section-alt .service-card {
  background: var(--paper-alt);
}

.section-alt .service-card:hover { background: var(--paper); }

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin: 0 0 14px;
}

.service-card .card-link {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--blueprint);
}

.service-card-new {
  border-left: 2px solid var(--rust);
}

.new-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rust);
  margin-bottom: 10px;
}

/* ---------- Diferenciais ---------- */

.diff-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
}

.diff-row {
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}

.diff-row h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.diff-row p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin: 0;
}

/* ---------- FAQ ---------- */

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  padding: 20px 4px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--graphite);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--rust);
  flex: none;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
  padding: 0 4px 20px;
  color: var(--ink-soft);
  max-width: 68ch;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--graphite);
  color: var(--paper);
  padding: 56px 0;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  color: var(--paper);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  max-width: 32ch;
}

.cta-banner .btn-primary {
  flex: none;
}

/* ---------- Normas / trust strip ---------- */

.norms-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.norm-pill {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blueprint);
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- Contato ---------- */

.section-contact {
  background: var(--graphite);
  color: var(--paper);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.section-contact .sheet-tag {
  color: var(--blueprint-dim);
  border-color: rgba(242, 243, 244, 0.24);
}

.section-contact h2 {
  color: var(--paper);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: 16px;
}

.contact-copy > p {
  color: rgba(242, 243, 244, 0.72);
  max-width: 46ch;
  margin: 0 0 28px;
}

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.96rem;
  border-top: 1px solid rgba(242, 243, 244, 0.16);
  padding-top: 10px;
}

.contact-details span {
  font-size: 0.76rem;
  text-transform: none;
  color: rgba(242, 243, 244, 0.5);
}

.contact-details a {
  text-decoration: none;
  color: var(--paper);
}

.contact-details a:hover {
  color: var(--blueprint-dim);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(242, 243, 244, 0.72);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(242, 243, 244, 0.06);
  border: 1px solid rgba(242, 243, 244, 0.28);
  border-radius: 2px;
  padding: 11px 13px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(242, 243, 244, 0.4);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blueprint-dim);
  outline: none;
}

.contact-form .btn-primary {
  align-self: flex-start;
}

.form-note {
  min-height: 1.2em;
  font-size: 0.88rem;
  color: var(--blueprint-dim);
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 0.82rem;
  margin-bottom: 14px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
}

.footer-col a:hover { color: var(--blueprint); }

.footer-col p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 40ch;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- 404 ---------- */

.error-page {
  padding: 120px 0;
  text-align: center;
}

.error-page h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--line-strong);
}

.error-page p {
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 14px auto 28px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 20px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

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

  .main-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .has-dropdown { width: 100%; }

  .dropdown {
    display: none;
    position: static;
    border: none;
    padding: 0 0 0 12px;
    box-shadow: none;
    background: transparent;
  }

  .has-dropdown.is-open .dropdown { display: block; }

  .dropdown a { padding: 10px 0; border-bottom: 1px solid var(--line) !important; }

  .nav-cta {
    margin-top: 10px;
    text-align: center;
  }

  .nav-toggle { display: flex; }

  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(2) { border-right: none; }
  .strip-item:nth-child(3), .strip-item:nth-child(4) { border-top: 1px solid var(--line); }

  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .method-step:nth-child(2) { border-right: none; }
  .method-step:nth-child(3), .method-step:nth-child(4) { border-top: 1px solid var(--line); }
  .method-step { padding-top: 24px; }

  .diff-list { grid-template-columns: repeat(2, 1fr); }

  .contact-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .strip-inner, .method-grid, .services-grid, .diff-list {
    grid-template-columns: 1fr;
  }
  .strip-item, .method-step {
    border-right: none;
    border-top: 1px solid var(--line);
  }
  .strip-item:first-child, .method-step:first-child { border-top: none; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
