/* 
   DAI & BIZUCO — Design System & Editorial Stylesheet
   Quiet Luxury, Timeless Elegance, Minimalist Editorial
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Plus+Jakarta+Sans:wght@200;300;400;500&display=swap');

:root {
  /* Color Palette */
  --color-white: #FFFFFF;
  --color-offwhite: #FAF9F6;
  --color-linen: #F5F2EB;
  --color-sand: #EAE6DC;
  --color-stone: #D7D3C7;
  --color-olive-soft: rgba(138, 154, 134, 0.15);
  --color-olive-text: #606C5B;
  --color-gold-matte: #BC9F77;
  --color-charcoal: #2C2C2A;
  --color-charcoal-muted: #5E5E5A;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-unit: 1rem;
  --section-padding: 10vw 8vw;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-offwhite);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.8;
  font-weight: 300;
}

/* Typography Scale */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--color-charcoal);
  word-break: keep-all;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 2rem;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.3;
}

p {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  color: var(--color-charcoal-muted);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.85;
}

.italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
}

/* Forçar títulos em uma linha no desktop */
@media (min-width: 1025px) {
  h1, h3, h4 {
    white-space: nowrap;
  }
}

@media (min-width: 1200px) {
  .vocacao-quote {
    white-space: nowrap;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.gold-accent { color: var(--color-gold-matte); }
.uppercase-tracking {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-gold-matte);
}

/* Global Layout Containers */
section {
  padding: var(--section-padding);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Header & Navigation */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 4vw;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.logo-header {
  position: absolute;
  left: 4vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
}

.logo-header img {
  height: 45px;
}

header.scrolled .logo-header {
  opacity: 1;
  pointer-events: auto;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--color-charcoal);
  text-decoration: none;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-charcoal);
  text-decoration: none;
  font-weight: 400;
  position: relative;
  transition: opacity 0.4s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-charcoal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Mobile Nav Toggle (Hidden by default) */
.menu-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--color-white);
}

/* 1. Hero Section */
.hero {
  height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: #121212;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%),
              url('assets/images/hero.png') no-repeat center center;
  background-size: cover;
  transform: scale(1.05);
  animation: zoomOut 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-content {
  position: relative;
  z-index: 10;
  color: var(--color-white);
  max-width: 800px;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.5s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-style: italic;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 3.5rem;
}

/* Editorial Button */
.btn-editorial {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-white);
  text-decoration: none;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  transition: border-color 0.4s ease, color 0.4s ease;
}

.btn-editorial::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-editorial:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 2. Nossa Vocação */
.vocacao {
  background-color: var(--color-linen);
  padding-top: 4vw;
  min-height: 80vh;
  align-items: center;
}

.vocacao-container {
  max-width: 1200px;
  padding: 0 2rem;
}

.vocacao-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.8vw, 2.2rem);
  line-height: 1.45;
  color: var(--color-charcoal);
  font-weight: 300;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  word-break: keep-all;
}

/* 3. Nossa História (Editorial Split Grid) */
.historia {
  background-color: var(--color-sand);
}

.grid-editorial-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 8vw;
  align-items: center;
}

.editorial-img-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--color-sand);
}

.editorial-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.35) contrast(0.98) brightness(1.12) saturate(0.8);
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.editorial-img-wrapper:hover .editorial-img {
  transform: scale(1.03);
}

.editorial-content-block {
  padding-right: 4vw;
}

.editorial-content-block p {
  margin-bottom: 1.8rem;
}

/* 4. A Experiência */
.experiencia {
  background-color: var(--color-offwhite);
}

.grid-three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4vw;
  margin-top: 5rem;
}

.card-experiencia {
  padding: 3rem 2rem;
  background-color: var(--color-charcoal);
  color: var(--color-offwhite);
  border: 1px solid rgba(188, 159, 119, 0.15);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
}

.card-experiencia:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--color-gold-matte);
  margin-bottom: 1.5rem;
  display: block;
}

.card-experiencia h3 {
  margin-bottom: 1.2rem;
  font-weight: 400;
  color: #FFFFFF;
}

.card-experiencia p {
  font-size: 0.95rem;
  color: #FFFFFF;
  opacity: 0.95;
}

/* 5. Vídeo Principal (Full Width / Editorial Frame) */
.video-section {
  background-color: var(--color-linen);
  align-items: center;
}

.video-frame {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  background-color: #121212;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3)),
              url('assets/images/detail.png') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.8s ease;
}

.play-btn-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.4s, transform 0.4s, border-color 0.4s;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
}

.play-btn-circle::after {
  content: '';
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--color-white);
  margin-left: 6px;
}

.video-poster:hover .play-btn-circle {
  transform: scale(1.08);
  background-color: var(--color-white);
  border-color: var(--color-white);
}

.video-poster:hover .play-btn-circle::after {
  border-left-color: var(--color-charcoal);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
}

/* 6. Repertório (Minimal Clean Layout) */
.repertoire {
  background-color: var(--color-offwhite);
}

.repertoire-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  position: relative;
  padding-bottom: 4rem;
}

.repertoire-menu-wrapper {
  grid-column: 1 / 5;
  grid-row: 1 / 2;
  padding-top: 2rem;
  z-index: 3;
  background-color: var(--color-offwhite); /* Corrige falha no mix-blend-mode */
}

.repertoire-menu {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.repertoire-tab {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--color-stone);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: color 0.4s ease, padding-left 0.4s ease;
  padding: 0.5rem 0;
}

.repertoire-tab:hover, .repertoire-tab.active {
  color: var(--color-charcoal);
  padding-left: 1rem;
}

.repertoire-tab.active {
  border-left: 2px solid var(--color-gold-matte);
}

/* Editorial Overlap Layout (Master Grid) */
.editorial-overlap-image {
  grid-column: 7 / 12;
  grid-row: 1 / 2;
  width: 100%;
  margin-top: 4rem;
  aspect-ratio: 3 / 4; /* Proporção Vertical */
  object-fit: cover;
  z-index: 1;
  filter: sepia(0.35) contrast(0.98) brightness(1.12) saturate(0.8);
}

.editorial-text-box {
  grid-column: 2 / 10; /* Atravessa da esquerda até a foto */
  grid-row: 2 / 3;
  background-color: #8C7861;
  padding: 3.5rem 3rem;
  z-index: 2;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  margin-top: -15%; /* Sobreposição vertical elegante na foto */
}

/* Modificação para os textos ficarem na horizontal */
.editorial-text-box .repertoire-list {
  flex-direction: row;
  gap: 3rem; /* Espaço amplo para não cortar */
}

.editorial-text-box .repertoire-item {
  flex: 1;
}

.editorial-text-box h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #FFFFFF;
  margin-bottom: 0.8rem;
}

.editorial-text-box p {
  font-size: 0.9rem;
  color: #FFFFFF;
  opacity: 0.9;
  margin-bottom: 0;
}

.repertoire-list {
  display: none;
  flex-direction: column;
  gap: 2.5rem;
}

.repertoire-list.active {
  display: flex;
  animation: fadeIn 0.8s ease forwards;
}

.repertoire-item {
  border-bottom: 1px solid rgba(220, 215, 200, 0.4);
  padding-bottom: 1.5rem;
}

.repertoire-item h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.repertoire-item p {
  font-size: 0.9rem;
}

/* 7. Galeria Editorial (Asymmetric masonry style) */
.galeria {
  background-color: var(--color-sand);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  background-color: var(--color-white);
  aspect-ratio: 3 / 4;
  border: 10px solid var(--color-white);
  outline: 1px solid rgba(188, 159, 119, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.35) contrast(0.98) brightness(1.12) saturate(0.8);
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Ocultar tarja preta na base da foto de casamento antiga */
.gallery-item.crop-bottom img {
  transform: scale(1.25);
  transform-origin: top center;
}

.gallery-item.crop-bottom:hover img {
  transform: scale(1.3);
  transform-origin: top center;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* 8. Depoimentos (Atemporal / Minimal) */
.depoimentos {
  background-color: var(--color-charcoal);
  color: var(--color-offwhite);
  min-height: 80vh;
  align-items: center;
}

.depoimentos-slider {
  max-width: 900px;
  width: 100%;
  position: relative;
}

.depoimento-slide {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.depoimento-slide.active {
  display: block;
  animation: fadeIn 1s ease forwards;
}

.quote-symbol {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--color-gold-matte);
  line-height: 0.1;
  display: block;
  margin-bottom: 2rem;
}

.depoimento-text {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1.6;
  font-style: italic;
  color: var(--color-offwhite);
  margin-bottom: 2.5rem;
}

.depoimento-author {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--color-gold-matte);
  font-weight: 500;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-stone);
  border: none;
  cursor: pointer;
  transition: background-color 0.4s, transform 0.4s;
}

.slider-dot.active {
  background-color: var(--color-gold-matte);
  transform: scale(1.3);
}

/* 9. Contato (Narrative Form) */
.contato {
  background-color: var(--color-linen);
  padding-bottom: 12vw;
}

.contato-wrapper {
  max-width: 850px;
  margin: 4rem auto 0;
}

.narrative-form {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.8;
  color: var(--color-charcoal);
  font-weight: 300;
}

.narrative-form input, .narrative-form select {
  font-family: var(--font-serif);
  font-size: inherit;
  color: var(--color-gold-matte);
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-stone);
  outline: none;
  padding: 0 0.5rem;
  transition: border-color 0.4s;
  width: auto;
  min-width: 150px;
  text-align: center;
  font-weight: 300;
}

.narrative-form input:focus {
  border-bottom-color: var(--color-gold-matte);
}

.narrative-form input::placeholder {
  color: var(--color-stone);
  font-style: italic;
  opacity: 0.7;
}

.contato-submit-wrapper {
  margin-top: 5rem;
  text-align: center;
}

.btn-submit {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-charcoal);
  cursor: pointer;
  padding: 1rem 3rem;
  border: 1px solid var(--color-charcoal);
  transition: background-color 0.4s, color 0.4s;
}

.btn-submit:hover {
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

/* Footer */
footer {
  background-color: var(--color-offwhite);
  padding: 5rem 4vw;
  border-top: 1px solid rgba(220, 215, 200, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  letter-spacing: 0.2em;
  color: var(--color-charcoal);
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-charcoal-muted);
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-stone);
  margin-top: 2rem;
}

/* Scroll Fade-In & Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes zoomOut {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Media Queries (Responsiveness) */
@media (max-width: 1024px) {
  :root {
    --section-padding: 12vw 6vw;
  }
  .grid-editorial-split {
    grid-template-columns: 1fr;
    gap: 5rem;
  }
  .editorial-content-block {
    padding-right: 0;
  }
  .grid-three-col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  /* Reset grid on repertoire for tablet/mobile */
  .repertoire-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .repertoire-menu-wrapper {
    width: 100%;
  }
  .editorial-overlap-image {
    width: 100%;
    margin-top: 2rem;
    aspect-ratio: auto;
  }
  .editorial-text-box {
    margin-top: -3rem;
    width: 90%;
    align-self: center;
    padding: 2.5rem 2rem;
  }
  .editorial-text-box .repertoire-list {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1.5rem 4vw;
    gap: 1.5rem;
    text-align: center;
  }
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .nav-links a {
    font-size: 0.65rem;
  }
  .menu-toggle {
    display: none;
  }
  h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
    margin-bottom: 2rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .narrative-form {
    font-size: 1.15rem;
    line-height: 2;
  }
  .narrative-form input {
    display: inline-block;
    width: 100%;
    margin: 0.5rem 0;
    text-align: center;
  }
  .depoimento-text {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }
  .quote-symbol {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  .footer-copy {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
