/* Responsive Styles */

/* Tablets and larger phones (landscape) */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.8em;
        margin-bottom: 60px;
    }

    .section-subtitle {
        font-size: 2em;
    }

    /* Header */
    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 15px;
    }

    .main-nav {
        order: 3;
        /* Push navigation below logo/button */
        width: 100%;
        margin-top: 15px;
        transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
    }

    .main-nav.active {
        max-height: 300px;
        /* Arbitrary large height to reveal menu */
        opacity: 1;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }

    .nav-menu li {
        margin: 0;
    }

    .hamburger {
        display: flex;
        order: 2;
        /* Keep hamburger next to logo */
    }

    .contact-header-btn {
        order: 1;
        /* Keep button next to logo */
        margin-left: auto;
        /* Push to the right */
        font-size: 0.9em;
        padding: 8px 18px;
    }

    /* Hero Section */
    .hero {
        height: 85vh;
        padding-top: 120px;
        /* Adjust for potentially larger header on mobile */
    }

    .hero h1 {
        font-size: 4em;
    }

    .hero p {
        font-size: 1.4em;
    }

    /* Page Header */
    .page-header {
        padding: 120px 0 80px;
        margin-top: 80px;
        /* Adjust for fixed header */
    }

    .page-header h1 {
        font-size: 3em;
    }

    .page-header p {
        font-size: 1.1em;
    }

    /* About Overview (Homepage) */
    .about-overview-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-overview-text,
    .about-overview-image {
        min-width: unset;
        /* Remove min-width */
        width: 100%;
    }

    /* Services Grid (Homepage & Service Detail) */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .service-card {
        padding: 30px;
    }

    .service-card h3 {
        font-size: 1.7em;
    }

    /* CTA Section */
    .cta-section h2 {
        font-size: 3em;
    }

    .cta-section p {
        font-size: 1.2em;
    }

    /* About Full Content (About Page) */
    .about-full-content .content-block {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 60px;
    }

    .about-full-content .content-block.reverse-layout {
        flex-direction: column;
        /* Keep column order for mobile */
    }

    .about-full-content .content-text,
    .about-full-content .content-image {
        min-width: unset;
        width: 100%;
    }

    .about-full-content .section-subtitle {
        text-align: center;
        /* Center subtitle for smaller screens */
    }

    .about-full-content .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .about-full-content .value-item h3 {
        font-size: 1.5em;
    }

    /* Services Detail Section (Services Page) */
    .service-detail-section .content-block {
        flex-direction: column;
        gap: 40px;
    }

    .service-detail-section .content-block.reverse-layout {
        flex-direction: column;
    }

    .service-detail-section .content-text,
    .service-detail-section .content-image {
        min-width: unset;
        width: 100%;
    }

    .service-detail-section .section-subtitle {
        text-align: center;
    }

    /* Contact Details */
    .contact-grid {
        grid-template-columns: 1fr;
        /* Single column */
        gap: 40px;
    }

    .contact-info-block,
    .contact-form-block {
        padding: 30px;
    }

    .contact-info-block h3,
    .contact-form-block h3 {
        font-size: 2em;
        text-align: center;
    }

    .info-item {
        justify-content: center;
        /* Center info items */
    }

    .social-links-lg {
        justify-content: center;
    }

    .google-map {
        margin-top: 60px;
    }

    .map-container {
        height: 350px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        /* Single column footer */
        gap: 30px;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    .footer-col h3 {
        margin-bottom: 15px;
    }

    .footer-col ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Smaller Phones (portrait) */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.2em;
        margin-bottom: 40px;
    }

    .section-title::after {
        width: 80px;
        height: 4px;
        bottom: -10px;
    }

    .section-subtitle {
        font-size: 1.8em;
    }

    /* Header */
    .logo {
        font-size: 1.8em;
    }

    .logo span {
        font-size: 0.3em;
    }

    .contact-header-btn {
        padding: 6px 12px;
        font-size: 0.8em;
        gap: 5px;
    }

    .hamburger {
        gap: 5px;
    }

    .hamburger .bar {
        width: 25px;
        height: 3px;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


    /* Hero Section */
    .hero {
        height: 75vh;
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 3em;
    }

    .hero p {
        font-size: 1.1em;
        margin-bottom: 30px;
    }

    .hero .btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    /* Page Header */
    .page-header {
        padding: 100px 0 60px;
        margin-top: 60px;
    }

    .page-header h1 {
        font-size: 2.5em;
    }

    .page-header p {
        font-size: 1em;
    }

    /* About Overview (Homepage) */
    .about-overview-text h3 {
        font-size: 1.8em;
    }

    .about-overview-text p {
        font-size: 1em;
    }

    /* Services Grid (Homepage & Service Detail) */
    .services-grid {
        grid-template-columns: 1fr;
        /* Single column */
        gap: 25px;
    }

    .service-card {
        padding: 25px;
    }

    .service-card h3 {
        font-size: 1.5em;
    }

    .service-card i {
        font-size: 3.5em;
    }

    /* CTA Section */
    .cta-section h2 {
        font-size: 2.5em;
    }

    .cta-section p {
        font-size: 1em;
    }

    /* About Full Content (About Page) */
    .about-full-content .content-text,
    .about-full-content .content-image {
        min-width: unset;
        width: 100%;
    }

    .about-full-content .section-subtitle {
        font-size: 1.8em;
    }

    .about-full-content .value-item h3 {
        font-size: 1.3em;
    }

    /* Services Detail Section (Services Page) */
    .service-detail-section .content-text,
    .service-detail-section .content-image {
        min-width: unset;
        width: 100%;
    }

    .service-detail-section .section-subtitle {
        font-size: 1.8em;
    }

    .service-detail-section .content-text ul li {
        font-size: 1em;
    }



    /* Contact Details */
    .contact-grid {
        gap: 30px;
    }

    .contact-info-block,
    .contact-form-block {
        padding: 25px;
    }

    .contact-info-block h3,
    .contact-form-block h3 {
        font-size: 1.8em;
    }

    .info-item i {
        font-size: 2em;
    }

    .info-item h4 {
        font-size: 1.1em;
    }

    .info-item p {
        font-size: 1em;
    }

    .social-links-lg {
        gap: 15px;
    }

    .social-links-lg a {
        font-size: 2.2em;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px 15px;
    }

    .contact-form textarea {
        min-height: 120px;
    }

    .contact-form .submit-btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    .map-container {
        height: 300px;
    }

    /* Footer */
    .footer-col h3 {
        font-size: 1.2em;
    }

    .footer-col p {
        font-size: 0.8em;
    }

    .social-links a {
        font-size: 1.5em;
    }

    .footer-bottom p {
        font-size: 0.75em;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2em;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }

    .modal-close {
        font-size: 28px;
        top: 15px;
        right: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 80%;
    }
}