/*
Theme Name: Vacen Groups Theme
Theme URI: https://vacengroups.com
Author: Vacen Groups
Author URI: https://vacengroups.com
Description: Official WordPress theme for Vacen Groups.
Version: 2.2
Text Domain: aosolar
*/

:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;
    --secondary: #fbbf24;
    --dark: #0f172a;
    --dark-card: #1e293b;
    --white: #ffffff;
    --soft-bg: #fff7ed;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --green: #22c55e;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --shadow: 0 6px 30px rgba(249, 115, 22, 0.10);
    --shadow-dark: 0 20px 60px rgba(15, 23, 42, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; outline: none; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text-dark); background: var(--white); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4, h5 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.2; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }

/* TOP BAR */
.s-topbar {
    background: var(--dark); color: rgba(255,255,255,0.75);
    padding: 10px 6%; display: flex; justify-content: space-between; align-items: center;
    font-size: 0.82rem; font-weight: 500;
}
.s-topbar-left { display: flex; gap: 25px; flex-wrap: wrap; }
.s-topbar-left span { display: flex; align-items: center; gap: 8px; }
.s-topbar-left i { color: var(--secondary); }
.s-topbar-right { display: flex; gap: 12px; }
.s-topbar-right a { 
    width: 28px; height: 28px; border-radius: 6px; 
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6);
    display: flex; align-items: center; justify-content: center; font-size: 0.75rem; transition: 0.3s;
}
.s-topbar-right a:hover { background: var(--primary); color: white; }

/* NAVBAR */
.s-navbar {
    position: sticky; top: 0; z-index: 999;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
    padding: 0 6%; height: 80px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}
.s-navbar.scrolled { height: 68px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }

.s-logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.s-logo-img, .custom-logo {
    height: 38px;
    max-height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}
.s-logo:hover .s-logo-img, .s-logo:hover .custom-logo {
    transform: scale(1.03);
}
.s-footer-logo {
    display: inline-block;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.s-footer-logo-img {
    height: 36px;
    max-height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}
.s-logo-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: white;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
    transition: var(--transition);
}
.s-logo:hover .s-logo-icon { transform: rotate(-8deg) scale(1.05); }
.s-logo-text { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--dark); line-height: 1; }
.s-logo-text span { display: block; font-size: 0.65rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 3px; }

.s-nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.s-nav-links a { color: var(--text-dark); font-weight: 600; font-size: 0.92rem; transition: 0.3s; position: relative; padding: 5px 0; }
.s-nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--primary); border-radius: 2px; transition: 0.3s; }
.s-nav-links a:hover, .s-nav-links a.active { color: var(--primary); }
.s-nav-links a:hover::after, .s-nav-links a.active::after { width: 100%; }

/* CTA BUTTONS */
.s-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; padding: 13px 28px; border-radius: 50px;
    font-weight: 700; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 8px;
    transition: var(--transition); border: none; cursor: pointer; text-decoration: none;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}
.s-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(249, 115, 22, 0.4); color: white; }

.s-btn-outline {
    border: 2.5px solid var(--primary); color: var(--primary);
    padding: 12px 28px; border-radius: 50px; font-weight: 700; font-size: 0.88rem;
    display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); text-decoration: none;
}
.s-btn-outline:hover { background: var(--primary); color: white; transform: translateY(-2px); }

/* MOBILE MENU */
.s-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--dark);
    line-height: 1;
    z-index: 1100;
    border-radius: 8px;
    transition: var(--transition);
}
.s-mobile-toggle:hover {
    color: var(--primary);
    background: rgba(249, 115, 22, 0.08);
}
.s-mobile-toggle svg {
    display: block;
    width: 26px;
    height: 26px;
}
.s-drawer-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.55); z-index: 2000; display: none; backdrop-filter: blur(6px); }
.s-drawer-overlay.open { display: block; }
.s-drawer { position: fixed; top: 0; right: -100%; width: min(320px, 85vw); height: 100vh; background: var(--white); z-index: 2001; transition: 0.45s cubic-bezier(0.4, 0, 0.2, 1); padding: 35px 28px; box-shadow: -20px 0 60px rgba(0,0,0,0.12); overflow-y: auto; }
.s-drawer.open { right: 0; }
.s-drawer-close {
    position: absolute;
    top: 22px;
    right: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text-muted);
    border-radius: 8px;
    line-height: 1;
    transition: 0.3s;
}
.s-drawer-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
    background: rgba(249, 115, 22, 0.08);
}
.s-drawer-close svg {
    display: block;
    width: 24px;
    height: 24px;
}
.s-drawer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 35px; }
.s-drawer-links { list-style: none; }
.s-drawer-links li { border-bottom: 1px solid rgba(0,0,0,0.04); }
.s-drawer-links a { display: block; padding: 16px 0; color: var(--text-dark); font-weight: 600; font-size: 1.05rem; transition: 0.3s; }
.s-drawer-links a:hover { color: var(--primary); transform: translateX(8px); }

@media (max-width: 1050px) {
    .s-nav-links, .s-topbar, .desktop-cta { display: none !important; }
    .s-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .s-navbar { padding: 0 5%; }
}

/* SECTION HELPERS */
.s-section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(249, 115, 22, 0.08); color: var(--primary);
    font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 8px 18px; border-radius: 50px;
    border: 1px solid rgba(249, 115, 22, 0.2); margin-bottom: 20px;
}
.s-section-title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 18px; color: var(--dark); }
.s-section-title span { color: var(--primary); }
.s-section-desc { color: var(--text-muted); font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.8; max-width: 600px; margin: 0 auto; }
.text-center { text-align: center; }

/* HERO */
.hero { position: relative; padding: 120px 0; overflow: hidden; background: var(--white); }
.hero-rays {
    position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(ellipse at 60% 40%, rgba(249,115,22,0.18) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(251,191,36,0.10) 0%, transparent 50%);
    animation: rayPulse 6s ease-in-out infinite alternate;
}
@keyframes rayPulse { from { opacity: 0.6; } to { opacity: 1; } }

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero-content h1 { font-size: clamp(2.8rem, 5vw, 4.2rem); margin-bottom: 20px; color: var(--dark); }
.hero-content h1 span { color: var(--primary); }
.hero-content p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 35px; max-width: 500px; }
.hero-stats { display: flex; align-items: center; gap: 30px; margin-top: 40px; }
.hero-stat { text-align: center; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 900; font-family: 'Outfit', sans-serif; color: var(--dark); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.hero-stat-div { width: 1px; height: 40px; background: rgba(0,0,0,0.1); }

.hero-img-wrapper { position: relative; }
.hero-img-wrapper img { border-radius: var(--radius-lg); box-shadow: var(--shadow-dark); }
.hero-badge {
    position: absolute; background: rgba(15,23,42,0.85); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 16px 20px;
    display: flex; align-items: center; gap: 14px; min-width: 210px; color: white;
}
.hero-badge-roi { bottom: -20px; left: -30px; }
.hero-badge-sun { top: 20px; right: -25px; }
.badge-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; background: var(--primary); font-size: 1.2rem; flex-shrink: 0; }
.badge-title { font-size: 0.7rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.8px; }
.badge-val { font-size: 1rem; color: white; font-weight: 800; font-family: 'Outfit', sans-serif; }

/* WHY GRID */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 50px; }
.why-card { background: var(--soft-bg); border-radius: var(--radius-md); padding: 35px 30px; transition: var(--transition); border: 1.5px solid transparent; }
.why-card:hover { transform: translateY(-6px); border-color: var(--primary); background: white; box-shadow: var(--shadow); }
.why-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; background: rgba(249,115,22,0.1); color: var(--primary); }
.why-card h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: 10px; }
.why-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* PROCESS */
.process-section { background: var(--dark); color: white; }
.process-section .s-section-title { color: white; }
.process-section .s-section-desc { color: rgba(255,255,255,0.7); }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 50px; }
.process-step { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md); padding: 40px 28px; text-align: center; transition: var(--transition); }
.process-step:hover { background: rgba(249,115,22,0.08); border-color: rgba(249,115,22,0.25); transform: translateY(-4px); }
.process-num { font-size: 3rem; font-weight: 900; color: rgba(249,115,22,0.2); font-family: 'Outfit',sans-serif; line-height: 1; margin-bottom: 15px; }
.process-icon { width: 60px; height: 60px; border-radius: 18px; background: rgba(249,115,22,0.15); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.6rem; margin: 0 auto 20px; }
.process-step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.process-step p { font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* CALCULATOR */
.calculator-section { padding: 100px 0; }
.calculator-wrapper { background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%); border-radius: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.15); color: white; }
.calc-left { padding: 60px 50px; }
.calc-left h2 { font-size: 2.2rem; margin-bottom: 15px; }
.calc-left p { color: rgba(255,255,255,0.7); margin-bottom: 30px; }
.calc-right { background: url('assets/img/calc.jpg') center/cover no-repeat; position: relative; }
.calc-box { background: rgba(255,255,255,0.05); border-radius: 16px; padding: 30px; margin-top: 25px; border: 1px solid rgba(255,255,255,0.08); }
.bill-slider { width: 100%; accent-color: var(--primary); height: 6px; cursor: pointer; margin: 15px 0; }
.calc-result { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; margin-top: 25px; }
.calc-result-item { text-align: center; }
.cr-label { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; }
.cr-val { font-size: 1.3rem; font-weight: 800; font-family: 'Outfit',sans-serif; color: var(--primary); }

/* STATS BAR */
.stats-bar-section { background: var(--primary); padding: 50px 0; color: white; }
.stats-bar { display: flex; justify-content: space-around; gap: 20px; flex-wrap: wrap; text-align: center; }
.stat-bar-item { flex: 1; min-width: 150px; }
.stat-bar-icon { font-size: 2rem; margin-bottom: 10px; opacity: 0.8; }
.stat-bar-num { font-size: 2.5rem; font-weight: 900; font-family: 'Outfit',sans-serif; margin-bottom: 5px; }
.stat-bar-label { font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* FOOTER */
.s-footer { background: var(--dark); color: rgba(255,255,255,0.65); padding: 80px 6% 40px; }
.s-footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 50px; margin-bottom: 60px; }
.s-footer-brand p { font-size: 0.95rem; line-height: 1.8; margin: 20px 0 25px; }
.s-footer-socials { display: flex; gap: 12px; }
.s-footer-socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.s-footer-socials a:hover { background: var(--primary); color: white; }
.s-footer-col h4 { color: var(--white); font-size: 1.1rem; font-weight: 700; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.s-footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 35px; height: 3px; background: var(--primary); border-radius: 10px; }
.s-footer-col ul { list-style: none; }
.s-footer-col li { margin-bottom: 12px; }
.s-footer-col a { color: rgba(255,255,255,0.45); font-size: 0.95rem; transition: 0.3s; }
.s-footer-col a:hover { color: var(--secondary); padding-left: 6px; }
.s-footer-contact-item { display: flex; gap: 14px; margin-bottom: 18px; font-size: 0.95rem; }
.s-footer-contact-item i { color: var(--secondary); margin-top: 3px; flex-shrink: 0; }
.s-footer-bottom { padding-top: 35px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; font-size: 0.9rem; color: rgba(255,255,255,0.28); }
.s-footer-bottom a { color: var(--secondary); font-weight: 600; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { margin: 0 auto 30px; }
    .hero-stats { justify-content: center; }
    .hero-badge-roi { bottom: 15px; left: 10px; }
    .hero-badge-sun { top: 10px; right: 10px; }
    .calculator-wrapper { grid-template-columns: 1fr; }
    .calc-right { min-height: 300px; }
    .s-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .s-footer-grid { grid-template-columns: 1fr; }
    .calc-result { grid-template-columns: 1fr 1fr; }
    .stats-bar { flex-direction: column; }
}


/* ==========================================================================
   ELEMENTOR SUPPORT & FULL WIDTH STYLES
   ========================================================================== */
.elementor-layout-full-width {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.elementor-layout-canvas {
    margin: 0;
    padding: 0;
    background: #ffffff;
    min-height: 100vh;
}
.elementor-template-full-width .page-content {
    padding: 0;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.s-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    z-index: 99999;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.s-whatsapp:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.65);
    color: #ffffff !important;
}
.s-whatsapp svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
    display: block;
}
@media (max-width: 768px) {
    .s-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    .s-whatsapp svg {
        width: 28px;
        height: 28px;
    }
}


/* Desktop-only City Mega Menu */
@media (min-width: 1051px) {
    .s-navbar { position: sticky; }
    .s-nav-links li.vacen-city-menu-item > a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        border-radius: 12px;
    }
    .s-nav-links li.vacen-city-menu-item > a::before {
        content: "\f3c5";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: var(--primary);
        font-size: 12px;
    }
    .s-navbar:has(.vacen-city-menu-item:hover) .vacen-city-mega,
    .s-navbar:has(.vacen-city-menu-item:focus-within) .vacen-city-mega,
    .vacen-city-mega:hover,
    .vacen-city-mega:focus-within {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
        pointer-events: auto;
    }
    .vacen-city-mega {
        position: absolute;
        top: calc(100% - 4px);
        left: 50%;
        transform: translate(-50%, 16px);
        width: min(980px, calc(100vw - 40px));
        max-height: calc(100vh - 160px);
        overflow-y: auto;
        background: #fff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 24px;
        box-shadow: 0 24px 80px rgba(2, 8, 23, 0.18);
        padding: 26px;
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    }
    .vacen-city-mega::before {
        content: "";
        position: absolute;
        top: -18px;
        left: 0;
        right: 0;
        height: 24px;
    }
    .vacen-city-mega-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding-bottom: 18px;
        margin-bottom: 20px;
        border-bottom: 1px solid #edf1f6;
    }
    .vacen-city-mega-head span {
        display: inline-flex;
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(249, 115, 22, 0.10);
        color: var(--primary);
        font-size: 12px;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
    }
    .vacen-city-mega-head strong {
        color: #07182c;
        font-size: 18px;
        font-weight: 900;
        text-align: right;
    }
    .vacen-city-mega-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }
    .vacen-city-mega-col {
        padding: 18px;
        border-radius: 18px;
        background: #f8fafc;
        border: 1px solid #eef2f7;
        min-height: 132px;
    }
    .vacen-city-mega-col h4 {
        margin: 0 0 12px;
        color: #07182c;
        font-size: 13px;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
    }
    .vacen-city-mega-col a {
        display: block;
        padding: 8px 0;
        color: #52627a;
        font-weight: 700;
        font-size: 15px;
        text-decoration: none;
    }
    .vacen-city-mega-col a:hover {
        color: var(--primary);
        transform: translateX(4px);
    }
    .vacen-city-mega-cta {
        margin-top: 20px;
        padding: 16px 18px;
        border-radius: 18px;
        background: linear-gradient(135deg, #07182c, #123d63);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }
    .vacen-city-mega-cta span { font-weight: 800; }
    .vacen-city-mega-cta a {
        color: #fff;
        background: var(--primary);
        padding: 10px 14px;
        border-radius: 12px;
        font-weight: 900;
        text-decoration: none;
        white-space: nowrap;
    }
}
@media (min-width: 1051px) and (max-width: 1280px) {
    .vacen-city-mega { width: calc(100vw - 32px); padding: 22px; }
    .vacen-city-mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
    .vacen-city-mega { display: none !important; }
}
