/* Site Mobile Hero Styles */

/* Hide on Desktop by default */
/* Default State: Hidden (Safe for Desktop) */
.smh-mobile-hero {
    display: none !important;
}

/* Base Mobile Styles */
/* Force Theme Header Reduction (User Request) */
@media only screen and (max-width: 768px) {

    /* HIDE THEME FOOTER ONLY ON MOBILE (Gap Fix) */
    footer,
    #colophon,
    #footer,
    .site-footer,
    .elementor-location-footer {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden;
        min-height: 100vh;
    }

    header.site-header {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        min-height: auto !important;
        height: auto !important;
    }

    header.site-header .custom-logo {
        max-height: 40px !important;
        /* Shrink logo too if needed */
        width: auto !important;
    }
}

@media only screen and (max-width: 768px) {
    .smh-mobile-hero {
        display: block !important;
        /* Force show on mobile */
        width: 100%;
        margin-bottom: -30px;
        /* Pull footer up to remove theme gap */
        font-family: 'Inter', sans-serif;
        padding: 0 15px;
        background-color: var(--smh-bg, #ffffff);
        /* Custom BG */
    }

    /* Hide Desktop Hero (Why Choose Us OR Site Hero Banner) on Mobile whenever this plugin is active/styles loaded */
    @media (max-width: 768px) {

        .wcub-section,
        .shb-hero,
        .lifestyle-section,
        .scf-section,
        .buying-guides,
        .digital-tools,
        .srm-section,
        .subscribe-plugin-wrapper,
        .sau-section,
        .sfm-footer-section {
            display: none !important;
        }
    }

    /* 1. Main Hero Image */
    /* 1. Main Hero Image - Absolute Background */
    .smh-hero-section {
        position: relative;
        width: 100vw;
        height: 75vh;
        /* Fixed height for "canvas" feel */
        min-height: 500px;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        margin-bottom: 0px;
        display: flex;
        /* Flex layout */
        flex-direction: column;
        justify-content: flex-end;
        /* Push content to bottom by default */
        overflow: hidden;
        z-index: 1;
    }

    .smh-main-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .smh-hero-overlay {
        position: relative;
        z-index: 2;
        width: 100%;
        text-align: center;
        margin-bottom: auto;
        /* Push to top, leaving space for carousel at bottom */
        padding-top: 80px;
        /* Space from top */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-grow: 1;
        /* Occupy remaining space */
    }

    .smh-hero-title {
        color: #ffffff;
        font-size: 28px;
        font-weight: 800;
        margin: 0 0 10px 0;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        line-height: 1.2;
        max-width: 90%;
    }

    .smh-hero-subtitle {
        color: rgba(255, 255, 255, 0.9);
        font-size: 16px;
        font-weight: 500;
        margin: 0;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
        line-height: 1.4;
    }

    /* Carousel Wrapper: Absolute to prevent text push */
    .smh-cards-wrapper {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 2;
        padding-bottom: 2vh;
        /* Base gap */
        margin-bottom: var(--smh-car-offset, 0px);
        /* Wrapper handles offset */
    }

    /* Section Gaps */
    .smh-wcus-section,
    .smh-life-section,
    .smh-contact-section,
    .smh-guides-section,
    .smh-about-section {
        margin-top: var(--smh-section-gap, 40px);
        /* User controlled gap */
    }

    .smh-secondary-card {
        /* Uses its own specific margin-top setting, but fallback or add logic if needed */
        /* Keeping as is per previous logic involving margin-top setting */
    }

    /* 4. Mobile Why Choose Us */
    .smh-wcus-section {
        padding: 0 15px;
    }

    .smh-cards-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-bottom: 10px;
        position: relative;
        z-index: 2;
        /* Ensure on top of hero */
    }

    .smh-icon-card {
        background: var(--smh-card-bg, #ffffff);
        /* Custom Card BG */
        border-radius: 12px;
        height: 110px;
        /* Fixed Height for alignment */
        padding: 10px;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        border: 1px solid #f0f0f0;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s;
    }

    .smh-icon-card:active {
        transform: scale(0.98);
    }

    .smh-card-icon {
        width: 40px;
        height: 40px;
        object-fit: contain;
        margin-bottom: 8px;
        display: block;
    }

    .smh-card-title {
        font-size: 12px;
        /* Slightly smaller to fit */
        font-weight: 600;
        color: var(--smh-text, #333333);
        /* Custom Text */
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 3. Secondary Content Card */
    .smh-secondary-card {
        background: var(--smh-card-bg, #ffffff);
        /* Custom Card BG */
        border-radius: 0;
        /* Removed radius */
        padding: 25px 20px 40px;
        /* Extra bottom padding to prevent overlap */
        text-align: center;
        box-shadow: none;
        /* Removed shadow */
        margin-top: var(--smh-sec-mt, 0px);
        margin-bottom: 0px;
        /* Full Width Hack */
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        box-sizing: border-box;
        overflow: hidden;
        /* Clip image corners */
    }

    .smh-sec-img-wrap {
        margin: -25px -20px 20px -20px;
        /* Negate padding to go edge-to-edge */
        display: block;
        width: calc(100% + 40px);
    }

    .smh-sec-img {
        width: 100%;
        height: var(--smh-sec-img-h, 250px);
        /* Custom Height */
        object-fit: cover;
        display: block;
    }

    .smh-sec-title {
        font-size: 22px;
        font-weight: 700;
        color: var(--smh-text, #111111);
        /* Custom Text */
        margin-bottom: 10px;
    }

    .smh-sec-desc {
        font-size: 14px;
        color: var(--smh-text, #666666);
        /* Custom Text */
        opacity: 0.8;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .smh-sec-btn {
        display: block;
        width: 100%;
        background: var(--smh-btn-bg, #E85D04);
        /* Custom Button BG */
        color: var(--smh-btn-text, #ffffff);
        /* Custom Button Text */
        font-weight: 700;
        text-transform: uppercase;
        padding: 14px 0;
        border-radius: 50px;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: opacity 0.2s;
    }

    .smh-sec-btn:hover {
        opacity: 0.9;
        color: var(--smh-btn-text, #ffffff);
    }

    /* 4. Mobile Why Choose Us */
    .smh-wcus-section {
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .smh-wcus-heading {
        text-align: center;
        font-size: 20px;
        font-weight: 700;
        color: var(--smh-text, #333333);
        margin-bottom: 20px;
    }

    .smh-wcus-grid {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 15px;
        padding-bottom: 10px;
        /* Space for scrollbar if any */
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
        -ms-overflow-style: none;
        /* Hide scrollbar IE/Edge */
    }

    .smh-wcus-grid::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .smh-wcus-card {
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        padding: 12px 15px;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        flex: 0 0 260px;
        /* Fixed width for carousel */
        border: 1px solid #f0f0f0;
    }

    .smh-wcus-img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        margin-bottom: 12px;
        /* Margin around image */
    }

    .smh-wcus-card-title {
        font-size: 14px;
        font-weight: 700;
        color: var(--smh-text, #333333);
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .smh-wcus-card-desc {
        font-size: 12px;
        color: var(--smh-text, #666666);
        line-height: 1.5;
        opacity: 0.8;
    }

    /* 5. Mobile Lifestyle */
    .smh-life-section {
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .smh-life-heading {
        text-align: center;
        font-size: 22px;
        font-weight: 700;
        color: var(--smh-text, #333333);
        margin-bottom: 5px;
    }

    .smh-life-subheading {
        text-align: center;
        font-size: 14px;
        color: var(--smh-text, #666666);
        opacity: 0.8;
        margin-bottom: 25px;
    }

    .smh-life-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .smh-life-card {
        background: var(--smh-card-bg, #ffffff);
        border-radius: 16px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        /* Slightly deeper shadow */
        overflow: hidden;
        /* For image curve */
        text-decoration: none;
        display: block;
        transition: transform 0.2s;
        border: 1px solid #f0f0f0;
    }

    .smh-life-card:active {
        transform: scale(0.98);
    }

    .smh-life-img {
        width: calc(100% - 20px);
        margin: 10px auto 0;
        /* Inset style */
        border-radius: 12px;
        height: 180px;
        /* Fixed nice height */
        object-fit: cover;
        display: block;
    }

    .smh-life-content {
        padding: 15px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* Space between text and arrow */
    }

    .smh-life-title {
        font-size: 16px;
        font-weight: 700;
        color: var(--smh-text, #333333);
        margin: 0 0 4px 0;
    }

    .smh-life-desc {
        font-size: 13px;
        color: var(--smh-text, #666666);
        margin: 0;
        opacity: 0.9;
    }

    .smh-life-arrow {
        color: var(--smh-btn-bg, #E85D04);
        /* Use button color for arrow */
        margin-left: 15px;
        flex-shrink: 0;
    }

    /* 6. Mobile Contact Us */
    .smh-contact-section {
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .smh-contact-heading {
        text-align: center;
        font-size: 22px;
        font-weight: 700;
        color: var(--smh-text, #333333);
        margin-bottom: 5px;
    }

    .smh-contact-subheading {
        text-align: center;
        font-size: 14px;
        color: var(--smh-text, #666666);
        opacity: 0.8;
        margin-bottom: 20px;
    }

    .smh-contact-img-wrap {
        display: flex;
        justify-content: center;
        margin-bottom: 25px;
    }

    .smh-contact-img {
        max-width: 80%;
        height: auto;
        object-fit: contain;
    }

    .smh-contact-form-card {
        background: var(--smh-card-bg, #ffffff);
        border-radius: 16px;
        padding: 25px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        border: 1px solid #f0f0f0;
    }

    .smh-form-input,
    .smh-form-textarea {
        width: 100%;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        padding: 12px 15px;
        margin-bottom: 12px;
        font-family: inherit;
        font-size: 14px;
        background: #f9f9f9;
    }

    .smh-form-input:focus,
    .smh-form-textarea:focus {
        border-color: var(--smh-btn-bg, #E85D04);
        outline: none;
        background: #ffffff;
    }

    .smh-contact-btn {
        display: block;
        width: 100%;
        background: var(--smh-btn-bg, #E85D04);
        color: var(--smh-btn-text, #ffffff);
        font-weight: 700;
        font-size: 16px;
        padding: 14px 0;
        border-radius: 50px;
        border: none;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: opacity 0.2s;
        margin-top: 10px;
    }

    .smh-contact-btn:hover {
        opacity: 0.9;
    }

    /* 7. Mobile Buying Guides Button */
    .smh-guides-section {
        margin-top: 40px;
    }

    .smh-guide-btn {
        display: block;
        width: 100%;
        background: var(--smh-guide-btn-bg, #000000);
        color: var(--smh-guide-btn-text, #ffffff);
        font-weight: 700;
        text-align: center;
        padding: 14px 0;
        border-radius: 50px;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: opacity 0.2s;
    }

    .smh-guide-btn:hover {
        opacity: 0.9;
        color: var(--smh-guide-btn-text, #ffffff);
    }

    /* 8. Mobile About Us */
    .smh-about-section {
        background: var(--smh-about-bg, #0b1e3f);
        color: var(--smh-about-text, #ffffff);
        padding: 40px 20px;
        margin-top: 40px;
        border-radius: 0;
        /* Removed card look */
        /* Full Width Hack */
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        box-sizing: border-box;
        margin-bottom: 0px;
    }

    .smh-about-logo-wrap {
        text-align: center;
        margin-bottom: 25px;
    }

    .smh-about-logo {
        max-width: 150px;
        height: auto;
        display: block;
        margin: 0 auto;
        /* Force center if text-align fails */
    }

    .smh-about-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        /* Force 2 columns */
        gap: 15px 30px;
        /* Row gap, Col gap */
    }

    .smh-about-link {
        color: inherit;
        /* Use section text color */
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        opacity: 0.9;
        display: flex;
        align-items: center;
    }

    .smh-about-link:before {
        content: '♦';
        /* Bullet style from image roughly */
        font-size: 10px;
        margin-right: 8px;
        opacity: 0.6;
    }

    .smh-about-link:hover {
        opacity: 1;
        text-decoration: underline;
    }

    /* 9. Mobile Footer */
    .smh-footer-section {
        background: var(--smh-footer-bg, #0b1e3f);
        color: var(--smh-footer-text, #ffffff);
        padding: 30px 20px 50px;
        /* Extra bottom padding */
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        /* Full Width Hack */
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        box-sizing: border-box;
        margin-bottom: 0px;
    }

    .smh-social-icons {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 25px;
    }

    .smh-soc-link {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        color: inherit;
        text-decoration: none;
        font-size: 18px;
        transition: background 0.3s;
    }

    .smh-soc-link:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .smh-soc-img {
        width: 20px;
        height: 20px;
        object-fit: contain;
        /* filter: brightness(0) invert(1); */
        /* Removed filter so original icon colors show */
    }

    .smh-footer-copy {
        font-size: 12px;
        opacity: 0.7;
        line-height: 1.6;
        margin: 0 0 10px;
    }

    .smh-footer-desc {
        font-size: 11px;
        opacity: 0.5;
    }

    /* --- Global Mobile Button Override (Circular/Pill) --- */
    button,
    input[type="submit"],
    input[type="button"],
    .button,
    .wp-block-button__link,
    .elementor-button,
    .et_pb_button {
        border-radius: 50px !important;
    }

    /* 7. New Buying Guides Style */
    .smh-guides-section {
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .smh-guides-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .smh-guide-card {
        background: var(--smh-card-bg, #ffffff);
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        /* Soft shadow */
        border: 1px solid #f0f0f0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .smh-guide-img-wrap {
        width: 100%;
        background: #f4f6f8;
        padding: 0;
        /* Remove padding to let image cover */
        display: block;
        /* Block for full coverage */
        height: 200px;
        /* Fixed height for consistency */
        overflow: hidden;
    }

    .smh-guide-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Cover the area */
        mix-blend-mode: normal;
        /* Remove multiply in case of dark images */
        display: block;
    }

    .smh-guide-body {
        padding: 15px 20px 20px;
        /* Top LR Bottom */
        display: flex;
        flex-direction: column;
    }

    .smh-guide-title-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-decoration: none;
        margin-bottom: 5px;
    }

    .smh-guide-title {
        font-size: 16px;
        font-weight: 700;
        color: var(--smh-text, #333333);
        margin: 0;
    }

    .smh-guide-arrow {
        color: #4285F4;
        font-size: 18px;
        font-weight: bold;
    }

    .smh-guide-sub {
        font-size: 13px;
        color: var(--smh-text, #666666);
        opacity: 0.8;
        margin: 0 0 15px 0;
        line-height: 1.4;
    }

    .smh-guide-btn-wrap {
        display: flex;
        justify-content: flex-end;
        /* Right aligned button */
    }

    .smh-guide-read-btn {
        display: inline-block;
        background: var(--smh-btn-bg, #E85D04);
        color: var(--smh-btn-text, #ffffff);
        text-decoration: none;
        padding: 8px 20px;
        border-radius: 50px;
        font-size: 13px;
        font-weight: 600;
        transition: opacity 0.2s;
    }

    .smh-guide-read-btn:hover {
        opacity: 0.9;
        color: var(--smh-btn-text, #ffffff);
    }
}