/* Mana Homes IoT - Premium Dark Theme */
:root {
    --bg-base: #070b14;
    --bg-surface: #0f172a;
    --bg-elevated: #1a2332;
    --bg-card: #141e2e;
    --bg-card-hover: #1c2a3d;
    --primary: #0F172A;
    --secondary: #3b82f6;
    --accent: #14b8a6;
    --accent-glow: rgba(20, 184, 166, 0.25);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #2563eb 0%, #14b8a6 100%);
    --gradient-dark: linear-gradient(180deg, #0f172a 0%, #070b14 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg-base);
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(20, 184, 166, 0.06), transparent);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--white);
    font-weight: 600;
    line-height: 1.3;
}

p { color: var(--text-muted); }

a { color: var(--secondary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

main { background: var(--bg-base); }

/* Header - always dark glass */
.mh-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1050;
    transition: var(--transition);
    padding: 0;
    background: rgba(7, 11, 20, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.mh-header .navbar {
    padding: 0.65rem 0;
}

.mh-header.scrolled {
    background: rgba(7, 11, 20, 0.98);
    box-shadow: var(--shadow-md);
}

.mh-header.scrolled .navbar {
    padding: 0.45rem 0;
}

.mh-header.scrolled .mh-logo {
    height: 120px;
}

.mh-header .navbar-brand img,
.mh-logo {
    height: 150px;
    width: auto;
    max-width: 480px;
    object-fit: contain;
    transition: var(--transition);
}

.mh-logo-footer {
    height: 150px;
    max-width: 480px;
}

.mh-header .nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.mh-header .nav-link:hover,
.mh-header .nav-link.active { color: var(--white) !important; }

.mh-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--gradient);
    transition: var(--transition);
    transform: translateX(-50%);
}

.mh-header .nav-link:hover::after,
.mh-header .nav-link.active::after { width: 60%; }

.navbar-toggler i { color: var(--white) !important; }

/* Desktop vs mobile navigation */
.mh-nav-desktop-only,
.mh-nav-mobile-only,
.mh-nav-cta { display: none !important; }

.mh-mobile-shop { display: none; }

@media (min-width: 992px) {
    .mh-header .navbar-toggler { display: none !important; }

    .mh-header .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
        background: transparent !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .mh-header .navbar-collapse .mh-main-nav {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .mh-nav-desktop-only { display: list-item !important; }
    .mh-nav-mobile-only,
    .mh-mobile-shop { display: none !important; visibility: hidden !important; height: 0 !important; overflow: hidden !important; }

    .mh-category-bar { display: block !important; }

    .mh-nav-cta {
        display: inline-flex !important;
        flex-shrink: 0;
        margin-left: 0.5rem;
        white-space: nowrap;
    }

    .mh-mobile-bar { display: none !important; }
    body.mh-dark-theme { padding-bottom: 0 !important; }

    .mh-hero {
        padding-top: 300px;
        min-height: 100vh;
    }

    .mh-page-hero {
        padding-top: 300px;
    }

    /* Homepage product rows — full grid on desktop */
    .mh-product-row-wrap { display: block; }
    .mh-row-scroll-btn { display: none !important; }
    .mh-product-row {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
        overflow: visible;
        padding-bottom: 0;
    }
    .mh-product-tile {
        flex: none;
        width: auto;
        max-width: none;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .mh-product-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        overflow: visible;
    }

    .mh-row-scroll-btn { display: none !important; }
}

@media (max-width: 991.98px) {
    .mh-nav-desktop-only,
    .mh-category-bar { display: none !important; }

    .mh-nav-mobile-only,
    .mh-mobile-shop { display: block !important; }

    .mh-nav-cta { display: none !important; }
}

/* Amazon-style category navigation */
.mega-dropdown { position: static !important; }

.mh-category-bar {
    display: none;
    border-top: 1px solid var(--border);
    background: rgba(10, 16, 28, 0.98);
    padding: 0.35rem 0;
}

.mh-category-bar-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.75rem;
    min-height: 42px;
    width: 100%;
}

.mh-all-products-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
    background: rgba(37, 99, 235, 0.15);
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.mh-all-products-btn:hover,
.mh-all-products-btn[aria-expanded="true"] {
    background: var(--secondary);
    border-color: var(--secondary);
}

.mh-category-scroll {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1 1 auto;
    min-width: 0;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding: 0.2rem 0;
}

.mh-category-scroll::-webkit-scrollbar { height: 4px; }
.mh-category-scroll::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }

.mh-category-chip {
    display: inline-flex !important;
    flex-shrink: 0;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: var(--transition);
    line-height: 1.2;
}

.mh-category-chip span { display: inline; }

.mh-category-chip:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border);
}

.mh-category-chip i { color: var(--accent); font-size: 0.75rem; flex-shrink: 0; }

/* Amazon mega dropdown */
.amazon-mega-menu {
    width: 100%;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    border: none;
    border-radius: 0;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
    margin-top: 0;
    box-shadow: var(--shadow-lg);
    max-height: min(70vh, 520px);
    overflow: hidden;
}

.amazon-mega-inner {
    display: flex;
    min-height: 300px;
    padding: 1rem 0;
}

.amazon-mega-sidebar {
    width: 250px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    padding-right: 0.5rem;
    overflow-y: auto;
}

.amazon-cat-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 0.7rem 0.85rem;
    text-align: left;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.amazon-cat-btn i {
    width: 18px;
    text-align: center;
    color: var(--accent);
}

.amazon-cat-btn.active,
.amazon-cat-btn:hover {
    background: rgba(37, 99, 235, 0.12);
    color: var(--white);
}

.amazon-mega-panels {
    flex: 1;
    padding: 0 0 0 1.25rem;
    overflow-y: auto;
}

.amazon-cat-panel { display: none; }
.amazon-cat-panel.active { display: block; }

.amazon-panel-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.amazon-product-link {
    display: block;
    padding: 0.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    height: 100%;
}

.amazon-product-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.amazon-product-link img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.amazon-product-name {
    display: block;
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.3;
}

.amazon-product-link small {
    display: block;
    color: var(--text-dim);
    font-size: 0.72rem;
    margin-top: 0.15rem;
    line-height: 1.3;
}

.amazon-see-all {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.amazon-see-all:hover { color: var(--white); }

/* Mobile nav categories */
.mh-mobile-shop {
    width: 100%;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}

.mh-mobile-cat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.mh-mobile-dept {
    padding: 0.35rem 0 0.75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.mh-mobile-dept-title {
    display: block;
    color: var(--white) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.35rem 0.5rem !important;
    text-decoration: none;
}

.mh-mobile-product-link {
    display: block;
    padding: 0.35rem 0.5rem 0.35rem 1.75rem !important;
    color: var(--text-muted) !important;
    font-size: 0.88rem;
    text-decoration: none;
}

.mh-mobile-product-link:hover { color: var(--accent) !important; }

/* Homepage department product rows */
.mh-dept-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.mh-dept-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mh-dept-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.mh-dept-title-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mh-dept-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.25rem;
}

.mh-dept-title {
    font-size: 1.35rem;
    color: var(--white);
    margin: 0;
    font-family: var(--font-heading);
}

.mh-dept-sub {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.mh-product-row-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.mh-product-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem 0 0.75rem;
    flex: 1;
}

.mh-product-row::-webkit-scrollbar { display: none; }

.mh-row-scroll-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--white);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .mh-row-scroll-btn { display: inline-flex; }
}

.mh-row-scroll-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.mh-product-tile {
    flex: 0 0 min(280px, 78vw);
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.mh-product-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 184, 166, 0.45);
    box-shadow: var(--shadow-glow);
}

.mh-product-tile-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-elevated);
}

.mh-product-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mh-product-tile:hover .mh-product-tile-img img {
    transform: scale(1.05);
}

.mh-product-tile-body {
    padding: 1rem 1.1rem 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mh-product-tile-body h4 {
    color: var(--white);
    font-size: 1rem;
    margin: 0 0 0.35rem;
    font-family: var(--font-heading);
}

.mh-product-tile-body p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 0.75rem;
    flex: 1;
    line-height: 1.45;
}

.mh-product-tile-link {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
}

/* Legacy mega menu (product pages) */
.mega-menu {
    width: 100%;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    margin-top: 0.5rem;
    background: var(--bg-elevated);
}

.mega-menu .mega-col h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.mega-menu a {
    display: block;
    padding: 0.4rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.mega-menu a:hover { color: var(--accent); padding-left: 0.5rem; }

/* Buttons */
.btn-mh-primary {
    background: var(--gradient);
    color: var(--white) !important;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn-mh-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.45);
    color: var(--white) !important;
}

.btn-mh-outline {
    background: transparent;
    color: var(--white) !important;
    border: 2px solid rgba(255, 255, 255, 0.25);
    padding: 0.7rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition);
}

.btn-mh-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    color: var(--accent) !important;
}

.btn-mh-secondary {
    background: var(--bg-elevated);
    color: var(--white) !important;
    border: 1px solid var(--border-light);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-mh-secondary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    color: var(--white) !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

/* Hero */
.mh-page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-base) 100%);
    text-align: center;
}

.mh-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg-base);
    overflow: hidden;
    padding-top: 220px;
}

.mh-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(7, 11, 20, 0.95) 0%, rgba(15, 23, 42, 0.85) 40%, rgba(37, 99, 235, 0.15) 100%);
    z-index: 1;
}

.mh-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-base), transparent);
    z-index: 2;
}

.mh-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    filter: saturate(0.7);
}

.mh-hero .container { position: relative; z-index: 3; }

.mh-hero-badge {
    display: inline-block;
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.35);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.mh-hero h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.mh-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 540px;
    margin-bottom: 2rem;
}

.mh-hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.mh-hero-stat h3 {
    color: var(--accent);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.mh-hero-stat span { color: var(--text-dim); font-size: 0.85rem; }

/* Sections */
.mh-section {
    padding: 5rem 0;
    background: var(--bg-base);
    position: relative;
}

.mh-section-alt {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.mh-section-dark {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.mh-section-label {
    display: inline-block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.mh-section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--white);
}

.mh-section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Cards - dark glass */
.mh-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.mh-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.4), transparent);
    opacity: 0;
    transition: var(--transition);
}

.mh-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: rgba(20, 184, 166, 0.25);
    box-shadow: var(--shadow-glow);
}

.mh-card:hover::before { opacity: 1; }

.mh-card-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(20, 184, 166, 0.15));
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    color: var(--accent);
}

.mh-card h4 { font-size: 1.15rem; margin-bottom: 0.75rem; color: var(--white); }
.mh-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 1rem; }
.mh-card a { color: var(--accent); font-weight: 500; font-size: 0.9rem; }

/* Service cards */
.mh-service-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: 320px;
    cursor: pointer;
    border: 1px solid var(--border);
}

.mh-service-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.85);
}

.mh-service-card:hover img {
    transform: scale(1.08);
    filter: brightness(1);
}

.mh-service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 11, 20, 0.95) 0%, rgba(7, 11, 20, 0.2) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.mh-service-card-overlay h4 { color: var(--white); margin-bottom: 0.5rem; }
.mh-service-card-overlay p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

/* Counters */
.mh-counter { text-align: center; padding: 2rem; }

.mh-counter .count {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mh-counter span { color: var(--text-muted); font-size: 0.95rem; }

.mh-section-dark .mh-counter span { color: var(--text-dim); }

/* Testimonials */
.mh-testimonial {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    height: 100%;
    transition: var(--transition);
}

.mh-testimonial:hover {
    border-color: rgba(20, 184, 166, 0.2);
    box-shadow: var(--shadow-glow);
}

.mh-testimonial::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
    top: 0.5rem; left: 1.5rem;
    line-height: 1;
}

.mh-testimonial .stars { color: #fbbf24; margin-bottom: 1rem; }
.mh-testimonial p { font-style: italic; color: var(--text); margin-bottom: 1.5rem; }
.mh-testimonial .author { display: flex; align-items: center; gap: 1rem; }
.mh-testimonial .author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-light); }
.mh-testimonial .author strong { color: var(--white); }
.mh-testimonial .author small { color: var(--text-dim); }

/* FAQ accordion - dark */
.mh-accordion .accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--bg-card);
}

.mh-accordion .accordion-button {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--white);
    background: var(--bg-card);
    box-shadow: none !important;
}

.mh-accordion .accordion-button::after {
    filter: invert(1);
}

.mh-accordion .accordion-button:not(.collapsed) {
    color: var(--accent);
    background: var(--bg-elevated);
}

.mh-accordion .accordion-body {
    background: var(--bg-elevated);
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* Page header */
.mh-page-header {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.mh-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 0%, rgba(37, 99, 235, 0.15), transparent 60%);
}

.mh-page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient);
}

.mh-page-header .container { position: relative; z-index: 1; }
.mh-page-header h1 { color: var(--white); font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 1rem; }

.mh-breadcrumb .breadcrumb-item a { color: var(--text-muted); }
.mh-breadcrumb .breadcrumb-item.active { color: var(--accent); }
.mh-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--text-dim); }

/* Footer */
.mh-footer {
    background: #050810;
    color: var(--text-muted);
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.mh-footer h5 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.mh-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--accent);
}

.mh-footer a { color: var(--text-muted); display: block; padding: 0.35rem 0; font-size: 0.9rem; }
.mh-footer a:hover { color: var(--accent); padding-left: 0.5rem; }

.mh-footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.mh-footer .social-links a {
    display: inline-flex;
    width: 42px; height: 42px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    padding: 0;
    color: var(--text-muted);
}

.mh-footer .social-links a:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
    padding-left: 0;
}

.mh-footer iframe,
.mh-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Floating buttons */
.mh-float-btn {
    position: fixed;
    z-index: 1040;
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.mh-float-btn:hover { transform: scale(1.1); color: var(--white); }
.mh-float-whatsapp { bottom: 90px; left: 20px; background: #25d366; }
.mh-float-call { bottom: 90px; right: 20px; background: var(--secondary); }

.mh-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1045;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.mh-mobile-bar a {
    flex: 1;
    text-align: center;
    padding: 0.85rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--white);
}

.mh-mobile-bar .wa-link { background: #25d366; }
.mh-mobile-bar .call-link { background: var(--secondary); }

/* Forms - dark inputs */
.mh-form-control,
select.mh-form-control {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
    width: 100%;
}

.mh-form-control::placeholder { color: var(--text-dim); }

.mh-form-control:focus,
select.mh-form-control:focus {
    background: var(--bg-card);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    outline: none;
    color: var(--white);
}

select.mh-form-control option {
    background: var(--bg-elevated);
    color: var(--text);
}

/* Contact CTA box */
.mh-cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

/* Gallery */
.mh-gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.mh-gallery-item img { width: 100%; transition: transform 0.5s; }
.mh-gallery-item:hover img { transform: scale(1.05); }

/* Sidebar - dark */
.mh-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.mh-sidebar h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
    color: var(--white);
}

.mh-sidebar ul { list-style: none; padding: 0; margin: 0; }

.mh-sidebar ul li a {
    display: block;
    padding: 0.6rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.mh-sidebar ul li a:hover,
.mh-sidebar ul li a.active { color: var(--accent); padding-left: 0.5rem; }

/* Content area on product pages */
/* Product page content images */
.mh-product-hero {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    object-fit: cover;
    max-height: 420px;
}

.mh-content-img-row {
    margin: 2rem 0;
}

.mh-content-img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    object-fit: cover;
    height: 220px;
}

.mh-content-img-full {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin: 1.5rem 0;
    object-fit: cover;
    max-height: 320px;
}

.service-entry h2, .service-entry h3, .service-entry h4, .service-entry h5 {
    color: var(--white);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.service-entry ul { color: var(--text-muted); padding-left: 1.25rem; }
.service-entry ul li { margin-bottom: 0.5rem; }
.service-entry strong { color: var(--text); }


/* Modal - dark */
.modal-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    color: var(--text);
}

.modal-header { border-bottom-color: var(--border); }
.modal-header .modal-title { color: var(--white); }
.modal-header .btn-close { filter: invert(1); }
.modal-body p { color: var(--text-muted); }

/* Alerts */
.alert-success {
    background: rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.3);
    color: var(--accent);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Feature list in about */
.mh-feature-item {
    color: var(--text-muted);
    padding: 0.5rem 0;
}

.mh-feature-item i { color: var(--accent); }

/* Text utilities for dark */
.text-dark-theme { color: var(--text) !important; }
.text-white-theme { color: var(--white) !important; }

/* Responsive — mobile, tablet, iPad */
@media (max-width: 1199px) {
    .mh-page-header { padding: 7rem 0 3rem; }
    .mh-page-header h1 { font-size: clamp(1.75rem, 4vw, 2.35rem); }
    .mh-section { padding: 4rem 0; }
    .mh-product-hero { max-height: 360px; }
}

@media (max-width: 991px) {
    .mh-hero { min-height: auto; padding: 260px 0 50px; }
    .mh-hero-stats { flex-wrap: wrap; gap: 1.25rem; }
    .mh-section { padding: 3.5rem 0; }
    .mh-mobile-bar { display: flex !important; }
    .mh-float-btn { bottom: 70px; }
    body.mh-dark-theme { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }

    .mega-menu {
        background: var(--bg-card);
        border: none;
        box-shadow: none;
        padding: 0.5rem 0;
        max-height: 70vh;
        overflow-y: auto;
    }

    .amazon-mega-menu {
        position: static !important;
        transform: none !important;
        max-height: none;
        box-shadow: none;
        background: transparent;
        border: none;
    }

    .amazon-mega-inner {
        flex-direction: column;
        min-height: 0;
        padding: 0;
    }

    .amazon-mega-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        display: flex;
        overflow-x: auto;
        padding: 0.5rem;
        gap: 0.35rem;
    }

    .amazon-cat-btn {
        flex-shrink: 0;
        width: auto;
        white-space: nowrap;
    }

    .amazon-mega-panels {
        padding: 0.75rem 0.5rem;
    }

    .mh-category-bar { display: none !important; }
    .amazon-mega-dropdown.mh-nav-desktop-only { display: none !important; }

    .mega-menu .row { margin: 0; }
    .mega-menu .mega-col { margin-bottom: 1rem; }

    .navbar-collapse {
        background: rgba(7, 11, 20, 0.98);
        margin: 0.75rem -0.5rem 0;
        padding: 0.75rem 1rem 1rem;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mh-mobile-shop {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
    }

    .mh-header .nav-link { padding: 0.65rem 0.5rem !important; }

    .mh-sidebar {
        position: static;
        top: auto;
        margin-bottom: 1.25rem;
    }

    .mh-sidebar-collapsible .mh-sidebar-body {
        display: none;
        margin-top: 0.75rem;
    }

    .mh-sidebar-collapsible.is-open .mh-sidebar-body {
        display: block;
    }

    .mh-sidebar-toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.85rem 1rem;
        background: var(--bg-elevated);
        border: 1px solid var(--border-light);
        border-radius: var(--radius);
        color: var(--white);
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
    }

    .mh-sidebar-toggle i {
        transition: transform 0.25s ease;
        color: var(--accent);
    }

    .mh-sidebar-collapsible.is-open .mh-sidebar-toggle i {
        transform: rotate(180deg);
    }

    .mh-content-img { height: 180px; }
    .mh-footer { padding-top: 3rem; }
    .mh-footer .row > [class*="col-"] { margin-bottom: 0.5rem; }
}

@media (max-width: 767px) {
    .mh-header .navbar-brand img,
    .mh-logo { height: 150px; max-width: 100%; }
    .mh-logo-footer { height: 150px; max-width: 100%; }

    .mh-page-header { padding: 5.5rem 0 2.25rem; }
    .mh-page-header h1 { font-size: clamp(1.45rem, 6vw, 1.85rem); margin-bottom: 0.75rem; }

    .mh-hero h1 { font-size: clamp(1.65rem, 7vw, 2.35rem); }
    .mh-hero p { font-size: 1rem; }
    .mh-hero-stats { gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; }
    .mh-hero-stat h3 { font-size: 1.5rem; }

    .mh-section-title { font-size: clamp(1.35rem, 5vw, 1.75rem); }
    .mh-service-card img { height: 200px; }

    .btn-mh-primary,
    .btn-mh-outline,
    .btn-mh-secondary {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }

    .mh-float-whatsapp { left: 12px; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
    .mh-float-call { right: 12px; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
    .mh-float-btn { width: 50px; height: 50px; font-size: 1.35rem; }

    .mh-gallery-item { margin-bottom: 1rem; }
    .mh-cta-box { padding: 1.25rem; }

    .page-header, .hero {
        padding-top: 220px !important;
        padding-bottom: 40px !important;
    }
}

@media (max-width: 575px) {
    .container { padding-left: 1rem; padding-right: 1rem; }

    .mh-hero .d-flex.gap-3 { flex-direction: column; width: 100%; }
    .mh-hero .d-flex.gap-3 .btn-mh-primary,
    .mh-hero .d-flex.gap-3 .btn-mh-outline { width: 100%; justify-content: center; }

    .mh-feature-grid .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .mh-section-header.d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .mh-mobile-bar a { font-size: 0.8rem; padding: 0.75rem 0.5rem; }
}

/* iOS safe areas */
@supports (padding: max(0px)) {
    .mh-mobile-bar {
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    }
    .mh-header .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

.mh-sidebar-toggle { display: none; }

@media (max-width: 991px) {
    .mh-sidebar-toggle { display: flex; }
}

img[loading="lazy"] { background: var(--bg-elevated); }

@media print {
    .no-print { display: none !important; }
    body { background: white; color: black; }
}

/* Legacy page compatibility - dark theme */
.hero, .page-header, .dark-section {
    background: var(--bg-base) !important;
    color: var(--text) !important;
}

.page-header, .hero {
    padding-top: 220px !important;
    padding-bottom: 60px !important;
    border-bottom: 1px solid var(--border);
}

.page-header h1, .hero h1, .hero-content h1, .section-title h1, .section-title h2 {
    color: var(--white) !important;
}

.page-header-box, .hero-content, .service-entry, .page-service-single, .about-us-body {
    color: var(--text-muted) !important;
}

.page-service-single, .best-services, .about-us, .our-services, .why-choose-us,
.page-contact-us, .page-gallery, .faqs-section, .our-testimonials {
    background: var(--bg-base) !important;
    padding: 4rem 0 !important;
}

.page-single-sidebar, .page-catagery-list, .sidebar-cta-box {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    color: var(--text-muted) !important;
}

.page-catagery-list h3, .sidebar-cta-content h3 { color: var(--white) !important; }
.page-catagery-list ul li a { color: var(--text-muted) !important; }
.page-catagery-list ul li a:hover { color: var(--accent) !important; }

.breadcrumb-item a { color: var(--text-muted) !important; }
.breadcrumb-item.active { color: var(--accent) !important; }

.btn-default, .header-btn .btn-default {
    background: var(--gradient) !important;
    color: var(--white) !important;
    border-radius: 50px !important;
    border: none !important;
}

.main-footer, footer.main-footer {
    background: #050810 !important;
    color: var(--text-muted) !important;
}

.footer-links h3, .footer-links h5, .about-footer h3 { color: var(--white) !important; }
.footer-links a, .footer-links ul li a { color: var(--text-muted) !important; }

.contact-form input, .contact-form textarea, .contact-form select,
.contact-us-form input, .contact-us-form textarea, .contact-us-form select {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text) !important;
    border-radius: var(--radius) !important;
}

.section-title h3 { color: var(--accent) !important; }

.why-choose-item, .expertise-item, .feature-item, .service-item, .support-item,
.testimonial-item, .our-testimonial-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
}

.why-choose-item h3, .expertise-item h3, .feature-item h3, .service-item h3 {
    color: var(--white) !important;
}

.testimonial-item p { color: var(--text) !important; }

