/* ==========================================================================
   ProudlyArewa.ca — Theme v3
   Minimal sidebar. No hero image. Flat cards.
   ========================================================================== */

:root {
  --color-accent: #1a5c20;
  --sidebar-width: 240px;
  --nav-height: 0px;
  --font-heading: 'Inter', 'Source Sans 3', -apple-system, sans-serif;
}

/* ==========================================================================
   Sidebar — flat, no shadow, thin border
   ========================================================================== */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  z-index: 900;
  padding: 0;
}

.sidebar-header {
  padding: var(--space-md) var(--space-md) var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.sidebar-logo {
  display: block;
  max-width: 100px;
  margin: 0;
  border-bottom: none;
}
.sidebar-logo:hover { border-bottom: none; }
.sidebar-logo img { width: 100%; height: auto; }

.sidebar-nav { padding: var(--space-xs) 0; }

.sidebar-nav .nav-home {
  display: block;
  padding: 0.5rem var(--space-md);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s ease;
}
.sidebar-nav .nav-home:hover { border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.sidebar-nav .nav-home.active { font-weight: 500; }

/* Section headers */
.nav-section { border-bottom: 1px solid var(--color-border); }

.nav-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem var(--space-md);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.nav-section-header:hover { background: var(--color-surface); }

.nav-section-header .chevron {
  width: 14px; height: 14px;
  transition: transform 0.15s ease;
  fill: var(--color-text-muted);
}
.nav-section-header.expanded .chevron { transform: rotate(180deg); }

.nav-section-links {
  list-style: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.nav-section-links.expanded { max-height: 500px; }

.nav-section-links a {
  display: block;
  padding: 0.375rem var(--space-md) 0.375rem 2rem;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  border-bottom: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-section-links a:hover { background: var(--color-surface); color: var(--color-text); border-bottom: none; }
.nav-section-links a.active { color: var(--color-text); font-weight: 500; }

.nav-tools {
  padding: var(--space-xs) 0;
  border-top: 1px solid var(--color-border);
}
.nav-tools a {
  display: block;
  padding: 0.5rem var(--space-md);
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  border-bottom: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-tools a:hover { background: var(--color-surface); color: var(--color-text); border-bottom: none; }
.nav-tools a.active { color: var(--color-text); font-weight: 500; }

.tool-icon {
  font-size: 0.875rem;
  margin-right: 0.375rem;
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   Mobile Header
   ========================================================================== */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 48px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 950;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-sm);
}
.mobile-logo img { height: 24px; width: auto; }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  min-width: 44px; min-height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--color-text);
  transition: all 0.2s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 890;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sidebar-overlay.visible { opacity: 1; }

/* ==========================================================================
   Main Content — offset by sidebar
   ========================================================================== */
.main-content { margin-left: var(--sidebar-width); }

/* Hero — proper padding inside content area */
.hero {
  padding: var(--space-lg) var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

.hero-content {
  padding: 0;
}

.hero h1 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.hero .subtitle {
  font-size: 1rem;
}

/* Content wrapper — left-align with proper side padding */
.content-wrapper {
  max-width: none;
  margin: 0;
  padding: 0 var(--space-md) var(--space-xl) var(--space-md);
}

/* Culture grid — fill available width */
.culture-grid {
  margin-top: 0;
}

/* ==========================================================================
   Section Divider — line only
   ========================================================================== */
.section-divider {
  display: block;
  background: var(--color-border);
  height: 1px;
  margin: var(--space-xl) 0;
}
.section-divider::before, .section-divider::after { display: none; }
.section-divider .dot { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Sidebar scrollbar */
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--color-border); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
  .sidebar.open { transform: translateX(0); }
  .mobile-header { display: flex; }
  .main-content { margin-left: 0; margin-top: 48px; }
}
