/* ============================================
   NEXOR 360 — Layout
   ============================================ */

/* --- Sidebar TOC --- */
.toc-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--dark-text);
  color: var(--white);
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: var(--space-8) 0;
}

.toc-logo {
  display: block;
  padding: 0 var(--space-6);
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.2em;
  color: var(--green-medium);
  text-transform: uppercase;
}

.toc-project {
  display: block;
  padding: 0 var(--space-6);
  margin-bottom: var(--space-8);
  font-size: var(--text-xs);
  color: var(--gray-500);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.toc-list li {
  margin: 0;
}

.toc-list a {
  display: block;
  padding: var(--space-3) var(--space-6);
  color: var(--gray-300);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: all var(--ease-default);
  border-left: 3px solid transparent;
}

.toc-list a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.toc-list a.active {
  color: var(--white);
  border-left-color: var(--green-primary);
  background: rgba(0, 154, 106, 0.1);
}

.toc-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: var(--space-4);
}

.toc-footer-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--green-medium);
  border: 1px solid var(--green-medium);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

/* --- Mobile TOC Toggle --- */
.toc-toggle {
  display: none;
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 200;
  width: 44px;
  height: 44px;
  background: var(--dark-text);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  box-shadow: var(--shadow-md);
}

/* --- Main Content --- */
.proposal-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

/* --- Cover --- */
.cover-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background:
    linear-gradient(160deg, rgba(0,122,84,0.88) 0%, rgba(0,154,106,0.85) 50%, rgba(0,184,122,0.88) 100%),
    url('../img/cover-bg.png') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: var(--space-16);
  position: relative;
  overflow: hidden;
}

.cover-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 40%);
  pointer-events: none;
}

.cover-company {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: var(--space-2);
  position: relative;
}

.cover-tagline {
  font-size: var(--text-sm);
  font-weight: var(--weight-normal);
  opacity: 0.6;
  margin-bottom: var(--space-16);
  position: relative;
}

.cover-divider {
  width: 60px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 auto var(--space-12);
  position: relative;
}

.cover-title {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  position: relative;
}

.cover-subtitle {
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  opacity: 0.9;
  margin-bottom: var(--space-6);
  position: relative;
}

.cover-description {
  font-size: var(--text-lg);
  font-weight: var(--weight-normal);
  opacity: 0.7;
  max-width: 500px;
  margin-bottom: var(--space-16);
  position: relative;
}

.cover-meta {
  display: flex;
  gap: var(--space-8);
  font-size: var(--text-sm);
  opacity: 0.6;
  position: relative;
}

.cover-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cover-classification {
  position: absolute;
  bottom: var(--space-8);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.15em;
  opacity: 0.4;
  text-transform: uppercase;
}

/* --- Sections --- */
.proposal-section {
  padding: var(--space-16) var(--space-12);
  max-width: calc(var(--content-max) + var(--space-12) * 2);
  margin: 0 auto;
  overflow-x: auto;
}

.proposal-section + .proposal-section {
  border-top: 1px solid var(--gray-200);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .toc-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .toc-sidebar.open {
    transform: translateX(0);
  }

  .toc-toggle {
    display: flex;
  }

  .proposal-content {
    margin-left: 0;
  }

  .proposal-section {
    padding: var(--space-10) var(--space-6);
    scroll-margin-top: 60px;
  }
}

@media (max-width: 640px) {
  .cover-title {
    font-size: var(--text-3xl);
  }
  .cover-subtitle {
    font-size: var(--text-xl);
  }
  .cover-meta {
    flex-direction: column;
    gap: var(--space-2);
  }
  .proposal-section {
    padding: var(--space-8) var(--space-4);
  }
}
