@media (max-width: 1200px) {
  .main-header,
  .header-wrapper,
  .info-section,
  .about-section,
  .footer-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .product-highlight {
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .service-detail-layout,
  .services-layout {
    flex-direction: column;
    margin: 30px auto;
    padding: 0 20px;
  }
  .about-section {
    flex-direction: column;
    gap: 30px;
    padding: 40px 10px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
@media (max-width: 768px) {
  .header-wrapper {
    flex-direction: column;
    gap: 15px;
  }
  .links-grid,
  .content-grid,
  .two-column {
    grid-template-columns: 1fr !important;
  }
  .btn,
  .read-more {
    width: 100%;
    text-align: center;
  }
}
@media screen and (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 0;
    border-radius: 0;
  }
  .slideshow-container {
    position: relative;
    height: 260px;
  }
  .slideshow-container .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
  }
  .hero-overlay {
    position: absolute;
    inset: 0;
    padding: 20px 20px 24px;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.35) 55%,
      rgba(0, 0, 0, 0.05) 100%
    );
  }
  .hero-text {
    max-width: 100%;
    padding: 0;
  }
  .hero-text .tagline {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
  }
  .hero-text h1 {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 0;
  }
  .hero-text h1 em {
    display: block;
    font-size: 1.2rem;
    font-style: italic;
  }
  .hero-text p {
    display: none;
  }
  .hero-cta {
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 15px 20px;
    font-size: 0.88rem;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    z-index: 10;
  }
}
@media screen and (max-width: 768px) {
  .hero-section {
    display: flex;
    flex-direction: column;
  }
  .slideshow-container {
    order: 1;
    flex-shrink: 0;
  }
  .hero-overlay {
    order: 1;
  }
  .hero-cta {
    order: 2;
    position: static;
    border-radius: 0;
    margin: 0;
  }
}
@media (max-width: 700px) {
  .main-header {
    padding: 10px 0;
  }
  .header-wrapper {
    flex-direction: column;
    gap: 10px;
    padding: 0 8px;
  }
  .logo-container img {
    height: 60px;
  }
  .info-section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 8px;
  }
  .specialty-section,
  .about-section {
    padding: 30px 8px;
  }
  .product-highlight {
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }
  .product-highlight img {
    width: 100%;
    height: 220px;
  }
  .product-info {
    padding: 20px 0 20px 0;
  }
  .footer-content {
    padding: 0 8px 20px;
  }
}
@media (max-width: 500px) {
  .main-header {
    padding: 4px 0;
  }
  .logo-container img {
    height: 40px;
  }
  .info-section h3 {
    font-size: 1.1rem;
    min-width: unset;
    width: 100%;
  }
  .specialty-section h2,
  .about-text h2 {
    font-size: 1.3rem;
  }
  .footer-bottom {
    font-size: 0.8rem;
    padding: 10px 0;
  }
}
@media (max-width: 900px) {
  #backToTop.show {
    display: flex !important;
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    z-index: 2000;
  }
}
@media (max-width: 900px) {
  .service-detail-layout,
  .services-layout {
    flex-direction: column;
    margin: 30px auto;
    padding: 0 20px;
  }
  .about-section {
    flex-direction: column;
    gap: 30px;
    padding: 40px 10px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 8px 20px;
  }
  .main-header .navigation {
    display: none;
  }
  .footer-nav {
    display: block;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-navigation[hidden] {
    display: none;
  }
  .mobile-navigation:not([hidden]) {
    display: block;
  }
  #backToTop.show {
    display: flex !important;
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    z-index: 2000;
  }
  .mobile-navigation:not([hidden]) ~ .logo-container img,
  .main-header .logo-container img {
    height: 80px !important;
    max-width: 220px;
    transition: height 0.3s;
  }
  .contact-info {
    display: none;
  }
  .footer-nav {
    display: block;
  }
  .footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .footer-nav li {
    margin-bottom: 10px;
  }
}
@media (min-width: 769px) and (max-width: 820px) {
  .header-wrapper {
    position: relative;
    justify-content: center;
  }
  .logo-container {
    flex: 0 0 auto;
    text-align: center;
    margin: 0 auto;
  }
  .hero-section,
  .slideshow-container {
    height: 380px;
    margin: 20px auto 0;
  }
  .hero-overlay {
    padding: 0 0 45px 50px;
    align-items: flex-end;
  }
  .hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.25;
  }
  .hero-text p {
    font-size: 1rem;
    margin-bottom: 22px;
  }
  .hero-cta {
    padding: 13px 26px;
    font-size: 0.92rem;
  }
}
