/* ==========================================================================
   INOVACE — Design tokens
   ========================================================================== */
:root {
  --ink: #142C3F;
  --ink-soft: #23425C;
  --pine: #0E7A54;
  --pine-deep: #0A5E42;
  --moss: #17B892;
  --paper: #F7FAF8;
  --paper-alt: #EEF4F0;
  --stone: #56655D;
  --charcoal: #1B241F;
  --line: #DBE6DF;
  --line-soft: #E7EFEA;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; min-width: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
}

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

a { color: inherit; }

h1, h2, h3, h4, p { overflow-wrap: break-word; word-break: break-word; }

.f-display { font-family: var(--font-display); }
.f-mono { font-family: var(--font-mono); }

.wrap {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

.wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

.text-center { text-align: center; }

@media (min-width: 1440px) {
  .wrap { max-width: 1280px; }
  .wrap-narrow { max-width: 820px; }
}

/* Anchor targets shouldn't hide behind the fixed header */
section[id] { scroll-margin-top: 84px; }

/* ==========================================================================
   Reusable elements
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--pine-deep);
  display: inline-block;
}
.eyebrow-dark { color: var(--moss); }
.eyebrow-dark::before { background: var(--moss); }
.eyebrow-center { justify-content: center; }

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 13px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-deep); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--pine); color: var(--pine-deep); background: #fff; }
.btn-white { background: #fff; color: var(--pine-deep); }
.btn-white:hover { background: #EAF6F0; transform: translateY(-1px); }
.btn:disabled { opacity: 0.72; cursor: not-allowed; transform: none; }
.btn.is-loading { pointer-events: none; }
.btn-block { width: 100%; }

.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chip-center { justify-content: center; width: 100%; }

.chip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 30px;
}
@media (min-width: 480px) {
  .chip-grid { grid-template-columns: repeat(3, 1fr); }
}

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

.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  transition: all 0.25s ease;
  padding: 28px;
}
.card:hover {
  border-color: var(--pine);
  box-shadow: 0 12px 28px -18px rgba(14, 122, 84, 0.35);
  transform: translateY(-2px);
}

.divider, .footer-divider {
  height: 1px;
  border: none;
  background: var(--line);
}

.placeholder-box {
  border: 1px dashed var(--line);
  background: var(--paper-alt);
  color: var(--stone);
}

.grain-bg {
  background-image: radial-gradient(circle at 1px 1px, rgba(20,44,63,0.06) 1px, transparent 0);
  background-size: 22px 22px;
}

/* Corner-frame photo treatment */
.corner-frame {
  position: relative;
  padding: clamp(8px, 2vw, 14px);
  width: 100%;
  overflow: hidden;
}
.corner-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.cf-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--pine);
  border-style: solid;
  border-width: 0;
}
.cf-tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.cf-tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.cf-bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.cf-br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.cf-tag {
  position: absolute;
  left: clamp(14px, 4vw, 26px);
  bottom: clamp(14px, 4vw, 26px);
  right: clamp(14px, 4vw, 26px);
  width: fit-content;
  max-width: calc(100% - clamp(28px, 8vw, 52px));
  background: rgba(20, 44, 63, 0.88);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 11px;
  border-radius: 8px;
  backdrop-filter: blur(2px);
  white-space: normal;
  line-height: 1.35;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.25s ease;
}
.site-header.scrolled {
  background: rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.main-nav {
  display: none;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  flex-wrap: nowrap;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--pine-deep); }

.header-cta { display: none; flex-shrink: 0; white-space: nowrap; }

.brand-name { white-space: nowrap; }

.menu-toggle {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 8px clamp(16px, 4vw, 24px) 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.mobile-nav .btn { margin-top: 6px; }

/* Full nav only appears once there is comfortable room for all 6 links + CTA */
@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ==========================================================================
   Sections — shared spacing
   ========================================================================== */
.section { padding-top: clamp(56px, 10vw, 96px); padding-bottom: clamp(56px, 10vw, 96px); }
.section-white { background: #fff; border-top: 1px solid var(--line); }
.section-alt { background: var(--paper-alt); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); }

.section-title {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  color: var(--ink);
  margin: 16px 0 10px;
}
.section-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--stone);
  max-width: 480px;
}
.section-text-tight { max-width: 460px; margin-bottom: 0; }
.section-text-center { max-width: 520px; margin: 0 auto 44px; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 56px;
}
.section-head-simple { max-width: 560px; margin-bottom: 48px; }

@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: clamp(100px, 22vw, 132px); padding-bottom: clamp(56px, 10vw, 88px); }
.hero-grid {
  display: grid;
  gap: clamp(32px, 6vw, 56px);
  align-items: center;
}
.hero-title {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  font-weight: 600;
  color: var(--ink);
  margin: 18px 0 22px;
  letter-spacing: -0.01em;
}
.hero-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--stone);
  max-width: 480px;
  margin-bottom: 34px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-frame { aspect-ratio: 4 / 5; display: none; }
.hero-frame img { aspect-ratio: 4 / 5; }

@media (min-width: 640px) { .hero-frame { display: block; } }
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Sobre
   ========================================================================== */
.about-grid {
  display: grid;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.about-frame img { aspect-ratio: 4 / 3; }

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Serviços — cards
   ========================================================================== */
.grid-cards {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }

.service-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(14,122,84,0.09);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-title { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.service-desc { font-size: 14.5px; line-height: 1.6; color: var(--stone); margin: 0 0 18px; }
.service-link {
  font-size: 13.5px; font-weight: 600; color: var(--pine-deep);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}

/* ==========================================================================
   Diferenciais (dark section)
   ========================================================================== */
.dark-head { max-width: 520px; margin-bottom: 56px; }
.title-dark { color: #fff; }

.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.12);
}
@media (min-width: 640px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .diff-grid { grid-template-columns: repeat(4, 1fr); } }

.diff-card { background: var(--ink); padding: 34px 26px; }
.diff-title { font-size: 18px; font-weight: 600; color: #fff; margin: 0 0 12px; }
.diff-text { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.68); margin: 0; }

/* ==========================================================================
   Referências — projects
   ========================================================================== */
.grid-ref {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .grid-ref { grid-template-columns: repeat(3, 1fr); } }

.ref-card { padding: 0; overflow: hidden; }
.ref-card img { aspect-ratio: 4 / 3; }
.ref-body { padding: 20px 24px 24px; }
.ref-title { font-size: 16px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.ref-desc { font-size: 14px; color: var(--stone); margin: 0; }

/* ==========================================================================
   Clientes
   ========================================================================== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 44px;
}
@media (min-width: 640px) { .clients-grid { grid-template-columns: repeat(4, 1fr); } }

.client-box {
  min-height: 84px;
  padding: 10px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-size: 12px; letter-spacing: 0.04em;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--pine-deep), var(--pine));
  padding: clamp(48px, 9vw, 76px) clamp(16px, 4vw, 24px);
}
.cta-title { font-size: clamp(26px, 3.6vw, 36px); font-weight: 600; color: #fff; margin: 0 0 14px; }
.cta-text { font-size: 16px; color: rgba(255,255,255,0.9); margin: 0 0 32px; }

/* ==========================================================================
   Contato
   ========================================================================== */
.contact-grid {
  display: grid;
  gap: clamp(32px, 6vw, 64px);
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 3fr; } }

.contact-list { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.contact-row { display: flex; align-items: center; gap: 12px; }
.contact-label { font-size: 11px; letter-spacing: 0.06em; color: var(--stone); width: 76px; flex-shrink: 0; }
.contact-value { font-size: 13.5px; padding: 5px 10px; border-radius: 6px; }

.form-row { margin-bottom: 20px; }
.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .form-row.two-col { grid-template-columns: 1fr 1fr; } }

.field label {
  font-size: 13px; font-weight: 600; color: var(--ink);
  margin-bottom: 6px; display: block;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14.5px;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(14, 122, 84, 0.14);
}
.field input.err, .field select.err, .field textarea.err { border-color: #C0483F; }
.field .err-msg { font-size: 12px; color: #C0483F; margin-top: 4px; display: none; }
.field.has-error .err-msg { display: block; }

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-feedback {
  margin: 0 0 18px;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.45;
}
.form-feedback--error {
  border: 1px solid rgba(192, 72, 63, 0.35);
  background: rgba(192, 72, 63, 0.08);
  color: #8A2F28;
}
.form-feedback--success {
  border: 1px solid rgba(14, 122, 84, 0.28);
  background: rgba(14, 122, 84, 0.08);
  color: var(--pine-deep);
}

.form-success {
  text-align: center;
  padding: 44px 32px;
  border: 1px solid var(--pine);
  border-radius: 16px;
  background: #fff;
}
.success-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(14,122,84,0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.form-success h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.form-success p { font-size: 14px; color: var(--stone); margin: 0 0 24px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); padding-top: 64px; padding-bottom: 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.footer-brand-name { font-size: 18px; font-weight: 600; color: #fff; }
.footer-tagline { font-size: 13.5px; color: rgba(255,255,255,0.6); line-height: 1.6; margin: 0; }

.footer-heading { font-size: 11px; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); margin: 0 0 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,0.75); }
.footer-links a { text-decoration: none; color: inherit; }

.footer-divider { background: rgba(255,255,255,0.12); }
.footer-bottom { padding-top: 24px; font-size: 12.5px; color: rgba(255,255,255,0.5); }

/* ==========================================================================
   Páginas individuais de serviço
   ========================================================================== */
.service-topbar {
  padding-top: clamp(96px, 18vw, 128px);
  padding-bottom: 8px;
  background: var(--paper);
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--stone); text-decoration: none; }
.breadcrumb a:hover { color: var(--pine-deep); }
.breadcrumb .sep { color: var(--line); }
.breadcrumb .current { color: var(--ink); font-weight: 500; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pine-deep);
  text-decoration: none;
  margin-bottom: 28px;
}
.back-link:hover { color: var(--pine-deep); text-decoration: underline; }

.service-hero {
  padding-top: clamp(16px, 3vw, 24px);
  padding-bottom: clamp(56px, 10vw, 88px);
  background: var(--paper);
}
.service-hero-grid {
  display: grid;
  gap: clamp(32px, 6vw, 56px);
  align-items: center;
}
@media (min-width: 768px) {
  .service-hero-grid { grid-template-columns: 1fr 1fr; }
}
.service-hero-title {
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.15;
  font-weight: 600;
  color: var(--ink);
  margin: 14px 0 16px;
  letter-spacing: -0.01em;
}
.service-hero-text {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--stone);
  max-width: 480px;
}
.service-hero-frame { aspect-ratio: 4 / 3; }
.service-hero-frame img { aspect-ratio: 4 / 3; }

.includes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) { .includes-grid { grid-template-columns: repeat(2, 1fr); } }

.includes-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.includes-item svg { flex-shrink: 0; margin-top: 2px; }

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(4, 1fr); } }

.benefit-card { text-align: left; }
.benefit-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(14,122,84,0.09);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.benefit-title { font-size: 15.5px; font-weight: 600; color: var(--ink); margin: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
