

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--t-font-body);
  background: var(--t-bg);
  color: var(--t-ink);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

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

.section-padded { padding: 5rem 0; }

/* ============================================
   NAV
   ============================================ */
nav#siteNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 100;
  transition: all 0.3s;
}
[data-theme="escuro"] nav#siteNav {
  background: rgba(17,24,39,0.95);
  border-bottom-color: rgba(255,255,255,0.1);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--t-font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--t-ink);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  flex: 1;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--t-ink-muted);
  position: relative;
  transition: color var(--transition-fast);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--t-accent);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
  transform-origin: center;
}
.nav-links a:hover {
  color: var(--t-ink);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-cta {
  background: var(--t-primary);
  color: var(--t-bg);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.85; }
/* Botão hambúrguer (visível só no mobile, controlado na media query abaixo) */
.t-surface .nav-hamburger {
  display: none;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--t-ink);
  margin-left: auto;
}

/* Mobile nav menu (dropdown ao abrir o hambúrguer).
   Markup usa .t-nav-links; o seletor precisa do prefixo t- e do escopo
   .t-surface para vencer .t-surface .t-nav-links { display:flex }. */
.t-surface .t-nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--t-bg);
  border-bottom: 1px solid var(--t-border);
  padding: 1rem 1.5rem;
  gap: 1rem;
  z-index: 50;
}

/* ============================================
   HERO
   ============================================ */
.section-hero, .t-hero {
  position: relative;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a1a1a;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  padding: 2rem;
  max-width: 700px;
}
.hero-eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--t-font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-subtitle {
  font-size: 1.125rem;
  opacity: 0.85;
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   BOTÕES
   ============================================ */
.btn-primary {
  background: var(--t-accent);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-block;
  transition: opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--t-accent-rgb), 0.35);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn-secondary {
  background: transparent;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); }

/* ============================================
   SOBRE
   ============================================ */
.section-sobre { background: var(--t-bg); }
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.sobre-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 1rem;
  background: var(--t-bg-alt);
}
.section-title {
  font-family: var(--t-font-display);
  font-size: 2.25rem;
  line-height: 1.2;
  color: var(--t-ink);
  margin-bottom: 1.25rem;
}
.section-subtitle {
  color: var(--t-ink-muted);
  font-size: 1.0625rem;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}
.section-text {
  color: var(--t-ink-muted);
  font-size: 1rem;
  line-height: 1.8;
  white-space: pre-line;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header .section-title::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--t-accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ============================================
   PORTFOLIO
   ============================================ */
.section-portfolio { background: var(--t-bg-alt); }
.portfolio-grid { gap: 1rem; }
.portfolio-item {
  border-radius: 0.75rem;
  background: var(--t-bg-alt);
}
.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: 0.75rem;
}
.portfolio-item img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portfolio-item:hover::after { opacity: 1; }
.portfolio-item:hover img { transform: scale(1.07); }

/* ============================================
   SERVIÇOS
   ============================================ */
.section-servicos { background: var(--t-bg); }
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.servico-card {
  background: var(--t-bg-alt);
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}
[data-theme="escuro"] .servico-card { border-color: rgba(255,255,255,0.06); }
.servico-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--t-accent-rgb), 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.servico-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--t-accent-rgb), 0.25);
}
.servico-card:hover::before {
  opacity: 1;
}
.servico-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.servico-title {
  font-family: var(--t-font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--t-ink);
}
.servico-desc { color: var(--t-ink-muted); font-size: 0.875rem; line-height: 1.7; }
.servico-price { color: var(--t-accent); font-weight: 700; margin-top: 1rem; font-size: 1rem; }

/* ============================================
   DEPOIMENTOS
   ============================================ */
.section-depoimentos { background: var(--t-bg-alt); }
.depoimentos-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.depoimento-card {
  background: var(--t-bg);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  border: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  position: relative;
}
[data-theme="escuro"] .depoimento-card {
  background: var(--t-bg-alt);
  border-color: rgba(255,255,255,0.06);
}
.depoimento-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--t-font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--t-accent);
  opacity: 0.15;
  pointer-events: none;
}
.depoimento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.depoimento-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 0.75rem; }
.depoimento-text { color: var(--t-ink-muted); font-size: 0.9375rem; line-height: 1.7; font-style: italic; }
.depoimento-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.depoimento-photo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--t-bg-alt);
  flex-shrink: 0;
}
.depoimento-name { font-weight: 600; font-size: 0.875rem; color: var(--t-ink); }

/* ============================================
   CONTATO
   ============================================ */
.section-contato { background: var(--t-bg); }
[data-theme="escuro"] .section-contato { background: var(--t-bg); }
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contato-info { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.contato-item { display: flex; align-items: center; gap: 0.75rem; }
.contato-item span { color: var(--t-ink-muted); font-size: 0.9375rem; }
.contato-form form { display: flex; flex-direction: column; gap: 1rem; }
.contato-form input,
.contato-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-family: var(--t-font-body);
  background: var(--t-bg-alt);
  color: var(--t-ink);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}
[data-theme="escuro"] .contato-form input,
[data-theme="escuro"] .contato-form textarea {
  border-color: rgba(255,255,255,0.12);
}
.contato-form input:focus,
.contato-form textarea:focus {
  outline: none;
  border-color: var(--t-accent);
  box-shadow: 0 0 0 3px rgba(var(--t-accent-rgb), 0.12);
}

/* ============================================
   FORMULÁRIO DE DEPOIMENTO
   ============================================ */
.depoimento-form-public form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.depoimento-form-public input,
.depoimento-form-public textarea,
.depoimento-form-public select {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-family: var(--t-font-body);
  background: var(--t-bg-alt);
  color: var(--t-ink);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}
[data-theme="escuro"] .depoimento-form-public input,
[data-theme="escuro"] .depoimento-form-public textarea,
[data-theme="escuro"] .depoimento-form-public select {
  border-color: rgba(255,255,255,0.12);
}
.depoimento-form-public input:focus,
.depoimento-form-public textarea:focus,
.depoimento-form-public select:focus {
  outline: none;
  border-color: var(--t-accent);
  box-shadow: 0 0 0 3px rgba(var(--t-accent-rgb), 0.12);
}
.depoimento-form-public textarea {
  resize: vertical;
  min-height: 100px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--t-primary);
  color: rgba(255,255,255,0.7);
  padding: 2rem 0;
}
[data-theme="escuro"] .site-footer {
  background: #0d1117;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--t-font-display);
  font-size: 1.25rem;
  color: white;
  margin-bottom: 0.25rem;
}
.footer-copy { font-size: 0.8125rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  transition: color 0.2s;
}
.footer-social a:hover { color: white; }

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #25d366;
  border-radius: 50%;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  z-index: 9999;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ============================================
   GLOBAL SCROLL ANCHOR FIX
   ============================================ */
html { scroll-padding-top: 5rem; }
section { scroll-margin-top: 5rem; }

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */
@media (max-width: 640px) {
  body { font-size: 0.95rem; }
  .section-title { font-size: 1.8rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .servicos-grid { grid-template-columns: 1fr; }
  .contato-grid { grid-template-columns: 1fr; }
  .sobre-grid { grid-template-columns: 1fr; }
  .nav-inner { padding: 0.75rem 1rem; }
  .studio-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex !important; }
.lb-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none;
  color: white; font-size: 2rem;
  cursor: pointer; line-height: 1;
}
.lb-arrow {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none; color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.2s;
}
.lb-arrow:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-image {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 0.5rem;
}

/* ============================================
   TELA EM CONSTRUÇÃO
   ============================================ */
.site-building {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 1rem;
  padding: 2rem;
}
.site-building h1 {
  font-family: var(--t-font-display);
  font-size: 2rem;
  color: var(--t-ink);
}
.site-building p { color: var(--t-ink-muted); }

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
  .t-surface .t-nav-links:not(.open) { display: none; }
  /* !important vence o display inline que o JS aplica em #navCta */
  .t-surface #navCta { display: none !important; }
  .t-surface .nav-hamburger { display: block; }

  .sobre-grid,
  .contato-grid { grid-template-columns: 1fr; gap: 2rem; }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .servicos-grid { grid-template-columns: 1fr; }

  .section-padded { padding: 3rem 0; }
  .section-title { font-size: 1.75rem; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-social { justify-content: center; }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .hero-title { font-size: 2rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
}


/* Álbuns */
.section-albuns { background: inherit; }
.album-card {
  background: var(--t-bg-alt) !important;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.album-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* Estúdio */
.section-estudio { background: inherit; }
.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.studio-info { display: flex; flex-direction: column; gap: 0.75rem; }
.studio-info-item { font-size: 1rem; }
.studio-info a { color: inherit; text-decoration: underline; }

@keyframes fadeInUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ============================================
   SEPARADORES ENTRE SEÇÕES
   ============================================ */
.section-servicos + .section-depoimentos,
.section-sobre + .section-portfolio {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
[data-theme="escuro"] .section-servicos + .section-depoimentos,
[data-theme="escuro"] .section-sobre + .section-portfolio {
  border-top-color: rgba(255, 255, 255, 0.05);
}

/* ============================================
   SEÇÕES CUSTOMIZADAS DO FOTÓGRAFO
   ============================================ */
.section-custom { background: var(--t-bg); }
.section-custom .section-title { margin-bottom: 1.5rem; }
.section-custom .section-text { font-size: 1.0625rem; line-height: 1.85; color: var(--t-ink-muted); }
.section-custom ul li { font-size: 1rem; line-height: 1.7; color: var(--t-ink-muted); }
.section-custom .btn-primary { margin-top: 0; }

@media (max-width: 768px) {
  .section-custom [style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ============================================
   MELHORIAS GERAIS DE FORMATAÇÃO
   ============================================ */

/* FAQ melhorado */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  padding: 0;
}
[data-theme="escuro"] .faq-item {
  border-bottom-color: rgba(255,255,255,0.08) !important;
}
.faq-question {
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--t-ink);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.faq-question:hover { color: var(--t-accent); }

/* Newsletter melhorada */
.section-newsletter { background: var(--t-bg-alt); }
.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-family: var(--t-font-body);
  background: var(--t-bg);
  color: var(--t-ink);
}
[data-theme="escuro"] .newsletter-form input { border-color: rgba(255,255,255,0.12); }
.newsletter-form .btn-primary { border-radius: 9999px; white-space: nowrap; }

/* Seção depoimento-form */
.section-depoimento-form { background: var(--t-bg); }

/* Melhor espaçamento entre seções irmãs */
.section-portfolio + .section-sobre,
.section-sobre + .section-portfolio { border-top: none; }

/* Portfólio: borda sutil entre items */
.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.5rem;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
  pointer-events: none;
}

/* Serviços melhorado */
.servico-card .servico-title { font-size: 1.125rem; margin-bottom: 0.5rem; }

/* Navbar scroll effect */
nav#siteNav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Botão hero responsivo */
@media (max-width: 480px) {
  .btn-primary, .btn-secondary {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* Respeitar preferências de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
