@font-face {
  font-family: "Forum";
  src: url("../assets/fonts/Forum/Forum-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --black: #121211;
  --white: #ffffff;
  --off: #f4f5f2;
  --olive: #8d9059;
  --sage: #c2ccc1;
  --muted: #6b6b66;
  --line: rgba(18, 18, 17, 0.14);
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: -0.04em;
  font-size: 17px;
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Títulos: Forum, caixa alta, tracking -5 */
h1, h2, h3, .title {
  font-family: "Forum", serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--olive);
  font-weight: 500;
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.header.scrolled { background: rgba(255,255,255,.88); backdrop-filter: blur(14px); }
.header.hide { transform: translateY(-100%); }
.header__logo img { height: 40px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.header__nav a { position: relative; }
.header__nav a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.header__nav a:hover::after, .header__nav a.active::after { transform: scaleX(1); transform-origin: left; }
.lang { display: flex; gap: 6px; font-size: 13px; }
.lang button { opacity: .4; transition: opacity .2s; }
.lang button.on { opacity: 1; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--black); color: var(--white); font-size: 15px;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--olive); }
.btn--light { background: var(--sage); color: var(--black); }
.btn--light:hover { background: var(--white); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px var(--pad) var(--pad);
  position: relative;
}
.hero h1 { font-size: clamp(56px, 11.5vw, 210px); max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--olive); }
.hero__foot {
  margin-top: 48px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.hero__foot p { max-width: 440px; color: var(--muted); }
.scroll-cue { font-size: 13px; text-transform: uppercase; letter-spacing: .02em; display: flex; gap: 10px; align-items: center; }
.scroll-cue span { display: block; width: 1px; height: 36px; background: var(--black); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 180px) var(--pad); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 6vw, 80px); }
.section__head h2 { font-size: clamp(44px, 7vw, 120px); }
.section__head p { max-width: 380px; color: var(--muted); }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 48px) clamp(16px, 2vw, 32px); }
.project { display: block; }
.project:nth-child(even) { margin-top: clamp(0px, 8vw, 140px); }
.project__img { overflow: hidden; border-radius: 6px; background: var(--off); aspect-ratio: 4 / 3; }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project:hover .project__img img { transform: scale(1.05); }
.project__meta { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; gap: 16px; }
.project__meta h3 { font-size: clamp(28px, 3vw, 44px); }
.project__meta span { color: var(--muted); font-size: 14px; text-align: right; }

/* ---------- Services ---------- */
.services { background: var(--black); color: var(--white); }
.services .section__head p { color: rgba(255,255,255,.55); }
.services .eyebrow { color: var(--sage); }
.service {
  display: grid; grid-template-columns: 60px 1.3fr 1.4fr auto; gap: 32px; align-items: baseline;
  padding: 36px 0; border-top: 1px solid rgba(255,255,255,.16);
  transition: padding .5s var(--ease);
}
.service:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.service:hover { padding-left: 16px; }
.service__n { color: var(--olive); font-size: 14px; }
.service h3 { font-size: clamp(30px, 3.4vw, 54px); }
.service p { color: rgba(255,255,255,.6); max-width: 460px; }
.service__price { text-align: right; white-space: nowrap; }
.service__price small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; color: rgba(255,255,255,.45); }
.service__price strong { font-weight: 500; font-size: 22px; color: var(--sage); }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--sage); }
.manifesto h2 { font-size: clamp(40px, 7.2vw, 130px); max-width: 18ch; }
.manifesto h2 em { font-style: normal; color: var(--olive); }
.manifesto__sign { margin-top: 48px; display: flex; align-items: center; gap: 16px; }
.manifesto__sign img { width: 48px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); }
.faq h2 { font-size: clamp(44px, 7vw, 120px); position: sticky; top: 120px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; gap: 24px;
  font-size: clamp(18px, 1.6vw, 22px); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { font-style: normal; transition: transform .4s var(--ease); flex-shrink: 0; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; color: var(--muted); max-width: 640px; }

/* ---------- CTA + Footer ---------- */
.footer { background: var(--black); color: var(--white); padding: clamp(80px, 10vw, 140px) var(--pad) 28px; overflow: hidden; }
.footer__cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer__cta h2 { font-size: clamp(44px, 7vw, 120px); max-width: 12ch; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 80px 0 60px; font-size: 15px; }
.footer__cols small { display: block; color: rgba(255,255,255,.4); text-transform: uppercase; font-size: 12px; letter-spacing: .02em; margin-bottom: 10px; }
.footer__cols a { display: block; opacity: .85; }
.footer__cols a:hover { color: var(--sage); }
.footer__logo { width: 100%; }
.footer__bottom { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.4); margin-top: 24px; }

/* ---------- WhatsApp float ---------- */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 14px; border-radius: 999px;
  background: var(--olive); color: var(--white); font-size: 15px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transition: transform .3s var(--ease), background .3s;
}
.wa:hover { transform: translateY(-3px); background: var(--black); }
.wa svg { width: 24px; height: 24px; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 180px var(--pad) clamp(48px, 6vw, 96px); }
.page-hero h1 { font-size: clamp(56px, 10vw, 180px); max-width: 14ch; }

.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); padding: 0 var(--pad) clamp(80px, 10vw, 160px); align-items: start; }
.about__img { border-radius: 6px; overflow: hidden; position: sticky; top: 100px; }
.about__text p { font-size: clamp(18px, 1.6vw, 22px); margin-bottom: 1.2em; }
.about__text p.lead { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.25; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; border-top: 1px solid var(--line); padding-top: 32px; }
.stats strong { font-family: "Forum", serif; font-weight: 400; font-size: clamp(48px, 5vw, 80px); display: block; line-height: 1; letter-spacing: -0.05em; }
.stats span { color: var(--muted); font-size: 14px; }

.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); padding: 0 var(--pad) clamp(80px, 10vw, 160px); }
.contact__info p { color: var(--muted); margin-bottom: 32px; max-width: 360px; }
.contact__info a { display: block; font-size: 22px; margin-bottom: 8px; }
.contact__info a:hover { color: var(--olive); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.field input, .field textarea {
  font: inherit; letter-spacing: inherit; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0; background: transparent; outline: none; font-size: 19px; resize: vertical;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--olive); }
.form__status { grid-column: 1 / -1; font-size: 15px; }
.form__status.ok { color: var(--olive); }
.form__status.err { color: #b3261e; }

/* Project page */
.pj-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0 var(--pad) 48px; border-bottom: 1px solid var(--line); margin: 0 var(--pad); padding-left: 0; padding-right: 0; }
.pj-meta small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 6px; }
.pj-desc { padding: 48px var(--pad); font-size: clamp(20px, 2vw, 28px); max-width: 1000px; line-height: 1.35; }
.pj-gallery { display: grid; gap: 12px; padding: 0 var(--pad) var(--pad); }
.pj-gallery img { width: 100%; border-radius: 4px; background: var(--off); }
.pj-next { display: flex; justify-content: space-between; align-items: center; padding: 60px var(--pad); border-top: 1px solid var(--line); }
.pj-next h3 { font-size: clamp(36px, 6vw, 96px); transition: color .3s; }
.pj-next:hover h3 { color: var(--olive); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; }
.split-line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.loaded .split-line > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .split-line > span { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: block; font-size: 15px; }
  .header__nav {
    position: fixed; inset: 0; background: var(--black); color: var(--white);
    flex-direction: column; justify-content: center; gap: 28px; font-size: 40px;
    font-family: "Forum", serif; text-transform: uppercase; letter-spacing: -0.05em;
    opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
  }
  .menu-open .header__nav { opacity: 1; pointer-events: auto; }
  .menu-open .header { color: var(--white); background: transparent; }
  .menu-open .header__logo img { filter: invert(1); }
  .header__nav .btn { font-family: "Inter", sans-serif; font-size: 16px; text-transform: none; letter-spacing: -0.04em; background: var(--sage); color: var(--black); }
  .projects { grid-template-columns: 1fr; }
  .project:nth-child(even) { margin-top: 0; }
  .service { grid-template-columns: 1fr; gap: 10px; }
  .service__price { text-align: left; }
  .service__n { display: none; }
  .faq, .about, .contact { grid-template-columns: 1fr; }
  .faq h2, .about__img { position: static; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .footer__cols { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .pj-meta { grid-template-columns: 1fr; }
  .wa span { display: none; }
  .wa { padding: 14px; }
}
