:root {
  --bg: #f6f7f4;
  --panel: #ffffff;
  --ink: #16211d;
  --muted: #60706a;
  --line: #d9dfdb;
  --accent: #0b766d;
  --accent-strong: #075a54;
  --accent-soft: #dff1ed;
  --steel: #31505a;
  --gold: #b8963f;
  --shadow: 0 20px 50px rgba(22, 33, 29, 0.13);
  --radius: 8px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

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

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

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

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

.layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-band {
  width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  color: #fff;
  transition: background 240ms ease, box-shadow 240ms ease, color 240ms ease;
}

.site-header.scrolled {
  background: rgba(246, 247, 244, 0.93);
  color: var(--ink);
  box-shadow: 0 12px 35px rgba(22, 33, 29, 0.1);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: currentColor;
  opacity: 0.72;
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

.site-nav a {
  position: relative;
  color: currentColor;
}

.site-nav a:not(.nav-call):not(.nav-whatsapp)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-call,
.nav-whatsapp {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 800;
}

.nav-call {
  color: #fff;
  background: var(--accent);
}

.nav-whatsapp {
  border: 1px solid currentColor;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: inherit;
  background: transparent;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  animation: heroScale 1200ms ease both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 22, 18, 0.86) 0%, rgba(13, 22, 18, 0.72) 32%, rgba(13, 22, 18, 0.18) 70%),
    linear-gradient(180deg, rgba(13, 22, 18, 0.2), rgba(13, 22, 18, 0.42));
}

.hero-content {
  padding-top: var(--header-height);
  color: #fff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b7e4db;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

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

h1 {
  width: min(760px, 100%);
  margin-bottom: 22px;
  font-size: 58px;
  line-height: 1.02;
}

h2 {
  margin-bottom: 18px;
  font-size: 42px;
  line-height: 1.12;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.22;
}

.hero-copy {
  width: min(620px, 100%);
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(22, 33, 29, 0.18);
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.09);
}

.button.dark {
  color: #fff;
  background: var(--ink);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 68px;
  align-items: start;
}

.intro-grid.intro-solo {
  grid-template-columns: minmax(0, 780px);
}

.intro-points {
  display: grid;
  gap: 12px;
}

.intro-points span {
  display: block;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  box-shadow: 0 10px 28px rgba(22, 33, 29, 0.06);
}

.intro-grid p,
.section-head p,
.quote-copy p,
.project-card p,
.service-item p,
.timeline p,
.site-footer p {
  color: var(--muted);
}

.services {
  padding: 96px 0;
  background: #eef4f1;
}

.section-head {
  width: min(720px, 100%);
  margin-bottom: 38px;
}

.section-head.wide {
  display: grid;
  width: 100%;
  grid-template-columns: 0.82fr 1.1fr;
  gap: 34px 68px;
  align-items: end;
}

.section-head.wide .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -14px;
}

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.service-number {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

.service-item h3 {
  margin-bottom: 7px;
}

.service-item p {
  max-width: 760px;
  margin-bottom: 0;
}

.review-grid {
  display: grid;
  gap: 14px;
}

.review-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(22, 33, 29, 0.06);
}

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

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

.portfolio-hero {
  min-height: 660px;
}

.portfolio-gallery {
  padding-bottom: 78px;
}

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

.portfolio-filters button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.portfolio-filters button:hover,
.portfolio-filters button.is-active {
  color: #fff;
  background: var(--accent);
  transform: translateY(-1px);
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 44px rgba(22, 33, 29, 0.08);
}

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

.project-card div {
  padding: 24px;
}

.project-card span,
.compact-inner span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card.compact {
  display: grid;
  min-height: 100%;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(11, 118, 109, 0.96), rgba(49, 80, 90, 0.96)),
    var(--steel);
}

.project-card.compact .compact-inner {
  display: grid;
  align-content: center;
  min-height: 360px;
}

.project-card.compact span,
.project-card.compact p {
  color: rgba(255, 255, 255, 0.78);
}

.project-card.compact a {
  width: fit-content;
  margin-top: 20px;
  padding-bottom: 5px;
  border-bottom: 2px solid currentColor;
  font-weight: 900;
}

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

.project-note {
  display: grid;
  min-height: 320px;
  align-content: center;
  background:
    linear-gradient(145deg, rgba(223, 241, 237, 0.9), rgba(255, 255, 255, 0.94)),
    #fff;
}

.project-note div {
  padding: 30px;
}

.before-after {
  padding: 96px 0;
  background: #eef4f1;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.before-after-card {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 44px rgba(22, 33, 29, 0.08);
}

.before-state {
  display: grid;
  align-content: end;
  gap: 14px;
  padding: 24px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(22, 33, 29, 0.96), rgba(49, 80, 90, 0.94)),
    var(--ink);
}

.before-state span,
.after-state span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.before-state span {
  background: rgba(255, 255, 255, 0.13);
}

.before-state p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.after-state {
  position: relative;
  min-height: 360px;
}

.after-state img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.after-state span {
  position: absolute;
  top: 16px;
  left: 16px;
  color: #fff;
  background: var(--accent);
}

.reviews {
  padding: 96px 0;
  background: #eef4f1;
}

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

.review-card {
  min-height: 230px;
  display: grid;
  align-content: space-between;
  gap: 22px;
}

.review-track {
  display: grid;
  overflow: hidden;
}

.review-slide {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.review-slide.is-active {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.review-card.is-prev .review-slide {
  transform: translateX(-18px);
}

.review-card.is-prev .review-slide.is-active {
  transform: translateX(0);
}

.review-slide p {
  font-size: 18px;
}

.review-slide strong {
  color: var(--accent-strong);
}

.review-controls {
  display: flex;
  gap: 8px;
}

.review-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.review-controls button:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.process {
  padding: 96px 0;
  background: var(--ink);
  color: #fff;
}

.process .section-kicker {
  color: #b7e4db;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 250px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
}

.timeline small {
  display: block;
  margin-bottom: 16px;
  color: #b7e4db;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline h3 {
  margin-bottom: 14px;
}

.timeline p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.quote-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 70px;
  align-items: start;
}

.callout {
  display: grid;
  gap: 8px;
  margin-top: 34px;
  padding: 22px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 35px rgba(22, 33, 29, 0.07);
}

.callout span {
  color: var(--muted);
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

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

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid #ccd5d0;
  border-radius: var(--radius);
  background: #fbfcfb;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(11, 118, 109, 0.14);
}

.quote-form .full {
  grid-column: 1 / -1;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 13, 11, 0.62);
  backdrop-filter: blur(8px);
}

.quote-modal[hidden] {
  display: none;
}

.quote-dialog {
  position: relative;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 28px;
  width: min(980px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.quote-dialog .quote-copy {
  padding: 8px 4px 0 0;
}

.quote-dialog .quote-copy p {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.final-cta {
  padding: 70px 0;
  color: #fff;
  background: var(--accent-strong);
}

.final-cta .section-kicker {
  color: #c9eee7;
}

.final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.final-inner h2 {
  max-width: 760px;
  margin: 0;
}

.site-footer {
  padding: 36px 0;
  background: #101713;
  color: #fff;
}

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

.site-footer span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a {
  font-weight: 900;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: #128c7e;
  box-shadow: 0 16px 32px rgba(18, 140, 126, 0.32);
  font-weight: 900;
}

.floating-whatsapp svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

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

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

@keyframes heroScale {
  from {
    transform: scale(1.035);
  }
  to {
    transform: scale(1);
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 34px;
  }

  .hero {
    min-height: 720px;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .site-nav a::after {
    display: none;
  }

  .nav-call {
    margin-top: 8px;
    text-align: center;
  }

  .nav-whatsapp {
    text-align: center;
  }

  .menu-button {
    display: block;
  }

  .intro-grid,
  .section-head.wide,
  .quote-dialog,
  .quote-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .project-grid,
  .portfolio-grid,
  .before-after-grid {
    grid-template-columns: 1fr;
  }

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

  .final-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .layout {
    width: min(100% - 28px, 1180px);
  }

  .section,
  .services,
  .reviews,
  .process {
    padding: 68px 0;
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(13, 22, 18, 0.86), rgba(13, 22, 18, 0.46)),
      linear-gradient(180deg, rgba(13, 22, 18, 0.08), rgba(13, 22, 18, 0.58));
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .final-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

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

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

  .portfolio-filters button {
    width: 100%;
  }

  .service-item {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
  }

  .project-card img,
  .after-state {
    height: 260px;
  }

  .timeline li {
    min-height: auto;
  }

  .quote-modal {
    padding: 12px;
  }

  .quote-dialog {
    padding: 22px;
  }

  .floating-whatsapp {
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }

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