@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-display: swap;
}

:root {
  --cream: #f9f6ee;
  --sand: #f1ede3;
  --ink: #16251b;
  --green: #142419;
  --green-btn: #16291d;
  --gold: #f4d99f;
  --gold-line: #d4ad6b;
  --bronze: #9a7440;
  --eyebrow: #7c6d50;
  --text: #5c5d53;
  --line: #e2dccd;
  --gutter: clamp(20px, 6.25vw, 92px);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 350;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h2 { font-size: clamp(32px, 3.47vw, 51px); line-height: 1.17; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 2px; }

.container { width: min(100% - 2 * var(--gutter), 1296px); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--green); color: #fff; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  color: var(--eyebrow);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.ico { width: 18px; height: 18px; flex: none; color: var(--gold); transition: transform .25s ease; }
.ico--lg { width: 30px; height: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 64px;
  padding: 0 32px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn:hover .ico:last-child { transform: translateX(4px); }
.btn--sm { min-height: 52px; padding: 0 26px; border-radius: 8px; gap: 14px; font-size: 16px; }
.btn--dark { background: var(--green-btn); color: #fff; }
.btn--dark:hover { background: #24402e; }
.btn--dark .ico--lg { color: #fff; }
.btn--outline { border-color: #b5b1a2; color: var(--ink); background: rgba(255, 255, 255, .35); }
.btn--outline:hover { border-color: var(--ink); background: #fff; }
.btn--gold { background: linear-gradient(100deg, #f3d897, #f9e4b4 55%, #f1d492); color: var(--ink); }
.btn--gold:hover { box-shadow: 0 8px 26px rgba(244, 217, 159, .28); }
.btn--gold .ico { color: var(--ink); }

/* Cabeçalho */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: height .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-stuck { height: 74px; background: rgba(249, 246, 238, .96); box-shadow: 0 1px 0 var(--line); }
.is-stuck .site-header__inner { padding-top: 11px; }
.is-stuck .brand { width: 176px; }
.site-header__inner {
  display: flex;
  align-items: flex-start;
  height: 100%;
  padding-top: 18px;
  transition: padding-top .3s ease;
  width: min(100% - 2 * var(--gutter), 1296px);
  margin-inline: auto;
}
.brand { display: block; width: 276px; flex: none; transition: width .3s ease; }
.main-nav { display: flex; gap: 45px; margin: 7px 0 0 clamp(40px, 12vw, 178px); font-size: 16px; color: #55574d; }
.main-nav a { position: relative; padding: 6px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold-line); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
.site-header .btn { margin-left: auto; }
.menu-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(640px, 48.5vw, 860px);
  overflow: hidden;
  isolation: isolate;
  background: var(--cream);
}
.hero__img {
  position: absolute;
  z-index: -1;
  top: 40px;
  right: 0;
  width: 73%;
  height: calc(100% - 40px);
  object-fit: cover;
  object-position: 100% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .35) 16%, #000 36%), linear-gradient(180deg, rgba(0, 0, 0, .1) 0, #000 24%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .35) 16%, #000 36%), linear-gradient(180deg, rgba(0, 0, 0, .1) 0, #000 24%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero__content {
  width: min(100% - 2 * var(--gutter), 1296px);
  margin-inline: auto;
  padding-top: calc(var(--header-h) + 36px);
  padding-bottom: 22px;
}
.hero .eyebrow { margin-bottom: 14px; font-size: 14px; }
.hero h1 {
  max-width: 540px;
  font-size: clamp(44px, 5.17vw, 76px);
  line-height: .985;
  letter-spacing: -.018em;
}
.hero__lead { max-width: 510px; margin-top: 18px; font-size: clamp(19px, 1.72vw, 25px); line-height: 1.45; color: #4d4f46; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 36px; }

/* Faixa de confiança */
.trust {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 11.5vw, 170px);
  background: var(--sand);
  color: var(--text);
  font-size: 17px;
  line-height: 1.42;
}
.trust li { display: flex; align-items: center; gap: 22px; }
.trust svg { width: 38px; height: 38px; flex: none; color: var(--gold-line); }

/* Seções */
.section-head { text-align: center; }
.section-head .eyebrow { margin-bottom: 8px; color: #8b7a58; }
.section-head h2 + p { margin-top: 10px; color: var(--text); font-size: 19px; }
.experiences { padding: 56px 0 72px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 23px; margin-top: 32px; }
.card img { width: 100%; aspect-ratio: 420 / 308; object-fit: cover; border-radius: 3px; }
.card__body { padding: 22px 23px 0; }
.card h3 { font-size: 33px; line-height: 1.2; }
.card p { max-width: 345px; margin-top: 8px; font-size: 17.5px; line-height: 1.48; }
.link { display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; color: #4f5148; font-size: 16.5px; }
.link .ico { color: var(--gold-line); }
.link:hover .ico { transform: translateX(4px); }
.link:hover { color: var(--ink); }

/* Sobre */
.about { padding: 8px 0 74px; }
.about__grid { display: grid; grid-template-columns: 530px minmax(0, 590px); justify-content: space-between; align-items: center; column-gap: 40px; }
.about__photo { position: relative; margin-left: 38px; }
.about__photo::before {
  content: ""; position: absolute; z-index: -1; left: -40px; top: 40px; bottom: 58px; width: 80px; background: #f0d898;
}
.about__photo img { width: 100%; border-radius: 3px; }
.about__grid { isolation: isolate; }
.about__text .eyebrow { margin-bottom: 8px; color: #8b7a58; }
.about__text h2 { font-size: clamp(34px, 3.67vw, 54px); }
.about__text p:not(.eyebrow) { margin-top: 24px; font-size: 18.5px; line-height: 1.58; }
.about__text h2 + p { margin-top: 20px !important; }
.about__text .btn { margin-top: 26px; }

/* Portfólio */
.portfolio { padding-bottom: 40px; --gap: 11px; }
.portfolio__head { position: relative; padding-inline: 150px; }
.carousel-nav { position: absolute; right: 44px; bottom: 2px; display: flex; gap: 14px; }
.round-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #b9b4a4;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, opacity .2s ease;
}
.round-btn .ico { color: var(--ink); }
.round-btn[data-dir="-1"] .ico, .round-btn[data-step="-1"] .ico { transform: rotate(180deg); }
.round-btn:hover:not(:disabled) { background: #fff; border-color: var(--ink); }
.round-btn:disabled { border-color: var(--gold); cursor: default; }
.round-btn:disabled .ico { color: #b3a382; }
.carousel {
  display: flex;
  gap: var(--gap);
  margin-top: 26px;
  margin-inline: 3%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 calc((100% - 3 * var(--gap)) * .2363);
  height: clamp(280px, 23.2vw, 400px);
  overflow: hidden;
  border-radius: 4px;
  scroll-snap-align: start;
}
.slide:nth-child(4n + 2), .slide:nth-child(4n + 3) { flex-basis: calc((100% - 3 * var(--gap)) * .2637); }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.slide:hover img { transform: scale(1.03); }

/* Faixa verde */
.memories {
  padding: 68px 0 58px;
  background: var(--green) url("../assets/img/fundo-arvore-verde-2172.webp") 100% 50% / cover no-repeat;
  color: #e7e4d9;
}
.memories .eyebrow { color: var(--gold); margin-bottom: 8px; }
.memories h2 { max-width: 640px; color: #fbf8f0; font-size: clamp(34px, 3.67vw, 54px); }
.memories__lead { max-width: 590px; margin: 10px 0 24px; font-size: 20.5px; line-height: 1.52; }

/* Como funciona */
.how { padding: 56px 0 68px; }
.how .section-head .eyebrow { color: #8b7a58; }
.steps { display: grid; grid-template-columns: 1fr 1.115fr 1.115fr; margin-top: 34px; margin-right: -28px; }
.steps li { display: flex; gap: 28px; padding-right: 20px; }
.steps li + li { padding-left: 48px; border-left: 1px solid var(--line); }
.steps__icon {
  display: grid; place-items: center; flex: none; width: 64px; height: 64px;
  border-radius: 50%; background: #f2d9a0; color: var(--ink);
}
.steps__icon svg { width: 32px; height: 32px; }
.steps__num { display: block; color: var(--bronze); font: 300 40px/1.1 var(--serif); }
.steps h3 { margin-top: 6px; font-size: 24px; font-weight: 400; line-height: 1.3; }
.steps p { margin-top: 12px; font-size: 16.5px; line-height: 1.46; }

/* Contato */
.contact {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: clamp(460px, 34.4vw, 620px);
  padding: 72px 0 48px;
  overflow: hidden;
  isolation: isolate;
  background: #e0b184;
}
.contact__img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.contact::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, rgba(240, 200, 150, .72) 0, rgba(240, 200, 150, .5) 40%, rgba(240, 200, 150, 0) 62%);
}
.contact .eyebrow { margin-bottom: 8px; color: #5f5240; }
.contact h2 { font-size: clamp(34px, 3.47vw, 51px); }
.contact__lead { max-width: 590px; margin: 12px 0 24px; color: #3f3a2e; font-size: 20.5px; line-height: 1.52; }

/* Rodapé */
.site-footer { padding: 28px 0 40px; background: #152519; color: #dcd9cd; font-size: 15px; }
.site-footer__top, .site-footer__bottom { width: min(100% - 2 * var(--gutter), 1296px); margin-inline: auto; }
.site-footer__top { display: flex; align-items: center; gap: 40px; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 43px; margin-left: auto; }
.site-footer nav a:hover { color: var(--gold); }
.social { display: flex; align-items: center; gap: 26px; margin-left: 56px; padding: 22px 0 22px 88px; border-left: 1px solid rgba(255, 255, 255, .16); color: var(--gold); }
.social svg { width: 30px; height: 30px; }
.social a { transition: opacity .2s ease; }
.social a:hover { opacity: .75; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; padding-top: 16px; font-size: 14px; }

/* Lightbox */
.lightbox {
  width: 100vw; max-width: none; height: 100dvh; max-height: none;
  padding: 0; border: 0; background: rgba(12, 20, 14, .94);
}
.lightbox[open] { display: grid; grid-template-columns: 80px 1fr 80px; place-items: center; }
.lightbox::backdrop { background: rgba(12, 20, 14, .94); }
.lightbox img { max-width: 100%; max-height: 92dvh; object-fit: contain; }
.lightbox .round-btn { border-color: rgba(255, 255, 255, .45); }
.lightbox .round-btn .ico { color: #fff; }
.lightbox .round-btn:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.lightbox__close {
  position: absolute; top: 14px; right: 18px; width: 48px; height: 48px; padding: 0;
  border: 0; background: none; color: #fff; font: 300 38px/1 var(--sans); cursor: pointer;
}

/* Blog */
.soon { min-height: calc(100vh - 84px); padding: calc(var(--header-h) + 90px) 0 110px; text-align: center; }
.soon .eyebrow { margin-bottom: 10px; }
.soon h1 { font-size: clamp(38px, 4vw, 58px); line-height: 1.1; }
.soon p:not(.eyebrow) { max-width: 560px; margin: 16px auto 28px; }

/* Revelação ao rolar */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1240px) {
  .main-nav { gap: 28px; margin-left: 40px; }
  .about__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
  .brand { width: 220px; }
  .social { margin-left: 24px; padding-left: 40px; }
  .site-footer nav { gap: 8px 26px; }
}

@media (max-width: 1040px) {
  .main-nav { gap: 22px; margin-left: 28px; font-size: 15px; }
  .brand { width: 190px; }
  .steps li { flex-direction: column; gap: 16px; }
  .steps li + li { padding-left: 28px; }
  .steps { grid-template-columns: repeat(3, 1fr); margin-right: 0; }
  .site-footer__top { flex-wrap: wrap; }
  .site-footer nav { margin-left: 0; order: 3; width: 100%; }
  .social { margin-left: auto; padding: 0; border: 0; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  body { font-size: 17px; }
  .brand, .is-stuck .brand { width: 170px; }
  .site-header, .site-header.is-stuck { height: var(--header-h); }
  .site-header__inner, .is-stuck .site-header__inner { align-items: center; padding-top: 0; }
  .site-header .btn { display: none; }
  .menu-toggle {
    position: relative; display: block; width: 44px; height: 44px; margin-left: auto; padding: 0;
    border: 0; background: none; cursor: pointer;
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    position: absolute; left: 10px; width: 24px; height: 1.6px; background: var(--ink); content: "";
    transition: transform .25s ease, top .25s ease, background-color .25s ease;
  }
  .menu-toggle span { top: 21px; }
  .menu-toggle span::before { left: 0; top: -7px; }
  .menu-toggle span::after { left: 0; top: 7px; }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0; margin: 0;
    padding: 8px var(--gutter) 18px; background: var(--cream); box-shadow: 0 12px 24px rgba(20, 36, 25, .1); font-size: 17px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border: 0; }
  .site-header.is-open { background: var(--cream); }

  .hero { display: block; min-height: 0; }
  .hero__content { position: relative; padding-top: calc(var(--header-h) + 26px); padding-bottom: 0; }
  .hero h1 { font-size: clamp(42px, 11.5vw, 64px); max-width: none; }
  .hero__lead { font-size: 19px; }
  .hero__actions { gap: 12px; margin-top: 26px; }
  .hero__actions .btn { flex: 1 1 auto; min-height: 58px; padding: 0 22px; }
  .hero__img {
    position: static; z-index: 0; order: 2; width: 100%; height: auto; aspect-ratio: 4 / 3.3; margin-top: 6px;
    object-position: 86% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%);
    mask-image: linear-gradient(180deg, transparent 0, #000 22%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }
  .hero { display: flex; flex-direction: column; }
  .trust { flex-direction: column; gap: 16px; padding: 24px var(--gutter); }

  .cards { grid-template-columns: 1fr; gap: 34px; }
  .card__body { padding-inline: 2px; }
  .card p { max-width: none; }
  .experiences { padding-bottom: 60px; }

  .about { padding-bottom: 60px; }
  .about__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .about__photo { margin-left: 24px; }
  .about__photo::before { left: -24px; width: 64px; }

  .portfolio__head { padding-inline: var(--gutter); }
  .carousel-nav { position: static; justify-content: center; margin-top: 14px; }
  .carousel { margin: 18px 0 0; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .slide, .slide:nth-child(4n + 2), .slide:nth-child(4n + 3) { flex-basis: min(72vw, 340px); height: min(90vw, 420px); }

  .memories { padding: 54px 0; background-position: 76% 50%; }
  .memories__lead { font-size: 18px; }
  .steps { grid-template-columns: 1fr; gap: 30px; margin-right: 0; }
  .steps li { flex-direction: row; gap: 20px; padding: 0; }
  .steps li + li { padding: 30px 0 0; border-left: 0; border-top: 1px solid var(--line); }

  .contact { padding: 52px 0 310px; background: linear-gradient(180deg, #f2cfa3, #eebb83 70%); }
  .contact__img {
    inset: auto 0 0; height: 350px; object-position: 96% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20%);
    mask-image: linear-gradient(180deg, transparent 0, #000 20%);
  }
  .contact::before { display: none; }
  .contact__lead { font-size: 18px; }
  .lightbox[open] { grid-template-columns: 56px 1fr 56px; }
  .lightbox .round-btn { width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .btn { padding: 0 22px; gap: 12px; }
  .memories .btn, .contact .btn, .about__text .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
