/* Header Component Styles */
.c-header {
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-soft);
}

.c-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* gap: var(--space-8); */
  min-height: 64px;
  padding-left: 16px !important;
  padding-right: 16px !important;
  padding: 0 1rem !important; /* Mobile padding - override container class */
}

@media (min-width: 640px) {
  .c-header__inner {
    padding-left: 32px !important;
    padding-right: 32px !important;
    padding: 0 2rem !important; /* Tablet padding */
  }
}

@media (min-width: 1024px) {
  .c-header__inner {
    padding-left: 80px !important;
    padding-right: 80px !important;
    padding: 0 5rem !important; /* Desktop padding */
  }
}

/* Brand */
.c-header__brand {
  display: inline-flex;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.1px;
}
.c-header__brand > * + * {
  margin-left: var(--space-2);
}
.c-header__brand img {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.c-header__mark {
  color: var(--brand);
}
.c-header__name {
  font-size: 1.125rem;
}
.c-header__tm {
  margin-left: 2px;
  font-size: 0.625rem;
  color: rgba(46, 50, 56, 0.7);
}

/* Hamburger */
.c-header__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
}
.c-header__bar + .c-header__bar {
  margin-top: 3px;
}
.c-header__bar {
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
}
@media (min-width: 1024px) {
  .c-header__toggle {
    display: none;
  }
}

/* Nav (desktop) */
.c-header__nav {
  display: none;
}
@media (min-width: 1024px) {
  .c-header__nav {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}
.c-header__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.c-header__list > li + li {
  margin-left: var(--space-6);
}

/* Actions (desktop) */
.c-header__actions {
  display: none;
  align-items: center;
}
.c-header__actions > * + * {
  margin-left: var(--space-4);
}
@media (min-width: 1024px) {
  .c-header__actions {
    display: inline-flex;
  }
}

/* Links & Pills */
.link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 400;
}
.link:hover {
  opacity: 0.85;
}

.link-with-caret {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 400;
}
.link-with-caret:hover {
  opacity: 0.85;
}
.caret {
  transform: translateY(1px);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}
.pill--active {
  background: var(--brand);
  color: var(--text-inverse);
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-4);
  height: 40px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 500;
  border: 1px solid transparent;
}
.btn--cta {
  background: var(--cta);
  color: #1a2b0a; /* ensure readable on green */
}

/* Mobile drawer */
.c-header__drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: none;
  z-index: 1000;
  transition: background-color 0.3s ease;
}
.c-header__drawer[aria-hidden="false"] {
  display: block;
  background: rgba(0, 0, 0, 0.5);
}
.c-header__drawer[hidden] {
  display: none;
}

.c-header__drawer-nav {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(85vw, 320px);
  background: var(--bg-body);
  padding: var(--space-8) var(--space-4);
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 16px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.c-header__drawer-nav > * + * {
  margin-top: var(--space-4);
}

.c-header__drawer[aria-hidden="false"] .c-header__drawer-nav {
  transform: translateX(0);
}

/* Mobile navigation items */
.c-header__drawer-nav .pill,
.c-header__drawer-nav .link,
.c-header__drawer-nav .btn {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.c-header__drawer-nav .pill:hover,
.c-header__drawer-nav .link:hover,
.c-header__drawer-nav .btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.divider {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin: var(--space-2) 0;
}

/* Layout balance on desktop: center nav */
@media (min-width: 1024px) {
  .c-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-6);
  }
  
  .c-header__brand {
    justify-self: start;
  }
  
  .c-header__nav {
    justify-self: center;
  }
  
  .c-header__actions {
    justify-self: end;
  }
}





