/* ==========================================================================
   STUDIO I | DAN MARTINS — DESIGN SYSTEM & LUXURY VISUAL IDENTITY
   Estética de Alto Padrão (Classe A) | Mobile-First & Responsivo
   ========================================================================== */

:root {
  --primary: #C5A059;
  --primary-light: #E0C78D;
  --primary-dark: #A27F38;
  --background: #F9F8F6;
  --foreground: #2C2A28;
  --dark-surface: #1a1614;
  --dark-elevated: #24201e;
  --border-subtle: rgba(44, 42, 40, 0.08);
  --border-gold: rgba(197, 160, 89, 0.25);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --spacing-section: clamp(4.5rem, 8vw, 8.5rem);
}

/* --- RESET & SUAVIZAÇÃO GLOBAL --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* --- ACESSIBILIDADE & SEO TÉCNICO --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- TIPOGRAFIA DE LUXO (MOBILE-FIRST) --- */
h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
  letter-spacing: -0.015em;
}

.tracking-luxury {
  letter-spacing: 0.35em;
}

/* --- ESPAÇAMENTO E RESPIRO VISUAL (WHITE SPACE) --- */
.section-luxury {
  padding-top: var(--spacing-section);
  padding-bottom: var(--spacing-section);
}

/* --- CARDS & EFEITOS DE VIDRO (GLASSMORPHISM) --- */
.card-glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  box-shadow: 0 20px 45px rgba(26, 22, 20, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(197, 160, 89, 0.12);
}

/* --- SEÇÃO PORTFÓLIO --- */
.portfolio-section {
  padding: var(--spacing-section) 0;
  background-color: var(--dark-surface);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: #ffffff;
}

/* Filtros */
.filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 35px;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.filter-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  cursor: pointer;
  padding: 6px 12px;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Grade de Imagens (Masonry / Grid Responsivo) */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  border-radius: 4px;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover img {
  transform: scale(1.04);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 22, 20, 0.1) 0%, rgba(26, 22, 20, 0.65) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* --- BOTÕES & INTERAÇÕES DE ALTO LUXO --- */
.btn-luxury-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background-color: var(--primary);
  color: #1a1614;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  border: 1px solid var(--primary);
  box-shadow: 0 10px 25px rgba(197, 160, 89, 0.2);
  transition: all 0.3s ease;
}

.btn-luxury-primary:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #1a1614;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.btn-luxury-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn-luxury-outline:hover {
  background-color: #ffffff;
  color: #1a1614;
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* --- ELEMENTOS DO BLOG --- */
.blog-quote {
  border-left: 3px solid var(--primary);
  padding-left: 1.5rem;
  font-style: italic;
}

.blog-content img {
  border-radius: 1rem;
}

.blog-category {
  color: var(--primary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
}

/* --- UTILITÁRIOS DE ROLAGEM MOBILE TOUCH --- */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Suavização de toque em telas móveis */
.snap-x {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.snap-center {
  scroll-snap-align: center;
}

/* Compensação do cabeçalho fixo na rolagem de âncoras */
section[id], div[id] {
  scroll-margin-top: clamp(80px, 12vw, 120px);
}
