/*
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;
}

/* 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: 'DM Sans', sans-serif;
    font-weight: 700;
}
.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);
}

/* Custom CF7 Submit Button (replaces tailwind bracket classes that break CF7 parser) */
.cf7-submit-btn {
    background-color: #d79a17 !important;
    transition: all 0.3s ease-in-out !important;
}
.cf7-submit-btn:hover {
    background-color: #e6a71e !important; /* Slightly brighter orange */
    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;
}
.cf7-submit-btn:active {
    transform: scale(0.98) !important;
}