/* ============================================================
   AL-SALAM INSTITUTE — FAQ HUB
   Mirrors the exact design system of old.alsalam.ac.uk
   ============================================================ */

/* ── CSS Custom Properties (from style.css on old.alsalam.ac.uk) ── */
:root {
  --red:        #c8102e;
  --red-dark:   #a50d26;
  --navy:       #022e3b;
  --navy-light: #0a3d4f;
  --blue:       #2ea3f2;
  --gold:       #d4a017;
  --gray-text:  #5a6270;
  --gray-dark:  #5a6270;
  --gray-mid:   #3a3f4a;
  --gray-light: #f6f7f9;
  --border:     #e4e7ec;
  --white:      #ffffff;
  --radius:     6px;
  --radius-lg:  12px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06);
  --shadow:     0 4px 16px rgba(0,0,0,0.08);
  --shadow-md:  0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.16);
  --transition: 0.25s ease;
  --max-w:      1160px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Offset anchor scroll so sticky header doesn't cover content */
  scroll-padding-top: 88px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ── Focus-visible — keyboard accessibility ──────────────────── */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 3px;
}
/* Suppress focus ring for mouse users on interactive elements */
.btn:focus:not(:focus-visible),
.filter-tab:focus:not(:focus-visible),
.faq-question:focus:not(:focus-visible),
.hamburger:focus:not(:focus-visible),
.search-input:focus:not(:focus-visible) { outline: none; }

/* ── No-JS fallback ──────────────────────────────────────────── */
.noscript-msg {
  padding: 24px;
  background: #fff8e1;
  border: 1px solid #f0c040;
  border-radius: var(--radius);
  color: #5a4a00;
  font-size: 0.9375rem;
  text-align: center;
}

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

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

/* ── Skip Link ───────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--navy);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  transition: all var(--transition);
  border: 2px solid transparent;
  line-height: 1;
  cursor: pointer;
}
.btn-sm { padding: 9px 20px; font-size: 0.75rem; }

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,16,46,0.3);
}

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

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

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

.btn-gold {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
  font-weight: 700;
}
.btn-gold:hover { background: #f0f0f0; transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════════════
   TOP BAR
═══════════════════════════════════════════════════════════════ */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
  padding: 9px 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-contact {
  display: flex;
  gap: 22px;
  align-items: center;
}
.topbar-contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.topbar-contact a:hover { color: white; }
.topbar-contact svg { width: 14px; height: 14px; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.social-icon:hover { color: white; }
.social-icon svg { width: 14px; height: 14px; }

.btn-login {
  background: var(--red);
  color: white;
  border: none;
  padding: 5px 16px;
  border-radius: var(--radius);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background var(--transition);
  cursor: pointer;
}
.btn-login:hover { background: var(--red-dark); }

/* ═══════════════════════════════════════════════════════════════
   HEADER / NAV — exact match to old.alsalam.ac.uk
═══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
/* Real ASI logo image — scale to fixed height, preserve aspect ratio */
.logo-mark img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.logo-sub {
  font-size: 0.625rem;
  color: var(--gray-text);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
}

.nav-item { position: relative; }

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color var(--transition);
  white-space: nowrap;
  position: relative;
}
.nav-item > a:hover,
.nav-item--active > a { color: var(--red); }

.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 10px;
  right: 10px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-item > a:hover::after,
.nav-item--active > a::after { transform: scaleX(1); }

.arrow-icon {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.nav-item--has-dropdown:hover .arrow-icon { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  z-index: 300;
  border-radius: 0 0 var(--radius) var(--radius);
}
.nav-item--has-dropdown:hover .dropdown { display: block; }

.dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.8125rem;
  color: var(--gray-mid);
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
}
.dropdown li a:hover {
  background: var(--gray-light);
  color: var(--red);
  padding-left: 26px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-apply { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  border-radius: var(--radius);
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 0 24px;
  display: none;
}
.mobile-menu:not([hidden]) { display: block; }
.mobile-menu ul li a {
  display: block;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--gray-light);
  transition: background var(--transition), color var(--transition);
}
.mobile-menu ul li a:hover,
.mobile-menu ul li a.active { color: var(--red); background: var(--gray-light); }
.mobile-menu ul li:last-child { padding: 12px 24px 0; border: none; }
.mobile-menu ul li:last-child a {
  border: none;
  display: inline-flex;
  padding: 12px 28px;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE HERO
═══════════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--navy);
  padding: 64px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,16,46,0.18) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}

/* Background photo layer — mosque-pattern.jpg (Unsplash, free licence) */
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('mosque-pattern.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.22;
  z-index: 0;
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-hero-eyebrow a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.page-hero-eyebrow a:hover { color: white; }
.page-hero-eyebrow svg { width: 10px; height: 10px; opacity: 0.4; }

.page-hero h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 18px;
}

.page-hero-lead {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 32px;
}

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

/* ═══════════════════════════════════════════════════════════════
   SEARCH SECTION
═══════════════════════════════════════════════════════════════ */
.search-section {
  padding: 0;
  margin-top: -28px;
  position: relative;
  z-index: 10;
}

.search-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 36px 28px;
  border: 1px solid var(--border);
}

.search-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.125rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 16px;
}

.search-bar-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-text);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.search-icon svg { width: 18px; height: 18px; }

.search-input {
  width: 100%;
  padding: 14px 48px 14px 48px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--navy);
  background: var(--gray-light);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}
.search-input::placeholder { color: #9ba3ae; }
.search-input:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.1);
}

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 6px;
  color: var(--gray-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), background var(--transition);
}
.search-clear:hover {
  color: var(--red);
  background: rgba(200,16,46,0.08);
}
.search-clear svg { width: 16px; height: 16px; }
.search-clear[hidden] { display: none; }

.search-hint {
  font-size: 0.8125rem;
  color: var(--gray-text);
  margin-top: 10px;
  min-height: 20px;
}
.search-hint strong { color: var(--navy); }

/* ═══════════════════════════════════════════════════════════════
   INTRO STRIP — centred text card with stats
═══════════════════════════════════════════════════════════════ */
.intro-strip {
  padding: 48px 0 40px;
  background: var(--gray-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Text card — centred, comfortable reading width */
.intro-card--text {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.intro-card--text .section-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  position: relative;
  padding: 0 20px;
}
.intro-card--text .section-eyebrow::before,
.intro-card--text .section-eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--red);
  opacity: 0.5;
}
.intro-card--text .section-eyebrow::before { right: 0; }
.intro-card--text .section-eyebrow::after  { left: 0; }

.intro-card--text h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.intro-card--text p {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.75;
  margin: 0;
}

.intro-stats {
  display: flex;
  gap: 24px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.intro-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.intro-stat-num {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.intro-stat-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray-text);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY FILTER TABS
═══════════════════════════════════════════════════════════════ */
.filters-section {
  padding: 28px 0 8px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: 100px;
  border: 2px solid var(--border);
  background: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-text);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.filter-tab:hover {
  border-color: var(--red);
  color: var(--red);
}
.filter-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(200,16,46,0.25);
}

/* Count badge */
.filter-tab .tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(0,0,0,0.12);
  margin-left: 4px;
}
.filter-tab.active .tab-count { background: rgba(255,255,255,0.25); }

/* ═══════════════════════════════════════════════════════════════
   FAQ SECTION + ACCORDION
═══════════════════════════════════════════════════════════════ */
.faq-section {
  padding: 16px 0 80px;
}

/* Category Group */
.faq-group {
  margin-bottom: 48px;
  animation: fadeUp 0.35s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.faq-group-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(200,16,46,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}
.faq-group-icon svg { width: 20px; height: 20px; }

.faq-group-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.faq-group-count {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-text);
  background: var(--gray-light);
  border-radius: 100px;
  padding: 3px 11px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* Accordion Items */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:hover { border-color: #d0d5dd; }
.faq-item.open {
  border-color: rgba(200,16,46,0.25);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 56px 18px 20px;
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 14px;
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--gray-light); }
.faq-item.open .faq-question { background: rgba(200,16,46,0.03); }

.faq-q-num {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--red);
  background: rgba(200,16,46,0.08);
  border-radius: var(--radius);
  padding: 4px 8px;
  flex-shrink: 0;
  margin-top: 1px;
  letter-spacing: 0.3px;
  min-width: 32px;
  text-align: center;
}

.faq-q-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  flex: 1;
}
.faq-item.open .faq-q-text { color: var(--red-dark); }

/* highlight matched text */
.faq-q-text mark,
.faq-a-text mark {
  background: rgba(200,16,46,0.12);
  color: var(--red-dark);
  border-radius: 2px;
  padding: 0 1px;
}

.faq-chevron {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}
.faq-chevron svg {
  width: 14px;
  height: 14px;
  color: var(--gray-text);
  transition: transform var(--transition), color var(--transition);
}
.faq-item.open .faq-chevron {
  background: var(--red);
  border-color: var(--red);
}
.faq-item.open .faq-chevron svg {
  transform: rotate(180deg);
  color: white;
}

/* Answer panel */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 2000px;
}

.faq-a-inner {
  padding: 0 20px 20px 66px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.faq-a-text {
  font-size: 0.9375rem;
  color: var(--gray-text);
  line-height: 1.8;
}

.faq-source {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #9ba3ae;
}
.faq-source a {
  color: var(--blue);
  transition: color var(--transition);
}
.faq-source a:hover { color: var(--navy); }
.faq-source svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   NO RESULTS
═══════════════════════════════════════════════════════════════ */
.no-results {
  padding: 60px 0;
}
.no-results[hidden] { display: none; }

.no-results-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.no-results-inner svg {
  width: 80px;
  height: 80px;
  margin-bottom: 8px;
}
.no-results-inner h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  color: var(--navy);
}
.no-results-inner p { color: var(--gray-text); font-size: 0.9375rem; }

/* ═══════════════════════════════════════════════════════════════
   CTA BAND
═══════════════════════════════════════════════════════════════ */
.cta-band {
  /* cta-bg.jpg (Unsplash, free licence) layered under a dark navy gradient */
  background-image:
    linear-gradient(135deg, rgba(2,46,59,0.93) 0%, rgba(10,61,79,0.90) 100%),
    url('cta-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,16,46,0.15) 0%, transparent 55%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  color: white;
  font-weight: 700;
  margin-bottom: 8px;
}
.cta-text p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
  max-width: 440px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
/* ASI logo in footer — red+white logo sits naturally on the dark navy */
.footer-logo img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 3px;
  opacity: 0.92;
  transition: opacity var(--transition);
}
.footer-logo:hover img { opacity: 1; }
.footer-logo-name {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 340px;
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}
.footer-social .social-icon { color: rgba(255,255,255,0.4); }
.footer-social .social-icon:hover { color: white; }
.footer-social .social-icon svg { width: 16px; height: 16px; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h3 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: white; }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,0.75); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 900px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  .topbar-contact a:not(:first-child) { display: none; }

  .main-nav { display: none; }
  .hamburger { display: flex; }
  .nav-apply { display: none !important; }

  .header-inner { height: 64px; }

  .filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }

  .faq-group-header { flex-wrap: wrap; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-text p { max-width: 100%; }
  .cta-actions { justify-content: center; }

  .search-card { padding: 24px 20px 20px; }

  .intro-strip { padding: 36px 0 28px; }
  .intro-card--text { padding: 32px 28px; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 600px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {

  .topbar-contact { display: none; }
  .topbar-inner { justify-content: flex-end; }

  .page-hero { padding: 44px 0 40px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1; justify-content: center; }

  .search-section { margin-top: -20px; }
  .search-card { padding: 20px 16px 16px; border-radius: var(--radius); }

  .filter-tab { font-size: 0.75rem; padding: 7px 14px; }

  .faq-question { padding: 16px 48px 16px 16px; }
  .faq-a-inner { padding: 0 16px 16px 16px; padding-top: 14px; }
  .faq-q-num { display: none; }
  .faq-chevron { right: 14px; }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .cta-actions .btn { flex: 1; justify-content: center; }

  .faq-group-title { font-size: 1.0625rem; }

  .intro-strip { padding: 24px 0 20px; }
  .intro-card--text { padding: 24px 20px; }
  .intro-stats { gap: 16px; }
  .intro-stat-num { font-size: 1.375rem; }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES
═══════════════════════════════════════════════════════════════ */
@media print {
  .topbar, .site-header, .search-section, .filters-section, .cta-band, .site-footer { display: none; }
  .faq-answer { max-height: none !important; }
  .faq-question { padding: 12px 0; }
  .faq-a-inner { padding: 8px 0 16px 0; }
  .faq-chevron { display: none; }
  .faq-item { border: none; border-bottom: 1px solid #e4e7ec; border-radius: 0; }
  .faq-q-text { font-size: 1rem; }
}

/* ── Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .faq-answer { transition: none; }
}
