/* Header, nav, mobile menu for TuitionOS.com (pairs with tbos-homepage.css) */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.td-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.td-brand-link:visited {
  color: var(--ink);
}

.td-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.td-brand-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.td-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.nav-logo,
a.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav-logo > span,
a.nav-logo > span {
  color: var(--accent);
  font-weight: 800;
}

.td-brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .td-brand-icon {
    width: 36px;
    height: 36px;
  }

  .nav-logo,
  a.nav-logo {
    font-size: 1.05rem;
  }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.btn-primary {
  color: #fff !important;
  font-weight: 600;
}

.mobile-menu-toggle {
  display: none;
  color: var(--ink);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    background-color: var(--white);
    flex-direction: column;
    padding: 0;
    border-top: none;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }

  .nav-links.mobile-menu-open {
    max-height: min(85vh, 520px);
    overflow-y: auto;
    padding: 1rem;
    border-top: 1px solid var(--border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-links a:hover {
    background-color: var(--accent-light);
  }

  .nav-links a.btn-primary:hover,
  .nav-links a.btn-primary:focus-visible {
    background-color: var(--accent-dark);
    color: #fff !important;
  }
}

/* Story / content blocks */
.story-prose {
  padding: 48px var(--tbos-page-gutter);
  max-width: var(--tbos-content-max);
  margin: 0 auto;
  box-sizing: border-box;
}

.story-prose h1 {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--ink);
}

.story-prose h2 {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
}

.story-prose p,
.story-prose li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.story-prose ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.story-prose a {
  color: var(--accent);
  font-weight: 600;
}

/* Primary CTAs inside prose must stay white (prose link color would override .btn-primary). */
.story-prose a.btn-primary,
.story-prose a.btn-primary:visited {
  color: #fff !important;
}

.story-prose a.btn-primary:hover,
.story-prose a.btn-primary:focus-visible {
  color: #fff !important;
}

/* Secondary CTA (hero) */
a.btn-secondary {
  display: inline-block;
  padding: 15px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  background: var(--white);
  color: var(--accent) !important;
  border: 2px solid var(--accent);
  transition: background 0.15s, transform 0.12s;
}

a.btn-secondary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}
