/* ============================================================
   WhichBusinessSchool.com — Main Stylesheet
   Aesthetic: Editorial / Authoritative / Financial Times feel
   ============================================================ */

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

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --navy:       #0d1f3c;
  --navy-mid:   #162d52;
  --gold:       #c8973a;
  --gold-light: #e8b96a;
  --cream:      #f8f5ef;
  --white:      #ffffff;
  --grey-100:   #f2f0eb;
  --grey-200:   #e0ddd5;
  --grey-400:   #9a9690;
  --grey-600:   #5a5750;
  --grey-800:   #2a2825;
  --text-body:  #2a2825;
  --text-muted: #6b6760;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(13,31,60,0.08);
  --shadow-md:  0 4px 16px rgba(13,31,60,0.10);
  --shadow-lg:  0 12px 40px rgba(13,31,60,0.14);

  --max-width:  1160px;
  --transition: 0.2s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── Site Header ────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0;
}

.logo-which {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: block;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.logo-block { display: flex; flex-direction: column; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

.header-nav a:hover { color: var(--gold-light); }

.btn-list-school {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition) !important;
}

.btn-list-school:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 64px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(200,151,58,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 100%, rgba(200,151,58,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto 20px;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.6;
}

/* ── Search Bar ─────────────────────────────────────────────── */
.search-wrap {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.search-wrap input {
  flex: 1;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  border: none;
  outline: none;
  background: var(--white);
  color: var(--text-body);
}

.search-wrap input::placeholder { color: var(--grey-400); }

.search-wrap button {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.search-wrap button:hover { background: var(--gold-light); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 36px;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ── Filter Bar ─────────────────────────────────────────────── */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  padding: 16px 0;
  position: sticky;
  top: 63px;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}

.filter-inner {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--grey-200);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-600);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.pill:hover, .pill.active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.filter-select {
  padding: 7px 32px 7px 12px;
  border: 1.5px solid var(--grey-200);
  border-radius: 20px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-600);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239a9690' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  outline: none;
  transition: border-color var(--transition);
}

.filter-select:hover { border-color: var(--navy); }

/* ── Main Content Grid ──────────────────────────────────────── */
.content-section {
  padding: 48px 0 80px;
}

.content-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 120px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}

.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-list li a {
  display: block;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.sidebar-list li a:hover,
.sidebar-list li a.active {
  background: var(--grey-100);
  color: var(--navy);
  font-weight: 500;
}

.sidebar-list li a.active { border-left: 3px solid var(--gold); padding-left: 5px; }

/* ── Listings Grid ──────────────────────────────────────────── */
.listings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.listings-count {
  font-size: 14px;
  color: var(--text-muted);
}

.listings-count strong { color: var(--text-body); font-weight: 600; }

.sort-select {
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%239a9690' d='M5 7L1 3h8z'/%3E%3C/svg%3E") no-repeat right 8px center;
  cursor: pointer;
  outline: none;
}

.listings-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── School Card ────────────────────────────────────────────── */
.school-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 20px;
  align-items: start;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
}

.school-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--navy);
  transform: translateY(-2px);
}

.school-card.featured {
  border-color: var(--gold);
  border-width: 2px;
  position: relative;
}

.school-card.featured::before {
  content: 'Featured';
  position: absolute;
  top: -1px;
  right: 16px;
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.school-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  background: var(--grey-100);
  flex-shrink: 0;
  overflow: hidden;
}

.school-logo img { width: 100%; height: 100%; object-fit: cover; }

.school-body { min-width: 0; }

.school-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.2;
}

.school-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.school-meta span { display: flex; align-items: center; gap: 4px; }

.school-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.school-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--grey-100);
  color: var(--grey-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tag.highlight { background: rgba(200,151,58,0.12); color: var(--gold); }

.school-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 120px;
}

.rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.rating-stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1;
}

.rating-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-view {
  display: inline-block;
  padding: 9px 18px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-view:hover { background: var(--navy-mid); transform: translateY(-1px); }

.price-range {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

.price-range strong { display: block; font-size: 15px; color: var(--text-body); font-weight: 600; }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  background: var(--navy);
  padding: 60px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(200,151,58,0.1) 0%, transparent 70%);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin: 0 auto 28px;
}

.btn-cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
  letter-spacing: 0.02em;
}

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

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--grey-800);
  padding: 40px 24px 28px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.footer-logo span { color: var(--gold); }

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.footer-links a:hover { color: rgba(255,255,255,0.85); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  width: 100%;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .content-inner { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 680px) {
  .header-nav { display: none; }
  .hero { padding: 40px 20px 56px; }
  .hero-stats { gap: 24px; }
  .school-card { grid-template-columns: 56px 1fr; }
  .school-aside { display: none; }
  .filter-bar { top: 56px; }
}

@media (max-width: 480px) {
  .search-wrap { flex-direction: column; border-radius: var(--radius-md); }
  .search-wrap input, .search-wrap button { border-radius: 0; }
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.school-card {
  animation: fadeUp 0.4s ease both;
}

.school-card:nth-child(1) { animation-delay: 0.05s; }
.school-card:nth-child(2) { animation-delay: 0.10s; }
.school-card:nth-child(3) { animation-delay: 0.15s; }
.school-card:nth-child(4) { animation-delay: 0.20s; }
.school-card:nth-child(5) { animation-delay: 0.25s; }
