/* =========================
   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, main, 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;
}
html {
    line-height: 1.5;
    font-size: 16px;
    scroll-behavior: smooth;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section {
    display: block;
}
body {
    background: #FAF9F6;
    color: #222;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-weight: 400;
    min-height: 100vh;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: #216869;
    text-decoration: underline;
    transition: color 0.2s;
    outline: none;
}
a:focus,
a:hover {
    color: #14504d;
    text-decoration: none;
}
ul, ol {
    padding-left: 1.2em;
}
[role="button"], button, .btn-primary, .mobile-menu-toggle, .mobile-menu-close {
    cursor: pointer;
}
:focus {
    outline: 2px solid #FFB547;
    outline-offset: 1px;
}

/* =========================
   BRAND COLORS & FONTS
========================== */
:root {
    --color-primary: #216869;
    --color-primary-dark: #1A4D4D;
    --color-accent: #FFB547;
    --color-bg: #F4F4F9;
    --color-bg-alt: #FAF9F6;
    --color-section: #F0ECE6;
    --color-card: #FFFFFF;
    --color-text: #20423B;
    --color-text-dark: #21332f;
    --color-heading: #183247;
    --color-success: #4E885A;
    --color-shadow: rgba(41,58,35,0.07);
    --font-display: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
    --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
    --radius-card: 18px;
    --radius-btn: 28px;
    --radius-img: 14px;
    --shadow-card: 0 4px 20px var(--color-shadow);
    --shadow-btn: 0 2px 8px rgba(34, 68, 54, 0.07);
}

@media (max-width: 480px) {
    html { font-size: 15px; }
}


/* =========================
         TYPOGRAPHY
========================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    font-family: var(--font-display);
    letter-spacing: 0.01em;
    font-weight: 700;
    margin-bottom: 12px;
}
h1 {
    font-size: 2.4rem;
    line-height: 1.14;
    margin-bottom: 20px;
}
h2 {
    font-size: 1.8rem;
    line-height: 1.22;
    margin-bottom: 18px;
}
h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
h4 {
    font-size: 1rem;
}
h5, h6 {
    font-size: 0.92rem;
}

p, ul, ol, blockquote, cite, li {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 1em;
    line-height: 1.7;
}
.small, small {
    font-size: 0.92em;
    color: #647160;
}
blockquote {
    border-left: 5px solid var(--color-accent);
    padding-left: 18px;
    font-style: italic;
    background: #FFFAEE;
    margin-bottom: 8px;
}
cite {
    font-size: 0.96em;
    color: #5F776B;
    display: block;
    margin-top: 4px;
}

.text-section, .text-image-section {
    font-family: var(--font-body);
    color: var(--color-text-dark);
}


/* =====================================
      LAYOUT: CONTAINER & SECTIONS
====================================== */
.container {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: var(--color-section);
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(41, 58, 35, 0.03);
}
section:last-of-type {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    section {
        padding: 24px 5px 32px 5px;
        margin-bottom: 36px;
        border-radius: 14px;
    }
}

/* SECTION ALTERNATION for organic feel */
section:nth-child(even) {
    background: var(--color-bg-alt);
}


/* ==========================
       HEADER & NAVIGATION
========================== */
header {
    background: var(--color-card);
    box-shadow: 0 2px 10px rgba(33, 104, 105, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}
header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 18px;
}
.logo img {
    height: 42px;
    border-radius: 10px;
    margin-right: 6px;
}
.main-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}
.main-nav a {
    font-family: var(--font-display);
    font-weight: 500;
    padding: 3px 2px 5px 2px;
    font-size: 1.06rem;
    color: var(--color-primary-dark);
    text-decoration: none;
    background: transparent;
    border-radius: 6px;
    transition: color 0.18s, background 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
    background: #ECF3E7;
    color: var(--color-primary);
}
.main-nav .btn-primary {
    margin-left: 14px;
}

.mobile-menu-toggle {
    display: none;
    background: var(--color-accent);
    border: none;
    color: var(--color-primary-dark);
    font-size: 2rem;
    border-radius: var(--radius-btn);
    padding: 5px 13px 3px 13px;
    margin-left: 8px;
    box-shadow: var(--shadow-btn);
    transition: background 0.2s, color 0.2s;
    z-index: 101;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
    background: #FFD179;
    color: var(--color-primary);
}


/* MOBILE MENU OVERLAY */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(33,104,105,0.95);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.61,.05,.22,.9);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 38px 28px 28px 28px;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-close {
    align-self: flex-end;
    font-size: 2.2rem;
    color: #fff;
    background: none;
    border: none;
    margin-bottom: 32px;
    padding: 3px 12px;
    line-height: 1;
    border-radius: var(--radius-btn);
    transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
    background: #144038;
    color: var(--color-accent);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
}
.mobile-nav a {
    font-family: var(--font-display);
    font-size: 1.19rem;
    color: #fff;
    text-decoration: none;
    line-height: 1.9;
    padding: 8px 3px;
    border-radius: 8px;
    transition: background 0.18s, color 0.15s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
}


/* ==========================
         HERO / CTA
========================== */
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    background: transparent;
}
.content-wrapper > h1, .content-wrapper > h2,
.content-wrapper > p {
    margin-bottom: 0;
}
@media (max-width: 500px) {
    .content-wrapper {
        gap: 16px;
    }
}

/* ==========================
         BUTTONS
========================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7em 2em;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    font-size: 1.05rem;
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-btn);
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 4px;
    transition: background 0.16s, box-shadow 0.22s, color 0.16s, transform 0.18s;
    will-change: background, color, box-shadow, transform;
}
.btn-primary:focus,
.btn-primary:hover {
    background: #1A4D4D;
    color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(33,104,105,0.10);
    transform: translateY(-1px) scale(1.03);
}


/* ==========================
         FLEX LAYOUTS
========================== */
.features-grid, .services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 8px;
}
.features-grid > div, .services-list > div {
    background: var(--color-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    flex: 1 1 272px;
    min-width: 240px;
    max-width: 340px;
    margin-bottom: 20px;
    padding: 28px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    transition: box-shadow 0.18s, transform 0.18s;
    z-index: 1;
}
.features-grid > div:hover,
.services-list > div:hover {
    box-shadow: 0 8px 32px rgba(33,104,105,0.14);
    transform: translateY(-4px) scale(1.03);
}
.features-grid img,
.features-grid svg,
.team-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    background: #EFFBF3;
    border-radius: 100%;
    padding: 7px;
    box-shadow: 0 2px 6px rgba(34,104,105,0.06);
    object-fit: contain;
}

@media (max-width: 1020px) {
    .features-grid, .services-list {
        flex-wrap: wrap;
        gap: 20px;
    }
    .features-grid > div, .services-list > div {
        min-width: 160px;
        max-width: 100%;
        flex: 1 1 330px;
    }
}
@media (max-width: 768px) {
    .features-grid, .services-list {
        flex-direction: column;
        gap: 20px;
    }
}

/* SPACING CLASSES */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    background: var(--color-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    position: relative;
    padding: 28px 22px 20px 22px;
}
.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: 20px;
    }
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

/* ========================
      TESTIMONIAL CARDS
======================== */
.testimonial-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: 0 4px 18px rgba(41, 80, 46, 0.09);
    border-left: 7px solid var(--color-primary);
    padding: 20px 32px 22px 24px;
    margin-bottom: 28px;
    color: var(--color-text-dark);
    transition: box-shadow 0.12s, transform 0.15s;
}
.testimonial-card blockquote {
    border: none;
    background: transparent;
    font-style: italic;
    font-size: 1.02rem;
    color: var(--color-text-dark);
    margin: 0 0 5px 0;
    padding: 0;
}
.testimonial-card cite {
    font-size: 0.98rem;
    color: #777;
    margin: 0;
}
.testimonial-card:hover {
    box-shadow: 0 8px 34px rgba(41, 80, 46, 0.13);
    transform: translateY(-2px) scale(1.01);
}
@media (max-width: 700px) {
    .testimonial-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 12px 18px 14px;
    }
}

/* ========================
      SERVICES PRICING
======================== */
.service-price {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.06em;
    margin-bottom: 0;
    margin-top: 2px;
}

/* ========================
       TEXT SECTIONS
======================== */
.text-section {
    margin-top: 14px;
    margin-bottom: 16px;
}
.text-section ul, .text-section ol {
    margin-left: 1em;
    margin-bottom: 1em;
}
.text-section li {
    margin-bottom: 4px;
}


/* =========================
           FOOTER
========================== */
footer {
    background: var(--color-card);
    border-top: 2px solid #EAEEE6;
    margin-top: 38px;
    padding: 0;
}
footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 38px 24px 24px 24px;
}
.footer-brand img {
    height: 48px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.footer-links {
    display: flex;
    flex-direction: row;
    gap: 36px;
}
.footer-links nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: var(--color-primary-dark);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.16s;
}
.footer-links a:hover,
.footer-links a:focus {
    color: var(--color-accent);
    text-decoration: underline;
}
.footer-info {
    font-size: 0.98em;
    color: #607064;
}
.footer-info a {
    color: var(--color-primary);
    text-decoration: underline;
}
@media (max-width: 900px) {
    footer .container {
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
        padding: 26px 10px 18px 10px;
    }
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}


/* =======================================
       NATURAL/ORGANIC VISUALS
======================================== */
section, .card, .testimonial-card, .features-grid > div, .services-list > div {
    border-radius: 22px 38px 21px 25px/27px 22px 31px 35px;
    /* Organic natural shape */
    box-shadow: var(--shadow-card);
}

/* Subtle leaf-shaped pseudo-elements for hero/sections */
section::after {
    content: '';
    display: block;
    position: absolute;
    top: -46px;
    right: -48px;
    width: 102px;
    height: 62px;
    background: radial-gradient(circle at 60% 40%, #E4EDDF 85%, transparent 100%);
    opacity: 0.14;
    z-index: 0;
    border-radius: 49% 82% 63% 100%/100% 95% 59% 95%;
    pointer-events: none;
}
@media (max-width:600px){
    section::after {
        display:none;
    }
}


/* =============================
          RESPONSIVENESS
============================= */
@media (max-width: 700px) {
    h1 { font-size: 1.6rem;}
    h2 { font-size: 1.28rem;}
    h3 { font-size: 1.02rem;}
}
@media (max-width: 480px) {
    .container {
        padding-left: 6px;
        padding-right: 6px;
    }
    section {
        padding: 16px 3px;
        margin-bottom: 22px;
    }
}


/* ===============================
      COOKIE CONSENT BANNER
=============================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0; right:0;
    width: 100%;
    padding: 20px 16px 16px 16px;
    background: #fff8e1;
    box-shadow: 0 -2px 16px rgba(41,80,46,0.11);
    border-top: 3px solid var(--color-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    font-family: var(--font-body);
    opacity: 1;
    transition: opacity 0.25s;
}
.cookie-banner.hide { opacity: 0; pointer-events: none; }
.cookie-banner p {
    color: #2A3633;
    font-size: 1.01rem;
    margin-bottom: 0;
}
.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.cookie-btn {
    font-family: var(--font-display);
    border: none;
    border-radius: 24px;
    padding: 8px 22px;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 0;
    background: var(--color-primary);
    color: #fff;
    transition: background 0.16s, color 0.16s, box-shadow 0.21s;
    box-shadow: 0 2px 8px rgba(33, 104, 105, 0.05);
}
.cookie-btn.reject {
    background: #F4F4F9;
    color: #184F42;
    border: 1px solid #D1EAD2;
}
.cookie-btn.settings {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}
.cookie-btn:focus,
.cookie-btn:hover {
    background: #FFD179;
    color: var(--color-primary-dark);
}
@media (max-width:450px){
    .cookie-actions { flex-direction: column; gap: 10px; }
    .cookie-banner { font-size: 0.97rem; }
}

/* Cookie modal overlay */
.cookie-modal-overlay {
    position: fixed;
    left: 0;top:0;right:0;bottom:0;
    background: rgba(34,72,65,0.28);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s;
}
.cookie-modal-overlay.open { opacity: 1; pointer-events: all; }
.cookie-modal {
    background: #fff;
    min-width: 320px;
    max-width: 93vw;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 6px 38px rgba(33,104,105,0.19);
    padding: 36px 28px 24px 28px;
    margin-bottom: 0;
    font-family: var(--font-body);
    animation: slideUp .28s cubic-bezier(.71,1.6,.4,1) 1;
}
@keyframes slideUp { from{ transform: translateY(100px);} to{ transform: none;}}
.cookie-modal h2 {
    font-size: 1.18rem;
    margin-bottom: 18px;
    color: var(--color-primary);
}
.cookie-modal label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 12px;
    gap: 10px;
}
.cookie-switch {
    appearance: none;
    width: 38px; height: 20px;
    background: #C8DCBC;
    border-radius: 12px;
    position: relative;
    outline: none; margin-right: 5px;
    transition: background 0.16s;
    cursor: pointer;
}
.cookie-switch:checked { background: var(--color-primary); }
.cookie-switch::before {
    content: '';
    position: absolute;
    left: 3px; top: 3px;
    width: 14px; height: 14px;
    border-radius: 100%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.16s;
}
.cookie-switch:checked::before { transform: translateX(18px); }
.cookie-modal .btn-primary {
    margin-top: 12px;
    width: 100%;
    padding: 10px;
}
.cookie-modal .close-btn {
    position: absolute;
    right: 16px; top: 10px;
    font-size: 1.7rem;
    background: none;
    border: none;
    color: var(--color-accent);
    cursor:pointer;
    padding: 4px;
}
.cookie-modal .close-btn:hover,
.cookie-modal .close-btn:focus {
    color: var(--color-primary-dark);
}
@media (max-width:500px){
    .cookie-modal {
        padding: 22px 7vw 18px 7vw;
        min-width: 200px;
    }
}

/* ============================== 
      MICRO-INTERACTIONS 
============================== */
.card, .features-grid > div, .services-list > div, .testimonial-card {
    transition: box-shadow 0.16s, transform 0.16s;
}
.card:hover,
.features-grid > div:hover,
.services-list > div:hover,
.testimonial-card:hover {
    box-shadow: 0 8px 44px rgba(33,104,105,0.18);
    transform: translateY(-4px) scale(1.015);
}

.btn-primary, .cookie-btn {
    transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.18s;
}
.btn-primary:active, .cookie-btn:active {
    transform: scale(0.98);
}


/* ========================
 ORGANIC/NATURE EFFECTS 
======================== */
.features-grid > div, .testimonial-card {
    /* Natural border radius for organic feel */
    border-radius: 44px 18px 40px 27px/31px 38px 27px 49px;
}

/* Textures (very subtle) */
section {
    background-image: url('data:image/svg+xml;utf8,<svg fill="none" xmlns="http://www.w3.org/2000/svg" width="320" height="120"><ellipse fill="%23D3E6C2" opacity="0.02" cx="88" cy="80" rx="140" ry="32"/><ellipse fill="%23A3C984" opacity="0.01" cx="181" cy="26" rx="94" ry="16"/></svg>');
    background-repeat: no-repeat;
    background-position: right 24px bottom 30px, left 16px top 12px;
}

/* KEY SPACING */
.card-container, .content-grid, .text-image-section {
    gap: 24px;
    margin-bottom: 8px;
}
.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===============
    ACCESSIBILITY
================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ===============
   OTHER ELEMENTS
================= */
input, textarea, select {
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 13px;
    border: 1px solid #C9D6C3;
    padding: 10px 13px;
    margin-bottom: 8px;
    width: 100%;
    background: #F7FAF4;
    color: #183247;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--color-accent);
    outline: 1.5px solid var(--color-accent);
    background: #fffce9;
}
label {
    font-family: var(--font-display);
    color: #395C4D;
    font-size: 1em;
    margin-bottom: 2px;
}

/* Hide scrollbars for menu on mobile overlay */
.mobile-menu, .cookie-modal {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mobile-menu::-webkit-scrollbar, .cookie-modal::-webkit-scrollbar {
    display: none;
}

/* =============================
   Z-INDEX LAYERING PRIORITIES
============================= */
header   { z-index: 50; }
footer   { z-index: 20; }
section  { z-index: 10; }
.mobile-menu { z-index: 200; }
.cookie-banner, .cookie-modal-overlay { z-index: 9999; }

/* =============================
    CLARIFY BUTTON VISIBILITY
============================= */
.btn-primary, .cookie-btn {
    box-shadow: 0 2px 10px rgba(255,181,71,0.09), 0 1.5px 4px rgba(33,104,105,0.11);
}

/* Ensure buttons and links stand out on all backgrounds */
.btn-primary, .main-nav .btn-primary, .mobile-nav .btn-primary, .cookie-btn {
    border: none;
    text-shadow: none;
}

/* =============================
    NON-DESTRUCTIVE EXTRAS
============================= */
/* Responsive spacing for all content rows */
@media (max-width:600px) {
    .features-grid > div, .services-list > div, .card {
        padding: 14px 8px 13px 8px;
    }
}

/* ========== END OF CSS ========== */
