/* ========================================
   Responsive Design - Media Queries
   ======================================== */

/* Extra Large Desktop (1600px and up) */
@media (min-width: 1600px) {
    .container {
        padding: 0 var(--ast-container-default-xlg-padding);
        max-width: 94%; /* Use almost full width on very large screens */
    }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        padding: 0 var(--ast-container-default-xlg-padding);
        max-width: 94%; /* Allow container to use more of the available width */
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop (1024px to 1199px) */
@media (max-width: 1199px) {
    .container {
        padding: 0 var(--ast-container-default-lg-padding);
        max-width: 95%; /* Allow container to use more of the available width */
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

/* Tablet (768px to 1023px) */
@media (max-width: 1023px) {
    .container {
        padding: 0 var(--ast-container-default-md-padding);
        max-width: 95%; /* Allow container to use more of the available width */
    }
    
    /* Header adjustments */
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
    
    /* Typography adjustments */
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    /* Hero section */
    .hero-section {
        padding: 0;
        min-height: 80vh;
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .hero-content {
        padding: 6rem 0 4rem 0; /* Adjust padding for tablet */
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start; /* Left aligned on mobile too */
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Stats section */
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stats-cta {
        padding: 2rem 1.5rem;
        text-align: center;
        align-items: center;
    }
    
    .stats-grid {
        padding: 0;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        border-left: 1px solid var(--ast-global-color-6);
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
        border-right: 1px solid var(--ast-global-color-6);
        border-bottom: 1px solid var(--ast-global-color-6);
    }
    
    .stat-item:nth-child(2n) {
        border-right: none;
    }
    
    .stat-item:nth-child(n+3) {
        border-bottom: none;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Info section */
    .info-section {
        padding: 6rem 0 8rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); /* Adjust slant for tablet */
    }
    
    .info-section::after {
        height: 80px;
    }
    
    .info-section::before {
        bottom: 75px;
    }
    
    .info-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-title {
        font-size: 2.5rem;
    }
    
    /* Services Grid section */
    .services-grid-section {
        padding: 4rem 0;
    }
    
    .services-grid-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-grid-item {
        padding-left: 1.5rem;
    }
    
    .service-item-image img {
        width: 70px;
        height: 70px;
    }
    
    .services-grid-title {
        font-size: 2rem;
    }
    
    .info-description {
        font-size: 1rem;
    }
    
    /* Mission Vision section */
    .mission-vision-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .mission-column,
    .vision-column {
        padding: 3rem 2rem;
        min-height: 400px;
    }
    
    .mission-title,
    .vision-title {
        font-size: 2rem;
    }
    
    .mission-description,
    .vision-description {
        font-size: 0.95rem;
    }
    
    .feature-item {
        gap: 0.75rem;
    }
    
    .feature-icon {
        width: 35px;
        height: 35px;
    }
    
    .feature-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .feature-text {
        font-size: 0.95rem;
    }
    
    /* Our Services section */
    .our-services-section {
        padding: 5rem 0;
    }
    
    .services-header {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .services-title {
        font-size: 2.5rem;
    }
    
    .services-description {
        font-size: 1rem;
    }
    
    .services-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card-title {
        font-size: 1.25rem;
    }
    
    .service-card-address {
        font-size: 0.95rem;
    }
    
    /* Services section */
    .services-section {
        padding: 5rem 0;
    }
    
    .services-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-title {
        font-size: 2.25rem;
    }
    
    .services-description {
        font-size: 1.1rem;
    }
    
    .service-item {
        gap: 1rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon svg {
        width: 20px;
        height: 20px;
    }
    
    /* Services section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Projects section */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Testimonials section */
    .testimonials-slider {
        padding: 1.5rem 0 3rem 0;
    }
    
    .testimonials-slider .swiper-button-next,
    .testimonials-slider .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .testimonials-slider .swiper-button-next:after,
    .testimonials-slider .swiper-button-prev:after {
        font-size: 16px;
    }
    
    .testimonials-slider .swiper-button-next {
        right: 10px;
    }
    
    .testimonials-slider .swiper-button-prev {
        left: 10px;
    }
    
    /* Contact section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {
    .container {
        padding: 0 var(--ast-container-default-xs-padding);
        max-width: 95%; /* Allow container to use more of the available width */
    }
    
    /* Typography adjustments */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Hero section */
    .hero-section {
        padding: 0;
        min-height: 70vh;
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .hero-content {
        padding: 4rem 0 3rem 0; /* Adjust padding for mobile */
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    /* Stats section */
    .stats-section {
        margin-top: -2rem !important;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stats-cta {
        padding: 1.5rem 1rem;
        text-align: center;
        align-items: center;
    }
    
    .stats-cta h3 {
        font-size: 1.25rem;
    }
    
    .stats-cta p {
        font-size: 0.9rem;
    }
    
    .stats-grid {
        padding: 0;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        border-left: 1px solid var(--ast-global-color-6);
    }
    
    .stat-item {
        padding: 1rem 0.75rem;
        border-right: 1px solid var(--ast-global-color-6);
        border-bottom: 1px solid var(--ast-global-color-6);
    }
    
    .stat-item:nth-child(2n) {
        border-right: none;
    }
    
    .stat-item:nth-child(n+3) {
        border-bottom: none;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Info section */
    .info-section {
        padding: 5rem 0 7rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); /* Adjust slant for mobile */
    }
    
    .info-section::after {
        height: 70px;
    }
    
    .info-section::before {
        bottom: 65px;
    }
    
    .info-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-title {
        font-size: 2rem;
    }
    
    /* Services Grid section */
    .services-grid-section {
        padding: 3rem 0;
    }
    
    .services-grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-grid-item {
        padding-left: 1rem;
    }
    
    .service-item-image img {
        width: 60px;
        height: 60px;
    }
    
    .services-grid-title {
        font-size: 1.75rem;
    }
    
    .service-item-title {
        font-size: 1.1rem;
    }
    
    .service-item-description {
        font-size: 0.9rem;
        max-width: 300px;
    }
    
    .info-description {
        font-size: 0.9rem;
    }
    
    /* Mission Vision section */
    .mission-vision-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .mission-column,
    .vision-column {
        padding: 2rem 1.5rem;
        min-height: 350px;
    }
    
    .mission-title,
    .vision-title {
        font-size: 1.75rem;
    }
    
    .mission-description,
    .vision-description {
        font-size: 0.9rem;
    }
    
    .feature-item {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-icon {
        width: 30px;
        height: 30px;
    }
    
    .feature-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .feature-text {
        font-size: 0.9rem;
    }
    
    /* Our Services section */
    .our-services-section {
        padding: 4rem 0;
    }
    
    .services-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .services-title {
        font-size: 2rem;
    }
    
    .services-description {
        font-size: 0.95rem;
    }
    
    .services-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .service-card-title {
        font-size: 1.125rem;
    }
    
    .service-card-address {
        font-size: 0.9rem;
    }
    
    .service-card-link {
        font-size: 0.9rem;
    }
    
    .services-cta .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    /* CTA section */
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 15px 35px;
        font-size: 0.95rem;
    }
    
    /* FAQ section */
    .faq-section {
        padding: 4rem 0;
    }
    
    .faq-title {
        font-size: 2.5rem;
    }
    
    .faq-container {
        margin: 0 1rem;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
    }
    
    .faq-number {
        font-size: 1rem;
        margin-right: 0.75rem;
    }
    
    .faq-text {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }
    
    .faq-item.active .faq-answer {
        padding-left: 2.75rem;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
    }
    
    /* Contact Page section */
    .contact-page-section {
        padding: 4rem 0;
    }
    
    .contact-page-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-details-title {
        font-size: 2rem;
    }
    
    .contact-info {
        gap: 1.5rem;
    }
    
    .contact-item {
        gap: 0.5rem;
    }
    
    .contact-label {
        font-size: 0.8rem;
    }
    
    .contact-value {
        font-size: 0.95rem;
    }
    
    .name-fields {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Request Quote Form section */
    .request-quote-section {
        padding: 4rem 0;
    }
    
    .quote-form-container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .quote-form-title {
        font-size: 2rem;
    }
    
    .quote-form-subtitle {
        font-size: 1rem;
    }
    
    .quote-form {
        gap: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .btn-submit {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    /* CTA section */
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
    
    .cta-description {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }
    
    .cta-button {
        padding: 18px 40px;
        font-size: 1rem;
    }
    
    /* FAQ section */
    .faq-section {
        padding: 3rem 0;
    }
    
    .faq-title {
        font-size: 2rem;
    }
    
    .faq-container {
        margin: 0 0.5rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
    }
    
    .faq-number {
        font-size: 0.95rem;
        margin-right: 0.5rem;
    }
    
    .faq-text {
        font-size: 0.95rem;
    }
    
    .faq-answer {
        padding: 0 1.25rem 1rem 1.25rem;
    }
    
    .faq-item.active .faq-answer {
        padding-left: 2.25rem;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
    
    /* Contact Page section */
    .contact-page-section {
        padding: 4rem 0;
    }
    
    .contact-page-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-details-title {
        font-size: 2rem;
    }
    
    .contact-info {
        gap: 1.5rem;
    }
    
    .contact-item {
        gap: 0.5rem;
    }
    
    .contact-label {
        font-size: 0.8rem;
    }
    
    .contact-value {
        font-size: 0.95rem;
    }
    
    .name-fields {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Services section */
    .services-section {
        padding: 4rem 0;
    }
    
    .services-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-title {
        font-size: 2rem;
    }
    
    .services-description {
        font-size: 1rem;
    }
    
    .service-item {
        gap: 1rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .service-title {
        font-size: 1.125rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
    
    /* Testimonials section */
    .testimonials-section {
        padding: 5rem 0;
    }
    
    .testimonials-header {
        margin-bottom: 3rem;
    }
    
    .testimonials-title {
        font-size: 2.25rem;
    }
    
    .testimonials-slider {
        padding: 1rem 0 2.5rem 0;
    }
    
    .testimonials-slider .swiper-button-next,
    .testimonials-slider .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .testimonials-slider .swiper-button-next:after,
    .testimonials-slider .swiper-button-prev:after {
        font-size: 14px;
    }
    
    .testimonials-slider .swiper-button-next {
        right: 5px;
    }
    
    .testimonials-slider .swiper-button-prev {
        left: 5px;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
        min-height: 250px;
    }
    
    .testimonial-image img {
        width: 60px;
        height: 60px;
    }
    
    .testimonial-name {
        font-size: 1rem;
    }
    
    .testimonial-text {
        font-size: 0.85rem;
    }
    
    /* Footer section */
    .footer-main {
        padding: 3rem 0 1.5rem 0;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-social {
        justify-content: flex-end;
    }
    
    /* Services section */
    .service-content {
        padding: 1.5rem;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    /* Projects section */
    .project-info {
        padding: 1rem;
    }
    
    .project-title {
        font-size: 1.125rem;
    }
    
    /* Testimonials section */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-name {
        font-size: 1.125rem;
    }
    
    /* Contact section */
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-description {
        font-size: 1rem;
    }
    
    .quote-form {
        gap: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-main {
        padding: 3rem 0 1.5rem 0;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--ast-container-default-xxs-padding);
        max-width: 95%; /* Allow container to use more of the available width */
    }
    
    /* Typography adjustments */
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 0;
        min-height: 60vh;
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .hero-content {
        padding: 3rem 0 2rem 0; /* Adjust padding for small mobile */
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    /* Stats section */
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Services section */
    .service-content {
        padding: 1rem;
    }
    
    /* Projects section */
    .project-info {
        padding: 0.75rem;
    }
    
    /* Testimonials section */
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .testimonials-header {
        margin-bottom: 2rem;
    }
    
    .testimonials-title {
        font-size: 1.75rem;
    }
    
    .testimonials-slider {
        padding: 0.5rem 0 2rem 0;
    }
    
    .testimonials-slider .swiper-button-next,
    .testimonials-slider .swiper-button-prev {
        display: none; /* Hide navigation on mobile */
    }
    
    .testimonial-card {
        padding: 1.5rem 1rem;
        min-height: 220px;
    }
    
    .testimonial-image img {
        width: 60px;
        height: 60px;
    }
    
    .testimonial-name {
        font-size: 1rem;
    }
    
    .testimonial-text {
        font-size: 0.85rem;
    }
    
    /* Footer section */
    .footer-main {
        padding: 2rem 0 1rem 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-title {
        font-size: 1.125rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-contact p {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
    
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    .footer-copyright p {
        font-size: 0.8rem;
    }
    
    .footer-social {
        justify-content: flex-end;
    }
    
    .footer-social .social-link {
        width: 35px;
        height: 35px;
    }
    
    .footer-social .social-link svg {
        width: 18px;
        height: 18px;
    }
    
    /* Contact section */
    .contact-title {
        font-size: 1.75rem;
    }
    
    /* Footer */
    .footer-main {
        padding: 2rem 0 1rem 0;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .site-header,
    .mobile-header,
    .footer-social,
    .hero-buttons,
    .quote-form {
        display: none !important;
    }
    
    .site-main {
        margin-top: 0;
    }
    
    .hero-section {
        background: none !important;
        color: #000 !important;
    }
    
    .stats-section {
        background: none !important;
        color: #000 !important;
    }
    
    .testimonials-section {
        background: none !important;
        color: #000 !important;
    }
    
    .site-footer {
        background: none !important;
        color: #000 !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    
    .btn {
        border: 1px solid #000 !important;
        background: none !important;
        color: #000 !important;
    }
}

/* ========================================
   High DPI / Retina Display Support
   ======================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo,
    .stat-icon img,
    .service-image img,
    .project-image img,
    .testimonial-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ========================================
   Reduced Motion Support
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .service-card:hover,
    .project-item:hover,
    .testimonial-card:hover {
        transform: none !important;
    }
    
    .service-image img,
    .project-image img {
        transform: none !important;
    }
}

/* ========================================
   Dark Mode Support (if needed in future)
   ======================================== */
@media (prefers-color-scheme: dark) {
    /* This can be implemented later if dark mode is needed */
    /* Currently the design uses a light theme */
}

/* ========================================
   Landscape Orientation Adjustments
   ======================================== */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
