/* ===========================
   KB — KOLLEGE BESTIE
   Design System & Global Styles
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  /* Palette */
  --mint:        #B8E4D8;
  --mint-light:  #E4F5F0;
  --mint-deep:   #7DCAB8;
  --lavender:    #C9C3E8;
  --lavender-light: #EAE8F7;
  --cream:       #FDFAF4;
  --cream-warm:  #F7F2E8;
  --pink:        #F0A0BC;
  --pink-deep:   #E8437A;
  --brown:       #3D1F1F;
  --brown-light: #6B3F3F;
  --white:       #FFFFFF;
  --gray-soft:   #F2F0F0;
  --gray-text:   #6B6B6B;

  /* Subject Colors (for auto-cover templates) */
  --bio-color:     #A8D8A8;
  --chem-color:    #FFD6A5;
  --anat-color:    #B8D4F0;
  --fund-color:    #F0C8D8;
  --pharm-color:   #D4B8F0;
  --ob-color:      #FFB8C8;
  --peds-color:    #B8F0E8;
  --research-color: #F0E8B8;

  /* Typography */
  --font-display: 'Nunito', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(61, 31, 31, 0.08);
  --shadow-card: 0 8px 32px rgba(61, 31, 31, 0.10);
  --shadow-hover: 0 12px 40px rgba(61, 31, 31, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--brown);
  line-height: 1.6;
  font-size: 16px;
}

/* ===========================
   TYPOGRAPHY
   =========================== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  color: var(--brown);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p {
  font-family: var(--font-body);
  color: var(--brown-light);
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===========================
   LAYOUT
   =========================== */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

/* ===========================
   NAVIGATION
   =========================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 228, 216, 0.4);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--brown);
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brown-light);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--mint-light);
  color: var(--brown);
}

.nav-cta {
  background: var(--pink-deep) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
}

.nav-cta:hover {
  background: var(--brown) !important;
  color: var(--white) !important;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--brown);
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--pink-deep);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brown);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--white);
  color: var(--brown);
  border: 2px solid var(--mint-deep);
}

.btn-secondary:hover {
  background: var(--mint-light);
  transform: translateY(-2px);
}

.btn-mint {
  background: var(--mint);
  color: var(--brown);
}

.btn-mint:hover {
  background: var(--mint-deep);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ===========================
   TAGS / BADGES
   =========================== */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag-guide   { background: var(--lavender-light); color: var(--brown); }
.tag-pdf     { background: #FFE8D6; color: var(--brown); }
.tag-worksheet { background: var(--mint-light); color: var(--brown); }
.tag-tool    { background: #FFF0D6; color: var(--brown); }
.tag-soon    { background: var(--gray-soft); color: var(--gray-text); }

/* ===========================
   CARDS
   =========================== */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ===========================
   SECTION HEADERS
   =========================== */

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pink-deep);
  background: #FDE8EF;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
  background: var(--brown);
  color: var(--cream);
  padding: 60px 24px 32px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 56px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(253,250,244,0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h5 {
  color: var(--mint);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: rgba(253,250,244,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--mint);
}

.footer-bottom {
  border-top: 1px solid rgba(253,250,244,0.12);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: rgba(253,250,244,0.5);
  font-size: 0.85rem;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--mint-light);
    box-shadow: var(--shadow-card);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
  }

  .nav-mobile-toggle {
    display: block;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}
