/* ================================================
   HOANG GIANG SOLAR — HOME SOLAR CSS
   Modern solar energy company homepage
   ================================================ */

/* ===== Hero Section ===== */
.solar-hero {
    position: relative;
    min-height: 72vh;
    display: flex; align-items: center;
    padding: 3rem 0 4rem;
    background: linear-gradient(135deg, rgba(15,42,74,.92) 0%, rgba(30,109,232,.75) 100%),
                url('../images/solar-hero-bg.png') center/cover no-repeat;
    overflow: hidden;
}
.solar-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top, #f6f8fb 0%, transparent 100%);
    z-index: 1;
}
.solar-hero .container { position: relative; z-index: 2; }
.solar-hero .hero-label {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(245,179,1,.15); color: #f5b301;
    font-size: .72rem; font-weight: 600; letter-spacing: .5px;
    padding: 5px 14px; border-radius: 99px; border: 1px solid rgba(245,179,1,.3);
    margin-bottom: .75rem;
}
.solar-hero h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800;
    color: #fff; line-height: 1.2; margin-bottom: .75rem;
}
.solar-hero h1 .text-solar { color: #f5b301; }
.solar-hero .hero-sub {
    font-size: .95rem; color: rgba(255,255,255,.8); max-width: 560px;
    line-height: 1.6; margin-bottom: 1.25rem;
}
.solar-hero .hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.solar-hero .btn-solar {
    background: linear-gradient(135deg, #f5b301, #e6a200);
    color: #0f2a4a; font-weight: 700; padding: .55rem 1.5rem;
    border-radius: 10px; border: none; font-size: .82rem;
    transition: all .3s; box-shadow: 0 4px 15px rgba(245,179,1,.3);
}
.solar-hero .btn-solar:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(245,179,1,.45); color: #0f2a4a; }
.solar-hero .btn-consult {
    background: rgba(255,255,255,.12); color: #fff; font-weight: 600;
    padding: .55rem 1.5rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.25);
    font-size: .82rem; transition: all .3s; backdrop-filter: blur(4px);
}
.solar-hero .btn-consult:hover { background: rgba(255,255,255,.2); color: #fff; }

/* Hero highlights */
.hero-highlights { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-highlights .hi {
    display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.85);
    font-size: .75rem; font-weight: 500;
}
.hero-highlights .hi i { color: #22c55e; font-size: .8rem; }

/* ===== Benefits Section ===== */
.solar-benefits { padding: 5rem 0 3rem; background: #f6f8fb; }
.benefit-card {
    background: #fff; border-radius: 16px; padding: 2rem 1.5rem;
    text-align: center; border: 1px solid #e8ecf1;
    transition: all .3s; height: 100%;
}
.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(30,109,232,.1);
    border-color: #1e6de8;
}
.benefit-icon {
    width: 64px; height: 64px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem; font-size: 1.5rem;
}
.benefit-icon.ic-save { background: rgba(34,197,94,.1); color: #16a34a; }
.benefit-icon.ic-clean { background: rgba(14,165,233,.1); color: #0ea5e9; }
.benefit-icon.ic-shield { background: rgba(245,158,11,.1); color: #d97706; }
.benefit-icon.ic-invest { background: rgba(139,92,246,.1); color: #7c3aed; }
.benefit-card h4 { font-size: .95rem; font-weight: 700; color: #1e293b; margin-bottom: .5rem; }
.benefit-card p { font-size: .82rem; color: #64748b; margin: 0; line-height: 1.6; }

/* ===== Solar Services ===== */
.solar-services { padding: 4rem 0; background: #fff; }
.svc-card {
    background: linear-gradient(145deg, #f8fbff 0%, #eef4ff 100%);
    border-radius: 20px; padding: 2rem; border: 1px solid #dbeafe;
    transition: all .3s; height: 100%; position: relative; overflow: hidden;
}
.svc-card::before {
    content: ''; position: absolute; top: -50px; right: -50px;
    width: 120px; height: 120px; border-radius: 50%;
    background: rgba(30,109,232,.06);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(30,109,232,.12); }
.svc-card .svc-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, #1e6de8, #3b82f6);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.3rem; margin-bottom: 1.25rem;
}
.svc-card h3 { font-size: 1.05rem; font-weight: 700; color: #1e293b; margin-bottom: .5rem; }
.svc-card p { font-size: .82rem; color: #64748b; line-height: 1.6; margin-bottom: 1rem; }
.svc-card .btn-svc {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .78rem; font-weight: 600; color: #1e6de8;
    text-decoration: none; transition: gap .2s;
}
.svc-card .btn-svc:hover { gap: 10px; }

/* ===== Stats Counter ===== */
.solar-stats {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f2a4a 0%, #1e3a5f 50%, #0d47a1 100%);
}
.stat-box { text-align: center; padding: 1.5rem 1rem; }
.stat-box .stat-num {
    font-size: 2.5rem; font-weight: 800; color: #fff;
    line-height: 1; margin-bottom: .25rem;
}
.stat-box .stat-num span { color: #f5b301; }
.stat-box .stat-label { font-size: .78rem; color: rgba(255,255,255,.7); font-weight: 500; }

/* ===== CTA Banner ===== */
.solar-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1e6de8 0%, #0f4cb3 100%);
    position: relative; overflow: hidden;
}
.solar-cta::before {
    content: '☀️'; position: absolute; right: 5%; top: 50%;
    transform: translateY(-50%); font-size: 8rem; opacity: .08;
}
.solar-cta h2 { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: .75rem; }
.solar-cta p { font-size: 1rem; color: rgba(255,255,255,.8); margin-bottom: 1.5rem; }
.solar-cta .btn-cta-quote {
    background: #f5b301; color: #0f2a4a; font-weight: 700;
    padding: .75rem 2.5rem; border-radius: 12px; font-size: 1rem;
    border: none; transition: all .3s;
    box-shadow: 0 4px 20px rgba(245,179,1,.3);
}
.solar-cta .btn-cta-quote:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 30px rgba(245,179,1,.45); color: #0f2a4a; }

/* ===== Section Titles ===== */
.sec-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: #1e6de8; margin-bottom: .5rem;
}
.sec-title { font-size: 1.75rem; font-weight: 800; color: #1e293b; margin-bottom: .5rem; }
.sec-desc { font-size: .9rem; color: #64748b; }

/* ===== Secondary Services ===== */
.secondary-svc { padding: 3rem 0; background: #f6f8fb; }
.mini-svc {
    display: flex; gap: 16px; align-items: flex-start;
    background: #fff; border-radius: 16px; padding: 1.5rem;
    border: 1px solid #e8ecf1; transition: all .3s; height: 100%;
}
.mini-svc:hover { box-shadow: 0 8px 25px rgba(0,0,0,.06); transform: translateY(-3px); }
.mini-svc .mini-icon {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.mini-svc .mini-icon.ic-cam { background: rgba(59,130,246,.1); color: #2563eb; }
.mini-svc .mini-icon.ic-light { background: rgba(245,158,11,.1); color: #d97706; }
.mini-svc h5 { font-size: .9rem; font-weight: 700; color: #1e293b; margin-bottom: .25rem; }
.mini-svc p { font-size: .78rem; color: #64748b; margin: 0; }


/* ===== Quick Calculator Modal ===== */
.calc-modal .modal-content { border-radius: 20px; border: none; overflow: hidden; }
.calc-modal .modal-header {
    background: linear-gradient(135deg, #0f2a4a, #1e3a5f);
    color: #fff; border: none; padding: 1.25rem 1.5rem;
}
.calc-modal .modal-header .modal-title { font-weight: 700; }
.calc-modal .modal-body { padding: 1.5rem; }
.calc-result {
    background: linear-gradient(135deg, #eef6ff, #dbeafe);
    border-radius: 12px; padding: 1.25rem; margin-top: 1rem;
    display: none;
}
.calc-result .cr-item { margin-bottom: .5rem; }
.calc-result .cr-label { font-size: .75rem; color: #64748b; }
.calc-result .cr-value { font-size: 1.1rem; font-weight: 700; color: #1e293b; }

/* ===== Brands Marquee ===== */
.brands-marquee-wrap {
    overflow: hidden;
    position: relative;
    padding: 0 0 .5rem;
}

/* Gradient edge fade */
.brands-marquee-wrap::before,
.brands-marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.brands-marquee-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #fff 0%, transparent 100%);
}
.brands-marquee-wrap::after {
    right: 0;
    background: linear-gradient(270deg, #fff 0%, transparent 100%);
}

.brands-marquee-row {
    overflow: hidden;
    margin-bottom: .5rem;
}
.brands-marquee-row:last-child { margin-bottom: 0; }

.brands-marquee-track {
    display: flex;
    width: max-content;
    gap: 1rem;
}

/* Row 1: scroll left */
.brands-scroll-left {
    animation: marquee-left 30s linear infinite;
}
/* Row 2: scroll right */
.brands-scroll-right {
    animation: marquee-right 30s linear infinite;
}

/* Pause on hover */
.brands-marquee-row:hover .brands-marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}
@keyframes marquee-right {
    0%   { transform: translateX(-33.333%); }
    100% { transform: translateX(0); }
}

.brands-marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    min-width: 140px;
    height: 52px;
    transition: all .3s ease;
}

.brands-marquee-item:hover {
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, .12);
    transform: translateY(-2px);
}

.brands-marquee-item img {
    max-height: 36px;
    max-width: 110px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .6;
    transition: all .3s ease;
}

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

.brand-text-badge {
    font-size: .82rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: .3px;
    white-space: nowrap;
    transition: color .3s ease;
}

.brands-marquee-item:hover .brand-text-badge {
    color: #1e40af;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    /* Hero */
    .solar-hero { min-height: auto; padding: 2.5rem 0 3rem; }
    .solar-hero h1 { font-size: 1.5rem; }
    .solar-hero .hero-sub { font-size: .85rem; margin-bottom: 1rem; }
    .hero-btns .btn-solar,
    .hero-btns .btn-consult { font-size: .78rem; padding: .5rem 1.2rem; }
    .hero-highlights { gap: 8px; }
    .hero-highlights .hi { font-size: .7rem; }

    /* Benefits — horizontal card layout on mobile */
    .solar-benefits { padding: 2.5rem 0 2rem; }
    .solar-benefits .text-center.mb-5 { margin-bottom: 1.5rem !important; }
    .solar-benefits .row.g-4 { --bs-gutter-y: .75rem; --bs-gutter-x: .75rem; }
    .benefit-card {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        padding: 1rem;
        border-radius: 12px;
    }
    .benefit-card .benefit-icon {
        width: 44px; height: 44px; min-width: 44px;
        border-radius: 12px;
        margin: 0;
        font-size: 1.15rem;
    }
    .benefit-card h4 { font-size: .82rem; margin-bottom: 2px; }
    .benefit-card p { font-size: .72rem; line-height: 1.5; }

    /* Services — compact 2-col grid */
    .solar-services { padding: 2.5rem 0 2rem; }
    .solar-services .text-center.mb-5 { margin-bottom: 1.5rem !important; }
    .solar-services .row.g-4 { --bs-gutter-y: .75rem; --bs-gutter-x: .75rem; }
    .svc-card {
        padding: 1.25rem;
        border-radius: 14px;
    }
    .svc-card .svc-icon {
        width: 42px; height: 42px;
        border-radius: 10px;
        font-size: 1.1rem;
        margin-bottom: .75rem;
    }
    .svc-card h3 { font-size: .88rem; margin-bottom: .3rem; }
    .svc-card p { font-size: .75rem; line-height: 1.5; margin-bottom: .5rem; }
    .svc-card .btn-svc { font-size: .73rem; }

    /* Stats */
    .solar-stats { padding: 2rem 0; }
    .stat-box { padding: .75rem .5rem; }
    .stat-box .stat-num { font-size: 1.6rem; }
    .stat-box .stat-label { font-size: .7rem; }

    /* CTA banner */
    .solar-cta { padding: 2.5rem 0; }
    .solar-cta h2 { font-size: 1.2rem; }
    .solar-cta p { font-size: .85rem; margin-bottom: 1rem; }
    .solar-cta .btn-cta-quote { padding: .6rem 2rem; font-size: .88rem; }

    /* Section titles */
    .sec-title { font-size: 1.3rem; }
    .sec-desc { font-size: .82rem; }

    /* Products header */
    .section-products .d-flex.justify-content-between { flex-direction: column; align-items: flex-start !important; gap: .5rem; }

    /* Secondary services */
    .secondary-svc { padding: 2rem 0; }
    .mini-svc { padding: 1rem; gap: 12px; }
    .mini-svc .mini-icon { width: 40px; height: 40px; }
    .mini-svc h5 { font-size: .82rem; }
    .mini-svc p { font-size: .73rem; }

    /* News */
    .section-news .d-flex.justify-content-between { flex-direction: column; align-items: flex-start !important; gap: .5rem; }

    /* Contact section */
    .section-contact { padding: 2.5rem 0 !important; }
    .section-contact .row.g-5 { --bs-gutter-y: 1.5rem; }
    .section-contact .sec-title { font-size: 1.25rem; }
    .contact-info { margin-top: 1rem !important; }
    .contact-item { gap: .75rem; margin-bottom: .75rem; }
    .contact-item i { font-size: 1rem; }
    .contact-item strong { font-size: .85rem; }
    .contact-item a,
    .contact-item div { font-size: .85rem; }
    .contact-form-wrap { padding: 1.25rem; }
    .contact-form .form-label { font-size: .82rem; }
    .contact-form .form-control { font-size: .85rem; padding: .5rem .75rem; }
    .contact-form textarea.form-control { min-height: 80px; }
    .contact-form .btn-lg { padding: .6rem 1rem; font-size: .9rem; }

    /* Map */
    .section-map iframe { height: 250px; }

    /* Brands */
    .section-brands { padding: 2rem 0 !important; }
}

/* Extra small (< 576px) fine-tuning */
@media (max-width: 575.98px) {
    /* Benefits — full-width horizontal cards */
    .solar-benefits .col-6 { width: 100% !important; flex: 0 0 100% !important; }

    /* Services — 2-col + 3rd card full-width */
    .solar-services .col-md-4 { width: 50%; flex: 0 0 50%; }
    .solar-services .col-md-4:last-child { width: 100%; flex: 0 0 100%; }
    .svc-card { text-align: center; }
    .svc-card .svc-icon { margin-left: auto; margin-right: auto; }
    .svc-card::before { display: none; }
    .solar-services .col-md-4:last-child .svc-card {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
        padding: 1rem 1.25rem;
    }
    .solar-services .col-md-4:last-child .svc-icon {
        margin: 0;
        flex-shrink: 0;
        margin-bottom: 0 !important;
    }
    .solar-services .col-md-4:last-child .svc-card h3 { margin-bottom: .15rem; }

    /* Brands — 4-col instead of 3-col */
    .section-brands .col-4 { width: 25% !important; flex: 0 0 25% !important; }
    .section-brands .col-4 .p-3 {
        padding: .4rem !important;
        font-size: .6rem;
    }
    .section-brands .col-4 strong { font-size: .65rem; }
    .section-brands img { max-height: 35px !important; }

    /* Products — compact cards */
    .product-img-placeholder { font-size: 2rem; }
    .product-info { padding: .6rem; }
    .product-name { font-size: .78rem; min-height: 2.03em; }
    .product-price { font-size: .85rem; }
    .product-category { font-size: .65rem; }

    /* News — horizontal scroll on mobile */
    .section-news .row.g-4 {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: .5rem;
        margin-left: -.5rem;
        margin-right: -.5rem;
    }
    .section-news .row.g-4 > .col-md-4 {
        min-width: 280px;
        flex: 0 0 280px;
        scroll-snap-align: start;
    }
    .section-news .row.g-4::-webkit-scrollbar { height: 3px; }
    .section-news .row.g-4::-webkit-scrollbar-thumb {
        background: rgba(30,109,232,.3);
        border-radius: 4px;
    }

    /* ====== FOOTER — Ultra-Compact Mobile ====== */

    /* Reduce overall footer padding dramatically */
    .footer-top { padding: .75rem 0 .25rem !important; }
    .footer-top .row.g-4 {
        gap: 0 !important;
        row-gap: 0 !important;
    }
    .footer-top .row.g-4 > [class*="col-"] {
        padding: 0 .5rem;
        margin-bottom: .2rem;
    }

    /* Column 1: Brand — ultra compact */
    .footer-brand { margin-bottom: .15rem !important; }
    .footer .mb-3 { margin-bottom: .25rem !important; }
    .footer-brand .footer-brand-name { font-size: .85rem; }
    .footer-brand .footer-brand-tagline { font-size: .5rem; letter-spacing: 1.5px; }
    .footer-brand + .footer-desc { display: none; }
    .footer-logo { max-height: 28px !important; }

    /* Contact list — super-tight */
    .footer-contact-list { margin-bottom: .1rem !important; }
    .footer .footer-contact-list li {
        font-size: .72rem;
        padding: 0 !important;
        margin-bottom: 0 !important;
        gap: 5px !important;
        color: #c8d6e5;
        line-height: 1.35;
    }
    .footer .footer-contact-list li i { font-size: .55rem; width: 12px; margin-top: 2px; }
    .footer .footer-contact-list a { color: #c8d6e5 !important; }

    /* Social icons — tight */
    .footer .footer-social-row { gap: .25rem; margin-top: .1rem; margin-bottom: 0; }
    .footer .social-icon { width: 26px; height: 26px; font-size: .6rem; border-radius: 6px; }

    /* Force Sản phẩm + Hỗ trợ side-by-side */
    .footer-top .col-6 {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
    }

    /* Column titles — small */
    .footer .footer-title {
        font-size: .7rem !important;
        margin-bottom: .2rem !important;
        padding-bottom: .15rem !important;
        letter-spacing: 1px !important;
    }
    .footer .footer-title::after { width: 18px; height: 1.5px; }

    /* Links — super-tight list */
    .footer .footer-links li {
        margin-bottom: 0 !important;
        line-height: 1.25;
    }
    .footer .footer-links a {
        font-size: .72rem !important;
        color: #c8d6e5 !important;
        padding: 0 !important;
        line-height: 1.25;
    }

    /* Column 4: Newsletter — minimal */
    .footer-newsletter { margin-top: .15rem !important; margin-bottom: .3rem !important; }
    .footer-top .col-lg-4:last-child .footer-desc {
        font-size: .68rem;
        margin-bottom: .25rem !important;
        line-height: 1.25;
        color: #8899aa;
    }
    .newsletter-input-group {
        border-radius: 8px !important;
    }
    .newsletter-input-group input {
        padding: 7px 10px !important;
        font-size: .73rem !important;
    }
    .newsletter-input-group button {
        padding: 7px 10px !important;
        font-size: .75rem;
    }

    /* Trust badges — tiny inline */
    .footer-trust-badges {
        gap: .25rem !important;
        margin-top: .3rem !important;
        margin-bottom: .25rem !important;
    }
    .trust-badge {
        padding: .15rem .4rem !important;
        font-size: .6rem !important;
        border-radius: 4px !important;
        color: #b0bec5;
    }
    .trust-badge i { font-size: .55rem !important; }

    /* Hide govt badge on mobile */
    .footer-govt-badge { display: none; }

    /* Bottom bar — minimal */
    .footer-bottom { padding: .5rem 0 !important; font-size: .68rem; }
    .footer-bottom .row > div { margin-bottom: .15rem !important; }
    .footer-bottom p { font-size: .65rem; margin-bottom: .1rem !important; color: #7a8ea0; }

    /* Visitor stats — tight */
    .visitor-stats-row { gap: 0; }
    .visitor-stat-item { padding: 0 .35rem; }
    .visitor-stat-item .stat-value { font-size: .68rem; color: #d4e0ed; }
    .visitor-stat-item .stat-label { font-size: .55rem; color: #6b7d8f; }
    .visitor-stat-item i { font-size: .4rem; }
    .visitor-stat-divider { height: 8px; }

    /* Footer bottom links */
    .footer-bottom-links { font-size: .63rem; gap: 3px; margin-top: .15rem !important; }
    .footer-bottom-links a { font-size: .63rem; color: #7a8ea0; }
    .footer-bottom-links a:hover { color: #e2c045; }

    /* Testimonials compact */
    .card-body { padding: 1rem !important; }
}
