/* ==========================================================
   Portfólio de Fotografia — estilos personalizados
   Paleta:  #0D0D0D  #181818  #F5F5F5  #C59D5F
   ========================================================== */

:root {
  --ink: #0D0D0D;
  --carbon: #181818;
  --offwhite: #F5F5F5;
  --gold: #C59D5F;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html { scroll-padding-top: 80px; }

body { -webkit-tap-highlight-color: transparent; }

::selection { background: var(--gold); color: var(--ink); }

/* Scrollbar discreta */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

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

/* ---------- Navbar ---------- */
#navbar { background: linear-gradient(to bottom, rgba(13,13,13,.55), transparent); }
#navbar.scrolled {
  background: rgba(13, 13, 13, .72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.nav-link { position: relative; padding: 6px 0; color: rgba(245,245,245,.78); transition: color .3s; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--offwhite); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.burger-line { display: block; width: 24px; height: 1.5px; background: var(--offwhite); transition: transform .35s var(--ease), opacity .25s; }
#menuBtn[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
#menuBtn[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; }
#menuBtn[aria-expanded="true"] .burger-line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.35rem; font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .16em;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: all .35s var(--ease);
}
.btn-lg { padding: 1rem 2rem; font-size: 12.5px; }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: transparent; color: var(--gold); }
.btn-ghost { background: transparent; color: var(--offwhite); border-color: rgba(245,245,245,.35); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Hero ---------- */
.hero-img { animation: kenburns 22s ease-in-out infinite alternate; transform-origin: center; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }

#heroContent { transition: transform .25s ease-out; will-change: transform; }

.scroll-line { width: 1px; height: 46px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Títulos de seção ---------- */
.eyebrow { color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: .4em; margin-bottom: 1rem; text-align: center; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; text-align: center; }
.section-title em { color: var(--gold); font-style: italic; }

/* ---------- Animação de entrada (scroll reveal) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Filtros ---------- */
.filtro {
  padding: .55rem 1.3rem; font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(245,245,245,.65); border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  background: transparent; cursor: pointer; transition: all .3s var(--ease);
}
.filtro:hover { color: var(--gold); border-color: var(--gold); }
.filtro.active { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- Masonry (colunas CSS: respeita fotos verticais e horizontais) ---------- */
.masonry { column-count: 1; column-gap: 1rem; }
@media (min-width: 560px)  { .masonry { column-count: 2; } }
@media (min-width: 1024px) { .masonry { column-count: 3; column-gap: 1.25rem; } }

.masonry-item {
  position: relative; display: block; margin: 0 0 1rem; break-inside: avoid;
  overflow: hidden; border-radius: 2px; cursor: zoom-in; background: var(--carbon);
  animation: itemIn .6s var(--ease) both;
}
@media (min-width: 1024px) { .masonry-item { margin-bottom: 1.25rem; } }
.masonry-item.hide { display: none; }
.masonry-item img { width: 100%; height: auto; display: block; transition: transform 1s var(--ease), filter .6s; }
.masonry-item:hover img { transform: scale(1.06); filter: brightness(.7); }

.masonry-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.1rem 1rem;
  font-family: 'Playfair Display', serif; font-size: 1.05rem;
  background: linear-gradient(to top, rgba(13,13,13,.85), transparent);
  opacity: 0; transform: translateY(10px); transition: all .5s var(--ease);
}
.masonry-item figcaption span { display: block; font-family: 'Inter', sans-serif; font-size: 10px; text-transform: uppercase; letter-spacing: .3em; color: var(--gold); margin-bottom: .2rem; }
.masonry-item:hover figcaption { opacity: 1; transform: none; }
@media (hover: none) { .masonry-item figcaption { opacity: 1; transform: none; } }

@keyframes itemIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(8,8,8,.96); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage { margin: 0; max-width: 94vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lb-stage img { max-width: 94vw; max-height: 82vh; object-fit: contain; border-radius: 2px; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: lbIn .45s var(--ease); }
.lb-stage figcaption { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(245,245,245,.6); }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

.lb-btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  color: var(--offwhite); font-size: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%; cursor: pointer; transition: all .3s;
}
.lb-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lb-close { top: 18px; right: 18px; font-size: 30px; line-height: 1; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: 22px; transform: none; }
  .lb-prev { left: 22%; } .lb-next { right: 22%; }
}

/* ---------- Campos de formulário ---------- */
.field {
  width: 100%; padding: .95rem 1.1rem; font-size: 15px; color: var(--offwhite);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); border-radius: 2px;
  transition: border-color .3s, background .3s; font-family: 'Inter', sans-serif;
}
.field::placeholder { color: rgba(245,245,245,.35); text-transform: none; letter-spacing: normal; }
.field:focus { outline: none; border-color: var(--gold); background: rgba(197,157,95,.06); }
select.field option { background: var(--carbon); color: var(--offwhite); }
input[type="date"].field { color-scheme: dark; }
.lbl { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: rgba(245,245,245,.55); margin-bottom: .45rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Resultado da galeria ---------- */
.result-box { padding: 1.4rem 1.5rem; border-radius: 2px; text-align: center; animation: lbIn .5s var(--ease); }
.result-ok { border: 1px solid rgba(197,157,95,.55); background: rgba(197,157,95,.08); }
.result-err { border: 1px solid rgba(220,110,110,.4); background: rgba(220,110,110,.07); color: #e8b4b4; font-size: 14px; }
.shake { animation: shake .45s; }
@keyframes shake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }

/* ---------- Cards de serviço ---------- */
.card {
  position: relative; padding: 2.4rem 2rem; background: var(--ink);
  border: 1px solid rgba(255,255,255,.08); border-radius: 2px;
  display: flex; flex-direction: column; transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(197,157,95,.5); box-shadow: 0 25px 50px -25px rgba(197,157,95,.25); }
.card-featured { border-color: rgba(197,157,95,.4); }
.card-num { font-family: 'Playfair Display', serif; font-size: 3rem; line-height: 1; color: rgba(197,157,95,.35); margin-bottom: 1.2rem; }
.card-list { margin: 0 0 2rem; padding: 0; list-style: none; font-size: 14px; color: rgba(245,245,245,.75); flex: 1; }
.card-list li { padding: .55rem 0 .55rem 1.4rem; position: relative; border-bottom: 1px solid rgba(255,255,255,.06); }
.card-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 1px; background: var(--gold); }

/* ---------- Depoimentos (carrossel com scroll-snap) ---------- */
.carousel {
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 1rem; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.depo {
  flex: 0 0 88%; scroll-snap-align: start; margin: 0; padding: 2.2rem 2rem;
  background: var(--carbon); border: 1px solid rgba(255,255,255,.07); border-radius: 2px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
}
@media (min-width: 768px)  { .depo { flex-basis: calc(50% - .65rem); } }
@media (min-width: 1100px) { .depo { flex-basis: calc(33.333% - .85rem); } }
.depo p { font-family: 'Playfair Display', serif; font-size: 1.12rem; line-height: 1.7; font-style: italic; color: rgba(245,245,245,.88); }
.depo footer { display: flex; flex-direction: column; gap: .15rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.depo footer span { font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--gold); }
.stars { color: var(--gold); letter-spacing: .25em; font-size: 14px; }

.arrow-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  color: var(--offwhite); font-size: 18px; background: transparent; cursor: pointer; transition: all .3s;
}
.arrow-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ---------- WhatsApp flutuante ---------- */
.wa-pulse::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; opacity: .5; z-index: -1; animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { to { transform: scale(1.7); opacity: 0; } }
#waFloat { transition: transform .3s var(--ease); }
#waFloat:hover { transform: scale(1.08); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; z-index: 120; max-width: 90vw;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: .9rem 1.5rem; font-size: 14px; background: var(--carbon);
  border: 1px solid var(--gold); border-radius: 2px; box-shadow: 0 20px 50px rgba(0,0,0,.5);
  transition: all .45s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: #d98a8a; }

/* ---------- Acessibilidade: movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
