/*
Theme Name: Smart AI Chat SaaS Theme
Description: A premium, modern landing page for the Smart AI Chat platform.
Version: 1.0.0
Author: Antigravity
Author URI: https://smart-ai-chat.com
*/

:root {
    --sac-primary: #6367FF;
    /* Specified Primary Brand Color */
    --sac-secondary: #E50914;
    /* Specified Secondary Color */
    --sac-success: #10b981;
    --sac-energy: #E50914;
    --sac-bg: #F7F7F7;
    --sac-text: #0C0E3E;
    --sac-text-muted: #52547D;
    --sac-card: #ffffff;
    --sac-border: rgba(12, 14, 62, 0.06);
    --sac-gradient: linear-gradient(135deg, #6367FF, #E50914);
    /* Explicit Brand Blend */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background: #F7F7F7 !important;
    background-color: #F7F7F7 !important;
    color: var(--sac-text);
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fixed Header offset ONLY for internal sub-pages */
body:not(.home) {
    padding-top: 90px !important;
}

@media (max-width: 1100px) {
    body:not(.home) {
        padding-top: 70px !important;
    }
}

.sac-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- 1. Global Navigation & Header --- */
.sac-header {
    background: #F7F7F7 !important;
    border-bottom: 1px solid rgba(12, 14, 62, 0.06) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
    height: 90px !important;
    display: flex !important;
    align-items: center !important;
}

/* Admin Bar Override for Fixed Header */
body.admin-bar .sac-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .sac-header {
        top: 46px !important;
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar .sac-header {
        position: absolute !important;
        top: 46px !important;
    }
}

/* Admin Bar Override for Mobile Menu Dropdown (Restricted to Viewports <= 1100px) */
@media (max-width: 1100px) {
    body.admin-bar .sac-nav-links {
        top: 102px !important; /* 70px header + 32px admin bar */
        height: calc(100vh - 102px) !important;
    }

    @media screen and (max-width: 782px) {
        body.admin-bar .sac-nav-links {
            top: 116px !important; /* 70px header + 46px admin bar */
            height: calc(100vh - 116px) !important;
        }
    }

    @media screen and (max-width: 600px) {
        body.admin-bar .sac-nav-links {
            position: absolute !important;
            top: 116px !important;
            height: calc(100vh - 116px) !important;
        }
    }
}



.header-right {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

/* Clean up dropdown arrow specifically on the cart circle */
.sac-cart-icon::after {
    display: none !important;
    content: none !important;
}

.sac-cart-icon {
    padding-right: 0 !important;
    /* Remove padding meant for the arrow */
}

.header-wrap {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
}

.header-left {
    display: flex !important;
    align-items: center !important;
    gap: 60px !important;
}

.header-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-grow: 1 !important;
}

.sac-logo {
    font-size: 26px !important;
    font-weight: 950 !important;
    background: var(--sac-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-decoration: none !important;
    letter-spacing: -1.5px !important;
}

.sac-nav {
    display: flex !important;
    align-items: center !important;
    gap: 35px !important;
}

/* --- Mobile Toggle --- */
.sac-mobile-toggle {
    display: none !important;
    flex-direction: column !important;
    gap: 6px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 10px !important;
    z-index: 10001 !important;
}

.sac-mobile-toggle span {
    display: block !important;
    width: 28px !important;
    height: 2px !important;
    background: var(--sac-text) !important;
    border-radius: 2px !important;
    transition: 0.3s !important;
}

/* Toggle Animation */
.sac-nav.active .sac-mobile-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.sac-nav.active .sac-mobile-toggle span:nth-child(2) {
    opacity: 0;
}

.sac-nav.active .sac-mobile-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.sac-nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 35px !important;
}

.sac-nav-links a {
    color: var(--sac-text) !important;
    /* Precise dark navy from logo */
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: 0.3s !important;
}

.sac-nav-links a:hover {
    color: var(--sac-primary) !important;
}

/* --- Navigation Dropdown System --- */
.sac-nav-dropdown {
    position: relative !important;
    display: inline-block !important;
}

.dropdown-trigger {
    cursor: pointer !important;
    padding-right: 20px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.dropdown-trigger::after {
    content: '▾' !important;
    /* Proper arrow indicator */
    position: absolute !important;
    right: 0 !important;
    font-size: 12px !important;
    opacity: 0.7 !important;
}

.dropdown-content {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    /* Removed translateY to keep it adjacent */
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1px solid var(--sac-border) !important;
    border-radius: 24px !important;
    min-width: 240px !important;
    padding: 15px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    z-index: 99999 !important;
    margin-top: 10px !important;
    /* Space remains visually but logic is fixed below */
}

/* The Invisible Bridge Fix */
.dropdown-content::before {
    content: '' !important;
    position: absolute !important;
    top: -20px !important;
    left: 0 !important;
    width: 100% !important;
    height: 25px !important;
    /* Fills the air gap between Nav and Sub-menu */
    background: transparent !important;
}

.sac-nav-dropdown:hover .dropdown-content {
    display: block !important;
    animation: sacFadeUp 0.3s ease-out !important;
}

/* --- Nested Dropdown System --- */
.dropdown-submenu {
    position: relative !important;
}

.dropdown-submenu .dropdown-trigger::after {
    content: '▸' !important;
    right: 15px !important;
}

.dropdown-submenu .dropdown-content {
    top: 0 !important;
    left: 100% !important;
    transform: translateX(0) !important;
    margin-top: -15px !important;
    margin-left: 5px !important;
}

.dropdown-submenu:hover>.dropdown-content {
    display: block !important;
}

.dropdown-content a {
    display: block !important;
    padding: 14px 22px !important;
    margin-bottom: 5px !important;
    border-radius: 14px !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    color: var(--sac-text) !important;
    transition: 0.3s !important;
}

.dropdown-content a:last-child {
    margin-bottom: 0 !important;
}

.dropdown-content a:not(.sac-btn):hover {
    background: rgba(99, 102, 241, 0.08) !important;
    color: var(--sac-primary) !important;
    transform: scale(1.02) !important;
}

@keyframes sacFadeUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(10px);
    }
}

.sac-btn {
    padding: 14px 32px !important;
    border-radius: 60px !important;
    background: var(--sac-gradient) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4) !important;
    transition: 0.3s !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

.sac-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.6) !important;
}

.sac-login-link:hover {
    color: #fff !important;
}

/* --- 2. Professional Hero & Home Page --- */
.sac-hero-section {
    padding: 80px 0 60px;
    /* Reduced from 120px */
    text-align: center;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent),
        radial-gradient(circle at bottom left, rgba(168, 85, 247, 0.1), transparent);
}

.sac-hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--sac-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.sac-hero-section h1 {
    font-size: 64px;
    font-weight: 950;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2.5px;
}

.sac-gradient-text {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sac-hero-sub {
    font-size: 18px;
    color: var(--sac-text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.sac-hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.sac-btn-secondary {
    padding: 14px 32px !important;
    border: 2px solid rgba(12, 14, 62, 0.15) !important;
    border-radius: 60px !important;
    color: var(--sac-text) !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    transition: 0.3s !important;
    display: inline-block !important;
    white-space: nowrap !important;
    background: transparent !important;
}

.sac-btn-secondary:hover {
    background: var(--sac-text) !important;
    color: #fff !important;
    border-color: var(--sac-text) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(12, 14, 62, 0.15) !important;
}

.sac-btn-glow {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    animation: sacPulse 2s infinite;
}

@keyframes sacPulse {
    0% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
    }

    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
}

/* --- 3. Home Product Showcase --- */
.sac-products-section {
    padding: 60px 0;
}

.sac-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.sac-section-header h2 {
    font-size: 38px;
    font-weight: 950;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.sac-section-header p {
    font-size: 17px;
    color: var(--sac-text-muted);
}

.sac-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.sac-product-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border-radius: 25px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.sac-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.sac-product-banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fc;
    position: relative;
}

.sac-product-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sac-product-card:hover .sac-product-banner img {
    transform: scale(1.05);
}

.sac-product-body {
    padding: 35px 35px 40px;
    position: relative;
}

.sac-product-icon-float {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    position: absolute;
    top: -30px;
    left: 35px;
    z-index: 2;
}

.sac-product-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 15px 0 10px;
    color: #0f172a;
}

.sac-product-card p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sac-feature-list {
    list-style: none;
    margin-bottom: 30px;
    padding: 0;
}

.sac-feature-list li {
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--sac-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sac-link {
    color: var(--sac-primary);
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 4. Case Study & Stats --- */
.sac-case-study {
    padding: 40px 0 80px;
}

.sac-case-card {
    display: flex;
    background: var(--sac-card);
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid var(--sac-border);
    min-height: 380px;
}

.sac-case-image {
    width: 40%;
    background: #f8fafc;
    display: block;
    position: relative;
    overflow: hidden;
}

.sac-case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sac-case-card:hover .sac-case-image img {
    transform: scale(1.05);
}

.sac-case-content {
    padding: 50px;
    width: 60%;
}

.sac-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.sac-case-content h3 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.sac-case-content p {
    font-size: 17px;
    color: var(--sac-text-muted);
    font-style: italic;
    margin-bottom: 30px;
}

.sac-case-stats {
    display: flex;
    gap: 50px;
}

.sac-case-stats strong {
    font-size: 38px;
    font-weight: 950;
    color: var(--sac-text);
    display: block;
}

.sac-case-stats span {
    font-size: 13px;
    color: var(--sac-text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

/* --- 5. Contact Section --- */
.sac-contact-section {}

.sac-contact-card {
    display: flex;
    gap: 60px;
    background: var(--sac-card);
    border-radius: 40px;
    border: 1px solid var(--sac-border);
    padding: 70px;
}

.sac-contact-text,
.sac-contact-form {
    width: 50%;
}

.sac-contact-text h2 {
    font-size: 42px;
    font-weight: 950;
    margin-bottom: 20px;
}

.sac-contact-info {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sac-info-item {
    font-size: 16px;
    color: var(--sac-text-muted);
    font-weight: 600;
}

.sac-form-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.sac-contact-form input,
.sac-contact-form select,
.sac-contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: #f8fafc;
    border: 1px solid var(--sac-border);
    border-radius: 12px;
    color: var(--sac-text);
    font-size: 15px;
    margin-bottom: 15px;
    outline: none;
    transition: 0.3s;
}

.sac-contact-form input:focus {
    border-color: var(--sac-primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Global Dropdown Option Fix - Ensures selection visibility in Dark Mode */
select option {
    background-color: #ffffff !important;
    color: var(--sac-text) !important;
    padding: 10px !important;
}

.wc-block-components-address-form__country.wc-block-components-country-input {
    margin-bottom: 20px;
}

.sac-btn-block {
    width: 100%;
}

/* --- 6. Global Sidebars (Docs & Account fallback) --- */
.sac-sidebar-nav {
    list-style: none;
    background: var(--sac-card);
    border: 1px solid var(--sac-border);
    border-radius: 40px;
    padding: 35px;
    position: sticky;
    top: 130px;
}

.sac-sidebar-nav a {
    display: block;
    padding: 18px 25px;
    color: var(--sac-text-muted);
    text-decoration: none;
    font-weight: 700;
    border-radius: 18px;
    transition: 0.3s;
}

.sac-sidebar-nav li.active a,
.sac-sidebar-nav a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--sac-primary);
}

/* --- 7. Footer --- */
.sac-main-footer {
    padding: 100px 0 60px;
    background: #f8fafc;
    border-top: 1px solid var(--sac-border);
}

.sac-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 80px;
}

.sac-footer-logo {
    font-size: 32px;
    font-weight: 950;
    background: var(--sac-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
}

.sac-footer-links {
    list-style: none;
    padding: 0;
}

.sac-footer-links li {
    margin-bottom: 15px;
}

.sac-footer-links a {
    color: var(--sac-text-muted);
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.sac-footer-links a:hover {
    color: var(--sac-primary);
    padding-left: 5px;
}

@media (max-width: 1100px) {
    .sac-container {
        padding: 0 20px !important;
    }

    .sac-header {
        height: 70px !important;
        padding: 0 20px !important;
    }

    .header-left {
        gap: 10px !important;
        width: auto !important;
        justify-content: flex-start !important;
    }

    .header-center {
        justify-content: flex-end !important;
    }

    .header-right {
        display: none !important;
    }

    .sac-mobile-toggle {
        display: flex !important;
        margin-left: auto !important;
    }

    .sac-nav-links {
        position: fixed !important;
        top: 70px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        background: #ffffff !important;
        backdrop-filter: blur(40px) !important;
        flex-direction: column !important;
        padding: 20px 30px !important;
        align-items: flex-start !important;
        gap: 15px !important;
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1) !important;
        z-index: 10000 !important;
        overflow-y: auto !important;
    }

    .sac-nav.active .sac-nav-links {
        left: 0 !important;
    }

    .sac-nav-links a {
        font-size: 22px !important;
        font-weight: 800 !important;
        color: var(--sac-text) !important;
    }

    .sac-nav-dropdown {
        width: 100% !important;
    }

    .dropdown-content {
        position: static !important;
        transform: none !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: none !important;
        padding: 15px !important;
        border-radius: 15px !important;
        min-width: unset !important;
        display: none !important;
        margin-top: 10px !important;
    }

    .sac-nav-dropdown:hover .dropdown-content {
        display: block !important;
    }

    .sac-hero-section {
        padding: 60px 0 40px !important;
    }

    .sac-hero-section h1 {
        font-size: 38px !important;
        letter-spacing: -1.5px !important;
        line-height: 1.2 !important;
    }

    .sac-hero-sub {
        font-size: 16px !important;
    }

    .sac-hero-actions {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .sac-product-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .sac-product-card {
        padding: 30px !important;
        border-radius: 25px !important;
    }

    .sac-case-card {
        flex-direction: column !important;
        min-height: auto !important;
    }

    .sac-case-image,
    .sac-case-content {
        width: 100% !important;
        padding: 30px !important;
    }

    .sac-contact-card {
        flex-direction: column !important;
        padding: 30px !important;
        gap: 40px !important;
    }

    .sac-contact-text,
    .sac-contact-form {
        width: 100% !important;
    }

    .sac-contact-text h2 {
        font-size: 30px !important;
    }

    .sac-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center !important;
    }

    .sac-footer-logo {
        font-size: 28px !important;
        margin-bottom: 20px !important;
    }

    .sac-checkout-wrapper {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .sac-checkout-right {
        position: static !important;
    }
}


/* User Dashboard Dropdown Alignment */
.user-dashboard .dropdown-content {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
    min-width: 200px !important;
}

.user-dashboard:hover .dropdown-content {
    animation: sacFadeUpRight 0.3s ease-out !important;
}

/* --- 8. Mini Cart Custom Styling --- */
.sac-mini-cart-container {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
}

.sac-mini-cart-container .widget_shopping_cart_content .cart_list li {
    padding: 15px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

.sac-mini-cart-item-info {
    display: flex !important;
    flex-direction: column !important;
    margin-left: 0 !important;
    text-decoration: none !important;
}

.sac-item-name {
    color: var(--sac-text) !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    margin-bottom: 2px !important;
}

.sac-item-price {
    font-size: 13px !important;
    color: var(--sac-text-muted) !important;
    font-weight: 600 !important;
}

.sac-mini-cart-container .cart_list li .quantity {
    color: var(--sac-text-muted) !important;
    font-size: 13px !important;
}

.sac-mini-cart-container .cart_list li .remove {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

.sac-mini-cart-container .total {
    padding: 20px 0 10px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: var(--sac-text) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    display: flex !important;
    justify-content: space-between !important;
    font-size: 14px !important;
}

.sac-mini-cart-container .buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding-top: 15px !important;
}

.sac-mini-cart-container .buttons a {
    width: 100% !important;
    text-align: center !important;
    padding: 12px 0 !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
}

.sac-mini-cart-container .buttons a.checkout {
    background: var(--sac-gradient) !important;
    color: #fff !important;
}

.sac-mini-cart-container .buttons a:not(.checkout) {
    background: #f1f5f9 !important;
    color: var(--sac-text) !important;
}

.sac-mini-cart-container .dropdown-trigger::after {
    display: none !important;
}

@keyframes sacFadeUpRight {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* --- CLEAN DYNAMIC SWIPER HERO SLIDER STYLES --- */
.swiper-hero {
    width: 100%;
    height: 75vh;
    position: relative;
    overflow: hidden;
    background: #0C0E3E;
}

.sac-hero-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block !important;
    /* Force block to drop conflicting flex rules */
    text-align: left !important;
    color: #ffffff;
    box-sizing: border-box !important;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Super light overlay just for legibility */
    z-index: 1;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 5;
    max-width: 550px !important;
    margin: 0 !important;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
}

.swiper-slide-active .slider-content {
    opacity: 1;
    animation: sacFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes sacFadeUp {
    from {
        opacity: 0;
        transform: translateY(calc(-50% + 20px));
    }

    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

.slide-title {
    font-size: 60px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 25px;
    color: #ffffff;
    text-align: left !important;
}

.sac-hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-align: left !important;
}

.sac-hero-sub {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    color: #f1f5f9;
    line-height: 1.6;
    text-align: left !important;
}

/* Navigation controls tweaks */
.swiper-pagination-bullet {
    background: #ffffff !important;
    opacity: 0.4;
}

.swiper-pagination-bullet-active {
    background: var(--sac-primary) !important;
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: #ffffff !important;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

@media (max-width: 768px) {
    .swiper-slide {
        text-align: center !important;
    }

    .slider-content {
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        align-items: center !important;
    }

    .swiper-slide-active .slider-content {
        animation: sacFadeUpMobile 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    }

    .slide-title {
        font-size: 36px;
        text-align: center !important;
    }

    .sac-hero-sub {
        text-align: center !important;
    }
}

@keyframes sacFadeUpMobile {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 20px));
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Invisible bridge to prevent hover loss when moving mouse to submenu */
.dropdown-submenu .dropdown-content::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -20px !important;
    width: 20px !important;
    height: 100% !important;
    background: transparent !important;
}









/* --- 5. Specialties Section --- */
.sac-specialties-section {

    background: #F7F7F7;
}

.sac-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sac-spec-card {
    padding: 40px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.sac-spec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    border-color: rgba(99, 102, 241, 0.1);
}

.sac-spec-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 25px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.sac-spec-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
}

.sac-spec-card p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .sac-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sac-specs-grid {
        grid-template-columns: 1fr;
    }

    .sac-spec-card {
        padding: 30px;
    }
}


/* --- Professional Hire Us Nav CTA --- */
.sac-nav-cta {
    background: rgba(229, 9, 20, 0.06) !important;
    /* Transparent brand red hint */
    color: #E50914 !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px !important;
    border-radius: 30px !important;
    border: 1px solid rgba(229, 9, 20, 0.2) !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    margin: 0 5px !important;
}

.sac-nav-cta:hover {
    background: rgba(229, 9, 20, 0.12) !important;
    /* Deepen just slightly for sleek feedback */
    border-color: rgba(229, 9, 20, 0.4) !important;
    color: #E50914 !important;
    /* Retain red text */
    box-shadow: 0 6px 15px rgba(229, 9, 20, 0.08) !important;
    transform: translateY(-2px);
}

/* Adding a tiny dot badge inside for ultra-premium feel */
.sac-nav-cta::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #E50914;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.sac-nav-cta:hover::before {
    transform: scale(1.3);
    /* Gentle pulse scale instead of color inversion */
}

/* --- Global Navigation Active States --- */
.sac-nav-links a.active,
.sac-nav-links .sac-nav-dropdown.active .dropdown-trigger {
    color: var(--sac-primary) !important;
    /* Theme primary brand blue */
    font-weight: 800 !important;
    position: relative;
}

/* Subtle Underline dot indicator for the Active menu item */
.sac-nav-links a.active::after,
.sac-nav-links .sac-nav-dropdown.active .dropdown-trigger::after {
    /* If trigger, preserve arrow context, let's just use a dot underneath for BOTH instead */
}

.sac-nav-links a.active:not(.sac-nav-cta),
.sac-nav-links .sac-nav-dropdown.active .dropdown-trigger {
    border-bottom: 2px solid var(--sac-primary);
}

.sac-nav-links a.sac-nav-cta.active {
    background: rgba(229, 9, 20, 0.12) !important;
    /* Active state for the Red CTA */
    border-color: rgba(229, 9, 20, 0.6) !important;
}

/* ====================================================
   SECTION 9: MOBILE FLOATING CART BUTTON & DRAWER
   ==================================================== */
.sac-mobile-cart-btn-wrapper {
    position: fixed !important;
    right: 20px !important;
    top: 200px !important; /* Positioned towards the top-right of the viewport */
    z-index: 99999 !important;
    display: none !important;
}

.sac-mobile-cart-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    background: var(--sac-gradient) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4) !important;
    text-decoration: none !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

.sac-mobile-cart-btn:hover {
    transform: scale(1.08) translateY(-2px) !important;
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.6) !important;
}

.sac-mobile-cart-btn .dashicons-cart {
    font-size: 26px !important;
    width: 26px !important;
    height: 26px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Force correct position of the AJAX-updated cart count badge on mobile */
.sac-mobile-cart-btn .sac-cart-count {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background: var(--sac-secondary) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    min-width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

/* Mobile Cart Drawer Overlay */
.sac-mobile-cart-drawer-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(12, 14, 62, 0.4) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 1000000 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.35s ease-in-out !important;
}

.sac-mobile-cart-drawer-overlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Mobile Cart Drawer Panel */
.sac-mobile-cart-drawer {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 85% !important;
    max-width: 380px !important;
    height: 100% !important;
    background: #ffffff !important;
    box-shadow: -10px 0 40px rgba(12, 14, 62, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sac-mobile-cart-drawer-overlay.active .sac-mobile-cart-drawer {
    transform: translateX(0) !important;
}

.sac-mobile-cart-drawer-header {
    padding: 24px 30px !important;
    border-bottom: 1px solid rgba(12, 14, 62, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.sac-mobile-cart-drawer-header h3 {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: var(--sac-text) !important;
    margin: 0 !important;
}

.sac-mobile-cart-drawer-close {
    background: transparent !important;
    border: none !important;
    font-size: 32px !important;
    color: var(--sac-text-muted) !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
    transition: color 0.2s ease !important;
}

.sac-mobile-cart-drawer-close:hover {
    color: var(--sac-secondary) !important;
}

.sac-mobile-cart-drawer-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 30px !important;
}

/* Empty Message Styling */
.sac-mobile-cart-drawer-body .woocommerce-mini-cart__empty-message {
    text-align: center !important;
    color: var(--sac-text-muted) !important;
    font-size: 15px !important;
    margin-top: 40px !important;
    font-weight: 600 !important;
}

/* Mini Cart List Styles inside Drawer */
.sac-mobile-cart-drawer-body .widget_shopping_cart_content .cart_list li {
    padding: 18px 0 !important;
    border-bottom: 1px solid rgba(12, 14, 62, 0.05) !important;
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

.sac-mobile-cart-drawer-body .cart_list li .quantity {
    color: var(--sac-text-muted) !important;
    font-size: 13px !important;
}

.sac-mobile-cart-drawer-body .total {
    padding: 24px 0 12px !important;
    border-top: 1px solid rgba(12, 14, 62, 0.08) !important;
    color: var(--sac-text) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    display: flex !important;
    justify-content: space-between !important;
    font-size: 14px !important;
}

.sac-mobile-cart-drawer-body .buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding-top: 18px !important;
}

.sac-mobile-cart-drawer-body .buttons a {
    width: 100% !important;
    text-align: center !important;
    padding: 14px 0 !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
}

.sac-mobile-cart-drawer-body .buttons a.checkout {
    background: var(--sac-gradient) !important;
    color: #fff !important;
}

.sac-mobile-cart-drawer-body .buttons a:not(.checkout) {
    background: #f1f5f9 !important;
    color: var(--sac-text) !important;
}

@media (max-width: 1100px) {
    .sac-mobile-cart-btn-wrapper {
        display: block !important;
    }
}

/* ====================================================
   SECTION 10: WHATSAPP FLOATING CHAT BUTTON
   ==================================================== */
.sac-whatsapp-float {
    position: fixed !important;
    right: 25px !important;
    bottom: 40px !important; /* Fixed at bottom right */
    width: 60px !important;
    height: 60px !important;
    background-color: #25d366 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4) !important;
    z-index: 99999 !important;
    transition: all 0.3s ease !important;
}

.sac-whatsapp-float:hover {
    transform: scale(1.08) translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6) !important;
    background-color: #20ba5a !important;
}

.sac-whatsapp-float svg {
    width: 32px !important;
    height: 32px !important;
    transition: transform 0.3s ease !important;
}

.sac-whatsapp-float:hover svg {
    transform: rotate(15deg) !important;
}

@media (max-width: 600px) {
    .sac-whatsapp-float {
        width: 52px !important;
        height: 52px !important;
        bottom: 30px !important;
        right: 20px !important;
    }
    .sac-whatsapp-float svg {
        width: 26px !important;
        height: 26px !important;
    }
}