/*
 * Landing Page Override CSS
 * This file overrides Tailwind CSS conflicts for the Bootstrap-based landing page
 * Loaded AFTER style.min.css to ensure these rules take precedence
 */

/* Force Outfit font - override Tailwind's font-sans */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap');

html,
body,
body *,
.font-sans {
  font-family: 'Outfit', sans-serif !important;
}

/* Override Tailwind's collapse visibility rule */
.collapse,
.navbar-collapse,
[class*="collapse"] {
  visibility: visible !important;
}

/* SSR navbar toggler - show on mobile, hide on desktop before JS loads */
.navbar-toggler-ssr {
  display: none !important;
}

@media (max-width: 991.98px) {
  .navbar-toggler-ssr {
    display: block !important;
  }
}

/* Navbar display fix */
.navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  visibility: visible !important;
}

.navbar-nav.mx-auto {
  margin: 0 auto !important;
}

.nav-item {
  list-style: none !important;
  visibility: visible !important;
}

.nav-link {
  display: block !important;
  visibility: visible !important;
}

/* Row display fix */
.row {
  display: flex !important;
  flex-wrap: wrap !important;
}

/* Fixed top navbar */
.fixed-top {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 1030 !important;
}

/* Text highlight effect (orange underline) - override Tailwind */
.text-line {
  position: relative !important;
  z-index: 2 !important;
  padding: 0 10px !important;
}

.text-line::after {
  content: "" !important;
  background: rgba(255, 137, 69, 0.2) !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 34% !important;
  width: 100% !important;
  z-index: -1 !important;
}

/* Border utilities - override Tailwind's border reset */
.border-start {
  border-left-style: solid !important;
  border-left-width: 1px !important;
}

.border-3 {
  border-width: 3px !important;
}

.border-start.border-3 {
  border-left-width: 3px !important;
  border-top-width: 0 !important;
  border-right-width: 0 !important;
  border-bottom-width: 0 !important;
}

.border-orange {
  border-color: #ff8945 !important;
}

/* ===========================================
   MOBILE RESPONSIVE STYLES - Loxcy Template Style
   Clean, spacious layout matching reference
   =========================================== */

@media (max-width: 991.98px) {
  /* Hide decorative SVG elements on mobile */
  .svg-img,
  .svg-img-2,
  .svg-img-3,
  .phone-bg-2 {
    display: none !important;
  }

  /* ===== NAVBAR MOBILE ===== */
  .navbar-toggler {
    display: block !important;
  }

  .navbar-collapse {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex-direction: column !important;
  }

  .navbar-collapse.show {
    display: flex !important;
  }

  .navbar-nav {
    flex-direction: column !important;
    width: 100%;
  }

  .navbar-nav.mx-auto {
    margin: 0 !important;
  }

  .nav-link {
    padding: 14px 0 !important;
    border-bottom: 1px solid #eee;
  }

  .navbar-nav.nav-btn {
    margin-top: 16px;
    width: 100%;
  }

  .navbar-nav.nav-btn .btn-orange {
    width: 100%;
    text-align: center;
  }

  /* ===== HERO SECTION - Loxcy Style ===== */
  .hero-section {
    padding-top: 90px !important;
    padding-bottom: 40px !important;
  }

  .hero-section .row {
    flex-direction: column !important;
  }

  .hero-section .col-lg-5,
  .hero-section .col-lg-6 {
    width: 100% !important;
  }

  /* Image first, centered */
  .hero-section .hand-phone {
    max-width: 100% !important;
    margin: 0 auto 30px !important;
    text-align: center !important;
    order: -1 !important;
  }

  .hero-section .phone-img {
    max-height: 380px !important;
    width: auto !important;
    max-width: 100% !important;
  }

  /* Title and text - left aligned like Loxcy */
  .hero-section h2.display-5 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    text-align: left !important;
    margin-bottom: 16px !important;
  }

  .hero-section p {
    font-size: 1rem !important;
    padding: 16px !important;
    margin-top: 20px !important;
    margin-bottom: 24px !important;
    text-align: left !important;
  }

  /* Buttons - side by side like Loxcy */
  .hero-section .main-btn {
    margin-top: 24px !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  .hero-section .main-btn .btn {
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 14px 24px !important;
    font-size: 1rem !important;
  }

  .hero-section .main-btn .btn:first-child {
    flex: 0 0 auto !important;
  }

  /* ===== FEATURES SECTION - Loxcy Style ===== */
  .about-section {
    padding: 50px 0 !important;
  }

  .about-section .col-xl-5 {
    width: 100% !important;
    text-align: left !important;
    margin-bottom: 30px !important;
  }

  .about-section .main-title h2 {
    font-size: 1.75rem !important;
    text-align: left !important;
  }

  .about-section .col-xl-6,
  .about-section .col-xl-9,
  .about-section .col-xl-3 {
    width: 100% !important;
  }

  /* Feature cards - 2 column grid */
  .about-section .col-lg-6,
  .about-section .col-xl-4,
  .about-section .col-md-6 {
    width: 50% !important;
    padding: 8px !important;
  }

  .about-style-two {
    padding: 20px !important;
    margin-bottom: 0 !important;
    height: 100% !important;
  }

  .about-style-two h3 {
    font-size: 1rem !important;
    margin-top: 12px !important;
  }

  .about-style-two .icon img {
    width: 40px !important;
    height: 40px !important;
  }

  .about-style-two .bottom {
    margin-top: 12px !important;
  }

  .about-style-two .bottom span {
    font-size: 0.85rem !important;
  }

  /* ===== HOW IT WORKS SECTION - Loxcy Style ===== */
  .feature-section {
    padding: 50px 0 !important;
  }

  .feature-section > .container > .row {
    flex-direction: column-reverse !important;
  }

  .feature-section .col-lg-5 {
    width: 100% !important;
    text-align: left !important;
    margin-top: 40px !important;
  }

  .feature-section .col-lg-6 {
    width: 100% !important;
  }

  .feature-section .feature-title h2 {
    font-size: 1.75rem !important;
    text-align: left !important;
  }

  .feature-section .feature-title p {
    font-size: 1rem !important;
    text-align: left !important;
  }

  /* Steps - 2 column grid */
  .feature-section .row.mt-4 {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .feature-section .row.mt-4 .col-lg-6 {
    width: 50% !important;
    margin-bottom: 16px !important;
  }

  .feature-section h6 {
    font-size: 0.9rem !important;
  }

  .feature-section h6 i {
    margin-right: 8px !important;
  }

  .feature-section .feature-link {
    margin-top: 24px !important;
    text-align: left !important;
  }

  /* Extension popup mockup - full width on mobile like screenshot */
  .feature-section .col-lg-6 > .d-flex {
    justify-content: center !important;
  }

  .feature-section .col-lg-6 > .d-flex > div {
    max-width: 100% !important;
    width: 100% !important;
  }

  .feature-section .rounded-4 {
    transform: none !important;
    max-width: 380px !important;
    margin: 0 auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12) !important;
  }

  /* ===== PRICING SECTION - Loxcy Style ===== */
  .price-section {
    padding: 50px 0 !important;
  }

  .price-section .main-title h2 {
    font-size: 1.75rem !important;
  }

  /* Pricing cards - full width stacked */
  .price-section .col-lg-4,
  .price-section .col-md-6 {
    width: 100% !important;
    margin-bottom: 20px !important;
  }

  .price-section .card {
    max-width: 400px !important;
    margin: 0 auto !important;
  }

  .price-section .card-body {
    padding: 20px !important;
  }

  .price-section .card-body > .p-4 {
    padding: 20px !important;
  }

  .price-section .price-info {
    padding: 20px !important;
  }

  .price-section .price-info h1 {
    font-size: 2rem !important;
    margin: 16px 0 !important;
  }

  .price-section .price-info ul {
    padding-left: 0 !important;
  }

  .price-section .price-info li {
    font-size: 0.95rem !important;
    margin-top: 12px !important;
  }

  .price-section .card-footer {
    padding: 20px !important;
  }

  .price-section .card-footer .btn {
    width: 100% !important;
  }

  /* ===== FAQ SECTION - Loxcy Style ===== */
  .faq-section {
    padding: 50px 0 !important;
  }

  .faq-section .main-title h2 {
    font-size: 1.75rem !important;
  }

  .faq-section .row.align-items-center {
    flex-direction: column !important;
  }

  .faq-section .col-lg-5 {
    width: 100% !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
  }

  .faq-section .faq-all {
    margin-bottom: 24px !important;
  }

  .faq-section .faq-all h5 {
    font-size: 1.1rem !important;
    margin-top: 0 !important;
    line-height: 1.4 !important;
  }

  .faq-section .faq-all h5 i {
    padding: 8px !important;
    margin-right: 12px !important;
    font-size: 0.9rem !important;
  }

  .faq-section .faq-all p {
    font-size: 0.95rem !important;
    margin-left: 40px !important;
    margin-top: 10px !important;
    line-height: 1.6 !important;
  }

  /* Hide FAQ background text */
  .faq-back {
    display: none !important;
  }

  /* ===== FOOTER SECTION - Loxcy Style ===== */
  .footer-part {
    padding: 50px 0 30px !important;
  }

  .footer-part .row {
    margin: 0 !important;
  }

  /* Logo and about - full width, centered */
  .footer-part .col-lg-4 {
    width: 100% !important;
    margin-bottom: 30px !important;
    text-align: center !important;
  }

  .footer-part .footer-about .logo {
    justify-content: center !important;
  }

  .footer-part .footer-about p {
    font-size: 0.95rem !important;
    margin-top: 16px !important;
    max-width: 400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Footer link columns - 2 column grid */
  .footer-part .col-lg-2,
  .footer-part .col-md-4 {
    width: 33.333% !important;
    margin-bottom: 24px !important;
    text-align: left !important;
  }

  .footer-part h5 {
    font-size: 1rem !important;
    margin-bottom: 16px !important;
  }

  .footer-part ul {
    margin-top: 0 !important;
  }

  .footer-part ul li {
    margin-bottom: 10px !important;
    font-size: 0.9rem !important;
  }

  .footer-part .copy-info {
    font-size: 0.85rem !important;
    margin-top: 20px !important;
  }

  /* ===== GENERAL MOBILE STYLES ===== */
  .section {
    padding: 50px 0 !important;
  }

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

  /* Typography - Loxcy style sizes */
  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.75rem !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  .title-sm span {
    font-size: 0.8rem !important;
  }

  .main-title h2 {
    font-size: 1.75rem !important;
  }
}

/* Reposition decorative SVG element to align on top of "Data" text */
.svg-img-3 img {
  left: 85% !important;
  top: 18% !important;
}

/* ===== EXTRA SMALL DEVICES (< 576px) ===== */
@media (max-width: 575.98px) {
  /* Hero adjustments */
  .hero-section h2.display-5 {
    font-size: 1.75rem !important;
  }

  .hero-section .phone-img {
    max-height: 320px !important;
  }

  /* Buttons stack vertically on very small screens */
  .hero-section .main-btn {
    flex-direction: column !important;
  }

  .hero-section .main-btn .btn {
    width: 100% !important;
  }

  /* Features - single column */
  .about-section .col-lg-6,
  .about-section .col-xl-4,
  .about-section .col-md-6 {
    width: 100% !important;
  }

  /* How it works steps - single column */
  .feature-section .row.mt-4 .col-lg-6 {
    width: 100% !important;
  }

  /* Footer - single column */
  .footer-part .col-lg-2,
  .footer-part .col-md-4 {
    width: 100% !important;
    text-align: center !important;
  }

  .section {
    padding: 40px 0 !important;
  }

  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  h1 {
    font-size: 1.75rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }
}
