/* ==== MOBILE VIEW: SWIFT LANDING PAGE ==== */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
}

@media (max-width: 600px) {

  html,
  body {
    font-size: 15px;
    background: #fff;
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
  }

  .container {
    max-width: 100%;
    padding: 0 20px;
  }

  /* HEADER */
  header {
    border-bottom: 1.5px solid #0d0d0d;
    padding: 0;
  }

  .nav {
    height: 48px;
    padding: 0 10px;
    /* Reduced for "edge" look */
  }

  .nav-left {
    gap: 8px;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 20px;
  }

  .nav-links a {
    color: #222;
    text-decoration: none;
    font-size: 1rem;
  }

  .contact-btn {
    display: none !important;
  }

  /* Hamburger */
  .nav-toggle {
    display: block !important;
    position: absolute;
    right: 18px;
    top: 14px;
    font-size: 28px;
    background: none;
    border: none;
    color: #222;
    z-index: 20;
  }


  /* HERO SECTION */
  .hero {
    width: 100vw;
    min-height: auto;
    /* Allow shrink */
    height: auto;
    /* crucial: grow with content */
    max-height: none;
    /* Remove constraint */
    padding: 0 0 50px 0;
    /* Add bottom space */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    /* Ensure stacking context */
  }

  .hero-bg-img {
    height: 100%;
    /* Cover full height of parent */
    width: 100%;
    /* Cover full width */
    object-fit: cover;
    position: absolute;
    /* Ensure it stays behind content */
    left: 0;
    top: 0;
    z-index: 0;
    /* Place behind content */
  }

  .hero-center-content {
    width: 100vw;
    margin-left: 0;
    margin-top: 28px;
    height: auto;
    justify-content: center;
    align-items: flex-start;
    display: flex;
    position: relative;
    z-index: 2;
    /* Ensure content stays above bg */
    /* Fixed flow overlap */
    top: auto;
    left: auto;
  }

  .hero-card.hero-card-elevated,
  .hero-card {
    width: 380px;
    max-width: 88vw;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 40px 0 rgba(0, 0, 0, 0.15), 0 2px 8px 0 rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    z-index: 2;
    padding-bottom: 15px;
    border: 1.5px solid #eaeaea;
    backdrop-filter: blur(5px) saturate(1.4);
    -webkit-backdrop-filter: blur(5px) saturate(1.4);
    /* blurred glass effect */
  }

  .hero-tabs {
    border-radius: 13px 13px 0 0;
  }

  .hero-tab {
    min-width: 0;
    height: 70px;
    /* Reduced to be more compact like desktop */
    font-size: 0.95em;
    padding: 14px 0 0 0;
  }

  .tab-icon {
    font-size: 1.3em;
    margin-bottom: 2px;
    /* Tighter spacing */
  }

  .tab-underline {
    height: 3px;
  }

  .hero-card-content {
    padding: 20px 20px 24px 20px;
    /* Increased bottom padding */
    text-align: center;
  }

  .hero-card-content h1 {
    font-size: 1.28em;
    margin-bottom: 10px;
    line-height: 1.2;
  }

  .hero-desc {
    font-size: 0.98em;
    margin-bottom: 20px;
    /* More space below description */
  }

  .get-app-btn {
    margin-bottom: 16px;
    padding: 12px 0;
    width: 100%;
    font-size: 1.02em;
    border-radius: 7px;
  }

  .learn-link {
    font-size: 1em;
    margin-top: 15px;
    /* More space above link */
    display: inline-block;
    /* Ensure it respects margins */
  }

  .hero-section {
    padding: 120px 20px 60px 20px;
    height: auto !important;
    min-height: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: visible;
  }

  /* APP DOWNLOAD SECTION (Updated) */
  .app-download {
    padding: 50px 0;
  }

  .app-download-title {
    font-size: 1.5rem;
    padding: 0 20px;
    text-align: center;
    margin-left: 0;
  }

  .app-download-cards {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    /* Center cards */
  }

  /* Step 12: Fix App Download Mobile Layout */
  .app-download-card {
    min-width: 0;
    /* Override desktop 330px */
    width: 100%;
    padding: 15px 20px;
    /* Reduced padding */
    justify-content: flex-start;
    /* Keep logo and text together */
  }

  .app-download-card-logo {
    width: 40px;
    /* Smaller logo */
    height: 40px;
    margin-right: 8px;
  }

  .app-card-text {
    font-size: 0.95rem;
    /* Slightly smaller text */
    flex-grow: 1;
    /* Allow text to take space */
  }

  .app-download-arrow {
    width: 24px;
    height: 24px;
    margin-left: auto;
    /* Push arrow to far right */
  }

  .app-download-card {
    flex-direction: row !important;
    text-align: left;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 350px;
    padding: 15px;
  }

  .app-download-card-logo {
    height: 32px;
    /* Reduce size */
    width: auto;
    margin-right: 0;
  }

  .app-card-text {
    margin-right: auto;
    font-size: 0.95rem;
    /* Slightly smaller text */
    text-align: left;
  }

  .app-download-arrow {
    transform: none;
    /* Reset rotation */
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  /* WHY CHOOSE (Updated) */
  .why-section {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-header p {
    font-size: 1rem;
    padding: 0 20px;
  }

  .why-grid {
    flex-direction: column;
    gap: 20px;
  }

  .why-item {
    width: 100% !important;
    /* Override inline/calc styles */
    max-width: 400px;
    margin: 0 auto;
  }

  /* FAQ SECTION (New) */
  .faq-section {
    padding: 50px 0;
  }

  .faq-header h2 {
    font-size: 1.75rem;
  }

  .faq-accordion {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 20px;
  }

  /* HOW IT WORKS (Updated) */
  .how-works {
    padding: 50px 0;
  }

  .hw-header h2 {
    font-size: 1.75rem;
  }

  .hw-steps {
    flex-direction: column;
    gap: 0;
  }

  .hw-step {
    padding: 0 0 40px 0;
    width: 100%;
  }

  .hw-connector {
    display: none;
  }

  /* FOOTER (Updated) */
  .footer {
    padding: 50px 0 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    /* Single column stack */
    gap: 40px;
    text-align: center;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    font-size: 2rem;
  }

  .footer-tagline {
    margin: 0 auto 20px;
  }

  .footer-contact-info {
    align-items: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-app-btns {
    align-items: center;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 15px;
  }

  /* ABOUT US PAGE MOBILE */
  .values-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .value-card {
    padding: 25px !important;
  }

  /* CONTACT PAGE MOBILE */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .contact-form-container {
    padding: 20px !important;
  }

  /* GENERIC PAGE HERO MOBILE */
  .page-hero {
    height: 300px !important;
    min-height: 300px !important;
    padding-top: 60px;
    /* Offset fixed header if needed */
  }

  .page-hero h1 {
    font-size: 2rem !important;
  }

  .text-block h2 {
    font-size: 1.5rem !important;
  }
}

/* Hamburger button */
.nav-toggle {
  width: 32px;
  height: 28px;
  position: absolute;
  right: 18px;
  top: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
}

/* Hamburger lines */
.nav-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: #222;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animate to X when open */
.nav-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hide nav by default on small screens */
@media (max-width: 600px) {
  #main-nav {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translate(-50%);
    width: 85%;
    z-index: 15;
    padding: 10px 0;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 10px;
  }

  #main-nav.open {
    display: flex;
  }

  .nav-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: 0.4s;
  }
}

/* LEARN MORE PAGE MOBILE OPTIMIZATIONS */
@media (max-width: 900px) {
  .page-hero {
    padding: 100px 20px 60px 20px !important;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    height: auto !important;
    min-height: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .page-hero h1 {
    font-size: 1.8rem !important;
  }

  /* Constraint paragraph width */
  .page-hero p {
    padding: 0 10px;
    max-width: 100%;
  }

  .service-section {
    padding: 50px 0 !important;
  }

  .service-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  /* Ensure Icon/Image always appears first */
  .service-image {
    order: -1;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 0px !important;
  }

  /* Reset text alignment for images */
  .service-image[style*="text-align: right"] {
    text-align: center !important;
    justify-content: center !important;
  }

  /* Center the icon */
  .service-icon {
    margin: 0 auto 20px auto;
    width: 80px;
    height: 80px;
    font-size: 3rem;
  }

  .service-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .service-content p {
    font-size: 1rem;
    padding: 0 15px;
    /* Extra side padding */
  }

  .service-list {
    text-align: left;
    /* List items should align left for readability */
    padding-left: 10px;
    padding-right: 10px;
  }

  .service-list li {
    font-size: 0.95rem;
  }
}