:root {
  --orange: #f47b20;
  --orange-dark: #c95b10;
  --green: #123d2e;
  --green-2: #1f5a42;
  --anthracite: #202326;
  --steel: #636b70;
  --mist: #f4f6f3;
  --white: #ffffff;
  --line: rgba(32, 35, 38, 0.14);
  --shadow: 0 18px 45px rgba(20, 26, 25, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--anthracite);
  background: var(--mist);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(12, 21, 20, 0.42);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(18, 61, 46, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0;
}

.brand-mark img {
  width: 122px;
  height: 122px;
  max-width: none;
  object-fit: cover;
  object-position: 58% 58%;
}

.brand span {
  font-size: 1.05rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-weight: 800;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  content: "";
  background: var(--orange);
  transition: width 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 124px clamp(20px, 6vw, 80px) 86px;
  overflow: hidden;
  color: var(--white);
  background: var(--green);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 15, 14, 0.86), rgba(8, 15, 14, 0.48) 52%, rgba(8, 15, 14, 0.18)),
    linear-gradient(0deg, rgba(8, 15, 14, 0.72), rgba(8, 15, 14, 0.1) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(840px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(2.65rem, 7vw, 6.8rem);
}

.hero-content p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 6px;
  font-weight: 900;
  border: 2px solid transparent;
}

.btn-primary {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
}

.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
}

.value-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: var(--white);
  background: var(--anthracite);
}

.value-band div {
  padding: 28px clamp(18px, 4vw, 52px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.value-band strong {
  display: block;
  margin-bottom: 5px;
  color: var(--orange);
  font-size: 1.05rem;
  font-weight: 900;
}

.value-band span {
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: clamp(64px, 9vw, 116px) clamp(20px, 6vw, 80px);
}

.section-heading,
.section-copy {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading h2,
.section-copy h2,
.coverage-copy h2,
.contact-copy h2 {
  margin-bottom: 16px;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 4rem);
}

.section-heading p:not(.eyebrow),
.section-copy p:not(.eyebrow),
.coverage-copy p,
.contact-copy p {
  color: var(--steel);
  font-size: 1.05rem;
}

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

.intro-grid article {
  min-height: 250px;
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}

.icon-block {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--white);
  background: var(--green);
  border-radius: 6px;
  font-weight: 900;
}

.intro-grid h3,
.machine-body h3,
.portfolio-panel h3 {
  margin-bottom: 12px;
  color: var(--anthracite);
  font-size: 1.45rem;
}

.intro-grid p {
  color: var(--steel);
}

.fleet-section {
  background: var(--white);
}

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

.machine-card {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.machine-media {
  min-height: 100%;
}

.machine-media video {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.machine-media img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.placeholder-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(18, 61, 46, 0.94), rgba(32, 35, 38, 0.9)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 900;
  text-align: center;
}

.machine-body {
  padding: 28px;
}

.machine-category {
  margin-bottom: 9px;
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
}

dl {
  margin: 0;
}

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

dt {
  color: var(--green);
  font-weight: 900;
}

dd {
  margin: 3px 0 0;
  color: var(--steel);
}

.portfolio-section {
  background: var(--mist);
}

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

.portfolio-panel {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 46px);
  color: var(--white);
  border-radius: 8px;
  overflow: hidden;
}

.portfolio-panel.forest {
  background:
    linear-gradient(145deg, rgba(18, 61, 46, 0.96), rgba(31, 90, 66, 0.84)),
    linear-gradient(45deg, rgba(244, 123, 32, 0.2), transparent);
}

.portfolio-panel.construction {
  background:
    linear-gradient(145deg, rgba(32, 35, 38, 0.96), rgba(99, 107, 112, 0.8)),
    linear-gradient(45deg, rgba(244, 123, 32, 0.22), transparent);
}

.portfolio-panel h3 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.portfolio-panel p {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.82);
}

.portfolio-panel ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.portfolio-panel li {
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.coverage-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(64px, 9vw, 110px) clamp(20px, 6vw, 80px);
  color: var(--white);
  background: var(--green);
}

.coverage-copy h2 {
  color: var(--white);
}

.coverage-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.coverage-map {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--anthracite);
  box-shadow: var(--shadow);
}

.coverage-map img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 70px);
  background: var(--white);
}

.contact-panel {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

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

.contact-link {
  display: block;
  min-width: 190px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--mist);
}

.primary-contact {
  padding: 22px;
  color: var(--white);
  background: linear-gradient(135deg, #1fa855, var(--green));
  border-color: transparent;
  box-shadow: var(--shadow);
}

.contact-link span {
  display: block;
  margin-bottom: 4px;
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-link strong {
  color: var(--green);
  font-weight: 900;
}

.primary-contact span,
.primary-contact strong {
  color: var(--white);
}

.primary-contact strong {
  font-size: 1.55rem;
}

.quote-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
  padding: 18px;
  border-left: 5px solid var(--orange);
  background: rgba(244, 123, 32, 0.08);
  border-radius: 8px;
}

.quote-checklist strong {
  grid-column: 1 / -1;
  color: var(--green);
  font-weight: 900;
}

.quote-checklist span {
  padding: 9px 11px;
  color: var(--anthracite);
  background: var(--white);
  border-radius: 6px;
  font-weight: 800;
}

.service-area-section {
  background:
    linear-gradient(135deg, rgba(18, 61, 46, 0.97), rgba(32, 35, 38, 0.94)),
    linear-gradient(45deg, rgba(244, 123, 32, 0.16), transparent);
  color: var(--white);
}

.service-area-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(22px, 5vw, 70px);
  align-items: end;
}

.service-area-section .section-heading {
  margin-bottom: 0;
}

.service-area-section .section-heading h2 {
  color: var(--white);
}

.service-area-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.service-area-card {
  padding: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.service-area-card span,
.service-zone-card span {
  display: block;
  margin-bottom: 9px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-area-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.7rem;
  line-height: 1.05;
}

.service-area-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.service-zone-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
  margin-top: 38px;
}

.service-zone-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border-radius: 8px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.service-zone-card.featured {
  background:
    linear-gradient(145deg, rgba(244, 123, 32, 0.9), rgba(201, 91, 16, 0.9)),
    rgba(244, 123, 32, 0.9);
}

.service-zone-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1;
  font-weight: 900;
}

.service-zone-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.service-zone-card:hover {
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.city-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.city-strip a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 900;
}

.city-strip a:hover {
  border-color: var(--orange);
}

.local-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 120px clamp(20px, 6vw, 80px) 70px;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 15, 14, 0.88), rgba(8, 15, 14, 0.48) 58%, rgba(8, 15, 14, 0.22)),
    linear-gradient(0deg, rgba(8, 15, 14, 0.62), rgba(8, 15, 14, 0.08) 46%),
    var(--local-hero-image, url("/assets/vila-real-panorama.jpg")) center / cover;
  text-align: left;
}

.local-hero > div {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  margin-left: 0;
  margin-right: auto;
}

.local-hero h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 6vw, 5.4rem);
}

.local-hero p:not(.eyebrow) {
  max-width: 690px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.local-content {
  max-width: 980px;
}

.local-content h2 {
  margin-bottom: 16px;
  color: var(--green);
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.local-content p,
.local-content li {
  color: var(--steel);
  font-size: 1.05rem;
}

.local-content ul {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding-left: 1.2rem;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  background: var(--mist);
  border: 1px solid var(--line);
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: var(--green);
  font-weight: 900;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid rgba(32, 35, 38, 0.22);
  border-radius: 6px;
  padding: 13px 12px;
  color: var(--anthracite);
  background: var(--white);
  font: inherit;
}

.quote-form textarea {
  resize: vertical;
}

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

.form-status.is-error {
  color: #b3291c;
}

.form-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-fallback[hidden] {
  display: none;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.full-field {
  grid-column: 1 / -1;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 28px clamp(20px, 6vw, 80px);
  color: var(--white);
  background: var(--anthracite);
}

.site-footer strong {
  color: var(--orange);
}

.whatsapp-float {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: #1fa855;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  font-weight: 900;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 22px 24px;
    background: rgba(18, 61, 46, 0.98);
  }

  .main-nav.is-open {
    display: flex;
  }

  .value-band,
  .intro-grid,
  .fleet-grid,
  .portfolio-grid,
  .coverage-section,
  .contact-section,
  .service-area-layout,
  .service-zone-grid {
    grid-template-columns: 1fr;
  }

  .machine-card {
    grid-template-columns: 1fr;
  }

  .machine-media {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 10px 16px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-mark img {
    width: 108px;
    height: 108px;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .hero {
    min-height: 88vh;
    padding: 104px 18px 54px;
  }

  .value-band div,
  .section,
  .coverage-section,
  .contact-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }

  .contact-link {
    width: 100%;
  }

  .contact-list,
  .quote-checklist {
    grid-template-columns: 1fr;
  }

  .service-area-card,
  .service-zone-card {
    padding: 22px;
  }

  .service-zone-card {
    min-height: 190px;
  }

  .city-strip {
    grid-template-columns: 1fr;
  }

  .coverage-section {
    gap: 24px;
  }

  .coverage-copy h2 {
    font-size: clamp(1.85rem, 9vw, 2.55rem);
  }

  .coverage-map {
    background: var(--white);
  }

  .coverage-map img {
    min-height: 0;
    height: auto;
    object-fit: contain;
  }
}
