:root {
  --cream: #fffbf8;
  --paper: #f5f1ea;
  --grey: #676566;
  --green: #4d6145;
  --green-deep: #36452f;
  --ink: #28241b;
  --sage: #c9d3b3;
  --line: rgba(40, 36, 27, .14);
  --serif: "IBM Plex Sans", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1rem/1.65 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--green); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.kicker::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .92rem; text-decoration: none; transition: transform .3s var(--ease), background .3s; }
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-green { background: var(--green); color: var(--cream); }
.btn-green:hover { background: var(--green-deep); }
.btn-ghost { border: 1px solid rgba(255,251,248,.4); color: var(--cream); }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .4s, box-shadow .4s; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo .dark { display: none; }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--cream); text-decoration: none; font-size: .88rem; opacity: .85; }
.nav ul a:hover { opacity: 1; }
.nav.solid { background: rgba(255,251,248,.94); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.solid ul a { color: var(--ink); }
.nav.solid .nav-logo .light { display: none; }
.nav.solid .nav-logo .dark { display: block; }
.nav.solid .btn-light { background: var(--green); color: var(--cream); }
.nav .btn { padding: 10px 20px; }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 140px 0 70px; color: var(--cream); background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url("/img/hero.jpg") center/cover; opacity: .38; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(40,36,27,.3), rgba(40,36,27,.1) 40%, rgba(40,36,27,.92)), linear-gradient(90deg, rgba(54,69,47,.85), rgba(54,69,47,0) 70%); }
.hero .wrap { position: relative; z-index: 2; }
.hero .kicker { color: var(--sage); }
.hero h1 { max-width: 920px; font-size: clamp(2.9rem, 7vw, 6.2rem); line-height: .98; }
.hero h1 em { color: var(--sage); font-style: italic; font-weight: 400; }
.hero-foot { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; margin-top: 36px; }
.hero-foot p { max-width: 580px; color: rgba(255,251,248,.78); font-size: 1.1rem; margin: 0; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

/* numbers */
.numbers { background: var(--green); color: var(--cream); }
.numbers .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.num { padding: 38px 22px 36px 0; border-right: 1px solid rgba(255,251,248,.14); padding-left: 22px; }
.num:first-child { padding-left: 0; }
.num:last-child { border-right: 0; }
.num strong { display: block; font: 500 clamp(2rem, 3.2vw, 2.9rem)/1 var(--serif); white-space: nowrap; }
.num span { display: block; margin-top: 10px; font-size: .84rem; line-height: 1.45; color: rgba(255,251,248,.72); }

section { padding: 120px 0; }
.head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; margin-bottom: 60px; align-items: end; }
.head h2 { font-size: clamp(2.4rem, 4.8vw, 4.2rem); line-height: 1.02; }
.head p { color: var(--grey); font-size: 1.08rem; margin: 0; }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.about-grid p { color: var(--grey); font-size: 1.05rem; }
.about-grid .lead { font: 500 clamp(1.6rem, 2.6vw, 2.2rem)/1.25 var(--serif); color: var(--ink); }

/* services */
.services { background: var(--paper); }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.svc { padding: 44px; background: var(--cream); transition: background .4s; }
.svc:hover { background: #fff; }
.svc small { color: var(--green); font-weight: 600; letter-spacing: .16em; font-size: .72rem; }
.svc h3 { margin: 18px 0 14px; font-size: 1.9rem; line-height: 1.1; }
.svc p { color: var(--grey); margin: 0; }

/* portfolio */
.port { display: grid; gap: 28px; }
.case { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; border-radius: 26px; overflow: hidden; background: var(--paper); }
.case:nth-child(even) .case-img { order: 2; }
.case-img { position: relative; background: #d8d3c8; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-img figcaption { position: absolute; left: 14px; bottom: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(40,36,27,.6); color: var(--cream); font-size: .66rem; }
.case-body { padding: clamp(32px, 5vw, 58px); display: flex; flex-direction: column; justify-content: center; }
.case-body h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; margin-bottom: 22px; }
.case-body ul { margin: 0; padding: 0; list-style: none; }
.case-body li { position: relative; padding: 12px 0 12px 26px; border-top: 1px solid var(--line); color: var(--grey); font-size: .95rem; }
.case-body li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.case-body li b { color: var(--ink); font-weight: 600; }

/* julio */
.julio { background: var(--ink); color: var(--cream); }
.julio-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.julio-photo { aspect-ratio: 4 / 5; border-radius: 24px; background: var(--green) url("/img/monograma-claro.png") center/45% no-repeat; overflow: hidden; }
.julio-photo img { width: 100%; height: 100%; object-fit: cover; }
.julio .kicker { color: var(--sage); }
.julio h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; margin-bottom: 10px; }
.julio .role { color: var(--sage); font-size: .95rem; margin-bottom: 28px; }
.julio p { color: rgba(255,251,248,.75); font-size: 1.05rem; }
.quote { margin: 30px 0 0; padding-left: 22px; border-left: 2px solid var(--sage); font: italic 400 1.6rem/1.3 var(--serif); color: var(--cream); }

/* book */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.book-cover { aspect-ratio: 3 / 4; max-width: 420px; margin-inline: auto; border-radius: 6px 16px 16px 6px; background: linear-gradient(135deg, var(--green), var(--green-deep)); box-shadow: 30px 40px 70px rgba(40,36,27,.25), inset 10px 0 18px rgba(0,0,0,.2); display: grid; place-items: center; overflow: hidden; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover span { color: var(--cream); font: 500 2rem/1.1 var(--serif); text-align: center; padding: 30px; }
.book-grid p { color: var(--grey); font-size: 1.05rem; }

/* contact */
.contact { background: var(--green); color: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.contact .kicker { color: var(--sage); }
.contact h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; margin-bottom: 24px; }
.contact p { color: rgba(255,251,248,.78); }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: .8rem; letter-spacing: .06em; color: rgba(255,251,248,.75); }
input, select, textarea { width: 100%; padding: 14px 16px; border: 1px solid rgba(255,251,248,.25); border-radius: 12px; background: rgba(255,251,248,.08); color: var(--cream); font: inherit; font-size: 1rem; }
select option { color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
textarea { min-height: 120px; resize: vertical; }
form .btn { justify-self: start; border: 0; cursor: pointer; }

footer { padding: 48px 0; background: var(--ink); color: rgba(255,251,248,.6); font-size: .85rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
footer img { height: 40px; width: auto; }

.wa { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #25d366; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.wa svg { width: 30px; height: 30px; fill: #fff; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav ul { display: none; }
  .hero-foot, .head, .about-grid, .julio-grid, .book-grid, .contact-grid, .case { grid-template-columns: 1fr; }
  .hero-cta { justify-content: flex-start; }
  .case:nth-child(even) .case-img { order: 0; }
  .case-img { aspect-ratio: 16 / 10; }
  .numbers .wrap { grid-template-columns: 1fr 1fr; }
  .num, .num:first-child { padding: 26px 16px 22px 0; border-right: 0; border-bottom: 1px solid rgba(255,251,248,.14); }
  .num:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc { padding: 32px; }
  section { padding: 84px 0; }
  .head { gap: 20px; margin-bottom: 40px; }
  .julio-photo { max-width: 420px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .nav .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* páginas de serviço */
.svc-link { display: inline-flex; gap: 8px; margin-top: 18px; color: var(--green); font-weight: 600; font-size: .9rem; text-decoration: none; }
.svc-link:hover { text-decoration: underline; }
.page-hero { padding: 170px 0 90px; background: linear-gradient(140deg, var(--green-deep), var(--green)); color: var(--cream); }
.page-hero .kicker { color: var(--sage); }
.page-hero h1 { max-width: 900px; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1; margin-bottom: 26px; }
.page-hero p { max-width: 680px; color: rgba(255,251,248,.8); font-size: 1.15rem; }
.crumbs { margin-bottom: 26px; font-size: .8rem; color: rgba(255,251,248,.6); }
.crumbs a { color: inherit; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.split h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; }
.deliver { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.deliver div { padding: 30px; background: var(--cream); }
.deliver b { display: block; margin-bottom: 8px; font: 500 1.4rem/1.15 var(--serif); }
.deliver p { margin: 0; color: var(--grey); font-size: .95rem; }
.proof { background: var(--paper); }
.proof ul { margin: 0; padding: 0; list-style: none; }
.proof li { position: relative; padding: 18px 0 18px 28px; border-top: 1px solid var(--line); color: var(--grey); }
.proof li::before { content: ""; position: absolute; left: 0; top: 27px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.proof li b { color: var(--ink); }
.cta-band { background: var(--ink); color: var(--cream); text-align: center; }
.cta-band h2 { max-width: 760px; margin: 0 auto 18px; font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: 1.05; }
.cta-band p { color: rgba(255,251,248,.7); margin-bottom: 30px; }
.others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.others a { display: block; padding: 28px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; transition: background .3s; }
.others a:hover { background: var(--paper); }
.others small { color: var(--green); font-weight: 600; letter-spacing: .16em; font-size: .7rem; }
.others b { display: block; margin-top: 10px; font: 500 1.45rem/1.15 var(--serif); }
@media (max-width: 900px) {
  .split, .deliver, .others { grid-template-columns: 1fr; }
  .split { gap: 28px; }
  .page-hero { padding: 130px 0 70px; }
}

.book-photo { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(40,36,27,.18); }
.book-photo img { width: 100%; height: auto; }

/* tipografia IBM Plex: títulos mais leves e justos */
h1, h2, h3 { font-weight: 400; letter-spacing: -.025em; }
.hero h1 em, .julio .quote { font-weight: 300; }
.num strong { font-weight: 500; letter-spacing: -.02em; }

/* galeria */
.gallery { background: var(--paper); }
.g-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.g-item { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: #d8d3c8; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(40,36,27,.62); color: var(--cream); font-size: .68rem; letter-spacing: .04em; }

/* vídeos */
.head p a, .contact-lines a, footer a { color: inherit; }
.v-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--ink); cursor: pointer; text-align: left; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s; }
.yt:hover img { opacity: 1; }
.yt::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); border-radius: 14px; background: #ff0000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/26px no-repeat; }
.yt span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font: 500 1rem/1.3 var(--sans); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact-lines { font-size: 1.15rem; font-weight: 500; }
@media (max-width: 900px) {
  .g-grid { grid-template-columns: 1fr 1fr; }
  .v-grid { grid-template-columns: 1fr; }
}
