/* Additional responsive fixes for all screen sizes */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
  /* Header improvements */
  header .container {
    padding: 0 10px;
  }

  .logo img {
    max-height: 50px;
  }

  /* Section padding adjustments */
  section {
    padding: 40px 0;
  }

  /* Font size adjustments */
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  /* Location & FAQ section */
  .map-faq-container {
    gap: 20px;
  }

  .map-wrapper {
    height: 250px;
  }

  /* Form elements */
  .form-row {
    flex-direction: column;
  }

  .form-group {
    width: 100%;
  }

  /* Footer adjustments */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-links-column {
    padding-left: 0;
  }

  /* Navigation menu responsive fixes */
  /* Mobile navigation improvements */
  /* 
  Note: Hamburger styles are handled in header-fix.css to avoid conflicts
  .hamburger {
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
    height: 44px;
    width: 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  .hamburger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 2px 0;
    transition: all 0.3s ease;
  }

  Active hamburger animation 
  .hamburger.active .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger.active .line2 {
    opacity: 0;
  }

  .hamburger.active .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  */

  /* Mobile menu container */
  .nav-links {
    position: fixed;
    right: -100%;
    top: 80px;
    flex-direction: column;
    background-color: rgba(250, 208, 44, 0.95);
    width: 100%;
    text-align: center;
    transition: right 0.3s ease;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 20px 0;
    z-index: 1000;
  }

  /* Active mobile menu */
  .nav-links.active {
    right: 0;
  }

  /* Mobile menu links */
  .nav-links li {
    margin: 0;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
  }

  /* Stagger the animation for each menu item */
  .nav-links.active li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links.active li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links.active li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links.active li:nth-child(4) {
    transition-delay: 0.4s;
  }
  .nav-links.active li:nth-child(5) {
    transition-delay: 0.5s;
  }
  .nav-links.active li:nth-child(6) {
    transition-delay: 0.6s;
  }
  .nav-links.active li:nth-child(7) {
    transition-delay: 0.7s;
  }

  /* Mobile menu link styling */
  .nav-links a {
    padding: 15px;
    display: block;
    font-size: 1.1rem;
    letter-spacing: 1px;
    width: 100%;
  }

  /* Prevent scrolling of body when mobile menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

/* Small devices (landscape phones, 576px to 767px) */
@media (min-width: 577px) and (max-width: 767px) {
  .logo img {
    max-height: 55px;
  }

  /* Two column layout in footer for this size */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Medium devices (tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  /* Adjust service icon items to fit better */
  .services-icons-container {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Adjust flip cards for better fit */
  .flip-cards-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .flip-card:last-child {
    grid-column: span 2;
    width: 80%;
    margin: 0 auto;
  }

  .nav-links {
    width: 300px; /* Sidebar style for tablets */
    right: -300px;
  }
}

/* Navigation menu responsive fixes */

/* Mobile navigation improvements */
@media (max-width: 991px) {
  /* 
  Note: Hamburger menu styling handled in header-fix.css to avoid conflicts
  .hamburger {
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
    height: 44px;
    width: 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  .hamburger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 2px 0;
    transition: all 0.3s ease;
  }

  Active hamburger animation 
  .hamburger.active .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger.active .line2 {
    opacity: 0;
  }

  .hamburger.active .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  */

  /* Mobile menu container */
  .nav-links {
    position: fixed;
    right: -100%;
    top: 80px;
    flex-direction: column;
    background-color: rgba(250, 208, 44, 0.95);
    width: 100%;
    text-align: center;
    transition: right 0.3s ease;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 20px 0;
    z-index: 1000;
  }

  /* Active mobile menu */
  .nav-links.active {
    right: 0;
  }

  /* Mobile menu links */
  .nav-links li {
    margin: 0;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
  }

  /* Stagger the animation for each menu item */
  .nav-links.active li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links.active li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links.active li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links.active li:nth-child(4) {
    transition-delay: 0.4s;
  }
  .nav-links.active li:nth-child(5) {
    transition-delay: 0.5s;
  }
  .nav-links.active li:nth-child(6) {
    transition-delay: 0.6s;
  }
  .nav-links.active li:nth-child(7) {
    transition-delay: 0.7s;
  }

  /* Mobile menu link styling */
  .nav-links a {
    padding: 15px;
    display: block;
    font-size: 1.1rem;
    letter-spacing: 1px;
    width: 100%;
  }

  /* Prevent scrolling of body when mobile menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

/* Extra small devices additional menu fixes */
@media (max-width: 576px) {
  .nav-links {
    top: 70px; /* Adjust based on smaller header height */
    height: calc(100vh - 70px);
  }

  /* Smaller font and padding for very small screens */
  .nav-links a {
    padding: 12px;
    font-size: 1rem;
  }
}

/* Medium devices specific menu adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  .nav-links {
    width: 300px; /* Sidebar style for tablets */
    right: -300px;
  }
}

/* Large devices - ensure desktop menu works properly */
@media (min-width: 992px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    background: none;
    height: auto;
    padding: 0;
    box-shadow: none;
  }

  .nav-links li {
    opacity: 1;
    transform: none;
  }

  /* Desktop menu hover effect */
  .nav-links a {
    position: relative;
    padding: 10px 15px;
  }

  .nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .nav-links a:hover:after,
  .nav-links a.active:after {
    width: 70%;
  }
}

@media (max-width: 576px) {
  .testimonial-author-image img {
    width: 50px;
    height: 50px;
  }
}
