/* Mobile First - Base styles are mobile */

/* Tablet Styles */
@media (min-width: 768px) {
    .hero {
        padding: 6rem 0;
        min-height: 450px;
    }

    .hero-title {
        font-size: 2.55rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .why-choose {
        margin-top: 0;
    }

    .why-choose-content {
        gap: 3rem;
    }

    .gate-specialists {
        padding: 6rem 0;
        min-height: 550px;
    }

    .gate-specialists-content {
        max-width: 500px;
        padding: 2.5rem 3rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero {
        padding: 8rem 0;
        min-height: 550px;
    }

    .hero-title {
        font-size: 3.25rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .gate-specialists {
        padding: 8rem 0;
        min-height: 600px;
    }

    .gate-specialists-content {
        max-width: 550px;
        padding: 3rem 3.5rem;
    }
}

/* Narrow desktop / tablet header */
@media (min-width: 768px) and (max-width: 1200px) {
    .header-content {
        gap: 1rem;
    }

    .nav-list {
        gap: 1rem;
    }

    .nav-list a {
        font-size: 0.7rem;
        letter-spacing: 0.03em;
    }

    .btn-book-quote {
        padding: 0.6rem 0.95rem;
        font-size: 0.68rem;
    }

    .logo img {
        height: 36px;
    }

    .footer-content {
        grid-template-columns: 1.3fr 1fr 1fr;
        gap: 2.5rem;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .header-content {
        position: relative;
        z-index: 2;
    }

    .logo,
    .mobile-menu-toggle {
        position: relative;
        z-index: 3;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #000;
        padding: 5.5rem 1.5rem 2.5rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        overflow-y: auto;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 420px;
        padding: 0;
        gap: 0.15rem;
    }

    .nav-list li {
        width: 100%;
        border-bottom: none;
        text-align: center;
    }

    .nav-list > li > a {
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 1.45rem;
        letter-spacing: 0.14em;
    }

    .nav-list > li > a::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background-color: transparent;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-menu li {
        border-bottom: none;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 0.35rem 0;
    }

    .dropdown-menu a {
        justify-content: center;
        padding: 0.45rem 1rem;
        border-radius: 0;
        font-size: 1rem;
        letter-spacing: 0.04em;
    }

    .mobile-menu-toggle span {
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

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

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

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

    .nav-quote {
        display: flex;
        justify-content: center;
        margin-top: 1.4rem;
    }

    .nav-list > li.nav-quote > a.btn-book-quote {
        display: inline-flex;
        width: auto;
        justify-content: center;
        background-color: #a8ebe0;
        color: #000;
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        padding: 0.9rem 1.7rem;
        border-radius: 999px;
    }

    .nav-list > li.nav-quote > a.btn-book-quote:hover {
        background-color: #fff;
        color: #000;
    }

    .logo img {
        height: 36px;
    }

    .header-actions,
    .header-contact,
    .lang-switch {
        display: none;
    }

    .mobile-menu-toggle {
        margin-left: auto;
    }

    .header-content {
        flex-wrap: nowrap;
    }

    .logo {
        flex: 1;
    }

    .hero {
        padding: 4rem 0;
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.95rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .why-choose {
        margin-top: 0;
        padding: 3rem 0 4rem;
    }

    .why-choose-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .why-choose-text {
        padding-top: 0;
    }

    .feature-image {
        margin-top: 0;
    }

    .servicing-areas {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .servicing-areas-content {
        padding: 3rem 2rem;
    }

    .servicing-areas-image {
        min-height: 300px;
    }

    .why-choose,
    .gate-specialists {
        padding: 3rem 0;
    }

    .testimonial {
        grid-template-columns: 1fr;
    }

    .testimonial-panel {
        order: -1;
        padding: 3.5rem 1.5rem;
    }

    .testimonial-media {
        order: 1;
        min-height: 320px;
        border-right: none;
        border-top: 1px solid #fff;
    }

    .testimonial blockquote p {
        font-size: 1.5rem;
    }

    .why-choose h3,
    .gate-specialists h3 {
        font-size: 1.75rem;
    }

    .gate-specialists {
        padding: 4rem 0;
        min-height: 500px;
    }

    .btn-servicing {
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        font-size: clamp(0.62rem, 3.15vw, 0.82rem);
        letter-spacing: 0.04em;
        padding: 0.75rem 1rem;
    }

    .gate-specialists-content {
        max-width: 100%;
        padding: 2rem 1.5rem;
        margin: 0 auto;
        text-align: center;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-buttons .btn-primary {
        width: 100%;
    }

    .footer {
        padding: 2.25rem 0 1.1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .footer-section:has([data-i18n="footer.services"]) {
        display: none;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        align-items: flex-start;
        padding-right: 0;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 15px;
        right: 15px;
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 3rem 0;
        min-height: 350px;
    }

    .hero-title {
        font-size: 1.65rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }

    .why-choose h3,
    .gate-specialists h3 {
        font-size: 1.5rem;
    }

    .testimonial blockquote p {
        font-size: 1.2rem;
    }
}

/* Page Content Responsive */
@media (max-width: 767px) {
    .page-header h2 {
        font-size: 2rem;
    }

    .content-section {
        padding: 3rem 0;
    }

    .content-section h3 {
        font-size: 1.75rem;
    }

    .fence-type,
    .gate-type {
        margin-bottom: 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .faq-item h3 {
        font-size: 1.25rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .btn-send {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .service-mosaic {
        grid-template-columns: 1fr;
    }

    .service-tile,
    .service-tile--wide {
        grid-column: auto;
        height: 220px;
    }

    .service-tile span {
        font-size: 1rem;
        padding: 0.7rem 1.1rem;
    }

    .service-hero {
        padding: 2.5rem 0 2.25rem;
    }

    .service-hero h2 {
        font-size: 1.8rem;
    }

    .about-hero {
        padding: 2.75rem 0 2.5rem;
    }

    .about-lead {
        font-size: 1.05rem;
    }

    .service-lead {
        font-size: 0.98rem;
        margin-top: 0.9rem;
    }

    .service-gallery-section {
        padding: 2.5rem 0 3rem;
    }

    .gallery-item img {
        height: 220px;
    }

    .how-we-work {
        padding: 3rem 0 3.5rem;
    }

    .how-we-work-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .how-we-work-head h3 {
        font-size: 2rem;
    }

    .how-we-work-head p {
        text-align: left;
        white-space: nowrap;
        font-size: 0.92rem;
    }

    .how-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .nav-list a,
    .btn-primary,
    .btn-footer,
    .btn-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dropdown-menu a {
        min-height: 44px;
    }

    .form-group input,
    .form-group textarea {
        min-height: 44px;
    }
}
