/*
Theme Name: SOPL Theme
Theme URI: https://sustainableoutcomes.in
Author: SOPL
Description: Custom WordPress theme for SOPL website migration.
Version: 2.3.3
Text Domain: sopl-theme
*/

:root {
    --sopl-green: #1F6F5F;
    --sopl-green-dark: #007979;
    --sopl-primary: #1F5457;
    --sopl-accent: #B7410E;
    --sopl-mint: #86efac;
    --sopl-bg: #f8fafc;
    --sopl-text: #1e293b;
    --sopl-muted: #64748b;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--sopl-text);
    background: #fff;
}

.navbar-brand img,
.company-logo {
    height: 70px;
    width: 355px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.sopl-page-hero {
    position: relative;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.sopl-page-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.sopl-page-hero .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .sopl-page-hero {
        min-height: 340px;
    }

    .sopl-page-hero h1 {
        font-size: 2rem;
    }
}

.sopl-page-blocks .sopl-entry-content {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #edf0f3;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.sopl-entry-content > *:last-child {
    margin-bottom: 0;
}

.sopl-entry-content .alignwide {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.sopl-entry-content .alignfull {
    width: 100%;
    max-width: none;
}

.sopl-entry-content img {
    max-width: 100%;
    height: auto;
}

.hero-carousel .carousel-item {
    height: 50vh;
    min-height: 200px;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.65));
}

.section-wrap {
    padding: 72px 0;
}

.section-title {
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.stat-card {
    padding: 24px 14px;
    height: 100%;
}

.work-card,
.service-card,
.partner-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    background: #fff;
    height: 100%;
    transition: all 0.25s ease;
}

.work-card:hover,
.service-card:hover,
.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(31, 84, 87, 0.12);
    border-color: var(--sopl-primary);
}

.work-card i,
.service-card i {
    font-size: 30px;
    color: var(--sopl-primary);
}

.partner-card img {
    max-height: 58px;
    object-fit: contain;
    width: 100%;
}

.site-footer,
.footer {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(183, 65, 14, 0.15), transparent 30%), radial-gradient(circle at bottom right, rgba(31, 84, 87, 0.15), transparent 30%), linear-gradient(135deg, #163739 0%, #1F5457 55%, #7d3310 100%);
    color: #a3b8b0;
    padding: 70px 0 0;
    margin-top: 0;
}

.site-footer::before,
.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

.site-footer::after,
.footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sopl-green), var(--sopl-mint), var(--sopl-green));
}

.site-footer .container,
.footer .container {
    position: relative;
    z-index: 2;
}

.site-footer h5,
.footer h5 {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 22px;
}

.site-footer h5 i,
.footer h5 i {
    color: var(--sopl-mint);
    margin-right: 8px;
}

.footer-links a {
    color: #a3b8b0;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-links a i {
    font-size: 11px;
    color: var(--sopl-mint);
    opacity: 0.7;
}

.footer-links a:hover {
    color: var(--sopl-mint);
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-contact-item i {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: rgba(134, 239, 172, 0.08);
    color: var(--sopl-mint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.footer-contact-item span,
.footer-contact-item a {
    color: #a3b8b0;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
}

.footer-contact-item a:hover {
    color: var(--sopl-mint);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 24px 0;
    margin-top: 46px;
    font-size: 13px;
    color: #7f9a8f;
}

.footer-bottom a {
    color: #a3b8b0;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--sopl-mint);
}

.footer-copyright-inline {
    font-size: 13px;
    color: #7f9a8f;
    line-height: 1.6;
}

.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #1f6f5f 0%, #1a7a4b 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
