:root {
  --bg: #f3f5ef;
  --ink: #19241f;
  --brand: #0b7a5d;
  --brand-dark: #075641;
  --card: #ffffff;
  --muted: #587067;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  background: radial-gradient(circle at top, #ffffff, var(--bg));
  color: var(--ink);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 3px;
  background: rgba(11, 122, 93, 0.1);
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #0b7a5d, #2ba37b);
  transform: scaleX(0);
  transform-origin: left center;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #dbe2dc;
  background: rgba(255, 255, 255, 0.98);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(5px);
}

.topnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.topbar nav a,
.brand {
  color: var(--ink);
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 600;
}

.topbar nav a:first-child {
  margin-left: 0;
}

.nav-link {
  position: relative;
}

.nav-link.is-active {
  color: var(--brand);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
}

.container {
  width: min(960px, 92vw);
  margin: 0 auto;
  padding: 2rem 0;
}

.hero {
  padding-bottom: 0.75rem;
}

.services {
  padding-top: 0.75rem;
}

.scroll-section {
  scroll-margin-top: 5.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.05;
  margin-top: 0;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 70ch;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
}

.cta-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.7rem 1rem;
  border-radius: 10px;
  display: inline-block;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

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

.btn-secondary {
  border-color: #b4c8bf;
  color: var(--ink);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background: #1ebe5c;
  border-color: #1ebe5c;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.section-note ul,
.section-note ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.section-note {
  background: var(--card);
  padding: 1.4rem;
  border-radius: 12px;
  border: 1px solid #dbe2dc;
  box-shadow: 0 18px 36px rgba(25, 36, 31, 0.04);
}

.section-note h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.section-toggle {
  padding: 0;
  overflow: clip;
}

.section-toggle summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  list-style: none;
  cursor: pointer;
  padding: 1.4rem;
}

.section-toggle summary::-webkit-details-marker {
  display: none;
}

.section-toggle summary h2 {
  margin: 0;
}

.section-toggle-icon {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f3ee;
  color: var(--brand);
}

.section-toggle-icon::before {
  content: "+";
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.section-toggle[open] .section-toggle-icon::before {
  content: "-";
}

.section-toggle-content {
  padding: 0 1.4rem 1.4rem;
}

.process-grid ol {
  counter-reset: step;
}

.process-grid li {
  padding-left: 0.2rem;
}

.card {
  background: var(--card);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #dbe2dc;
  box-shadow: 0 18px 36px rgba(25, 36, 31, 0.04);
}

.final-cta {
  background: #e8f3ee;
  border: 1px solid #c1ddd0;
  border-radius: 12px;
  padding: 1.2rem;
  margin-top: 0.5rem;
}

.form-wrap {
  max-width: 720px;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.7rem;
  border-radius: 10px;
  border: 1px solid #bfcfc8;
  font: inherit;
}

.success {
  background: #def6ea;
  border: 1px solid #93d5b4;
  padding: 0.75rem;
  border-radius: 8px;
}

.footer {
  border-top: 1px solid #dbe2dc;
  margin-top: 3rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    gap: 0.75rem;
    flex-direction: column;
  }

  .topbar nav a {
    margin-left: 0;
    margin-right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .js .reveal.is-visible,
  .scroll-progress-bar {
    transition: none;
  }
}
