:root {
  --primary: #d61f2c;
  --primary-dark: #b11520;
  --secondary: #121212;
  --text: #1f1f1f;
  --muted: #6a6a6a;
  --light: #f3f3f3;
  --line: #e4e4e4;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.topbar {
  background: var(--secondary);
  color: #d7d7d7;
  font-size: 13px;
}

.topbar-wrap {
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--secondary);
  font-weight: 700;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 26px;
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--primary);
}

.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  font-size: 28px;
}

.quick-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.currency-btn {
  border: 0;
  background: transparent;
  color: var(--secondary);
  font-weight: 700;
  font-size: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.currency-btn span {
  font-size: 11px;
  color: #555;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #d9d9d9;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.icon-btn:hover {
  border-color: #c7c7c7;
}

.host-btn {
  text-decoration: none;
  background: #3d6ff2;
  color: #fff;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.host-btn:hover {
  background: #2f5de0;
}

.hero {
  min-height: 78vh;
  position: relative;
  background-image: url("https://images.unsplash.com/photo-1488085061387-422e29b40080?q=80&w=1800&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.35), rgba(10, 10, 10, 0.74));
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  z-index: 1;
}

.hero-content h1 {
  font-size: clamp(28px, 5vw, 52px);
  max-width: 900px;
  margin: 0 auto 16px;
  line-height: 1.15;
}

.hero-content p {
  opacity: 0.92;
  margin-bottom: 34px;
}

.search-card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  padding: 12px;
  max-width: 1020px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 10px 12px;
}

.field label {
  font-size: 12px;
  color: var(--muted);
}

.field input {
  border: 0;
  outline: none;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
}

.search-card button,
.btn {
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.search-card button:hover,
.btn:hover {
  background: var(--primary-dark);
  filter: none;
}

.section {
  padding: 72px 0;
}

.section h2 {
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--secondary);
}

.lead {
  color: var(--muted);
  max-width: 760px;
}

.light {
  background: var(--light);
}

.grid {
  display: grid;
  gap: 20px;
}

.cards-3 {
  margin-top: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-4 {
  margin-top: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  border-top: 3px solid var(--primary);
}

.card h3 {
  margin-bottom: 8px;
  color: var(--secondary);
}

.card p {
  color: var(--muted);
  font-size: 14px;
}

.notice-box {
  border: 1px solid #ffd2d6;
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff7f8;
  box-shadow: var(--shadow);
}

.notice-box h3 {
  color: var(--primary);
  margin-bottom: 6px;
}

.split {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.split img {
  width: 100%;
  border-radius: 18px;
  min-height: 340px;
  object-fit: cover;
}

.tour-card,
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tour-card img,
.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.tour-body,
.blog-card h3,
.blog-card p {
  padding: 12px 14px;
}

.tour-body h3,
.blog-card h3 {
  color: var(--secondary);
  font-size: 18px;
}

.tour-body p,
.blog-card p {
  color: var(--muted);
  font-size: 14px;
}

.tour-body a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.tour-body a:hover {
  color: var(--primary-dark);
}

.dark-band {
  background: #151515;
  color: #dbdbdb;
}

.dark-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: center;
}

.dark-wrap h2 {
  color: #fff;
}

.umrah-form {
  background: #1f1f1f;
  border: 1px solid #313131;
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.umrah-form input,
.umrah-form select {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  background: #fff;
  padding: 0 10px;
  font-family: inherit;
}

.umrah-form button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.gallery-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
}

.team-grid article {
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 14px;
}

.team-grid img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

.team-grid p {
  color: var(--muted);
  font-size: 14px;
}

.testimonial-box {
  margin-top: 18px;
  background: #fff;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 24px;
}

.testimonial-box p {
  font-size: 18px;
  color: var(--secondary);
  margin-bottom: 12px;
}

.testimonial-box strong {
  color: var(--primary);
}

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.testimonial-item {
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  min-height: 140px;
}

.testimonial-item p {
  font-size: 15px;
  color: #333;
  margin-bottom: 10px;
}

.testimonial-item strong {
  color: var(--primary);
  font-size: 14px;
}

.testimonial-controls {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.testimonial-controls button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  color: #222;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.testimonial-controls button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.testimonial-dots {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.testimonial-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: #cfcfcf;
  padding: 0;
}

.testimonial-dots button.active {
  width: 22px;
  background: var(--primary);
}

@media (max-width: 1024px) {
  .testimonial-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .testimonial-track {
    grid-template-columns: 1fr;
  }
}

.stats-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stats-grid article {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.stats-grid h3 {
  font-size: 30px;
  color: var(--primary);
  line-height: 1.1;
}

.stats-grid p {
  color: var(--muted);
  font-size: 14px;
}

.cta-strip {
  background: #111111;
  color: #fff;
}

.cta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-wrap h2 {
  color: #fff;
  margin: 0;
}

.footer {
  background: #121212;
  color: #d1d1d1;
  padding-top: 58px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 26px;
  padding-bottom: 28px;
}

.footer h3,
.footer h4 {
  color: #fff;
  margin-bottom: 10px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 8px;
}

.footer a {
  color: #d1d1d1;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer-cta-btn {
  display: inline-block;
  margin-top: 10px;
  background: var(--primary);
  color: #fff !important;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid transparent;
}

.footer-cta-btn:hover {
  background: var(--primary-dark);
  color: #fff !important;
}

.footer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.footer-btns .footer-cta-btn {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-cta-btn.secondary {
  background: #1d1d1d;
  border-color: #313131;
}

.footer-cta-btn.secondary:hover {
  background: #2a2a2a;
}

.btn-ico {
  font-size: 14px;
  line-height: 1;
}

.affiliations {
  border-top: 1px solid #242424;
  padding: 18px 0;
}

.affiliations h4 {
  color: #fff;
  margin-bottom: 10px;
}

.aff-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.aff-grid span {
  border: 1px solid #313131;
  background: #1a1a1a;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
}

.copyright {
  border-top: 1px solid #242424;
  padding: 16px 0;
  text-align: center;
  font-size: 14px;
}

/* Reference-feel color tuning */
body {
  background: #ffffff;
}

.topbar {
  background: #ffffff;
  color: #4f4f4f;
  border-bottom: 1px solid var(--line);
}

.hero {
  min-height: 70vh;
}

.section {
  padding: 64px 0;
}

.light {
  background: #f7f7f7;
}

.card,
.tour-card,
.blog-card,
.team-grid article,
.stats-grid article,
.testimonial-box,
.notice-box {
  border: 1px solid #ececec;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.dark-band {
  background: #ffffff;
  color: var(--text);
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
}

.dark-wrap h2 {
  color: var(--secondary);
}

.umrah-form {
  background: #f8f8f8;
  border: 1px solid #e3e3e3;
}

.cta-strip {
  background: #111111;
}

.footer {
  background: #101010;
}

.footer-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 12px;
}

/* ===== Reference-matching theme pass ===== */
.topbar {
  background: #c91f27;
  color: #fff;
  border-bottom: 0;
}

.topbar-wrap {
  min-height: 36px;
  font-size: 12px;
}

.navbar {
  background: transparent;
  border-bottom: 0;
  padding: 8px 0;
}

.nav-shell {
  background: #fff;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.nav-wrap {
  min-height: 74px;
  padding: 0 14px;
}

.brand img {
  width: 46px;
  height: 46px;
}

.hero {
  min-height: 78vh;
  margin-top: -10px;
}

.hero-content {
  max-width: 980px;
}

.hero-content h1 {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.hero-award {
  position: absolute;
  right: 8%;
  top: 8%;
  font-size: 90px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4));
}

.hero-thumbs {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.hero-thumbs img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.section h2 {
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(28px, 3.2vw, 42px);
}

.lead {
  text-align: center;
  margin: 0 auto;
}

.gallery-sec h2,
#blogs h2 {
  font-size: clamp(32px, 3.5vw, 48px);
}

.ref-gallery {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.ref-gallery img,
.gallery-logo-box {
  border-radius: 12px;
  height: 150px;
  border: 1px solid #ececec;
}

.gallery-logo-box {
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.gallery-logo-box img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 8px;
}

.blogs-bg {
  background-image: linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?q=80&w=1800&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
}

.blogs-bg .blog-card {
  border-radius: 16px;
  border: 1px solid #e5e5e5;
}

.blogs-bg .blog-card h3 {
  font-size: 28px;
}

.blogs-more-wrap {
  margin-top: 24px;
  text-align: center;
}

.dark-btn {
  background: #111 !important;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.dark-btn:hover {
  background: #000 !important;
}

@media (max-width: 1024px) {
  .hero-award {
    display: none;
  }
  .hero-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ref-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar-wrap {
    gap: 4px;
    padding: 8px 0;
  }
  .hero-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-thumbs img,
  .ref-gallery img,
  .gallery-logo-box {
    height: 130px;
  }
  .ref-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quick-actions {
    display: none;
  }
}

/* ===== Premium animation overrides ===== */
body {
  overflow-x: hidden;
}

.nav-shell {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

.hero {
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 540px;
  height: 540px;
  right: -140px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 31, 44, 0.35), rgba(214, 31, 44, 0));
  animation: pulseGlow 6s ease-in-out infinite;
}

.hero-content {
  animation: fadeUp 1s ease both;
}

.hero-thumbs img {
  border: 1px solid rgba(255, 255, 255, 0.35);
  animation: floatY 6s ease-in-out infinite;
}

.hero-thumbs img:nth-child(2) { animation-delay: 0.2s; }
.hero-thumbs img:nth-child(3) { animation-delay: 0.4s; }
.hero-thumbs img:nth-child(4) { animation-delay: 0.6s; }
.hero-thumbs img:nth-child(5) { animation-delay: 0.8s; }

.card,
.tour-card,
.blog-card,
.team-grid article,
.stats-grid article,
.gallery-logo-box,
.notice-box {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover,
.tour-card:hover,
.blog-card:hover,
.team-grid article:hover,
.stats-grid article:hover,
.gallery-logo-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.in-view {
  animation: revealUp 0.8s ease forwards;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}

@media (max-width: 1024px) {
  .hero-glow {
    width: 380px;
    height: 380px;
    right: -120px;
  }
}

/* ===== Topbar + nav icon final fixes ===== */
.topbar-wrap {
  min-height: 38px !important;
  gap: 10px !important;
}

.tb-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-text {
  text-align: right;
  font-weight: 600;
}

.icon-btn .mini-icon {
  display: inline-block;
  position: relative;
}

.basket-icon {
  width: 14px;
  height: 10px;
  border: 1.7px solid #d8a047;
  border-top: 0;
  border-radius: 2px 2px 4px 4px;
}

.basket-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -6px;
  width: 8px;
  height: 6px;
  border: 1.7px solid #d8a047;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.user-icon {
  width: 13px;
  height: 13px;
  border: 1.7px solid #222;
  border-radius: 50%;
}

.user-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  bottom: -7px;
  width: 9px;
  height: 6px;
  border: 1.7px solid #222;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

@media (max-width: 720px) {
  .topbar-wrap {
    display: grid !important;
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 3px !important;
    padding: 8px 6px !important;
  }

  .tb-item {
    white-space: normal;
  }

  .social-text {
    text-align: center;
  }
}

/* ===== Final header cleanup ===== */
.topbar {
  background: #cf1f27 !important;
  color: #fff !important;
}

.topbar-wrap {
  min-height: 34px !important;
  display: grid !important;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  gap: 10px !important;
}

.topbar-wrap .tb-item {
  font-size: 11px;
  line-height: 1;
}

.topbar-wrap .tb-item:first-child {
  text-align: left;
}

.topbar-wrap .tb-item:nth-child(2) {
  text-align: center;
}

.topbar-wrap .tb-item:last-child {
  text-align: right;
}

.navbar {
  top: 34px !important;
  background: #fff !important;
  border-bottom: 1px solid #e9e9e9 !important;
}

.nav-wrap {
  min-height: 64px !important;
  padding-inline: 8px;
}

.brand {
  gap: 8px;
}

.brand img {
  width: 34px !important;
  height: 34px !important;
}

.brand span {
  font-size: 22px;
  font-weight: 700;
}

.nav-links {
  gap: 22px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
}

.quick-actions {
  gap: 8px;
}

.currency-btn {
  font-size: 20px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  box-shadow: none;
}

.basket-icon {
  width: 12px;
  height: 8px;
}

.basket-icon::before {
  left: 1px;
  top: -5px;
  width: 8px;
  height: 5px;
}

.user-icon {
  width: 10px;
  height: 10px;
}

.user-icon::before {
  left: 0;
  bottom: -6px;
  width: 8px;
  height: 5px;
}

.host-btn {
  padding: 9px 18px;
  font-size: 15px;
}

@media (max-width: 980px) {
  .topbar-wrap {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 6px 4px;
  }

  .topbar-wrap .tb-item,
  .topbar-wrap .tb-item:first-child,
  .topbar-wrap .tb-item:nth-child(2),
  .topbar-wrap .tb-item:last-child {
    text-align: center;
  }

  .navbar {
    top: 0 !important;
  }

  .quick-actions {
    display: none !important;
  }
}

/* ===== Header final polish (reference-like) ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
}

.navbar {
  position: sticky;
  top: 38px;
  z-index: 55;
  background: #ffffff !important;
  border-bottom: 1px solid #e8e8e8 !important;
  padding: 0 !important;
}

.nav-shell {
  width: 100%;
  max-width: none;
  background: #ffffff !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.nav-wrap {
  min-height: 66px !important;
}

.brand span {
  font-size: 25px;
  font-weight: 700;
}

.nav-links a {
  font-size: 15px;
}

.quick-actions {
  gap: 10px;
}

.host-btn {
  padding: 10px 22px;
}

@media (max-width: 720px) {
  .topbar {
    position: relative;
  }

  .navbar {
    position: sticky;
    top: 0;
  }

  .nav-wrap {
    min-height: 60px !important;
  }

  .brand span {
    font-size: 16px;
  }
}

@media (max-width: 1024px) {
  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-card {
    grid-template-columns: 1fr 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .dark-wrap {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar-wrap {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 8px 0;
  }
  .menu-btn {
    display: block;
  }
  .quick-actions {
    display: none;
  }
  .nav-links {
    position: absolute;
    right: 4%;
    top: 84px;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 220px;
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 10px;
  }
  .nav-links.show {
    display: flex;
  }
  .cards-4,
  .cards-3,
  .footer-grid,
  .search-card {
    grid-template-columns: 1fr;
  }
  .gallery-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero {
    min-height: 88vh;
  }
}

/* ===== Hard fix: remove white gap between header and hero ===== */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

.topbar {
  margin: 0 !important;
}

.navbar {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.nav-shell {
  margin: 0 !important;
  border-radius: 0 0 12px 12px !important;
  border: 0 !important;
}

#home.hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}
