/* mobile/tablet overrides */

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 12px;
  gap: 6px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #333;
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Tablet layout tweaks */
@media (max-width: 1024px) {
  body {
    padding-top: 40px;
  }

  .header {
    position: relative;
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 1200;
  }

  .info {
    padding: 12px 0;
    position: static;
    background-color: #fff;
    box-shadow: none;
    display: none;
    flex-direction: column;
    width: 100%;
    align-items: center;
    margin-top: 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .header.nav-open .info {
    display: flex;
  }

  .info ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .info ul li {
    width: 100%;
    text-align: center;
  }

  .nav-button {
    width: 90%;
    margin: 0 auto;
    padding: 10px 0;
    border-radius: 4px;
    text-align: center;
  }

  .header-text h2 {
    font-size: 1em;
    padding: 0 10px;
  }

  .hero .contact {
    margin-top: 20px;
  }

  .contact-info-box {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-details,
  .contact-form-box {
    width: 100%;
    max-width: none;
  }

  .contact-form-box {
    padding: 24px;
    border-width: 1px;
  }

  .contact-form-box input,
  .contact-form-box textarea {
    width: 100%;
  }

  .carousel {
    max-width: 100%;
    padding: 0 10px;
  }

  .carousel-items img {
    max-width: 100%;
  }
}

/* Phone layout tweaks */
@media (max-width: 600px) {
  .info ul {
    gap: 6px;
  }

  .nav-button {
    font-size: 0.9em;
  }

  .contact-form-box {
    border-width: 0;
    background-color: transparent;
  }

  .button {
    width: 100%;
  }

  .hero .header-text img {
    width: 60%;
  }

  .testimonials h2 {
    font-size: 1.6em;
  }
}
