/* ==========================================================================
   Clean Energy Systems — Site-wide redesign styles
   Concept: filtration (clarity, layers) + renewable/energy (gradient, glow)
   ========================================================================== */

:root {
    --ces-green-dark: #0f3d24;
    --ces-green: #1e7e34;
    --ces-green-light: #28a745;
    --ces-blue: #0ea5e9;
    --ces-blue-dark: #0369a1;
    --ces-ink: #10241c;
    --ces-muted: #5b6b64;
    --ces-surface: #f4f9f6;
    --ces-radius: 16px;
    --ces-shadow: 0 10px 30px rgba(15, 61, 36, 0.12);
    --ces-shadow-lg: 0 20px 50px rgba(15, 61, 36, 0.18);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ces-ink);
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
}

main section {
    position: relative;
}

/* ---------- Nav menu hover (matches the navbar search button's hover colors) ---------- */
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #212529;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

/* ---------- Hero (homepage) ---------- */
.hero-section {
    background: linear-gradient(115deg, var(--ces-green-dark) 0%, var(--ces-green) 45%, var(--ces-blue-dark) 100%);
    overflow: hidden;
    padding: 72px 0 110px;
    color: #fff;
}

.hero-section .hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.18;
    background: #fff;
    pointer-events: none;
}

.hero-section .hero-shape.shape-1 {
    width: 340px;
    height: 340px;
    top: -120px;
    right: -60px;
    background: var(--ces-blue);
    opacity: 0.35;
    filter: blur(30px);
}

.hero-section .hero-shape.shape-2 {
    width: 220px;
    height: 220px;
    bottom: -80px;
    left: 8%;
    background: #ffffff;
    opacity: 0.08;
    filter: blur(10px);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: ces-fade-up 0.7s ease-out both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.hero-content h1 {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero-content .hero-subtitle {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 560px;
    margin-bottom: 28px;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    margin-right: 12px;
    margin-bottom: 10px;
}

.hero-buttons .btn-light {
    color: var(--ces-green-dark);
}

.hero-buttons .btn-outline-light:hover {
    color: var(--ces-green-dark);
}

.hero-diagram-card {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: var(--ces-radius);
    box-shadow: var(--ces-shadow-lg);
    padding: 18px;
    animation: ces-fade-up 0.9s ease-out both;
    animation-delay: 0.1s;
}

.hero-diagram-card img {
    width: 100%;
    border-radius: 8px;
}

.hero-diagram-card .diagram-caption {
    font-size: 0.8rem;
    color: var(--ces-muted);
    text-align: center;
    margin: 10px 0 0;
}

.hero-wave {
    display: block;
    width: 100%;
    line-height: 0;
    margin-top: -6px;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
    background: linear-gradient(115deg, var(--ces-green-dark) 0%, var(--ces-green) 55%, var(--ces-blue-dark) 100%);
    color: #fff;
    padding: 40px 0 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-header .hero-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.page-header .hero-shape.shape-1 {
    width: 260px;
    height: 260px;
    top: -110px;
    right: -40px;
    background: var(--ces-blue);
    opacity: 0.28;
    filter: blur(28px);
}

.page-header h1 {
    font-size: 2rem;
    margin: 6px 0 0;
    position: relative;
    z-index: 2;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}

.page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.page-header .breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.page-header .breadcrumb .breadcrumb-item.active {
    color: #fff;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- Stats strip ---------- */
.stats-strip {
    background: #fff;
}

.stats-strip.stats-strip-hero {
    margin-top: -60px;
    position: relative;
    z-index: 3;
}

.stats-card {
    background: #fff;
    border-radius: var(--ces-radius);
    box-shadow: var(--ces-shadow);
    padding: 28px 10px;
    text-align: center;
    height: 100%;
}

.stats-card .stats-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ces-green-light), var(--ces-blue));
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.stats-card h3 {
    font-size: 1.6rem;
    margin-bottom: 2px;
    color: var(--ces-green-dark);
}

.stats-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--ces-muted);
}

/* ---------- Section headings ---------- */
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ces-blue-dark);
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 14px;
}

.section-title.centered {
    text-align: center;
}

.section-subtitle {
    color: var(--ces-muted);
    max-width: 680px;
}

.section-subtitle.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ---------- Focus / pillar cards ---------- */
.pillar-card {
    background: #fff;
    border-radius: var(--ces-radius);
    padding: 32px 26px;
    height: 100%;
    box-shadow: var(--ces-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-top: 4px solid transparent;
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ces-shadow-lg);
    border-top-color: var(--ces-blue);
}

.pillar-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.pillar-icon.icon-filtration { background: linear-gradient(135deg, #1e7e34, #28a745); }
.pillar-icon.icon-energy { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.pillar-icon.icon-materials { background: linear-gradient(135deg, #0f3d24, #1e7e34); }

.pillar-card h4 {
    margin-bottom: 10px;
}

.pillar-card p {
    color: var(--ces-muted);
    font-size: 0.95rem;
}

.pillar-card .pillar-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ces-green-dark);
    text-decoration: none;
}

.pillar-card .pillar-link:hover {
    color: var(--ces-blue-dark);
}

/* ---------- About / content teaser blocks ---------- */
.about-teaser {
    background: var(--ces-surface);
}

.about-teaser img,
.content-photo {
    border-radius: var(--ces-radius);
    box-shadow: var(--ces-shadow);
    width: 100%;
}

.about-checklist {
    list-style: none;
    padding: 0;
    margin: 22px 0;
}

.about-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--ces-ink);
}

.about-checklist i {
    color: var(--ces-green-light);
    margin-top: 3px;
}

/* ---------- Generic content card (replaces plain bootstrap .card in body copy) ---------- */
.content-card {
    background: #fff;
    border: none;
    border-radius: var(--ces-radius);
    box-shadow: var(--ces-shadow);
    padding: 26px 28px;
    margin-bottom: 24px;
}

.content-card h4, .content-card h5 {
    color: var(--ces-green-dark);
}

.content-card .content-card-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ces-blue-dark);
    margin-bottom: 6px;
    display: block;
}

.content-card img {
    border-radius: 10px;
}

.lead-card {
    background: var(--ces-surface);
    border-radius: var(--ces-radius);
    padding: 30px 32px;
    margin-bottom: 30px;
}

.lead-card p {
    color: var(--ces-ink);
}

/* ---------- Brand / product cards ---------- */
.brand-card {
    background: #fff;
    border-radius: var(--ces-radius);
    box-shadow: var(--ces-shadow);
    overflow: hidden;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ces-shadow-lg);
}

.brand-card .brand-img-wrap {
    height: 140px;
    background: #f4f9f6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.brand-card .brand-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.brand-card .brand-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.brand-card h6 {
    font-weight: 700;
    margin-bottom: 6px;
}

.brand-card p {
    font-size: 0.82rem;
    color: var(--ces-muted);
    flex: 1;
}

.brand-card a.brand-more {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ces-blue-dark);
    text-decoration: none;
}

/* ---------- Product detail pages ---------- */
.product-hero {
    background: var(--ces-surface);
    border-radius: var(--ces-radius);
    padding: 36px;
    text-align: center;
    margin-bottom: 30px;
}

.product-hero img {
    max-height: 220px;
    object-fit: contain;
    margin-bottom: 14px;
}

.spec-card {
    background: #fff;
    border: none;
    border-radius: var(--ces-radius);
    box-shadow: var(--ces-shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.spec-card .spec-card-header {
    background: linear-gradient(120deg, var(--ces-green-dark), var(--ces-blue-dark));
    color: #fff;
    padding: 14px 22px;
    font-weight: 600;
}

.spec-card .spec-card-body {
    padding: 22px;
}

.spec-card img {
    width: 100%;
    display: block;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.benefit-list li i {
    color: var(--ces-green-light);
    margin-top: 4px;
}

/* ---------- Activities / gallery ---------- */
.activity-thumb {
    position: relative;
    border-radius: var(--ces-radius);
    overflow: hidden;
    box-shadow: var(--ces-shadow);
    display: block;
    height: 220px;
}

.activity-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.activity-thumb:hover img {
    transform: scale(1.06);
}

.activity-thumb .activity-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(15, 61, 36, 0) 0%, rgba(15, 61, 36, 0.85) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
}

.gallery-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--ces-shadow);
    height: 200px;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.year-heading {
    display: inline-block;
    background: linear-gradient(120deg, var(--ces-green-dark), var(--ces-blue-dark));
    color: #fff;
    padding: 6px 20px;
    border-radius: 50px;
    font-weight: 700;
    margin: 36px 0 18px;
}

.year-heading:first-of-type {
    margin-top: 0;
}

.event-title {
    font-weight: 600;
    color: var(--ces-green-dark);
    margin-bottom: 14px;
}

.video-wrap {
    border-radius: var(--ces-radius);
    overflow: hidden;
    box-shadow: var(--ces-shadow);
    margin-bottom: 22px;
}

.video-wrap video {
    width: 100%;
    display: block;
}

/* ---------- Pagination ---------- */
.pagination-modern .page-link {
    border: none;
    border-radius: 50px !important;
    margin: 0 4px;
    color: var(--ces-green-dark);
    font-weight: 600;
}

.pagination-modern .page-item.active .page-link {
    background: linear-gradient(120deg, var(--ces-green), var(--ces-blue));
    color: #fff;
    box-shadow: var(--ces-shadow);
}

.pagination-modern .page-item.disabled .page-link {
    color: #c0c9c4;
}

/* ---------- Accordion ---------- */
.accordion-modern .card {
    border: none;
    border-radius: var(--ces-radius) !important;
    box-shadow: var(--ces-shadow);
    margin-bottom: 14px;
    overflow: hidden;
}

.accordion-modern .card-header {
    background: #fff;
    border: none;
    padding: 0;
}

.accordion-modern .card-header a {
    display: block;
    padding: 16px 22px;
    color: var(--ces-green-dark);
    font-weight: 700;
    text-decoration: none;
}

.accordion-modern .card-header a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    float: right;
    transition: transform 0.25s ease;
}

.accordion-modern .card-header a.collapsed::after {
    transform: rotate(-90deg);
}

.accordion-modern .card-body {
    font-size: 0.92rem;
    color: var(--ces-muted);
}

/* ---------- Contact page ---------- */
.contact-card {
    background: #fff;
    border-radius: var(--ces-radius);
    box-shadow: var(--ces-shadow);
    padding: 30px;
    height: 100%;
}

.contact-card .contact-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.contact-card .contact-row i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ces-surface);
    color: var(--ces-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.map-card {
    border-radius: var(--ces-radius);
    overflow: hidden;
    box-shadow: var(--ces-shadow);
}

.map-card iframe {
    width: 100%;
    display: block;
    border: 0;
}

/* ---------- CTA banner ---------- */
.cta-banner {
    background: linear-gradient(120deg, var(--ces-blue-dark), var(--ces-green-dark));
    color: #fff;
    border-radius: var(--ces-radius);
    margin: 0 auto;
    padding: 50px 30px;
}

.cta-banner h2 {
    margin-bottom: 10px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
}

.cta-banner .btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
}

/* ---------- Footer polish ---------- */
footer .icon-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease;
}

footer .icon-bar a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ---------- Animations ---------- */
@keyframes ces-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991px) {
    .hero-section {
        padding: 56px 0 90px;
        text-align: center;
    }
    .hero-content .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-diagram-card {
        margin-top: 36px;
    }
    .stats-strip.stats-strip-hero {
        margin-top: -50px;
    }
}

@media (max-width: 575px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .page-header h1 {
        font-size: 1.5rem;
    }
    .cta-banner {
        padding: 40px 20px;
    }
}
