/* =========================================================
   Leonardo Cavalet | Arquitetura de alto padrão
   Para mudar cores e fontes do site inteiro, edite o bloco :root.
   ========================================================= */

:root {
  /* Cores */
  --ink: #1c1916;          /* fundo escuro */
  --ink-2: #27231f;
  --ink-3: #38332d;
  --paper: #faf8f5;        /* fundo claro */
  --sand: #f1ece4;         /* fundo areia */
  --text: #2b2723;
  --muted: #6c665e;
  --bronze: #a88b63;       /* detalhes dourados */
  --bronze-2: #8a7149;     /* botões */
  --bronze-3: #c4a97f;     /* dourado sobre fundo escuro */
  --bronze-text: #7a6240;  /* dourado para texto sobre fundo claro */
  --wa: #25d366;           /* verde do WhatsApp */

  /* Fontes */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Medidas */
  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1240px;
  --header-h: 96px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:focus-visible {
  outline: 2px solid var(--bronze-3);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: .7em 1.1em;
  background: #fff;
  color: var(--ink);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Tipografia ---------- */
.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: .01em;
  color: var(--ink);
}
.title--light { color: #fff; }

.kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--bronze-text);
  margin-bottom: .35rem;
}

.section { padding-block: clamp(72px, 10vw, 140px); }

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  text-align: center;
}
.section-head p:not(.kicker) { margin-top: 1.1rem; color: var(--muted); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  padding: 1.05em 2em;
  font: 500 .78rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn .icon { width: 1.35em; height: 1.35em; }
.btn:active { transform: translateY(1px); }

.btn--solid { background: var(--bronze-2); color: #fff; }
.btn--solid:hover { background: #735c39; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--bronze-2); }

.btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--outline { border-color: var(--bronze-3); color: #fff; }
.btn--outline:hover { background: var(--bronze-3); color: var(--ink); }

.btn--outline-dark { border-color: var(--ink); color: var(--ink); }
.btn--outline-dark:hover { background: var(--ink); color: #fff; }

.btn--wa { background: #1a8f4a; color: #fff; }
.btn--wa:hover { background: #147a3e; }

.btn--block { display: flex; width: 100%; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: #fff;
}
/* O fundo do cabeçalho fica num pseudo-elemento para o menu mobile (position: fixed) não ser afetado pelo blur */
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: rgba(28, 25, 22, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
  opacity: 0;
  transition: opacity .3s;
}
.site-header.is-scrolled::before { opacity: 1; }

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  transition: height .3s;
}
.site-header.is-scrolled .site-header__bar { height: 76px; }

.brand { display: block; line-height: 0; position: relative; z-index: 2; }
.brand img { height: 78px; width: auto; transition: height .3s; }
.site-header.is-scrolled .brand img { height: 60px; }

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav__list { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.nav__list a {
  position: relative;
  display: block;
  padding-block: .5em;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--bronze-3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__list a:hover::after,
.nav__list a.is-active::after { transform: scaleX(1); }
.nav__cta { padding: .95em 1.5em; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  color: #fff;
  background: var(--ink-2);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 2.6s var(--ease) both;
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(18, 15, 12, .5) 0%, rgba(18, 15, 12, 0) 24%),
    linear-gradient(90deg, rgba(18, 15, 12, .62) 0%, rgba(18, 15, 12, .3) 52%, rgba(18, 15, 12, .06) 100%),
    linear-gradient(0deg, rgba(18, 15, 12, .6) 0%, rgba(18, 15, 12, 0) 36%);
}

.hero__inner {
  position: relative; z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 32px;
}

.hero__eyebrow {
  margin-bottom: 1.8rem;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #dcc7a1;
  text-shadow: 0 1px 14px rgba(0,0,0,.45);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 6.4vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: -.005em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span {
  display: inline-block;
  animation: lineUp 1.1s var(--ease) both;
}
.hero__title .line:nth-child(2) > span { animation-delay: .14s; }
.hero__title em { font-style: italic; font-weight: 300; color: #e6d2b0; }

.hero__lead {
  max-width: 560px;
  margin-top: 1.9rem;
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .92);
}
.hero__cta { margin-top: 2.6rem; }
.btn--hero {
  justify-content: space-between;
  gap: 2.6em;
  min-width: 280px;
  padding: 1.3em 2em;
  font-size: .98rem;
  letter-spacing: .02em;
  text-transform: none;
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
  background: rgba(18, 15, 12, .12);
}
.btn--hero:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--hero .icon { width: 1.2em; height: 1.2em; }

.hero__bottom {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
}
.hero__regions,
.hero__tag {
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero__regions { color: rgba(255, 255, 255, .94); }
.hero__tag { justify-self: end; color: rgba(255, 255, 255, .72); }
.hero__down {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  transition: background-color .25s, color .25s, border-color .25s;
}
.hero__down .icon { width: 22px; height: 22px; }
.hero__down:hover { background: #fff; color: var(--ink); border-color: #fff; }

@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes ruleGrow { from { transform: scaleX(0); } to { transform: none; } }

/* ---------- Imagens (com aviso quando a foto não carrega) ---------- */
.ph { background: linear-gradient(135deg, #d9d1c4, #b3a48d); overflow: hidden; position: relative; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
/* Fundos que preenchem o bloco inteiro (precisam vir depois de .ph) */
.hero__media.ph,
.testimonials__bg.ph,
.project__img.ph { position: absolute; inset: 0; }
.ph.is-missing img { display: none; }
.ph.is-missing::after {
  content: "Coloque sua foto aqui";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: rgba(28, 25, 22, .6);
}
.hero__media.ph { background: var(--ink-2); }
/* Fundos decorativos não mostram o aviso de foto ausente */
.hero__media.ph.is-missing::after,
.testimonials__bg.is-missing::after { content: none; }

/* ---------- Sobre ---------- */
.about { background: var(--paper); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.about__photo { position: relative; padding: 0 22px 22px 0; }
.about__photo::before {
  content: "";
  position: absolute;
  top: 22px; left: 22px; right: 0; bottom: 0;
  border: 1px solid var(--bronze);
}
.frame { position: relative; aspect-ratio: 4 / 5; }

.about__text { max-width: 560px; }
.about__text .title { margin-bottom: 1.6rem; }
.about__lead {
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.about__text p + p { margin-top: 1rem; }
.about__text p:not(.about__lead) { color: var(--muted); }

.signature { width: min(370px, 82%); height: auto; margin-top: 1.8rem; }

.creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  margin: 2.2rem 0 2.4rem;
}
.creds > div { padding-block: 1rem; border-top: 1px solid rgba(28, 25, 22, .14); }
.creds dt { font-size: .85rem; color: var(--muted); }
.creds dd { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--ink); line-height: 1.3; }

/* ---------- Soluções ---------- */
.solutions { background: var(--paper); padding-top: 0; }
.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.solution { text-align: center; }
.ph--square { aspect-ratio: 1 / 1; margin-bottom: 2rem; }
.solution:hover .ph img { transform: scale(1.04); }
.solution .ph img { transition: transform .8s var(--ease); }
.solution h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: var(--bronze-text);
  margin-bottom: .7rem;
}
.solution p { max-width: 360px; margin-inline: auto; font-size: 1rem; line-height: 1.9; color: var(--muted); }

/* ---------- Portfólio ---------- */
.portfolio { background: var(--sand); }
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.project { position: relative; aspect-ratio: 3 / 4.3; overflow: hidden; background: var(--ink-2); }
.project__img { position: absolute; inset: 0; }
.project__img img { transition: transform 1s var(--ease); }
.project:hover .project__img img { transform: scale(1.06); }
.project__img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(18, 15, 12, .28), rgba(18, 15, 12, 0) 55%);
  pointer-events: none;
}

.project__card {
  position: absolute;
  left: 12%; right: 12%;
  bottom: 9%;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  padding: 1.7rem 1rem 1.9rem;
  text-align: center;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color .4s;
}
.project__card::before {
  content: "";
  position: absolute; inset: 7px;
  border: 1px solid var(--bronze);
  pointer-events: none;
}
.project:hover .project__card { background: rgba(255, 255, 255, .92); }
.project__card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.9vw, 1.7rem);
  line-height: 1.15;
  color: var(--ink);
}
.project__card .btn { padding: .95em 1.3em; font-size: .72rem; }

.portfolio__more { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 64px); }

/* ---------- Depoimentos ---------- */
.testimonials { position: relative; background: #eeeae3; overflow: hidden; text-align: center; }
.testimonials__bg { position: absolute; inset: 0; background: #eeeae3; }
.testimonials__bg img { opacity: .16; filter: grayscale(1); }
.testimonials__inner { position: relative; }

.quote-mark {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-size: 6rem;
  line-height: .7;
  height: 3.2rem;
  color: var(--bronze);
}

.slider { max-width: 820px; margin: 1.2rem auto 0; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s var(--ease), visibility .6s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  line-height: 1.55;
  color: #433e38;
}
.slide footer {
  margin-top: 1.8rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
}

.dots { display: flex; justify-content: center; gap: 4px; margin-top: 2rem; }
.dots button {
  width: 28px; height: 28px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  display: grid; place-items: center;
}
.dots button::before {
  content: "";
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1px solid var(--bronze-2);
  transition: background-color .25s, transform .25s;
}
.dots button[aria-current="true"]::before { background: var(--ink); border-color: var(--ink); transform: scale(1.1); }

/* ---------- Contato ---------- */
.contact { background: var(--ink); color: rgba(255, 255, 255, .86); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.contact__text > p { max-width: 480px; margin-top: 1.2rem; }

.form { display: grid; gap: 1.4rem; margin-top: 2.4rem; max-width: 520px; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .85rem; color: rgba(255, 255, 255, .62); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .7rem 0;
  font: 300 1.05rem/1.5 var(--sans);
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  border-radius: 0;
  transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select option { color: var(--ink); background: #fff; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, .38); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--bronze-3); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--bronze-3); outline-offset: 4px; }
.field.is-invalid input { border-bottom-color: #e58a7b; }
.form .btn { justify-self: start; margin-top: .6rem; }


/* Contato: marca d'água e foto */
.contact { position: relative; overflow: hidden; }
.contact::after {
  content: "";
  position: absolute;
  left: -6%; bottom: -16%;
  width: min(560px, 70vw);
  aspect-ratio: 600 / 375;
  background: url("../img/monograma-lc.png") no-repeat center / contain;
  opacity: .05;
  pointer-events: none;
}
.contact__grid { position: relative; z-index: 1; }

.contact__photo { position: relative; display: flex; padding: 0 18px 18px 0; width: min(100%, 450px); justify-self: end; }
.contact__photo::before {
  content: "";
  position: absolute;
  top: 18px; left: 18px; right: 0; bottom: 0;
  border: 1px solid var(--bronze);
  pointer-events: none;
}
/* Moldura 7:12 (vertical): enquadra a cabeça, a planta e o vaso sem cortes */
.contact__photo .ph { position: relative; z-index: 1; flex: none; width: 100%; aspect-ratio: 7 / 12; margin: 0; background: var(--ink-2); }
.contact__photo .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Botões de redes sociais (YouTube, Instagram, TikTok) */
.social-list { display: grid; gap: 12px; }
.social-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .2);
  transition: border-color .25s, background-color .25s, transform .25s var(--ease);
}
.social-btn:hover { border-color: var(--bronze-3); background: rgba(255, 255, 255, .06); transform: translateY(-2px); }
.social-btn__text { display: grid; min-width: 0; line-height: 1.25; }
.social-btn__text strong { font-weight: 500; font-size: 1rem; }
.social-btn__text small { font-size: .85rem; color: rgba(255, 255, 255, .64); overflow-wrap: anywhere; }
.social-btn__go { margin-left: auto; color: var(--bronze-3); transition: transform .25s var(--ease); }
.social-btn:hover .social-btn__go { transform: translateX(4px); }
.logo-badge { flex: none; display: grid; place-items: center; width: 46px; height: 46px; color: #fff; }
.logo-badge .icon { width: 26px; height: 26px; }
.logo-badge--ig { background: linear-gradient(45deg, #f9a02e 0%, #e1306c 50%, #833ab4 100%); }
.logo-badge--yt { background: #e0241b; }
.logo-badge--tt { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }

/* ---------- Rodapé ---------- */
.site-footer { background: #14110e; color: rgba(255, 255, 255, .8); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  padding-block: clamp(48px, 6vw, 80px);
}
.footer__col { padding-inline: clamp(20px, 3.4vw, 56px); }
.footer__col:first-child { padding-left: 0; }
.footer__col:last-child { padding-right: 0; }
.footer__col--mid { border-inline: 1px solid rgba(255, 255, 255, .16); }
.footer__col h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 1.4rem;
}

.footer__logo { display: block; width: min(260px, 100%); height: auto; margin-left: -6px; }
.footer__role { margin-top: 1rem; font-size: .9rem; color: var(--bronze-3); }
.footer__address { display: flex; gap: .7rem; margin-top: 1.6rem; font-size: .98rem; line-height: 1.6; }
.footer__address .icon { margin-top: .2em; color: var(--bronze-3); }
.footer__address a,
.footer__contacts a { text-decoration: none; }
.footer__address a:hover,
.footer__contacts a:hover { color: var(--bronze-3); }


.footer__contacts { display: grid; gap: 1rem; }
.footer__col h3.footer__sub { margin: 2rem 0 1rem; }
.footer__contacts li { display: flex; align-items: center; gap: .8rem; font-size: 1.05rem; }
.footer__contacts .icon { color: var(--bronze-3); }

.footer__col:last-child { display: grid; align-content: start; gap: 14px; }
.footer__col:last-child h3 { margin-bottom: .4rem; }

.footer__bottom {
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  text-align: center;
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}

/* ---------- Modal do portfólio ---------- */
.lightbox {
  width: min(1120px, 94vw);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  color: #fff;
  background: var(--ink);
  overflow: auto;
}
.lightbox::backdrop { background: rgba(10, 8, 6, .84); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox[open] { display: block; animation: lbIn .35s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.lightbox__panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.lightbox__close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(28, 25, 22, .7);
  border: 0;
  cursor: pointer;
}
.lightbox__close:hover { background: var(--bronze-2); }

.lightbox__stage { position: relative; background: #000; min-height: 360px; }
.lightbox__stage img { width: 100%; height: 100%; max-height: 92vh; object-fit: cover; }
.lightbox__nav {
  position: absolute; top: 50%;
  width: 46px; height: 46px;
  margin-top: -23px;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(28, 25, 22, .65);
  border: 0;
  cursor: pointer;
  transition: background-color .25s;
}
.lightbox__nav:hover { background: var(--bronze-2); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

.lightbox__info { display: flex; flex-direction: column; gap: 1.2rem; padding: clamp(28px, 4vw, 48px); padding-top: 64px; }
.lightbox__info h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.15; }
.lightbox__info p { color: rgba(255, 255, 255, .72); font-size: 1rem; }
.lightbox__thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.lightbox__thumbs button {
  width: 64px; height: 64px;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  opacity: .6;
  transition: opacity .25s, border-color .25s;
}
.lightbox__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--bronze-3); }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__info .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Botões flutuantes ---------- */
.wa-float {
  position: fixed;
  right: clamp(16px, 2.4vw, 28px);
  bottom: clamp(16px, 2.4vw, 28px);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.wa-float__label {
  padding: .9em 1.2em;
  font: 500 .88rem/1 var(--sans);
  white-space: nowrap;
  color: var(--ink);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  opacity: 0;
  transform: translateX(14px);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.wa-float.is-hinting .wa-float__label,
.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label { opacity: 1; transform: none; }

.wa-float__icon {
  position: relative;
  z-index: 0;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  color: #fff;
  background: var(--wa);
  box-shadow: 0 12px 30px rgba(37, 211, 102, .45), 0 0 0 4px rgba(255, 255, 255, .85);
  transition: transform .3s var(--ease);
}
.wa-float__icon .icon { width: 34px; height: 34px; }
.wa-float:hover .wa-float__icon { transform: scale(1.08); }
.wa-float__icon::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--wa);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.75); opacity: 0; } }

.to-top {
  position: fixed;
  right: clamp(26px, 3.2vw, 38px);
  bottom: calc(clamp(16px, 2.4vw, 28px) + 64px + 18px);
  z-index: 89;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--bronze-3); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .portfolio__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project { aspect-ratio: 4 / 4.6; }
}

@media (max-width: 980px) {
  :root { --header-h: 80px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    padding: 96px var(--gutter) 48px;
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 6px; }
  .nav__list a { padding-block: .45em; font-family: var(--serif); font-size: 2rem; letter-spacing: .04em; text-transform: none; }
  .nav__list a::after { display: none; }

  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 460px; margin-inline: auto; width: 100%; }
  .about__text { max-width: none; }

  .solutions__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__photo { width: min(100%, 440px); justify-self: center; }

  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__col { padding-inline: 0; }
  .footer__col--mid { border-inline: 0; border-block: 1px solid rgba(255, 255, 255, .16); padding-block: 32px; }

  .lightbox__panel { grid-template-columns: 1fr; }
  .lightbox__stage { min-height: 0; aspect-ratio: 4 / 3; }
  .lightbox__info { padding-top: 28px; }
}

@media (max-width: 700px) {
  .hero__eyebrow { font-size: .72rem; letter-spacing: .16em; }
  .hero__bottom { grid-template-columns: 1fr; justify-items: center; gap: 16px; padding-bottom: 40px; text-align: center; }
  .hero__down { order: -1; }
  .hero__tag { justify-self: center; }
  .btn--hero { width: 100%; }

  .creds { grid-template-columns: 1fr; }
  .brand img { height: 60px; }
  .site-header.is-scrolled .brand img { height: 50px; }
}

@media (max-width: 560px) {
  .portfolio__grid { grid-template-columns: 1fr; }
  .project { aspect-ratio: 4 / 4.8; }
  .wa-float__label { display: none; }
  .wa-float__icon { width: 58px; height: 58px; }
  .to-top { display: none; } /* no celular o botão do WhatsApp fica sozinho, sem cobrir o texto */
  .site-footer { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
