/* mobile-responsive.css - Enhanced mobile responsiveness for Ppyah Parking */

/* Base responsive viewport settings */
@viewport {
  width: device-width;
  zoom: 1.0;
}

/* Mobile-first approach with core responsiveness improvements */
html, body {
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

/* Improved containers for mobile */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Responsive typography */
h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.3;
}

p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.6;
}

/* Enhanced mobile navigation */
header {
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.logo img {
  height: 40px;
  transition: height 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.4s ease;
    z-index: 1001;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    font-size: 1.2rem;
  }

  .hamburger {
    display: flex;
    z-index: 1002;
    cursor: pointer;
  }

  /* Improved animation for hamburger menu */
  .hamburger span {
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Hero section improvements */
.hero {
  padding-top: 80px;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.about-hero, .solutions-hero {
  padding-top: 80px;
  height: auto;
  min-height: 30vh;
  display: flex;
  align-items: center;
  padding-bottom: 30px;
}

/* Card layouts for responsive grid */
.feature-cards, 
.solutions-grid, 
.tech-feature-grid, 
.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

/* Card responsiveness */
.feature-card, 
.solution-card, 
.tech-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Responsive content sections */
.mission-content, 
.tech-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

/* Media query for tablet devices */
@media (max-width: 992px) {
  .mission-content,
  .tech-feature,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .mission-image,
  .tech-image {
    order: -1;
    margin-bottom: 1rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  /* Adjust button spacing */
  .btn-primary, .btn-secondary {
    margin: 0.5rem;
  }
  
  /* Improved spacing for mobile */
  section {
    padding: 3rem 0;
  }
  
  .mission-section,
  .technology-section,
  .solutions-grid {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* Media query for mobile devices */
@media (max-width: 576px) {
  header {
    padding: 8px 0;
  }
  
  .logo img {
    height: 35px;
  }
  
  .hamburger span {
    width: 22px;
    height: 2px;
  }
  
  .hero {
    padding-top: 70px;
  }
  
  /* Single column for smaller screens */
  .feature-cards,
  .solutions-grid,
  .tech-feature-grid,
  .team-members {
    grid-template-columns: 1fr;
  }
  
  .cta {
    padding: 2.5rem 0;
  }
  
  .cta h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
  
  .cta p {
    font-size: clamp(0.9rem, 3vw, 1rem);
  }
  
  /* Stack buttons on mobile */
  .cta .container > a {
    display: block;
    margin: 1rem auto;
    max-width: 200px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  /* Fix for all pages specifically */
  .about-hero, .solutions-hero {
    padding-top: 70px;
    min-height: 25vh;
  }
  
  /* Adjust padding for better mobile spacing */
  .container {
    padding: 0 15px;
  }
  
  section.container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Improvements for the featured video on homepage */
.featured-video {
  width: 100% !important;
  margin: 1.5rem auto !important;
}

@media (max-width: 768px) {
  #video-placeholder {
    height: auto !important;
  }
  
  #video-placeholder div {
    width: 60px !important;
    height: 60px !important;
  }
  
  #video-placeholder svg {
    width: 25px !important;
    height: 25px !important;
  }
}

/* Better form elements on mobile */
.form-group input,
.form-group textarea {
  padding: 12px !important;
  font-size: 16px !important; /* Prevents iOS zoom on focus */
  border-radius: 8px !important;
}

/* Improve mobile touch targets */
.nav-links a,
.footer-links a,
.btn-primary,
.btn-secondary {
  padding: 0.8rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Fix for solution cards on mobile */
@media (max-width: 576px) {
  .solution-card, 
  .tech-card,
  .feature-card {
    padding: 1.2rem !important;
    margin-bottom: 0.5rem;
  }
  
  .solution-card h3,
  .tech-card h3,
  .feature-card h3 {
    font-size: 1.2rem !important;
  }
  
  .solution-card ul,
  .tech-card ul,
  .feature-card ul {
    margin-left: 15px !important;
  }
}

/* Responsive adjustments for about page SVG */
@media (max-width: 768px) {
  .mission-image svg {
    height: auto;
    width: 100%;
  }
  
  .mission-text {
    padding-right: 0 !important;
  }
}

/* Ensure consistent spacing for tech feature grid on mobile */
@media (max-width: 768px) {
  .tech-feature-grid {
    gap: 20px !important;
  }
}

/* Contact page specific mobile adjustments */
.contact-info-wrapper {
  padding: 0 10px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .contact-item {
    margin-bottom: 1.5rem !important;
  }
  
  .contact-item h4 {
    margin-bottom: 0.2rem;
  }
}

/* Safety overlay for touch screens */
.safety-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.safety-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Improve mobile menu navigation */
@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
  }
}

/* Critical hamburger menu styles - add these to your mobile-responsive.css file */

/* Mobile menu container */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    background-color: #1a1a1a; /* var(--dark) fallback */
    background-color: var(--dark, #1a1a1a);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.4s ease;
    z-index: 1001;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }
  
  /* Active state - when menu is open */
  .nav-links.active {
    right: 0;
  }
  
  /* Hamburger button */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
  }
  
  /* Hamburger bars */
  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff; /* var(--light) fallback */
    background-color: var(--light, #ffffff);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  /* Hamburger animation when active */
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Safety overlay for when menu is open */
  .safety-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .safety-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Prevent body scrolling when menu is open */
  body.menu-open {
    overflow: hidden;
  }
  
  /* Nav links styling */
  .nav-links a {
    display: block;
    padding: 10px;
    color: #ffffff; /* var(--light) fallback */
    color: var(--light, #ffffff);
    font-size: 18px;
    text-align: center;
    width: 100%;
  }
}