:root {
  --bg: #f2f2f2;
  --band: #dcdcdc;
  --ink: #111;
  --muted: #555;
  --line: #111;
  --max: 1170px;
  --gutter: 24px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

[id] { scroll-margin-top: 80px; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 92px;
}
.nav a, .nav-toggle {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav { display: flex; gap: 18px; }
.nav--right { justify-content: flex-end; }
.nav a { position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.logo img { width: 240px; height: auto; }
.nav-toggle {
  display: none; justify-self: end;
  background: none; border: 0; padding: 8px 0; cursor: pointer; color: inherit; font-family: inherit;
}
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { padding-bottom: 36px; }
.hero img { width: 100%; aspect-ratio: 1148 / 394; object-fit: cover; }

/* ---------- Portfolio grid ---------- */
.band { background: var(--band); }
.portfolio-strip { padding: 44px 0 36px; }
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
}
.card { display: block; }
.card-media { overflow: hidden; aspect-ratio: 9 / 16; background: #ccc; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, filter .4s; }
.card:hover .card-media img { transform: scale(1.04); filter: brightness(.9); }
.card-label {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.strip-more { text-align: center; margin-top: 32px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0 72px; }
.section-title {
  margin: 0 0 48px;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  text-transform: uppercase;
}
.intro {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 96px;
  align-items: start;
}
.intro p { margin: 0 0 1.1em; font-size: 15px; }
.intro .intro-lead { font-size: 17px; font-weight: 500; line-height: 1.5; margin-bottom: .8em; }
.intro-media { aspect-ratio: 440 / 750; background: #d8d8d8; overflow: hidden; }
.intro-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }

.full-bleed img { width: 100%; height: clamp(320px, 57vw, 1100px); object-fit: cover; }

.centered { max-width: 980px; margin: 0 auto; text-align: center; }
.centered p { font-size: 15px; margin: 0; }

.btn {
  display: inline-block;
  margin-top: 48px;
  padding: 16px 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--small { margin-top: 0; padding: 12px 28px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Investimento ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 54px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 315px;
  padding: 40px 28px 38px;
  background: #eaeaea;
  border: 1px solid #d2d2d2;
  border-radius: 6px;
  color: #212121;
}
.plan--featured { background: #212121; border-color: #212121; color: var(--bg); }
.plan-badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  padding: 5px 12px; border: 1px solid #000; border-radius: 999px;
  background: var(--bg); color: #000;
  font-size: 8px; letter-spacing: .25em; text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.plan-eyebrow { font-size: 12px; letter-spacing: .5em; text-transform: uppercase; margin-right: -.5em; line-height: 1; }
.plan-title {
  margin: 16px 0 12px;
  font-family: "Italiana", "Cormorant Garamond", Georgia, serif;
  font-weight: 400; font-size: 28px; letter-spacing: .12em; line-height: 1.1; text-transform: uppercase;
}
.plan p { margin: 0 0 24px; font-size: 14px; line-height: 1.5; max-width: 240px; }
.plan-btn {
  padding: 16px 32px; border-radius: 999px;
  background: #212121; color: var(--bg);
  font-size: 13.5px; line-height: 1; white-space: nowrap;
  transition: opacity .25s, transform .25s;
}
.plan--featured .plan-btn { background: var(--bg); color: #000; }
.plan-btn:hover { opacity: .85; transform: translateY(-1px); }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 56px; }
.site-footer .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .logo img { width: 240px; }
.footer-links { display: flex; gap: 22px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.copy { width: 100%; font-size: 12px; color: var(--muted); margin-top: 24px; }

/* ---------- Portfolio page ---------- */
.page-head { padding: 40px 0 8px; text-align: center; }
.page-head p { margin: -28px auto 0; max-width: 560px; color: var(--muted); font-size: 15px; }
.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 36px 0 48px; }
.filter {
  font: inherit; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px; line-height: 1; cursor: pointer; transition: background .25s, color .25s;
}
.filter[aria-pressed="true"], .filter:hover { background: var(--ink); color: var(--bg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; padding-bottom: 72px; }
.card-meta { text-align: center; font-size: 13px; color: var(--muted); line-height: 1.4; }
.empty { text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* ---------- Couple page (layout dos PDFs: capa + filme, texto, 3×2 fotos) ---------- */
.couple { padding: 48px 0 0; }
.couple-top { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.couple-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.couple-cover h1 { margin: 14px 0 0; font: inherit; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; text-align: center; font-weight: 400; }
.couple-cover .meta { text-align: center; font-size: 13px; color: var(--muted); margin-top: 4px; }
.film { position: relative; aspect-ratio: 16 / 9; background: #1a1a1a; }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film--foto { aspect-ratio: 3 / 2; background: #ccc; }
.film--foto img { width: 100%; height: 100%; object-fit: cover; }
.couple-text { max-width: 860px; margin: 40px auto 0; text-align: center; font-size: 14px; line-height: 2; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1000px; margin: 48px auto 0; }
.gallery button { padding: 0; border: 0; background: #ccc; cursor: zoom-in; overflow: hidden; display: block; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s ease; }
.gallery button:hover img { transform: scale(1.03); }
.pager { display: flex; justify-content: space-between; gap: 16px; padding: 56px 0 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.pager a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .couple-top { grid-template-columns: 1fr; gap: 24px; }
  .couple-cover { max-width: 240px; margin: 0 auto; }
  .film { order: -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 10, .94);
  display: none; align-items: center; justify-content: center; padding: 56px 16px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-btn {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font-family: inherit; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 14px;
}
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 28px; }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 28px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { gap: 28px; }
  .intro { grid-template-columns: 1fr 340px; gap: 48px; }
  .plans { gap: 20px; }
  .plan { padding: 36px 18px 32px; }
  .grid-3 { gap: 40px 28px; }
}
@media (max-width: 800px) {
  :root { --gutter: 16px; }
  .site-header .container { grid-template-columns: 1fr auto; height: 72px; }
  .nav { display: none; }
  .logo { justify-self: start; }
  .logo img { width: 180px; }
  .nav-toggle { display: block; }
  .mobile-menu {
    display: none; flex-direction: column; gap: 4px;
    padding: 8px var(--gutter) 20px; border-bottom: 1px solid #ddd;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 0; }
  .hero { padding-bottom: 24px; }
  .hero img { aspect-ratio: 4 / 3; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .card-label { font-size: 11px; letter-spacing: .1em; }
  .intro { grid-template-columns: 1fr; gap: 32px; }
  .intro-media { aspect-ratio: 4 / 5; }
  .section { padding: 48px 0 56px; }
  .section-title { font-size: 24px; margin-bottom: 28px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .gallery { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; gap: 32px; max-width: 360px; }
  .site-footer .logo img { width: 180px; }
}
@media (max-width: 420px) {
  .grid-3 { grid-template-columns: 1fr; }
}
