/* ========================================================== */
/*              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.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #F7F7F4;
    color: #283029;
}
a {
    text-decoration: none;
    color: inherit;
    transition: color .2s;
}
ul { list-style: disc inside; }
li { margin-bottom: 8px; }
img {
    display: block;
    max-width: 100%;
}
button {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    outline: none;
}
:focus {
    outline: 2px solid #31643B;
    outline-offset: 1px;
}

/* ========================================================== */
/*                  TYPOGRAPHY & BASE STYLES                 */
/* ========================================================== */
@import url('https://fonts.googleapis.com/css?family=EB+Garamond:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,400italic,700&display=swap');

:root {
  --primary: #31643B;
  --primary-dark: #234928;
  --secondary: #588CAE;
  --secondary-light: #aecadf;
  --accent: #E7F2DF;
  --bg: #F7F7F4;
  --card-bg: #fff;
  --text-main: #23251F;
  --text-muted: #738070;
  --border: #E3E7DE;
  --shadow: 0 4px 18px rgba(60,85,77,.07);
  --radius: 12px;
}
body {
    font-family: 'EB Garamond', Georgia, 'Times New Roman', Times, serif;
    font-size: 16px;
    color: var(--text-main);
    background: var(--bg);
    letter-spacing: .01em;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'EB Garamond', Georgia, 'Times New Roman', Times, serif;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.14;
    margin-bottom: 18px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 10px; }
p, ul, ol {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.65;
    margin-bottom: 18px;
}
strong, b { font-weight: 700; }
em, i { font-style: italic; }
a {
    color: var(--primary);
    transition: color .14s;
}
a:hover, a:focus {
    color: var(--secondary);
    text-decoration: underline;
}

/* ========================================================== */
/*               LAYOUT STRUCTURE & CONTAINERS               */
/* ========================================================== */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.content-wrapper {
    margin: 0 auto;
    max-width: 900px;
    padding: 0;
}
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
}

.card-container, .feature-grid, .card-grid, .content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 24px;
}
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    padding: 28px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}
.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 20px;
    flex: 1 1 268px;
    min-width: 232px;
    transition: box-shadow .18s, transform .18s;
}
.feature-item img {
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
}
.feature-item:hover {
    box-shadow: 0 8px 30px rgba(49,100,59,.12);
    transform: translateY(-2px) scale(1.012);
}


/* ========================================================== */
/*              HEADER, NAVIGATION, MOBILE MENU               */
/* ========================================================== */
header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(49,100,59,.07);
    margin-bottom: 0;
}
header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 0;
}
.logo img {
    display: block;
    width: 160px;
    height: auto;
}
nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
nav a {
    font-family: 'Montserrat', 'EB Garamond', serif;
    font-size: 1.09rem;
    font-weight: 500;
    color: var(--primary-dark);
    padding: 6px 11px;
    border-radius: 6px;
    transition: background .17s, color .14s;
}
nav a:hover, nav a:focus {
    background: var(--accent);
    color: var(--secondary);
}
.cta-btn {
    background: var(--primary);
    color: #fff;
    font-family: 'Montserrat', 'EB Garamond', serif;
    font-size: 1.13rem;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 32px;
    box-shadow: 0 2px 10px rgba(49,100,59,.07);
    transition: background .18s, transform .17s;
    margin-left: 20px;
    display: inline-block;
    border: none;
}
.cta-btn:hover, .cta-btn:focus {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 6px 24px rgba(49,100,59,.11);
}

.mobile-menu-toggle {
    display: none;
    margin-left: 34px;
    font-size: 2em;
    background: none;
    border: none;
    color: var(--primary);
    line-height: 1;
    cursor: pointer;
    transition: color .18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    color: var(--secondary);
}
.mobile-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    box-shadow: 0 8px 60px rgba(49,100,59,.16);
    z-index: 1111;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.87,.01,.19,.99);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 32px 22px 32px;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-close {
    font-size: 2em;
    color: var(--primary);
    background: none;
    border: none;
    position: absolute;
    top: 28px;
    right: 32px;
    z-index: 9992;
    cursor: pointer;
    transition: color .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
    color: var(--secondary);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 50px;
}
.mobile-nav a {
    font-size: 1.17rem;
    color: var(--primary-dark);
    font-family: 'Montserrat', 'EB Garamond', serif;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transition: color .14s, background .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    color: var(--secondary);
    background: var(--accent);
}

@media (max-width: 1050px) {
    nav {
        gap: 14px;
    }
}
@media (max-width: 940px) {
    .logo img { width: 140px; }
}
@media (max-width: 850px) {
    nav {
        gap: 7px;
    }
    .cta-btn { padding: 10px 15px; font-size: 1rem; }
}
@media (max-width: 820px) {
    nav { display: none; }
    .cta-btn { display: none; }
    .mobile-menu-toggle { display: block; }
}

/* ========================================================== */
/*                      MAIN & SECTIONS                      */
/* ========================================================== */
main {
    min-height: 60vh;
    margin-bottom: 52px;
}
section {
    margin-bottom: 60px;
    padding: 40px 20px;
}

@media (max-width: 600px) {
    section { padding: 32px 6px; }
}

/* ========================================================== */
/*                      CARDS & GRID                         */
/* ========================================================== */
.card-grid, .feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
}
.card,
.feature-item {
    margin-bottom: 20px;
    min-width: 260px;
    width: 100%;
}
@media (min-width: 700px) {
    .card,
    .feature-item {
        flex: 1 1 calc(50% - 40px);
        max-width: 400px;
    }
}

/* Content Alignment Utility */
.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: 18px;
    }
    .card-container, .feature-grid, .card-grid, .content-grid {
        flex-direction: column;
        gap: 18px;
    }
}

/* ========================================================== */
/*                    TESTIMONIALS                           */
/* ========================================================== */
.testimonial-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    margin-bottom: 20px;
    background: #fff;
    border: 1.3px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(49,100,59,.06);
    color: #23251F;
    font-family: 'EB Garamond', serif;
    font-size: 1.16rem;
    position: relative;
    transition: box-shadow .17s, transform .15s;
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 0;
    color: #23251F;
}
.testimonial-card span {
    color: var(--secondary);
    font-size: 1.04rem;
    font-family: 'Montserrat', serif;
    font-weight: 500;
    margin-left: 7px;
}
.testimonial-card:hover {
    box-shadow: 0 10px 36px rgba(49,100,59,0.1);
    transform: translateY(-2px) scale(1.012);
}

/* ========================================================== */
/*                     FOOTER STYLES                         */
/* ========================================================== */
footer {
    background: #F4F5F2;
    border-top: 1px solid var(--border);
    font-size: 1rem;
    color: var(--text-muted);
    padding: 36px 0 20px 0;
}
footer .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}
.footer-brand img {
    width: 60px;
    height: auto;
    margin-bottom: 8px;
}
footer nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
footer nav a {
    color: var(--primary-dark);
    font-size: 0.98rem;
    transition: color .16s;
    margin-bottom: 0;
}
footer nav a:hover, footer nav a:focus {
    color: var(--secondary);
}
.footer-contact {
    font-size: 0.96rem;
    color: var(--text-muted);
    max-width: 280px;
    line-height: 1.5em;
}
@media (max-width: 900px) {
    footer .container {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
    .footer-contact { margin-top: 14px; }
}

/* ========================================================== */
/*                  CONTACT INFO & TEXT SECTIONS              */
/* ========================================================== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 1.09rem;
    margin-bottom: 20px;
}
.contact-info img {
    width: 19px;
    height: 19px;
    vertical-align: middle;
    margin-right: 8px;
}
.text-section {
    margin-bottom: 26px;
    font-size: 1.09rem;
    color: var(--text-main);
}

/* ========================================================== */
/*                       BUTTON STYLES                       */
/* ========================================================== */
button, .cta-btn {
    cursor: pointer;
    outline: none;
    box-shadow: none;
    transition: background .17s, color .14s, transform .14s, box-shadow .13s;
}
.button, .btn {
    background: var(--primary);
    color: #fff;
    font-family: 'Montserrat', serif;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 10px 28px;
    border-radius: 32px;
    border: none;
    margin-right: 10px;
    box-shadow: 0 2px 9px rgba(49,100,59,.10);
    display: inline-block;
}
.button:hover, .btn:hover, .button:focus, .btn:focus {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 6px 20px rgba(49,100,59,.12);
}

/* ========================================================== */
/*                 COOKIE CONSENT BANNER & MODAL              */
/* ========================================================== */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1500;
    background: #fff;
    border-top: 1.5px solid var(--border);
    box-shadow: 0 -3px 22px rgba(49,100,59,0.07);
    padding: 24px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}
.cookie-banner p {
    color: #23251F;
    font-size: 1.07rem;
    margin-bottom: 0;
}
.cookie-banner .cookie-actions {
    display: flex;
    flex-direction: row;
    gap: 18px;
}
.cookie-btn {
    background: var(--primary);
    color: #fff;
    font-family: 'Montserrat', serif;
    font-size: 1.02rem;
    padding: 9px 20px;
    border-radius: 24px;
    margin-right: 5px;
    border: none;
    transition: background .16s, color .16s, box-shadow .14s;
}
.cookie-btn.reject {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
    background: var(--accent);
    color: var(--secondary);
}
.cookie-btn.settings {
    background: var(--secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
    background: var(--primary);
    color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
    background: var(--secondary);
    color: #fff;
}
@media (max-width: 600px) {
    .cookie-actions { flex-direction: column; gap: 10px; }
}

/* Cookie Modal */
.cookie-modal-overlay {
    position: fixed;
    z-index: 1600;
    left: 0; right: 0; top: 0; bottom: 0;
    background: rgba(30,50,35, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s;
    pointer-events: all;
}
.cookie-modal {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 48px rgba(49,100,59,0.21);
    padding: 38px 30px;
    min-width: 320px;
    max-width: 92vw;
    min-height: 180px;
    position: relative;
    animation: fadeIn .21s cubic-bezier(.44,0,.81,1.08);
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: var(--text-main);
}
.cookie-modal h3, .cookie-modal h2 {
    margin-bottom: 10px;
    color: var(--primary);
    font-family: 'EB Garamond', serif;
    font-size: 1.36rem;
}
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}
.cookie-category {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
}
.cookie-category label {
    margin-left: 10px;
}
.cookie-modal .modal-actions {
    display: flex;
    flex-direction: row;
    gap: 14px;
    margin-top: 18px;
}
.cookie-modal-close {
    position: absolute;
    top: 26px;
    right: 24px;
    font-size: 2rem;
    color: var(--secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: color .14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
    color: var(--primary);
}
@media (max-width: 540px) {
    .cookie-modal {
        padding: 27px 10px;
        min-width: 0;
    }
}
@keyframes fadeIn { from { opacity: .5; transform: translateY(40px);} to { opacity: 1; transform: none;} }

/* Checkbox Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 21px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #e3ede0;
    border-radius: 21px;
    transition: .22s;
}
.slider:before {
    content: "";
    position: absolute;
    left: 3px;
    bottom: 3px;
    width: 15px;
    height: 15px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,.07);
    transition: .22s;
}
.switch input:checked + .slider {
    background-color: var(--secondary);
}
.switch input:checked + .slider:before {
    transform: translateX(17px);
}

/* ========================================================== */
/*                       RESPONSIVE UTILS                    */
/* ========================================================== */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.11rem; }
    .content-wrapper {
        padding: 0 2px;
    }
}
@media (max-width: 480px) {
    .logo img { width: 102px; }
    .testimonial-card {
        padding: 12px 10px;
        font-size: 0.99rem;
        gap: 8px;
    }
    .footer-brand img { width: 38px; }
    .feature-item { padding: 14px 8px; }
    .card { padding: 14px 8px; }
    .section { padding: 22px 3px; }
}

/* ========================================================== */
/*                     MICRO-INTERACTIONS                    */
/* ========================================================== */
.feature-item, .card, .cta-btn, .button, .testimonial-card, .mobile-menu,
.cookie-btn, .cookie-banner, .cookie-modal {
    transition-property: box-shadow, transform, background, color, opacity;
    transition-duration: .17s;
    transition-timing-function: cubic-bezier(.33,.09,.66,1);
}

/* ========================================================== */
/*                MISC SPACING & UTILITIES                   */
/* ========================================================== */
.mt-1 { margin-top: 10px!important; }
.mt-2 { margin-top: 22px!important; }
.mb-1 { margin-bottom: 10px!important; }
.mb-2 { margin-bottom: 22px!important; }
.text-center { text-align: center; }

/* Ensure minimum spacing between all content cards */
.card-container > *, .feature-grid > *, .card-grid > *, .content-grid > * {
    margin-bottom: 20px;
}

/* Z-INDEX Layering to ensure overlays above all */
.mobile-menu, .cookie-modal-overlay { z-index: 1500; }
.cookie-banner { z-index: 1400; }

/* Hide unwanted scrollbars when overlays open */
body.menu-open, body.cookie-modal-open {
    overflow: hidden;
}
