/* ==========================================================================
   Fred Peres Fotografia — Estilos
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset & Variáveis globais
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white: #FFFFFF;
  --off: #F7F7F5;
  --ink: #1A1A1A;
  --muted: #888;
  --gold: #C9A96E;
  --gold-l: #E8D5B0;
  --div: #E5E5E5;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   2. Navegação
   -------------------------------------------------------------------------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

nav.scrolled {
  border-color: var(--div);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   3. Hero
   -------------------------------------------------------------------------- */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

@media screen and (max-width:767px) {
  .hero-img {
  object-position: 25% 50%;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .25);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 48px 64px;
  color: white;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-l);
  margin-bottom: 12px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-l);
}

.hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  max-width: 380px;
}

/* --------------------------------------------------------------------------
   4. Seções genéricas
   -------------------------------------------------------------------------- */
section {
  padding: 96px 48px;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 48px;
}

.gold-line {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 64px;
}

/* --------------------------------------------------------------------------
   5. Portfólio / Galeria
   -------------------------------------------------------------------------- */
#portfolio {
  background: var(--off);
}

.gallery-grid {
  columns: 3;
  column-gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
  filter: brightness(0.92);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 28px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   6. Pacotes / Preços
   -------------------------------------------------------------------------- */
#pacotes {
  background: var(--white);
  text-align: center;
}

.pacotes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  max-width: 800px;
  margin: 0 auto;
  background: var(--div);
  border: 1px solid var(--div);
}

.pacote {
  background: var(--white);
  padding: 52px 40px;
  position: relative;
}

.pacote.featured {
  background: var(--ink);
  color: var(--white);
}

.pacote-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 10px;
}

.pacote-nome {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
}

.pacote.featured .pacote-nome {
  color: var(--white);
}

.pacote-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  min-height: 48px;
  line-height: 1.7;
}

.pacote.featured .pacote-desc {
  color: rgba(255, 255, 255, 0.55);
}

.pacote-preco {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 6px;
}

.pacote.featured .pacote-preco {
  color: rgba(255, 255, 255, 0.4);
}

.pacote-valor {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 32px;
}

.pacote.featured .pacote-valor {
  color: var(--gold);
}

.pacote-includes {
  list-style: none;
  text-align: left;
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
}

.pacote.featured .pacote-includes {
  color: rgba(255, 255, 255, 0.65);
}

.pacote-includes li::before {
  content: '–';
  color: var(--gold);
  margin-right: 10px;
}

/* --------------------------------------------------------------------------
   7. Contato / CTA
   -------------------------------------------------------------------------- */
#contato {
  background: var(--off);
  text-align: center;
  padding: 96px 48px;
}

.cta-text {
  font-size: 15px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 18px 36px;
  transition: background 0.2s, transform 0.2s;
}

.btn-whatsapp:hover {
  background: #111;
  transform: translateY(-1px);
}

.wa-sticky {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wa-sticky:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
footer {
  padding: 32px 48px;
  border-top: 1px solid var(--div);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

footer span {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   9. Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  nav {
    padding: 16px 20px;
  }

  .nav-links {
    display: none;
  }

  section {
    padding: 64px 20px;
  }

  .hero-content {
    padding: 0 20px 48px;
  }

  .gallery-grid {
    columns: 2;
  }

  .pacotes-grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
