/* ==========================================================================
   Sunita Solar Power & Service — design system
   ========================================================================== */

:root {
    --primary: #0876D1;      /* blue */
    --green: #269447;        /* solar green */
    --sun: #FFC928;          /* sun yellow */
    --navy: #073B4C;         /* dark navy */
    --white: #FFFFFF;
    --light-bg: #F5F9FC;
    --text: #425466;
    --heading: #073B4C;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-sm: 0 2px 10px rgba(7, 59, 76, .06);
    --shadow-md: 0 12px 30px rgba(7, 59, 76, .10);
    --shadow-lg: 0 22px 50px rgba(7, 59, 76, .18);
    --ease: cubic-bezier(.2, .7, .2, 1);

    /* Bootstrap overrides */
    --bs-primary: var(--primary);
    --bs-success: var(--green);
    --bs-warning: var(--sun);
    --bs-body-font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-color: var(--text);
    --bs-body-bg: var(--white);
    --bs-link-color: var(--primary);
    --bs-link-hover-color: var(--green);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--bs-body-font-family); font-size: 1rem; line-height: 1.7; color: var(--text); background: var(--white); }
h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
img { max-width: 100%; height: auto; }
a { transition: color .2s var(--ease); }
.container-xl { max-width: 1240px; }
.lead { font-size: 1.125rem; color: var(--text); }
.text-muted { color: #6b7b8c !important; }
.text-light-muted { color: rgba(255, 255, 255, .72); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 2000; background: var(--navy); color: #fff; padding: .5rem 1rem; border-radius: 8px; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: .6rem;
}

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-light { background: var(--light-bg); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: .75rem; }
.section-lead { max-width: 680px; margin-inline: auto; color: var(--text); font-size: 1.05rem; }
.section-head.text-center .section-title, .section-head .section-lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 700; padding: .65rem 1.4rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: #0666b3; border-color: #0666b3; }
.btn-success { background: var(--green); border-color: var(--green); }
.btn-success:hover { background: #1f7a3a; border-color: #1f7a3a; }
.btn-warning { background: var(--sun); border-color: var(--sun); color: var(--navy); }
.btn-warning:hover { background: #f5bb0d; border-color: #f5bb0d; color: var(--navy); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-outline-success { color: var(--green); border-color: var(--green); }
.btn-outline-success:hover { background: var(--green); color: #fff; }
.btn-outline-light:hover { color: var(--navy); }
.btn-lg { padding: .85rem 1.8rem; font-size: 1.02rem; }

/* ---------- Header / navigation ---------- */
.site-header { background: var(--white); box-shadow: var(--shadow-sm); z-index: 1030; }
.navbar { padding: .6rem 0; }
.brand-logo { height: 52px; width: auto; }
.navbar .nav-link { color: var(--navy); font-weight: 700; padding: .5rem .85rem !important; position: relative; }
.navbar .nav-link::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .15rem; height: 3px;
    border-radius: 3px; background: var(--green); transform: scaleX(0); transition: transform .25s var(--ease);
}
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-link.active, .navbar .nav-link:hover { color: var(--primary); }
.dropdown-menu { border: 0; border-radius: var(--radius-md); padding: .5rem; min-width: 260px; }
.dropdown-item { border-radius: 8px; padding: .5rem .75rem; font-weight: 600; color: var(--navy); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--light-bg); color: var(--primary); }
.navbar-toggler { border: 1px solid #d5e3ee; }
.header-phone { color: var(--navy); font-weight: 800; text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--primary); }
.header-quote { padding: .5rem 1.1rem; }
.navbar .nav-link, .header-quote, .header-phone, .navbar-brand { white-space: nowrap; }
.navbar-brand img { display: block; }
@media (min-width: 992px) and (max-width: 1280px) {
    .navbar .nav-link { padding: .5rem .55rem !important; font-size: .95rem; }
    .header-phone { font-size: .9rem; }
}

@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover > .dropdown-menu,
    .navbar .nav-item.dropdown:focus-within > .dropdown-menu { display: block; }
    .navbar .dropdown-menu { margin-top: .4rem; }
}

@media (max-width: 991.98px) {
    .navbar-collapse { background: var(--white); padding: 1rem 0 1.25rem; max-height: calc(100vh - 80px); overflow-y: auto; }
    .navbar .nav-link::after { display: none; }
    .dropdown-menu { position: static; box-shadow: none; background: var(--light-bg); margin: .25rem 0 .5rem; }
}

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; background: var(--navy); }
.hero-slider .carousel-item { height: clamp(520px, 78vh, 760px); }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 59, 76, .88) 0%, rgba(7, 59, 76, .55) 55%, rgba(7, 59, 76, .25) 100%); }
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; color: #fff; max-width: 1240px; margin: 0 auto; padding-inline: 1.25rem; }
.hero-content h1, .hero-content h2 { color: #fff; max-width: 14ch; margin-bottom: 1rem; font-size: clamp(2.1rem, 5vw, 3.6rem); }
.hero-content .eyebrow { color: var(--sun); }
.hero-content .lead { color: rgba(255, 255, 255, .9); max-width: 560px; margin-bottom: 1.75rem; }
.hero-slider .carousel-indicators { margin-bottom: 1.5rem; }
.hero-slider .carousel-indicators [data-bs-target] { width: 34px; height: 4px; border-radius: 4px; background: #fff; border: 0; opacity: .5; }
.hero-slider .carousel-indicators .active { opacity: 1; background: var(--sun); }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 6%; }
.carousel-control-prev-icon, .carousel-control-next-icon { background-color: rgba(255, 255, 255, .18); border-radius: 50%; padding: 1.1rem; background-size: 55% 55%; backdrop-filter: blur(4px); }
@media (max-width: 575.98px) {
    .hero-slider .carousel-item { height: 620px; }
    .hero-content { justify-content: flex-end; padding-bottom: 4.5rem; }
    .hero-content h1, .hero-content h2 { font-size: 2rem; }
    .hero-content .lead { font-size: 1rem; }
    .carousel-control-prev-icon, .carousel-control-next-icon { display: none; }
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--white); border-bottom: 1px solid #e3edf5; position: relative; z-index: 2; margin-top: -1px; }
.trust-item { display: flex; align-items: center; gap: .75rem; padding: 1.35rem 1rem; font-weight: 700; color: var(--navy); }
.trust-item + .trust-item { border-left: 1px solid #e3edf5; }
.trust-item i { font-size: 1.6rem; color: var(--green); }
@media (max-width: 991.98px) { .trust-item:nth-child(odd) { border-left: 0; } .trust-item:nth-child(n+3) { border-top: 1px solid #e3edf5; } }
@media (max-width: 575.98px) { .trust-item { font-size: .9rem; padding: 1rem .5rem; } .trust-item i { font-size: 1.3rem; } }

/* ---------- About preview ---------- */
.image-stack { position: relative; padding-bottom: 2rem; padding-right: 2rem; }
.image-stack > img:first-child { border-radius: var(--radius-lg); }
.accent-img { position: absolute; width: 46%; right: 0; bottom: 0; border: 6px solid #fff; border-radius: var(--radius-md); }
.check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .6rem; font-weight: 600; color: var(--navy); }
.check-list i { color: var(--green); font-size: 1.2rem; margin-top: .15rem; }

/* ---------- Cards ---------- */
.card { border: 1px solid #e3edf5; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-img-wrap { overflow: hidden; aspect-ratio: 3 / 2; background: var(--light-bg); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img-wrap img { transform: scale(1.06); }
.card-body { padding: 1.5rem; }
.card-body h2, .card-body h3 { margin-bottom: .5rem; }
.card-link-more { color: var(--primary); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.card-link-more:hover { color: var(--green); }
.badge-soft { background: rgba(38, 148, 71, .12); color: var(--green); font-weight: 700; padding: .45rem .75rem; border-radius: 999px; font-size: .75rem; letter-spacing: .03em; }
.blog-meta { font-size: .88rem; color: #6b7b8c; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

.feature-card { background: #fff; border: 1px solid #e3edf5; border-radius: var(--radius-lg); padding: 2rem 1.75rem; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--green)); color: #fff; font-size: 1.5rem; margin-bottom: 1rem; }
.feature-card h3, .feature-card h2 { margin-bottom: .5rem; }

/* ---------- Service tiles ---------- */
.service-tile { display: flex; flex-direction: column; gap: .4rem; height: 100%; padding: 1.75rem; background: #fff; border: 1px solid #e3edf5; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.service-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--green); color: var(--text); }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--light-bg); color: var(--primary); font-size: 1.4rem; margin-bottom: .5rem; }
.service-name { font-weight: 800; color: var(--heading); font-size: 1.05rem; line-height: 1.3; }
.service-short { font-size: .92rem; color: #6b7b8c; }

/* ---------- Process ---------- */
.process-steps { position: relative; }
.process-card { position: relative; background: #fff; border: 1px solid #e3edf5; border-radius: var(--radius-lg); padding: 2rem 1.5rem; box-shadow: var(--shadow-sm); }
.step-number { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem; box-shadow: 0 0 0 6px rgba(8, 118, 209, .12); }
@media (min-width: 992px) {
    .process-steps > li:not(:last-child) .process-card::after {
        content: ""; position: absolute; top: 2.4rem; left: calc(100% + 2px); width: calc(1.5rem - 4px); height: 2px; background: repeating-linear-gradient(90deg, var(--green) 0 6px, transparent 6px 12px);
    }
}

/* ---------- Benefits ---------- */
.section-benefits { background: linear-gradient(180deg, #fff 0%, var(--light-bg) 100%); }
.benefit-list { display: grid; gap: 1rem; }
.benefit-list li { display: flex; gap: 1.1rem; align-items: flex-start; background: #fff; border: 1px solid #e3edf5; border-radius: var(--radius-md); padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm); }
.benefit-list i { font-size: 1.5rem; color: var(--green); flex-shrink: 0; margin-top: .1rem; }
.benefit-list strong { display: block; color: var(--heading); }
.benefit-list span { color: #6b7b8c; font-size: .95rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.gallery-item, .gallery-open { position: relative; display: block; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--light-bg); border: 0; padding: 0; width: 100%; }
.gallery-item img, .gallery-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img, .gallery-open:hover img { transform: scale(1.07); }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem 1rem; background: linear-gradient(transparent, rgba(7, 59, 76, .85)); color: #fff; font-weight: 700; font-size: .95rem; text-align: left; }
.gallery-item:hover .gallery-caption { color: var(--sun); }
.masonry-grid { columns: 3 280px; column-gap: 1.25rem; }
.gallery-tile { break-inside: avoid; margin: 0 0 1.25rem; }
.gallery-tile .gallery-open { aspect-ratio: auto; }
.gallery-tile img { aspect-ratio: 4 / 3; height: auto; }
.gallery-tile.is-hidden, .product-item.is-hidden, .blog-item.is-hidden { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; width: min(1100px, 94vw); max-width: none; }
.lightbox::backdrop { background: rgba(7, 26, 35, .9); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; border-radius: var(--radius-md); }
.lightbox figcaption { color: #fff; margin-top: .75rem; font-weight: 700; }
.lb-close, .lb-nav { position: fixed; background: rgba(255, 255, 255, .15); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; backdrop-filter: blur(4px); }
.lb-close { top: 16px; right: 18px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .3); }

/* ---------- Filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.filter-btn { border: 1px solid #cfe0ec; background: #fff; color: var(--navy); border-radius: 999px; padding: .5rem 1.1rem; font-weight: 700; font-size: .92rem; transition: all .2s var(--ease); }
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, #0a5b78 55%, var(--green) 140%); color: #fff; padding: clamp(3.5rem, 7vw, 5.5rem) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 201, 40, .35), transparent 70%); }
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band .lead { color: rgba(255, 255, 255, .9); max-width: 620px; margin-inline: auto; }
.cta-band .btn-outline-light { border-width: 2px; }

/* ---------- Accordion ---------- */
.accordion-modern .accordion-item { border: 1px solid #e3edf5; border-radius: var(--radius-md) !important; margin-bottom: .75rem; overflow: hidden; box-shadow: var(--shadow-sm); }
.accordion-modern .accordion-button { font-weight: 700; color: var(--navy); background: #fff; padding: 1.1rem 1.3rem; }
.accordion-modern .accordion-button:not(.collapsed) { color: var(--primary); background: var(--light-bg); box-shadow: none; }
.accordion-modern .accordion-button:focus { box-shadow: 0 0 0 3px rgba(255, 201, 40, .5); }
.accordion-modern .accordion-body { color: var(--text); padding: 1rem 1.3rem 1.3rem; background: #fff; }
.faq-cat { color: var(--primary); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid #e3edf5; border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-md); }
.enquiry-form .form-label { font-weight: 700; color: var(--navy); font-size: .92rem; margin-bottom: .35rem; }
.enquiry-form .form-control, .enquiry-form .form-select { border-radius: 12px; border-color: #d5e3ee; padding: .7rem .95rem; background: #fbfdff; }
.enquiry-form .form-control:focus, .enquiry-form .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(8, 118, 209, .15); }
.req { color: #c0392b; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.blog-tools .form-control { border-radius: 999px; padding: .7rem 1.2rem; }

/* ---------- Contact ---------- */
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.contact-list i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--light-bg); color: var(--primary); font-size: 1.2rem; flex-shrink: 0; }
.contact-list span { display: block; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--green); }
.contact-list a { color: var(--heading); font-weight: 700; text-decoration: none; }
.contact-card { background: #fff; border: 1px solid #e3edf5; border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); text-align: left; }
.contact-card > i { font-size: 1.6rem; color: var(--green); display: block; margin-bottom: .6rem; }
.contact-card h2 { margin-bottom: .35rem; }
.contact-card p { margin-bottom: .9rem; }
.contact-card a:not(.btn) { color: var(--heading); font-weight: 700; text-decoration: none; }

/* ---------- Page heroes / breadcrumbs ---------- */
.page-hero { background: linear-gradient(120deg, var(--navy), #0a5b78); color: #fff; padding: clamp(3rem, 6vw, 4.75rem) 0; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { color: rgba(255, 255, 255, .88); max-width: 680px; }
.page-hero .eyebrow { color: var(--sun); }
.page-hero-image { background-size: cover; background-position: center; }
.page-hero-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 59, 76, .92), rgba(7, 59, 76, .6)); }
.page-hero-image .container-xl { position: relative; }
.breadcrumb-wrap { background: var(--light-bg); border-bottom: 1px solid #e3edf5; padding: .75rem 0; }
.breadcrumb { margin: 0; font-size: .92rem; }
.breadcrumb-item a { color: var(--primary); text-decoration: none; font-weight: 600; }
.breadcrumb-item.active { color: var(--navy); font-weight: 700; }

/* ---------- Sidebar / side panels ---------- */
.side-panel, .side-cta { background: #fff; border: 1px solid #e3edf5; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.side-cta { background: linear-gradient(160deg, #ffffff 0%, var(--light-bg) 100%); }
.side-panel a { color: var(--navy); font-weight: 600; text-decoration: none; }
.side-panel a:hover { color: var(--primary); }
.featured-post { border-radius: var(--radius-lg); }
.featured-img { height: 100%; object-fit: cover; min-height: 280px; }
.mini-card { background: var(--light-bg); border-radius: var(--radius-md); padding: 1.4rem 1rem; text-align: center; font-weight: 700; color: var(--navy); }
.mini-card i { display: block; font-size: 1.8rem; color: var(--green); margin-bottom: .4rem; }
.legal-text h2 { margin-top: 2rem; margin-bottom: .6rem; }
.legal-text a { color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 4.5rem 0 1.5rem; }
.footer-logo { background: #fff; padding: .5rem .75rem; border-radius: var(--radius-md); height: 64px; width: auto; }
.footer-title { font-size: 1rem; color: #fff; margin-bottom: 1rem; font-weight: 800; }
.footer-links li, .footer-contact li { margin-bottom: .55rem; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .8); text-decoration: none; transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--sun); }
.footer-contact i { color: var(--sun); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }
.footer-bottom a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer-bottom a:hover { color: var(--sun); }

.floating-whatsapp { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 10px 24px rgba(37, 211, 102, .4); z-index: 1100; transition: transform .2s var(--ease); }
.floating-whatsapp:hover { transform: scale(1.08); color: #fff; }

/* ---------- Motion (subtle entrance) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .feature-card, .product-card, .service-tile, .process-card { animation: rise .6s var(--ease) both; }
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 767.98px) {
    .section-title { font-size: 1.85rem; }
    .accent-img { width: 42%; }
    .image-stack { padding-right: 1rem; }
    .footer-logo { height: 54px; }
}
