/* Main Stylesheet - imports all CSS components */

/* Base styles and variables */
@import url('css/variables.css');
@import url('css/base.css');
@import url('css/layout.css');
@import url('css/animations.css');

/* Component styles */
@import url('css/header.css');
@import url('css/footer.css');
@import url('css/components.css');

/* Page-specific styles */
@import url('css/home.css');
@import url('css/services.css');
@import url('css/about.css');
@import url('css/showcase.css');
@import url('css/contact.css');
@import url('css/faqs.css');
@import url('css/forms.css');
@import url('css/policies.css');

/* Any additional global styles */
:root {
  scroll-behavior: smooth;
}

/* Fix for mobile overflow issues */
body {
  overflow-x: hidden;
  width: 100%;
}

/* Responsive styles */
@import url('css/responsive.css');

/* Hide sitemap link */
.footer-legal a[href="/sitemap/"] {
    display: none;
}

/* Fix potential z-index and pointer-event issues */
body * {
    pointer-events: auto !important;
}

.logo, .nav-toggle, a, button {
    position: relative;
    z-index: 100;
    cursor: pointer !important;
}

/* Ensure mobile menu is clickable */
.mobile-menu-overlay {
    z-index: 2000 !important;
}

/* Fix for any transparent overlays */
.hero::before,
section::before {
    pointer-events: none !important;
}

/* Critical overlay fix */
.mobile-menu-overlay:not(.open) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

body {
    pointer-events: auto !important;
}

.desktop-nav a,
.logo,
main a,
button,
.nav-toggle {
    position: relative !important;
    z-index: 100 !important;
    pointer-events: auto !important;
}

/* Fix for mobile navigation issues - add at the end of the file */

@media (max-width: 900px) {
  /* Hide desktop-nav completely on mobile */
  .desktop-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    clip: rect(0, 0, 0, 0) !important;
  }

  /* Fix for generic nav selector - make sure it doesn't impact the mobile menu */
  header nav:not(.mobile-menu-overlay) {
    display: none !important;
  }

  /* Make mobile overlay hidden by default with no positioning side effects */
  .mobile-menu-overlay:not(.open) {
    display: none !important;
    visibility: hidden !important;
  }

  /* Ensure the mobile menu is properly displayed when open */
  .mobile-menu-overlay.open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2000 !important;
  }
}

/* Mobile Menu & Logo Fix - Override all conflicting styles */
@media (max-width: 900px) {
  /* Ensure desktop nav is fully hidden */
  .desktop-nav {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
  }
  
  /* Fix mobile menu behavior */
  .mobile-menu-overlay:not(.open) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  .mobile-menu-overlay.open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2000 !important;
  }
  
  /* Header container layout */
  .header-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0.8rem 1rem !important;
    position: relative !important;
  }
  
  /* Center logo */
  .logo {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
    width: auto !important;
  }
  
  /* Larger logo text */
  .logo h1 {
    font-size: 2.6rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    letter-spacing: 0.5px !important;
  }
  
  /* Position burger menu to left */
  .nav-toggle {
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 200 !important;
    display: flex !important;
    margin: 0 !important;
  }
}

/* Slightly smaller text on very small screens */
@media (max-width: 375px) {
  .logo h1 {
    font-size: 2.3rem !important;
  }
}

/* Updated Mobile Menu Balance Fix - Add this at the very end of your styles.css file */

@media (max-width: 900px) {
  /* Better header container sizing */
  .header-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important; /* Changed from center to space-between */
    align-items: center !important;
    padding: 1.2rem 1rem !important; /* Increased padding to make header taller */
    position: relative !important;
    min-height: 70px !important; /* Ensure minimum height for the header */
    width: 100% !important;
  }
  
  /* Better logo positioning */
  .logo {
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
    width: auto !important;
    position: static !important; /* Changed from absolute to static */
    transform: none !important; /* Remove transform */
  }
  
  /* More balanced logo text size */
  .logo h1 {
    font-size: 1.9rem !important; /* Reduced from 2.6rem to 1.9rem */
    font-weight: 700 !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    letter-spacing: 0.5px !important;
  }
  
  /* Larger burger menu */
  .nav-toggle {
    position: relative !important; /* Changed from absolute to relative */
    left: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: 200 !important;
    display: flex !important;
    margin: 0 !important;
    padding: 0.5rem !important;
  }
  
  /* Make burger icon lines thicker and more visible */
  .nav-toggle span {
    height: 3px !important;
    width: 28px !important;
    background: #f5f5f5 !important;
    margin-bottom: 5px !important;
    border-radius: 2px !important;
  }
}

/* Updated burger menu positioning - add at the end of your styles.css file */

@media (max-width: 900px) {
  /* Adjusted burger menu position */
  .nav-toggle {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: 200 !important;
    display: flex !important;
    margin: 0 !important;
    margin-right: 0.75rem !important; /* Add right margin */
    padding: 0.5rem !important;
    margin-left: -0.5rem !important; /* Pull slightly left */
  }
  
  /* Make burger icon lines thicker and more visible */
  .nav-toggle span {
    height: 3px !important;
    width: 26px !important; /* Slightly reduced width */
    background: #f5f5f5 !important;
    margin-bottom: 5px !important;
    border-radius: 2px !important;
  }
}

@media (max-width: 500px) {
  /* Extra adjustment for very small screens */
  .nav-toggle {
    margin-left: -0.75rem !important; /* Pull more to the left on smaller screens */
    margin-right: 0.5rem !important;
  }
}

/* Extra small devices */
@media (max-width: 375px) {
  .logo h1 {
    font-size: 1.7rem !important; /* Even smaller on tiny screens */
  }
}

/* Fix for burger menu positioning on all mobile screens - add at the very end of your CSS file */

@media (max-width: 900px) {
  /* Universal burger menu fix */
  .nav-toggle {
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 200 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 30px !important;
    height: 30px !important;
    padding: 5px !important;
    box-sizing: content-box !important;
    margin: 0 !important;
  }

  /* Ensure burger spans are properly sized */
  .nav-toggle span {
    display: block !important;
    height: 3px !important;
    width: 28px !important;
    margin-bottom: 5px !important;
    background-color: #f5f5f5 !important;
    border-radius: 2px !important;
  }
  
  /* Remove bottom margin from last span */
  .nav-toggle span:last-child {
    margin-bottom: 0 !important;
  }
  
  /* Make sure header container has proper spacing */
  .header-container {
    min-height: 70px !important;
    padding-left: 60px !important; /* Increased left padding to accommodate burger */
  }
}

/* Extra adjustments for medium-sized screens */
@media (min-width: 500px) and (max-width: 900px) {
  .nav-toggle {
    left: 25px !important; /* Slightly more offset on medium screens */
  }
  
  .header-container {
    padding-left: 70px !important;
  }
}

/* Add this at the very end of your styles.css file to override all other styles */

@media (max-width: 900px) {
  /* Fixed header container positioning */
  .header-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    padding: 1rem 0.5rem !important;
    width: 100% !important;
    min-height: 70px !important;
  }
  
  /* Fixed logo positioning */
  .logo {
    position: static !important;
    transform: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Fixed text styling */
  .logo h1 {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }
  
  /* Position burger to absolute top left */
  .nav-toggle {
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    z-index: 200 !important;
  }
}

/* Responsive logo text sizes for very small screens - add at the very end of your CSS file */

/* Medium small devices (375px) */
@media (max-width: 375px) {
  .logo h1 {
    font-size: 1.6rem !important;
    letter-spacing: 0 !important;
  }
}

/* Extra small devices (320px) */
@media (max-width: 320px) {
  .logo h1 {
    font-size: 1.4rem !important;
    letter-spacing: 0 !important;
  }
  
  /* Add a bit more padding around the header */
  .header-container {
    padding: 0.5rem 0.3rem !important;
  }
  
  /* Make burger menu slightly smaller */
  .nav-toggle span {
    width: 22px !important;
  }
}