/* ===== CSS RESET (simplified) ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #102038;
  background-color: #f5f7fb;
  line-height: 1.5; /* slightly more breathable text */
}

/* Lock scroll when modal is open */
body.no-scroll {
  overflow: hidden;
}

/* ===== Color Tokens ===== */
/* Vitmeds + RxnCure hybrid palette */
:root {
  --color-primary: #0052a3;      /* Vitmeds blue */
  --color-primary-dark: #00366e;
  --color-accent: #0a92f0;       /* RxnCure blue */
  --color-accent-soft: #e3f3ff;
  --color-bg: #f5f7fb;
  --color-card: #ffffff;
  --color-muted: #97a0b8;
  --color-border: #dde2f0;
  --shadow-soft: 0 16px 40px rgba(16, 32, 56, 0.12);
}

/* ===== Layout Helpers ===== */
.container {
  width: 100%;
  max-width: 1160px; /* a bit wider, still controlled */
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  position: relative;
}

.padding-large {
  padding: 4.5rem 0;
}

.bg-light {
  background-color: #f8f9fd;
}

.bg-accent {
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
}

/* ===== Header (base desktop styles; mobile at bottom) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(245, 247, 251, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(221, 226, 240, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0; /* slightly taller for better balance with bigger logo */
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

/* Responsive, wordmark-friendly logo */
.brand-logo {
  height: 40px;   /* main control – looks good on desktop */
  width: auto;    /* keep SVG aspect ratio */
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.main-nav a {
  text-decoration: none;
  color: #23324d;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width 0.15s ease-out;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.main-nav a:hover::after {
  width: 100%;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease,
    color 0.12s ease,
    border-color 0.12s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(10, 146, 240, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(10, 146, 240, 0.35);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid rgba(0, 82, 163, 0.2);
}

.btn-ghost:hover {
  background-color: rgba(0, 82, 163, 0.06);
  border-color: rgba(0, 82, 163, 0.4);
}

.btn-outline-sm {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 82, 163, 0.4);
  font-size: 0.8rem;
  color: var(--color-primary);
  background-color: #ffffff;
}

.btn-outline-sm:hover {
  background-color: #eef4ff;
}

.btn-dark {
  background-color: #10182c;
  color: #ffffff;
}

.btn-dark:hover {
  background-color: #060a16;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-image: url("../img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(10, 146, 240, 0.65), transparent),
    linear-gradient(135deg, rgba(0, 24, 72, 0.9), rgba(0, 58, 136, 0.9));
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  padding: 4.5rem 0 4rem;
}

.launch-tag {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e1edff;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 32rem;
  color: #e4ecff;
}

.hero-ecosystem-note {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  max-width: 32rem;
  color: #cdd8ff;
}

/* Countdown */
.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.3rem;
}

.countdown-item {
  min-width: 78px;
  padding: 0.55rem 0.75rem;
  border-radius: 0.95rem;
  background-color: rgba(0, 0, 0, 0.25);
  text-align: center;
}

.countdown-item span {
  display: block;
  font-weight: 600;
  font-size: 1.6rem;
}

.countdown-item small {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.hero-cta {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-meta {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
}

/* Hero right device */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-mockup {
  width: 260px;
  max-width: 100%;
  border-radius: 1.8rem;
  padding: 0.55rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(219, 231, 255, 0.9));
  box-shadow: 0 24px 48px rgba(3, 13, 45, 0.45);
}

.device-mockup.large {
  width: 320px;
}

.device-mockup img {
  display: block;
  width: 100%;
  border-radius: 1.5rem;
}

/* ===== Section titles ===== */
.section-title {
  font-size: 2rem;
  margin: 0 0 0.6rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  max-width: 650px;
  margin: 0.2rem auto 2.2rem;
  color: var(--color-muted);
}

/* ===== Grid helpers ===== */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.card,
.partner-card,
.highlight-card {
  background-color: var(--color-card);
  border-radius: 1.2rem;
  padding: 1.5rem;
  box-shadow: 0 16px 36px rgba(16, 32, 56, 0.06);
  border: 1px solid rgba(221, 226, 240, 0.9);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.card:hover,
.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(16, 32, 56, 0.12);
  border-color: rgba(0, 82, 163, 0.25);
}

.card h3,
.partner-card h3,
.highlight-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.card p,
.partner-card p,
.highlight-card p {
  font-size: 0.9rem;
  color: #3a4760;
}

.card-muted {
  background: linear-gradient(145deg, #f3f6ff, #ffffff);
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: #495675;
}

.card-list li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.35rem;
}

.card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-soon {
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
}

/* Highlight card (About milestones) */
.highlight-card {
  background: linear-gradient(135deg, #ffffff, #ecf3ff);
}

.milestones {
  list-style: none;
  padding: 0;
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
}

.milestones li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #d0d7ec;
}

.dot-done {
  background-color: #12b981;
}

.dot-progress {
  background-color: var(--color-accent);
}

/* Check list */
.check-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.4rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #16a34a;
  font-size: 0.9rem;
}

/* ===== Apps section ===== */
.store-badges {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.badge-outline {
  border-radius: 999px;
  border: 1px dashed rgba(0, 82, 163, 0.4);
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  color: var(--color-primary);
}

/* ===== Ecosystem apps section ===== */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.8rem;
}

.ecosystem-card {
  background-color: var(--color-card);
  border-radius: 1.2rem;
  padding: 1.5rem;
  border: 1px solid rgba(221, 226, 240, 0.9);
  box-shadow: 0 16px 36px rgba(16, 32, 56, 0.06);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.ecosystem-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(16, 32, 56, 0.12);
  border-color: rgba(0, 82, 163, 0.25);
}

.ecosystem-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.ecosystem-card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.ecosystem-text {
  font-size: 0.9rem;
  color: #3a4760;
}

/* ===== Partners ===== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.partner-card {
  border-left: 4px solid var(--color-primary);
}

.link-inline {
  display: inline-flex;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: none;
}

.link-inline:hover {
  text-decoration: underline;
}

/* ===== Notify section ===== */
.notify-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.notify-form {
  background-color: rgba(255, 255, 255, 0.14);
  border-radius: 1.2rem;
  padding: 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.notify-form input[type="email"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 0.7rem;
  border: none;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.notify-form input[type="email"]:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
}

.notify-form .form-note {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  opacity: 0.85;
}

/* Success & error messages below the form */
.form-success,
.form-error {
  margin-top: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.7rem;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  background-color: rgba(255, 255, 255, 0.9);
}

.form-success::before,
.form-error::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.form-success {
  color: #166534; /* green */
  border-left: 3px solid #16a34a;
}

.form-success::before {
  content: "✓";
  background-color: #bbf7d0;
  color: #15803d;
}

.form-error {
  color: #b91c1c; /* red */
  border-left: 3px solid #ef4444;
}

.form-error::before {
  content: "!";
  background-color: #fee2e2;
  color: #b91c1c;
}

/* Loading state for button when form is submitting */
.notify-form.is-loading button {
  opacity: 0.7;
  pointer-events: none;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-list details {
  border-radius: 0.9rem;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  margin-bottom: 0.7rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 500;
}

.faq-list p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.site-footer {
  background-color: #0b1220;
  color: #cbd5f4;
  padding-top: 2.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 2rem;
}

.site-footer h4,
.site-footer h5 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: #e5e7ff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.social a {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 255, 0.4);
  text-decoration: none;
  color: #e5e7ff;
}

.footer-bottom {
  margin-top: 1.8rem;
  border-top: 1px solid rgba(55, 65, 81, 0.7);
  padding: 0.9rem 0;
  font-size: 0.8rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.footer-note {
  color: #9ca3c9;
}

/* ===== Large desktop tweaks ===== */
@media (min-width: 1200px) {
  .brand-logo {
    height: 48px; /* a bit larger on big screens */
  }

  .countdown-item {
    min-width: 86px;
    padding: 0.6rem 0.9rem;
  }

  .countdown-item span {
    font-size: 1.9rem;
  }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-content,
  .grid-2,
  .card-grid,
  .partner-grid,
  .ecosystem-grid,
  .notify-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 5rem;
  }

  /* hide desktop nav on smaller screens (mobile hamburger will appear) */
  .desktop-nav {
    display: none;
  }

  .countdown {
    margin-top: 1rem;
  }

  .card-grid,
  .partner-grid {
    gap: 1.25rem;
  }

  /* Slightly smaller logo on tablets/laptops */
  .brand-logo {
    height: 34px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .padding-large {
    padding: 3.2rem 0;
  }

  .site-footer {
    padding-top: 2.2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Compact logo on mobile so it doesn't dominate the header */
  .brand-logo {
    height: 30px;
  }

  /* Compact countdown on small screens */
  .countdown {
    gap: 0.6rem;
    margin-top: 1rem;
  }

  .countdown-item {
    min-width: 70px;
    padding: 0.4rem 0.55rem;
  }

  .countdown-item span {
    font-size: 1.3rem;
  }
}

/* ===== Partner interest modal ===== */
.partner-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
}

.partner-modal-overlay.is-open {
  display: flex;
}

.partner-modal {
  position: relative;
  max-width: 640px;
  width: 100%;
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  padding: 1.8rem 1.9rem 1.9rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.partner-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.partner-modal-close:hover {
  color: #111827;
}

.partner-modal-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #0a92f0;
  margin: 0 0 0.35rem;
}

.partner-modal-title {
  margin: 0 0 0.3rem;
  font-size: 1.5rem;
  color: #0f172a;
}

.partner-modal-subtitle {
  margin: 0 0 1.2rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.partner-modal-form {
  margin-top: 0.4rem;
}

.partner-modal-form .form-row {
  margin-bottom: 0.9rem;
}

.partner-modal-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.2rem;
}

.partner-modal-form label span {
  color: #dc2626;
}

.partner-modal-form input,
.partner-modal-form textarea {
  width: 100%;
  font-size: 0.9rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  outline: none;
  font-family: inherit;
}

.partner-modal-form input:focus,
.partner-modal-form textarea:focus {
  border-color: #0a92f0;
  box-shadow: 0 0 0 1px rgba(10, 146, 240, 0.18);
}

.partner-modal-form textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.partner-modal-note {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0 0 0.9rem;
}

.partner-modal-submit {
  width: 100%;
  margin-bottom: 0.6rem;
}

.partner-modal-overlay.is-loading .partner-modal-submit {
  opacity: 0.7;
  pointer-events: none;
}

/* Mobile tweaks for modal */
@media (max-width: 600px) {
  .partner-modal {
    padding: 1.4rem 1.2rem 1.5rem;
    border-radius: 1.25rem;
  }

  .form-row-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------
   Button loaders (RxnCure pill animation)
   --------------------------------------- */

.btn-with-loader {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-with-loader .btn-label {
  display: inline-block;
}

.btn-with-loader .btn-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-with-loader .btn-loader span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  animation: rxn-pill-pulse 1s infinite ease-in-out;
}

/* Three dots = medicine / diagnostics / emergency in brand colours */
.btn-with-loader .btn-loader span:nth-child(1) {
  background: #0a92f0;   /* RxnCure blue */
  animation-delay: 0s;
}
.btn-with-loader .btn-loader span:nth-child(2) {
  background: #22e0b2;   /* diagnostics / wellness */
  animation-delay: 0.15s;
}
.btn-with-loader .btn-loader span:nth-child(3) {
  background: #f33060;   /* emergency / alerts */
  animation-delay: 0.3s;
}

@keyframes rxn-pill-pulse {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* When forms are loading, swap label ↔ loader */
.notify-form.is-loading .btn-label,
.partner-modal-overlay.is-loading .btn-label {
  display: none;
}

.notify-form.is-loading .btn-loader,
.partner-modal-overlay.is-loading .btn-loader {
  display: inline-flex;
}

.editorial-hero-wrap {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.editorial-hero {
  max-width: 780px;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* ---------- Responsive header & mobile nav (FINAL) ---------- */

/* Premium sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

/* Desktop primary nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
}

.main-nav a {
  text-decoration: none;
  color: #111827;
  font-weight: 500;
}

.main-nav a:hover {
  color: #0a92f0;
}

.main-nav-cta {
  margin-left: 8px;
}

/* Mobile hamburger – hidden on desktop */
.nav-toggle {
  display: none;
  border: none;
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 8px;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(209, 213, 219, 0.9);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  margin: 3px 0;
}

/* Mobile nav is hidden by default on desktop */
.mobile-nav {
  display: none;
}

/* Mobile layout */
@media (max-width: 960px) {
  .header-inner {
    padding: 8px 0;
  }

  /* Hide desktop menu, show hamburger */
  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Slide-down mobile menu */
  .mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 960px;
    background: #ffffff;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    padding: 12px 16px 14px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    z-index: 30;
  }

  .mobile-nav a {
    width: 100%;
    text-decoration: none;
    color: #111827;
    font-size: 0.9rem;
    padding: 6px 0;
  }

  .mobile-nav a:hover {
    color: #0a92f0;
  }

  .mobile-nav .btn.btn-outline-sm {
    align-self: stretch;
    text-align: center;
    margin-top: 4px;
  }

  .mobile-nav.is-open {
    display: flex;
  }
}

/* Optional: prevent body scroll when mobile nav is open */
body.nav-open {
  overflow: hidden;
}

/* Footer tweaks for 4-column layout */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col-wide {
  max-width: 380px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  font-size: 0.88rem;
}

/* Stack footer columns on small screens */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ================================
   Premium footer refinements
   ================================ */

.site-footer {
  background: #020617; /* deep slate */
  color: #e5e7eb;
}

.site-footer h4,
.site-footer h5 {
  color: #f9fafb;
}

.footer-col-wide p {
  max-width: 520px;
}

.footer-address {
  margin-top: 0.75rem;
}

.footer-contact a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.footer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0.75rem 0 0.25rem;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(148, 163, 184, 0.16);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.social-pills a {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  margin: 4px 6px 0 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.78rem;
}

.social-pills a:hover {
  background: rgba(148, 163, 184, 0.18);
}

.footer-connect-heading {
  margin-top: 1.3rem;
}

.footer-bottom {
  border-top: 1px solid rgba(30, 64, 175, 0.5);
}

.footer-bottom-inner {
  font-size: 0.8rem;
}

/* Mobile tweaks for premium footer */
@media (max-width: 768px) {
  .footer-grid {
    row-gap: 1.75rem;
  }

  .footer-col-wide {
    margin-bottom: 0.75rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
  }
}
