/* style.css — Mobile-first, dark premium, galeria de arte */

:root {
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --text-light: #f0f0f0;
  --text-muted: #b0b0b0;
  --gold: #c9a96b;
  --gold-soft: #a88b4e;
  --border-dim: #2a2a2a;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container-padding: 1.5rem;
  --header-height: 70px;
  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-sans);
  line-height: 1.5;
  font-size: 16px;
}

/* Tipografia */
h1, h2, h3, h4, .section-title, .logo-text {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin-top: 0.75rem;
}

.text-center {
  text-align: center;
}
.text-center.section-title::after {
  margin-left: auto;
  margin-right: auto;
}

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

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header — mobile-first */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-dim);
  transition: padding 0.3s, background 0.3s;
  padding: 0.5rem 0;
}

.site-header.scrolled {
  padding: 0.2rem 0;
  background-color: #0a0a0a;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-icon {
  font-size: 28px;
  color: var(--gold);
}
.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
}

/* Navegação mobile */
.main-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-color: #0e0e0e;
  padding: 1.5rem;
  border-bottom: 1px solid #222;
  transform: translateY(-150%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  z-index: 999;
}
.main-nav.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.nav-link {
  font-size: 1.2rem;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #2a2a2a;
}
.desktop-cta {
  display: none;
}

/* Hamburguer */
.hamburger {
  background: none;
  border: none;
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.hamburger-line {
  width: 28px;
  height: 2px;
  background: var(--text-light);
  transition: 0.2s;
}
.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: url('./img/toque-dedos-preto.jpg') no-repeat center center/cover;
  background-color: #0a0a0a;
  margin-top: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  background: linear-gradient(0deg, #000000 0%, rgba(10,10,10,0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem 1.5rem;
}
.hero-title {
  font-size: 2.5rem;
}
.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}
.btn {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 1rem 2.2rem;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  text-align: center;
}
.btn-primary {
  background: var(--gold);
  color: #0a0a0a;
}
.btn-primary:hover {
  background: transparent;
  color: var(--gold);
}
.btn-block {
  width: 100%;
}

/* Seções */
.section {
  padding: 5rem 0;
  scroll-margin-top: 80px;
}

/* Studio grid */
.studio-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.studio-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  filter: grayscale(0.2);
}
.studio-text .link-arrow {
  color: var(--gold);
  font-weight: 500;
  margin-top: 1.5rem;
  display: inline-block;
}

/* Serviços */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.service-card {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  border: 1px solid #1f1f1f;
}
.service-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* Timeline */
.historia-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
  font-size: 1.2rem;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 3.5rem;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 8px;
  background: var(--bg-dark);
  padding: 0 4px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  background: var(--bg-dark);
  border: 2px solid var(--gold);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background: var(--gold);
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(201, 169, 107, 0.1);
}

.timeline-content {
  background: var(--bg-card);
  padding: 1.8rem;
  border-radius: 8px;
  border: 1px solid var(--border-dim);
  transition: transform 0.3s, border-color 0.3s;
}

.timeline-item:hover .timeline-content {
  border-color: var(--gold);
  transform: translateX(6px);
}

.timeline-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.timeline-content p {
  color: var(--text-muted);
}

/* Equipe */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.team-card {
  background: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px -8px rgba(201,169,107,0.1);
}
.team-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.team-info {
  padding: 1.5rem;
}
.team-specialty {
  color: var(--gold);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}
.team-instagram {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Galeria */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* Formulário */
.budget-form {
  background: #101010;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #262626;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
label {
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
}
input, select, .file-custom {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 0.9rem 1rem;
  color: white;
  font-size: 1rem;
  border-radius: 4px;
  font-family: var(--font-sans);
}
.file-upload-wrapper {
  position: relative;
}
.file-input {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.file-custom {
  display: block;
  background: #1a1a1a;
  text-align: center;
}
.form-feedback {
  margin-top: 1rem;
  color: var(--gold);
}

/* Footer */
.site-footer {
  background: #050505;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid #222;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 0.5rem;
}
.footer-col a:hover {
  color: var(--gold);
}
.social-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom {
  text-align: center;
  color: #888;
  font-size: 0.85rem;
}

/* Animações */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== TABLET ========== */
@media (min-width: 768px) {
  :root { --container-padding: 2.5rem; }
  h1 { font-size: 3.2rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { flex-direction: row; }
  .footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
  
  .timeline::before { left: 50%; transform: translateX(-50%); }
  .timeline-item { padding-left: 0; width: 50%; }
  .timeline-item:nth-child(odd) { margin-right: auto; padding-right: 50px; }
  .timeline-item:nth-child(even) { margin-left: auto; padding-left: 50px; transform: translateX(20px); }
  .timeline-item:nth-child(even) .timeline-marker { left: -12px; }
  .timeline-item:nth-child(odd) .timeline-marker { left: auto; right: -12px; }
  .timeline-item:nth-child(odd) .timeline-content { text-align: right; }
  .timeline-item:nth-child(odd):hover .timeline-content { transform: translateX(-6px); }
}

/* ========== DESKTOP ========== */
@media (min-width: 1024px) {
  .hamburger { display: none; }
  .desktop-cta {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
  }
  .main-nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    padding: 0;
    width: auto;
    border: none;
  }
  .nav-list { flex-direction: row; gap: 2rem; }
  .nav-link { border-bottom: none; font-size: 1rem; }
  .studio-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .team-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .timeline-content { padding: 2.2rem; }
  .timeline-content h3 { font-size: 1.8rem; }
}