/* ==========================================================
   Léia Machado Studio - Design System
   Paleta Oficial — Manual de Marca (Versão 1)
   ========================================================== */

:root {
  /* Paleta Oficial da Marca */
  --brand-laranja-raposa: #EB7418;
  --brand-ambar: #F7A745;
  --brand-brasa: #B04A12;
  --brand-azul-noite: #0F3049;
  --brand-azul-aco: #225677;
  --brand-azul-ceu: #70AFCD;
  --brand-preto-cena: #0B0B0B;

  /* Surface & Background Tier (Preto Cena + Azul Noite + Azul Aço) */
  --surface-base: #0B0B0B;
  --surface-elevated: #101A24;
  --surface-dim: #0E1318;
  --surface-container-lowest: #0F3049;
  --surface-container-low: #102130;
  --surface-container: #132A3E;
  --surface-container-high: #0F3049;
  --surface-container-highest: #225677;
  --surface-bright: #225677;
  --surface-glass: rgba(11, 11, 11, 0.84);
  --surface-glass-card: rgba(15, 48, 73, 0.72);

  /* Borders & Atmospheric Overlays (Azul Aço & Laranja Raposa) */
  --border-glass: rgba(34, 86, 119, 0.45);
  --border-subtle: rgba(34, 86, 119, 0.28);
  --border-accent: rgba(235, 116, 24, 0.55);

  /* Primary Brand Orange Palette (Laranja Raposa / Âmbar / Brasa) */
  --primary: #EB7418;
  --primary-container: #EB7418;
  --on-primary: #0B0B0B;
  --on-primary-container: #0B0B0B;
  --inverse-primary: #B04A12;
  --primary-fixed-dim: #F7A745;

  /* Secondary Blue & Interaction Accents */
  --secondary: #70AFCD;
  --secondary-container: #0F3049;
  --on-secondary: #0B0B0B;
  --on-secondary-container: #FFFFFF;
  --accent-champagne: #F7A745;
  --accent-copper: #EB7418;

  /* Neutral Text & Typography Colors (WCAG 2.1) */
  --text-primary: #FFFFFF;
  --text-muted: #A8BDCB;
  --text-dim: #8EA4B5;
  --on-surface: #F2F5F8;
  --on-surface-variant: #C7D6E2;

  /* Typography Fonts — Manual de Marca (p. 9) */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Archivo', Arial, Helvetica, sans-serif;

  /* Geometry & Spacing */
  --container-max: 1380px;
  --gutter-desktop: 2rem;
  --gutter-mobile: 1rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-cinematic: 0 24px 64px -16px rgba(0, 0, 0, 0.85);
  --shadow-glow-copper: 0 0 28px -4px rgba(235, 116, 24, 0.24);
  --shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.78);
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--surface-base);
  color: var(--on-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--surface-base);
  color: var(--on-surface);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--surface-base);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-container-high);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-copper);
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-transform: none;
}

.font-serif {
  font-family: var(--font-serif);
  font-weight: 400;
}

.font-display-hero {
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 4.8vw, 3.85rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
}

.font-headline-lg {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
}

.font-headline-md {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
}

.font-headline-sm {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
}

.font-quote-editorial,
.font-signature {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.4;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
}

.label-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-azul-ceu);
}

.label-button {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Measure for running copy (up to ~66 characters per brand manual p. 9) */
.prose-measure {
  max-width: 66ch;
  line-height: 1.6;
}

.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-primary-color { color: var(--primary); }
.text-copper { color: var(--accent-copper); }
.text-champagne { color: var(--accent-champagne); }

/* ==================== LAYOUT & CONTAINERS ==================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter-mobile);
  padding-right: var(--gutter-mobile);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--gutter-desktop);
    padding-right: var(--gutter-desktop);
  }
}

.section-py {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-py-lg {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

/* Grids */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.gap-xl { gap: 2.5rem; }
.gap-2xl { gap: 4rem; }

/* Flex utilities */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.overflow-hidden { overflow: hidden; }

/* ==================== BUTTONS ==================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--brand-laranja-raposa);
  color: var(--brand-preto-cena);
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(235, 116, 24, 0.28);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  background-color: var(--brand-ambar);
  color: var(--brand-preto-cena);
  box-shadow: 0 6px 24px rgba(247, 167, 69, 0.38);
  transform: translateY(-2px);
}

.btn-primary:active {
  background-color: var(--brand-laranja-raposa);
  border-color: var(--brand-brasa);
  color: var(--brand-preto-cena);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--on-surface);
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background-color: var(--brand-azul-noite);
  color: var(--brand-ambar);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.btn-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-container-low);
  color: var(--brand-azul-ceu);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}

.btn-icon:hover {
  background-color: var(--brand-azul-noite);
  color: var(--text-primary);
  border-color: var(--brand-laranja-raposa);
}

/* ==================== GLASSMORPHISM & CARDS ==================== */
.card-glass {
  background: var(--surface-glass-card);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-glass:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-cinematic), var(--shadow-glow-copper);
  transform: translateY(-3px);
}

.card-solid {
  background-color: var(--surface-container-low);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  transition: all 0.35s ease;
}

.card-solid:hover {
  background-color: var(--surface-container);
  border-color: var(--border-glass);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* Pill badge */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background-color: rgba(15, 48, 73, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
}

/* ==================== HEADER & NAVIGATION ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 5rem;
  z-index: 100;
  background-color: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border-glass);
  transition: background-color 0.3s ease;
}

.nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--on-surface-variant);
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--surface-container-high);
}

.nav-link.active {
  background-color: var(--surface-container-highest);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Mobile drawer menu */
.mobile-drawer {
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11, 11, 11, 0.97);
  backdrop-filter: blur(24px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  gap: 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==================== HERO SECTION ==================== */
.hero-canvas {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  transform: scale(1.05);
  transition: transform 1.2s ease-out;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,11,11,0.85) 0%, rgba(11,11,11,0.5) 50%, var(--surface-base) 100%);
  pointer-events: none;
}

.ambient-glow-copper {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -20%);
  width: 700px;
  height: 480px;
  background: radial-gradient(circle, rgba(235, 116, 24, 0.16) 0%, rgba(176, 74, 18, 0.06) 50%, transparent 70%);
  filter: blur(120px);
  pointer-events: none;
  border-radius: var(--radius-full);
}

/* ==================== PORTFOLIO & SHOWCASE ==================== */
.filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background-color: var(--surface-container);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: var(--brand-azul-aco);
  color: var(--text-primary);
  border-color: var(--brand-azul-ceu);
}

.filter-btn.active {
  background-color: var(--brand-laranja-raposa);
  color: var(--brand-preto-cena);
  border-color: transparent;
  box-shadow: 0 0 24px rgba(235, 116, 24, 0.32);
}

/* Play trigger circle */
.play-trigger {
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius-full);
  background: rgba(15, 48, 73, 0.86);
  backdrop-filter: blur(20px);
  border: 2px solid var(--brand-laranja-raposa);
  color: var(--brand-laranja-raposa);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 35px rgba(11, 11, 11, 0.85), 0 0 24px rgba(235, 116, 24, 0.25);
}

.play-trigger:hover {
  background: var(--brand-laranja-raposa);
  color: var(--brand-preto-cena);
  border-color: var(--brand-ambar);
  transform: scale(1.12);
  box-shadow: 0 12px 40px rgba(235, 116, 24, 0.45);
}

/* Waveform Bars */
.waveform-container {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}

.wave-bar {
  width: 2px;
  background-color: var(--brand-laranja-raposa);
  border-radius: 1px;
}

/* ==================== FORMS & CONCIERGE ==================== */
.form-input {
  width: 100%;
  background-color: var(--brand-preto-cena);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: all 0.25s ease;
}

.form-input:focus {
  outline: none;
  background-color: var(--surface-container-low);
  border-color: var(--brand-laranja-raposa);
  box-shadow: 0 0 0 3px rgba(235, 116, 24, 0.18);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.format-chip {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: var(--surface-container);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.format-chip:hover {
  color: var(--text-primary);
  background-color: var(--brand-azul-aco);
}

.format-chip.selected {
  background-color: var(--brand-azul-noite);
  color: var(--brand-ambar);
  border-color: var(--brand-laranja-raposa);
  box-shadow: 0 0 16px rgba(235, 116, 24, 0.2);
}

/* ==================== VIDEO LIGHTBOX MODAL ==================== */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.video-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-container {
  width: 100%;
  max-width: 1080px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,0.9);
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal-backdrop.open .video-modal-container {
  transform: scale(1);
}

.video-modal-header {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==================== FOOTER ==================== */
.site-footer {
  background-color: var(--brand-preto-cena);
  border-top: 1px solid var(--border-glass);
  padding-top: 4rem;
  padding-bottom: 4rem;
}
