/* ===================================================
   Thornfield Institute — Custom Styles
   Archetype: Soft / Organic
   Palette: Campus Rose
   =================================================== */

/* ---------- Base & Typography ---------- */

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Karla', sans-serif;
  color: #1f2937;
  background: #ffffff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
}

/* ---------- Blob Background ---------- */

.blob-bg {
  position: relative;
  overflow: hidden;
}

.blob-bg::before,
.blob-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.blob-bg::before {
  width: 520px;
  height: 520px;
  background: #fce7f3;
  top: -120px;
  left: -100px;
}

.blob-bg::after {
  width: 440px;
  height: 440px;
  background: #fbcfe8;
  bottom: -80px;
  right: -60px;
}

.blob-bg > * {
  position: relative;
  z-index: 1;
}

/* ---------- Pill Nav ---------- */

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #500724;
  transition: background 0.2s, color 0.2s;
}

.nav-pill:hover {
  background: #fdf2f8;
  color: #be185d;
}

.nav-pill.active {
  background: #be185d;
  color: #ffffff;
}

/* ---------- Soft Cards ---------- */

.soft-card {
  background: #fdf2f8;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(190, 24, 93, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.soft-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(190, 24, 93, 0.10);
}

/* ---------- Pill Buttons ---------- */

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: #be185d;
  color: #ffffff;
}

.btn-primary:hover {
  background: #9d174d;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(190, 24, 93, 0.25);
}

.btn-secondary {
  background: #fdf2f8;
  color: #be185d;
  border: 2px solid #fbcfe8;
}

.btn-secondary:hover {
  background: #fce7f3;
  transform: translateY(-1px);
}

/* ---------- Circled Icons ---------- */

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: #fdf2f8;
  color: #be185d;
  flex-shrink: 0;
}

.icon-circle-lg {
  width: 3.5rem;
  height: 3.5rem;
}

/* ---------- Accordion ---------- */

.accordion-item {
  border-bottom: 1px solid #fce7f3;
}

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Sora', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1f2937;
  transition: color 0.2s;
}

.accordion-btn:hover {
  color: #be185d;
}

.accordion-btn .chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: #be185d;
}

.accordion-btn[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.accordion-panel.open {
  max-height: 600px;
  padding-bottom: 1.25rem;
}

/* ---------- Stats Bar ---------- */

.stats-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  min-width: 140px;
}

.stat-number {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #be185d;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* ---------- Testimonial Stars ---------- */

.stars {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
}

.star-empty {
  color: #d1d5db;
}

/* ---------- Form Styles ---------- */

.form-input {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border: 2px solid #fce7f3;
  border-radius: 9999px;
  font-family: 'Karla', sans-serif;
  font-size: 0.9375rem;
  color: #1f2937;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #f472b6;
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.15);
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-textarea {
  border-radius: 1.5rem;
  resize: vertical;
  min-height: 120px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23be185d' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 16px;
  padding-right: 3rem;
}

/* ---------- Fade-in Scroll ---------- */

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* ---------- Cookie Banner ---------- */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #fce7f3;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner.hide {
  transform: translateY(100%);
}

/* ---------- Bottom Sheet (Mobile Menu) ---------- */

.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(80, 7, 36, 0.3);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bottom-sheet-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  padding: 1.5rem;
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  max-height: 70vh;
  overflow-y: auto;
}

.bottom-sheet.active {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: #d1d5db;
  border-radius: 9999px;
  margin: 0 auto 1rem;
}

/* ---------- Two-Tone Heading Utility ---------- */

.heading-twotone .first-word {
  color: #be185d;
}

/* ---------- Section Alternating Bg ---------- */

.section-alt {
  background: #fdf2f8;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .blob-bg::before {
    width: 300px;
    height: 300px;
    top: -60px;
    left: -50px;
  }

  .blob-bg::after {
    width: 260px;
    height: 260px;
    bottom: -40px;
    right: -30px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .soft-card {
    padding: 1.5rem;
  }
}

/* ---------- Legal Pages ---------- */

.legal-content h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #500724;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #831843;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: #374151;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: #374151;
}

.legal-content a {
  color: #be185d;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #9d174d;
}

/* ---------- Print ---------- */

@media print {
  .cookie-banner,
  .bottom-sheet,
  .bottom-sheet-overlay,
  nav {
    display: none !important;
  }
}
