/* ======================================================
   RESPONSIVE HEADER / NAVIGATION
====================================================== */

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-container {
        justify-content: space-between;
        gap: 12px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .logo img {
        height: 57px;
        width: auto;
    }

    .header-cta {
        padding: 10px 14px;
        font-size: 0.78rem;
        line-height: 1;
        white-space: nowrap;
        width: auto;
        min-width: unset;
    }
}


/* ======================================================
   GENERAL HERO MOBILE
====================================================== */

@media (max-width: 600px) {
    .site-header {
        padding: 18px 0;
    }

    .hero-content {
        padding-top: 100px;
    }

    .hero-content p {
        font-family: "GrandviewLightItalic", Arial, sans-serif !important;
        font-style: italic !important;
        font-size: 1.2rem !important;
        line-height: 1.25 !important;
        margin-top: 30px !important;
        margin-bottom: 30px !important;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}


/* ======================================================
   SERVICES HERO - TABLET
====================================================== */

@media (max-width: 900px) {
    .services-hero {
        height: auto;
        min-height: 100svh;
    }

    .services-hero-video {
        object-fit: cover;
        object-position: center center;
    }

    .services-hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.78) 0%,
                rgba(0, 0, 0, 0.68) 45%,
                rgba(0, 0, 0, 0.82) 100%
            );
    }

    .services-hero-content {
        min-height: 100svh;
        padding: 120px 32px 80px;

        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .services-title-box {
        padding: 22px 40px;
        margin-bottom: 28px;
    }

    .services-title-box h1 {
        font-size: 72px;
        letter-spacing: -1px;
    }

    .services-text-box {
        width: 100%;
        max-width: 720px;

        padding: 24px 30px;
        margin-bottom: 36px;
    }

    .services-text-box p {
        font-size: 22px;
        line-height: 1.6;
    }

    .services-hero .hero-buttons {
        justify-content: center;
    }
}


/* ======================================================
   SERVICES HERO - MOBILE
====================================================== */

@media (max-width: 600px) {
    .services-hero {
        height: auto;
        min-height: 100svh;
    }

    .services-hero-content {
        min-height: 100svh;
        padding: 115px 22px 70px;

        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .services-title-box {
        width: 100%;
        max-width: 380px;

        padding: 18px 24px;
        margin-bottom: 22px;

        border-radius: 14px;
    }

    .services-title-box h1 {
        font-size: 52px;
        line-height: 1;
        letter-spacing: -1px;
    }

    .services-text-box {
        width: 100%;
        max-width: 420px;

        padding: 20px 22px;
        margin-bottom: 30px;

        border-radius: 14px;
    }

    .services-text-box p {
        font-size: 18px;
        line-height: 1.55;
    }

    .services-hero .hero-buttons {
        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .services-hero .hero-buttons .btn {
        width: 100%;
        max-width: 340px;

        margin: 0 auto;
        text-align: center;
        justify-content: center;
    }
}


/* ======================================================
   SERVICES HERO - SMALL MOBILE
====================================================== */

@media (max-width: 420px) {
    .services-hero-content {
        padding: 105px 18px 60px;
    }

    .services-title-box {
        max-width: 330px;
        padding: 16px 20px;
        margin-bottom: 20px;
    }

    .services-title-box h1 {
        font-size: 44px;
    }

    .services-text-box {
        max-width: 340px;
        padding: 18px 18px;
        margin-bottom: 28px;
    }

    .services-text-box p {
        font-size: 16px;
        line-height: 1.55;
    }

    .services-hero .hero-buttons .btn {
        max-width: 320px;
        padding: 14px 18px;
        font-size: 15px;
    }
}


/* ======================================================
   FEATURES PAGE - TABLET / MOBILE
====================================================== */

@media (max-width: 900px) {
    .features-page {
        padding: 165px 0 70px;
    }

    .features-page-content {
        padding: 0 22px;
    }

    .features-page-content h1 {
        font-size: 28px;
        line-height: 1.15;
        margin-bottom: 20px;
    }

    .features-page-content > p {
        max-width: 100%;
        margin-bottom: 36px;

        font-size: 17px;
        line-height: 1.55;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 18px;

        max-width: 100%;
    }

    .feature-card {
        padding: 24px 22px;
        border-radius: 16px;
    }

    .feature-card h2 {
        font-size: 23px;
        margin-bottom: 12px;
    }

    .feature-card p {
        font-size: 16px;
        line-height: 1.55;
    }

    .features-actions {
        margin-top: 34px;
    }

    .features-actions .btn {
        width: 100%;
        max-width: 340px;
    }
}

@media (max-width: 420px) {
    .features-page {
        padding: 150px 0 60px;
    }

    .features-page-content {
        padding: 0 18px;
    }

    .features-page-content h1 {
        font-size: 24px;
    }

    .features-page-content > p {
        font-size: 16px;
    }

    .feature-card {
        padding: 22px 18px;
    }
}


/* ======================================================
   AUTOMATION PAGE - TABLET / MOBILE
====================================================== */

@media (max-width: 1000px) {
    .automation-page {
        padding: 165px 0 70px;
    }

    .automation-page-content {
        width: 100%;
        max-width: 100%;

        padding-left: 22px;
        padding-right: 22px;

        box-sizing: border-box;
    }

    .automation-page-content h1 {
        font-size: 40px;
        margin-bottom: 20px;
    }

    .automation-page-content > p {
        max-width: 100%;

        font-size: 18px;
        line-height: 1.55;
    }

    .automation-actions {
        margin-bottom: 28px;
    }

    .automation-dashboard-layout {
        width: 100%;
        max-width: 100%;

        display: grid;
        grid-template-columns: 1fr;
        gap: 26px;

        box-sizing: border-box;
    }

    .automation-side-nav {
        width: 100%;
        max-width: 100%;

        display: flex;
        flex-direction: column;
        gap: 8px;

        overflow-x: visible;
        padding: 12px;

        border-radius: 16px;

        box-sizing: border-box;
    }

    .automation-side-nav-item {
        width: 100%;
        min-width: 0;
        min-height: 46px;

        padding: 0 14px;
        border-radius: 10px;

        font-size: 14px;
    }

    .automation-side-nav-item:hover {
        transform: none;
    }

    .automation-dashboard-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        box-sizing: border-box;
    }

    .automation-feature-section {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        box-sizing: border-box;
    }
}

@media (max-width: 420px) {
    .automation-page {
        padding: 150px 0 60px;
    }

    .automation-page-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .automation-page-content h1 {
        font-size: 34px;
    }

    .automation-page-content > p {
        font-size: 16px;
    }

    .automation-actions .btn {
        width: 100%;
        max-width: 320px;
    }

    .automation-side-nav-item {
        width: 100%;
        min-width: 0;

        font-size: 13px;
    }

    .automation-nav-badge {
        min-width: 30px;
        height: 24px;

        font-size: 12px;
    }
}


/* ======================================================
   RATING FEATURE - TABLET / MOBILE
====================================================== */

@media (max-width: 900px) {
    .rating-panel-grid {
        grid-template-columns: 1fr;
        gap: 22px;

        max-width: 100%;
    }

    .rating-panel {
        min-height: auto;
        padding: 26px 24px;
        border-radius: 16px;
    }

    .rating-panel h2 {
        font-size: 24px;
        margin-bottom: 22px;
    }

    .rating-field input,
    .rating-field textarea {
        font-size: 16px;
    }

    .rating-stars {
        justify-content: center;
        gap: 10px;
    }

    .star-btn {
        font-size: 36px;
    }

    .rating-submit {
        width: 100%;
    }

    .rating-result-empty {
        min-height: 190px;
    }
}

@media (max-width: 420px) {
    .rating-panel {
        padding: 22px 18px;
    }

    .rating-panel h2 {
        font-size: 22px;
    }

    .star-btn {
        font-size: 32px;
    }

    .rating-result-card {
        padding: 20px 18px;
    }
}


/* ======================================================
   APPOINTMENT BOOKING FEATURE - TABLET / MOBILE
====================================================== */

@media (max-width: 1000px) {
    .booking-panel-grid {
        grid-template-columns: 1fr;
        gap: 22px;

        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .booking-panel {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: auto;

        padding: 26px 24px;
        border-radius: 16px;

        overflow: hidden;
    }

    .booking-panel-header h2,
    .calendar-topbar h2 {
        font-size: 24px;
    }

    .booking-panel-header p,
    .calendar-topbar p {
        font-size: 14px;
    }

    .booking-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .booking-field input,
    .booking-field select {
        height: 48px;
        font-size: 16px;
    }

    .booking-submit {
        width: 100%;
    }

    .calendar-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;

        width: 100%;
        max-width: 100%;
    }

    .barber-switcher {
        width: 100%;

        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;

        border-radius: 16px;
    }

    .barber-tab {
        width: 100%;
        padding: 0 10px;
        font-size: 13px;
    }

    .booking-legend {
        flex-wrap: wrap;
        gap: 12px;

        width: 100%;
        max-width: 100%;
    }

    .booking-calendar-panel {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        overflow: hidden;
    }

    .weekly-calendar {
        width: 100%;
        max-width: 100%;

        display: grid;
        grid-template-columns: repeat(7, 110px);
        gap: 10px;

        overflow-x: auto;
        overflow-y: hidden;

        padding-bottom: 12px;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .calendar-day {
        min-width: 110px;
        min-height: 380px;
    }

    .calendar-slot {
        min-height: 34px;
    }
}

@media (max-width: 420px) {
    .booking-panel {
        padding: 22px 18px;
    }

    .booking-panel-header h2,
    .calendar-topbar h2 {
        font-size: 22px;
    }

    .availability-status {
        font-size: 13px;
    }

    .barber-switcher {
        grid-template-columns: 1fr;
        border-radius: 14px;
    }

    .barber-tab {
        height: 38px;
    }

    .weekly-calendar {
        grid-template-columns: repeat(7, 105px);
        gap: 8px;
    }

    .calendar-day {
        min-width: 105px;
    }

    .calendar-day-header {
        padding: 11px 10px;
    }

    .calendar-day-header strong {
        font-size: 12px;
    }

    .calendar-day-header span {
        font-size: 11px;
    }
}


/* ======================================================
   BUSINESS LOCATION FINDER - TABLET / MOBILE
====================================================== */

@media (max-width: 1000px) {
    .location-panel-grid {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;

        box-sizing: border-box;
    }

    .location-panel {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: auto;

        padding: 24px 22px;
        border-radius: 16px;

        box-sizing: border-box;
    }

    .location-map-panel {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        padding: 0;
        overflow: hidden;

        box-sizing: border-box;
    }

    .business-location-map {
        width: 100%;
        max-width: 100%;

        min-height: 360px;
        height: 360px;

        box-sizing: border-box;
    }

    .location-panel-header h2 {
        font-size: 23px;
        margin-bottom: 10px;
    }

    .location-panel-header p {
        font-size: 15px;
        line-height: 1.55;
    }

    .location-search-box,
    .business-location-autocomplete {
        width: 100%;
        max-width: 100%;

        display: block;

        box-sizing: border-box;
    }

    .business-location-autocomplete gmp-place-autocomplete {
        width: 100%;
        max-width: 100%;

        display: block;

        box-sizing: border-box;
    }

    .location-detail-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .location-panel {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .location-map-panel {
        padding: 0;
    }

    .location-result-card {
        padding: 20px 18px;
    }

    .location-result-card h3 {
        font-size: 21px;
    }

    .business-location-map {
        min-height: 320px;
        height: 320px;
    }
}


/* ======================================================
   ABOUT PAGE - TABLET / MOBILE
====================================================== */

@media (max-width: 900px) {
    .about-page {
        padding: 165px 0 70px;
    }

    .about-page-content {
        padding: 0 22px;
    }

    .about-page-content h1 {
        font-size: 40px;
        margin-bottom: 20px;
    }

    .about-page-content > p {
        max-width: 100%;
        margin-bottom: 36px;

        font-size: 18px;
        line-height: 1.55;
    }

    .about-card-grid {
        grid-template-columns: 1fr;
        gap: 18px;

        max-width: 100%;
    }

    .about-card {
        padding: 24px 22px;
        border-radius: 16px;
    }

    .about-card h2 {
        font-size: 23px;
        margin-bottom: 12px;
    }

    .about-card p {
        font-size: 16px;
        line-height: 1.55;
    }

    .about-ceo-card {
        width: 100%;
        max-width: 100%;

        padding: 24px 22px;
        margin-top: 18px;

        gap: 24px;

        border-radius: 16px;
    }

    .about-ceo-photo-wrap {
        width: 125px;
        height: 180px;

        flex: 0 0 125px;

        border-radius: 999px;
    }

    .about-ceo-photo {
        border-radius: 999px;
    }

    .about-ceo-info h2 {
        font-size: 28px;
    }

    .about-ceo-info p {
        font-size: 17px;
    }

    .about-employee-card {
        margin-top: 18px;
    }
}

@media (max-width: 520px) {
    .about-page {
        padding: 150px 0 60px;
    }

    .about-page-content {
        padding: 0 18px;
    }

    .about-page-content h1 {
        font-size: 34px;
    }

    .about-page-content > p {
        font-size: 16px;
    }

    .about-card {
        padding: 22px 18px;
    }

    .about-ceo-card {
        flex-direction: column;
        align-items: center;
        text-align: center;

        width: 100%;
        max-width: 100%;

        padding: 24px 18px;
        margin-top: 18px;

        border-radius: 16px;
    }

    .about-ceo-photo-wrap {
        width: 135px;
        height: 190px;

        flex: 0 0 auto;

        border-radius: 999px;
    }

    .about-ceo-photo {
        border-radius: 999px;
    }

    .about-ceo-label {
        font-size: 12px;
    }

    .about-ceo-info h2 {
        font-size: 24px;
    }

    .about-ceo-info p {
        font-size: 16px;
    }

    .about-employee-card {
        margin-top: 18px;
    }
}


/* ======================================================
   PREVENT FULL PAGE HORIZONTAL SCROLL
====================================================== */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

main {
    max-width: 100%;
    overflow-x: hidden;
}

/* ======================================================
   MOBILE TOUCH BUTTON FEEDBACK
====================================================== */

@media (hover: none) and (pointer: coarse) {
    a,
    button,
    .btn,
    .main-nav a,
    .mobile-nav a,
    .header-cta,
    .menu-toggle,
    .automation-side-nav-item,
    .feature-card-link,
    .star-btn,
    .barber-tab,
    .mn-tool-btn,
    .mn-modal-btn,
    .mn-customize-btn,
    .location-result-actions a {
        -webkit-tap-highlight-color: rgba(57, 255, 136, 0.35);
        touch-action: manipulation;
    }

    a:active,
    button:active,
    .btn:active,
    .main-nav a:active,
    .mobile-nav a:active,
    .header-cta:active,
    .automation-side-nav-item:active,
    .feature-card-link:active,
    .barber-tab:active,
    .mn-tool-btn:active,
    .mn-modal-btn:active,
    .mn-customize-btn:active,
    .location-result-actions a:active {
        transform: scale(0.97);

        border-color: rgba(57, 255, 136, 0.95) !important;
        background: rgba(57, 255, 136, 0.18) !important;
        color: #39ff88 !important;

        box-shadow:
            0 0 0 3px rgba(57, 255, 136, 0.18),
            0 0 24px rgba(57, 255, 136, 0.38),
            inset 0 0 18px rgba(57, 255, 136, 0.12) !important;
    }

    .btn-primary:active,
    .services-hero .btn-primary:active {
        background: #39ff88 !important;
        border-color: #39ff88 !important;
        color: #06140b !important;

        box-shadow:
            0 0 0 3px rgba(57, 255, 136, 0.22),
            0 0 28px rgba(57, 255, 136, 0.45) !important;
    }

    .feature-card-link:active .feature-card,
    .automation-card:active {
        transform: scale(0.98);

        border-color: rgba(57, 255, 136, 0.95) !important;
        background: rgba(57, 255, 136, 0.14) !important;

        box-shadow:
            0 0 0 3px rgba(57, 255, 136, 0.16),
            0 0 28px rgba(57, 255, 136, 0.35),
            inset 0 0 18px rgba(57, 255, 136, 0.10) !important;
    }

    .star-btn:active {
        color: #39ff88 !important;

        transform: scale(1.18);

        text-shadow:
            0 0 12px rgba(57, 255, 136, 0.75),
            0 0 26px rgba(57, 255, 136, 0.35) !important;
    }

    .menu-toggle:active span {
        background-color: #39ff88 !important;

        box-shadow:
            0 0 12px rgba(57, 255, 136, 0.75);
    }
}