/* 
 Theme Name:   eco-child
 Theme URI:    
 Description:  
 Author:       
 Author URI:   
 Template:     eco-solar-power
 Version:      1.0

 /* == Add your own styles below this line ==
--------------------------------------------*/

:root {
    --body-bg-color: #faf5ff;
    --body-bg-gradient1: #faf5ff;
    --body-bg-gradient2: #e2e8f0;
    --body-text-color: #1f1b2e;
    --heading-color: #3b743e;
    --hero-gradient1: #3b743e;
    --hero-gradient2: #6fdb75;
    --footer-bg-color: #3b743e;
    --footer-bg-gradient1: #3b743e;
    --footer-bg-gradient2: #0f172a;
    --link-color: #6fdb75;
    --link-text-color: #1a1a1a;
    --footer-link-color: #dbf6dd;
    --box-color: #6fdb75;
    --box-text-color: #1a1a1a;
    --header-bg-color: #ffffff;
    --font-family: Cambria, Georgia, serif;
    --nav-link-color: #000000;
    --footer-text-color: #ffffff;
    --header-text-color: #ffffff;
}

html {
    overflow-x: hidden;
}

body {
    background-color: var(--body-bg-color);
    color: var(--body-text-color) !important;
    font-family: var(--font-family);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;

}


h1 {
    font-size: clamp(2rem, 4vw, 2.5rem) !important;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2rem) !important;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 1.7rem) !important;
}

p {
    margin-bottom: 0.5rem !important;
}

section {
    padding: 15px 0;
    scroll-margin-top: 70px;
}

h2,
h3 {
    color: var(--heading-color) !important;
}

.content-area {
    margin-top: 1em;
    margin-bottom: 2em;
}

.content-area a {
    color: var(--link-color) !important;
    text-decoration: none !important;
}

.content-area a:hover {
    color: var(--link-color) !important;
    opacity: 0.8;
}



.content-area section {
    margin: 20px 0;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.content-area h2 {
    position: relative;
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid #3b743e;
    border-left: 6px solid #e8c547;
    border-radius: 0 12px 12px 0;
    background: linear-gradient(110deg, #244d28, #3b743e);
    color: #ffffff !important;
    box-shadow: 0 5px 0 rgba(36, 77, 40, 0.12);
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    text-wrap: balance;
}

.content-area h2::after {
    content: none;
}

.content-area .main-section-style-gradient h2 {
    background: #244d28;
    border-color: #244d28;
    border-left-color: #e8c547;
}

@media (max-width: 576px) {
    .content-area h2 {
        padding: 0.85rem 1rem;
        margin-bottom: 1.25rem;
        border-left-width: 5px;
    }
}


.main-section-style-accent-top {
    padding: 1.5rem;
    border-top: 4px solid var(--link-color);
    border-radius: 8px;
    background: color-mix(in srgb, var(--body-bg-color) 94%, var(--body-text-color));
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}


.main-section-style-gradient {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border: 1px solid rgba(232, 197, 71, 0.45);
    border-top: 5px solid #e8c547;
    border-radius: 16px;
    background:
        radial-gradient(ellipse at top right,
            rgba(111, 219, 117, 0.18),
            transparent 60%),
        repeating-linear-gradient(90deg,
            transparent 0 70px,
            rgba(255, 255, 255, 0.025) 70px 140px),
        linear-gradient(135deg, #173b20, #2e6335);
    color: var(--header-text-color);
    box-shadow:
        0 16px 36px rgba(23, 59, 32, 0.18),
        inset 0 0 0 7px rgba(255, 255, 255, 0.025);
}

/* Subtle football pitch markings */
.main-section-style-gradient::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 6px;
    pointer-events: none;
}

.main-section-style-gradient::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    right: -90px;
    width: 280px;
    height: 280px;
    border: 2px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.main-section-style-gradient :is(h2, h3, p, li) {
    color: var(--header-text-color) !important;
}

.main-section-style-gradient h3 {
    margin-top: 1.5rem;
    padding-left: 0.8rem;
    border-left: 3px solid #e8c547;
    line-height: 1.35;
}

.main-section-style-gradient p {
    line-height: 1.8;
}

.main-section-style-gradient strong {
    color: #ffe28a;
}

.content-area .main-section-style-gradient a {
    color: #ffe28a !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(255, 226, 138, 0.55) !important;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.content-area .main-section-style-gradient a:hover {
    color: #ffffff !important;
    text-decoration-color: currentColor !important;
    opacity: 1;
}

.main-section-style-gradient img {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

@media (max-width: 576px) {
    .main-section-style-gradient {
        border-radius: 12px;
    }

    .main-section-style-gradient::before {
        inset: 9px;
    }

    .main-section-style-gradient::after {
        right: -130px;
    }
}

.main-section-style-gradient h2,
.main-section-style-gradient h3,
.main-section-style-gradient p,
.main-section-style-gradient li,
.main-section-style-gradient a {
    color: var(--header-text-color) !important;
}

.main-section-style-gradient a {
    text-decoration: underline !important;
}


.main-section-style-h3-grid .main-section-h3-grid {
    margin-top: 1rem;
}

.main-section-style-h3-grid .box {
    position: relative;
    height: 100%;
    padding: 1.75rem 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(59, 116, 62, 0.25);
    border-top: 5px solid #3b743e;
    border-radius: 14px;
    background:
        radial-gradient(circle at top right,
            rgba(232, 197, 71, 0.2),
            transparent 65%),
        linear-gradient(145deg, #f5fbef, #e1f0da);
    box-shadow:
        0 8px 24px rgba(36, 77, 40, 0.09),
        inset 0 0 0 5px rgba(255, 255, 255, 0.4);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.main-section-style-h3-grid .box::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 1.5rem;
    width: 56px;
    height: 5px;
    background: #e8c547;
}

.main-section-style-h3-grid .box h3 {
    margin: 0 0 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(59, 116, 62, 0.2);
    color: #244d28 !important;
    font-weight: 700;
    line-height: 1.3;
}

.main-section-style-h3-grid .box p {
    color: #243528 !important;
    line-height: 1.75;
}

.content-area .main-section-style-h3-grid .box a {
    color: #285b2e !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.content-area .main-section-style-h3-grid .box a:hover {
    color: #173b20 !important;
    opacity: 1;
}

@media (hover: hover) {
    .main-section-style-h3-grid .box:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 30px rgba(36, 77, 40, 0.14);
    }
}

@media (max-width: 576px) {
    .main-section-style-h3-grid .box {
        padding: 1.35rem 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-section-style-h3-grid .box {
        transition: none;
        transform: none !important;
    }
}

.main-section-style-h3-grid .box,
.main-section-style-h3-grid .box :is(h2, h3, h4, h5, h6, p, li, span, strong, em, td, th, a) {
    color: var(--box-text-color, #ffffff) !important;
}

.main-section-style-h3-grid .box a {
    text-decoration: underline !important;
}

.main-section-style-h3-grid .box a:hover {
    color: var(--box-text-color, #ffffff) !important;
    opacity: 0.8;
}



.main-section-style-callout {
    padding: 1.25rem 1.5rem;
    border: 1px solid color-mix(in srgb, var(--link-color) 35%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--link-color) 8%, var(--body-bg-color));
}


.main-section-style-bordered {
    padding: 1.5rem;
    border: 1px solid color-mix(in srgb, var(--body-text-color) 24%, transparent);
    border-left: 5px solid var(--link-color);
    border-radius: 8px;
    background: color-mix(in srgb, var(--body-bg-color) 94%, #ffffff);
}


.h3-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.h3-cards .box {
    height: 100%;
    padding: 1.25rem;
    border: 1px solid color-mix(in srgb, var(--body-text-color) 14%, transparent);
    border-top: 4px solid var(--link-color);
    border-radius: 10px;
    background: color-mix(in srgb, var(--body-bg-color) 94%, var(--body-text-color));
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.h3-cards .box h3 {
    margin-top: 0;
}


.main-section-style-h3-list .main-section-h3-list {
    margin-top: 1rem;
}

.main-section-style-h3-list .box {
    padding: 1.35rem 1.5rem;
    border-radius: 8px;
    background: var(--box-color);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.main-section-style-h3-list .box h3 {
    margin-bottom: 0.65rem;
}

.main-section-style-h3-list .box,
.main-section-style-h3-list .box :is(h2, h3, h4, h5, h6, p, li, span, strong, em, td, th, a) {
    color: var(--box-text-color, #ffffff) !important;
}

.main-section-style-h3-list .box a {
    text-decoration: underline !important;
}

.main-section-style-h3-list .box a:hover {
    color: var(--box-text-color, #ffffff) !important;
    opacity: 0.8;
}

#inner-pages-header .header-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--footer-bg-color);
    left: 0;
    top: 0;
    background-image: url('/source/hero-bg.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

#inner-pages-header h1 {
    text-shadow: 5px 5px 2px #6FDB75;
}