/* =====================================================================
   RS Sungrow Ventures — Global Stylesheet
   Palette: Solar Orange (#F7941D) + Deep Sky Blue (#0B3D62) + Eco Green (#1FAA59)
   ===================================================================== */

:root {
    --brand-orange: #f7941d;
    --brand-orange-dark: #e07c00;
    --brand-blue: #0b3d62;
    --brand-blue-dark: #082a44;
    --brand-green: #1faa59;
    --brand-light: #fff8ef;
    --text-muted-2: #6c7a89;

    --bs-primary: var(--brand-orange);
    --bs-primary-rgb: 247, 148, 29;
    --bs-link-color: var(--brand-orange);
    --bs-link-hover-color: var(--brand-orange-dark);
    --bs-body-font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #2b2f33;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    color: var(--brand-blue);
}

a { text-decoration: none; }

.btn-primary {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--brand-orange-dark);
    border-color: var(--brand-orange-dark);
    color: #fff;
}
.btn-outline-primary {
    color: var(--brand-orange);
    border-color: var(--brand-orange);
}
.btn-outline-primary:hover {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
}
.btn-outline-light:hover { color: var(--brand-blue); }

.text-primary { color: var(--brand-orange) !important; }
.bg-primary { background-color: var(--brand-orange) !important; }
.section-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    font-size: .8rem;
    color: var(--brand-orange);
    background: rgba(247, 148, 29, .12);
    padding: .35rem 1rem;
    border-radius: 50px;
    margin-bottom: .75rem;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: .5rem; }
.section-subtitle { color: var(--text-muted-2); font-size: 1.05rem; }

/* ---------- Top bar ---------- */
.topbar {
    background: var(--brand-blue-dark);
    color: #cfe0ee;
    font-size: .85rem;
    padding: .45rem 0;
}
.topbar a { color: #cfe0ee; margin-left: 1.25rem; }
.topbar a:hover { color: var(--brand-orange); }
.topbar-info span { margin-right: 1.5rem; }
.topbar i { margin-right: .35rem; color: var(--brand-orange); }

/* ---------- Header / Mega menu ---------- */
.site-header {
    background: #fff;
    box-shadow: 0 2px 18px rgba(11, 61, 98, .08);
    z-index: 1030;
}
.site-header .navbar { padding: .65rem 0; }
.navbar-brand { display: flex; align-items: center; gap: .6rem; }
.brand-name { display: block; font-family: 'Poppins', sans-serif; font-weight: 800; color: var(--brand-blue); font-size: 1.25rem; line-height: 1; }
.brand-tagline { display: block; color: var(--brand-orange); font-size: .7rem; font-weight: 600; }
.navbar-nav .nav-link { color: var(--brand-blue); font-weight: 600; padding: .6rem 1rem; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--brand-orange); }
.header-cta .btn { white-space: nowrap; }

.mega-menu-wrap { position: static; }
.mega-menu {
    width: 100%;
    border: none;
    border-radius: .75rem;
    padding: 1.25rem;
    margin-top: .5rem;
}
.mega-menu-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .65rem .75rem;
    border-radius: .6rem;
    color: var(--brand-blue);
    transition: background .15s ease;
}
.mega-menu-item:hover { background: var(--brand-light); color: var(--brand-orange); }
.mega-menu-item i { font-size: 1.5rem; color: var(--brand-orange); margin-top: .15rem; }
.mega-menu-item .mm-title { display: block; font-weight: 700; }
.mega-menu-item .mm-desc { display: block; color: var(--text-muted-2); font-size: .8rem; }

/* ---------- Hero / Banner ---------- */
.hero-slider .carousel-item {
    min-height: 560px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}
.hero-slider .carousel-item::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(8,42,68,.92) 0%, rgba(8,42,68,.55) 55%, rgba(8,42,68,.25) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 720px; padding: 3rem 0; }
.hero-content h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.18; }
.hero-content p { font-size: 1.15rem; color: #e6eef5; }
.hero-content .btn { padding: .75rem 1.75rem; font-weight: 600; }
.hero-slider .carousel-indicators [data-bs-target] { background-color: var(--brand-orange); }

/* ---------- Stats strip ---------- */
.stats-strip {
    background: var(--brand-blue);
    color: #fff;
    padding: 2.75rem 0;
}
.stat-item h3 { color: var(--brand-orange); font-size: 2.4rem; margin-bottom: .15rem; }
.stat-item p { color: #cfe0ee; margin: 0; font-weight: 500; }

/* ---------- Generic section spacing ---------- */
.section-py { padding: 4.5rem 0; }
.bg-soft { background: var(--brand-light); }

/* ---------- Why choose / feature cards ---------- */
.feature-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    height: 100%;
    text-align: center;
    box-shadow: 0 6px 30px rgba(11, 61, 98, .06);
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid rgba(11,61,98,.06);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(11, 61, 98, .14); }
.feature-icon {
    width: 72px; height: 72px; line-height: 72px;
    border-radius: 50%;
    background: rgba(247,148,29,.12);
    color: var(--brand-orange);
    font-size: 1.9rem;
    margin: 0 auto 1.1rem;
}
.feature-card h5 { margin-bottom: .5rem; }
.feature-card p { color: var(--text-muted-2); margin: 0; font-size: .94rem; }

/* ---------- Service cards ---------- */
.service-card {
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 30px rgba(11,61,98,.07);
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(11,61,98,.16); }
.service-card .service-img { height: 200px; background-size: cover; background-position: center; position: relative; }
.service-card .service-img .service-icon-badge {
    position: absolute; bottom: -22px; left: 24px;
    width: 56px; height: 56px; border-radius: 16px;
    background: var(--brand-orange); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; box-shadow: 0 8px 18px rgba(247,148,29,.4);
}
.service-card .service-body { padding: 2rem 1.5rem 1.5rem; }
.service-card .service-body p { color: var(--text-muted-2); }
.service-card .service-link { font-weight: 700; color: var(--brand-blue); }
.service-card .service-link i { transition: transform .2s ease; }
.service-card:hover .service-link i { transform: translateX(5px); }

/* ---------- Solar Calculator ---------- */
.calculator-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 20px 60px rgba(11,61,98,.12);
    overflow: hidden;
}
.calculator-card .calc-form { padding: 2.5rem; }
.calculator-card .calc-result {
    background: linear-gradient(150deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    color: #fff;
    padding: 2.5rem;
    height: 100%;
}
.calc-result .result-box {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: .85rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.calc-result .result-box .label { color: #cfe0ee; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.calc-result .result-box .value { font-size: 1.6rem; font-weight: 800; color: var(--brand-orange); }

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 6px 30px rgba(11,61,98,.07);
    height: 100%;
}
.testimonial-card .stars { color: var(--brand-orange); margin-bottom: .75rem; }
.testimonial-card .quote { color: #495866; font-style: italic; }
.testimonial-card .client { display: flex; align-items: center; gap: .85rem; margin-top: 1.25rem; }
.testimonial-card .client img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial-card .client strong { display: block; color: var(--brand-blue); }
.testimonial-card .client small { color: var(--text-muted-2); }

/* ---------- FAQ accordion ---------- */
.faq-accordion .accordion-item { border: none; margin-bottom: .85rem; border-radius: .85rem !important; overflow: hidden; box-shadow: 0 4px 22px rgba(11,61,98,.06); }
.faq-accordion .accordion-button { font-weight: 700; color: var(--brand-blue); background: #fff; }
.faq-accordion .accordion-button:not(.collapsed) { color: var(--brand-orange); background: var(--brand-light); box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: none; }
.faq-accordion .accordion-button::after { filter: hue-rotate(0deg); }

/* ---------- Project gallery ---------- */
.project-card { border-radius: 1rem; overflow: hidden; position: relative; box-shadow: 0 6px 30px rgba(11,61,98,.08); }
.project-card img { width: 100%; height: 260px; object-fit: cover; transition: transform .4s ease; }
.project-card:hover img { transform: scale(1.08); }
.project-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(8,42,68,.92) 0%, rgba(8,42,68,.05) 60%);
    display: flex; align-items: flex-end; padding: 1.25rem;
}
.project-overlay h6 { color: #fff; margin-bottom: .15rem; }
.project-overlay small { color: #cfe0ee; }
.project-badge {
    position: absolute; top: 14px; right: 14px;
    background: var(--brand-orange); color: #fff; font-size: .72rem; font-weight: 700;
    padding: .3rem .75rem; border-radius: 50px;
}
.gallery-filters .btn { border-radius: 50px; font-weight: 600; margin: .25rem; }

/* ---------- Lead form / panels ---------- */
.lead-form-panel {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 20px 60px rgba(11,61,98,.14);
    padding: 2.5rem;
}
.lead-form-panel .form-label { font-weight: 600; color: var(--brand-blue); }
.form-control, .form-select {
    border-radius: .6rem;
    border-color: #dfe6ec;
    padding: .65rem .9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 .2rem rgba(247,148,29,.15);
}
.form-section-title { font-weight: 700; color: var(--brand-blue); margin: 1.5rem 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--brand-light); }
.form-section-title:first-child { margin-top: 0; }

/* ---------- CTA strip ---------- */
.cta-strip {
    background: linear-gradient(120deg, var(--brand-orange) 0%, var(--brand-orange-dark) 100%);
    color: #fff;
    padding: 2.75rem 0;
}
.cta-strip h3 { color: #fff; }
.cta-strip .btn-light { color: var(--brand-orange-dark); font-weight: 700; }
.cta-strip .btn-outline-light { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-blue-dark); color: #c7d6e3; padding-top: 3.5rem; }
.footer-brand { display: inline-flex; align-items: center; }
.brand-text-white { font-family: 'Poppins', sans-serif; font-weight: 800; color: #fff; font-size: 1.3rem; }
.footer-about { color: #aebfcf; font-size: .92rem; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 1.1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: .65rem; font-size: .92rem; }
.footer-links a { color: #c7d6e3; }
.footer-links a:hover { color: var(--brand-orange); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; color: #c7d6e3; }
.footer-contact a { color: #c7d6e3; }
.footer-contact i { color: var(--brand-orange); margin-top: .2rem; }
.social-icons { margin-top: 1.1rem; display: flex; gap: .6rem; }
.social-icons a {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); color: #fff;
    transition: background .2s ease, color .2s ease;
}
.social-icons a:hover { background: var(--brand-orange); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding: 1.1rem 0; font-size: .85rem; color: #9fb3c6; }

/* ---------- Floating action buttons ---------- */
.floating-actions { position: fixed; right: 22px; bottom: 22px; z-index: 1040; display: flex; flex-direction: column; gap: .75rem; }
.fab {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem;
    box-shadow: 0 10px 28px rgba(0,0,0,.22);
    animation: fab-pulse 2.4s infinite;
}
.fab-whatsapp { background: #25d366; }
.fab-call { background: var(--brand-orange); animation-delay: .4s; }
@keyframes fab-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,0,0,.18); }
    70% { box-shadow: 0 0 0 14px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
    background: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    color: #fff;
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: "";
    position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(247,148,29,.35) 0%, rgba(247,148,29,0) 70%);
    border-radius: 50%;
}
.page-header h1 { color: #fff; margin-bottom: .35rem; }
.page-header .breadcrumb { margin: 0; }
.page-header .breadcrumb a { color: #cfe0ee; }
.page-header .breadcrumb .active { color: var(--brand-orange); }

/* ---------- Misc ---------- */
.badge-soft { background: rgba(247,148,29,.12); color: var(--brand-orange); font-weight: 700; }
.icon-bullet { display: flex; gap: .6rem; margin-bottom: .6rem; align-items: flex-start; }
.icon-bullet i { color: var(--brand-green); margin-top: .2rem; }
.kit-list { list-style: none; padding: 0; margin: 0; }
.kit-list li { padding: .35rem 0; border-bottom: 1px dashed #e5ebf1; }
.kit-list li:last-child { border-bottom: none; }
.franchise-card { border-radius: 1.25rem; overflow: hidden; background: #fff; box-shadow: 0 12px 50px rgba(11,61,98,.1); height: 100%; display: flex; flex-direction: column; }
.franchise-card .fc-head { padding: 2rem; color: #fff; background: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%); }
.franchise-card.featured .fc-head { background: linear-gradient(120deg, var(--brand-orange) 0%, var(--brand-orange-dark) 100%); }
.franchise-card .fc-head h4 { color: #fff; margin-bottom: .25rem; }
.franchise-card .fc-head .investment { font-size: 1.6rem; font-weight: 800; }
.franchise-card .fc-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.franchise-card .fc-bonus { background: var(--brand-light); border-radius: .6rem; padding: .85rem 1rem; font-weight: 600; color: var(--brand-blue); margin-top: auto; }

.team-card { text-align: center; }
.team-card img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; border: 4px solid var(--brand-light); }
.team-card h6 { margin-top: 1rem; margin-bottom: .15rem; }
.team-card small { color: var(--text-muted-2); }
.team-card .team-contact { margin-top: .5rem; font-size: .85rem; }
.team-card .team-contact a { display: block; color: var(--text-muted-2); text-decoration: none; }
.team-card .team-contact a:hover { color: var(--brand-blue); }
.cert-card { background: #fff; border-radius: .85rem; padding: 1.25rem; text-align: center; box-shadow: 0 6px 24px rgba(11,61,98,.06); }
.cert-card img { height: 90px; object-fit: contain; margin-bottom: .75rem; }

.map-frame { border-radius: 1rem; overflow: hidden; box-shadow: 0 12px 40px rgba(11,61,98,.12); }
.map-frame iframe { width: 100%; height: 420px; border: 0; }

/* ---------------------------------------------------------------------
   Vendor / brand logo marquee
--------------------------------------------------------------------- */
.vendor-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #fff 8%, #fff 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #fff 8%, #fff 92%, transparent);
}
.vendor-marquee-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    animation: vendor-marquee-scroll 35s linear infinite;
}
.vendor-marquee:hover .vendor-marquee-track { animation-play-state: paused; }
.vendor-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
}
.vendor-logo img {
    height: 100%;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    filter: grayscale(15%);
    opacity: .85;
    transition: opacity .25s, filter .25s;
}
.vendor-logo img:hover { opacity: 1; filter: none; }
@keyframes vendor-marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .vendor-marquee-track { animation: none; }
    .vendor-marquee { overflow-x: auto; }
}

@media (max-width: 991.98px) {
    .hero-slider .carousel-item { min-height: 460px; }
    .header-cta { margin-top: 1rem; }
    .navbar-nav .nav-link { padding: .5rem 0; }
}
