/* ------------------ 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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1.5;
    background: #F6F7F3;
    color: #22304C;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*::selection {
    background: #B2D8B7;
    color: #22304C;
}
a {
    color: #336C3C;
    text-decoration: none;
    transition: color .2s;
}
a:hover, a:focus {
    color: #628358;
}
ul, ol {
    margin-left: 1.1em;
    margin-bottom: 1em;
}
li {
    margin-bottom: 0.5em;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ----------- Brand Fonts & Typography ------------ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    color: #1C3A2E;
    line-height: 1.2;
    letter-spacing: .01em;
    font-weight: 700;
}
h1 {
    font-size: 2.4rem;
    margin-bottom: 24px;
    color: #22304C;
}
h2 {
    font-size: 2rem;
    margin-bottom: 18px;
    color: #264D28;
}
h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: #284F3C;
}
h4, h5, h6 {
    font-size: 1.1rem;
}
p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #22304C;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
blockquote {
    font-style: italic;
    color: #3C5240;
    background: #E9F1F7;
    border-left: 5px solid #9ECB8D;
    padding: 16px 24px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    border-radius: 10px 20px 18px 10px;
}
cite {
    display: block;
    color: #628358;
    font-size: 0.95rem;
    margin-top: 8px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-style: normal;
    letter-spacing: 1px;
}
strong, b {
    font-weight: 700;
    color: #2A5345;
}

/* ------------ Container & Section Patterns ------------ */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 2px 16px 0 rgba(52, 80, 65, 0.08), 0 1.5px 2.5px rgba(120,150,105,0.09);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.card-container,
.service-cards,
.card-grid,
.feature-grid,
.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.card {
    margin-bottom: 20px;
    position: relative;
    background: #F6F7F3;
    border-radius: 18px;
    box-shadow: 0 2px 8px 0 rgba(52, 80, 65, 0.09);
    padding: 28px 22px;
    min-width: 260px;
    flex: 1 1 250px;
    transition: box-shadow .25s, transform .22s;
}
.card:hover {
    box-shadow: 0 3px 32px 0 rgba(39, 71, 55, 0.16);
    transform: translateY(-4px) scale(1.018);
}

.service-cards > div {
    min-width: 260px;
    background: #F3FAEF;
    border-radius: 18px 32px 18px 24px;
    box-shadow: 0 2px 8px 0 rgba(52, 80, 65, 0.07);
    padding: 24px 22px;
    margin-bottom: 20px;
    flex: 1 1 260px;
    transition: box-shadow .24s, transform .19s;
    border: 1px solid #d7eeda;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.service-cards > div:hover {
    box-shadow: 0 4px 18px 0 rgba(39,67,55,0.18);
    transform: scale(1.018);
}

.feature-grid > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    background: #E9F1F7;
    border-radius: 18px 28px 18px 20px;
    box-shadow: 0 2px 9px 0 rgba(87,132,99,0.07);
    padding: 22px 18px;
    flex: 1 1 220px;
    margin-bottom: 20px;
    border: 1px solid #c9e4ee;
    transition: box-shadow .22s, transform .19s;
}
.feature-grid > div:hover {
    box-shadow: 0 3px 18px 0 rgba(70,122,98,0.10);
    transform: scale(1.014);
}

.text-image-section,
.text-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.text-image-section {
    justify-content: space-between;
}

.testimonial-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #F3FAEF;
    border-radius: 22px;
    border: 1.5px solid #B2D8B7;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px 0 rgba(74,100,68,0.08);
    transition: box-shadow .16s;
    max-width: 640px;
}
.testimonial-card:hover {
    box-shadow: 0 4px 28px 0 rgba(41,74,57,0.12);
}
.testimonial-card blockquote {
    background: transparent;
    border-left: none;
    padding: 0;
    margin: 0;
    color: #22304C;
}
.testimonial-card cite {
    color: #336C3C;
    margin-top: 0;
    font-size: 0.97rem;
}

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

.timeline {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #E9F1F7;
    border-radius: 16px 28px 20px 12px;
    box-shadow: 0 2px 7px 0 rgba(52,80,65,0.04);
    padding: 18px 18px 12px 20px;
    margin-bottom: 16px;
}

/* ------------- Header & Navigation ---------------- */
header {
    width: 100%;
    background: #F6F7F3;
    border-bottom: 2px solid #E6E1D8;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 99;
}
header > .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 14px 18px;
    gap: 24px;
}
.logo img {
    height: 38px;
    width: auto;
}
.main-nav {
    display: flex;
    flex-direction: row;
    gap: 28px;
    align-items: center;
}
.main-nav a {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #264D28;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background .15s, color .17s;
}
.main-nav a:hover, .main-nav a:focus {
    background: #DBEDDB;
    color: #22304C;
}
.btn-primary {
    display: inline-block;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 24px 32px 20px 24px;
    background: #4BA3D2;
    color: #fff;
    padding: 12px 30px;
    box-shadow: 0 2px 12px 0 rgba(57,100,88,0.08);
    text-align: center;
    letter-spacing: .5px;
    margin-left: 14px;
    transition: background .19s, transform .19s, box-shadow .19s;
    cursor: pointer;
}
.btn-primary:hover, .btn-primary:focus {
    background: #336C3C;
    color: #fff;
    transform: translateY(-2px) scale(1.027);
    box-shadow: 0 4px 24px 0 rgba(35,88,65,0.11);
}

/* Hamburger Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: #4BA3D2;
    color: #fff;
    font-size: 2rem;
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .19s;
    position: relative;
    z-index: 103;
    margin-left: 16px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #336C3C;
    color: #fff;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #E9F1F7;
    z-index: 102;
    transform: translateX(-100vw);
    transition: transform .37s cubic-bezier(.83,.23,.31,1.2);
    padding: 36px 24px 24px 24px;
    box-shadow: 2px 0 40px 0 rgba(55,111,80,0.12);
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-close {
    align-self: flex-end;
    background: transparent;
    border: none;
    font-size: 2.2rem;
    color: #22304C;
    cursor: pointer;
    margin-bottom: 18px;
    transition: color .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
    color: #336C3C;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 10px;
    align-items: flex-start;
}
.mobile-nav a {
    font-size: 1.15rem;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #22304C;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 6px;
    transition: background .13s, color .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    background: #CBF3CF;
    color: #336C3C;
}

/* Hide main nav and show burger on mobile */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
}
@media (min-width: 1025px) {
    .mobile-menu {
        display: none !important;
    }
}

/* ------------- Hero / Banner (Organic Shapes) --------------- */
.hero {
    margin-bottom: 0;
    padding: 62px 0 52px 0;
    background: linear-gradient(105deg, #E9F1F7 95%, #C5DEBA 120%);
    border-radius: 0 0 42px 42px;
    box-shadow: 0 4px 48px 0 rgba(124,182,140,0.07);
}
.hero .container {
    align-items: flex-start;
}
.hero .content-wrapper {
    align-items: flex-start;
    gap: 22px;
}
.hero h1 {
    color: #22304C;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 14px;
}
.hero p {
    font-size: 1.15rem;
    color: #33523E;
    margin-bottom: 16px;
    max-width: 700px;
}
.hero .btn-primary {
    margin-left: 0;
    margin-top: 10px;
}

/* ----------- Footer ----------------- */
footer {
    background: #1C3A2E;
    color: #F3FAEF;
    padding: 38px 0 22px 0;
    border-radius: 32px 32px 0 0;
    margin-top: 48px;
    width: 100%;
}
footer .container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 36px;
}
.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.footer-menu a {
    color: #CBF3CF;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: color .16s;
}
.footer-menu a:hover, .footer-menu a:focus {
    color: #76C182;
}
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    font-size: 0.98rem;
    color: #E9F1F7;
}
.contact-info p {
    color: #F3FAEF;
}

/* ----------- Cookie Consent Banner ----------- */
.cookie-banner {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    background: #E9F1F7;
    color: #22304C;
    box-shadow: 0 -2px 24px 0 rgba(88,122,87,0.11);
    padding: 22px 18px 22px 18px;
    z-index: 1065;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border-radius: 30px 30px 0 0;
    animation: cookieBannerSlideIn .75s cubic-bezier(.61,.03,.31,1.1);
}
@keyframes cookieBannerSlideIn {
    from { transform: translateY(120%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
    font-size: 1.04rem;
    margin-bottom: 0;
}
.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}
.cookie-btn {
    font-family: 'Montserrat', Arial, sans-serif;
    padding: 10px 26px;
    font-weight: 700;
    border: none;
    border-radius: 22px 26px 20px 22px;
    margin-left: 0;
    font-size: 1rem;
    cursor: pointer;
    transition: background .19s, color .19s;
    background: #4BA3D2;
    color: #fff;
    box-shadow: 0 1px 4px 0 rgba(88,122,87,0.08);
}
.cookie-btn.accept {
    background: #336C3C;
}
.cookie-btn.reject {
    background: #B2D8B7;
    color: #22304C;
}
.cookie-btn.settings {
    background: #F3FAEF;
    color: #22304C;
    border: 1.5px solid #B2D8B7;
}
.cookie-btn:hover, .cookie-btn:focus {
    opacity: .95;
    background: #284F3C;
    color: #fff;
}

/* Cookie Modal */
.cookie-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 1070;
    background: rgba(34,48,76,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInModal .4s cubic-bezier(.53,.11,.32,.86);
}
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}
.cookie-modal {
    background: #F6F7F3;
    border-radius: 24px 38px 30px 22px;
    padding: 38px 28px 28px 28px;
    max-width: 410px;
    width: 100%;
    box-shadow: 0 4px 28px 0 rgba(62,112,82,0.16);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cookie-modal h3 {
    margin-bottom: 14px;
    color: #264D28;
    font-size: 1.25rem;
}
.cookie-category {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
}
.cookie-category label {
    font-size: 1.03rem;
    color: #22304C;
}
.cookie-toggle {
    width: 38px;
    height: 20px;
    background: #B2D8B7;
    border-radius: 14px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    transition: background .18s;
}
.cookie-toggle input {
    display: none;
}
.cookie-toggle span {
    display: block;
    position: absolute;
    left: 4px; top: 3px;
    width: 15px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0px 2.5px 0 rgba(36, 71, 44, 0.1);
    transition: left .18s cubic-bezier(.43,.16,.62,1.34);
}
.cookie-toggle input:checked + span {
    left: 19px;
    background: #4BA3D2;
}
.cookie-modal-footer {
    margin-top: 18px;
    display: flex;
    gap: 14px;
    justify-content: flex-end;
}

/* ------------- Responsive Design -------------------- */
@media (max-width: 1024px) {
  .container {
    max-width: 97vw;
    padding-left: 7px;
    padding-right: 7px;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .footer-menu {
    flex-direction: row;
    gap: 14px;
    flex-wrap: wrap;
  }
  .contact-info {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
    .section {
        padding: 32px 4px;
        margin-bottom: 32px;
    }
    .container {
        padding-left: 6px;
        padding-right: 6px;
    }
    header > .container {
        gap: 10px;
        padding: 10px 7px 10px 7px;
    }
    .logo img {
        height: 30px;
    }
    .content-wrapper {
        gap: 17px;
    }
    .card-container,
    .feature-grid,
    .service-cards,
    .content-grid {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    .card,
    .service-cards > div,
    .feature-grid > div {
        min-width: 0;
        margin-bottom: 20px;
        flex: 1 1 100%;
        padding: 18px 12px;
    }
    .testimonial-card {
        padding: 16px 10px;
        flex-direction: column;
        align-items: flex-start;
        max-width: 97vw;
    }
    .timeline {
        padding: 12px 8px 8px 10px;
        margin-bottom: 8px;
    }
    .hero {
        padding: 38px 0 22px 0;
        border-radius: 0 0 20px 20px;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.43rem;
    }
    h2 {
        font-size: 1.18rem;
    }
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 15px 6px 15px 8px;
    }
    .cookie-modal {
        padding: 18px 7px 18px 7px;
        max-width: 92vw;
    }
    .card, .service-cards > div, .feature-grid > div {
        padding-left: 8px;
        padding-right: 8px;
    }
    .text-image-section, .text-section {
        flex-direction: column;
        gap: 14px;
    }
    .hero h1 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .text-image-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
}

/* ----- Animations, Transitions, Micro-Interactions ------- */
.btn-primary, .cookie-btn {
    transition: background .18s, color .18s, box-shadow .15s, transform .17s;
}
.btn-primary:active, .cookie-btn:active {
    transform: scale(0.96);
    box-shadow: 0px 1.3px 4px rgba(42, 61, 43, .13);
}
.card, .service-cards > div, .feature-grid > div {
    transition: box-shadow .25s, transform .18s;
}

/* -------- Miscellaneous for Organic Style ------------- */
.section, .hero, .service-cards > div, .feature-grid > div, .timeline, .card {
    /* Subtle rough organic shape via border radius variations */
    border-radius: 20px 41px 28px 30px/21px 28px 32px 39px;
}
hr {
    border: none;
    height: 2px;
    background: #D7EEDA;
    margin: 34px 0;
    border-radius: 3px;
}

/* ----------- Utility Classes ----------- */
.mt-24 { margin-top: 24px !important; }
.mb-18 { margin-bottom: 18px !important; }
.d-flex { display: flex !important; }
.align-center { align-items: center !important; }
.flex-column { flex-direction: column !important; }
.full-width { width: 100% !important; }

/* Ensure focus states */
a:focus, .btn-primary:focus, .main-nav a:focus, .mobile-nav a:focus, .cookie-btn:focus, .mobile-menu-close:focus {
    outline: 2px dashed #4BA3D2;
    outline-offset: 2px;
}

/* Hide visually but keep accessible (for banner/modal close if needed) */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ----- End Frosty Resonance Nature Organic CSS ----- */
