/*--------------------------------------------------------------------- 
Responsive CSS for JSA-BAU Website
---------------------------------------------------------------------*/

/* Large Desktop Screens (1400px and above) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Desktop (1200px to 1399px) */
@media (max-width: 1399px) {
  .container {
    max-width: 1140px;
  }
  
  .banner_taital {
    font-size: 3rem;
  }
}

/* Tablets Landscape & Small Desktops (992px to 1199px) */
@media (max-width: 1199px) {
  body {
    padding-top: 135px;
  }
  
  .container {
    max-width: 960px;
  }
  
  .banner_taital {
    font-size: 2.75rem;
  }
  
  .banner_text {
    font-size: 1.15rem;
  }
  
  .services-grid,
  .choose-grid {
    gap: 25px;
  }
  
  .service-card,
  .choose-card {
    min-width: 280px;
  }
}

/* Tablets Portrait (768px to 991px) */
@media (max-width: 991px) {
  body {
    padding-top: 135px;
  }
  
  .container {
    max-width: 720px;
  }
  
  /* Header */
  .main-nav {
    display: none;
    position: fixed;
    top: 135px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 30px;
    gap: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 999;
    animation: slideDown 0.3s ease;
    border-top: 3px solid #dc2626;
    transition: top 0.3s ease;
  }
  
  /* Adjust mobile menu position when header is hidden */
  .header_section.hide-header ~ * .main-nav.active,
  .hide-header + * .main-nav.active {
    top: 0;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .main-nav a {
    font-size: 1.1rem;
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    color: #1a202c;
  }
  
  .main-nav a:last-child {
    border-bottom: none;
  }
  
  .main-nav a:hover {
    background-color: #f8fafc;
    color: #dc2626;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  /* Banner */
  .banner-row {
    flex-direction: column;
    gap: 30px;
  }
  
  .banner_section {
    padding: 60px 0 50px 0;
  }
  
  .banner_taital {
    font-size: 2.5rem;
    text-align: center;
  }
  
  .banner_text {
    font-size: 1.1rem;
    text-align: center;
  }
  
  .btn-group {
    justify-content: center;
  }
  
  .banner_img {
    height: 450px;
  }
  
  .banner-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Services & Choose Sections */
  .services-grid,
  .choose-grid {
    flex-direction: column;
  }
  
  .service-card,
  .choose-card {
    min-width: 100%;
  }
  
  /* Contact Section */
  .inquiry-container {
    flex-direction: column;
    gap: 40px;
  }
  
  .inquiry-form-col,
  .inquiry-map-col {
    min-width: 100%;
  }
  
  /* Footer */
  .footer-content {
    gap: 40px;
  }
  
  .footer-col {
    min-width: 45%;
  }
  
  /* Typography */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
}

/* Mobile Landscape & Small Tablets (576px to 767px) */
@media (max-width: 767px) {
  body {
    padding-top: 120px;
  }
  
  .container {
    max-width: 540px;
    padding: 0 15px;
  }
  
  /* Sections */
  .section-padding,
  .services_section,
  .choose_section,
  .inquiry_section {
    padding: 60px 0;
  }
  
  .banner_section {
    padding: 50px 0 40px 0;
  }
  
  /* Header */
  .top-bar {
    padding: 8px 0;
  }
  
.contact_menu {
    gap: 12px;
  }
  
  .contact_menu ul {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .contact_menu li {
    font-size: 0.85rem;
    justify-content: center;
  }
  
  .main-header {
    padding: 15px 0;
  }
  
  .logo img {
    max-height: 60px;
  }
  
  .main-nav {
    top: 120px;
  }
  
  /* Banner */
.banner_taital {
    font-size: 2rem;
  }
  
  .banner_text {
    font-size: 1rem;
  }
  
.banner_img {
    height: 400px;
  }
  
  .banner-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Services */
  .service-image {
    height: 240px;
  }
  
  .service-content {
    padding: 30px 25px;
  }
  
  .express_text {
    font-size: 1.4rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 30px 20px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-control {
    padding: 12px 15px;
  }
  
  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 35px;
  }
  
  .footer-col {
    min-width: 100%;
  }
  
  .footer_section {
    padding: 50px 0 30px 0;
  }
  
  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.35rem; }
}

/* Mobile Portrait (320px to 575px) */
@media (max-width: 575px) {
  body {
    padding-top: 70px;
  }
  
  .container {
    max-width: 100%;
    padding: 0 15px;
  }
  
  /* Header */
  .top-bar {
    display: none;
}
  
  .main-header {
    padding: 12px 0;
  }
  
  .logo img {
    max-height: 55px;
  }
  
  .main-nav {
    top: 105px;
  }
  
  /* Banner */
  .banner_section {
    padding: 40px 0 40px 0;
  }
  
  .banner_taital {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 15px;
  }
  
  .banner_text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }
  
  .banner-row {
    gap: 25px;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 14px 30px;
    font-size: 1rem;
  }
  
.banner_img {
    height: 400px;
    border-radius: 15px;
  }
  
  .banner-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Sections */
  .services_section,
  .choose_section,
  .inquiry_section {
    padding: 50px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .services_taital {
    font-size: 1.75rem;
  }
  
  .services_text {
    font-size: 1rem;
  }
  
  /* Services */
  .services-grid {
    gap: 25px;
    margin-top: 40px;
  }
  
  .service-card {
    min-width: 100%;
  }
  
  .service-image {
    height: 220px;
  }
  
  .service-content {
    padding: 25px 20px;
  }
  
  .express_text {
    font-size: 1.3rem;
  }
  
  .lorem_text {
    font-size: 0.95rem;
  }
  
  /* Choose Section */
  .choose-grid {
    gap: 20px;
    margin-top: 40px;
  }
  
  .choose-card {
    padding: 30px 20px;
  }
  
  .choose-number {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .number_text {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .trusted_text {
    font-size: 1.2rem;
  }
  
  .dummy_text {
    font-size: 0.95rem;
  }
  
  /* Contact Section */
  .inquiry_text {
    font-size: 1.5rem;
  }
  
  .contact-form {
    padding: 25px 15px;
  }
  
  .form-group label {
    font-size: 0.9rem;
  }
  
  .form-control {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
  
  .btn-submit {
    padding: 14px 40px;
    font-size: 1rem;
  }
  
  .map-container {
    min-height: 350px;
  }
  
  .map-container iframe {
    min-height: 350px;
  }
  
  /* Footer */
  .footer_section {
    padding: 40px 0 25px 0;
  }
  
  .footer-col {
    text-align: center;
}
  
  .useful_text {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }
  
  .location_text {
    justify-content: center;
    font-size: 0.95rem;
  }
  
  .footer_text {
    font-size: 0.95rem;
  }
  
  .copyright_section {
    padding: 20px 0;
  }
  
  .copyright_text {
    font-size: 0.85rem;
    line-height: 1.6;
  }
  
  /* Typography */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }
  
  p {
    font-size: 0.95rem;
  }
}

/* Extra Small Devices (max-width: 375px) */
@media (max-width: 375px) {
  .banner_taital {
    font-size: 1.5rem;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 12px 25px;
    font-size: 0.95rem;
  }
  
  .service-content,
  .choose-card,
  .contact-form {
    padding: 20px 15px;
  }
}

/* Landscape Orientation for Mobile Devices */
@media (max-height: 600px) and (orientation: landscape) {
  .banner_section {
    padding: 40px 0;
  }
  
  .banner_img {
    height: 250px;
  }
  
  .services_section,
  .choose_section,
  .inquiry_section {
    padding: 40px 0;
  }
}

/* Print Styles */
@media print {
  .header_section,
  .mobile-menu-toggle,
  .btn-group,
  .contact-form,
  .map-container,
  .copyright_section {
    display: none;
}
  
  body {
    font-size: 12pt;
    color: #000;
  }
  
  .banner_section,
  .services_section,
  .choose_section {
    padding: 20px 0;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .btn-primary,
  .btn-secondary {
    border-width: 3px;
  }
  
  .service-card,
  .choose-card,
  .contact-form {
    border: 2px solid #000;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  /* Can be implemented if needed for dark mode */
}
