/* Fáciltech — clean rebuild (no page builder / plugin dependency) */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("assets/fonts/sora.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --green-deep: #00413d;
  --green-sage: #577f67;
  --green-mid: #639f77;
  --green-accent: #63a077;
  --green-primary: #7aa741;
  --navy: #01354f;
  --navy-deep: #012230;
  --bg-light: #f4f5f4;
  --text: #1e1e1e;
  --white: #ffffff;

  --font-heading: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow-card: 0 12px 32px rgba(1, 53, 79, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.3;
  margin: 0 0 .5em;
  color: var(--navy);
}

/* Display & headlines: Sora 700, -2% tracking */
h1, h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Titles: Sora 600 */
h3 { font-weight: 600; }

h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
a { color: var(--green-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: .75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 1.75rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
}
.btn-primary:hover { background: #012840; }

.btn-submit {
  background: var(--green-sage);
  color: var(--white);
  font-family: var(--font-heading);
  width: 100%;
  justify-content: center;
}
.btn-submit:hover { background: #4a6c56; }

.btn-pill {
  background: var(--green-sage);
  color: var(--white);
  border-radius: 999px;
}
.btn-pill:hover { background: #4a6c56; }

.nav-link-plain {
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
}
.nav-link-plain:hover { color: var(--green-accent); text-decoration: none; }

.nav-actions .btn-header-cta {
  background: #15402A;
  color: #F7F8F6;
  padding: .65rem 1.5rem;
  font-size: .85rem;
}
.nav-actions .btn-header-cta:hover { filter: brightness(1.15); color: #F7F8F6; }

.eyebrow-box {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .8rem;
  padding: .5rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.eyebrow--pill {
  display: inline-block;
  color: var(--green-accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-lead {
  max-width: 60ch;
  color: #555;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

#sobre, #solucoes, #contato { scroll-margin-top: 84px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .85rem;
}
.logo img { width: 160px; height: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: flex-end;
}
.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
}
.primary-nav a:hover { color: var(--green-accent); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 1.75rem; }

/* Hero banner (rotating carousel of flattened slide images) */
.hero-banner {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  aspect-ratio: 1900 / 575;
  max-height: 620px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-banner-dots {
  position: absolute;
  z-index: 1;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .4rem;
}
.hero-banner-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255,255,255,.5);
}
.hero-banner-dots button[aria-current="true"] { background: var(--green-primary); }

/* Intro / trust */
.intro { padding-block: 4rem; }
.intro-grid {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 3rem;
  align-items: center;
}
.intro-photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.intro-copy p { max-width: 52ch; color: #444; }

/* Solutions */
.solutions { padding-block: 1rem 3rem; background: var(--bg-light); }
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-block: 3rem;
}
.solution-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
}
.solution-photo-wrap {
  position: relative;
  width: 140px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}
.solution-photo {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.solution-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
}
.solution-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,.18);
}
.solution-card h2 { font-size: 1.2rem; margin-bottom: .35rem; }
.solution-tagline { font-size: .9rem; color: var(--green-accent); font-weight: 700; margin: 0 0 .85rem; }
.solution-desc { font-size: .88rem; color: #555; margin: 0 0 1rem; line-height: 1.6; }
.solution-features {
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid #ececec;
}

/* Spotlight / stats */
.spotlight { padding-block: 4rem; text-align: center; }
.spotlight-title { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.5rem); color: var(--green-sage); letter-spacing: .02em; }
.spotlight-title b { color: var(--green-deep); }
.spotlight-subtitle { color: #555; margin-bottom: 2.5rem; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px) 1fr;
  gap: 1.5rem;
  align-items: stretch;
  text-align: left;
}
.stats-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.stat {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  flex: 1;
}
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--green-primary);
}
.stat h3 { font-size: 1rem; margin: .35rem 0 .35rem; }
.stat p { font-size: .85rem; color: #555; margin: 0; }
.stat-photo {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Why us */
.why-us-top { background: var(--navy-deep); color: var(--white); padding-top: 3.5rem; padding-bottom: 3rem; }
.why-us-top-inner { max-width: 640px; text-align: left; }
.why-us-top h2 { color: var(--white); }
.why-us-top p { color: #b9cdd3; }

.why-us-bottom { background: var(--bg-light); padding-block: 3rem 4rem; }
.why-us-bottom-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: start;
}
.progress-list { padding-top: .5rem; }
.progress-item { margin-bottom: 1.5rem; }
.progress-item span { display: block; font-weight: 700; color: var(--navy); margin-bottom: .5rem; font-size: .95rem; }
.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #dfe3e0;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 22%, var(--green-primary) 55%, var(--green-primary) 100%);
}

.features-card {
  list-style: none;
  margin: -5.5rem 0 0;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.features-card li {
  display: flex;
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid #ececec;
}
.features-card li:last-child { border-bottom: none; padding-bottom: 0; }
.features-card li:first-child { padding-top: 0; }
.feature-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.features-card h3 { font-size: .95rem; color: var(--green-accent); margin: 0 0 .25rem; }
.features-card p { font-size: .85rem; color: #555; margin: 0; }

/* Clients */
.clients { padding-block: 3.5rem; text-align: center; }
.clients-carousel {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.clients-track {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-block: .5rem;
  scrollbar-width: none;
}
.clients-track::-webkit-scrollbar { display: none; }
.clients-track img {
  flex: none;
  height: 76px;
  width: auto;
}
.clients-nav {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid #d9d9d9;
  background: var(--white);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--navy);
}
.clients-nav:hover { background: var(--bg-light); }

/* Benefits (stepper) */
.benefits { padding-block: 3.5rem; text-align: center; }
.benefits .section-lead { margin-inline: auto; }
.benefits-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
}
.benefit-step { position: relative; padding-top: 2.75rem; }
.step-number {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 46px;
  border: 2px solid var(--green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
}
.benefit-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 23px;
  left: calc(50% + 23px);
  width: calc(100% - 22px);
  border-top: 2px dotted var(--green-primary);
}
.benefit-card {
  margin-top: 1.25rem;
  background: var(--navy);
  color: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
  min-height: 190px;
}
.benefit-card h3 { color: var(--white); }
.benefit-card p { font-size: .9rem; color: #cfe0e8; margin: 0; }

/* Contact */
.contact { padding-block: 4rem; background: var(--bg-light); }
.contact-card-outer {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 3rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact h2 { font-size: 42px; }
.contact-info { display: flex; gap: 2.5rem; margin-top: 2rem; }
.contact-info-item { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.contact-info-item h3 { font-size: .95rem; color: #79a33b; margin-bottom: .25rem; }
.contact-info-item p,
.contact-info-item p a { font-size: .9rem; margin: 0; color: #2E3338; }
.contact .section-lead { color: #2E3338; }

.lead-form { padding: 0; }
.form-note {
  font-size: .8rem;
  color: #777;
  background: #fff8e6;
  border: 1px solid #f0e0a8;
  border-radius: var(--radius-sm);
  padding: .6rem .85rem;
}
.form-row { margin-bottom: 1.1rem; }
.form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.lead-form label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .35rem;
}
.lead-form label span { color: #c0392b; }
.lead-form input,
.lead-form select {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid #d9d9d9;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--white);
  color: var(--text);
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 2px solid var(--green-accent);
  outline-offset: 1px;
}
.lead-form textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid #d9d9d9;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--white);
  color: var(--text);
  resize: vertical;
  min-height: 90px;
}
.lead-form input.error,
.lead-form select.error,
.lead-form textarea.error { border-color: #c0392b; }

.field-error {
  font-size: .78rem;
  color: #c0392b;
  margin-top: .35rem;
  display: none;
}
.field-error.visible { display: block; }

/* Agradecimento inline: ocupa a célula do grid que o formulário deixa vaga. */
.form-thanks { display: none; text-align: center; padding: 2.5rem 1.5rem; }
.form-thanks.visible { display: block; }
.form-thanks-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}
.form-thanks h3 { font-size: 1.5rem; color: var(--navy); margin: 0 0 .75rem; }
.form-thanks p { font-size: 1rem; line-height: 1.6; color: #444; margin: 0; }

/* Alvo do POST do formulário — nunca visível. */
.form-sink { display: none; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: .25rem 0 .35rem;
}
.form-consent input[type="checkbox"] {
  width: 18px; height: 18px;
  min-width: 18px;
  margin-top: .15rem;
  accent-color: var(--green-accent);
  cursor: pointer;
}
.form-consent label {
  font-size: .8rem;
  font-weight: 400;
  text-transform: none;
  color: #555;
  line-height: 1.5;
  cursor: pointer;
}

/* Footer */
.site-footer { padding-block: 3rem 2.75rem; background: var(--navy-deep); color: #cfe0e8; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand img { margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .85rem; color: #9fb7c0; }
.footer-matera-signature {
  font-size: .75rem;
  color: #7c93a0;
  margin-top: 1.5rem;
  letter-spacing: .02em;
}
.footer-col h3 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer-col { display: flex; flex-direction: column; gap: .65rem; }
.footer-col a { color: #cfe0e8; font-size: .9rem; }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: .75rem; margin-top: .5rem; }
.footer-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--green-sage); }

/* Responsive */
@media (max-width: 960px) {
  .intro-grid,
  .why-us-bottom-inner,
  .contact-grid { grid-template-columns: 1fr; }
  .features-card { margin-top: 2rem; }
  .solutions-grid,
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-col:first-child { order: 1; }
  .stat-photo { order: 0; grid-column: 1 / 3; height: 220px; min-height: 0; }
  .stats-col:last-child { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; text-align: left; }
  .benefit-step::after { display: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; gap: 1rem; }
  .nav-actions { flex-direction: column; align-items: stretch; }

  .solutions-grid,
  .benefits-grid,
  .stats-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .contact-card-outer { padding: 1.5rem; }
  .form-row--half { grid-template-columns: 1fr; }
  .contact-info { flex-direction: column; gap: 1.25rem; }
}
