:root {
  --ink: #171411;
  --ink-soft: #4f463e;
  --paper: #fbfaf7;
  --muted: #ede8df;
  --clay: #a74216;
  --clay-dark: #703012;
  --amber: #f6a31a;
  --steel: #27323a;
  --olive: #596a3f;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(23, 20, 17, 0.16);
  --radius: 8px;
  --container: min(1140px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(20px, calc((100vw - 1140px) / 2));
  color: var(--white);
  background: rgba(23, 20, 17, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(251, 250, 247, 0.94);
  box-shadow: 0 10px 35px rgba(23, 20, 17, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 132px;
  min-height: 54px;
}

.brand img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  content: "";
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.main-nav .nav-cta {
  padding: 11px 17px;
  color: var(--ink);
  background: var(--amber);
  border-radius: var(--radius);
}

.main-nav .nav-cta::after {
  display: none;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  color: inherit;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-terraplanagem.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 13, 11, 0.88) 0%, rgba(15, 13, 11, 0.68) 34%, rgba(15, 13, 11, 0.2) 72%),
    linear-gradient(0deg, rgba(23, 20, 17, 0.9) 0%, rgba(23, 20, 17, 0) 36%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 160px 0 92px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Oswald", Impact, sans-serif;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 5.6rem, 5.6rem);
  text-transform: uppercase;
  overflow-wrap: break-word;
}

h2 {
  color: var(--ink);
  font-size: clamp(2.25rem, 3.25rem, 3.25rem);
  text-transform: uppercase;
}

h3 {
  color: var(--ink);
  font-size: 1.45rem;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 21px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--ink);
  background: var(--amber);
  box-shadow: 0 14px 32px rgba(246, 163, 26, 0.22);
}

.btn-primary:hover {
  background: #ffb33d;
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  line-height: 1;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
}

.hero-proof span,
.about-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 700;
}

.service-strip {
  background: var(--ink);
  color: var(--white);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.strip-grid div {
  min-height: 134px;
  padding: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.strip-grid div:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.strip-grid strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Oswald", Impact, sans-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.strip-grid span {
  color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: 108px 0;
}

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

.section-heading p:not(.eyebrow),
.split-copy p,
.about-copy p,
.contact-copy p {
  color: var(--ink-soft);
  font-size: 1.04rem;
}

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

.service-card {
  min-height: 250px;
  padding: 28px;
  background: var(--white);
  border: 1px solid #e7ded2;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(65, 51, 38, 0.06);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 36px;
  margin-bottom: 42px;
  color: var(--white);
  background: var(--clay);
  border-radius: var(--radius);
  font-weight: 800;
}

.service-card p {
  color: var(--ink-soft);
}

.split-section,
.about-section {
  padding: 108px 0;
  background: var(--muted);
}

.split-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 48px;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-weight: 600;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.18rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: inset 0 0 0 5px var(--clay);
  content: "";
}

.equipment-panel,
.about-image {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.equipment-panel img,
.about-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.equipment-note {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px;
  color: var(--white);
  background: rgba(23, 20, 17, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.equipment-note strong {
  display: block;
  font-family: "Oswald", Impact, sans-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.equipment-note span {
  color: rgba(255, 255, 255, 0.76);
}

.work-band {
  background: var(--paper);
}

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

.gallery-item {
  overflow: hidden;
  min-height: 330px;
  padding: 0;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(6) {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.045);
  opacity: 0.88;
}

.process-section {
  padding: 108px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(23, 20, 17, 0.94), rgba(23, 20, 17, 0.76)),
    url("assets/WhatsApp Image 2026-09-01 at 15.49.05.jpeg") center / cover;
}

.process-section h2,
.process-section h3 {
  color: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.timeline-item span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--ink);
  background: var(--amber);
  border-radius: var(--radius);
  font-weight: 900;
}

.timeline-item p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.about-grid {
  grid-template-columns: 1.02fr 0.98fr;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.about-tags span {
  color: var(--ink);
  background: var(--white);
  border-color: #e7ded2;
}

.contact-section {
  padding: 108px 0;
  background:
    linear-gradient(135deg, rgba(167, 66, 22, 0.1), rgba(89, 106, 63, 0.12)),
    var(--paper);
}

.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.contact-lines {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-lines span,
.contact-lines a {
  display: block;
  padding: 14px 16px;
  background: var(--white);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(65, 51, 38, 0.07);
  font-weight: 700;
}

.contact-lines a {
  color: var(--clay-dark);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  background: var(--white);
  border: 1px solid #e7ded2;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

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

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 4px rgba(167, 66, 22, 0.12);
}

.privacy-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.contact-form .privacy-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--clay);
}

.privacy-check a {
  color: var(--clay-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--olive);
  font-weight: 800;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(20px, calc((100vw - 1140px) / 2));
  color: var(--white);
  background: var(--ink);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-page {
  background: var(--paper);
}

.legal-hero {
  padding: 86px 0 52px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(167, 66, 22, 0.82), rgba(23, 20, 17, 0.94)),
    var(--ink);
}

.legal-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.legal-hero p:last-child {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.legal-content {
  max-width: 900px;
  padding: 58px 0 86px;
}

.legal-content h2 {
  margin: 34px 0 12px;
  font-size: 1.45rem;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
}

.legal-content a {
  color: var(--clay-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content ul {
  padding-left: 22px;
}

.site-footer {
  padding: 40px 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-footer img {
  width: 124px;
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 420px;
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--white);
  font-weight: 800;
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 18px;
  left: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(880px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 12px 14px 12px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e7ded2;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(23, 20, 17, 0.12);
  backdrop-filter: blur(10px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-copy {
  min-width: 0;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.92rem;
  line-height: 1.2;
}

.cookie-banner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.42;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-actions a,
.cookie-actions button {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.cookie-actions a {
  color: var(--clay-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions button {
  color: var(--ink);
  background: transparent;
  border: 1px solid #e0d6c8;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cookie-actions button:last-child {
  border-color: var(--amber);
  background: var(--amber);
}

.cookie-actions button:hover {
  transform: translateY(-1px);
}

.cookie-actions button:focus-visible,
.cookie-actions a:focus-visible {
  outline: 3px solid rgba(167, 66, 22, 0.28);
  outline-offset: 3px;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--ink);
  background: var(--amber);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(23, 20, 17, 0.22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

body.has-cookie-banner .back-to-top {
  bottom: 102px;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #ffc14a;
}

.back-to-top span {
  width: 15px;
  height: 15px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: translateY(4px) rotate(45deg);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 76px 20px 32px;
  visibility: hidden;
  opacity: 0;
  background: rgba(9, 8, 7, 0.9);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.lightbox img {
  max-width: min(1080px, 100%);
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox p {
  min-height: 28px;
  margin: 16px 0 0;
  color: var(--white);
  font-weight: 800;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

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

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

@media (max-width: 920px) {
  .site-header {
    padding: 12px 20px;
  }

  .menu-toggle {
    display: grid;
    flex: 0 0 46px;
    place-items: center;
    margin-left: auto;
    position: relative;
    z-index: 70;
    color: var(--ink);
    background: var(--amber);
    border-color: var(--amber);
    box-shadow: 0 12px 28px rgba(23, 20, 17, 0.18);
  }

  .main-nav {
    position: fixed;
    top: 78px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 0;
    padding: 16px;
    color: var(--ink);
    background: rgba(251, 250, 247, 0.98);
    border: 1px solid #e7ded2;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }

  .main-nav a {
    padding: 14px 8px;
  }

  h1 {
    font-size: clamp(2.7rem, 4.2rem, 4.2rem);
  }

  .strip-grid,
  .services-grid,
  .split-grid,
  .process-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .strip-grid div,
  .strip-grid div:last-child {
    border-right: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

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

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6) {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(calc(100% - 28px), 1140px);
  }

  .brand {
    width: 112px;
  }

  .menu-toggle {
    position: absolute;
    top: 26px;
    left: min(calc(100vw - 66px), 324px);
    margin-left: 0;
  }

  .hero {
    min-height: 820px;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(15, 13, 11, 0.9), rgba(15, 13, 11, 0.46)),
      linear-gradient(0deg, rgba(23, 20, 17, 0.94), rgba(23, 20, 17, 0.1) 58%);
  }

  .hero-content {
    padding: 130px 0 52px;
  }

  h1 {
    font-size: 2.55rem;
    line-height: 1.08;
    max-width: 320px;
  }

  .hero-copy {
    max-width: 340px;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero-actions,
  .footer-grid,
  .legal-header {
    align-items: stretch;
    flex-direction: column;
  }

  .legal-nav {
    justify-content: center;
  }

  .btn {
    width: 100%;
  }

  .hero-proof span,
  .about-tags span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .section,
  .split-section,
  .process-section,
  .about-section,
  .contact-section {
    padding: 76px 0;
  }

  .service-card {
    min-height: auto;
  }

  .equipment-panel,
  .about-image {
    min-height: 390px;
  }

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

  .gallery-item {
    min-height: 320px;
  }

  .timeline-item {
    grid-template-columns: 42px 1fr;
    padding: 18px;
  }

  .timeline-item span {
    width: 42px;
    height: 42px;
  }

  .contact-form {
    padding: 20px;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    align-items: stretch;
    flex-direction: column;
    width: auto;
    padding: 14px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-actions a {
    grid-column: 1 / -1;
    text-align: center;
  }

  body.has-cookie-banner .back-to-top {
    display: none;
  }
}
