:root {
  --paper: #f7f4ee;
  --surface: #fffdf9;
  --ink: #1f211d;
  --muted: #6f716b;
  --line: rgba(31, 33, 29, .13);
  --sage: #6f7656;
  --sage-dark: #555c40;
  --sand: #c6ae88;
  --sand-light: #eadfce;
  --white: #fff;
  --shadow-sm: 0 12px 35px rgba(38, 37, 31, .08);
  --shadow-lg: 0 28px 80px rgba(31, 33, 29, .15);
  --radius-sm: 16px;
  --radius: 28px;
  --radius-lg: 44px;
  --transition: 280ms cubic-bezier(.2, .7, .2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--sand-light);
  color: var(--ink);
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

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

ul {
  list-style: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: -70px;
  z-index: 2000;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  transition: .2s;
}

.skip-link:focus {
  top: 18px;
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.025em;
}

h2 {
  font-size: clamp(2.7rem, 5vw, 5rem);
}

h3 {
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
}

p {
  color: var(--muted);
}

.container {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: clamp(92px, 11vw, 150px) 0;
  position: relative;
}

.gray {
  background: var(--paper);
}

.label,
.heading>span,
.subtitle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 11px;
  font-weight: 600;
  color: var(--sage);
}

.label::before,
.heading>span::before,
.subtitle::before {
  content: '';
  width: 34px;
  height: 1px;
  background: currentColor;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  color: white;
  transition: transform var(--transition), color var(--transition);
}

.navbar {
  width: min(1380px, calc(100% - 32px));
  height: 86px;
  margin: 14px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: 22px;
  transition: var(--transition);
}

.header.scrolled {
  color: var(--ink);
}

.header.scrolled .navbar {
  background: rgba(255, 253, 249, .92);
  border-color: rgba(255, 255, 255, .72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

.logo img {
  width: auto;
  height: 54px;
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}

.header.scrolled .logo img,
.header.menu-active .logo img {
  filter: none;
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}

.menu a {
  position: relative;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}

.header.scrolled .menu a,
.header.menu-active .menu a {
  text-shadow: none;
}

.menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.menu a:hover::after,
.menu a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 25px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  transition: var(--transition);
}

.nav-button {
  background: var(--sage);
  color: white;
  box-shadow: 0 10px 28px rgba(85, 92, 64, .22);
}

.nav-button:hover,
.primary:hover {
  background: var(--sage-dark);
  transform: translateY(-3px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 1px 10px rgba(0, 0, 0, .38);
  transition: var(--transition);
}

.header.scrolled .menu-toggle span,
.header.menu-active .menu-toggle span {
  box-shadow: none;
}

.hero {
  min-height: 100svh;
  padding: 150px 24px 145px;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  color: white;
  background: url('img/hero.png') center/cover no-repeat;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, rgba(20, 23, 18, .76), rgba(20, 23, 18, .38) 55%, rgba(20, 23, 18, .62));
}

.hero::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 30px;
  pointer-events: none;
}

.hero-overlay {
  display: none;
}

.hero-content {
  max-width: 1040px;
  position: relative;
}

.hero .subtitle {
  color: rgba(255, 255, 255, .78);
}

.hero h1 {
  margin: 28px 0 24px;
  color: white;
  font-size: clamp(3.7rem, 8.5vw, 8.2rem);
  line-height: .9;
  text-wrap: balance;
}

.hero-content>p:not(.subtitle) {
  max-width: 660px;
  margin: auto;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary {
  background: var(--sage);
  color: white;
}

.secondary {
  color: white;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(8px);
}

.secondary:hover {
  background: white;
  color: var(--ink);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 28px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 30px;
}

.scroll-indicator span {
  display: block;
  width: 4px;
  height: 8px;
  background: white;
  border-radius: 10px;
  margin: 10px auto;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  50% {
    transform: translateY(17px);
    opacity: .4;
  }
}

.heading {
  max-width: 780px;
  margin: 0 auto clamp(50px, 7vw, 86px);
  text-align: center;
}

.heading h2 {
  margin-top: 22px;
  text-wrap: balance;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
}

.about .image {
  position: relative;
}

.about .image::before {
  content: '';
  position: absolute;
  width: 52%;
  height: 48%;
  left: -28px;
  bottom: -28px;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  z-index: -1;
}

.about .image img {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg) var(--radius-sm) var(--radius-lg) var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.content h2 {
  margin: 24px 0 32px;
}

.content p {
  max-width: 650px;
  margin-bottom: 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: card;
}

.card {
  min-height: 340px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(31, 33, 29, .08);
  border-radius: var(--radius);
  transition: var(--transition);
}

.card:hover {
  background: white;
  border-color: transparent;
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card .icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sand);
  border-radius: 50%;
  color: var(--sage);
  font-size: 12px;
  font-weight: 600;
}

.card h3 {
  margin: auto 0 18px;
}

.card p {
  font-size: 14px;
}

.gallery {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-auto-rows: 290px;
  gap: 22px;
}

.project {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
  transition: var(--transition);
}

.project:nth-child(1),
.project:nth-child(4) {
  grid-row: span 2;
}

.project::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 15, 12, .78));
  z-index: 1;
}

.project img {
  height: 100%;
  transition: transform 800ms cubic-bezier(.2, .7, .2, 1);
}

.project>div {
  position: absolute;
  z-index: 2;
  inset: auto 30px 28px;
  color: white;
  transform: translateY(8px);
  transition: var(--transition);
}

.project h3 {
  color: white;
  margin-bottom: 6px;
}

.project span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .72);
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project:hover img {
  transform: scale(1.06);
}

.project:hover>div {
  transform: translateY(0);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature {
  position: relative;
  padding: 48px clamp(25px, 4vw, 52px);
}

.feature+.feature {
  border-left: 1px solid var(--line);
}

.feature::before {
  content: '✦';
  display: block;
  margin-bottom: 28px;
  color: var(--sand);
}

.feature h3 {
  margin-bottom: 16px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 34px;
  height: 1px;
  background: var(--line);
}

.step {
  position: relative;
  padding: 0 26px 20px 0;
}

.step strong {
  width: 68px;
  height: 68px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  margin-bottom: 32px;
  background: var(--surface);
  border: 1px solid var(--sand);
  border-radius: 50%;
  font-family: 'Cormorant Garamond';
  font-size: 26px;
  color: var(--sage);
}

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

.step p {
  font-size: 14px;
}

.testimonials {
  overflow: hidden;
}

.testimonial-slider {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.testimonial {
  display: none;
  padding: clamp(42px, 7vw, 82px);
  background: var(--surface);
  border: 1px solid rgba(31, 33, 29, .08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.testimonial.active {
  display: block;
  animation: fade .55s ease;
}

.testimonial::before {
  content: '“';
  display: block;
  height: 55px;
  font-family: 'Cormorant Garamond';
  font-size: 84px;
  line-height: 1;
  color: var(--sand);
}

.testimonial p {
  max-width: 720px;
  margin: 0 auto 25px;
  font-family: 'Cormorant Garamond';
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.35;
  color: var(--ink);
}

.testimonial strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--sage);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 28px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9c6bd;
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  width: 28px;
  border-radius: 10px;
  background: var(--sage);
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.cta {
  margin: 0 18px;
  padding: clamp(100px, 13vw, 170px) 24px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(115deg, rgba(23, 27, 20, .82), rgba(23, 27, 20, .58)), url('img/hero.png') center/cover;
  text-align: center;
  color: white;
}

.cta .container {
  max-width: 850px;
}

.cta h2 {
  color: white;
  font-size: clamp(3rem, 6vw, 6rem);
}

.cta p {
  max-width: 650px;
  margin: 28px auto 40px;
  color: rgba(255, 255, 255, .78);
}

.contact {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
}

.contact .heading {
  text-align: left;
  margin: 0 0 24px;
}

.contact .heading>span {
  justify-content: flex-start;
}

.contact>div>p {
  max-width: 460px;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--paper);
  border-radius: var(--radius);
}

input,
textarea,
select {
  width: 100%;
  padding: 17px 18px;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  border-radius: 12px 12px 4px 4px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, .62);
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--sand);
  background: white;
  box-shadow: 0 0 0 4px rgba(198, 174, 136, .13);
}

textarea,
select,
form button {
  grid-column: 1 / -1;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

form button {
  min-height: 56px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

form button:hover {
  background: var(--sage);
  transform: translateY(-2px);
}

footer {
  margin-top: 30px;
  padding: 90px 5% 30px;
  background: #1d201b;
  color: white;
}

.footer-container {
  max-width: 1240px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

footer .logo {
  display: inline-block;
  font-family: 'Cormorant Garamond';
  font-size: 32px;
  color: white;
}

footer .logo span {
  color: var(--sand);
}

footer p,
footer a {
  color: rgba(255, 255, 255, .58);
}

footer h3 {
  margin-bottom: 8px;
  color: white;
  font-size: 22px;
}

footer a {
  width: fit-content;
  transition: var(--transition);
}

footer a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-column,
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-link,
.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link svg,
.social-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: currentColor;
}

.copyright {
  max-width: 1240px;
  margin: 55px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  text-align: center;
  font-size: 12px;
}

.back-to-top,
.whatsapp {
  position: fixed;
  right: 24px;
  z-index: 999;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.back-to-top {
  bottom: 88px;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.whatsapp {
  bottom: 25px;
  background: var(--sage);
}

.back-to-top:hover,
.whatsapp:hover {
  transform: translateY(-4px);
}

.back-to-top svg,
.whatsapp svg {
  width: 22px;
  height: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s ease, transform .9s ease;
}

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

@media (max-width: 1050px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 260px;
  }

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

  .timeline::before {
    display: none;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature+.feature {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 32px, 680px);
  }

  .navbar {
    height: 72px;
    margin-top: 8px;
    padding: 0 16px;
  }

  .logo img {
    height: 46px;
  }

  .nav-button {
    display: none;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 1002;
    color: white;
  }

  .header.scrolled .menu-toggle,
  .header.menu-active .menu-toggle {
    color: var(--ink);
  }

  .menu {
    position: fixed;
    inset: 0;
    z-index: 1001;
    min-height: 100dvh;
    padding: 118px 28px 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 8px;
    background: rgba(247, 244, 238, .985);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  }

  .menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .menu li {
    width: 100%;
  }

  .menu a {
    display: block;
    width: 100%;
    padding: 10px 0;
    color: var(--ink);
    font-family: 'Cormorant Garamond';
    font-size: clamp(2rem, 10vw, 3rem);
    text-align: center;
  }

  .menu a::after {
    bottom: 6px;
    left: 50%;
    width: 42px;
    transform: translateX(-50%) scaleX(0);
  }

  .menu a:hover::after,
  .menu a.active::after {
    transform: translateX(-50%) scaleX(1);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .hero {
    min-height: 760px;
    padding-bottom: 125px;
  }

  .hero::after {
    inset: 10px;
    border-radius: 22px;
  }

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

  .about .image {
    max-width: 560px;
  }

  .contact .heading {
    text-align: center;
  }

  .contact .heading>span {
    justify-content: center;
  }

  .contact>div>p {
    margin-inline: auto;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 86px 0;
  }

  .hero {
    padding-inline: 22px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 16vw, 5.2rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-inline: auto;
    margin-top: 34px;
  }

  .scroll-indicator {
    display: none;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 290px;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 380px;
  }

  .project:nth-child(1),
  .project:nth-child(4) {
    grid-row: auto;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .step {
    display: grid;
    grid-template-columns: 58px 1fr;
    column-gap: 18px;
  }

  .step strong {
    width: 58px;
    height: 58px;
    grid-row: 1 / 3;
  }

  .step p {
    grid-column: 2;
  }

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

  input,
  textarea,
  select,
  form button {
    grid-column: 1;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .cta {
    margin-inline: 8px;
    border-radius: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

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