/* ============================================
   Leonardo Bittencourt — Photography & Filmmaker
   Estilo: Minimalista / Neutro
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Variáveis */
:root {
  --bg: #ffffff;
  --bg-alt: #f8f8f6;
  --text: #1a1a1a;
  --text-muted: #666666;
  --border: #e0e0dc;
  --accent: #333333;
  --max-w: 1100px;
  --header-h: 68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
}

/* ---- HEADER ---- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.logo a {
  text-decoration: none;
  color: var(--text);
}
.logo-name {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  line-height: 1.1;
}
.logo-sub {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

/* Nav desktop */
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
nav ul li { position: relative; }
nav ul li a {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  transition: color 0.2s;
}
nav ul li a:hover, nav ul li a.active { color: var(--text); }

/* Dropdown */
nav ul li .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  min-width: 180px;
  padding: 0.5rem 0;
}
nav ul li:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
}

/* Hamburguer */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ---- MAIN ---- */
main { padding-top: var(--header-h); min-height: 80vh; }

/* ---- HERO (para páginas de série) ---- */
.hero {
  width: 100%;
  height: 55vh;
  min-height: 320px;
  background: var(--bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-placeholder {
  color: var(--border);
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- CONTAINER ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- SEÇÕES ---- */
.section { padding: 4rem 0; }
.section + .section { border-top: 1px solid var(--border); }

.section-label {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

h1 {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

p { margin-bottom: 1.2rem; color: var(--text); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
}

/* ---- BIO PAGE ---- */
.bio-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5rem;
  align-items: start;
}
.bio-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--bg-alt);
  display: block;
}
.bio-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px dashed var(--border);
}

/* ---- GALERIA ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px dashed var(--border);
}

/* ---- LIGHTBOX ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
}

/* ---- CARDS DE SÉRIES ---- */
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.series-card {
  text-decoration: none;
  color: var(--text);
  display: block;
}
.series-card-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 1rem;
}
.series-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.series-card:hover .series-card-thumb img { transform: scale(1.04); }
.series-card-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.series-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- ESPECIFICAÇÕES ---- */
.specs {
  background: var(--bg-alt);
  padding: 2rem;
  margin: 2rem 0;
}
.specs h3 { margin-bottom: 1rem; }
.specs ul {
  list-style: none;
  padding: 0;
}
.specs ul li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.specs ul li:last-child { border-bottom: none; }

/* ---- TABELA ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}
.data-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}
.data-table td:first-child {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 35%;
}

/* ---- CARACTERÍSTICAS (Kallitype) ---- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}
.feature-item { padding: 2rem; background: var(--bg-alt); }
.feature-item h3 { margin-bottom: 0.75rem; }

/* ---- ALTPRO / CONTATO ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

/* Formulário */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { height: 160px; resize: vertical; }

.btn {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  background: var(--text);
  color: white;
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: #444; }

/* Artigos / Links */
.article-list { list-style: none; padding: 0; }
.article-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.article-list li:last-child { border-bottom: none; }
.article-list .article-title {
  font-style: italic;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.2rem;
}
.article-list .article-meta {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Outras criações */
.creation-block { padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.creation-block:last-child { border-bottom: none; }

/* ---- FOOTER ---- */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 6rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-brand .logo-name { font-size: 0.9rem; }
.footer-brand .logo-sub { margin-top: 0.3rem; }
.footer-info p {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.footer-social { text-align: right; }
.footer-social a {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1rem;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--text); }
.footer-copy {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid var(--border);
  font-family: 'Raleway', sans-serif;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
}

/* ---- RESPONSIVO ---- */
@media (max-width: 900px) {
  .bio-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .bio-photo, .bio-photo-placeholder { max-width: 320px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .series-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; gap: 1rem; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-social { text-align: left; }
}

@media (max-width: 768px) {
  nav ul { display: none; }
  nav ul.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    gap: 0;
  }
  nav ul li a { padding: 0.7rem 1.5rem; display: block; }
  nav ul li .dropdown {
    position: static;
    border: none;
    padding-left: 1rem;
  }
  nav ul li:hover .dropdown { display: none; }
  nav ul li.open-mob .dropdown { display: block; }
  .menu-toggle { display: flex; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .series-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-copy { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 500px) {
  .gallery { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}
