:root {
  --ink: #0e1210;
  --ink-soft: #1a221c;
  --paper: #f3efe6;
  --muted: #a8b0a6;
  --line: rgba(243, 239, 230, 0.12);
  --accent: #e85d04;
  --accent-hot: #ff7a1a;
  --glow: rgba(232, 93, 4, 0.35);
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--paper);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 93, 4, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(46, 92, 68, 0.25), transparent 50%),
    linear-gradient(165deg, #0b0f0c 0%, #121916 40%, #0e1210 100%);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(11, 15, 12, 0.92), rgba(11, 15, 12, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.nav a:hover {
  color: var(--paper);
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 1.4rem;
  background: var(--paper);
  margin-inline: auto;
  transition: transform 0.3s var(--ease);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.65rem 1.15rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-hot), var(--accent));
  color: #140c05;
  box-shadow: 0 12px 40px var(--glow);
}

.btn-primary:hover {
  box-shadow: 0 16px 48px rgba(232, 93, 4, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: rgba(243, 239, 230, 0.35);
}

.header-cta {
  background: rgba(243, 239, 230, 0.08);
  color: var(--paper);
  border: 1px solid var(--line);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 15, 12, 0.92) 0%, rgba(11, 15, 12, 0.55) 48%, rgba(11, 15, 12, 0.35) 100%),
    linear-gradient(0deg, rgba(11, 15, 12, 0.95) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: clamp(5.5rem, 14vh, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
  animation: rise 0.9s var(--ease) both;
}

.brand-mark {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--paper);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  white-space: nowrap;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Sections */
section {
  padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.section-intro {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.section-intro h2,
.quote-copy h2,
.contact-block h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
}

.section-intro p,
.quote-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
}

/* Services — no card chrome; divider rhythm */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.service {
  padding: 2rem 1.5rem 0.5rem 0;
  border-right: 1px solid var(--line);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.service:last-child {
  border-right: 0;
  padding-right: 0;
}

.service.is-visible {
  opacity: 1;
  transform: none;
}

.service:nth-child(2).is-visible {
  transition-delay: 0.12s;
}

.service:nth-child(3).is-visible {
  transition-delay: 0.24s;
}

.service-index {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.service h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.service p {
  margin: 0;
  color: var(--muted);
  max-width: 28ch;
  font-weight: 300;
}

/* Process */
.process {
  background: linear-gradient(180deg, transparent, rgba(26, 34, 28, 0.55), transparent);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-top: 2.5rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.steps strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.steps span {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.95rem;
}

/* Quote form */
.quote {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1rem;
  padding: 1.75rem;
  background: linear-gradient(145deg, rgba(243, 239, 230, 0.06), rgba(243, 239, 230, 0.02));
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(11, 15, 12, 0.55);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(232, 93, 4, 0.55);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.form-actions .btn {
  flex: 1 1 12rem;
}

.btn-whatsapp {
  background: #25d366;
  color: #0b0f0c;
}

.btn-whatsapp:hover {
  background: #2fe574;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp svg {
  flex-shrink: 0;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: #8fdb9a;
}

.form-status.is-error {
  color: #ff8f7a;
}

/* Contact */
.contact {
  padding-top: 2rem;
}

.contact-block {
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-block p {
  margin: 0;
  color: var(--muted);
}

.contact-block a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
  transition: color 0.25s var(--ease);
}

.contact-block a:hover {
  color: var(--accent-hot);
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .logo {
  color: var(--paper);
}

/* Animations */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1.75rem 0;
  }

  .service:last-child {
    border-bottom: 0;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .quote {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .site-header.is-open .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(11, 15, 12, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-open .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--paper);
  }

  .site-header.is-open .header-cta {
    display: none;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .hero-content {
    align-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg img,
  .hero-content,
  .service {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
