/* Page Load Animation Targets */
body.loading header,
body.loading .page-header,
body.loading .content-section,
body.loading footer {
    opacity: 0;
    filter: blur(20px);
}

body.loading header {
    animation: contentFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    opacity: 0;
    transform: translateY(-20px);
}

body.loading .page-header {
    animation: contentFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
    opacity: 0;
    transform: scale(0.95);
    filter: blur(10px);
}

body.loading .content-section,
body.loading footer {
    animation: contentFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Page Header - page-specific overrides */
.page-header {
    background:
        linear-gradient(135deg,
            rgba(255, 87, 64, 0.85) 0%,
            rgba(255, 138, 101, 0.75) 100%
        ),
        var(--page-header-bg-image, none) center/cover;
}

/* Content Section - page-specific overrides */
.content-section {
    padding: 100px 0;
}

.content-section:nth-child(even) {
    background: #fafafa;
}

.section-title {
    margin-bottom: 1.2rem;
}

/* About Intro */
.about-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 3.8rem 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.stat-number {
    font-size: 4rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-unit {
    font-size: 0.5em;
    font-weight: 500;
    padding-left: 0.1em;
}

.stat-label {
    color: #666;
    font-weight: 400;
    font-size: 0.95rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.value-icon {
    margin-bottom: 1.5rem;
}

.value-icon svg {
    width: 64px;
    height: 64px;
}

.value-card h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

/* Eco Grid */
.eco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Service Items Grid */
.service-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Client Wall */
.client-trust-section {
    background:
        radial-gradient(circle at 10% 8%, rgba(255, 87, 64, 0.1), transparent 32%),
        radial-gradient(circle at 88% 90%, rgba(41, 121, 255, 0.07), transparent 30%),
        linear-gradient(180deg, #f7f8fc 0%, #f4f6fa 100%);
}

.client-trust-lead {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.client-trust-lead .section-subtitle {
    max-width: 860px;
    margin: 0 auto;
}

.trust-rows {
    display: grid;
    gap: 1rem;
}

.trust-row {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 18px;
    padding: 0.9rem;
    box-shadow: 0 8px 24px rgba(20, 32, 56, 0.07);
}

.trust-row-head {
    border-radius: 14px;
    padding: 1rem 1rem 0.95rem;
    background: linear-gradient(135deg, #ff644d, #ff8f62);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.trust-row:nth-child(2) .trust-row-head {
    background: linear-gradient(135deg, #2d5cff, #4c79ff);
}

.trust-row:nth-child(3) .trust-row-head {
    background: linear-gradient(135deg, #16a085, #30c7a9);
}

.trust-row-head h3 {
    font-size: 1.14rem;
    margin: 0 0 0.55rem;
    line-height: 1.25;
}

.trust-row-head p {
    margin: 0;
    font-size: 0.84rem;
    opacity: 0.95;
    letter-spacing: 0.02em;
}

.trust-row-logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 0.7rem;
}

.trust-logo-card {
    background: #fff;
    border: 1px solid #edf1f6;
    border-radius: 14px;
    padding: 0.78rem 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 170px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.trust-logo-card img {
    width: 100%;
    max-width: 84px;
    height: 84px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: saturate(1.03) contrast(1.02);
}

.trust-logo-card span {
    display: block;
    font-size: 0.79rem;
    font-weight: 600;
    color: #1f2a3b;
    line-height: 1.35;
}

.trust-logo-card:hover {
    transform: translateY(-2px);
    border-color: #d7e3ff;
    box-shadow: 0 8px 16px rgba(28, 53, 102, 0.09);
}

/* Case Study */
.case-studies-section {
    background:
        radial-gradient(circle at 6% 6%, rgba(255, 87, 64, 0.1), transparent 26%),
        radial-gradient(circle at 94% 88%, rgba(41, 121, 255, 0.06), transparent 28%),
        linear-gradient(180deg, #f9fbff 0%, #f6f8fc 100%);
}

.case-studies-section .case-study {
    position: relative;
    background: linear-gradient(170deg, #fff 0%, #fffdfc 100%);
    border: 1px solid rgba(255, 87, 64, 0.16);
    padding: 2.3rem;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(23, 37, 74, 0.08);
    margin-bottom: 1.4rem;
    overflow: hidden;
}

.case-studies-section .case-study::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1rem;
    bottom: 1.1rem;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff6b35 0%, #ff8a65 100%);
}

.case-studies-section .case-study::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    right: -90px;
    top: -95px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 138, 101, 0.2) 0%, rgba(255, 138, 101, 0) 70%);
    pointer-events: none;
}

.case-label {
    display: inline-block;
    background: #FFF3F0;
    color: #FF5740;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.case-studies-section .case-label {
    padding: 0.34rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 87, 64, 0.22);
    background: linear-gradient(180deg, #fff8f5 0%, #ffece6 100%);
}

.case-study h4 {
    color: #1a1a1a;
    margin: 1.2rem 0 0.6rem;
}

.case-study {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.case-study:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

.case-study h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.case-studies-section .case-study h3 {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 0.9rem;
}

.case-studies-section .case-study h4 {
    display: inline-flex;
    align-items: center;
    margin: 1.15rem 0 0.4rem;
    padding: 0.34rem 0.75rem;
    border-radius: 999px;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    color: #1e3c72;
    background: rgba(45, 92, 255, 0.08);
    border: 1px solid rgba(45, 92, 255, 0.16);
}

.case-studies-section .features {
    margin: 1rem 0 0.2rem;
}

.case-studies-section .case-study h4 + .features {
    margin-top: 0;
}

.case-studies-section .case-study h4 + p {
    margin-top: 0;
}

.case-studies-section .case-study h3 + h4 {
    margin-top: 0.9rem;
}

.case-studies-section .case-study p + h4,
.case-studies-section .case-study .features + h4 {
    margin-top: 1.25rem;
}

.case-studies-section .features li {
    color: #4a5568;
}

.case-why-block {
    margin-top: 2.5rem;
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 87, 64, 0.18);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 87, 64, 0.11), rgba(255, 87, 64, 0) 44%),
        linear-gradient(165deg, #ffffff 0%, #fff8f4 100%);
}

.case-why-title {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.case-why-grid {
    margin-top: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.case-why-grid .value-card {
    text-align: left;
    padding: 1.4rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(26, 26, 26, 0.07);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
    background: #fff;
}

.case-why-grid .value-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: #1e3c72;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.case-why-grid .value-card h3::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5740;
    flex-shrink: 0;
}

.case-why-grid .value-card p {
    color: #4b5563;
    margin: 0;
}

.case-logo {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Features List - page-specific override */
.features {
    margin: 1rem 0;
}

/* Testimonial */
.testimonial {
    background: #fafafa;
    padding: 1.5rem;
    border-left: 4px solid #FF5740;
    margin: 1rem 0;
    font-style: italic;
}

/* Page-specific btn override */
.btn {
    margin-top: 1rem;
}

/* Secondary frost button - for use on coloured/dark backgrounds */
.btn-secondary {
    position: relative;
    display: inline-block;
    padding: 14px 35px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    margin-top: 1rem;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15));
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Reward Box */
.reward-box {
    background: linear-gradient(135deg, #FF5740 0%, #FF8A65 100%);
    color: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
}

.reward-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.reward-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.reward-item {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 8px;
}

/* Policy Section */
.policy-section {
    max-width: 900px;
    margin: 0 auto;
}

.policy-section h3 {
    color: #1a1a1a;
    margin: 2rem 0 1rem;
}

.policy-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Bottom CTA with background image */
.bottom-cta {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    position: relative;
    text-align: center;
}

.bottom-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65));
    z-index: 1;
}

.bottom-cta .container {
    position: relative;
    z-index: 2;
}

.bottom-cta h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.bottom-cta p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1rem;
}

/* ==========================================================================
   Responsive - Page-specific
   ========================================================================== */

@media (max-width: 1080px) {
    .trust-row {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 768px) {
    /* Bottom CTA */
    .bottom-cta {
        padding: 60px 0;
    }

    .bottom-cta h2 {
        font-size: 1.6rem;
    }

    /* Cards */
    .reward-box {
        padding: 2rem 1.5rem;
    }

    .reward-box h3 {
        font-size: 1.5rem;
    }

    .case-study {
        padding: 1.8rem;
    }

    .case-studies-section .case-study {
        padding: 1.5rem;
    }

    .case-studies-section .case-study h3 {
        font-size: 1.35rem;
    }

    .case-studies-section .case-study h4 {
        font-size: 0.8rem;
        padding: 0.28rem 0.62rem;
    }

    .case-why-block {
        margin-top: 2rem;
        padding: 1.3rem;
    }

    .case-why-title {
        text-align: center;
        font-size: 1.55rem;
        margin-bottom: 0.8rem;
    }

    .case-why-grid {
        margin-top: 0.7rem;
    }

    .case-why-grid .value-card {
        text-align: center;
        padding: 1.2rem 1rem;
    }

    .case-why-grid .value-card h3 {
        justify-content: center;
    }

    .trust-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .trust-row-head {
        padding: 0.9rem;
    }

    .trust-row-head h3 {
        font-size: 1.02rem;
    }
}

@media (max-width: 520px) {
    .trust-row-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-logo-card {
        min-height: 150px;
        padding: 0.7rem 0.55rem;
    }

    .trust-logo-card img {
        max-width: 72px;
        height: 72px;
    }

    .trust-logo-card span {
        font-size: 0.76rem;
    }
}

@media (max-width: 380px) {
    .trust-row-logos {
        grid-template-columns: 1fr;
    }
}
