/* ===========================================
   ClaroClima - Custom Styles
   Brand Colors: #ea7519 (orange), #2eb2ff (blue), #8e8e8e (gray)
   Fonts: Ubuntu, Cooper Hewitt
   =========================================== */

/* Google Fonts override */
body, input, select, textarea {
    font-family: 'Ubuntu', 'Source Sans Pro', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Ubuntu', 'Source Sans Pro', sans-serif;
    font-weight: 700;
}

/* Brand colors */
a {
    color: #2eb2ff;
}

a:hover {
    color: #ea7519;
}

/* Buttons */
.button, button, input[type="submit"], input[type="reset"], input[type="button"] {
    font-family: 'Ubuntu', sans-serif;
}

.button.primary, input[type="submit"].primary {
    background-color: #ea7519;
    border-color: #ea7519;
    color: #fff;
}

.button.primary:hover, input[type="submit"].primary:hover {
    background-color: #d16814;
    border-color: #d16814;
}

.button:not(.primary), input[type="submit"]:not(.primary) {
    color: #ea7519;
    border-color: #ea7519;
}

.button:not(.primary):hover, input[type="submit"]:not(.primary):hover {
    background-color: rgba(234, 117, 25, 0.05);
}

/* =========================================
   Layout overrides - Remove sidebar layout
   ========================================= */

/* Make main content full width (override template sidebar layout) */
#wrapper {
    display: block !important;
}

#main {
    width: 100% !important;
    margin-left: 0 !important;
}

#main > .inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hide the old sidebar completely */
#sidebar {
    display: none !important;
}

/* Hide the old template header (replaced by topnav) */
#header {
    display: none !important;
}

/* =========================================
   Top Navigation Bar
   ========================================= */

#topnav {
    position: sticky;
    top: 0;
    z-index: 5000;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.topnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 2em;
    height: 100px;
}

.topnav-logo {
    display: flex;
    align-items: center;
    gap: 0.6em;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.topnav-logo img {
    height: 80px;
}

.topnav-brand {
    display: none;
}

.topnav-menu {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0 0 0 auto;
    padding: 0;
}

.topnav-menu li a {
    display: block;
    padding: 0.7em 1.2em;
    text-decoration: none;
    color: #636363;
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 3px solid transparent;
}

.topnav-menu li a:hover {
    color: #ea7519;
}

.topnav-menu li a.active {
    color: #ea7519;
    border-bottom-color: #ea7519;
}

.topnav-social {
    list-style: none;
    display: flex;
    gap: 0.4em;
    margin: 0 0 0 2em;
    padding: 0;
}

.topnav-social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #8e8e8e;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
    font-size: 1em;
}

.topnav-social li a:hover {
    color: #ea7519;
    background: rgba(234, 117, 25, 0.08);
}

/* Mobile toggle button */
.topnav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4em;
    color: #636363;
    cursor: pointer;
    margin-left: auto;
    padding: 0.4em;
}

.topnav-toggle:hover {
    color: #ea7519;
}

/* Mobile responsive navbar */
@media screen and (max-width: 850px) {
    .topnav-toggle {
        display: block;
    }

    .topnav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 0.5em 0;
        margin: 0;
    }

    .topnav-menu.open {
        display: flex;
    }

    .topnav-menu li a {
        padding: 0.8em 2em;
        border-bottom: none;
    }

    .topnav-menu li a.active {
        background: rgba(234, 117, 25, 0.06);
        border-bottom: none;
    }

    .topnav-social {
        display: none;
    }
}

/* =========================================
   Footer
   ========================================= */

#site-footer {
    background: #2a2a2a;
    color: #ccc;
    padding: 3em 0 0;
    margin-top: 3em;
}

#site-footer a {
    color: #fff;
    text-decoration: none;
}

#site-footer a:hover {
    color: #ea7519;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2em;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #ea7519;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    padding: 0.3em 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6em;
    padding: 0.4em 0;
}

.footer-contact i {
    color: #2eb2ff;
    margin-top: 0.2em;
    width: 1.2em;
    text-align: center;
}

.footer-col .button.small {
    margin-top: 1em;
    font-size: 0.85em;
    padding: 0.4em 1.2em;
    color: #ea7519;
    border-color: #ea7519;
    background: transparent;
}

.footer-col .button.small:hover {
    background: rgba(234, 117, 25, 0.1);
}

.footer-bottom {
    text-align: center;
    padding: 1.5em 2em;
    margin-top: 2em;
    border-top: 1px solid #444;
    color: #8e8e8e;
    font-size: 0.9em;
}

.footer-bottom p {
    margin: 0;
}

/* Banner */
#banner h1 {
    color: #2eb2ff;
}

/* Section headers */
.major h2 {
    border-bottom-color: #ea7519;
}

.major h2::after {
    background-color: #ea7519;
}

/* Features icons */
.features article .icon {
    color: #ea7519;
}

/* Price tag */
.price-tag {
    font-size: 1.3em;
    font-weight: 700;
    color: #ea7519;
}

/* Product brand */
.product-brand {
    color: #8e8e8e;
    font-style: italic;
}

/* Clients grid */
.clients-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2em;
    width: 100%;
}

.client-item {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.client-item img {
    max-height: 80px;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-item img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff !important;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff !important;
}

/* Product modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 2em;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    cursor: pointer;
    color: #8e8e8e;
    line-height: 1;
}

.modal-close:hover {
    color: #ea7519;
}

/* Form inputs focus */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: #2eb2ff;
}

/* Alert boxes */
.box[style*="d4edda"] {
    border-radius: 6px;
    padding: 1em;
}

/* Responsive adjustments */
@media screen and (max-width: 736px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}
