/* ==========================================================================
   Regional Incubator — Main Stylesheet
   Order: reset → variables → global → layout → components → utilities → responsive
   ========================================================================== */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Variables ---------- */
:root {
  /* Brand colors */
  --primary: #5b2be0;
  --primary-600: #6d28d9;
  --primary-700: #4c1fb8;
  --primary-light: #8b5cf6;
  --accent: #76c043;
  --accent-600: #67ab37;
  --accent-700: #5a9930;

  /* Neutrals */
  --dark: #0b1437;
  --navy-900: #0a1130;
  --navy-800: #111a40;
  --ink: #1a1b2e;
  --text: #2c2c3a;
  --text-muted: #6b6b7b;
  --text-light: #9a9aab;
  --border: #ececf3;
  --border-soft: #f0eef8;
  --white: #ffffff;

  /* Section backgrounds */
  --bg-lavender: #f6f4fc;
  --bg-soft: #faf9fe;
  --purple-section: #2a1065;
  --purple-section-2: #3a157d;

  /* Typography */
  --font-base: 'Cairo', sans-serif;
  --fs-hero: clamp(2rem, 4vw, 3.25rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3: 1.15rem;
  --fs-body: 0.95rem;
  --fs-small: 0.8rem;

  /* Spacing */
  --section-pad: 5rem;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 50px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(20, 16, 60, 0.05);
  --shadow: 0 8px 30px rgba(40, 16, 100, 0.08);
  --shadow-lg: 0 18px 50px rgba(40, 16, 100, 0.12);
  --shadow-card: 0 6px 24px rgba(20, 16, 60, 0.07);
}

/* ---------- Global ---------- */
body {
  font-family: var(--font-base);
  font-size: var(--fs-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.text-accent {
  color: var(--primary);
}

.section {
  padding-block: var(--section-pad);
}

.section-sm {
  padding-block: 3rem;
}

.bg-lavender {
  background: var(--bg-lavender);
}

.bg-soft {
  background: var(--bg-soft);
}

/* Section heading block */
.section-heading {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin-bottom: 1rem;
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(91, 43, 224, 0.08);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.eyebrow i {
  font-size: 0.85rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid transparent;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-700);
  border-color: var(--accent-700);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  color: var(--ink);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
}

.brand-text {
  line-height: 1.1;
}
.brand-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--primary);
}
.brand-text span {
  font-size: 0.68rem;
  color: var(--text-light);
  font-weight: 500;
}

.site-nav .nav-link {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  transition: color 0.2s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  color: var(--text);
  position: relative;
  padding: 0.25rem;
}

.icon-btn:hover {
  color: var(--primary);
}

.icon-btn .badge {
  position: absolute;
  top: -2px;
  inset-inline-end: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.55rem;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
}

.signin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}
.signin-link:hover {
  color: var(--primary);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background:
    radial-gradient(1200px 500px at 80% 0%, rgba(91, 43, 224, 0.35), transparent),
    linear-gradient(120deg, #0a1130 0%, #14193f 55%, #1c1450 100%);
  color: #fff;
  padding-block: 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  color: #fff;
  font-size: var(--fs-hero);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.hero h1 .grad {
  background: linear-gradient(90deg, #8b5cf6, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  margin-bottom: 1.75rem;
}

.hero-search {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 0.35rem;
  max-width: 520px;
  backdrop-filter: blur(6px);
}

.hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}
.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.hero-search .btn {
  white-space: nowrap;
}

.hero-tag {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0.9rem 0 1.4rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-cta .btn-soft {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}
.hero-cta .btn-soft:hover {
  background: rgba(255, 255, 255, 0.18);
}

.partner-link {
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Hero map card */
.hero-map {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
}

.hero-map-img {
  border-radius: var(--radius);
  width: 100%;
  background: radial-gradient(circle at 50% 40%, #3a1f8a, #160b3a);
  aspect-ratio: 16/11;
  object-fit: cover;
}

.map-stat {
  position: absolute;
  background: rgba(10, 12, 40, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}
.map-stat strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}
.map-stat.s1 { top: 1.8rem; inset-inline-start: 1.8rem; }
.map-stat.s2 { top: 1.8rem; inset-inline-end: 1.8rem; }

.hero-map-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  gap: 0.75rem;
}
.hero-map-foot div {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  text-align: center;
}
.hero-map-foot strong {
  display: block;
  color: #fff;
  font-size: 1.1rem;
}
.hero-map-foot span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Feature cards (Why Regional Incubator) — connected bordered grid
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: visible;
}

.feature-cell {
  padding: 1.6rem 1.4rem;
  border-inline-end: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: all 0.25s ease;
  position: relative;
}
/* remove right border on last column (every 4th) */
.feature-cell:nth-child(4n) { border-inline-end: 0; }
/* remove bottom border on last row (5th–8th) */
.feature-cell:nth-child(n+5) { border-bottom: 0; }

.feature-cell:hover {
  background: var(--bg-soft);
}

.feature-cell.is-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  border-radius: var(--radius);
  color: #fff;
  box-shadow: 0 18px 40px rgba(91, 43, 224, 0.35);
  transform: scale(1.04);
  z-index: 2;
}
.feature-cell.is-active h3,
.feature-cell.is-active p {
  color: #fff;
}
.feature-cell.is-active .feature-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.feature-cell h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.feature-cell p {
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.6;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(91, 43, 224, 0.1);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   Filter tabs
   ========================================================================== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-tab {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1.15rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ==========================================================================
   City cards
   ========================================================================== */
.city-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: all 0.25s ease;
}
.city-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.city-card .thumb {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  background: linear-gradient(135deg, #cdbff0, #a78bda);
}

.city-card-body {
  padding: 0.9rem 1rem 1.1rem;
}

.city-card-body h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.city-card-body h3 i {
  color: var(--primary);
  font-size: 0.9rem;
}

.city-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.8rem;
  min-height: 2.2em;
}

/* Segmented stat row inside city cards */
.city-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.9rem;
}
.city-stats div {
  text-align: center;
  padding: 0.45rem 0.2rem;
  border-inline-end: 1px solid var(--border);
}
.city-stats div:last-child {
  border-inline-end: 0;
}
.city-stats strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.city-stats span {
  font-size: 0.56rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* legacy chip (kept for other sections) */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}
.chip {
  font-size: 0.62rem;
  font-weight: 600;
  background: var(--bg-lavender);
  color: var(--primary);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}

.city-card .btn {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   Economic indicators (dark purple section)
   ========================================================================== */
.indicators {
  background:
    radial-gradient(800px 400px at 80% 10%, rgba(139, 92, 246, 0.25), transparent),
    linear-gradient(135deg, var(--purple-section), var(--purple-section-2));
  color: #fff;
  text-align: center;
}

.indicators .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: #d6c9ff;
}

.indicators h2 {
  color: #fff;
  font-size: var(--fs-h2);
  font-weight: 800;
  max-width: 640px;
  margin: 0 auto 0.75rem;
}
.indicators h2 .grad {
  color: #c4b5fd;
}

.indicators .lead {
  color: rgba(255, 255, 255, 0.65);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 0.9rem;
}

.stat-box {
  text-align: start;
  padding: 1.25rem 0;
}
.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #c4b5fd;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.stat-box .num {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-box .label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.3rem;
}
.stat-box .delta {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* ==========================================================================
   Opportunity cards
   ========================================================================== */
.opp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  height: 100%;
  transition: all 0.25s ease;
}
.opp-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.opp-card .opp-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-lavender);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.opp-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.opp-card p {
  font-size: 0.82rem;
  margin-bottom: 1rem;
}
.opp-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}
.tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(118, 192, 67, 0.12);
  color: var(--accent-700);
}
.tag.purple {
  background: rgba(91, 43, 224, 0.1);
  color: var(--primary);
}

/* ==========================================================================
   Event cards
   ========================================================================== */
.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: all 0.25s ease;
}
.event-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.event-card .thumb {
  aspect-ratio: 16/11;
  object-fit: cover;
  width: 100%;
  background: linear-gradient(135deg, #2a1065, #6d28d9);
}
.event-card-body {
  padding: 1rem;
}
.event-card-body h3 {
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}
.event-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.event-meta i {
  color: var(--primary);
  margin-inline-end: 0.25rem;
}

/* ==========================================================================
   Product cards
   ========================================================================== */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: all 0.25s ease;
}
.product-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.product-card .thumb {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  background: linear-gradient(135deg, #e7c98f, #c89b4a);
}
.product-card-body {
  padding: 0.9rem 1rem 1.1rem;
}
.product-card-body h3 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.product-price {
  color: var(--accent-700);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}

/* ==========================================================================
   Innovation band
   ========================================================================== */
.innovation {
  background: var(--bg-lavender);
}
.innovation-img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: radial-gradient(circle at 60% 40%, #1b2b6b, #05060f);
}
.innovation h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Partners
   ========================================================================== */
.partners {
  text-align: center;
}
.partners h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  max-width: 640px;
  margin: 0.5rem auto 0.75rem;
}
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin: 2.5rem 0;
}
.partner-logos img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: all 0.25s ease;
}
.partner-logos img:hover {
  filter: grayscale(0);
  opacity: 1;
}
.partner-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Inner page banner
   ========================================================================== */
.page-banner {
  background:
    radial-gradient(800px 300px at 80% 0%, rgba(91, 43, 224, 0.35), transparent),
    linear-gradient(120deg, #0a1130, #1c1450);
  color: #fff;
  text-align: center;
  padding-block: 3rem;
}
.page-banner h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}
.page-banner .crumb {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.4rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background:
    linear-gradient(135deg, var(--purple-section), #1a0a45);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 3.5rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  display: inline-block;
  padding: 0.22rem 0;
  transition: color 0.2s ease;
}
.site-footer a:hover {
  color: #fff;
}
.footer-brand .brand-text strong {
  color: #fff;
}
.footer-about {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 1rem 0;
  max-width: 280px;
}
.newsletter {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 0.3rem;
  max-width: 300px;
}
.newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
}
.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.social-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.9rem;
  padding: 0;
}
.social-row a:hover {
  background: var(--primary);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 3rem;
  padding-block: 1.25rem;
  font-size: 0.78rem;
}
.footer-bottom a {
  font-size: 0.78rem;
  margin-inline-start: 1.25rem;
}

/* ---------- Utilities ---------- */
.view-all {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.text-balance { text-wrap: balance; }

/* ---------- Animations ---------- */
[data-fade] {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-fade].in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
  :root { --section-pad: 3.5rem; }
  .hero { padding-block: 3rem; }
  .hero-map { margin-top: 2.5rem; }
  .header-actions { gap: 0.6rem; }

  /* Feature grid -> 2 columns */
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-cell { border-inline-end: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .feature-cell:nth-child(4n) { border-inline-end: 1px solid var(--border); }
  .feature-cell:nth-child(2n) { border-inline-end: 0; }
  .feature-cell:nth-child(n+5) { border-bottom: 1px solid var(--border); }
  .feature-cell:nth-child(n+7) { border-bottom: 0; }
  .feature-cell.is-active { transform: none; box-shadow: none; border-radius: 0; }
}

@media (max-width: 767.98px) {
  :root { --section-pad: 3rem; }
  .hero-search { flex-direction: column; gap: 0.4rem; }
  .hero-search .btn { width: 100%; justify-content: center; }
  .partner-logos { gap: 1.5rem; }
  .partner-logos img { height: 36px; }
  .footer-bottom { text-align: center; }
  .footer-bottom a { margin: 0 0.5rem; }
  .stat-box { text-align: center; }
  .stat-icon { margin-inline: auto; }
}

@media (max-width: 575.98px) {
  .section-heading { font-size: 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .filter-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; }
  .filter-tab { white-space: nowrap; }

  /* Feature grid -> 1 column */
  .feature-grid { grid-template-columns: 1fr; }
  .feature-cell { border-inline-end: 0 !important; border-bottom: 1px solid var(--border) !important; }
  .feature-cell:last-child { border-bottom: 0 !important; }
}
