/* ========================================
   BookSwap.ca — 2026 Redesign
   Modern, clean, spacious
   ======================================== */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- Custom Properties --- */
:root {
  --primary: #0f6b3a;
  --primary-light: #15944f;
  --primary-dark: #0a4d2a;
  --primary-50: #ecfdf3;
  --primary-100: #d1fae0;
  --accent: #0e2f5a;
  --accent-light: #1a4a8a;
  --accent-50: #eff4ff;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --red: #dc2626;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1200px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: 24px;
}

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

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 18px;
  color: var(--gray-500);
  line-height: 1.7;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-green {
  background: var(--primary-50);
  color: var(--primary);
}

.badge-blue {
  background: var(--accent-50);
  color: var(--accent);
}

/* ========================================
   HEADER / NAVBAR
   ======================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

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

.navbar-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
}

.navbar-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
}

.navbar-logo-text span {
  color: var(--primary);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
}

.navbar-links a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.navbar-links a:hover {
  color: var(--gray-900);
  background: var(--gray-100);
}

.navbar-links a.active {
  color: var(--primary);
  background: var(--primary-50);
}

.navbar-cta {
  padding: 8px 20px !important;
  background: var(--primary) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}

.navbar-cta:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--gray-700);
}

.menu-toggle:hover {
  background: var(--gray-100);
}

.hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, #163d6e 40%, var(--primary-dark) 100%);
  color: var(--white);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 24px 80px;
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  margin-bottom: 20px;
}

.hero-badge .badge {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #4ade80, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-stack {
  position: relative;
  width: 320px;
  height: 380px;
}

.hero-card {
  position: absolute;
  width: 200px;
  height: 270px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card:nth-child(1) {
  background: var(--white);
  color: var(--gray-800);
  top: 0;
  left: 0;
  z-index: 3;
  transform: rotate(-6deg);
}

.hero-card:nth-child(2) {
  background: var(--primary-50);
  color: var(--primary-dark);
  top: 30px;
  left: 80px;
  z-index: 2;
  transform: rotate(3deg);
}

.hero-card:nth-child(3) {
  background: var(--accent-50);
  color: var(--accent);
  top: 60px;
  left: 40px;
  z-index: 1;
  transform: rotate(-2deg);
}

.hero-card-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.hero-card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-card-sub {
  font-size: 12px;
  opacity: 0.7;
}

/* Decorative shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74,222,128,0.15) 0%, transparent 70%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34,211,238,0.1) 0%, transparent 70%);
  z-index: 1;
}

/* --- Search Bar (in hero) --- */
.hero-search {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 48px;
  max-width: var(--max-w);
  position: relative;
  z-index: 2;
}

.hero-search-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  opacity: 0.9;
}

.search-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.search-form select,
.search-form input[type="text"] {
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  height: 44px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  outline: none;
  transition: all var(--transition);
}

.search-form select option {
  background: var(--gray-800);
  color: var(--white);
}

.search-form select:focus,
.search-form input[type="text"]:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.18);
}

.search-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.search-form .search-by { width: 100px; }
.search-form .subject { flex: 1; min-width: 180px; }
.search-form .search-input { flex: 1; min-width: 160px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.btn-white {
  background: var(--white);
  color: var(--gray-900);
}

.btn-white:hover {
  background: var(--gray-100);
  color: var(--gray-900);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 8px 12px;
}

.btn-ghost:hover {
  background: var(--primary-50);
  color: var(--primary-dark);
}

.btn-search {
  background: var(--primary);
  color: var(--white);
  padding: 10px 28px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-search:hover {
  background: var(--primary-light);
  color: var(--white);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* ========================================
   FEATURES / VALUE PROPS
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-icon-green {
  background: var(--primary-50);
  color: var(--primary);
}

.feature-icon-blue {
  background: var(--accent-50);
  color: var(--accent);
}

.feature-icon-red {
  background: #fef2f2;
  color: var(--red);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ========================================
   BOOK GRID (New Arrivals, Clearance, etc.)
   ======================================== */
.book-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.book-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.book-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--gray-300);
}

.book-card a {
  text-decoration: none;
  color: inherit;
}

.book-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, var(--gray-100) 0%, var(--gray-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 13px;
  font-weight: 500;
  padding: 16px;
  text-align: center;
  line-height: 1.4;
}

.book-info {
  padding: 14px 16px;
}

.book-info .book-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
  margin-bottom: 4px;
}

.book-info .book-meta {
  font-size: 12px;
  color: var(--gray-400);
}

/* ========================================
   HIGHLIGHTS / BANNERS
   ======================================== */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.highlight-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  text-decoration: none;
  transition: all var(--transition);
}

.highlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  text-decoration: none;
}

.highlight-card:nth-child(1) {
  background: linear-gradient(135deg, #065f46, #10b981);
}

.highlight-card:nth-child(2) {
  background: linear-gradient(135deg, #1e3a5f, #3b82f6);
}

.highlight-card:nth-child(3) {
  background: linear-gradient(135deg, #7c2d12, #f97316);
}

.highlight-card-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.highlight-card-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.highlight-card-content p {
  font-size: 14px;
  opacity: 0.85;
}

/* ========================================
   WANT YOUR BOOKS / CTA
   ======================================== */
.cta-banner {
  border-radius: var(--radius-xl);
  padding: 64px;
  display: flex;
  align-items: center;
  gap: 48px;
  background: linear-gradient(135deg, var(--primary-50) 0%, #d1fae0 50%, var(--accent-50) 100%);
  border: 1px solid var(--primary-100);
}

.cta-icon {
  width: 96px;
  height: 96px;
  background: var(--white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.cta-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.cta-content p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ========================================
   REFERENCE GRID
   ======================================== */
.reference-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

/* ========================================
   PAGE HERO (for inner pages)
   ======================================== */
.page-hero {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--gray-200);
  padding: 48px 0;
}

.page-hero h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 600px;
}

/* ========================================
   CONTENT BLOCKS (inner pages)
   ======================================== */
.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px;
}

.content-section h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
  margin-top: 40px;
}

.content-section h2:first-child {
  margin-top: 0;
}

.content-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  margin-top: 28px;
}

.content-section p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.content-section ul {
  margin-bottom: 16px;
}

.content-section li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.content-section hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 40px 0;
}

/* Condition cards for Our Service */
.condition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.condition-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
}

.condition-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.condition-card .condition-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
}

.condition-new { background: var(--primary); }
.condition-fine { background: #0ea5e9; }
.condition-good { background: #f59e0b; }
.condition-poor { background: #ef4444; }

.condition-card ul {
  padding-left: 18px;
  margin: 0;
}

.condition-card li {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 4px;
}

/* Grading sections */
.grading-block {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  margin: 16px 0;
}

.grading-block h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.grading-block.acceptable {
  border-left: 4px solid var(--primary);
}

.grading-block.unacceptable {
  border-left: 4px solid var(--red);
}

.grading-block ul {
  margin: 0;
  padding-left: 18px;
}

.grading-block li {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 4px;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--primary-50);
  color: var(--primary);
}

.contact-item-content {
  display: flex;
  flex-direction: column;
}

.contact-item-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
}

.contact-item-note {
  font-size: 13px;
  color: var(--gray-400);
}

.contact-form-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-form-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border var(--transition);
  background: var(--white);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}

/* ========================================
   PROGRAMS PAGE
   ======================================== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.program-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

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

.program-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.program-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.program-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ========================================
   RESOURCES PAGE
   ======================================== */
.resources-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.resource-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all var(--transition);
}

.resource-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

.resource-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--accent-50);
  color: var(--accent);
}

.resource-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.resource-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ========================================
   TESTIMONIALS PAGE
   ======================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
  content: '\201C';
  font-size: 64px;
  font-weight: 900;
  color: var(--primary-100);
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: Georgia, serif;
}

.testimonial-card blockquote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}

.testimonial-role {
  font-size: 13px;
  color: var(--gray-400);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--gray-400);
  font-size: 14px;
  transition: color var(--transition);
  text-decoration: none;
}

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

.footer-bottom {
  max-width: var(--max-w);
  margin: 48px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gray-800);
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
}

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

@media (max-width: 1024px) {
  .hero h1 { font-size: 40px; }
  .hero-grid { gap: 40px; }
  .book-grid { grid-template-columns: repeat(4, 1fr); }
  .reference-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

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

  .navbar-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    padding: 8px;
    box-shadow: var(--shadow-lg);
  }

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

  .navbar-links a {
    padding: 12px 16px;
    width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 { font-size: 34px; }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }

  .hero-inner { padding: 64px 24px 48px; }

  .search-form { flex-direction: column; }
  .search-form select,
  .search-form input[type="text"] { width: 100%; }

  .features-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .reference-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .condition-grid { grid-template-columns: 1fr; }

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

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
    gap: 24px;
  }

  .section { padding: 48px 0; }
  .section-header h2 { font-size: 26px; }

  .page-hero { padding: 32px 0; }
  .page-hero h1 { font-size: 30px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .reference-grid { grid-template-columns: repeat(2, 1fr); }
  .navbar-logo-text { font-size: 18px; }
}
