:root {
  --font-sans: "Inter", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --green-950: #06160c;
  --green-900: #0b2715;
  --green-800: #0d3d20;
  --green-700: #126332;
  --green-500: #19a65a;
  --green-100: #e8f5eb;
  --yellow: #f4d653;
  --blue: #263a8b;
  --ink: #132018;
  --muted: #617066;
  --line: #dce7df;
  --paper: #ffffff;
  --soft: #f5f9f3;
  --panel: #ffffff;
  --shadow: 0 20px 55px rgba(7, 61, 27, .13);
  --radius: 8px;
  --header: 78px;
}

body.dark {
  --ink: #f0f7f1;
  --muted: #b6c7ba;
  --line: #23442d;
  --paper: #07120b;
  --soft: #0c1e12;
  --panel: #112819;
  --shadow: 0 20px 55px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

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

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 40;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-500), var(--yellow), var(--blue));
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--header);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: height .2s ease, box-shadow .2s ease;
}

.site-header.scrolled {
  height: 66px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.header-inner {
  width: min(1220px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 186px;
  height: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  border-radius: var(--radius);
  background: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 800;
}

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

.desktop-nav a:hover {
  color: var(--green-700);
}

.nav-cta {
  padding: 10px 17px !important;
  color: #fff !important;
  background: var(--green-700);
  border-radius: var(--radius);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.menu-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-moon,
body.dark .icon-sun {
  display: none;
}

body.dark .icon-moon {
  display: block;
}

.quick-whatsapp {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--green-100);
  color: var(--green-800);
  border: 1px solid color-mix(in srgb, var(--green-500) 24%, transparent);
  font-size: .86rem;
  font-weight: 800;
}

body.dark .quick-whatsapp {
  background: rgba(25, 166, 90, .14);
  color: #bcf0cf;
}

.menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 19px;
  height: 2px;
  background: currentColor;
  transition: .2s ease;
}

.menu-button.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button.open span:nth-child(2) { opacity: 0; }
.menu-button.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: calc(var(--header) + 8px) 16px auto 16px;
  z-index: 29;
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mobile-nav.open { display: grid; }
.mobile-nav a { padding: 13px; border-radius: var(--radius); font-weight: 800; }
.mobile-nav a:hover { background: var(--soft); }

.hero {
  position: relative;
  min-height: 94vh;
  padding: calc(var(--header) + 70px) 0 74px;
  overflow: hidden;
  background: var(--green-950);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 22, 12, .96) 0%, rgba(6, 22, 12, .79) 48%, rgba(6, 22, 12, .35) 100%),
    radial-gradient(circle at 72% 26%, rgba(244, 214, 83, .28), transparent 32%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: calc(94vh - var(--header) - 144px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 430px;
  gap: 50px;
  align-items: end;
}

.hero-copy {
  color: #fff;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-500);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.contact .eyebrow,
.testimonial .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 400;
}

h1 {
  max-width: 840px;
  font-size: clamp(3rem, 7vw, 6.7rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2.35rem, 4.6vw, 4.45rem);
}

h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.lead {
  max-width: 680px;
  margin: 26px 0 34px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
}

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

.button {
  min-height: 50px;
  border: 0;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--green-500);
  color: #06160c;
  box-shadow: 0 16px 34px rgba(25, 166, 90, .28);
}

.button.primary:hover {
  background: #42c476;
}

.button.secondary {
  background: rgba(255, 255, 255, .92);
  color: var(--green-900);
}

.hero-panel {
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .24);
}

body.dark .hero-panel {
  background: rgba(17, 40, 25, .92);
}

.hero-portrait {
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: center 28%;
}

.hero-panel-content {
  padding: 24px;
}

.panel-kicker {
  margin: 0 0 8px;
  color: var(--green-700);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-panel h2 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.18;
}

.hero-panel ul,
.service-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.hero-panel li,
.service-card li {
  position: relative;
  padding-left: 18px;
}

.hero-panel li::before,
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
}

.trust-strip {
  background: var(--green-900);
  color: #fff;
  padding: 24px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-grid div {
  min-height: 78px;
  padding: 14px 16px;
  border-left: 1px solid rgba(255, 255, 255, .18);
}

.trust-grid strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--yellow);
}

.trust-grid span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .78);
  font-size: .92rem;
  font-weight: 700;
}

.clients {
  background: var(--soft);
}

.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.client-logo-card {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.client-logo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--green-500) 40%, var(--line));
}

/* When a real logo image is placed inside the card, hide the text fallback */
.client-logo-card img {
  max-height: 56px;
  max-width: 140px;
  object-fit: contain;
}

.client-logo-card img ~ .clogo-abbr,
.client-logo-card img ~ .clogo-name {
  display: none;
}

.clogo-abbr {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1;
}

.clogo-name {
  text-align: center;
  font-size: .75rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.section {
  padding: 96px 0;
}

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

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.06rem;
}

.services,
.calculator,
.why {
  background: var(--paper);
}

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

.service-card,
.expertise-item {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-card:hover,
.expertise-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--green-500) 40%, var(--line));
}

.service-card.featured {
  background: linear-gradient(180deg, color-mix(in srgb, var(--green-100) 58%, var(--panel)), var(--panel));
  border-color: color-mix(in srgb, var(--green-500) 32%, var(--line));
}

body.dark .service-card.featured {
  background: linear-gradient(180deg, rgba(25, 166, 90, .16), var(--panel));
}

.service-number {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--blue);
  font-weight: 900;
}

.service-card p,
.expertise-item p {
  color: var(--muted);
}

.language-matrix,
.about {
  background: var(--soft);
}

.matrix-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.matrix-intro p:not(.eyebrow) {
  color: var(--muted);
}

.matrix-table {
  display: grid;
  gap: 12px;
}

.matrix-table div {
  display: grid;
  grid-template-columns: 1fr auto 1.3fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.matrix-table span,
.matrix-table b {
  font-weight: 900;
}

.matrix-table b::before {
  content: "→ ";
  color: var(--green-500);
}

.matrix-table em {
  color: var(--muted);
  font-style: normal;
  font-size: .92rem;
}

.expertise {
  background: var(--paper);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.expertise-item {
  padding: 24px;
  border-top: 4px solid var(--yellow);
}

.process {
  background: var(--green-900);
  color: #fff;
}

.process .eyebrow {
  color: var(--yellow);
}

.process-layout {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 50px;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  overflow: hidden;
}

.process-list li {
  display: grid;
  grid-template-columns: 58px 160px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, .07);
}

.process-list span {
  color: var(--yellow);
  font-weight: 900;
}

.process-list p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
}

.calculator-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 310px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.calc-tabs {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  background: var(--soft);
}

.calc-tab {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.calc-tab.active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}

.calc-form {
  display: grid;
  gap: 14px;
  padding: 30px;
}

.calc-description {
  margin: 0 0 6px;
  color: var(--muted);
}

.calc-form label,
.contact-form label,
.options legend {
  color: var(--ink);
  font-size: .93rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 12px 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-700);
  outline: 3px solid color-mix(in srgb, var(--green-500) 20%, transparent);
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 112px auto;
  gap: 12px;
  align-items: center;
}

.range-row input[type="range"] {
  padding: 0;
  accent-color: var(--green-700);
}

.options {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.options label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.options input {
  width: auto;
  accent-color: var(--green-700);
}

.calc-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  background: var(--green-950);
  color: #fff;
}

.calc-result span {
  color: var(--yellow);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.calc-result strong {
  display: block;
  margin: 10px 0;
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1;
}

.calc-result p {
  color: rgba(255, 255, 255, .74);
}

.about-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 56px;
  align-items: center;
}

.about-media img {
  width: 100%;
  max-height: 700px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-text > p {
  color: var(--muted);
}

.about-text blockquote {
  margin: 24px 0;
  padding-left: 18px;
  border-left: 4px solid var(--green-500);
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
}

.credential-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.credential-row div {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.credential-row img {
  max-height: 44px;
  margin-bottom: 12px;
  object-fit: contain;
}

.credential-row p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 800;
}

.testimonial {
  padding: 88px 0;
  background:
    linear-gradient(135deg, rgba(6, 22, 12, .92), rgba(18, 99, 50, .86)),
    url("assets/teclado-brasil.jpg") center / cover;
  color: #fff;
}

.testimonial-inner {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 32px;
  align-items: center;
  max-width: 920px;
}

.testimonial img {
  width: 112px;
  height: 112px;
  border: 4px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
}

.testimonial blockquote {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

.testimonial p:last-child {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
}

.contact {
  background: linear-gradient(135deg, #d9c13a 0%, #126332 46%, #263a8b 100%);
  color: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 36px;
  align-items: start;
}

.contact-copy p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 255, 255, .82);
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.contact-methods a {
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  color: var(--green-900);
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #fff;
}

.form-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(255, 255, 255, .95);
  color: #132018;
}

.site-footer {
  padding: 30px 20px;
  background: #06160c;
  color: #b9c7bc;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .58);
}

.modal {
  width: min(440px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.modal h3 {
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

.modal p {
  color: var(--muted);
}

.modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.modal .button {
  width: 100%;
}

.modal .close {
  background: var(--soft);
  color: var(--ink);
  box-shadow: none;
}

@media (max-width: 1040px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; }
  .hero-grid,
  .matrix-layout,
  .process-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .hero-grid { align-items: center; }
  .hero-panel { max-width: 560px; }
  .calculator-shell { grid-template-columns: 1fr; }
  .calc-tabs { grid-template-columns: repeat(3, 1fr); }
  .calc-result { min-height: 230px; }
  .client-logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .expertise-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1160px); }
  .brand img { width: 150px; }
  .quick-whatsapp { display: none; }
  .hero { min-height: auto; padding: calc(var(--header) + 48px) 0 48px; }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(6, 22, 12, .72), rgba(6, 22, 12, .97)),
      radial-gradient(circle at 72% 26%, rgba(244, 214, 83, .22), transparent 34%);
  }
  .hero-grid { min-height: auto; gap: 30px; }
  .hero-portrait { height: 260px; }
  .trust-grid,
  .service-grid,
  .expertise-grid,
  .client-logo-grid,
  .credential-row,
  .contact-methods,
  .form-pair {
    grid-template-columns: repeat(2, 1fr);
  }
  .section { padding: 70px 0; }
  .matrix-table div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .process-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .calc-tabs { grid-template-columns: 1fr; }
  .range-row { grid-template-columns: 1fr; }
  .testimonial-inner { grid-template-columns: 1fr; }
}
