/* ==========================================================================
   CAFÉ S/A CAFETERIA & CONFEITARIA ARTESANAL
   Design System: Verde Oliva Escuro / Verde Colegial, Editorial & Acolhedor
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIÁVEIS DE DESIGN (Paleta Verde Oliva Escuro & Verde Colegial)
   -------------------------------------------------------------------------- */
:root {
  /* Tons Principais (Verde Colegial Profundo, Oliva Escuro & Neutros Quentes) */
  --bg-primary: #101712;        /* Verde oliva escuro / verde colegial profundo */
  --bg-secondary: #151F18;      /* Camada verde floresta editorial */
  --bg-surface: #1C2920;        /* Superfícies estruturais suaves */
  
  --text-main: #F5F2EA;         /* Linho claro acolhedor */
  --text-muted: #A8B5A5;        /* Sálvia neutra / areia oliva */
  --text-subtle: #6D7E6B;       /* Oliva mineral / legendas */
  
  --accent-warm: #8EA883;       /* Verde oliva clássico colegial suave */
  --accent-gold: #D2BA85;       /* Dourado pálido / âmbar sensorial */
  --border-subtle: rgba(245, 242, 234, 0.08);
  --border-active: rgba(142, 168, 131, 0.35);

  /* Tipografia Editorial */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Espaçamentos e Layout */
  --container-max: 1320px;
  --gutter-desktop: clamp(2rem, 5vw, 6rem);
  --header-height: 88px;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
  position: relative;
}

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

ul {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. CAMADA DE VÍDEO CONTÍNUO (Fundo Fixo & Overlay Semitransparente)
   Ordem das camadas:
   1. Vídeo de fundo (z-index: 1)
   2. Overlay escuro semitransparente (z-index: 2)
   3. Textos das seções (z-index: 10)
   4. Cabeçalho (z-index: 100)
   -------------------------------------------------------------------------- */
.video-layer-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.bg-scroll-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.video-overlay-tint {
  position: absolute;
  inset: 0;
  background: rgba(14, 21, 16, 0.48);
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
  z-index: 2;
}

/* Garante que o wrapper da experiência e o conteúdo fiquem na camada 3 */
.page-content,
.cinematic-experience {
  position: relative;
  z-index: 10;
}

/* --------------------------------------------------------------------------
   4. CABEÇALHO FIXO E MINIMALISTA
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(16, 23, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.header-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logotipo Integrado no Cabeçalho */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2F3632; /* Cinza mineral fosco sofisticado */
  border: 1px solid rgba(245, 242, 234, 0.14);
  border-radius: 12px; /* Quadrado arredondado */
  padding: 3px 6px; /* Padding reduzido para a logo preencher o espaço */
  line-height: 1;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.brand-logo-wrap:hover {
  background-color: #38403B;
  border-color: var(--accent-warm);
  transform: translateY(-1px);
}

.brand-logo-img {
  height: 44px;
  width: auto;
  filter: invert(1) brightness(1.15);
  mix-blend-mode: screen;
  display: block;
  transform: scale(1.18); /* Proporção maior preenchendo a moldura */
}

/* Menu de Navegação */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}

.nav-link {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease, letter-spacing 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--accent-warm);
  transition: width 0.3s var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Status Minimalista */
.header-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.status-indicator {
  width: 6px;
  height: 6px;
  background-color: #8fae85;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(143, 174, 133, 0.6);
}

/* Botão Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 6px;
  z-index: 110;
}

.mobile-toggle .line {
  width: 24px;
  height: 1.5px;
  background-color: var(--text-main);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --------------------------------------------------------------------------
   5. ESTRUTURA GERAL DAS SEÇÕES (Min-Height: 100vh)
   -------------------------------------------------------------------------- */
.page-content {
  position: relative;
  z-index: 1;
}

.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-height) + 2rem) var(--gutter-desktop) 4rem;
  position: relative;
  background: transparent;
}

.content-wrapper {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Tipografia Comum de Seção */
.section-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--text-main);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.section-lead {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* --------------------------------------------------------------------------
   6. LAYOUTS ALTERNADOS (Seções 1 a 5)
   -------------------------------------------------------------------------- */

/* SEÇÃO 1: ABERTURA (Centralizada) */
.section-hero {
  text-align: center;
  align-items: center;
}

.section-hero .content-wrapper {
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-brand-emblem {
  margin-bottom: 2.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #2F3632; /* Cinza mineral elegante */
  border: 1px solid rgba(245, 242, 234, 0.16);
  border-radius: 26px; /* Quadrado com cantos arredondados */
  padding: 0.4rem 0.8rem; /* Padding reduzido para a logo preencher a moldura */
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.4s ease;
  overflow: hidden;
}

.hero-logo-box:hover {
  background-color: #38423C;
  border-color: var(--accent-warm);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hero-logo-img {
  height: clamp(140px, 18vw, 185px); /* Altura e preenchimento aumentados */
  width: auto;
  filter: invert(1) brightness(1.18);
  mix-blend-mode: screen;
  display: block;
  transform: scale(1.18); /* Expande a arte da logo dentro do quadro */
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6.2vw, 5.2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin-bottom: 2rem;
}

.hero-description {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 700px;
  margin-bottom: 3.2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.action-anchor {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-main);
  padding: 0.85rem 1.8rem;
  border: 1px solid var(--border-active);
  transition: all 0.35s ease;
  background: rgba(142, 168, 131, 0.05);
}

.action-anchor:hover {
  background: var(--accent-warm);
  color: var(--bg-primary);
  border-color: var(--accent-warm);
}

.divider-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-subtle);
}

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.6;
}

.scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-bar {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--accent-warm) 0%, transparent 100%);
}

/* ESTRUTURA DIVIDIDA (SEÇÕES 2 A 5) COM ÁREAS LIVRES PARA O VÍDEO */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  align-items: center;
  gap: clamp(3rem, 6vw, 8rem);
}

.split-column.content-col {
  max-width: 580px;
}

.split-column.space-col {
  min-height: 250px;
}

/* Alinhamento à Esquerda (Seções 2 e 4) */
.section-align-left .content-col {
  justify-self: start;
}

/* Alinhamento à Direita (Seções 3 e 5) */
.section-align-right .content-col {
  justify-self: end;
}

/* Elementos editoriais da Seção 2: Origem */
.editorial-metadata {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.meta-value {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent-gold);
}

/* Elementos da Seção 3: Métodos */
.method-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
}

.method-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.method-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent-warm);
  opacity: 0.8;
}

.method-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.method-name {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.method-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Elementos da Seção 4: Confeitaria */
.pairing-callout {
  padding: 1.75rem;
  border-left: 2px solid var(--accent-warm);
  background: rgba(245, 242, 234, 0.025);
  margin-top: 1.5rem;
}

.pairing-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-warm);
  display: block;
  margin-bottom: 0.6rem;
}

.pairing-desc {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.5;
}

/* Elementos da Seção 5: Atmosfera */
.atmosphere-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.feature-tag {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
}

/* --------------------------------------------------------------------------
   7. SEÇÃO 6: CARDÁPIO EDITORIAL E NOTAS SENSORIAIS
   -------------------------------------------------------------------------- */
.section-editorial {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.editorial-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.editorial-header {
  max-width: 680px;
  margin-bottom: 4.5rem;
}

.editorial-main-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.editorial-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
}

.column-heading {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--accent-gold);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
}

.menu-entry {
  padding-bottom: 2.25rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px dashed rgba(245, 242, 234, 0.07);
}

.menu-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.entry-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-main);
}

.entry-price {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--accent-warm);
  font-weight: 400;
}

.entry-terroir {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.6;
}

.sensory-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.note-pill {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(245, 242, 234, 0.08);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   8. SEÇÃO 7: GALERIA (Estrutura Preparada)
   -------------------------------------------------------------------------- */
.section-gallery {
  background: var(--bg-primary);
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.gallery-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.gallery-header {
  max-width: 600px;
  margin-bottom: 4rem;
}

.gallery-main-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.gallery-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  min-height: 520px;
}

.gallery-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  position: relative;
  min-height: 240px;
  display: flex;
  transition: border-color 0.3s ease;
}

.gallery-item:hover {
  border-color: var(--border-active);
}

.item-large {
  grid-column: span 7;
  min-height: 380px;
}

.item-tall {
  grid-column: span 5;
  min-height: 380px;
}

.item-standard {
  grid-column: span 6;
  min-height: 260px;
}

.frame-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.frame-tag {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 0.35rem;
}

.frame-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   9. SEÇÃO 8: LOCALIZAÇÃO E CONTATO FINAL (Centralizada)
   -------------------------------------------------------------------------- */
.section-contact {
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.section-contact .content-wrapper {
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 4rem;
  max-width: 780px;
}

.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  width: 100%;
  margin-bottom: 4.5rem;
  text-align: center;
}

.contact-card {
  padding: 2rem 1.5rem;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.detail-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.detail-value {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.final-note {
  margin-bottom: 4.5rem;
}

.manifesto-quote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--accent-gold);
  letter-spacing: 0.02em;
}

/* Rodapé */
.site-footer {
  width: 100%;
}

.footer-line {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo-img {
  height: 38px;
  width: auto;
  filter: invert(1) brightness(1.15);
  mix-blend-mode: screen;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   10. RESPONSIVIDADE (Tablets & Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --gutter-desktop: 2.5rem;
  }

  .section-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .split-column.space-col {
    display: none;
  }

  .split-column.content-col {
    max-width: 100%;
    justify-self: start !important;
  }

  .contact-details-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .item-large, .item-tall, .item-standard {
    grid-column: span 12;
    min-height: 240px;
  }
}

@media (max-width: 860px) {
  .nav-list,
  .header-status {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Gaveta de Navegação Mobile */
  .main-nav.mobile-active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 105;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .main-nav.mobile-active .nav-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .main-nav.mobile-active .nav-link {
    font-size: 1.2rem;
    color: var(--text-main);
  }

  .mobile-toggle.active .line:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .mobile-toggle.active .line:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter-desktop: 1.5rem;
  }

  .section {
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 3rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .action-anchor {
    width: 100%;
    text-align: center;
  }

  .divider-dot {
    display: none;
  }
}
