@font-face {
  font-family: DM Sans;
  src: url("./assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #17261e;
  --deep: #15261b;
  --dark: #0e1913;
  --paper: #f7f5ed;
  --canvas: #edece3;
  --green: #b6e6ad;
  --green-deep: #346046;
  --muted: #435048;
  --line: #bcbeae;
  --gutter: clamp(1.25rem, 3.35vw, 3.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 "DM Sans", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #297c45; outline-offset: 5px; }
.header a:focus-visible, .hero a:focus-visible, .contact a:focus-visible, .footer a:focus-visible { outline-color: var(--green); }
::selection { background: var(--green); color: var(--dark); }

.wrap { width: min(calc(100% - 2 * var(--gutter)), 94rem); margin-inline: auto; }
.skip { position: fixed; z-index: 5; inset: .65rem auto auto .65rem; padding: .65rem 1rem; background: var(--paper); color: var(--ink); transform: translateY(-170%); }
.skip:focus { transform: none; }

.header {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
  min-height: 5.5rem;
  color: var(--paper);
}
.brand { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; }
.brand img { width: 8.1rem; height: auto; }
.header nav { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 3vw, 3.1rem); }
.header nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .78rem; font-weight: 700; letter-spacing: .095em; }
.header nav a:hover { text-decoration: underline; text-underline-offset: .48rem; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .62rem;
  min-height: 3.05rem;
  padding: .66rem 1.28rem;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: .89rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  transition: background-color .18s ease, color .18s ease;
}
.header-button { background: var(--deep); color: var(--paper); justify-self: end; }
.header-button:hover { background: var(--green); color: var(--dark); }
.primary { background: var(--paper); color: var(--deep); }
.primary:hover { background: var(--green); }

.hero {
  min-height: 41rem;
  min-height: max(41rem, 100svh);
  display: grid;
  color: var(--paper);
  background:
    linear-gradient(180deg, #0d1713cf 0%, #0d171327 25%, #111b141c 43%, #111c17b5 72%, #0d1714f0 100%),
    linear-gradient(90deg, #101b1657 0%, #101b1600 62%),
    url("./assets/capa-renova.webp") 50% 49% / cover no-repeat;
  background-color: var(--deep);
}
.hero-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 5.2rem; padding-block: 8.2rem 4rem; }
.eyebrow { color: var(--green-deep); font-size: .76rem; font-weight: 700; letter-spacing: .118em; line-height: 1.5; text-transform: uppercase; }
.hero .eyebrow { color: #f1f2e9; }
.hero-copy { animation: arrive .58s cubic-bezier(.22,.68,.23,1) both; }
h1, h2 { font-weight: 500; line-height: 1.06; letter-spacing: -.047em; }
h1 { font-size: clamp(3.05rem, 5.55vw, 5.6rem); text-shadow: 0 3px 24px #10130e9e; }
h1 em, h2 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.05em; }
h1 em, .contact h2 em { color: var(--green); }
h2 em { color: var(--green-deep); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.8rem; margin-top: 1.95rem; }
.hero-contact, .link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: .28rem; }

.section { padding-block: clamp(4rem, 8.8vw, 8.7rem); scroll-margin-top: 1rem; }
.about { display: grid; grid-template-columns: minmax(8rem, .42fr) minmax(0, 1fr); gap: 1.2rem 3rem; }
.about .eyebrow { margin-top: .43rem; }
h2 { font-size: clamp(2.55rem, 5.25vw, 5rem); }
.lead { max-width: 38ch; margin-top: 1.4rem; color: var(--muted); font-size: clamp(1.07rem, 1.7vw, 1.3rem); }
.about .link { margin-top: .7rem; }

.gallery { background: var(--canvas); }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.05rem; margin-bottom: 2.6rem; }
.section-heading .eyebrow, .process .eyebrow { margin-bottom: .8rem; }
.projects { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .84fr); gap: clamp(1.3rem, 5vw, 5.4rem); align-items: start; }
.project + .project { margin-top: clamp(1rem, 6vw, 6rem); }
.project h3 { margin: 0 0 .72rem; font-size: 1.21rem; font-weight: 600; }
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .67rem; }
.photo { position: relative; display: block; width: 100%; aspect-ratio: .68; overflow: hidden; padding: 0; border: 0; background: #b4a78c; cursor: zoom-in; }
.living .photo { aspect-ratio: .72; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.photo:hover img { transform: scale(1.045); }
.photo span { position: absolute; right: .64rem; bottom: .64rem; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--deep); font-size: 1rem; }

.lightbox { position: fixed; max-width: calc(100vw - 2rem); max-height: calc(100svh - 2rem); padding: .55rem; border: 0; background: var(--dark); overflow: auto; }
.lightbox::backdrop { background: #101b16dc; }
.lightbox img { max-width: min(86vw, 65rem); max-height: calc(100svh - 3.1rem); object-fit: contain; }
.lightbox button { position: absolute; top: .85rem; right: .85rem; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.65rem; line-height: 1; cursor: pointer; }

.process h2 { max-width: 18ch; }
.process ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 4vw, 3.8rem); margin: 3rem 0 0; padding: 0; list-style: none; }
.process li { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.process li span { display: block; margin-bottom: .85rem; color: var(--green-deep); font-weight: 700; font-variant-numeric: tabular-nums; }
.process h3 { font-size: 1.28rem; margin-bottom: .4rem; }
.process li p { color: var(--muted); max-width: 30ch; }
.contact { background: var(--deep); color: var(--paper); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(11rem, .34fr); gap: 2rem; align-items: end; }
.contact h2 { max-width: 15ch; }
.contact .pill { margin-top: 1.7rem; }
.contact-info { border-top: 1px solid #d3e3c981; padding-top: .9rem; }
address { font-style: normal; }
.contact-info .link { margin-top: .4rem; }

.footer { background: var(--dark); color: var(--paper); }
.footer-inner { min-height: 6rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1.4rem; padding-block: 1rem; }
.footer-inner div { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.footer-inner div a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.footer-inner div a:hover, .link:hover { text-decoration-thickness: 2px; }

@keyframes arrive { from { transform: translateY(9px); } to { transform: translateY(0); } }

@media (max-width: 820px) {
  .header { grid-template-columns: minmax(0, 1fr) auto; gap: 0 .8rem; padding-top: .58rem; min-height: auto; }
  .header .brand img { width: 6.4rem; }
  .header-button { min-height: 44px; padding-inline: .75rem; font-size: .8rem; }
  .header nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; gap: clamp(.66rem, 3.2vw, 1.35rem); }
  .header nav a { font-size: .81rem; letter-spacing: 0; }
  .hero { min-height: max(36rem, 86svh); background-position: 58% 47%; }
  .hero-inner { padding-block: 7.9rem 2.6rem; }
  .hero-actions { gap: .45rem 1.2rem; }
  .about, .contact-inner { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .project + .project { margin-top: 0; }
}

@media (max-width: 550px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .process ol { grid-template-columns: 1fr; gap: 1.3rem; margin-top: 1.8rem; }
  .section-heading { margin-bottom: 1.7rem; }
  .gallery .link { margin-top: -.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy { animation: none; }
  .pill, .photo img { transition: none; }
}
