:root {
  --bg-main: #050509;
  --bg-elevated: #0d0d15;
  --bg-alt: #101018;
  --text-main: #f5f5f7;
  --text-muted: #9a9ab0;
  --accent: #d9a86c;
  --accent-soft: rgba(217, 168, 108, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius: 10px;
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* RESET BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #151520 0, #050509 55%, #010106 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5, 5, 12, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

/* LOGO */
.logo a {
  display: inline-flex;
  align-items: center;
}

.logo-svg {
  height: 32px;
  width: auto;
  display: block;
}

/* Desktop large */
@media (min-width: 1120px) {
  .logo-svg {
    height: 36px;
  }
}

/* Mobile */
@media (max-width: 520px) {
  .logo-svg {
    height: 26px;
  }
}

/* NAV */
.main-nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  font-size: 0.85rem;
}

.main-nav a {
  color: var(--text-muted);
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.main-nav a:hover {
  color: var(--text-main);
}

.main-nav a:hover::after {
  width: 100%;
}

/* LANG SWITCH */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.lang-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: var(--text-muted);
}

.lang-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #f0c58a);
  color: #050509;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn-small {
  padding: 0.55rem 1.3rem;
  font-size: 0.8rem;
}

/* HERO */
.hero {
  position: relative;
  min-height: 70vh;
  color: var(--text-main);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/hero-desktop.jpg');
  background-size: cover;
  background-position: center center;
  filter: grayscale(0.1) contrast(1.1) brightness(0.65);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0, 0, 0, 0.2), transparent 45%),
              linear-gradient(to right, rgba(5, 5, 10, 0.95), rgba(5, 5, 10, 0.4), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 540px;
  padding: 4.5rem 0 4rem;
}

.hero h1 {
  font-family: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 3.3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.7rem;
}

/* HERO MOBILE */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
  }

  .hero-bg {
    background-image: url('img/hero-mobile.jpg');
    background-position: center top;
    transform: scale(1.02);
  }

  .hero-content {
    padding: 3.3rem 0 3rem;
  }
}

/* SECTIONS */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, #141426 0, #090912 60%);
}

.section h2 {
  font-family: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 620px;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 0.85rem;
  color: var(--text-muted);
}

.about-image img {
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* CARDS / SERVIÇOS */
.cards-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.card {
  background: linear-gradient(135deg, rgba(15, 15, 26, 0.96), rgba(8, 8, 15, 0.96));
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.card h3 {
  margin-top: 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card ul {
  padding-left: 1.1rem;
  margin: 0.75rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* FAQ */
.faq {
  margin-top: 3rem;
}

.faq h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

details {
  background: rgba(10, 10, 18, 0.95);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-subtle);
}

summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
}

details p {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* PORTFÓLIO */
.portfolio-filters {
  margin: 2rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(10, 10, 18, 0.9);
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text-muted);
}

.filter-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  cursor: zoom-in;
  background: #000;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.04);
  opacity: 0.95;
}

.portfolio-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
  color: #f7f7f7;
  font-size: 0.85rem;
}

/* TESTEMUNHOS */
.testimonials-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.testimonial {
  background: linear-gradient(145deg, rgba(15, 15, 26, 0.96), rgba(8, 8, 16, 0.96));
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  font-size: 0.95rem;
}

.quote {
  margin: 0 0 0.8rem;
  color: var(--text-main);
}

.author {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* CONTACTO */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-info p {
  margin: 0.35rem 0;
  color: var(--text-muted);
}

.contact-form {
  background: rgba(10, 10, 18, 0.96);
  border-radius: 14px;
  padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: inherit;
  font-size: 0.9rem;
  background: rgba(8, 8, 14, 0.94);
  color: var(--text-main);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
}

.form-status {
  font-size: 0.85rem;
  min-height: 1rem;
  margin: 0.15rem 0 0.6rem;
}

.form-status.success {
  color: #7ed988;
}

.form-status.error {
  color: #ff8a8a;
}

/* FOOTER */
.site-footer {
  padding: 1.8rem 0;
  border-top: 1px solid var(--border-subtle);
  background: #050509;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 2, 6, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  transition: opacity 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  position: relative;
  max-width: min(1050px, 92vw);
  max-height: 85vh;
  border-radius: 14px;
  overflow: hidden;
  background: #050509;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.lightbox-inner img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  background: #000;
}

.lightbox-caption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  border: none;
  background: transparent;
  color: #f5f5f7;
  font-size: 2rem;
  cursor: pointer;
  z-index: 41;
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 880px) {
  .main-nav {
    display: none;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 2.1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .cards-grid,
  .portfolio-grid,
  .testimonials-grid {
    gap: 1rem;
  }

  .site-header .header-inner {
    padding: 0.5rem 0;
  }

  .lang-switch {
    font-size: 0.75rem;
  }
}

/* --------- NAV MOBILE / HAMBURGER --------- */

/* Botão hamburger base (escondido em desktop) */
.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(10, 10, 18, 0.9);
  padding: 0;
  margin-left: 0.75rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
  transition: transform 0.2s ease, opacity 0.2s ease, translate 0.2s ease;
}

.nav-toggle span + span {
  margin-top: 3px;
}

/* Animação quando o menu está aberto */
.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
  translate: 0 3px;
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
  translate: 0 -3px;
}

/* Sobrescrita específica para mobile (vem DEPOIS da anterior, não remove nada) */
@media (max-width: 880px) {
  .header-inner {
    gap: 0.5rem;
  }

  .main-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    display: none; /* continua escondido por defeito, abrimos com .open via JS */
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.25rem;
    background: rgba(5, 5, 12, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    gap: 0.75rem;
    font-size: 0.9rem;
    z-index: 29;
  }

  .main-nav a {
    width: 100%;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* Fallback mobile: garantir que .reveal fica visível */
@media (max-width: 768px) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   === LANDING PAGES TYPOGRAPHY (Retratos, Família, Casal, etc.)
   ============================================================ */

/* H1 das páginas simples — igual ao hero do index */
.page-simple h1 {
  font-family: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 3.3rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
  color: var(--text-main);
}

/* H2 das páginas simples — alinhado com sections do index */
.page-simple h2 {
  font-family: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}

/* Parágrafos nas páginas simples */
.page-simple p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* H3 caso uses no futuro nas landing pages */
.page-simple h3 {
  font-family: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.3rem;
  margin: 2rem 0 0.8rem;
}
