/* ==========================================================================
   HEALTHMED CARE PLUS — MASTER DESIGN SYSTEM & STYLESHEET
   Parent Company: HealthMed Care Plus
   Digital Healthcare Platform: HealthMed Hub
   Coordination Command Centre: Lekki, Lagos, Nigeria
   ========================================================================== */

:root {
  /* Brand Core Color Palette */
  --primary: #0a4d8c;
  --primary-hover: #073866;
  --primary-dark: #052646;
  --primary-light: #e6f0fa;
  --primary-subtle: #f0f7ff;

  --accent-teal: #0d9488;
  --accent-teal-hover: #0f766e;
  --accent-teal-light: #ccfbf1;
  --accent-teal-subtle: #f0fdfa;

  --accent-sky: #0284c7;
  --accent-sky-light: #e0f2fe;

  --accent-emerald: #10b981;
  --accent-emerald-light: #d1fae5;

  --accent-amber: #d97706;
  --accent-amber-light: #fef3c7;

  --accent-rose: #e11d48;
  --accent-rose-light: #ffe4e6;

  /* Typography & Surfaces */
  --text-main: #0f172a;       /* Slate 900 */
  --text-body: #334155;       /* Slate 700 */
  --text-muted: #64748b;      /* Slate 500 */
  --text-light: #94a3b8;      /* Slate 400 */
  --text-white: #ffffff;

  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-dark: #0b1f36;
  --bg-darker: #061221;

  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #0284c7;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px -1px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 30px -4px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.04);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1240px;
  --header-height: 80px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-body);
  background-color: var(--bg-body);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

a:hover {
  color: var(--accent-teal);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Accessibility Focus States */
:focus-visible {
  outline: 3px solid var(--accent-sky);
  outline-offset: 2px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Utility Bar (Top Strip) */
.top-bar {
  background-color: var(--bg-darker);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-bar a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar a:hover {
  color: #38bdf8;
}

.top-bar-pill {
  background: rgba(13, 148, 136, 0.25);
  border: 1px solid rgba(13, 148, 136, 0.4);
  color: #5eead4;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Main Navigation Header */
.main-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

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

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo img {
  height: 48px;
  width: auto;
}

/* Nav Menu Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.93rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-subtle);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 1010;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
}

.nav-dropdown-link span.desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.15rem;
}

.nav-dropdown-link:hover {
  background-color: var(--primary-subtle);
  color: var(--primary);
}

/* Header CTA Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-main);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background-color: var(--bg-card);
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.mobile-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
}

.mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu-link {
  display: block;
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu-link:hover {
  color: var(--primary);
}

.mobile-sub-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 1rem 0.5rem 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(10, 77, 140, 0.25);
  transform: translateY(-1px);
}

.btn-teal {
  background-color: var(--accent-teal);
  color: var(--text-white);
}

.btn-teal:hover {
  background-color: var(--accent-teal-hover);
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--bg-alt);
  border-color: var(--text-muted);
  color: var(--text-main);
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary-subtle);
}

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

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

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-teal { background: var(--accent-teal-light); color: var(--accent-teal-hover); }
.badge-amber { background: var(--accent-amber-light); color: var(--accent-amber); }
.badge-emerald { background: var(--accent-emerald-light); color: #065f46; }
.badge-rose { background: var(--accent-rose-light); color: var(--accent-rose); }
.badge-demo {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  text-transform: none;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Section Structures */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-dark {
  background-color: var(--bg-dark);
  color: #cbd5e1;
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: #ffffff;
}

.section-dark .lead {
  color: #94a3b8;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.text-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-teal);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 5.5rem 0;
  background: linear-gradient(135deg, #072e54 0%, #0a4d8c 50%, #0d9488 100%);
  color: #ffffff;
  overflow: hidden;
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero .lead {
  color: #e2e8f0;
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.hero-badge-item svg {
  color: #38bdf8;
}

/* Page Header (Internal Pages) */
.page-header {
  background: linear-gradient(135deg, #082846 0%, #0a4d8c 100%);
  color: #ffffff;
  padding: 4rem 0 3.5rem;
}

.page-header h1 {
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.page-header .lead {
  color: #cbd5e1;
  max-width: 780px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  list-style: none;
}

.breadcrumb a {
  color: #cbd5e1;
}

.breadcrumb a:hover {
  color: #38bdf8;
}

.breadcrumb-separator {
  color: #64748b;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  transform: translateY(-3px);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon.teal {
  background: var(--accent-teal-light);
  color: var(--accent-teal);
}

.card-title {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.card-link:hover {
  color: var(--accent-teal);
  gap: 0.6rem;
}

/* Destination Cards (India, Egypt, Turkey, China) */
.destination-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.destination-card-media {
  height: 180px;
  background: #0f172a;
  overflow: hidden;
  position: relative;
}

.destination-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.destination-card:hover .destination-card-media img {
  transform: scale(1.05);
}

.destination-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.destination-feature-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-body);
}

.destination-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.destination-feature-list li svg {
  color: var(--accent-teal);
  flex-shrink: 0;
}

/* Notice / Callout Banners */
.notice-box {
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-xs);
}

.notice-box.warning {
  border-left-color: var(--accent-amber);
  background: #fffbeb;
}

.notice-box.info {
  border-left-color: var(--accent-sky);
  background: var(--accent-sky-light);
}

.notice-box.emergency {
  border-left-color: var(--accent-rose);
  background: var(--accent-rose-light);
}

.notice-box h4 {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Forms System */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-label .required {
  color: var(--accent-rose);
  margin-left: 0.2rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

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

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

/* Centralized Form Status Alert */
.form-status-alert {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-status-alert.active {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-status-alert.success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-status-alert.error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.form-status-alert.loading {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* Medical Disclaimer Pill in forms */
.form-disclaimer {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Demonstration Portal Banner */
.portal-demo-banner {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #92400e;
  font-size: 0.88rem;
}

.portal-demo-banner strong {
  color: #78350f;
}

/* Portal Layout */
.portal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.portal-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: fit-content;
}

.portal-user-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.portal-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.portal-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.portal-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 500;
}

.portal-nav-link:hover, .portal-nav-link.active {
  background: var(--primary-subtle);
  color: var(--primary);
  font-weight: 600;
}

.portal-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.portal-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.portal-stat-val {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.25rem;
}

.portal-stat-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.table th, .table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  background-color: var(--bg-alt);
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.table tr:last-child td {
  border-bottom: none;
}

/* Doctor & Hospital Directories */
.directory-filters {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr auto;
  gap: 1rem;
  align-items: flex-end;
}

.directory-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1.5rem;
  transition: var(--transition);
}

.directory-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.directory-thumb {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  flex-shrink: 0;
  overflow: hidden;
}

.directory-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.directory-info {
  flex-grow: 1;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  display: none;
  font-size: 0.95rem;
  color: var(--text-body);
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
.main-footer {
  background-color: var(--bg-dark);
  color: #cbd5e1;
  padding: 5rem 0 2rem;
  margin-top: auto;
  border-top: 3px solid var(--accent-teal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.1fr 1.1fr 1.4fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #38bdf8;
  padding-left: 3px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.footer-contact-item svg {
  color: #2dd4bf;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}

.footer-social-link:hover {
  background: var(--accent-teal);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-emergency-strip {
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 3rem;
  font-size: 0.85rem;
  color: #fca5a5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #64748b;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: #94a3b8;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .portal-layout {
    grid-template-columns: 1fr;
  }
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .nav-menu, .nav-actions .btn {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .top-bar-left {
    display: none;
  }
  .top-bar .container {
    justify-content: center;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .directory-card {
    flex-direction: column;
  }
  .filter-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
