/* ================================================
   COMPONENTS.CSS — UI COMPONENTS + VISUAL ELEMENTS
   Works with warm academic design tokens
   ================================================ */


/* =====================================================
   HEADER / NAVIGATION
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background-color: rgba(252, 250, 247, 0.92);
  border-bottom: 1px solid var(--color-border-subtle);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: 72px;
}

.site-logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary-strong);
  letter-spacing: 0.02em;
}

.site-logo span {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color var(--transition-default);
}

.site-nav a:hover {
  color: var(--color-primary-strong);
  text-decoration: none;
}


/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;

  transition:
    background var(--transition-default),
    color var(--transition-default),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary-strong);
  border: 1px solid var(--color-primary-soft);
}

.btn-secondary:hover {
  background: var(--color-primary-soft);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary-strong);
  border: 1px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
}


/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  padding-block: var(--space-10);
}

.hero-eyebrow {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-soft);
  margin-bottom: var(--space-2);
}

.hero-title {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Hero image card */
.hero-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background-color: var(--color-surface);
  display: flex;
  flex-direction: column;
}

.hero-card-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 62%;
  position: relative;
}

.hero-card-body {
  padding: var(--space-4);
}

.hero-card-body h2 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  margin-bottom: var(--space-2);
}

.hero-card-body p {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
}


/* =====================================================
   FEATURE CARDS (Choose your path / Popular resources)
   ===================================================== */
.feature-grid {
  margin-top: var(--space-6);
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background-color: var(--color-primary-soft);
  color: var(--color-primary-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.feature-title {
  font-size: var(--fs-h3);
}

.feature-link {
  margin-top: auto;
  font-size: var(--fs-caption);
  color: var(--color-primary-strong);
}

.feature-link:hover {
  text-decoration: underline;
}


/* =====================================================
   SEARCH BLOCK
   ===================================================== */
.search-section {
  background-color: var(--color-surface-alt);
}

.search-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin-inline: auto;
}

.search-input-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.search-input-row input[type="text"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-subtle);
  font-size: 0.95rem;
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.chip {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-caption);
  font-weight: 500;
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
  border: none;
}


/* =====================================================
   HOW IT WORKS (Step cards)
   ===================================================== */
.steps-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step-card {
  background: var(--color-surface);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
}

.step-number {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-soft);
  margin-bottom: var(--space-2);
}


/* =====================================================
   NEWSLETTER
   ===================================================== */
.newsletter {
  background: #111827;
  color: var(--color-text-on-dark);
}

.newsletter-inner {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .newsletter-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.newsletter-input-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.newsletter-input-row input[type="email"] {
  padding: 0.75rem 1rem;
  flex: 1;
  min-width: 220px;
  border-radius: var(--radius-pill);
  border: none;
}


/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: #111827;
  color: var(--color-text-on-dark);
  padding-block: var(--space-8);
  margin-top: var(--space-10);
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(3, 1fr);
  }
}

.footer-heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: #E5E7EB;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  font-size: 0.8rem;
  color: #9CA3AF;
}


/* =====================================================
   RESPONSIVE HEADER (TEMPORARY)
   ===================================================== */
@media (max-width: 900px) {
  .site-nav {
    display: none; /* Mobile nav coming later */
  }
  .site-header-inner {
    height: 64px;
  }
  .hero-title {
    font-size: var(--fs-h1);
    line-height: var(--lh-h1);
  }
}