:root {
  --bg: #f5f0e8;
  --bg-soft: #ebe2d6;
  --surface: #fffaf3;
  --surface-2: #ded2c3;
  --text: #191612;
  --muted: #6c6258;
  --line: rgba(25, 22, 18, 0.14);
  --accent: #8a6f54;
  --accent-dark: #493a2a;
  --olive: #7a8068;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(25, 22, 18, 0.12);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.section {
  padding: 112px 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 999;
  background: var(--text);
  color: var(--surface);
  padding: 10px 14px;
  border-radius: 999px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(245, 240, 232, 0.86);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--surface);
  background: var(--text);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand__text {
  display: grid;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.brand__text strong {
  font-size: 0.88rem;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.62rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-menu a {
  color: rgba(25, 22, 18, 0.78);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  padding: 11px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 100svh;
  padding-top: 154px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(138, 111, 84, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 250, 243, 0.72), rgba(245, 240, 232, 0.1));
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 600;
}

h1 {
  max-width: 840px;
  margin-bottom: 28px;
  font-size: clamp(3.6rem, 8vw, 8.6rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 5vw, 5.6rem);
}

h3 {
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-size: 1.3rem;
}

.hero__lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 38px 0 44px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button--primary {
  background: var(--text);
  color: var(--surface);
}

.button--ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 250, 243, 0.42);
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.hero__meta div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero__meta dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero__meta dd {
  margin: 6px 0 0;
  font-weight: 650;
}

.hero__visual {
  position: relative;
  min-height: 620px;
}

.visual-card {
  position: absolute;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 243, 0.42);
  border-radius: 34px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(25, 22, 18, 0.22), rgba(25, 22, 18, 0.02)),
    repeating-linear-gradient(90deg, rgba(255, 250, 243, 0.24) 0 1px, transparent 1px 72px),
    linear-gradient(135deg, #bba88f, #7a8068);
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(255, 250, 243, 0.38);
  border-radius: 24px;
}

.visual-card span {
  margin: 24px;
  color: var(--surface);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.visual-card--large {
  inset: 28px 54px 44px 0;
}

.visual-card--small {
  width: 210px;
  height: 180px;
}

.visual-card--top {
  top: 0;
  right: 0;
}

.visual-card--bottom {
  right: 28px;
  bottom: 0;
}

.visual-card--top::before {
  background:
    linear-gradient(135deg, rgba(25, 22, 18, 0.18), rgba(25, 22, 18, 0.02)),
    repeating-linear-gradient(0deg, rgba(255, 250, 243, 0.22) 0 1px, transparent 1px 42px),
    linear-gradient(135deg, #ddd1c1, #8a6f54);
}

.visual-card--bottom::before {
  background:
    linear-gradient(135deg, rgba(25, 22, 18, 0.14), rgba(25, 22, 18, 0.02)),
    repeating-linear-gradient(45deg, rgba(255, 250, 243, 0.2) 0 1px, transparent 1px 48px),
    linear-gradient(135deg, #493a2a, #bba88f);
}

.floor-lines {
  position: absolute;
  left: -32px;
  bottom: -42px;
  width: 260px;
  height: 260px;
  border: 1px solid var(--line);
  opacity: 0.7;
  transform: rotate(18deg);
}

.floor-lines::before,
.floor-lines::after {
  content: "";
  position: absolute;
  inset: 38px;
  border: 1px solid var(--line);
}

.floor-lines::after {
  inset: 82px 20px 20px 82px;
}

.intro-strip {
  padding: 54px 0;
}

.intro-strip__inner {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}

.intro-strip p {
  max-width: 980px;
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2.55rem);
  line-height: 1.13;
  letter-spacing: -0.04em;
}

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

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

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter:hover,
.filter.is-active {
  background: var(--text);
  color: var(--surface);
  transform: translateY(-1px);
}

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

.project-card {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(25, 22, 18, 0.1);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(25, 22, 18, 0.08);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card.is-hidden {
  display: none;
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.project-card__body {
  position: absolute;
  inset: auto 16px 16px 16px;
  border: 1px solid rgba(255, 250, 243, 0.45);
  border-radius: 20px;
  padding: 18px;
  color: var(--surface);
  background: rgba(25, 22, 18, 0.46);
  backdrop-filter: blur(12px);
}

.project-card__body p {
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-card__body h3 {
  margin-bottom: 8px;
}

.project-card__body span {
  color: rgba(255, 250, 243, 0.78);
  font-size: 0.92rem;
}

.services {
  background: var(--text);
  color: var(--surface);
}

.services .eyebrow,
.services .section-heading p {
  color: rgba(255, 250, 243, 0.68);
}

.services__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 230px;
  border: 1px solid rgba(255, 250, 243, 0.12);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(255, 250, 243, 0.04);
}

.service-card span,
.timeline__item span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.service-card p {
  color: rgba(255, 250, 243, 0.68);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.timeline__item {
  min-height: 250px;
  padding: 28px 24px 0 0;
  border-right: 1px solid var(--line);
}

.timeline__item:last-child {
  border-right: 0;
}

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

.about {
  background: var(--bg-soft);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: center;
}

.about__image {
  min-height: 580px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(25, 22, 18, 0.1), rgba(25, 22, 18, 0.02)),
    url("assets/sobre-paludo.svg") center/cover no-repeat;
  box-shadow: var(--shadow);
}

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

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent-dark);
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 50px;
}

.accordion {
  border-top: 1px solid var(--line);
}

.accordion details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.accordion summary {
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 750;
  list-style: none;
}

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

.accordion summary::after {
  content: "+";
  float: right;
  color: var(--accent-dark);
}

.accordion details[open] summary::after {
  content: "–";
}

.accordion p {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
}

.contact {
  padding-bottom: 80px;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr);
  gap: 46px;
  align-items: start;
  border-radius: 38px;
  padding: clamp(26px, 5vw, 58px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  color: var(--text);
  background: #fffdf8;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(138, 111, 84, 0.62);
  box-shadow: 0 0 0 4px rgba(138, 111, 84, 0.12);
}

.form-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  padding: 54px 0 26px;
  color: rgba(255, 250, 243, 0.78);
  background: var(--text);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.brand--footer .brand__mark {
  background: var(--surface);
  color: var(--text);
}

.brand--footer .brand__text small,
.site-footer p {
  color: rgba(255, 250, 243, 0.62);
}

.footer__links {
  display: grid;
  gap: 10px;
  text-align: right;
}

.footer__links a:hover {
  color: var(--surface);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 250, 243, 0.12);
}

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

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

@media (max-width: 980px) {
  .hero__grid,
  .services__grid,
  .about__grid,
  .faq__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 520px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline__item:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 740px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 78px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 86px;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 250, 243, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 14px;
    border-radius: 14px;
  }

  .nav-menu a:hover {
    background: var(--bg);
  }

  .hero {
    padding-top: 124px;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .hero__meta {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 420px;
  }

  .visual-card--large {
    inset: 28px 40px 44px 0;
  }

  .visual-card--small {
    width: 174px;
    height: 146px;
  }

  .project-grid,
  .service-list,
  .timeline {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card img {
    min-height: 410px;
  }

  .timeline__item,
  .timeline__item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline__item:last-child {
    border-bottom: 0;
  }

  .about__image {
    min-height: 400px;
  }

  .footer__grid,
  .footer__bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .footer__links {
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
