/* ==========================================================================
   Igbokwenu.ca — Theme v3
   Minimal top nav. No hero image. Flat cards.
   ========================================================================== */

:root {
  --color-accent: #8b2020;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==========================================================================
   Navigation — thin, fixed top bar
   ========================================================================== */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 48px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  max-width: none;
  overflow: visible;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  border-bottom: none;
}
.nav-logo:hover { border-bottom: none; }
.nav-logo img { width: 24px; height: 24px; border-radius: 4px; }

.nav-logo-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.nav-logo-sub { display: none; }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
  height: 48px;
}

.nav-links > li {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 0.75rem;
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  font-weight: 400;
  border-bottom: none;
  transition: color 0.15s ease;
  white-space: nowrap;
  line-height: 1;
}
.nav-links > li > a:hover { color: var(--color-text); border-bottom: none; }
.nav-links > li > a.active { color: var(--color-text); font-weight: 500; }
.nav-links > li > a .dropdown-arrow { font-size: 0.5rem; opacity: 0.4; }

/* Dropdowns */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 160px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.25rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  list-style: none;
  z-index: 1001;
}
.nav-links > li:hover > .nav-dropdown { opacity: 1; visibility: visible; }
.nav-links > li:hover > a .dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown li a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  border-bottom: none;
  transition: background 0.15s ease;
}
.nav-dropdown li a:hover { background: var(--color-surface); color: var(--color-text); border-bottom: none; }
.nav-dropdown li a.active { color: var(--color-text); font-weight: 500; }

.nav-dropdown[aria-hidden="true"] { opacity: 0; visibility: hidden; pointer-events: none; }
.nav-dropdown[aria-hidden="false"] { opacity: 1; visibility: visible; pointer-events: auto; }

/* CTA */
.nav-cta { flex-shrink: 0; }
.nav-cta a {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-bottom: none;
  transition: color 0.15s ease;
}
.nav-cta a:hover { color: var(--color-text); border-bottom: none; }

/* Hamburger */
.hamburger-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
}
.hamburger-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--color-text);
  transition: all 0.2s ease;
}
.hamburger-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger-toggle.active span:nth-child(2) { opacity: 0; }
.hamburger-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile menu */
.mobile-nav-menu {
  display: none;
  position: fixed;
  top: 48px; left: 0; right: 0; bottom: 0;
  background: var(--color-bg);
  z-index: 999;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.mobile-nav-menu.open { transform: translateY(0); }

.mobile-nav-menu ul {
  list-style: none;
  padding: var(--space-md);
}

.mobile-nav-menu > ul > li > a {
  display: block;
  padding: 0.75rem 0;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 400;
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav-menu > ul > li > a:hover,
.mobile-nav-menu > ul > li > a.active {
  color: var(--color-text);
  font-weight: 500;
}

.mobile-nav-menu .mobile-nav-section {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  padding: var(--space-md) 0 var(--space-xs);
  font-weight: 500;
}
.mobile-nav-menu .mobile-nav-divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-xs) 0;
}

.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 998;
}
.mobile-nav-overlay.active { display: block; }

/* ==========================================================================
   Main Content — offset by nav
   ========================================================================== */
.main-content { margin-top: 48px; }

/* Hero — constrain to content width, align with rest of page */
.hero {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
}

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

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

/* hero-cta as link, not button container */
a.hero-cta {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-text);
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  margin-top: var(--space-sm);
}
a.hero-cta:hover {
  color: var(--color-text-secondary);
  border-bottom-color: var(--color-text-secondary);
  background: none;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   Content card accents
   ========================================================================== */
.content-card { border-left-color: var(--color-accent); }
.content-card h4 { color: var(--color-text-secondary); }

.content-card .procedure-steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}
.content-card .procedure-steps li {
  counter-increment: step;
  padding: 0.75rem 0 0.75rem 2.5rem;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}
.content-card .procedure-steps li:last-child { border-bottom: none; }
.content-card .procedure-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0.75rem;
  width: 1.5rem; height: 1.5rem;
  background: var(--color-text);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Festival card */
.festival-card { border-left-color: var(--color-accent); }
.festival-card h2 { border-bottom: none; padding-bottom: 0; margin-top: 0; }

/* Instruments Grid */
.instruments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
  margin: var(--space-sm) 0;
}
.instrument-tag {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  text-align: center;
  font-weight: 500;
  transition: border-color 0.15s ease;
}
.instrument-tag:hover { border-color: var(--color-text-secondary); }

.instrument-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 2px solid var(--color-accent);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  transition: border-color 0.15s ease;
}
.instrument-card:hover { border-color: var(--color-text-secondary); }

/* Attire List */
.attire-list dt {
  font-weight: 500;
  color: var(--color-text);
  margin-top: var(--space-md);
  font-size: 1rem;
}
.attire-list dd {
  margin-left: 0;
  margin-bottom: var(--space-xs);
  padding-left: var(--space-sm);
  border-left: 2px solid var(--color-border);
  color: var(--color-text-secondary);
}

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

.footer-nav {
  display: flex;
  gap: var(--space-sm);
}
.footer-nav a {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-border);
}
.footer-nav a:hover { color: var(--color-text); border-color: var(--color-text); }

.footer-meta { font-size: 0.875rem; color: var(--color-text-muted); }
.footer-meta a { color: var(--color-text-muted); }
.footer-ilarepress { font-size: 0.875rem; color: var(--color-text-muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger-toggle { display: flex; }
  .mobile-nav-menu { display: block; }
}

@media (max-width: 480px) {
  .top-nav { padding: 0 var(--space-sm); }
  .instruments-grid { grid-template-columns: 1fr 1fr; }
}
