/*
Theme Name: FotoLucas
Theme URI: https://fotolucas.blog
Author: Lucas
Author URI: https://fotolucas.blog
Description: Tema de portfólio para fotógrafo, com portfólio filtrável (Casamentos, Aniversários e Outros) e página Sobre.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fotolucas
*/

/* ===== Variáveis e base ===== */
:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1f232c;
  --text: #e8eaed;
  --text-muted: #a1a7b3;
  --accent: #e0a458;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --max-width: 1200px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: 5rem; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 600;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  margin-top: 0.5rem;
}
.section-sub { color: var(--text-muted); max-width: 540px; margin: 0.75rem auto 0; }

/* ===== Botões ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  left: -999px; top: 0;
  background: var(--accent);
  color: #000;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===== Cabeçalho ===== */
.site-header {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.25rem;
}
.logo-mark { color: var(--accent); font-size: 1.4rem; }
.logo-text { letter-spacing: 0.02em; }

.site-nav ul { display: flex; gap: 2rem; }
.site-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.2s;
}
.site-nav a:hover,
.site-nav a.is-active,
.site-nav .current-menu-item > a { color: var(--text); }
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.site-nav a:hover::after,
.site-nav a.is-active::after,
.site-nav .current-menu-item > a::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: 0;
  cursor: pointer; padding: 0.5rem;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(15,17,21,0.9), rgba(15,17,21,0.35)),
    var(--hero-image, url('https://fotolucas.blog/wp-content/uploads/2026/10/IMG_6070.jpg')) center/cover;
}
.hero-content { position: relative; max-width: 640px; }
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== Filtros do portfólio ===== */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.is-active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* ===== Galeria ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .overlay { opacity: 1; }
.overlay .cat {
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.overlay .title { color: #fff; font-weight: 600; }
.gallery-item.is-hidden { display: none; }
.gallery-empty { text-align: center; color: var(--text-muted); grid-column: 1 / -1; padding: 2rem; }

/* ===== Serviços ===== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s, border-color 0.2s;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.service-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--text-muted); font-size: 0.98rem; }

/* ===== CTA ===== */
.cta {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}
.cta p { color: var(--text-muted); margin-bottom: 2rem; }

/* ===== Página / conteúdo padrão ===== */
.page-content { max-width: 800px; }
.page-content h1, .page-content h2, .page-content h3 { font-family: var(--font-serif); margin-bottom: 1rem; }
.page-content p { color: var(--text-muted); margin-bottom: 1.25rem; }
.page-content img { border-radius: var(--radius); margin-block: 1.5rem; }

/* ===== Página Sobre ===== */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-photo img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.25rem;
}
.about-text p { color: var(--text-muted); margin-bottom: 1.25rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--accent);
  font-weight: 700;
}
.stat .label { color: var(--text-muted); font-size: 0.9rem; }

.timeline { max-width: 760px; margin-inline: auto; }
.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-year { color: var(--accent); font-weight: 600; }
.timeline-item h4 { margin-bottom: 0.25rem; }
.timeline-item p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Rodapé ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-brand { font-weight: 600; color: var(--accent); }
.footer-copy { color: var(--text-muted); font-size: 0.9rem; }
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-social a:hover { color: var(--accent); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: 0;
  color: #fff; font-size: 2.5rem;
  cursor: pointer; line-height: 1;
}

/* ===== Responsivo ===== */
@media (max-width: 900px) {
  .gallery, .services { grid-template-columns: repeat(2, 1fr); }
  .about-hero { grid-template-columns: 1fr; }
  .about-photo { order: -1; max-width: 400px; margin-inline: auto; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.is-open { max-height: 320px; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1.5rem; }
  .site-nav li { border-bottom: 1px solid var(--border); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a { display: block; padding: 0.9rem 0; }

  .gallery, .services { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.25rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
