/* ===== 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, menu, 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;
    vertical-align: baseline;
    box-sizing: border-box;
}
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
    background: #F8F6F3;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    min-height: 100vh;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 16px;
    line-height: 1.7;
    background: #F8F6F3;
    color: #243947;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.05em;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}
a {
    color: #2C6073;
    text-decoration: none;
    transition: color 0.18s;
}
a:hover, a:focus {
    color: #56818f;
    outline: none;
}

ul, ol {
    margin: 0 0 24px 22px;
    padding: 0;
}
li {
    margin-bottom: 10px;
}

strong { font-weight: bold; }

/* ===== BRAND FONTS (Elegant Classic) ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    color: #243947;
    letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 24px; line-height: 1.17; }
h2 { font-size: 2rem; font-weight: 600; margin-bottom: 20px; line-height: 1.22; }
h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; line-height: 1.28; }
h4, h5, h6 { font-weight: 600; }
p, ul, ol, li { font-family: 'Georgia', 'Times New Roman', Times, serif; font-size: 1rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
}

/* ===== CONTAINERS ===== */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: none;
}

@media (max-width: 768px) {
  .section {
    padding: 30px 8px;
    margin-bottom: 40px;
  }
}

/* ===== HEADER ===== */
header {
    background: #FFFFFF;
    border-bottom: 1.5px solid #E3E0DA;
    box-shadow: 0 4px 18px rgba(44,96,115,0.04);
    position: relative;
    z-index: 30;
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 20px;
}
.logo img {
    height: 54px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 24px;
}
.main-nav a {
    font-size: 1rem;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    color: #2C6073;
    padding: 5px 0;
    position: relative;
    font-weight: 500;
    transition: color 0.18s;
}
.main-nav a:after {
    content: "";
    display: block;
    height: 2px;
    width: 0;
    background: #7DBF53;
    transition: width 0.25s;
    margin-top: 3px;
}
.main-nav a:hover:after,
.main-nav a:focus:after {
    width: 100%;
}
.main-nav a:hover,
.main-nav a:focus {
    color: #56818f;
}

/* Hide mobile nav at desktop */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 960px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
        font-size: 2.2rem;
        background: none;
        border: none;
        color: #2C6073;
        padding: 2px 10px;
        margin-left: 8px;
        cursor: pointer;
        z-index: 41;
        transition: color 0.2s;
    }
    .mobile-menu-toggle:active,
    .mobile-menu-toggle:focus {
        color: #7DBF53;
        outline: none;
    }
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: #f7f6f2ED;
    transform: translateX(100%);
    transition: transform 0.34s cubic-bezier(0.75, 0.01, 0.29, 1.05);
    z-index: 99;
    box-shadow: -5px 0 32px rgba(44,96,115,.09);
    padding: 0;
    visibility: hidden;
}
.mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #2C6073;
    font-size: 2.4rem;
    align-self: flex-end;
    margin: 24px 24px 12px 0;
    cursor: pointer;
    transition: color 0.22s;
    z-index: 200;
    appearance: none;
}
.mobile-menu-close:focus, .mobile-menu-close:hover { color: #7DBF53; outline: none; }

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 36px 32px;
    align-items: flex-start;
}
.mobile-nav a {
    font-size: 1.3rem;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    color: #2C6073;
    font-weight: 500;
    width: 100%;
    padding: 10px 0;
    border-radius: 6px;
    transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    background: #CADDCC;
    color: #1D3945;
}

/* Prevent background scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    padding: 12px 34px;
    font-size: 1.05rem;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-weight: 600;
    outline: none;
    border: none;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, color 0.18s;
    line-height: 1.2;
    letter-spacing: 0.01em;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(44,96,115,0.06);
}
.btn.primary {
    background: #2C6073;
    color: #fff;
    box-shadow: 0 4px 14px rgba(44,96,115,0.13);
}
.btn.primary:hover, .btn.primary:focus {
    background: #244e5e;
    color: #fff;
}
.btn.secondary {
    background: #7DBF53;
    color: #fff;
}
.btn.secondary:hover, .btn.secondary:focus {
    background: #66963c;
    color: #fff;
}
.btn:active {
    transform: translateY(1px) scale(0.98);
}

/* ===== HERO + MAIN SECTIONS ===== */
section {
    background: none;
    margin-bottom: 56px;
    padding: 0;
}
section .container {
    padding: 0;
}
section > .container > .content-wrapper {
    padding: 48px 36px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 38px rgba(44, 96, 115, 0.05);
    margin-bottom: 8px;
    align-items: flex-start;
    gap: 20px;
}
@media (max-width: 768px) {
    section > .container > .content-wrapper {
        padding: 26px 10px;
        border-radius: 12px;
        margin-bottom: 6px;
        gap: 16px;
    }
}

/* ===== FEATURE-GRID ===== */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: flex-start;
    margin-bottom: 16px;
    margin-top: 14px;
}
@media (max-width: 900px) {
  .feature-grid { gap: 20px; }
}
@media (max-width: 768px) {
    .feature-grid {
        flex-direction: column;
        gap: 18px;
    }
}
.feature-grid > div {
    flex: 1 1 170px;
    min-width: 165px;
    max-width: 250px;
    background: #F8F6F3;
    border: 1.6px solid #EBEBE0;
    border-radius: 16px;
    padding: 26px 20px 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 3px 12px rgba(44, 96, 115, 0.035);
    transition: box-shadow 0.22s, background 0.19s;
}
.feature-grid > div:hover, .feature-grid > div:focus {
    background: #EEF3EB;
    box-shadow: 0 6px 24px rgba(117,180,95,0.07);
}
.feature-grid img {
    margin-bottom: 12px;
    height: 40px;
    width: auto;
    filter: contrast(1.18);
}
.feature-grid h3 {
    margin-bottom: 8px;
    color: #2C6073;
}
.feature-grid p {
    text-align: center;
    font-size: 1rem;
    color: #466b75;
}

/* ===== CARD-CONTAINER/CARDS (for future) ===== */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    margin-bottom: 20px;
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(44,96,115,0.04);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 240px;
    transition: box-shadow 0.19s;
}
.card:hover, .card:focus {
    box-shadow: 0 8px 26px rgba(44,96,115,0.13);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 28px;
    background: #f8f6f3;
    border-radius: 13px;
    border: 1.3px solid #E3E0DA;
    box-shadow: 0 2px 12px rgba(44,96,115,0.07);
    margin-bottom: 20px;
    max-width: 600px;
    transition: box-shadow 0.17s, background 0.16s;
}
.testimonial-card p {
    font-size: 1.1rem;
    color: #243947;
    font-style: italic;
}
.testimonial-card strong {
    color: #7dbf53;
    font-weight: 600;
    letter-spacing: 0.03em;
    font-size: 1rem;
    margin-top: 4px;
}
.testimonial-card:hover {
    background: #f2f7ee;
    box-shadow: 0 6px 22px rgba(44,96,115,0.089);
}

/* Color contrast enforcement for testimonial cards */
.testimonial-card, .testimonial-card p, .testimonial-card strong {
    color: #243947;
}

/* Flex alignments */
.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;
        gap: 20px;
        align-items: flex-start;
    }
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

/* ===== FOOTER ===== */
footer {
    background: #2C6073;
    color: #FFF;
    padding: 0;
}
footer .container {
    padding-top: 38px;
    padding-bottom: 18px;
}
footer .content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    justify-content: space-between;
}
footer .footer-nav, footer .legal-nav {
    display: flex;
    flex-direction: column;
    gap: 13px;
}
footer .footer-nav a,
footer .legal-nav a {
    color: #DFE7E1;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.13s, color 0.13s;
    padding: 4px 0 4px 0;
}
footer .footer-nav a:hover,
footer .legal-nav a:hover {
    color: #7DBF53;
    background: #264f5d;
}
footer .contact-info {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 0.98rem;
    color: #f3f9f6;
}
footer .contact-info img {
    height: 28px;
    margin-right: 4px;
    vertical-align: bottom;
    display: inline-block;
}
footer .social-media {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 8px;
}
footer .social-media img {
    height: 29px;
    width: 29px;
    filter: grayscale(1) brightness(1.7);
    transition: filter 0.14s;
    cursor: pointer;
}
footer .social-media img:hover {
    filter: none;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    width: 100vw;
    background: #F8F6F3;
    color: #243947;
    border-top: 1.8px solid #e3e0da;
    box-shadow: 0 -5px 28px rgba(44,96,115,0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 22px 30px 18px 30px;
    z-index: 1009;
    gap: 18px;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 1rem;
    animation: fadeInUp 0.8s;
}
@media (max-width: 650px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 18px 9px; }
}
.cookie-banner .cookie-actions {
    display: flex;
    gap: 13px;
}
.cookie-btn {
    padding: 8px 20px;
    font-size: 1rem;
    border-radius: 20px;
    border: none;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    box-shadow: 0 1px 6px rgba(44,96,115,0.06);
}
.cookie-btn.accept {
    background: #7DBF53;
    color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
    background: #66963c;
}
.cookie-btn.reject {
    background: #EFEFEF;
    color: #2C6073;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
    background: #e0e0e0;
}
.cookie-btn.settings {
    background: none;
    color: #2C6073;
    border: 1px solid #2C6073;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
    background: #e0efea;
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(80px); }
  100% { opacity: 1; transform: none; }
}

/* ===== COOKIE MODAL (Preferences) ===== */
.cookie-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 98vw;
    max-width: 410px;
    background: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 16px 44px rgba(44,96,115,0.17);
    transform: translate(-50%, -60%) scale(0.96);
    opacity: 0;
    z-index: 1011;
    padding: 30px 28px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    pointer-events: none;
    transition: opacity 0.36s, transform 0.18s;
}
.cookie-modal.open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
}
.cookie-modal h3 {
    margin-bottom: 9px;
    font-size: 1.35rem;
    color: #2C6073;
}
.cookie-modal ul {
    list-style: none;
    margin: 0 0 14px 0;
    padding: 0;
}
.cookie-modal li {
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 10px;
    font-size: 1rem;
}
.cookie-modal label {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    font-size: 1rem;
}
.cookie-modal input[type="checkbox"] {
    accent-color: #7DBF53;
    width: 18px; height: 18px;
    margin-right: 3px;
}
.cookie-modal .category-desc {
    font-size: 0.97rem;
    color: #556;
    margin-top: 1px;
}
.cookie-modal .modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 4px;
}
.cookie-modal .close-modal-btn {
    position: absolute;
    top: 14px; right: 17px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #567;
    cursor: pointer;
    z-index: 1012;
    transition: color 0.12s;
}
.cookie-modal .close-modal-btn:hover,
.cookie-modal .close-modal-btn:focus {
    color: #2C6073;
}

/* Overlay for modal */
.cookie-modal-overlay {
    position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(44, 96, 115, 0.10);
    z-index: 1010;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s;
}
.cookie-modal.show + .cookie-modal-overlay,
.cookie-modal.open + .cookie-modal-overlay {
    opacity: 1;
    pointer-events: all;
}

/* ===== MISC UTILITIES & ANIMATIONS ===== */
::-webkit-input-placeholder { color: #AAB2B6; }
:-ms-input-placeholder { color: #AAB2B6; }
::placeholder { color: #AAB2B6; }
.hide { display: none !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ===== SPACING ===== */
.mt-16 { margin-top: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ===== RESPONSIVE TYPOGRAPHY & LAYOUT ===== */
@media (max-width: 600px) {
  .container { padding: 0 5px; }
}
@media (max-width: 515px) {
  h1 { font-size: 1.3rem; }
  section > .container > .content-wrapper { padding: 8px 2px; }
  .feature-grid > div { padding: 13px 6px; }
  .testimonial-card { padding: 10px 7px; }
  .footer-nav, .legal-nav { gap: 7px; }
}

/* =====  FORMS (future expansion) ===== */
input, textarea, select {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 1rem;
    border-radius: 5px;
    padding: 9px 13px;
    border: 1.3px solid #ced7df;
    transition: border-color 0.17s;
    margin-bottom: 16px;
}
input:focus, textarea:focus, select:focus {
    border-color: #2C6073;
    outline: none;
}

/* ===== MISC ===== */
hr {
    border: 0;
    border-bottom: 1px solid #e3e0da;
    margin: 34px 0;
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid #7DBF53;
  outline-offset: 2px;
}

/* ===== PRINT OPTIMIZATION ===== */
@media print {
    header, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-overlay, footer {
        display: none !important;
    }
    body {
        color: #000;
    }
}
