/* =========================================================
   MOBILE OVERRIDES (Anti-Highlight & Fast Tap)
========================================================= */
*, *::before, *::after {
    -webkit-tap-highlight-color: transparent !important;
}

html {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

/* ========================================================= */

.mobile-topbar,
.mobile-overlay {
    display: none;
}



/* =========================================================
   DEFAULT MOBILE COMPONENT
   ========================================================= */

.menu-toggle,
.mobile-category {
    display: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .sidebar {
        display: none;
    }

    .mobile-category {
        display: block;
        margin-bottom: 14px;
    }

    .mobile-category label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: #333;
        margin-bottom: 6px;
    }

    .mobile-category select {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid #d9d9d9;
        border-radius: 12px;
        background: #fff;
        font-size: 13px;
        color: #444;
        outline: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}


/* =========================================================
   MOBILE - BODY, CONTAINER, NAVBAR, HERO, CONTENT LAYANAN
   ========================================================= */

@media (max-width: 768px) {
    body {
        padding-top: 62px;
        background: #f3f4f6;
    }

    .container {
        padding: 0 10px;
    }

    nav {
        height: 62px;
        padding: 0 10px;
        justify-content: space-between;
        gap: 8px;
    }

    .logo-nav img {
        height: 52px;
        width: auto;
        object-fit: contain;
    }

    .btn-konsultasi {
        padding: 6px 12px;
        font-size: 11px;
        border-radius: 999px;
        gap: 5px;
        white-space: nowrap;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: none;
        background: transparent;
        color: var(--dark);
        font-size: 20px;
        cursor: pointer;
        border-radius: 10px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 62px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 10px 16px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        list-style: none;
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        font-size: 14px;
    }

    .hero-perawatan {
        height: 150px;
        padding: 16px;
        border-radius: 0 0 18px 18px;
        margin-bottom: 12px;
        background-position: center;
    }

    .booking-header .btn-back {
        display: none;
    }

    .hero-content {
        max-width: 260px;
        padding-top: 15px;
    }

    .hero-content h1 {
        font-family: 'madimi One', sans-serif;
        font-size: 24px;
        margin-bottom: 8px;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 11px;
        line-height: 1.45;
        max-width: 220px;
    }

    .main-layout {
        display: block;
        margin-top: 10px;
        padding-bottom: 10px;
    }

    .card {
        border-radius: 16px;
        padding: 14px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    }

    .card-treatment {
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .tab-content.active {
        background: #fff;
        border-radius: 16px;
        padding: 14px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    }

    .treatment-title {
        font-family: 'marko One', sans-serif;
        font-size: 20px;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }

    /* CONTENT LIST LAYANAN MOBILE */
    .treatment-list li {
        display: grid;
        grid-template-columns: 8px minmax(0, 1fr) auto;
        column-gap: 6px;
        align-items: center;
        padding: 12px 0;
    }

    .treatment-list li::before {
        content: "•";
        color: var(--gold);
        margin: 0;
        padding: 0;
        font-size: 18px;
        line-height: 1;
        justify-self: start;
        align-self: center;
    }

    .treatment-list li span {
        position: static;
        padding-left: 0;
        margin-left: 0;
        font-size: 13px;
        line-height: 1.45;
        color: #475569;
    }

    .treatment-list li span::before {
        display: none;
        content: none;
    }

    .treatment-list li strong {
        font-size: 12px;
        white-space: nowrap;
        color: var(--dark);
        padding-left: 8px;
        text-align: right;
    }
}


/* =========================================================
   DEFAULT MENU TOGGLE
   ========================================================= */

.menu-toggle {
    display: none;
}


/* =========================================================
   MOBILE - NAVBAR DROPDOWN
   ========================================================= */

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    body.menu-open {
        overflow: hidden;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 58px;
        padding: 0 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #ffffff;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
        z-index: 9999;
    }

    .logo-nav {
        display: flex;
        align-items: center;
    }

    .logo-nav img {
        height: 44px;
        width: auto;
        object-fit: contain;
        display: block;
    }

    .btn-konsultasi {
        display: none !important;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
        border: none;
        background: transparent;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        padding: 0;
        z-index: 10001;
    }

    .menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: #0F3D3A;
        border-radius: 999px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 58px;
        right: 10px;
        left: 10px;
        margin: 0;
        padding: 10px 14px;
        list-style: none;
        background: #ffffff;
        border-radius: 14px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
        display: flex;
        flex-direction: column;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
        z-index: 9998;
    }

    .nav-links.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links li {
        border-bottom: 1px solid #edf0f2;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a {
        display: block;
        padding: 12px 0;
        font-size: 14px;
        font-weight: 500;
        color: #0F172A;
        text-decoration: none;
    }

    .hero-perawatan,
    .hero-layanan,
    .judul-layanan,
    header {
        margin-top: 58px;
    }
}


/* =========================================================
   MOBILE - NAVBAR FINAL OVERRIDE
   ========================================================= */

.menu-toggle,
.nav-konsultasi-mobile {
    display: none;
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    body {
        background: #f2f3f5;
    }

    nav {
        height: 58px !important;
        padding: 0 10px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #ffffff;
        z-index: 9999;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    }

    .logo-nav img {
        height: 150px !important;
        width: auto;
        object-fit: contain;
    }

    .desktop-konsultasi {
        display: none !important;
    }

    .menu-toggle {
        width: 34px;
        height: 34px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        border: none;
        background: transparent;
        padding: 0;
        cursor: pointer;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .menu-toggle span {
        display: block;
        width: 16px;
        height: 2px;
        background: #0F3D3A;
        margin: 0 auto;
        border-radius: 2px;
        transition: transform 0.28s ease, opacity 0.2s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .nav-links {
        display: none !important;
        position: absolute;
        top: 58px;
        right: 1px;
        left: 1px;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 10px 14px;
        border-radius: 14px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
        z-index: 999;
    }

    .nav-links.show {
        display: flex !important;
    }

    .nav-links li {
        list-style: none;
        border-bottom: 1px solid #edf0f2;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 11px 0;
        font-size: 13px;
        text-decoration: none;
        color: #243447;
    }

    .nav-konsultasi-mobile {
        display: block;
        margin-top: 4px;
    }

    .nav-konsultasi-mobile a {
        display: block !important;
        text-align: center !important;
        background: #0F4B43 !important;
        color: #fff !important;
        border-radius: 999px !important;
        padding: 10px 14px !important;
        font-weight: 600 !important;
        margin-top: 8px !important;
        font-size: 13px !important;
        line-height: 1.2;
        text-decoration: none !important;
        box-shadow: none !important;
    }

    .nav-konsultasi-mobile li,
    .nav-konsultasi-mobile {
        border-bottom: none !important;
    }

    .hero-perawatan,
    .hero-layanan,
    .judul-layanan,
    header {
        margin-top: -18px;
    }
}


/* =========================================================
   MOBILE - BACK BUTTON
   ========================================================= */

@media (max-width: 768px) {
    .btn-back {
        display: none !important;
    }
}


/* =========================================================
   MOBILE - FOOTER
   ========================================================= */

@media (max-width: 768px) {
    .sect-footer-wrapper {
        margin-top: 18px;
    }

    .footer-gold-layer {
        padding: 40px 12px 50px;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .logo-box {
        width: 200px;
        height: 200px;
        padding: 8px;
        border-radius: 40px;
        margin-bottom: 12px;
    }

    .logo-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transform: scale(1.2);
    }

    .brand-desc {
        font-size: 10px;
        line-height: 1.45;
        margin-bottom: 10px;
    }

    .social-buttons-box {
        gap: 8px;
    }

    .soc-btn {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .soc-btn img {
        width: 14px;
        height: 14px;
    }

    .col-title {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .footer-list li {
        margin-bottom: 6px;
    }

    .footer-list a {
        font-size: 10px;
        gap: 8px;
    }

    .footer-list img {
        width: 14px;
        height: 14px;
    }

    .contact-list li {
        gap: 8px;
        font-size: 10px;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .contact-icon {
        width: 14px;
        height: 14px;
        margin-top: 1px;
    }

    .footer-copyright {
        margin-top: 10px;
        padding-top: 10px;
    }

    .footer-copyright p {
        font-size: 9px;
        text-align: center;
        line-height: 1.4;
    }
}

@media (max-width: 768px) {
    .sect-footer-wrapper {
        position: relative;
        background: #0f4b43 !important;
        padding-top: 6px !important;
    }

    .sect-footer-wrapper::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: #0f4b43;
        z-index: 2;
    }
}


/* =========================================================
   MOBILE - LOGO POSITION
   ========================================================= */

@media (max-width: 768px) {
    .logo-nav {
        margin-left: -33px !important;
    }
}


/* =========================================================
   IPAD / TABLET - NAVBAR DESKTOP STYLE
   ========================================================= */

@media screen and (min-width: 768px) and (max-width: 1024px) {
    nav {
        height: 68px !important;
        padding: 0 20px !important;
        gap: 14px !important;
        justify-content: space-between !important;
    }

    .logo-nav {
        margin-left: 0 !important;
        flex: 0 0 auto !important;
    }

    .logo-nav img {
        height: 118px !important;
        width: auto !important;
    }

    .menu-toggle,
    .nav-konsultasi-mobile {
        display: none !important;
    }

    .desktop-konsultasi {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
        gap: 6px !important;
    }

    .nav-links {
        position: static !important;
        inset: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        flex: 1 1 auto !important;
        margin: 0 8px !important;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .nav-links li {
        width: auto !important;
        border-bottom: none !important;
        opacity: 1 !important;
        transform: none !important;
        list-style: none !important;
    }

    .nav-links li a {
        display: inline-flex !important;
        align-items: center !important;
        padding: 0 !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }
}


/* =========================================================
   MOBILE - FOOTER COLOR OVERRIDE HALAMAN LAYANAN
   ========================================================= */

@media (max-width: 768px) {
    .sect-footer-wrapper .footer-gold-layer {
        background: #caa24f !important;
    }

    .sect-footer-wrapper .col-title,
    .sect-footer-wrapper .brand-desc,
    .sect-footer-wrapper .footer-list li,
    .sect-footer-wrapper .footer-list li a,
    .sect-footer-wrapper .contact-list li span,
    .sect-footer-wrapper .footer-copyright p,
    .sect-footer-wrapper .footer-copyright a,
    .sect-footer-wrapper .shop-list li a,
    .sect-footer-wrapper .brand-col p {
        color: #163f3a !important;
    }

    .sect-footer-wrapper .col-title {
        font-weight: 700 !important;
    }

    .sect-footer-wrapper .footer-list li a,
    .sect-footer-wrapper .shop-list li a,
    .sect-footer-wrapper .contact-list li span {
        font-weight: 500 !important;
        opacity: 1 !important;
    }

    .sect-footer-wrapper .footer-list li a:hover,
    .sect-footer-wrapper .shop-list li a:hover,
    .sect-footer-wrapper .footer-copyright a:hover {
        color: #163f3a !important;
    }
}


/* =========================================================
   MOBILE - HERO HALAMAN LAYANAN
   ========================================================= */

@media (max-width: 768px) {
    .hero-perawatan {
        height: 170px !important;
        min-height: 170px !important;
        padding: 14px 16px !important;
        margin-top: 58px !important;
        margin-bottom: 12px !important;
        border-radius: 0 0 18px 18px !important;
        background-image:
            linear-gradient(rgba(7, 46, 39, 0.68), rgba(7, 46, 39, 0.68)),
            url("Img/interior amartha.jpeg") !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .overlay {
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-content {
        max-width: 275px !important;
        width: 100% !important;
        padding-top: 0 !important;
        text-align: center !important;
    }

    .hero-content h1 {
        font-family: 'Poppins', sans-serif !important;
        font-size: 22px !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
        margin-bottom: 8px !important;
        color: #ffffff !important;
    }

    .hero-content p {
        font-family: 'Poppins', sans-serif !important;
        font-size: 11px !important;
        line-height: 1.5 !important;
        max-width: 230px !important;
        margin: 0 auto !important;
        color: rgba(255, 255, 255, 0.95) !important;
    }

    .btn-back {
        display: none !important;
    }

    .hero-perawatan,
    .hero-layanan,
    .judul-layanan,
    header {
        margin-top: 58px !important;
    }
}


/* =========================================================
   MOBILE - FINAL HERO SPACING
   ========================================================= */

@media (max-width: 768px) {
    body {
        padding-top: 58px !important;
    }

    .hero-perawatan,
    .hero-layanan,
    .judul-layanan,
    header {
        margin-top: 0 !important;
    }

    .hero-perawatan {
        height: 170px !important;
        min-height: 170px !important;
        padding: 14px 16px !important;
        margin-bottom: 12px !important;
        border-radius: 0 0 18px 18px !important;
        background-image:
            linear-gradient(rgba(7, 46, 39, 0.68), rgba(7, 46, 39, 0.68)),
            url("Img/interior amartha.jpeg") !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* =========================================================
   FONT OVERRIDE - HERO, KATEGORI, JUDUL KATEGORI
   ========================================================= */

/* HEADING HERO */
.hero-content h1 {
    font-family: 'Madimi One', sans-serif !important;
    font-weight: 400 !important;
}

/* TULISAN KATEGORI */
.card-sidebar h3,
.mobile-category label,
.mobile-category select,
.category-item a {
    font-family: 'Marko One', sans-serif !important;
    font-weight: 400 !important;
}

/* JUDUL KATEGORI / JUDUL CONTENT */
.treatment-title {
    font-family: 'Marko One', serif !important;
    font-weight: 400 !important;
}

