/* ==================================================
   TOMAS HANDYMAN
   Responsive tablet and mobile stylesheet
   ================================================== */


/* ==================================================
   TABLETS AND SMALL LAPTOPS
   ================================================== */

@media screen and (max-width: 1100px) {

    :root {
        --header-height: 78px;
    }


    /* Header */

    .main-logo {
        width: 180px;
    }


    .main-navigation {
        gap: 20px;
    }


    .navigation-link {
        padding: 27px 0;
        font-size: 13px;
    }


    .navigation-link::after {
        bottom: 18px;
    }


    .header-phone-button {
        padding: 11px 15px;
        font-size: 13px;
    }


    /* Hero */

    .hero-section,
    .hero-container {
        min-height: 660px;
    }


    .hero-container {
        width: min(100% - 48px, 1050px);
        grid-template-columns: 1fr 0.9fr;
        gap: 35px;
    }


    .hero-title {
        font-size: clamp(68px, 8vw, 90px);
    }


    .hero-description {
        font-size: 17px;
    }


    .hero-image {
        height: 550px;
    }


    .availability-card {
        left: -15px;
    }


    /* Services */

    .service-card {
        min-height: 620px;
        padding: 27px;
    }


    .service-card h3 {
        font-size: 37px;
    }


    /* About */

    .about-preview,
    .about-preview-image {
        min-height: 700px;
        height: 700px;
    }


    .about-preview-content {
        padding: 65px 45px;
    }


    /* Contact */

    .contact-banner-content {
        gap: 45px;
    }


    /* Footer */

    .footer-container {
        gap: 45px;
    }
}


/* ==================================================
   TABLETS
   ================================================== */

@media screen and (max-width: 900px) {

    :root {
        --header-height: 72px;
    }


    /* Header */

    .main-header {
        height: var(--header-height);
    }


    .header-container {
        width: min(100% - 36px, 850px);
    }


    .main-logo {
        width: 170px;
    }


    .mobile-menu-button {
        display: block;
        position: relative;
        z-index: 1002;
    }


    .main-navigation {
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1001;
        display: flex;
        visibility: hidden;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 25px 24px 40px;
        background-color: var(--white);
        opacity: 0;
        overflow-y: auto;
        transform: translateY(-15px);
        transition:
            visibility 0.25s ease,
            opacity 0.25s ease,
            transform 0.25s ease;
    }


    .main-navigation.open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }


    .navigation-link {
        padding: 17px 6px;
        border-bottom: 1px solid var(--grey-light);
        font-size: 16px;
    }


    .navigation-link::after {
        display: none;
    }


    .header-phone-button {
        margin-top: 22px;
        padding: 16px 20px;
        text-align: center;
    }


    .mobile-menu-button.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }


    .mobile-menu-button.active span:nth-child(2) {
        opacity: 0;
    }


    .mobile-menu-button.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


    /* Hero */

    .hero-section {
        min-height: auto;
        background:
            linear-gradient(
                160deg,
                var(--white) 0%,
                var(--white) 59%,
                var(--primary-blue-light) 59%,
                var(--primary-blue-light) 100%
            );
    }


    .hero-container {
        display: grid;
        width: min(100% - 44px, 760px);
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 50px;
        padding-top: 70px;
    }


    .hero-content {
        padding-bottom: 0;
        text-align: center;
    }


    .hero-title {
        max-width: 720px;
        margin: 0 auto;
        font-size: clamp(76px, 12vw, 105px);
    }


    .hero-description {
        margin-right: auto;
        margin-left: auto;
    }


    .hero-buttons,
    .hero-benefits {
        justify-content: center;
    }


    .hero-image-container {
        width: min(100%, 560px);
    }


    .hero-image {
        height: 600px;
    }


    .availability-card {
        bottom: 25px;
        left: 15px;
    }


    /* Headings */

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 23px;
    }


    .section-heading h2,
    .about-preview-content h2,
    .contact-banner h2 {
        font-size: clamp(50px, 8vw, 72px);
    }


    /* Services */

    .services-introduction {
        padding: 90px 0;
    }


    .service-cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    .service-card {
        min-height: auto;
        padding: 35px;
    }


    .service-icon {
        margin: 30px 0 22px;
    }


    .service-card > p {
        max-width: 620px;
    }


    .service-list {
        columns: 2;
        column-gap: 35px;
    }


    .service-card-link {
        margin-top: 15px;
    }


    /* About */

    .about-preview {
        display: grid;
        min-height: auto;
        grid-template-columns: 1fr;
    }


    .about-preview-image {
        height: 650px;
        min-height: 650px;
    }


    .about-preview-content {
        padding: 85px 45px;
    }


    /* Gallery */

    .gallery-preview {
        padding: 90px 0;
    }


    /* Contact */

    .contact-banner {
        padding: 85px 0;
    }


    .contact-banner-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }


    /* Footer */

    .footer-container {
        grid-template-columns: 1.3fr 0.7fr 0.7fr;
        gap: 35px;
    }


    /* Floating WhatsApp */

    .floating-whatsapp-button {
        display: inline-flex;
    }
}


/* ==================================================
   MOBILE PHONES
   ================================================== */

@media screen and (max-width: 600px) {

    /* Global */

    .section-container {
        width: min(100% - 36px, 560px);
    }


    .section-label {
        margin-bottom: 11px;
        font-size: 12px;
    }


    .section-heading {
        margin-bottom: 34px;
    }


    .section-heading h2,
    .about-preview-content h2,
    .contact-banner h2 {
        font-size: 49px;
        line-height: 0.95;
    }


    /* Header */

    .header-container {
        width: calc(100% - 28px);
    }


    .main-logo {
        width: 155px;
    }


    .mobile-menu-button {
        width: 43px;
        height: 40px;
    }


    /* Hero */

    .hero-container {
        width: calc(100% - 32px);
        gap: 40px;
        padding-top: 55px;
    }


    .hero-title {
        font-size: clamp(59px, 17vw, 78px);
        line-height: 0.9;
    }


    .hero-description {
        margin-top: 22px;
        margin-bottom: 25px;
        font-size: 16px;
    }


    .hero-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }


    .primary-button,
    .whatsapp-button,
    .secondary-button {
        width: 100%;
        min-height: 52px;
    }


    .hero-benefits {
        display: grid;
        justify-content: start;
        gap: 9px;
        width: max-content;
        margin: 27px auto 0;
        text-align: left;
    }


    .hero-image-container {
        width: 100%;
    }


    .hero-image {
        height: 480px;
        border-radius: 24px 24px 0 0;
        object-position: center top;
    }


    .availability-card {
        right: 12px;
        bottom: 18px;
        left: 12px;
        min-width: 0;
    }


    /* Services */

    .services-introduction {
        padding: 75px 0;
    }


    .section-heading-description {
        font-size: 15px;
    }


    .service-card {
        padding: 27px;
        border-radius: 13px;
    }


    .service-card h3 {
        font-size: 38px;
    }


    .service-icon {
        margin: 25px 0 20px;
        font-size: 50px;
    }


    .service-list {
        columns: 1;
    }


    /* About */

    .about-preview-image {
        height: 520px;
        min-height: 520px;
    }


    .about-preview-content {
        padding: 70px 20px;
    }


    .about-preview-description {
        font-size: 16px;
    }


    .process-item {
        gap: 14px;
    }


    .process-number {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }


    /* Gallery */

    .gallery-preview {
        padding: 75px 0;
    }


    .gallery-empty-state {
        padding: 50px 20px;
    }


    .gallery-empty-state h3 {
        font-size: 29px;
    }


    /* Contact */

    .contact-banner {
        padding: 70px 0;
    }


    .contact-banner-content {
        width: calc(100% - 36px);
    }


    .contact-banner p:not(.section-label) {
        font-size: 16px;
    }


    .contact-method {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }


    .contact-method strong {
        font-size: 17px;
    }


    /* Footer */

    .footer-container {
        width: calc(100% - 36px);
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 55px 0;
        text-align: center;
    }


    .footer-brand img {
        margin-right: auto;
        margin-left: auto;
    }


    .footer-brand p {
        margin: 0 auto;
    }


    .footer-navigation,
    .footer-contact {
        align-items: center;
    }


    .footer-bottom {
        width: calc(100% - 36px);
        padding-bottom: 85px;
    }


    .floating-whatsapp-button {
        right: 14px;
        bottom: 14px;
        padding: 13px 18px;
    }
}


/* ==================================================
   SMALL MOBILE PHONES
   ================================================== */

@media screen and (max-width: 390px) {

    .main-logo {
        width: 145px;
    }


    .hero-title {
        font-size: 56px;
    }


    .hero-image {
        height: 430px;
    }


    .availability-card {
        padding: 13px;
    }


    .availability-card strong {
        font-size: 13px;
    }


    .availability-card small {
        font-size: 11px;
    }


    .section-heading h2,
    .about-preview-content h2,
    .contact-banner h2 {
        font-size: 44px;
    }


    .service-card {
        padding: 24px;
    }
}


/* ==================================================
   ACCESSIBILITY
   ================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}