:root {
  --bg: #666663;
  --surface: rgba(111, 104, 96, 0.78);
  --surface-strong: rgba(123, 116, 108, 0.92);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.76);
  --brand: #f26322;
  --brand-dark: #ffffff;
  --brand-warm: #746c65;
  --accent: #f26322;
  --accent-dark: #d95117;
  --line: rgba(255, 255, 255, 0.2);
  --shadow: 0 24px 70px rgba(20, 19, 18, 0.3);
  --radius: 28px;
  --container: min(1120px, calc(100% - 32px));
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(242, 99, 34, 0.28), transparent 34rem),
    radial-gradient(circle at 85% 8%, rgba(255, 255, 255, 0.08), transparent 30rem),
    linear-gradient(180deg, #615f5d 0%, var(--bg) 48%, #5d5b58 100%);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

code {
  padding: 0.14rem 0.35rem;
  border-radius: 0.45rem;
  background: rgba(29, 37, 33, 0.08);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: white;
  color: #5f5c59;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.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: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(93, 91, 88, 0.92);
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(20, 19, 18, 0.22);
  backdrop-filter: blur(16px);
}

.nav {
  width: var(--container);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.98rem;
}

.brand__logo-shell {
  width: 136px;
  height: 74px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(111, 104, 96, 0.86);
  box-shadow: 0 12px 24px rgba(20, 19, 18, 0.22);
}

.brand__logo {
  width: 122px;
  height: auto;
  border: 0;
  pointer-events: none;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.nav__links {
  position: fixed;
  inset: 82px max(16px, calc((100vw - 1120px) / 2)) auto auto;
  width: min(360px, calc(100% - 32px));
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(93, 91, 88, 0.98);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow);
  transform: translateY(-1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.nav__links a {
  padding: 0.8rem;
}

.nav__links a:not(.button):hover,
.site-footer a:hover {
  color: var(--brand-dark);
}

.nav__toggle {
  display: block;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.nav__toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.88rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(242, 99, 34, 0.45);
  outline-offset: 4px;
}

.button--whatsapp {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: 0 16px 34px rgba(242, 99, 34, 0.28);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
  color: var(--text);
}

.button--small {
  min-height: 42px;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
}

.hero__gallery-next.button--small {
  min-height: clamp(42px, 7vw, 92px);
  padding: clamp(0.65rem, 1.6vw, 1.35rem) clamp(1rem, 3vw, 2.3rem);
  font-size: clamp(0.92rem, 2.5vw, 2rem);
}

button.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button--large {
  min-height: 58px;
  padding-inline: 1.5rem;
}

.hero,
.section,
.cta {
  width: var(--container);
  margin: 0 auto;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 850px;
  margin-bottom: 1.2rem;
  font-size: clamp(2.75rem, 7vw, 5.8rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.hero__lead,
.section__header p,
.split-card p,
.cta p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero__actions,
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero__actions {
  margin-top: 2rem;
}

.hero__badges {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-weight: 700;
}

.hero__badges li {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.hero__visual {
  position: relative;
  width: 100%;
  min-height: clamp(460px, 48vw, 560px);
}

.photo-card,
.stats-card,
.contact-card,
.service-card,
.project-card,
.before-after,
.split-card,
.timeline {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.photo-card {
  position: absolute;
  overflow: hidden;
  display: grid;
  place-items: stretch;
  margin: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(29, 37, 33, 0.18), rgba(29, 37, 33, 0.02)),
    repeating-linear-gradient(135deg, #d6c4a7 0 18px, #c0aa88 18px 36px);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
  font-size: 0;
}

.photo-card--main img {
  object-position: 53% 44%;
}

.photo-card.is-missing-image {
  display: grid;
  place-items: stretch;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(18, 26, 22, 0.62));
  pointer-events: none;
}

.photo-card--main {
  inset: 0 0 0 4%;
}

.photo-card__label {
  position: absolute;
  left: clamp(1rem, 3vw, 2.25rem);
  bottom: clamp(1rem, 3vw, 2.25rem);
  z-index: 1;
  padding: clamp(0.75rem, 1.6vw, 1.25rem) clamp(1rem, 2.4vw, 2rem);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #625f5c;
  font-size: clamp(1rem, 2.6vw, 2rem);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(18, 26, 22, 0.16);
}

.stats-card {
  position: absolute;
  left: 0;
  bottom: 18%;
  z-index: 2;
  width: min(36%, 410px);
  max-width: none;
  padding: clamp(1.2rem, 3.4vw, 3rem);
  border-radius: clamp(24px, 4vw, 48px);
  background: rgba(111, 104, 96, 0.9);
  backdrop-filter: blur(14px);
}

.stats-card strong {
  display: block;
  font-size: clamp(3.25rem, 7vw, 6rem);
  line-height: 1;
}

.stats-card span,
.stats-card small {
  display: block;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.7vw, 2.1rem);
  font-weight: 700;
}

.stats-card small {
  margin-top: 0.4rem;
  font-size: 0.76rem;
  opacity: 0.8;
}

.hero__gallery-next {
  position: absolute;
  right: 3%;
  bottom: 26%;
  z-index: 3;
  box-shadow: 0 18px 34px rgba(18, 26, 22, 0.22);
}

.hero__gallery-next span {
  display: inline-block;
  margin-left: 0.45rem;
  padding-left: 0.45rem;
  border-left: 1px solid rgba(255, 255, 255, 0.46);
  opacity: 0.86;
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section__header {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section--intro {
  padding-top: 1rem;
}

.service-grid,
.project-grid {
  display: grid;
  gap: 1rem;
}

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

.service-card,
.project-card,
.before-after,
.split-card,
.timeline,
.contact-card {
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.service-card {
  padding: 1.35rem;
}

.service-card__icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.1rem;
  border-radius: 18px;
  background: rgba(242, 99, 34, 0.28);
  font-size: 1.5rem;
}

.service-card p,
.project-card p,
.timeline span,
.contact-card dd {
  color: var(--muted);
}

.section--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.split-card,
.timeline {
  padding: clamp(1.4rem, 4vw, 2rem);
}

.timeline {
  margin: 0;
  list-style: none;
  counter-reset: item;
}

.timeline li + li {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline strong {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

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

.project-card {
  overflow: hidden;
}

.project-card > div:last-child {
  padding: 1.2rem;
}

.project-card__image {
  min-height: 220px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(29, 37, 33, 0.18), rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(45deg, #d6c4a7 0 16px, #bfa77e 16px 32px);
  color: white;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.24);
}

.before-after {
  width: min(100%, 920px);
  margin-inline: auto;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
}

.before-after__stage {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 360px;
  max-height: 720px;
  overflow: hidden;
  isolation: isolate;
  background: #d8d0c4;
  cursor: ew-resize;
  touch-action: pan-y pinch-zoom;
}

.before-after__image,
.before-after__after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.before-after__image {
  object-fit: cover;
  object-position: var(--image-position, 50% 50%);
  transform: scale(1.01);
  user-select: none;
  pointer-events: none;
}

.before-after__image--before {
  --image-position: var(--before-image-position, 50% 50%);
}

.before-after__after {
  clip-path: inset(0 0 0 var(--slider-position));
}

.before-after__image--after {
  --image-position: var(--after-image-position, 50% 50%);
}

.before-after__label {
  position: absolute;
  top: 1rem;
  z-index: 3;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #625f5c;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(18, 26, 22, 0.14);
}

.before-after__label--before {
  left: 1rem;
}

.before-after__label--after {
  right: 1rem;
}

.before-after__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--slider-position);
  z-index: 4;
  width: 3px;
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(29, 37, 33, 0.12), 0 0 24px rgba(18, 26, 22, 0.28);
}

.before-after__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 34px rgba(18, 26, 22, 0.24);
}

.before-after__handle::before {
  content: "↔";
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.before-after__control {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: ew-resize;
  touch-action: pan-y pinch-zoom;
}

.before-after__control input {
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y pinch-zoom;
}


.before-after__actions--overlay {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 7;
  justify-content: space-between;
  max-width: none;
}

.before-after__actions--overlay .button {
  backdrop-filter: blur(4px);
}
.before-after__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: clamp(1.15rem, 3vw, 1.6rem);
}

.before-after__copy h3 {
  margin-bottom: 0.45rem;
}

.before-after__copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.before-after__counter {
  margin-bottom: 0.35rem;
  color: var(--brand-dark) !important;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.before-after__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  max-width: 440px;
}

.cta {
  display: grid;
  grid-template-columns: 1fr 0.58fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 4rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 18rem),
    radial-gradient(circle at bottom left, rgba(242, 99, 34, 0.28), transparent 22rem),
    linear-gradient(135deg, rgba(111, 104, 96, 0.96), rgba(93, 91, 88, 0.96));
  color: white;
  box-shadow: var(--shadow);
}

.contact-section {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.45fr) minmax(280px, 0.72fr);
  overflow: hidden;
  isolation: isolate;
}

.contact-portrait {
  align-self: end;
  margin: 0;
  text-align: center;
}

.contact-portrait img {
  width: min(100%, 290px);
  margin-inline: auto;
  filter: drop-shadow(0 22px 28px rgba(60, 39, 24, 0.26));
}

.contact-portrait figcaption {
  display: inline-flex;
  margin-top: -0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #625f5c;
  font-size: 0.82rem;
  font-weight: 900;
}

.cta .eyebrow,
.cta p {
  color: rgba(255, 255, 255, 0.74);
}

.cta code {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.contact-card {
  padding: 1.35rem;
  color: var(--text);
  background: rgba(111, 104, 96, 0.92);
}

.contact-card a {
  color: var(--text);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-card dl,
.contact-card dd {
  margin: 0;
}

.contact-card div + div {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.contact-card dt {
  font-weight: 800;
}

.site-footer {
  width: var(--container);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  font-weight: 700;
}

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

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

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

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

@media (max-width: 920px) {
  .nav__links {
    inset: 82px 16px auto;
    width: auto;
  }

  .cta,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-portrait {
    order: 2;
  }

  .contact-card {
    order: 3;
  }

  .hero__visual {
    min-height: 460px;
  }

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

  .before-after__stage {
    min-height: 340px;
    max-height: 640px;
  }

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

  .before-after__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 24px, 1120px);
  }

  .nav {
    min-height: 74px;
  }

  .nav__links {
    inset: 74px 12px auto;
  }

  .brand__logo-shell {
    width: 118px;
    height: 64px;
    border-radius: 14px;
  }

  .brand__logo {
    width: 106px;
    height: auto;
  }

  .hero__actions,
  .hero__actions .button,
  .cta .button {
    width: 100%;
  }

  .hero__visual {
    min-height: 360px;
  }

  .photo-card--main {
    inset: 0 0 17% 0;
  }

  .stats-card {
    bottom: 8%;
    width: min(58%, 220px);
    padding: 1.2rem;
    border-radius: 24px;
  }

  .stats-card strong {
    font-size: 2.6rem;
  }

  .stats-card span,
  .stats-card small {
    font-size: 1rem;
  }

  .photo-card__label {
    left: 1rem;
    bottom: 1rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .hero__gallery-next {
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .hero__gallery-next.button--small {
    min-height: 42px;
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
  }

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

  .before-after__stage {
    aspect-ratio: 3 / 4;
    min-height: 0;
    max-height: none;
  }

  .before-after__handle {
    width: 50px;
    height: 50px;
  }

  .before-after__actions,
  .before-after__actions .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

.brand strong,
.brand small,
.nav__links a:not(.button),
.site-footer,
.site-footer a {
  color: var(--text);
}

.section__header p,
.hero__lead,
.split-card p,
.before-after__copy p,
.service-card p,
.project-card p,
.timeline span,
.contact-card dd {
  color: var(--muted);
}
