/* === CSS RESET & NORMALIZE === */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1.5;
    background: #fff; 
}
ol, ul {
    list-style: none;
}
a {
    text-decoration: none;
    color: inherit;
}
img, picture {
    max-width: 100%;
    display: block;
}
button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    border: none;
    background: none;
}

/* === VARIABLES (with fallback) === */
:root {
    --primary: #217642;
    --secondary: #E0F7E7;
    --accent: #3097C8;
    --accent-dark: #175078;
    --white: #ffffff;
    --gray: #F4F7FA;
    --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
    --font-body: 'Roboto', Arial, Helvetica, sans-serif;
    --radius: 20px;
    --shadow: 0 6px 24px 0 rgba(32, 80, 120, 0.07);
    --transition: 0.2s cubic-bezier(.55,.01,.47,1.02);
}

body {
    font-family: var(--font-body), Arial, Helvetica, sans-serif;
    background: var(--gray);
    color: #222;
    min-height: 100vh;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--primary);
}
h1 {
    font-size: 2.5rem; 
    line-height: 1.15;
    margin-bottom: 16px;
}
h2 {
    font-size: 2rem;
    margin-bottom: 24px;
}
h3 {
    font-size: 1.375rem;
    margin-bottom: 14px;
}
h4 {
    font-size: 1.1rem;
    font-weight: 700;
}
.section h2 {
    margin-top: 0;
}
p, ul, ol, li, address {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #222;
}
strong {
    font-weight: 800;
}

.text-section p, .text-section ul {
    margin-bottom: 18px;
}

/* Typography scale for spacing */
.text-section h2 {
    margin-top: 40px;
    margin-bottom: 18px;
}
.text-section ul {
    margin-left: 0;
    padding-left: 22px;
    list-style: disc outside;
}
.text-section ul li {
    margin-bottom: 6px;
}

/* === MAIN CONTAINER === */
.container {
    width: 100%;
    margin: 0 auto;
    max-width: 1100px;
    padding-left: 16px;
    padding-right: 16px;
}

.content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}

.text-section {
    max-width: 800px;
}

/* === HEADER & NAV === */
header {
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 13px rgba(33,118,66,0.06);
    position: relative;
    z-index: 12;
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 18px 0 18px 0;
    width: 100%;
}
.logo {
    margin-right: 26px;
    display: flex;
    align-items: center;
}
nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}
nav ul li {
    margin-bottom: 0;
    display: flex;
    align-items: center;
}
nav ul li a {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
    padding: 7px 14px;
    border-radius: 12px;
    transition: background var(--transition), color var(--transition);
}
nav ul li a:hover, nav ul li a:focus {
    background: var(--accent);
    color: var(--white);
}

.cta-btn {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.16rem;
    padding: 11px 28px;
    border-radius: 28px;
    background: var(--primary);
    color: var(--white) !important;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px 0 rgba(33,118,66,0.08);
    border: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
    display: inline-block;
    margin-left: 30px;
    margin-bottom: 0;
}
.cta-btn:hover, .cta-btn:focus {
    background: var(--accent-dark);
    color: var(--secondary) !important;
    box-shadow: 0 8px 28px 0 rgba(33,118,66,0.13);
}

@media (max-width: 1050px) {
  nav ul {
    gap: 14px;
  }
  .cta-btn { margin-left: 20px; }
}

/* === MOBILE BURGER MENU === */
.mobile-menu-toggle {
    display: none;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 2.2rem;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 120;
    margin-left: 12px;
    transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
    background: var(--accent-dark);
    color: var(--secondary);
}
.mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: var(--white);
    box-shadow: 0 0 66px rgba(20,80,60,0.18);
    z-index: 1199;
    padding: 18px 28px 28px 28px;
    transform: translateX(-100vw);
    opacity: 0;
    transition: transform .22s cubic-bezier(.75,.15,.74,1.13), opacity .17s cubic-bezier(.75,.15,.74,1.13);
}
.mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
}
.mobile-menu-close {
    color: var(--primary);
    background: var(--secondary);
    font-size: 2.1rem;
    font-family: var(--font-display);
    width: 52px;
    height: 52px;
    border-radius: 32px;
    border: none;
    align-items: center;
    justify-content: center;
    display: flex;
    margin-left: auto;
    margin-bottom: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(33,118,66,0.10);
    transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
    background: var(--accent);
    color: var(--white);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
.mobile-nav a {
    font-size: 1.35rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--primary);
    padding: 16px 6px;
    border-radius: 12px;
    text-align: left;
    transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
    background: var(--primary);
    color: var(--white);
}
@media (max-width: 950px) {
    .mobile-menu-toggle {
        display: flex;
    }
    nav ul, nav .cta-btn {
        display: none;
    }
}

/* === LAYOUT SECTIONS, SPACING & FLEX === */
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    margin-bottom: 20px;
    position: relative;
    background: var(--secondary);
    border-radius: 18px;
    box-shadow: 0 3px 14px 0 rgba(20,85,52,0.08);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    min-width: 260px;
    flex: 1 1 260px;
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
    box-shadow: 0 9px 26px 0 rgba(20,85,52,0.19);
    transform: translateY(-8px) scale(1.025);
    z-index: 1;
}
.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .text-image-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}

/* Feature Items & Feature Grid */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
}
.feature-grid li {
    background: var(--secondary);
    border-radius: 16px;
    box-shadow: 0 3px 16px 0 rgba(32,92,68,0.06);
    flex: 1 1 200px;
    padding: 32px 22px 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    min-width: 220px;
    max-width: 300px;
    margin-bottom: 20px;
    transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid li:hover, .feature-grid li:focus-within {
    box-shadow: 0 8px 28px 0 rgba(32,118,66,0.10);
    transform: translateY(-6px) scale(1.025);
    z-index: 1;
}
.feature-grid img {
    width: 56px;
    height: 56px;
}
.feature-grid h3 {
    color: var(--primary);
    font-size: 1.225rem;
    margin-bottom: 7px;
    margin-top: 0;
    text-align: center;
}
.feature-grid p {
    text-align: center;
    color: #2C4137;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

/* === SERVICES / PRICING === */
.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 30px;
    align-items: stretch;
}
.service-list li {
    background: var(--secondary);
    border-radius: 15px;
    box-shadow: 0 2px 8px 0 rgba(32,92,68,0.06);
    flex: 1 1 230px;
    min-width: 210px;
    padding: 28px 22px 21px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    transition: box-shadow .18s, transform .18s;
}
.service-list li:hover {
    box-shadow: 0 7px 22px 0 rgba(49,151,200,0.13);
    transform: translateY(-7px) scale(1.020);
}
.service-list li strong {
    font-size: 1.05rem;
    color: var(--primary);
}
.service-list li span {
    font-size: 1rem;
    font-family: var(--font-display);
    color: var(--accent-dark);
    background: #E8F4FB;
    border-radius: 10px;
    padding: 4px 11px;
    margin-bottom: 7px;
    letter-spacing: 0.5px;
}

/* === ARTICLES (used in articles-list, etc) === */
.articles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.article-teaser {
    background: var(--secondary);
    border-radius: 16px;
    box-shadow: 0 2px 10px 0 rgba(49,151,200,.07);
    padding: 24px 20px;
    flex: 1 1 220px;
    min-width: 200px;
    max-width: 320px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    transition: box-shadow .18s, transform .18s;
}
.article-teaser:hover, .article-teaser:focus-within {
    box-shadow: 0 7px 20px 0 rgba(49,151,200,.16);
    transform: translateY(-6px) scale(1.016);
    z-index: 1;
}
.article-teaser h3 {
    font-family: var(--font-display);
    font-size: 1.17rem;
    color: var(--primary);
    margin-bottom: 5px;
}
.article-teaser p {
    font-size: 1.02rem;
    color: #334A45;
}
.category {
    font-size: .97rem;
    font-family: var(--font-display);
    color: var(--accent);
    background: #E8F4FB;
    border-radius: 8px;
    padding: 3px 10px;
    font-weight: 800;
    margin-top: 7px;
    display: inline-block;
}

/* === TESTIMONIALS === */
.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 26px 32px 22px 32px;
    margin-bottom: 20px;
    background: #F9FCFA;
    border-radius: 24px;
    box-shadow: 0 4px 18px 0 rgba(33,118,66,0.05);
    border:2px solid #E0F7E7;
    max-width: 700px;
    align-self: center;
}
.testimonial-card p {
    color: #175078;
    font-size: 1.23rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}
.testimonial-card span {
    font-size: 1.06rem;
    color: var(--primary);
    opacity:.92;
    font-weight: 500;
    font-family: var(--font-body);
    text-align: center;
}

/* === FOOTER === */
footer {
    margin-top: 40px;
    background: var(--primary);
    color: var(--white);
    padding-top: 0;
}
footer section {
    background: transparent;
    padding: 28px 20px 13px 20px;
    margin-bottom: 0;
}
footer .content-wrapper {
    gap: 18px;
    align-items: flex-start;
}
footer nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 0;
    margin-bottom: 16px;
    color: var(--white);
}
footer nav a {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 7px;
    transition: background .14s;
}
footer nav a:hover, footer nav a:focus {
    background: var(--accent-dark);
    color: var(--secondary);
}
address {
    font-size: 1.03rem;
    color: #E0F7E7;
    font-style: normal;
    margin-bottom: 14px;
    display: block;
    line-height: 1.6;
}
address a {
    color: var(--accent);
    text-decoration: underline;
}
.social-links {
    display: flex;
    gap: 22px;
    align-items: center;
    margin-top: 7px;
}
.social-links a {
    display: flex;
    border-radius: 8px;
    background: #e0f7e7;
    padding: 8px;
    transition: background var(--transition);
}
.social-links a:hover, .social-links a:focus {
    background: var(--accent-dark);
}
.social-links a img {
    width: 28px;
    height: 28px;
}

/* === COOKIES BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    color: #175078;
    box-shadow: 0 -4px 32px 0 rgba(33,118,66,0.06);
    z-index: 99999;
    width: 100vw;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 22px 12px 20px 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(80px);
    transition: opacity .22s cubic-bezier(.75,.15,.74,1.13), transform .23s;
}
.cookie-banner.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.cookie-banner .cookie-text {
    font-size: 1.1rem;
    color: var(--accent-dark);
    max-width: 540px;
}
.cookie-banner .cookie-controls {
    display: flex;
    flex-direction: row;
    gap: 16px;
}
.cookie-btn {
    padding: 10px 20px;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 900;
    border-radius: 23px;
    background: var(--primary);
    color: var(--white);
    margin-right: 0;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(49,151,200,.09);
    transition: background-color var(--transition), color var(--transition);
}
.cookie-btn.settings {
    background: var(--accent);
}
.cookie-btn.reject {
    background: #ed6170;
}
.cookie-btn:hover, .cookie-btn:focus {
    background: var(--accent-dark);
    color: var(--secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
    background: var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
    background: #b72839;
}

/* Cookie Modal */
.cookie-modal-overlay {
    position: fixed;
    z-index: 999999;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(30,60,50,0.40);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity .21s cubic-bezier(.85,.25,.94,1.18);
}
.cookie-modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
    align-items: center;
}
.cookie-modal {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 12px 38px 0 rgba(49,151,200,.13);
    min-width: 320px;
    max-width: 485px;
    width: 92vw;
    padding: 34px 22px 29px 22px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
    animation: cookie-modal-in .34s linear forwards;
}
@keyframes cookie-modal-in {
  0% { opacity:0; transform: translateY(64px) scale(.94); }
  55% { opacity: .95; transform: translateY(-18px) scale(1.02); }
  100% { opacity:1; transform: translateY(0) scale(1); }
}
.cookie-modal-close {
    position: absolute;
    top: 20px;
    right: 22px;
    background: var(--accent-dark);
    color: var(--white);
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center; 
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background .16s;
    z-index: 2;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
    background: var(--primary);
}
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cookie-category {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 8px 0;
    font-size: 1.09rem;
    font-family: var(--font-body);
    color: var(--primary);
    font-weight: 500;
}
.cookie-category .toggle {
    position: relative;
    width: 46px;
    height: 24px;
    background: var(--gray);
    border-radius: 15px;
    cursor: pointer;
    margin-left: 15px;
}
.cookie-category .toggle input[type=checkbox] {
    display: none;
}
.cookie-category .toggle .slider {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 20px; height: 20px;
    background: var(--accent-dark);
    border-radius: 50%;
    transition: left .18s cubic-bezier(.79,.1,.78,1.12), background .18s;
}
.cookie-category .toggle input[type=checkbox]:checked + .slider {
    left: 24px;
    background: var(--primary);
}
.cookie-category.essential .toggle {
    opacity: .7;
    pointer-events: none;
}
.cookie-modal-actionbar {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 22px;
}

/* === GENERAL RESPONSIVE === */
@media (max-width: 1120px) {
    .container {
        max-width: 97vw;
    }
    .feature-grid li, .article-teaser, .card {
        min-width: 175px;
        max-width: 100%;
    }
}
@media (max-width: 900px) {
    nav { flex-direction: row; gap: 13px; }
    .feature-grid, .articles-list, .service-list, .card-container {
        flex-direction: column;
        align-items: stretch;
    }
    .content-grid {
        flex-direction: column;
        gap: 24px !important;
    }
}
@media (max-width: 650px) {
    .container {
        padding-left: 9px;
        padding-right: 9px;
    }
    .feature-grid li, .article-teaser, .card {
        padding: 18px 11px !important;
    }
    .card, .feature-grid li, .article-teaser, .service-list li {
        min-width: unset;
        max-width: 100%;
    }
    .section {
        padding: 18px 3px;
        margin-bottom: 38px;
    }
    .testimonial-card {
        padding: 18px 7px 14px 7px;
    }
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 13px 6px 13px 6px;
    }
    .cookie-banner .cookie-controls {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* === MICRO INTERACTIONS & UTILITIES === */
[tabindex]:focus, a:focus, button:focus {
    outline: 2px solid var(--accent-dark);
    outline-offset: 1.5px;
}

::-webkit-scrollbar {
  width: 12px; background: #f0f0f0;
}
::-webkit-scrollbar-thumb {
  background: var(--secondary); border-radius: 7px;
}

/* === GEOMETRIC DECORATIVE SHAPES === */
@media (min-width: 900px) {
    .feature-grid li, .card, .testimonial-card {
        position: relative;
    }
    .feature-grid li::before, .card::before, .testimonial-card::before {
        content: "";
        position: absolute;
        top: -14px; left: -14px;
        width: 42px; height: 42px;
        background: var(--accent);
        border-radius: 18px 0 32px 0;
        opacity: 0.13;
        z-index: 0;
        pointer-events: none;
        transition: opacity .19s;
    }
    .card:hover::before, .feature-grid li:hover::before, .testimonial-card:hover::before {
        opacity: 0.20;
    }
}

