:root {
  --ink: #201f1d;
  --muted: #6f6b64;
  --paper: #f7f3ec;
  --stone: #dfd7ca;
  --clay: #a86442;
  --olive: #6f7459;
  --charcoal: #141414;
  --white: #ffffff;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(247, 243, 236, 0.88);
  backdrop-filter: blur(18px);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  left: 0;
  padding: 18px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  transition: box-shadow 0.25s ease, padding 0.25s ease;
  z-index: 20;
}

.site-header.is-scrolled {
  box-shadow: 0 16px 40px rgba(32, 31, 29, 0.08);
  padding-bottom: 12px;
  padding-top: 12px;
}

.brand img {
  height: 52px;
  width: auto;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
}

.site-nav > a::after,
.nav-dropdown-label::after {
  background: var(--clay);
  bottom: -7px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  width: 100%;
}

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

.nav-dropdown-label {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  padding: 0;
  position: relative;
  text-transform: inherit;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: "";
  height: 24px;
  left: -18px;
  position: absolute;
  right: -18px;
  top: 100%;
}

.nav-dropdown-menu {
  background: var(--white);
  box-shadow: 0 22px 46px rgba(32, 31, 29, 0.12);
  display: grid;
  gap: 0;
  left: 50%;
  min-width: 210px;
  opacity: 0;
  padding: 10px 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 10px);
  transform: translate(-50%, -8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
  color: var(--ink);
  letter-spacing: 0.08em;
  padding: 12px 18px;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: #f2ece3;
  color: var(--clay);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 38px;
  padding: 0;
  position: relative;
  width: 38px;
}

.nav-toggle span {
  background: var(--ink);
  height: 2px;
  left: 6px;
  position: absolute;
  transition: transform 0.2s ease, top 0.2s ease;
  width: 26px;
}

.nav-toggle span:first-child {
  top: 13px;
}

.nav-toggle span:last-child {
  top: 23px;
}

.nav-open .nav-toggle span:first-child {
  top: 18px;
  transform: rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  top: 18px;
  transform: rotate(-45deg);
}

.hero {
  background: var(--charcoal);
  color: var(--white);
  display: grid;
  min-height: 78vh;
  overflow: hidden;
  position: relative;
}

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

.hero-media::after {
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.86), rgba(20, 20, 20, 0.42), rgba(20, 20, 20, 0.08));
  content: "";
  inset: 0;
  position: absolute;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.hero-content {
  align-self: end;
  max-width: 860px;
  padding: 132px clamp(22px, 7vw, 92px) 52px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e9c4aa;
}

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

h1,
h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: 24px;
  max-width: 950px;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 4.1rem);
  margin-bottom: 0;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.35;
}

.hero-content p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  max-width: 500px;
}

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

.button {
  align-items: center;
  border: 1px solid currentColor;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.12em;
  min-height: 48px;
  padding: 0 22px;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button.primary {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--white);
}

.button.primary:hover {
  background: #8f5033;
  border-color: #8f5033;
}

.button.secondary {
  color: var(--white);
}

.button.secondary:hover {
  background: var(--white);
  color: var(--ink);
}

.section-pad {
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(34px, 5vw, 62px) clamp(20px, 4vw, 42px);
}

.intro,
.contact {
  display: grid;
  gap: clamp(24px, 4vw, 54px);
  grid-template-columns: 0.9fr 1.1fr;
}

.intro {
  grid-template-columns: 1fr;
  text-align: center;
}

.intro .section-heading {
  margin: 0 auto;
}

.intro-text {
  columns: 1;
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0 auto;
  max-width: 900px;
}

.section-heading {
  max-width: 660px;
}

.section-heading.wide {
  max-width: none;
}

.project-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 26px;
}

.project-card {
  background: var(--white);
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.project-card.featured {
  grid-column: span 2;
}

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

.project-card::after {
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.04), rgba(20, 20, 20, 0.78));
  content: "";
  inset: 0;
  position: absolute;
}

.project-card div {
  bottom: 0;
  color: var(--white);
  left: 0;
  padding: 30px;
  position: absolute;
  right: 0;
  z-index: 1;
}

.project-card p {
  color: #ead4bf;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.project-card h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  margin-bottom: 18px;
  max-width: 600px;
}

.project-card button,
.project-card a {
  background: transparent;
  border: 0;
  border-bottom: 2px solid #ead4bf;
  color: var(--white);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0 0 7px;
  text-transform: uppercase;
}

.project-page {
  background: #fbf8f2;
}

.project-hero-simple {
  margin: 0 auto;
  max-width: var(--max);
  padding: 150px clamp(20px, 4vw, 42px) 38px;
}

.project-hero-simple h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  margin-bottom: 20px;
}

.project-hero-simple p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  max-width: 660px;
}

.project-hero-simple a {
  border-bottom: 2px solid var(--clay);
  color: var(--clay);
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-top: 20px;
  padding-bottom: 7px;
  text-transform: uppercase;
}

.project-gallery-section {
  margin: 0 auto;
  max-width: 1320px;
  padding: 16px clamp(20px, 4vw, 42px) 56px;
}

.project-gallery-section h2 {
  border-top: 1px solid rgba(32, 31, 29, 0.15);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 24px;
  padding-top: 24px;
  text-transform: uppercase;
}

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

.project-page-photo {
  background: var(--stone);
  border: 0;
  cursor: zoom-in;
  min-height: 250px;
  overflow: hidden;
  padding: 0;
}

.project-page-photo.large {
  grid-column: span 2;
  grid-row: span 2;
}

.project-page-photo img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  width: 100%;
}

.project-page-photo:hover img {
  transform: scale(1.035);
}

.transformations {
  max-width: 1320px;
}

.compare-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 26px;
}

.compare-card {
  background: #eee8de;
}

.compare {
  aspect-ratio: 4 / 5;
  background: var(--stone);
  overflow: hidden;
  position: relative;
}

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

.compare-after {
  bottom: 0;
  left: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
}

.compare-after img {
  max-width: none;
  width: 100%;
}

.compare input {
  appearance: none;
  background: transparent;
  cursor: ew-resize;
  inset: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
}

.compare::before {
  background: rgba(255, 255, 255, 0.92);
  content: "";
  height: 100%;
  left: var(--position, 55%);
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  z-index: 3;
}

.compare::after {
  align-items: center;
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(20, 20, 20, 0.18);
  color: var(--ink);
  content: "↔";
  display: flex;
  font-size: 1rem;
  height: 42px;
  justify-content: center;
  left: var(--position, 55%);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  z-index: 4;
}

.compare-caption {
  padding: 18px 20px;
}

.compare-caption span {
  color: var(--clay);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.compare-caption p {
  color: var(--muted);
  margin-bottom: 0;
}

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

.gallery-strip img {
  aspect-ratio: 1 / 1.08;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.services {
  display: grid;
  gap: clamp(26px, 5vw, 58px);
  grid-template-columns: 0.8fr 1.2fr;
}

.service-list {
  border-top: 1px solid rgba(32, 31, 29, 0.18);
}

.service-list article {
  border-bottom: 1px solid rgba(32, 31, 29, 0.18);
  display: grid;
  gap: 20px;
  grid-template-columns: 56px 0.8fr 1fr;
  padding: 22px 0;
}

.service-list span {
  color: var(--clay);
  font-weight: 800;
}

.service-list h3 {
  margin-bottom: 0;
}

.service-list p {
  color: var(--muted);
  margin-bottom: 0;
}

.process {
  background: var(--charcoal);
  color: var(--white);
  display: grid;
  gap: clamp(26px, 5vw, 60px);
  grid-template-columns: 0.9fr 1.1fr;
  padding: clamp(38px, 5vw, 64px) max(20px, calc((100vw - var(--max)) / 2));
}

.process-copy {
  padding-inline: clamp(20px, 4vw, 42px);
}

.process h2 {
  max-width: 560px;
}

.process-steps {
  counter-reset: steps;
  list-style: none;
  margin: 0;
  padding: 0 clamp(20px, 4vw, 42px) 0 0;
}

.process-steps li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 20px;
  grid-template-columns: 0.55fr 1fr;
  padding: 18px 0;
}

.process-steps span {
  color: var(--white);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.25rem;
}

.contact {
  align-items: start;
}

.contact-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 16px;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.contact-links a {
  color: var(--clay);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-form {
  background: #eee8de;
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
}

.contact-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  background: var(--white);
  border: 1px solid transparent;
  color: var(--ink);
  min-height: 48px;
  outline: 0;
  padding: 12px 14px;
  resize: vertical;
  text-transform: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.site-footer {
  align-items: center;
  border-top: 1px solid rgba(32, 31, 29, 0.14);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  justify-content: space-between;
  padding: 34px clamp(20px, 4vw, 56px);
}

.site-footer img {
  height: 54px;
}

.site-footer p {
  margin: 0;
}

.whatsapp-float {
  background: #245f47;
  bottom: 22px;
  box-shadow: 0 16px 32px rgba(20, 20, 20, 0.18);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 14px 18px;
  position: fixed;
  right: 22px;
  text-transform: uppercase;
  z-index: 15;
}

.lightbox {
  align-items: center;
  background: rgba(20, 20, 20, 0.94);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 72px clamp(16px, 4vw, 52px);
  position: fixed;
  z-index: 40;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 78vh;
  object-fit: contain;
  width: min(100%, 980px);
}

.lightbox p {
  color: var(--white);
  margin: 18px 0 0;
  text-align: center;
}

.lightbox button {
  background: var(--white);
  border: 0;
  color: var(--ink);
  cursor: pointer;
  height: 44px;
  position: absolute;
  width: 44px;
}

.lightbox-close {
  right: 22px;
  top: 22px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
    z-index: 22;
  }

  .site-nav {
    align-items: flex-start;
    background: var(--paper);
    box-shadow: 0 28px 50px rgba(32, 31, 29, 0.12);
    display: grid;
    gap: 22px;
    left: 16px;
    opacity: 0;
    padding: 30px;
    pointer-events: none;
    position: fixed;
    right: 16px;
    top: 86px;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-dropdown,
  .nav-dropdown-menu {
    width: 100%;
  }

  .nav-dropdown-label {
    display: inline-flex;
    pointer-events: none;
    width: 100%;
  }

  .nav-dropdown-menu {
    background: transparent;
    box-shadow: none;
    gap: 12px;
    left: auto;
    margin-top: 14px;
    max-height: none;
    opacity: 1;
    overflow: hidden;
    padding: 0 0 0 14px;
    pointer-events: auto;
    position: static;
    transform: none;
    transition: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown.is-open .nav-dropdown-menu {
    max-height: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-dropdown-menu a {
    padding: 0;
    white-space: normal;
  }

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

  .intro,
  .services,
  .process,
  .contact {
    grid-template-columns: 1fr;
  }

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

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

  .project-card.featured {
    grid-column: auto;
  }

  .project-card {
    min-height: 440px;
  }

  .service-list article,
  .process-steps li {
    grid-template-columns: 1fr;
  }

  .process-steps {
    padding-left: clamp(20px, 4vw, 42px);
  }
}

@media (max-width: 640px) {
  .brand img {
    height: 42px;
  }

  .hero {
    min-height: 82vh;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.34), rgba(20, 20, 20, 0.82));
  }

  .hero-content {
    padding: 124px 20px 52px;
  }

  .project-hero-simple {
    padding-top: 132px;
  }

  .project-page-grid {
    gap: 10px;
  }

  .project-page-photo {
    min-height: 190px;
  }

  .compare-grid {
    gap: 28px;
  }

  .compare {
    touch-action: pan-y;
  }

  .compare input {
    display: none;
  }

  .compare::after {
    cursor: grab;
    height: 42px;
    width: 42px;
  }

  .button {
    width: 100%;
  }

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

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

  .site-footer {
    display: grid;
  }

  .whatsapp-float {
    bottom: 14px;
    right: 14px;
  }

  .lightbox-prev,
  .lightbox-next {
    bottom: 20px;
    top: auto;
    transform: none;
  }
}
