/*
Theme Name: SolarXcellence
Author: Roop Kumar
Author URI: https://squareloops.com
Description: A custom theme for SolarXcellence.
Version: 1.0.0
Text Domain: solarxcellence
*/
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

/* Global Heading Typography Rules */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif !important;
}

h1, h2, h3 {
    font-weight: 500 !important;
}

h4, h5, h6 {
    font-weight: 600 !important;
}

/* WordPress Editor Content Styling */
.wp-editor-content {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #4a4a4a;
}
.wp-editor-content p {
    margin-bottom: 1.5rem;
}
.wp-editor-content p:last-child {
    margin-bottom: 0;
}
.wp-editor-content h1, .wp-editor-content h2, .wp-editor-content h3, .wp-editor-content h4, .wp-editor-content h5, .wp-editor-content h6 {
    color: #23266a;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}
.wp-editor-content h1 {
    font-size: 2.25rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}
.wp-editor-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}
.wp-editor-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.wp-editor-content h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
.wp-editor-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.wp-editor-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.wp-editor-content li {
    margin-bottom: 0.5rem;
}
.wp-editor-content li::marker {
    color: #396a00;
}
.wp-editor-content blockquote {
    border-left: 4px solid #396a00;
    padding-left: 1.5rem;
    font-style: italic;
    color: #23266a;
    background-color: rgba(57, 106, 0, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.wp-editor-content a {
    color: #396a00;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}
.wp-editor-content a:hover {
    color: #23266a;
}
.wp-editor-content img {
    border-radius: 1rem;
    border: 2px solid #e5e7eb;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wp-editor-content img:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.wp-editor-content hr {
    border: 0;
    border-top: 1px solid #c7c5d2;
    margin-top: 3rem;
    margin-bottom: 3rem;
}
.wp-editor-content strong {
    color: #23266a;
    font-weight: 700;
}

/* -------------------------------------
   Header & Navigation Styling
-------------------------------------- */
/* Adjust fixed header when WordPress admin bar is showing */
body.admin-bar header.fixed {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar header.fixed {
        top: 46px;
    }
}

/* WordPress Submenu Dropdown Styling */
.menu-item-has-children {
    position: relative;
}
.menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.menu-item-has-children > a::after {
    content: "expand_more";
    font-family: "Material Symbols Outlined";
    font-size: 20px;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    transition: transform 0.2s ease-in-out;
}
.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}
@media screen and (min-width: 768px) {
    .sub-menu {
        visibility: hidden;
        opacity: 0;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background-color: #ffffff;
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
        border: 1px solid #eef4ff;
        border-radius: 0.5rem;
        padding: 0.5rem 0;
        z-index: 50;
        transition: all 0.2s ease-in-out;
        transform: translateY(10px);
        flex-direction: column;
    }
    .menu-item-has-children:hover > .sub-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        display: flex;
    }
}

/* Mobile Sub-menu styling */
@media screen and (max-width: 767px) {
    .sub-menu {
        padding-left: 1rem;
        margin-top: 0.75rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        border-left: 2px solid #eef4ff;
    }
    .sub-menu a {
        font-size: 1.125rem;
        line-height: 1.75rem;
        color: #464650;
        font-weight: 400;
    }
}
.sub-menu li {
    width: 100%;
}
.sub-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    width: 100%;
}

/* Promo Bar WYSIWYG Editor overrides */
.promo-content {
    font-weight: 400 !important; /* Override the 600 weight from text-label-sm */
}
.promo-content p {
    margin: 0;
    display: inline-flex;
    align-items: center;
}
.promo-content strong, .promo-content b {
    font-weight: 800 !important; /* Make bold highly distinct */
}
.promo-content em, .promo-content i {
    font-style: italic !important;
}

/* Prevent anchor links from scrolling behind fixed header */
html {
    scroll-padding-top: var(--header-height, 120px);
}

/* -------------------------------------
   Unified Site-Wide Primary Button Styling
-------------------------------------- */
:root {
    --btn-primary-bg: #d79a17;
    --btn-primary-hover: #c48a12;
    --btn-primary-text: #ffffff;
}

.btn-primary,
.btn-site-primary,
button.js-quote-modal-trigger,
.enquire-package-btn,
.cf7-submit-btn {
    background-color: var(--btn-primary-bg) !important;
    color: var(--btn-primary-text) !important;
    border-radius: 0.5rem !important;
    font-weight: 700 !important;
    transition: all 0.3s ease-in-out !important;
    box-shadow: 0 4px 6px -1px rgba(215, 154, 23, 0.25), 0 2px 4px -1px rgba(215, 154, 23, 0.1) !important;
}

.btn-primary:hover,
.btn-site-primary:hover,
button.js-quote-modal-trigger:hover,
.enquire-package-btn:hover,
.cf7-submit-btn:hover {
    background-color: var(--btn-primary-hover) !important;
    color: var(--btn-primary-text) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(215, 154, 23, 0.4), 0 4px 6px -2px rgba(215, 154, 23, 0.2) !important;
}

.btn-primary:active,
.btn-site-primary:active,
button.js-quote-modal-trigger:active,
.enquire-package-btn:active,
.cf7-submit-btn:active {
    transform: scale(0.97) !important;
}

/* -------------------------------------
   Product & Component Active Tab Hover Fix
-------------------------------------- */
.product-tab.active,
.product-tab.bg-primary {
    background-color: #23266a !important;
    color: #ffffff !important;
    border-color: #23266a !important;
}

.product-tab.active *,
.product-tab.bg-primary * {
    color: #ffffff !important;
}

.product-tab.active:hover,
.product-tab.bg-primary:hover {
    background-color: #1a1c52 !important;
    color: #ffffff !important;
    border-color: #1a1c52 !important;
}

.product-tab.active:hover *,
.product-tab.bg-primary:hover * {
    color: #ffffff !important;
}

.product-tab:not(.active):not(.bg-primary):hover {
    background-color: rgba(35, 38, 106, 0.08) !important;
    color: #23266a !important;
    border-color: #23266a !important;
}

.product-tab:not(.active):not(.bg-primary):hover * {
    color: #23266a !important;
}

/* Infinite Marquee Animation for Brand Carousel */
@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.animate-marquee:hover {
    animation-play-state: paused;
}

/* -------------------------------------
   Quick Contact FAB Widget (avnicindia.com pattern)
-------------------------------------- */
#quick-fab-container {
    user-select: none;
    -webkit-user-select: none;
}

@keyframes fab-pulse-subtle {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 25px -5px rgba(57, 106, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 35px -5px rgba(57, 106, 0, 0.65);
    }
}

#fab-toggle {
    animation: fab-pulse-subtle 3s ease-in-out infinite;
}

#fab-toggle:hover {
    animation-play-state: paused;
}