/* ============================================
   LOOMREACH MOBILE v2.6 - COMPLETE REDESIGN
   Professional Mobile Experience
   - Brighter text colors
   - HITL horizontal headers
   - Improved footer
   ============================================ */

/* ============================================
   1. BRIGHTER TEXT COLORS (Global Mobile Fix)
   ============================================ */
@media (max-width: 968px) {
  /* Body text brighter */
  p, .section p, .container p {
    color: #cbd5e1 !important;
  }
  
  /* List items brighter */
  li, ul li, ol li {
    color: #cbd5e1 !important;
  }
  
  /* Subtle text brighter */
  .text-muted, [style*="color:#94a3b8"], [style*="color: #94a3b8"] {
    color: #b8c5d6 !important;
  }
  
  /* Small/meta text brighter */
  small, .small, [style*="color:#64748b"], [style*="color: #64748b"] {
    color: #8b9cb3 !important;
  }
}

/* ============================================
   2. NAVIGATION - Bullet Removal & Styling
   ============================================ */
@media (max-width: 968px) {
  /* Remove bullets from nav menu ONLY */
  #main-nav ul,
  #main-nav li,
  .main-nav ul,
  .main-nav li,
  nav ul,
  nav li,
  .menu-item {
    list-style: none !important;
    list-style-type: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  
  #main-nav li::marker,
  .main-nav li::marker,
  .menu-item::marker {
    content: "" !important;
    display: none !important;
  }
  
  /* Mobile nav fullscreen */
  #main-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #0a0b0f !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 100px 32px 80px !important;
    padding-top: calc(100px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    z-index: 999 !important;
  }
  
  #main-nav.active {
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  #main-nav > ul,
  #main-nav .menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 320px !important;
  }
  
  #main-nav li {
    width: 100% !important;
  }
  
  #main-nav a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 56px !important;
    padding: 16px 24px !important;
    font-size: 1.375rem !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    text-decoration: none !important;
    border-radius: 14px !important;
  }
  
  #main-nav a:hover,
  #main-nav a:active {
    background: rgba(99, 102, 241, 0.12) !important;
    color: #fff !important;
  }
  
  .mobile-cta {
    display: flex !important;
    width: 100% !important;
    max-width: 260px !important;
    min-height: 54px !important;
    margin-top: 28px !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3) !important;
  }
  
  .mobile-toggle {
    display: flex !important;
    width: 48px !important;
    height: 48px !important;
  }
  
  .header-cta > .btn:not(.mobile-toggle) {
    display: none !important;
  }
}

/* ============================================
   3. GRIDS - Responsive Layouts
   ============================================ */
@media (max-width: 768px) {
  /* 3-column grids -> single column */
  .fp-grid-3 {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  
  /* 2-column grids -> single column */
  .fp-grid-2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  
  /* 4-column grids -> 2 columns */
  .fp-grid-4 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  /* Stats grid */
  .fp-stats-grid-premium {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Guarantee grid */
  .fp-guarantee-grid-premium {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================================
   4. HITL SECTION - HORIZONTAL HEADERS
   ============================================ */
@media (max-width: 968px) {
  /* HITL grid -> single column */
  .fp-hitl-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  
  /* HITL cards - left aligned */
  .fp-hitl-grid > div {
    text-align: left !important;
    padding: 20px !important;
  }
  
  /* HITL header row - LEFT aligned on mobile */
  .hitl-header {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
  }
  
  /* Number circle smaller */
  .hitl-header > div:first-child {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
  }
  
  .hitl-header > div:first-child span {
    font-size: 0.75rem !important;
  }
  
  /* Badge styling */
  .hitl-header > div:nth-child(2) {
    font-size: 0.625rem !important;
    padding: 2px 6px !important;
  }
  
  /* Title */
  .hitl-header h4 {
    font-size: 0.875rem !important;
    white-space: nowrap !important;
  }
  
  /* List items - brighter */
  .fp-hitl-grid > div ul {
    margin-top: 12px !important;
    padding-left: 0 !important;
  }
  
  .fp-hitl-grid > div ul li {
    color: #cbd5e1 !important;
    font-size: 0.8125rem !important;
    margin-bottom: 6px !important;
    line-height: 1.4 !important;
  }
  
  /* Footer text - brighter */
  .fp-hitl-grid > div > div:last-child {
    color: #94a3b8 !important;
    margin-top: 12px !important;
  }
}

/* ============================================
   5. HERO SECTION
   ============================================ */
@media (max-width: 768px) {
  .fp-hero-visual,
  .hero-visual {
    display: none !important;
  }
  
  .fp-hero-content,
  .hero-content {
    display: block !important;
  }
  
  .hero-text {
    text-align: center !important;
  }
  
  .fp-cta-buttons {
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .fp-cta-buttons > a {
    width: 100% !important;
    max-width: 300px !important;
  }
  
  .fp-metrics {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    justify-items: center !important;
    text-align: center !important;
  }
  
  .fp-trust-badges {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
}

/* ============================================
   6. TYPOGRAPHY - Brighter
   ============================================ */
@media (max-width: 768px) {
  h1, .page-title, .hero-title {
    font-size: 1.875rem !important;
    line-height: 1.2 !important;
    color: #f8fafc !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
    line-height: 1.25 !important;
    color: #f8fafc !important;
  }
  
  h3 {
    font-size: 1.125rem !important;
    color: #f1f5f9 !important;
  }
  
  h4 {
    font-size: 1rem !important;
    color: #f1f5f9 !important;
  }
  
  p {
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
    color: #cbd5e1 !important;
  }
}

/* ============================================
   7. CONTAINER & SECTIONS
   ============================================ */
@media (max-width: 768px) {
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  section, .section {
    padding: 48px 0 !important;
  }
  
  .page-hero {
    padding: 80px 0 40px !important;
  }
}

/* ============================================
   8. FOOTER - 2 COLUMN LAYOUT + CONTACT ROW
   ============================================ */
@media (max-width: 968px) {
  .site-footer {
    padding: 40px 0 24px !important;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  }
  
  /* Footer grid - 2 columns on mobile */
  .footer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px 16px !important;
    text-align: center !important;
  }
  
  /* Brand section - full width */
  .footer-brand {
    grid-column: 1 / -1 !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    margin-bottom: 4px !important;
  }
  
  .footer-brand .site-logo {
    justify-content: center !important;
    margin-bottom: 10px !important;
  }
  
  .footer-brand p {
    max-width: 320px !important;
    margin: 0 auto 14px !important;
    font-size: 0.8125rem !important;
    line-height: 1.5 !important;
    color: #94a3b8 !important;
  }
  
  .footer-social {
    justify-content: center !important;
    gap: 8px !important;
  }
  
  .social-link {
    width: 40px !important;
    height: 40px !important;
  }
  
  /* Footer nav columns - 2 per row */
  .footer-nav {
    text-align: center !important;
  }
  
  .footer-nav h4 {
    font-size: 0.625rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #64748b !important;
    margin-bottom: 10px !important;
    font-weight: 600 !important;
  }
  
  .footer-nav ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  
  .footer-nav li {
    list-style: none !important;
    margin: 0 !important;
  }
  
  .footer-nav li::marker,
  .footer-nav li::before {
    content: none !important;
    display: none !important;
  }
  
  .footer-nav a {
    display: inline-block !important;
    padding: 5px 0 !important;
    min-height: 32px !important;
    font-size: 0.875rem !important;
    color: #e2e8f0 !important;
    line-height: 1.3 !important;
  }
  
  .footer-nav a:hover {
    color: #fff !important;
  }
  
  /* CONTACT section - full width, horizontal */
  .footer-nav:last-of-type {
    grid-column: 1 / -1 !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    margin-top: 4px !important;
  }
  
  .footer-nav:last-of-type h4 {
    display: none !important;
  }
  
  .footer-nav:last-of-type ul {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px 16px !important;
  }
  
  .footer-nav:last-of-type li {
    display: inline-flex !important;
    align-items: center !important;
  }
  
  .footer-nav:last-of-type li:not(:last-child)::after {
    content: "•" !important;
    margin-left: 16px !important;
    color: #475569 !important;
    font-size: 0.625rem !important;
  }
  
  .footer-nav:last-of-type a,
  .footer-nav:last-of-type li {
    font-size: 0.8125rem !important;
    padding: 4px 0 !important;
    min-height: auto !important;
    color: #cbd5e1 !important;
  }
  
  /* Footer bottom */
  .footer-bottom {
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  
  .footer-bottom-content {
    text-align: center !important;
  }
  
  .footer-copyright {
    font-size: 0.6875rem !important;
    line-height: 1.6 !important;
    color: #64748b !important;
  }
  
  .footer-copyright a {
    color: #94a3b8 !important;
  }
  
  .footer-sep {
    display: inline !important;
    margin: 0 4px !important;
    opacity: 0.5 !important;
  }
}

/* Extra small - still 2 columns but tighter */
@media (max-width: 480px) {
  .footer-grid {
    gap: 20px 12px !important;
  }
  
  .footer-nav h4 {
    font-size: 0.5625rem !important;
    margin-bottom: 8px !important;
  }
  
  .footer-nav a {
    font-size: 0.8125rem !important;
    padding: 4px 0 !important;
    min-height: 28px !important;
  }
  
  .footer-brand p {
    font-size: 0.75rem !important;
  }
  
  .footer-copyright {
    font-size: 0.625rem !important;
  }
  
  /* Contact row even smaller */
  .footer-nav:last-of-type li:not(:last-child)::after {
    margin-left: 10px !important;
  }
  
  .footer-nav:last-of-type ul {
    gap: 4px 10px !important;
  }
  
  .footer-nav:last-of-type a,
  .footer-nav:last-of-type li {
    font-size: 0.75rem !important;
  }
}

/* ============================================
   9. BUTTONS
   ============================================ */
@media (max-width: 768px) {
  .btn,
  a.btn,
  button[type="submit"] {
    min-height: 52px !important;
    padding: 14px 24px !important;
    font-size: 0.9375rem !important;
    border-radius: 12px !important;
  }
}

/* ============================================
   10. FORMS
   ============================================ */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important;
    min-height: 52px !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    -webkit-appearance: none !important;
  }
  
  input:focus,
  textarea:focus,
  select:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
    outline: none !important;
  }
  
  textarea {
    min-height: 120px !important;
  }
}

/* ============================================
   11. SPECIFIC SECTIONS
   ============================================ */
@media (max-width: 768px) {
  /* Difference section */
  .fp-difference-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
  }
  
  .fp-difference-list {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  
  .fp-difference-visual {
    display: none !important;
  }
  
  /* Section headers */
  .section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
  
  .section-header-left {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
}

/* ============================================
   12. SAFE AREAS (iPhone)
   ============================================ */
@media (max-width: 768px) {
  .site-header {
    padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
  }
  
  .container {
    padding-left: max(20px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(20px, env(safe-area-inset-right, 0px)) !important;
  }
}

/* ============================================
   13. ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================
   14. EXTRA SMALL PHONES (≤480px)
   ============================================ */
@media (max-width: 480px) {
  h1, .page-title {
    font-size: 1.625rem !important;
  }
  
  h2 {
    font-size: 1.375rem !important;
  }
  
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  section {
    padding: 40px 0 !important;
  }
  
  #main-nav a {
    font-size: 1.25rem !important;
    min-height: 52px !important;
  }
  
  .fp-stats-grid-premium {
    grid-template-columns: 1fr !important;
  }
  
  .fp-grid-4 {
    grid-template-columns: 1fr !important;
  }
  
  .fp-metrics {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .fp-guarantee-grid-premium {
    grid-template-columns: 1fr !important;
  }
  
  /* HITL even more compact */
  .fp-hitl-grid > div {
    padding: 16px !important;
  }
  
  .hitl-header {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  
  .hitl-header > div:first-child {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
  }
  
  .hitl-header h4 {
    font-size: 0.8125rem !important;
    white-space: normal !important;
  }
}

/* ============================================
   END MOBILE v2.6
   ============================================ */
