/* ══════════════════════════════════════════════════════════════
   RAPID TACTICAL — RESPONSIVE.CSS
   Full responsive system for all devices.
   Breakpoints:
     • 1200px  — Large laptop / constrained desktop
     • 1024px  — Tablet landscape / small laptop
     •  768px  — Tablet portrait
     •  480px  — Large phone landscape / small phone portrait
     •  375px  — Small phone (iPhone SE)
══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   GLOBAL RESPONSIVE HELPERS
───────────────────────────────────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────
   HAMBURGER BUTTON  (hidden on desktop, shown ≤1024px)
───────────────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.15s ease;
  flex-shrink: 0;
  margin-left: auto;
  /* Ensure it sits above any fixed/absolute layers */
  position: relative;
  z-index: 300;
}

.nav-hamburger:hover {
  background: #f0f0f0;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #1c1c1c;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ─────────────────────────────────────────────────────────────
   MOBILE MENU DRAWER
───────────────────────────────────────────────────────────── */
.mobile-menu-overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100dvh;
  height: 100vh;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* KEY FIX: prevent the off-screen drawer from blocking pointer events */
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu.is-open {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.mobile-menu-close {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.mobile-menu-close:hover {
  background: #f5f5f5;
}

/* Mobile nav links list */
.mobile-nav-links {
  list-style: none;
  padding: 16px 0;
  margin: 0;
  flex: 1;
}

.mobile-nav-links li a {
  display: block;
  padding: 13px 24px;
  font-family: 'Inter', sans-serif;
  font-size: var(--content-size);
  font-weight: 500;
  color: #1c1c1c;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.12s ease, color 0.12s ease;
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a.active {
  background: #f5f0f0;
  color: #8b1a1a;
}

.mobile-menu-footer {
  padding: 24px 20px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#mobileThemeToggle {
  width: fit-content;
}

/* Dark mode for mobile menu */
body.dark .mobile-menu {
  background: #1a1a1a;
}

body.dark .mobile-menu-header {
  border-color: #2a2a2a;
}

body.dark .mobile-menu-close svg line {
  stroke: #e0e0e0;
}

body.dark .mobile-nav-links li a {
  color: #e0e0e0;
  border-color: #252525;
}

body.dark .mobile-nav-links li a:hover {
  background: #252525;
  color: #fff;
}

body.dark .mobile-menu-footer {
  border-color: #252525;
}

/* ══════════════════════════════════════════════════════════════
   BREAKPOINT: 1200px — Large laptop / constrained desktop
══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {

  /* Navbar */
  .navbar {
    padding: 0 40px;
    justify-content: space-between;
    height: 80px;
  }

  .nav-links {
    gap: 24px;
  }

  /* Why Section — remove fixed Figma pixel dimensions */
  .why-section {
    width: 100%;
    height: auto;
    top: auto;
    left: auto;
    padding: 60px 40px;
  }

  .why-heading {
    font-size: var(--heading-size);
    width: 100%;
    height: auto;
  }

  .why-left {
    flex: 0 0 420px;
  }

  /* Product card — reduce width */
  .product-card {
    width: 70%;
    height: auto;
    min-height: 360px;
  }

  /* Workflow photo */
  .workflow-photo {
    width: 100%;
    height: auto;
  }

  /* Testimonial cards */
  .testimonial-card {
    width: 100%;
    height: auto;
  }

  /* FAQ left */
  .faq-left {
    flex: 0 0 380px;
  }

  /* Footer */
  .nf-footer {
    grid-template-columns: 320px 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════
   BREAKPOINT: 1024px — Tablet landscape / small laptop
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* ── Navbar: switch to hamburger ── */
  .navbar {
    padding: 0 20px;
    height: 70px;
    gap: 0;
    justify-content: space-between;
  }

  .nav-links,
  .nav-right {
    display: none !important;
  }

  .nav-hamburger {
    display: flex;
  }

  .mobile-menu-overlay {
    display: block;
  }

  /* ── Page wrapper — allow full width on tablet ── */
  .page-wrapper {
    overflow-x: hidden;
  }

  /* ── Hero ── */
  .hero {
    height: 420px;
  }

  .hero-title {
    font-size: var(--heading-size);
  }

  .hero-subtitle {
    font-size: var(--content-size);
  }

  .hero-content {
    bottom: 50px;
    max-width: 560px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
  }

  /* ── Deploy Section ── */
  .deploy-top {
    flex-direction: column;
    padding: 40px 32px 28px;
    gap: 24px;
  }

  .deploy-header {
    max-width: 100%;
  }

  .bags-display {
    justify-content: center;
  }

  .bags-display img {
    max-width: 320px;
  }

  .deploy-bottom {
    height: 560px;
  }

  .product-card {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: calc(100% - 32px);
    height: auto;
    margin: -120px auto 0;
    min-height: auto;
    padding: 24px;
  }

  .card-desc {
    font-size: var(--content-size);
  }

  .card-link {
    font-size: var(--content-size);
  }

  .card-title {
    font-size: var(--subheading-size);
  }

  .card-bag {
    width: 300px !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    overflow: visible !important;
  }

  /* ── Why Rapid ── */
  .why-section {
    padding: 48px 32px;
    width: 100%;
    height: auto;
    top: auto;
    left: auto;
  }

  .why-container {
    flex-direction: column;
    gap: 24px;
  }

  .why-left {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .why-heading {
    font-size: var(--heading-size);
    width: 100%;
    height: auto;
  }

  .why-desc {
    font-size: var(--content-size);
  }

  .why-link {
    font-size: var(--content-size);
  }

  .why-center {
    flex: none;
    width: 100%;
    max-height: 340px;
  }

  .why-center-img {
    width: 100%;
    height: 100%;
    max-height: 340px;
  }

  .why-right {
    width: 100%;
  }

  .why-top-row,
  .why-bottom-row {
    flex-direction: column;
    gap: 16px;
    padding: 0;
    width: 100%;
  }

  .why-card {
    width: 100%;
    height: auto;
    min-height: 100px;
    padding: 16px;
  }

  .why-top-bottom-col,
  .why-card-img {
    gap: 16px;
    margin-top: 0;
    width: 100%;
  }

  /* ── Workflow / Ecosystem ── */
  .workflow-container {
    flex-direction: column;
    gap: 40px;
    padding-bottom: 40px;
  }

  .workflow-left {
    padding: 0 32px;
    flex: none;
    width: 100%;
  }

  .workflow-photo-wrap {
    padding-top: 16px;
    width: 100%;
  }

  .workflow-photo {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    border-radius: 12px;
  }

  .workflow-heading {
    font-size: var(--heading-size);
    margin-top: 20px;
  }

  .workflow-subtext {
    font-size: var(--content-size);
  }

  .workflow-learn-btn {
    width: auto;
    min-width: 140px;
  }

  /* Right column: full width, no timeline */
  .workflow-right {
    padding-left: 48px;
    padding-right: 32px;
    gap: 24px;
    flex: none;
    width: 100%;
    box-sizing: border-box;
  }

  /* Shrink the timeline line so it doesn't overrun */
  .workflow-right::before {
    left: 24px;
    top: 28px;
  }

  /* Reset step icon negative margins for tablet */
  .step-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    margin-left: -24px;
    margin-top: 0;
  }

  .workflow-step {
    width: auto;
    min-width: 0;
    margin-left: 30px;
    margin-top: 0;
    padding: 18px 20px;
  }

  .step-title {
    font-size: var(--subheading-size);
  }

  .step-desc {
    font-size: var(--content-size);
  }


  /* ── FAQ ── */
  .faq-section {
    flex-direction: column;
    gap: 32px;
    padding: 48px 32px;
  }

  .faq-left {
    flex: none;
    width: 100%;
  }

  .faq-heading {
    font-size: var(--heading-size);
  }

  .faq-sub {
    font-size: var(--content-size);
  }

  .faq-q {
    font-size: var(--subheading-size);
  }

  /* ── Trusted Section ── */
  .trusted-section {
    height: auto;
    padding: 32px 0;
  }

  .trusted-label {
    font-size: var(--content-size);
  }

  /* ── Testimonials ── */
  .testimonials-section {
    padding: 48px 32px;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .testimonial-card {
    width: 100%;
    height: auto;
  }

  .testimonials-heading {
    font-size: var(--heading-size);
  }

  .testimonials-sub {
    font-size: var(--content-size);
  }

  /* ── Sectors ── */
  .sectors-section {
    padding: 32px 24px;
  }

  .sectors-text {
    font-size: var(--content-size);
  }

  .sectors-line {
    width: 48px;
  }

  /* ── Built For ── */
  .built-section {
    padding: 8px 32px 40px;
  }

  .built-heading {
    font-size: var(--heading-size);
  }

  .built-sub {
    font-size: var(--content-size);
  }

  /* ── Main CTA ── */
  .main-cta-section {
    flex-direction: column;
    margin-bottom: 48px;
  }

  .cta-photo {
    flex: none;
    width: 100%;
    height: 300px;
  }

  .cta-photo img {
    padding-left: 0;
    padding-bottom: 0;
    border-radius: 0 0 16px 16px;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cta-content {
    padding: 40px 32px;
  }

  .cta-heading {
    font-size: var(--heading-size);
  }

  .cta-desc {
    font-size: var(--content-size);
  }

  /* ── Footer ── */
  .nf-footer {
    grid-template-columns: 1fr;
  }

  .nf-card-wrap {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    width: 100%;
  }

  .nf-card {
    min-height: 200px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 28px 32px 40px 32px;
    gap: 20px;
  }

  .nf-card-icon {
    margin: 0;
    width: 64px;
    align-self: auto;
  }

  .nf-nav {
    padding: 32px 32px;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nf-brand {
    padding: 28px 40px;
  }
}

/* ══════════════════════════════════════════════════════════════
   BREAKPOINT: 768px — Tablet portrait
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Navbar ── */
  .navbar {
    padding: 0 16px;
    height: 64px;
  }

  /* ── Hero ── */
  .hero {
    height: 360px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .hero-content {
    bottom: 36px;
    padding: 0 50px;
  }

  .hero-btn {
    padding: 11px 18px;
    font-size: 10px;
    letter-spacing: 1px;
  }

  .hero-arrow {
    width: 34px;
    height: 34px;
  }

  .hero-arrow--prev {
    left: 12px;
  }

  .hero-arrow--next {
    right: 12px;
  }

  /* ── Deploy ── */
  .deploy-top {
    padding: 32px 20px 20px;
  }

  .deploy-bottom {
    height: 460px;
  }

  .deploy-heading {
    font-size: var(--heading-size);
  }

  .deploy-desc {
    font-size: var(--content-size);
  }

  .product-card {
    margin: -80px 16px 0;
    width: calc(100% - 32px);
    padding: 18px;
    gap: 16px !important;
    flex-direction: column !important;
  }

  .card-title {
    font-size: var(--subheading-size);
    padding-bottom: 8px;
  }

  .card-desc {
    font-size: var(--content-size);
    padding-bottom: 8px;
  }

  .card-link {
    font-size: var(--content-size);
  }

  .card-bag {
    width: 100% !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    overflow: visible !important;
  }

  /* ── Why ── */
  .why-section {
    padding: 40px 20px;
  }

  .why-heading {
    font-size: var(--heading-size);
  }

  .why-desc {
    font-size: var(--content-size);
  }

  .why-card {
    width: 100%;
    min-height: 80px;
  }

  .why-top-row,
  .why-bottom-row {
    flex-direction: column;
  }

  .why-card-img {
    display: block;
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
  }

  /* ── Workflow ── */
  .workflow-left {
    padding: 0 20px;
  }

  .workflow-heading {
    font-size: 28px;
  }

  .workflow-subtext {
    font-size: var(--content-size);
  }

  .workflow-right {
    padding-left: 48px;
    padding-right: 20px;
    gap: 24px;
  }

  .workflow-step {
    margin-left: 24px;
    padding: 16px 18px 16px 64px;
  }

  .step-title {
    font-size: var(--content-size);
  }

  .workflow-learn-btn {
    width: 120px;
    font-size: var(--content-size);
  }

  /* ── FAQ ── */
  .faq-section {
    padding: 40px 20px;
    gap: 24px;
  }

  .faq-heading {
    font-size: var(--heading-size);
  }

  .faq-q {
    font-size: var(--content-size);
  }

  .faq-answer {
    font-size: var(--content-size);
  }

  /* ── Trusted ── */
  .trusted-label::before,
  .trusted-label::after {
    width: 48px;
  }

  .trusted-img {
    width: 180px;
    height: 100px;
  }

  /* ── Testimonials ── */
  .testimonials-section {
    padding: 40px 20px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-heading {
    font-size: 28px;
  }

  .testimonials-sub {
    font-size: var(--content-size);
  }

  .testimonial-name,
  .testimonial-exp,
  .testimonial-role {
    font-size: var(--subheading-size);
  }

  .testimonial-text {
    font-size: var(--subheading-size);
  }

  .star {
    font-size: var(--heading-size);
  }

  /* ── Sectors ── */
  .sectors-section {
    padding: 24px 16px;
  }

  .sectors-text {
    font-size: var(--content-size);
    letter-spacing: 1px;
  }

  .sector-tag {
    padding: 12px 24px;
    font-size: var(--content-size);
  }

  /* ── Built For ── */
  .built-section {
    padding: 8px 20px 32px;
  }

  .built-heading {
    font-size: var(--heading-size);
  }

  .built-sub {
    font-size: var(--content-size);
  }

  /* ── CTA ── */
  .cta-content {
    padding: 32px 20px;
  }

  .cta-heading {
    font-size: var(--heading-size);
  }

  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .cta-btn-primary,
  .cta-btn-secondary {
    flex: none;
    width: 100%;
  }

  /* ── Footer ── */
  .nf-brand {
    padding: 20px 20px;
  }

  .nf-brand-img {
    max-width: 100%;
  }

  .nf-nav {
    padding: 28px 24px;
    gap: 28px;
    flex-direction: column;
  }

  .footer-col h4 {
    font-size: var(--subheading-size);
  }

  .nf-copy {
    font-size: 11px;
    padding: 12px 16px;
  }

  /* ── Sections general padding ── */
  .sectors-ticker {
    padding-bottom: 60px;
  }
}

/* ══════════════════════════════════════════════════════════════
   BREAKPOINT: 480px — Large phone landscape / small phone portrait
══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* ── Navbar ── */
  .navbar {
    padding: 0 14px;
    height: 60px;
  }

  .footer-logo-img {
    width: 100px !important;
  }

  /* ── Hero ── */
  .hero {
    height: 300px;
  }

  .hero-title {
    font-size: var(--subheading-size);
    margin-bottom: 8px;
  }

  .hero-subtitle {
    font-size: 11.5px;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-content {
    bottom: 28px;
    padding: 0 45px;
  }

  .hero-btn {
    padding: 10px 16px;
    font-size: 9.5px;
    letter-spacing: 0.8px;
  }

  .hero-arrow {
    width: 30px;
    height: 30px;
  }

  .hero-arrow--prev {
    left: 8px;
  }

  .hero-arrow--next {
    right: 8px;
  }

  /* ── Deploy ── */
  .deploy-top {
    padding: 24px 16px 16px;
    gap: 16px;
  }

  .deploy-heading {
    font-size: 22px;
  }

  .deploy-desc {
    font-size: var(--content-size);
  }

  .deploy-bottom {
    height: 380px;
  }

  .bags-display img {
    max-width: 220px;
  }

  .product-card {
    margin: -60px 12px 0;
    width: calc(100% - 24px);
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    height: auto;
  }

  .card-bag {
    width: 100% !important;
    height: auto !important;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    overflow: visible !important;
  }

  .card-title {
    font-size: var(--content-size);
  }

  .card-desc {
    font-size: var(--content-size);
  }

  /* ── Why ── */
  .why-section {
    padding: 32px 16px;
  }

  .why-heading {
    font-size: var(--heading-size);
  }

  .why-card {
    padding: 12px;
  }

  .why-card-label {
    font-size: var(--content-size);
  }

  /* ── Workflow ── */
  .workflow-left {
    padding: 0 16px;
  }

  .workflow-heading {
    font-size: 24px;
  }

  .workflow-right {
    padding-left: 40px;
    padding-right: 16px;
    gap: 20px;
  }

  .workflow-step {
    margin-left: 18px;
    padding: 12px 14px 12px 64px;
  }

  .step-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin-left: -22px;
  }

  /* ── FAQ ── */
  .faq-section {
    padding: 32px 16px;
  }

  .faq-heading {
    font-size: 28px;
  }

  .faq-sub {
    font-size: var(--content-size);
  }

  .faq-q {
    font-size: var(--content-size);
  }

  .faq-answer {
    font-size: var(--content-size);
    padding: 0 14px 14px;
  }

  /* ── Testimonials ── */
  .testimonials-section {
    padding: 32px 16px;
  }

  /* ── CTA ── */
  .cta-photo {
    height: 220px;
  }

  .cta-content {
    padding: 24px 16px;
  }

  .cta-heading {
    font-size: 22px;
  }

  /* ── Sectors ── */
  .sector-tag {
    padding: 10px 18px;
    font-size: 12px;
  }

  /* ── Built For ── */
  .built-section {
    padding: 8px 16px 28px;
  }

  .built-heading {
    font-size: 22px;
  }

  .built-sub {
    font-size: var(--content-size);
  }

  /* ── Footer ── */
  .nf-brand {
    padding: 16px;
  }

  .nf-card {
    padding: 20px 20px 36px 20px;
    flex: 1;
    direction: rtl;
  }

  .nf-nav {
    padding: 24px 16px;
    gap: 20px;
  }

  .nf-col-heading {
    font-size: var(--content-size);
  }

  .nf-col-list li a {
    font-size: var(--content-size);
  }

  .nf-copy {
    font-size: 11px;
  }

  /* ── Trusted section ── */
  .trusted-section {
    height: auto;
    padding: 24px 0;
  }

  .trusted-label {
    font-size: 12px;
  }

  .trusted-label::before,
  .trusted-label::after {
    width: 32px;
    margin: 0 6px;
  }

  .trusted-img {
    width: 140px;
    height: 75px;
  }
}

/* ══════════════════════════════════════════════════════════════
   BREAKPOINT: 375px — Small phone (iPhone SE etc.)
══════════════════════════════════════════════════════════════ */
@media (max-width: 375px) {

  .navbar {
    padding: 0 12px;
  }

  .footer-logo-img {
    width: 88px !important;
  }

  .hero {
    height: 260px;
  }

  .hero-title {
    font-size: var(--content-size);
  }

  .hero-subtitle {
    display: none;
  }

  .hero-btn {
    font-size: 9px;
    padding: 9px 14px;
    letter-spacing: 0.5px;
  }

  .deploy-heading {
    font-size: var(--subheading-size);
  }

  .deploy-bottom {
    height: 320px;
  }

  .product-card {
    margin-top: -40px;
    padding: 12px;
  }

  .card-title {
    font-size: var(--content-size);
  }

  .card-desc {
    font-size: 12px;
  }

  .why-heading {
    font-size: var(--heading-size);
  }

  .faq-heading {
    font-size: 24px;
  }

  .workflow-heading {
    font-size: var(--subheading-size);
  }

  .workflow-right {
    padding-left: 36px;
    gap: 16px;
  }

  .workflow-step {
    margin-left: 12px;
  }

  .cta-heading {
    font-size: var(--subheading-size);
  }

  .built-heading {
    font-size: var(--subheading-size);
  }

  .sector-tag {
    padding: 9px 14px;
    font-size: 11px;
  }

  .testimonial-name,
  .testimonial-role,
  .testimonial-exp {
    font-size: var(--content-size);
  }

  .testimonial-text {
    font-size: var(--content-size);
  }
}

/* ══════════════════════════════════════════════════════════════
   DARK MODE + RESPONSIVE — Mobile menu overlay
══════════════════════════════════════════════════════════════ */
body.dark .nav-hamburger .hamburger-bar {
  background: #e0e0e0;
}

body.dark .nav-hamburger:hover {
  background: #2e2e2e;
}


/* ══════════════════════════════════════════════════════════════
   DEEP AUDIT PATCH — Section-by-section fixes
   Identified analytically from full HTML + CSS review.
   These override specific Figma-hardcoded values that break
   at real viewport widths.
══════════════════════════════════════════════════════════════ */

/* ── GLOBAL: All images must be fluid ── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── GLOBAL: Prevent horizontal scroll on the whole page ── */
html,
body {
  overflow-x: hidden;
}

/* ── WHY SECTION: Remove absolutely invalid Figma px coords ──
   width:1352px, top:2253px, left:80px break any real viewport */
.why-section {
  width: 100% !important;
  max-width: 100% !important;
  top: auto !important;
  left: auto !important;
  height: auto !important;
  position: relative;
}

/* ── WHY HEADING: Remove fixed width/height from Figma ── */
.why-heading {
  width: 100% !important;
  height: auto !important;
}

/* ── WHY CARDS: Cap card image at full container width ── */
.why-card-img img {
  width: 100%;
  height: 105%;
  border-radius: 17px;
  object-fit: cover;
}

/* ── DEPLOY BOTTOM: Ensure soldier image is always cover-fit ── */
.soldier-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  max-width: none;
  /* override global img rule for this cover image */
}

/* ── PRODUCT CARD: Cap bag image inside card ── */
.card-bag img {
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── WORKFLOW PHOTO: Always fluid ── */
.workflow-photo {
  max-width: 100%;
  height: auto;
}

/* ── WORKFLOW STEP: Remove negative margins that break mobile ── */
@media (max-width: 1024px) {
  .workflow-step {
    margin-top: 0 !important;
    width: auto !important;
  }

  /* Fix the vertical timeline — recalculate position */
  .workflow-right::before {
    left: 28px;
    top: 28px;
  }
}

/* ── TRUSTED SECTION: Remove fixed height ── */
.trusted-section {
  height: auto !important;
}

/* ── TESTIMONIAL CARDS: Remove fixed px width/height ── */
.testimonial-card {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
}

/* ── FOOTER LEFT: Remove fixed px width/height ── */
.footer-left {
  width: 100% !important;
  height: auto !important;
}

/* ── FOOTER LEFT TAGLINE: Remove fixed width ── */
.footer-left-tagline {
  width: 100% !important;
  max-width: 100%;
}

/* ══════════════════
   TABLET — 1024px
══════════════════ */
@media (max-width: 1024px) {

  /* Navbar gap reset — the 164px gap was pushing items off-screen */
  .navbar {
    gap: 0 !important;
    justify-content: space-between !important;
  }

  /* Footer — old .footer component (if present alongside nf-*) */
  .footer {
    flex-direction: column;
    height: auto;
    width: 100%;
  }

  .footer-end {
    flex-direction: column;
    gap: 24px;
    margin-top: 0;
  }

  /* Why section container — already handled, belt-and-suspenders */
  .why-container {
    flex-direction: column !important;
  }

  .why-left {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Workflow step cards — remove the fixed pixel offsets */
  .workflow-step {
    position: relative;
    width: auto !important;
    min-width: 0 !important;
    margin-left: 32px !important;
    margin-top: 0 !important;
  }

  .step-icon {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }

  /* Product card pulled into flow */
  .product-card {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: calc(100% - 48px) !important;
    max-width: 700px;
    margin: -100px auto 24px !important;
  }

  /* Deploy bottom height — reduce so card doesn't overflow badly */
  .deploy-bottom {
    height: 520px;
  }
}

/* ══════════════════
   TABLET — 768px
══════════════════ */
@media (max-width: 768px) {

  /* Sections that use 64px side padding — reduce */
  .deploy-top,
  .faq-section,
  .testimonials-section,
  .sectors-section,
  .built-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .why-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Product card at tablet portrait */
  .product-card {
    width: calc(100% - 32px) !important;
    margin: -80px 16px 24px !important;
    padding: 18px !important;
    flex-direction: row;
    height: auto !important;
  }

  .deploy-bottom {
    height: 440px;
  }

  /* Faq section: 542px flex fixed — remove */
  .faq-left {
    flex: none !important;
    width: 100% !important;
  }

  /* Why container — card row to col */
  .why-top-row,
  .why-bottom-row {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 0 !important;
  }

  .why-card {
    width: 100% !important;
    height: auto !important;
    min-height: 70px;
  }

  /* Testimonial grid — force single column */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }

  /* Main CTA — stack photo above content */
  .main-cta-section {
    flex-direction: column !important;
  }

  .cta-photo {
    flex: none !important;
    width: 100% !important;
    height: 260px;
  }

  .cta-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    padding: 0 !important;
  }

  /* Footer nf-* */
  .nf-footer {
    grid-template-columns: 1fr !important;
  }

  .nf-card-wrap {
    clip-path: none !important;
    width: 100%;
  }

  .nf-nav {
    flex-direction: column !important;
    gap: 28px;
    padding: 28px 24px;
  }

  /* Step icon repositioning for small screens */
  .step-icon {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin-left: -28px;
    flex-shrink: 0;
  }
}

/* ══════════════════
   MOBILE — 480px
══════════════════ */
@media (max-width: 480px) {

  /* Product card — stack vertically */
  .product-card {
    flex-direction: column !important;
    margin: -50px 12px 24px !important;
    width: calc(100% - 24px) !important;
    padding: 16px !important;
    gap: 12px !important;
    height: auto !important;
  }

  .card-bag {
    width: 100% !important;
    height: auto !important;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  /* Workflow step — simpler layout */
  .workflow-step {
    margin-left: 20px !important;
    padding: 14px 16px 14px 64px !important;
  }

  .workflow-right::before {
    left: 20px;
  }

  /* CTA photo shorter on small phones */
  .cta-photo {
    height: 200px;
  }

  /* FAQ left heading */
  .faq-heading {
    font-size: 28px !important;
  }

  /* Footer nav — ensure single column */
  .nf-nav {
    flex-direction: column !important;
    gap: 20px;
    padding: 24px 16px;
  }

  /* Sector tags — prevent overflow */
  .sector-tag {
    padding: 10px 20px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  /* Trusted logos scrollbar hidden */
  .trusted-overflow {
    overflow: hidden;
    width: 100%;
  }
}

/* ══════════════════
   MOBILE — 375px
══════════════════ */
@media (max-width: 375px) {
  .btn-demo {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
  }

  /* Product card completely vertical */
  .product-card {
    margin: -40px 10px 16px !important;
    width: calc(100% - 20px) !important;
  }

  /* Minimal hero */
  .hero {
    height: 240px;
  }

  .hero-title {
    font-size: var(--content-size);
  }

  /* FAQ */
  .faq-q {
    font-size: 13px !important;
  }

  /* Step titles */
  .step-title {
    font-size: 15px !important;
  }

  /* CTA buttons — full width stacked */
  .cta-buttons {
    flex-direction: column !important;
    gap: 10px;
  }

  .cta-btn-primary,
  .cta-btn-secondary {
    width: 100% !important;
    justify-content: center;
    flex: none !important;
  }

  /* Sector ticker tags */
  .sector-tag {
    padding: 8px 16px !important;
    font-size: 11px !important;
  }
}


/* ══════════════════════════════════════════════════════════════
   BREAKPOINT: 320px – 425px
   Target: small Android phones, iPhone SE (2016), Galaxy A series.
   Covers the 320–375px dead-zone missed by the 375px block and
   the 425px upper edge used by many popular devices.
══════════════════════════════════════════════════════════════ */
@media (min-width: 320px) and (max-width: 425px) {

  /* ── NAVBAR ── */
  .navbar {
    height: 60px !important;
    padding: 0 14px !important;
    gap: 0 !important;
  }

  /* Custom logo or fallback SVG — keep it small */
  a.custom-logo-link img.custom-logo,
  img.nav-logo-img {
    max-width: 110px !important;
    max-height: 34px !important;
  }

  /* Hamburger must stay visible and tappable */
  .nav-hamburger {
    width: 38px !important;
    height: 38px !important;
  }

  /* Desktop nav stays hidden on this range */
  .nav-links,
  .nav-right {
    display: none !important;
  }

  /* ── MOBILE MENU DRAWER ── */
  .mobile-menu {
    width: 88vw !important;
    max-width: 340px;
    padding: 20px 18px !important;
  }

  .mobile-nav-link {
    font-size: 15px !important;
    padding: 10px 0 !important;
  }

  /* ── HERO SLIDER ── */
  .hero {
    height: 220px !important;
    min-height: 0 !important;
  }

  .hero-content {
    bottom: 24px !important;
    left: 50% !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 45px !important;
  }

  .hero-title {
    font-size: 13px !important;
    letter-spacing: 0.5px;
    margin-bottom: 6px !important;
  }

  .hero-subtitle {
    font-size: 10px !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
  }

  .hero-btn {
    font-size: 9px !important;
    padding: 7px 14px !important;
    letter-spacing: 0.8px;
  }

  /* Slider dots */
  .slider-dots {
    bottom: 2px !important;
    gap: 5px !important;
  }

  .slider-dot {
    width: 6px !important;
    height: 6px !important;
  }

  /* ── DEPLOY / PRODUCT CARD SECTION ── */
  .deploy-top {
    padding: 32px 14px 16px !important;
    gap: 12px !important;
    flex-direction: column !important;
  }

  /* Bags image in the top section — limit width so it fits */
  .bags-display {
    width: 100% !important;
    text-align: center;
  }

  .bags-display img {
    max-width: 280px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto;
  }

  .deploy-label {
    font-size: 10px !important;
    letter-spacing: 1px;
  }

  .deploy-heading {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  .deploy-desc {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  /* deploy-bottom: flex column so card sits above soldier image */
  .deploy-bottom {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* Soldier image: second in column, fixed height */
  .soldier-wrapper {
    order: 2;
    width: 100% !important;
    height: 260px !important;
    flex-shrink: 0;
  }

  /* Product card: order 1 — above soldier, in normal flow */
  .product-card {
    order: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: calc(100% - 28px) !important;
    margin: 16px 14px !important;
    padding: 16px !important;
    gap: 16px !important;
    height: auto !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    background: #fff;
    z-index: 2;
  }

  /* card-text takes the remaining width */
  .card-text {
    flex: 1 1 auto;
    width: 100% !important;
    min-width: 0;
  }

  /* Bag image: stacked, constrained */
  .card-bag {
    flex-shrink: 0;
    width: 100% !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    overflow: visible !important;
  }

  .card-bag img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .card-title {
    font-size: 13px !important;
  }

  .card-sub {
    font-size: 10px !important;
  }

  .card-desc {
    font-size: 11px !important;
    line-height: 1.5;
    width: 100%;
  }

  .card-link {
    font-size: 11px !important;
  }

  /* ── WHY RAPID SECTION ── */
  .why-section {
    padding: 32px 14px !important;
  }

  .why-heading {
    font-size: 26px !important;
  }

  /* ── WHY RAPID SECTION ── */
  .why-section {
    padding: 28px 14px !important;
  }

  /* Stack heading on top, cards below */
  .why-container {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .why-left {
    flex: none !important;
    width: 100% !important;
  }

  .why-heading {
    font-size: 28px !important;
    margin-bottom: 10px !important;
  }

  .why-desc {
    font-size: 12px !important;
    line-height: 1.5;
    margin-bottom: 12px !important;
  }

  /* The large feature photo is not useful at 320-425px — hide it */
  .why-card-img {
    display: block !important;
    width: 100% !important;
    height: 220px !important;
    margin-bottom: 12px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }

  /* why-top-row: only contains why-card-img + why-top-bottom-col.
     With img hidden, show just the cards column directly */
  .why-top-row {
    display: contents !important;
    /* dissolve the row, let children flow */
  }

  /* Both rows stack as a single flex-column list */
  .why-right {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .why-top-bottom-col,
  .why-bottom-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* Text cards */
  .why-card {
    width: 100% !important;
    height: auto !important;
    min-height: 52px !important;
    padding: 14px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border-radius: 12px !important;
  }

  .why-card-label {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  /* Image-only cards (#why-card-2, #why-card-4) contain doc_logo.png.
     Constrain the card height and the img inside to stop ballooning. */
  #why-card-2,
  #why-card-4 {
    height: 72px !important;
    min-height: 72px !important;
    justify-content: center !important;
    padding: 12px !important;
  }

  #why-card-2 img,
  #why-card-4 img {
    width: auto !important;
    height: 48px !important;
    max-width: 40px !important;
    object-fit: contain !important;
    display: block;
  }

  /* ── CONNECTED ECOSYSTEM / WORKFLOW ── */
  .workflow-section {
    padding: 32px 0 0 !important;
  }

  /* Stack the two columns vertically */
  .workflow-container {
    flex-direction: column !important;
    gap: 24px !important;
    padding: 0 0 32px !important;
  }

  /* Left: full width, normal padding */
  .workflow-left {
    padding: 0 16px !important;
    flex: none !important;
    width: 100% !important;
    gap: 12px !important;
  }

  /* Label */
  .workflow-label-text {
    font-size: 11px !important;
    letter-spacing: 1px;
  }

  /* Heading */
  .workflow-heading {
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
  }

  /* Sub-text */
  .workflow-subtext {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
  }

  /* CTA button — full width */
  .workflow-learn-btn {
    width: calc(100% - 32px) !important;
    height: auto !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    text-align: center;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  /* Photo: full width below button */
  .workflow-photo-wrap {
    padding-top: 16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .workflow-photo {
    width: 100% !important;
    height: 220px !important;
    max-height: 220px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }

  /* Right column: step cards */
  .workflow-right {
    padding: 0 16px !important;
    padding-left: 16px !important;
    gap: 14px !important;
    flex: none !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Kill the vertical timeline line */
  .workflow-right::before {
    display: none !important;
  }

  /* Step icon: reset negative margins, display inline with card */
  .step-icon {
    position: relative !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex-shrink: 0;
  }

  /* Each step: full width row (icon goes inside the card visually) */
  .workflow-step {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 15% !important;
    align-items: flex-start !important;
    box-sizing: border-box;
  }

  .step-counter {
    font-size: 10px !important;
  }

  .step-title {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }

  .step-desc {
    font-size: 11px !important;
    line-height: 1.5 !important;
  }

  /* ── FAQ SECTION ── */
  .faq-section {
    padding: 32px 14px !important;
  }

  .faq-heading {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  .faq-sub {
    font-size: 11px !important;
  }

  .faq-q {
    font-size: 12px !important;
    padding: 14px 0 !important;
  }

  .faq-a {
    font-size: 11px !important;
    line-height: 1.5;
  }

  .faq-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
  }

  /* ── TRUSTED BY SECTION ── */
  .trusted-section {
    padding: 24px 14px !important;
  }

  .trusted-label {
    font-size: 10px !important;
    letter-spacing: 1px;
  }

  .trusted-logo {
    height: 28px !important;
    max-width: 70px !important;
  }

  /* ── TESTIMONIALS ── */
  .testimonials-section {
    padding: 32px 14px !important;
  }

  .testimonials-heading {
    font-size: 26px !important;
  }

  .testimonials-sub {
    font-size: 12px !important;
  }

  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .testimonial-card {
    padding: 18px 16px !important;
  }

  .testimonial-quote {
    font-size: 12px !important;
    line-height: 1.5;
  }

  .testimonial-name {
    font-size: 13px !important;
  }

  .testimonial-role {
    font-size: 11px !important;
  }

  /* ── SECTORS / BUILT FOR ── */
  .sectors-section {
    padding: 24px 14px !important;
  }

  .built-section {
    padding: 32px 14px !important;
  }

  .built-heading {
    font-size: 22px !important;
  }

  .built-sub {
    font-size: 12px !important;
  }

  .sector-tag {
    padding: 7px 14px !important;
    font-size: 10px !important;
    white-space: nowrap;
  }

  /* ── MAIN CTA SECTION ── */
  .main-cta-section {
    flex-direction: column !important;
  }

  .cta-photo {
    width: 100% !important;
    height: 180px !important;
    flex: none !important;
  }

  .cta-content {
    padding: 24px 14px !important;
  }

  .cta-label {
    font-size: 10px !important;
    letter-spacing: 1px;
  }

  .cta-heading {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  .cta-desc {
    font-size: 12px !important;
    line-height: 1.5;
  }

  .cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .cta-btn-primary,
  .cta-btn-secondary {
    width: 100% !important;
    justify-content: center !important;
    font-size: 12px !important;
    padding: 11px 18px !important;
  }

  #why-card-5 {
    grid-row: 3;
    margin-left: 0px;
  }

  /* ── FOOTER ── */
  .nf-brand {
    padding: 16px 14px !important;
  }

  .nf-brand-img {
    max-width: 180px !important;
  }

  .nf-footer {
    grid-template-columns: 1fr !important;
  }

  .nf-card {
    padding: 24px 16px !important;
    border-radius: 0 !important;
  }

  .nf-card-tagline {
    font-size: 13px !important;
    line-height: 1.5;
  }

  .nf-card-wrap {
    clip-path: none !important;
    width: 100% !important;
  }

  .nf-nav {
    flex-direction: column !important;
    gap: 18px !important;
    padding: 24px 14px !important;
  }

  .nf-col-heading {
    font-size: 11px !important;
    letter-spacing: 1px;
  }

  .nf-col-list li a {
    font-size: 12px !important;
  }

  .nf-copy {
    font-size: 10px !important;
    padding: 10px 14px !important;
    text-align: center;
  }

  /* ══════════════════════════════════════
     ABOUT PAGE — 320px to 425px
  ══════════════════════════════════════ */

  /* ── 1. HERO SECTION ──
     The red card (.about-card-warpper) is absolutely positioned on desktop
     (right:-20px; top:50%; width:710px). Reset it for mobile. */

  /* Make deploy-bottom flow as a column so card sits below soldier image */
  .about-card-warpper~.soldier-wrapper,
  .deploy-bottom {
    overflow: visible !important;
  }

  /* The soldier/hero image: relative height, fills width */
  .deploy-section .soldier-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 240px !important;
    flex-shrink: 0;
  }

  /* Red info card: pull out of absolute, stack below soldier */
  .about-card-warpper {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    border-radius: 0 0 12px 12px !important;
    padding: 22px 18px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    box-sizing: border-box;
  }

  .about-card-title {
    font-size: 18px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
  }

  .about-card-desc {
    font-size: 12px !important;
    line-height: 1.6 !important;
    margin-top: 6px !important;
    padding: 0 !important;
  }

  /* ── 2. OUR STORY ── */
  .story-section {
    padding: 36px 16px 40px !important;
  }

  .story-label {
    gap: 10px !important;
    margin-bottom: 18px !important;
  }

  .story-label-text {
    font-size: 10px !important;
    letter-spacing: 2px;
  }

  .story-heading {
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin-bottom: 24px !important;
    max-width: 100% !important;
  }

  /* Stack the two cards into one column */
  .story-cards-row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .story-card {
    padding: 22px 18px 26px !important;
    width: 100% !important;
    border-radius: 14px !important;
  }

  .story-card-title {
    font-size: 16px !important;
    margin-bottom: 12px !important;
  }

  .story-card-subtitle {
    font-size: 12px !important;
    margin-bottom: 8px !important;
  }

  .story-card-body {
    font-size: 11.5px !important;
    line-height: 1.7 !important;
  }

  /* Watermark icons: keep but clip so they don't overflow */
  .our-missoin-story-card-watermark,
  .our-vision-story-card-watermark {
    width: 60px !important;
    height: 70px !important;
  }

  /* ── 3. LEADERSHIP SLIDER ── */
  .leadership-section {
    padding: 36px 0 44px !important;
    overflow: hidden;
  }

  .leadership-heading {
    font-size: 24px !important;
    margin-bottom: 24px !important;
    padding: 0 16px;
  }

  /* Viewport: tight padding = cards nearly full screen width */
  .leadership-slider-wrap {
    padding: 0 16px !important;
  }

  /* Each card: stacked column, full viewport width */
  .leader-card {
    flex-direction: column !important;
    width: calc(100vw - 32px) !important;
    min-height: unset !important;
    gap: 0 !important;
    border-radius: 14px !important;
    overflow: hidden;
  }

  /* Portrait photo: full width, fixed height */
  /* Portrait photo: full width, taller height, face centered */
  .leader-photo-wrap {
    flex: none !important;
    width: 100% !important;
    height: 280px !important;
  }

  .leader-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  /* Content block */
  .leader-content {
    padding: 20px 18px 24px !important;
    gap: 6px !important;
    overflow-y: visible !important;
  }

  .leader-role {
    font-size: 10px !important;
    letter-spacing: 0.3px;
  }

  .leader-name {
    font-size: 20px !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
  }

  .leader-specialty {
    font-size: 12px !important;
    margin-bottom: 12px !important;
  }

  .leader-bio {
    font-size: 12px !important;
    line-height: 1.65 !important;
    margin-bottom: 16px !important;
  }

  .leader-quote {
    padding: 12px 14px !important;
    gap: 10px !important;
    border-radius: 10px !important;
  }

  .leader-quote-icon svg {
    width: 20px !important;
    height: 16px !important;
  }

  .leader-quote p {
    font-size: 11.5px !important;
    line-height: 1.55 !important;
  }

  /* Nav arrows */
  .leadership-nav {
    margin-top: 22px !important;
    gap: 32px !important;
  }

  .leader-nav-btn {
    width: 40px !important;
    height: 46px !important;
  }

  /* ── 4. CTA SECTION ── */
  .about-cta-section {
    padding: 32px 14px 40px !important;
  }

  .about-cta-card {
    padding: 32px 20px 36px !important;
    border-radius: 14px !important;
    gap: 0 !important;
  }

  .about-cta-heading {
    font-size: 22px !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.3px;
  }

  .about-cta-subtext {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 22px !important;
  }

  .about-cta-btn {
    font-size: 12px !important;
    padding: 13px 24px !important;
    letter-spacing: 1.5px;
    gap: 8px !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   TV & LARGE SCREENS (≥1513px)
   Industry standard scaling for ultra-wide and high-res displays.
───────────────────────────────────────────────────────────── */
@media (min-width: 1513px) {
  .page-wrapper {
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.05);
  }

  /* Ensure background textures cover the entire viewport on ultra-wide */
  .bg-texture-layer {
    background-size: 1512px auto;
  }
}

/* ─────────────────────────────────────────────────────────────
   REFINEMENTS FOR TABLET & MOBILE
   Cleaning up hardcoded Figma artifacts.
───────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {

  /* Connected Ecosystem: Stack and remove negative margins */
  .workflow-container {
    flex-direction: column;
    gap: 40px;
    padding: 20px;
  }

  .workflow-right {
    padding-left: 0;
    gap: 30px;
  }

  .workflow-right::before {
    left: 28px;
  }

  .workflow-step {
    width: 100%;
    margin: 0 !important;
    position: relative;
    padding-left: 60px;
    /* Space for icon */
  }

  .step-icon {
    position: absolute;
    left: 28px;
    top: 24px;
    margin-left: -28px;
  }

  /* Deployment Capability: Ensure model viewer doesn't take too much vertical space */
  model-viewer {
    height: 350px !important;
  }
}

@media (max-width: 768px) {

  /* Hero Slider: Stack content and adjust font */
  .hero-content {
    padding: 0 50px;
    bottom: 40px;
  }

  .hero-title {
    font-size: 24px !important;
  }

  .hero-subtitle {
    font-size: 12px !important;
    margin-bottom: 20px !important;
  }

  /* Why Rapid Section: Grid layout fix */
  .why-container {
    gap: 40px;
  }

  .why-heading {
    font-size: 32px !important;
  }

  /* FAQ Accordion: Full width */
  .faq-container {
    flex-direction: column !important;
    padding: 40px 20px !important;
  }

  .faq-left {
    flex: none !important;
    width: 100% !important;
    margin-bottom: 30px !important;
  }

  .faq-right {
    width: 100% !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   MOBILE MENU THEME TOGGLE STYLES
───────────────────────────────────────────────────────────── */
#mobileThemeToggle {
  background: #f0f0f0;
  margin-bottom: 10px;
}

body.dark #mobileThemeToggle {
  background: #2a2a2a;
}

#mobile-btn-request-demo {
  width: 100%;
  justify-content: center;
}


@media (max-width: 480px) {

  /* Ensure bag triggers are touch-friendly and wrap on small screens */
  .bags-display {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .imgHover {
    width: 60px !important;
    height: 60px !important;
  }
}

/* ════════════════════════════════════════
   GUARANTEE FAQ DARK MODE
════════════════════════════════════════ */
body.dark .faq-section {
  background: #191919 !important;
  border-color: #252525 !important;
}

body.dark .faq-heading {
  color: #f0f0f0 !important;
}

body.dark .faq-sub {
  color: #888 !important;
}

body.dark .faq-contact {
  color: #ddd !important;
  border-color: #ddd !important;
}

body.dark .faq-contact:hover {
  color: #8b1a1a !important;
  border-color: #8b1a1a !important;
}

body.dark .faq-item {
  background: #1e1e1e !important;
  border-color: #2d2d2d !important;
}

body.dark .faq-item[open] {
  border-color: #383838 !important;
}

body.dark .faq-q {
  color: #e0e0e0 !important;
}

body.dark .faq-answer {
  color: #aaa !important;
}

body.dark .faq-plus {
  color: #8b1a1a !important;
}

/* ── GUARANTEE OPERATIONAL SECTORS DARK MODE ── */
body.dark .sectors-text {
  color: #ccc !important;
}

body.dark .built-heading {
  color: #fff !important;
}

body.dark .built-sub {
  color: #aaa !important;
}

body.dark .sector-tag {
  background: #222 !important;
  border-color: #444 !important;
  color: #f0f0f0 !important;
}

body.dark .sector-tag:hover {
  border-color: #8b1a1a !important;
  color: #fff !important;
}