/* 
  燈火 — Tōka Agency - Global Styles
  Aesthetic: Japanese Dark Luxury
*/

:root {
  --bg-dark: #0a0804;
  --bg-red: #8b1e14; /* Red lacquer theme */
  --bg-light: #fdfaf5; /* Clean white/cream theme */
  --gold: #c9a84c;
  --gold-light: #e6c87a;
  --terracotta: #8b3a2a;
  --lacquer-red: #d12e20;
  --cream: #f5f0e8;
  --text-dark: #1a1a1a;
  
  --sidebar-width: 80px;
  --sidebar-width-expanded: 280px;
  --transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  
  /* Artistic Typography */
  --font-jp: 'Kaisei Tokumin', serif;
  --font-art: 'Cinzel Decorative', serif;
  --font-sub: 'Playfair Display', serif;
  --font-body: 'Jost', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
}

/* Tipografia Geral */
h1, h2, h3, .jp-title {
  font-family: var(--font-jp);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 4px;
}

.sub-title {
  font-family: var(--font-sub);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--lacquer-red); /* Highlight Color */
  margin-top: 5px;
  display: block;
}

.art-title {
  font-family: var(--font-art);
  color: var(--gold);
  letter-spacing: 8px;
  text-transform: uppercase;
}

/* Section Themes */
.theme-black { background-color: var(--bg-dark); color: var(--cream); }
.theme-white { background-color: var(--bg-light); color: var(--text-dark); }
.theme-red { background-color: var(--bg-red); color: white; }

.theme-white h2, .theme-white .sub-title { color: var(--bg-red); }
.theme-white p { color: rgba(0,0,0,0.7); }

.theme-red h2, .theme-red .sub-title { color: var(--gold); }
.theme-red .menu-card { background: rgba(0,0,0,0.3); border-color: rgba(255,215,0,0.2); }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button, .cta-button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-body);
  transition: var(--transition);
}

/* Sidebar Navigation */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background: rgba(10, 8, 4, 0.98);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(201, 168, 76, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 0;
  transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  overflow: hidden;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar:hover {
  width: var(--sidebar-width-expanded);
}

.sidebar-logo {
  margin-bottom: 5rem;
  transition: transform 0.4s ease;
}

.sidebar:hover .sidebar-logo {
  transform: scale(1.1);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: rgba(245, 240, 232, 0.6);
  position: relative;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-item i {
  font-size: 1.4rem;
  min-width: 50px;
  text-align: center;
  transition: transform 0.3s ease;
}

.nav-item span {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  font-family: var(--font-jp);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.sidebar:hover .nav-item span {
  opacity: 1;
  transform: translateX(0);
}

.nav-item:hover, .nav-item.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.03);
}

.nav-item:hover i {
  transform: scale(1.2);
}

.nav-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, var(--gold), var(--terracotta));
  transition: height 0.4s ease;
}

.nav-item:hover::after, .nav-item.active::after {
  height: 100%;
}

/* Mobile Header (Hidden on Desktop) */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(10, 8, 4, 0.9);
  backdrop-filter: blur(10px);
  z-index: 999;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.menu-toggle {
  background: none;
  color: var(--gold);
  font-size: 2rem;
}

/* Fullscreen Menu Mobile */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-nav-item {
  font-size: 1.5rem;
  font-family: var(--font-jp);
}

/* Grid & Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
}

main {
  margin-left: var(--sidebar-width);
  transition: var(--transition);
}

/* Responsividade */
@media (max-width: 992px) {
  .sidebar {
    display: none;
  }
  .mobile-header {
    display: flex;
  }
  main {
    margin-left: 0;
    padding-top: 70px;
  }
  
  .hero-content h1 {
    font-size: 3.5rem !important;
  }
  
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
  
  /* Story Section */
  #sobre .container {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
  
  #sobre .about-img {
    order: -1;
  }
  
  /* Menu Preview Section */
  .theme-red .container > div:nth-child(2) {
    grid-template-columns: 1fr !important;
    gap: 4rem !important;
  }
  
  .theme-red .container > div:first-child {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
  
  /* Footer */
  footer .container {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
    text-align: center;
  }
  
  footer div:last-child {
    text-align: center !important;
  }
  
  /* Hero CTA */
  .cta-group {
    flex-direction: column;
    gap: 1rem !important;
  }
  
  .cta-button {
    width: 100%;
    padding: 1rem 2rem !important;
  }
  
  .art-title {
    letter-spacing: 4px;
    font-size: 2rem !important;
  }
  
  .sub-title {
    font-size: 1.2rem;
    letter-spacing: 5px !important;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.8rem !important;
  }
}

/* Advanced Animations */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(50px); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.reveal {
  opacity: 0;
  transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.active {
  animation: revealUp 1.2s forwards;
}

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

.animate-fade {
  animation: fadeIn 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
