/* ==========================================
   Responsive Header and Homepage Hero
========================================== */

/* Mobile-only elements hidden by default */
.mobile-header-actions,
.mobile-navigation {
    display: none;
}

/* ------------------------------------------
   Large desktop header
------------------------------------------ */

@media (min-width: 1101px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1200;
    }

    .site-header .nav-container {
        width: min(100% - 32px, 1440px);
        max-width: 1440px;
        min-height: 100px;
        margin: 0 auto;

        display: flex;
        align-items: center;
        gap: 26px;
    }

    .site-header .brand {
        flex: 0 0 auto;
        min-width: 320px;
    }

    .site-header .site-logo-img {
        width: 64px !important;
        height: 64px !important;
    }

    .site-header .brand-copy strong {
        font-size: 25px;
        line-height: 1.15;
    }

    .site-header .brand-copy span {
        display: block;
        font-size: 13px;
    }

    .site-header .main-nav {
        flex: 1 1 auto;
        min-width: 0;

        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: clamp(20px, 2vw, 38px) !important;
    }

    .site-header .main-nav a {
        padding: 12px 0 !important;
        font-size: 16px !important;
        white-space: nowrap;
    }

    .site-header .desktop-schedule-btn {
        flex: 0 0 auto;

        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        min-width: 190px;
        padding: 16px 22px !important;
        white-space: nowrap;
    }

    .site-header .mobile-header-actions,
    .site-header .mobile-navigation {
        display: none !important;
    }
}

/* ------------------------------------------
   Compact desktop / tablet header
------------------------------------------ */

@media (min-width: 901px) and (max-width: 1100px) {
    .site-header .nav-container {
        width: calc(100% - 24px);
        min-height: 88px;
        margin: 0 auto;

        display: flex;
        align-items: center;
        gap: 16px;
    }

    .site-header .brand {
        flex: 0 0 auto;
        min-width: 230px;
    }

    .site-header .site-logo-img {
        width: 54px !important;
        height: 54px !important;
    }

    .site-header .brand-copy strong {
        font-size: 18px;
    }

    .site-header .brand-copy span {
        font-size: 10px;
    }

    .site-header .main-nav {
        flex: 1 1 auto;
        display: flex !important;
        justify-content: center;
        gap: 17px !important;
    }

    .site-header .main-nav a {
        font-size: 14px !important;
        white-space: nowrap;
    }

    .site-header .desktop-schedule-btn {
        display: inline-flex !important;
        min-width: 150px;
        padding: 13px 14px !important;
        font-size: 13px;
    }

    .site-header .mobile-header-actions,
    .site-header .mobile-navigation {
        display: none !important;
    }
}

/* ------------------------------------------
   Mobile single-row header
------------------------------------------ */

@media (max-width: 900px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1200;

        background: #050713 !important;
        border-bottom: 1px solid rgba(200, 240, 0, 0.15);
    }

    .site-header .nav-container {
        width: calc(100% - 20px);
        min-height: 70px;
        margin: 0 auto;

        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    .site-header .brand {
        flex: 1 1 auto;
        min-width: 0;

        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .site-header .site-logo-img {
        flex: 0 0 44px;

        width: 44px !important;
        height: 44px !important;
        border-radius: 9px;
    }

    .site-header .brand-copy {
        display: block !important;
        min-width: 0;
    }

    .site-header .brand-copy strong {
        display: block;
        margin: 0;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;

        color: #ffffff;
        font-size: 15px !important;
        line-height: 1.1 !important;
    }

    .site-header .brand-copy span {
        display: none !important;
    }

    .site-header .main-nav,
    .site-header .desktop-schedule-btn {
        display: none !important;
    }

    .site-header .mobile-header-actions {
        flex: 0 0 auto;

        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 7px !important;
    }

    .mobile-call-btn,
    .mobile-schedule-btn,
    .mobile-menu-toggle {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;

        border-radius: 9px !important;
    }

    .mobile-call-btn,
    .mobile-schedule-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    .mobile-call-btn {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.28);
    }

    .mobile-schedule-btn {
        color: #050713;
        background: var(--lime, #c8f000);
        border: 1px solid var(--lime, #c8f000);
    }

    .mobile-call-btn i,
    .mobile-schedule-btn i {
        font-size: 17px;
        line-height: 1;
    }

    .mobile-call-btn span,
    .mobile-schedule-btn span,
    .mobile-schedule-btn::before {
        display: none !important;
        content: none !important;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.28);
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 21px;
        height: 2px;

        border-radius: 999px;
        background: #ffffff;

        transition:
            transform 0.2s ease,
            opacity 0.2s ease;
    }

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

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

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

    .site-header .mobile-navigation {
        display: block !important;

        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;

        background: #050713;
        border-top: 1px solid rgba(255, 255, 255, 0.09);

        transition:
            max-height 0.3s ease,
            opacity 0.2s ease,
            visibility 0.2s ease;
    }

    .site-header .mobile-navigation.is-open {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        visibility: visible;
        opacity: 1;
    }

    .mobile-navigation-inner {
        width: calc(100% - 36px);
        margin: 0 auto;
        padding: 10px 0 24px;

        display: flex;
        flex-direction: column;
    }

    .mobile-navigation-inner > a {
        display: block;
        padding: 15px 2px;

        color: #ffffff;
        font-size: 17px;
        font-weight: 800;
        text-decoration: none;

        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    }

    .mobile-navigation-inner > a:hover,
    .mobile-navigation-inner > a:focus-visible {
        color: var(--lime, #c8f000);
    }

    .mobile-navigation-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding-top: 20px;
    }

    .mobile-navigation-actions .btn {
        width: 100%;
        min-height: 50px;

        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }
}

@media (max-width: 430px) {
    .site-header .nav-container {
        width: calc(100% - 16px);
        gap: 6px !important;
    }

    .site-header .site-logo-img {
        flex-basis: 40px;
        width: 40px !important;
        height: 40px !important;
    }

    .site-header .brand-copy strong {
        font-size: 13px !important;
    }

    .mobile-call-btn,
    .mobile-schedule-btn,
    .mobile-menu-toggle {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
    }
}

@media (max-width: 350px) {
    .site-header .brand-copy {
        display: none !important;
    }
}

/* ------------------------------------------
   Homepage hero: tablet
------------------------------------------ */

@media (max-width: 900px) {
    .hero-section {
        min-height: auto;
        padding: 72px 0 54px;
        background-position: center center;
    }

    .hero-section .container {
        width: calc(100% - 28px);
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .hero-label {
        margin-bottom: 22px;

        font-size: 14px;
        line-height: 1.4;
        letter-spacing: 3px;
    }

    .hero-content h1 {
        margin-bottom: 24px;

        font-size: clamp(36px, 7vw, 52px);
        line-height: 1.08;
    }

    .hero-subtitle {
        max-width: 720px;
        margin: 0 auto 34px;

        font-size: 18px;
        line-height: 1.65;
    }

    .hero-section .hero-buttons {
        width: 100%;
        max-width: 660px;
        margin: 0 auto;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .hero-section .hero-buttons > a:first-child {
        grid-column: auto;
    }

    .hero-section .hero-buttons > a:last-child {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 360px;
        justify-self: center;
    }

    .hero-section .hero-buttons > a {
        width: 100%;
        min-width: 0;
        min-height: 60px;
        padding: 15px 16px;

        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;

        font-size: 16px;
        line-height: 1.25;
        text-align: center;
    }
}

/* ------------------------------------------
   Homepage hero: phones
------------------------------------------ */

@media (max-width: 560px) {
    .hero-section {
        padding: 56px 0 42px;
    }

    .hero-section .container {
        width: calc(100% - 20px);
    }

    .hero-label {
        margin-bottom: 18px;

        font-size: 12px;
        letter-spacing: 2.5px;
    }

    .hero-content h1 {
        margin-bottom: 20px;

        font-size: clamp(32px, 10vw, 44px);
        line-height: 1.08;
    }

    .hero-subtitle {
        margin-bottom: 28px;

        font-size: 16px;
        line-height: 1.6;
    }

    .hero-section .hero-buttons {
        width: 100%;
        max-width: 470px;
        margin: 0 auto;

        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    /* Required order:
       Schedule
       Text | Call
    */

    .hero-section .hero-buttons > a:first-child {
        grid-column: 1 / -1 !important;
    }

    .hero-section .hero-buttons > a:nth-child(2),
    .hero-section .hero-buttons > a:nth-child(3) {
        grid-column: auto !important;
    }

    .hero-section .hero-buttons > a {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 52px !important;
        margin: 0 !important;
        padding: 13px 10px !important;

        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;

        font-size: 14px !important;
        font-weight: 700;
        line-height: 1;

        border-radius: 14px !important;
    }

    .hero-section .hero-buttons > a i {
        flex-shrink: 0;
        font-size: 14px;
    }

    .hero-section .hero-buttons > a span {
        white-space: nowrap;
    }
}

/* ==========================================
   Homepage Services Section (Mobile Only)
========================================== */

@media (max-width: 900px) {

    .services-section {
        padding: 64px 0;
    }

    .services-section .container {
        width: calc(100% - 28px);
    }

    .services-section .section-heading {
        margin-bottom: 34px;
        text-align: center;
    }

    .services-section .section-heading h2 {
        font-size: 34px;
        line-height: 1.15;
        margin-bottom: 10px;
    }

    .services-section .section-heading span {
        display: block;
        font-size: 16px;
        line-height: 1.6;
    }

    .services-section .services-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .services-section .service-card {
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 18px;
        overflow: hidden;
    }

    .services-section .service-link {
        display: grid;
        grid-template-columns: 58px 1fr;
        grid-template-areas:
            "icon title"
            "icon description"
            ". action";

        column-gap: 16px;
        row-gap: 8px;

        padding: 22px;

        width: 100%;
        min-height: auto !important;
        height: auto !important;

        text-decoration: none;
    }

    .services-section .service-icon {
        grid-area: icon;

        display: flex;
        align-items: center;
        justify-content: center;

        width: 58px;
        height: 58px;

        margin: 0;

        font-size: 27px;
        border-radius: 15px;
    }

    .services-section .service-card h3 {
        grid-area: title;

        margin: 3px 0 0;

        font-size: 21px;
        line-height: 1.2;
    }

    .services-section .service-card p {
        grid-area: description;

        margin: 0;

        font-size: 15px;
        line-height: 1.6;
    }

    .services-section .service-link::after {
        content: "View service →";

        grid-area: action;

        margin-top: 6px;

        color: #00b050;
        font-size: 14px;
        font-weight: 700;
    }

    .services-section .service-card:hover {
        transform: translateY(-3px);
        transition: .25s;
    }

}

@media (max-width: 560px) {

    .services-section {
        padding: 56px 0;
    }

    .services-section .container {
        width: calc(100% - 20px);
    }

    .services-section .section-heading h2 {
        font-size: 30px;
    }

    .services-section .service-link {
        grid-template-columns: 52px 1fr;

        padding: 18px;

        column-gap: 14px;
    }

    .services-section .service-icon {
        width: 52px;
        height: 52px;

        font-size: 24px;
    }

    .services-section .service-card h3 {
        font-size: 18px;
    }

    .services-section .service-card p {
        font-size: 14px;
    }

}

/* ==========================================
   Mobile - Common Problems
========================================== */

@media (max-width: 560px) {

    .common-problems-section {
        padding-top: 42px !important;
        padding-bottom: 42px !important;
    }

    .common-problems-section .section-heading {
        margin-bottom: 24px !important;
    }

    .common-problems-section .section-heading h2 {
        margin-bottom: 10px !important;
    }

    .common-problems-section .section-heading p {
        margin-bottom: 8px !important;
    }
}
