/* =======================================================
   CSS RESET & BASELINE NORMALIZE (MOBILE-FIRST APPROACH)
========================================================== */
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;
}
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  background: #F2F5F1;
  color: #253237;
}
a { color: inherit; text-decoration: none; cursor: pointer; transition: color .2s; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border-radius: 0;
  background: none;
  border: none;
}
button:focus, a:focus { outline: 2px dashed #346473; outline-offset: 2px; }

/* ============================================
   BRAND TYPOGRAPHY FOR GEOMETRIC/STRUCTURED UI
=============================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400|Open+Sans:400,600,700&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  background: #F2F5F1;
  color: #253237;
  font-size: 16px;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #346473;
  line-height: 1.2;
  letter-spacing: 0.03em;
}
h1 {font-size: 2.1rem; margin-bottom: 20px;}
h2 {font-size: 1.6rem; margin-bottom: 20px;}
h3 {font-size: 1.15rem; margin-bottom: 12px;}
h4, h5, h6 {margin-bottom: 8px;}

p, ul, li, .article-meta {
  font-size: 1rem;
  line-height: 1.7;
  color: #253237;
}
strong { font-weight: 700; color: #346473; }
cite { font-style: normal; color: #346473; font-weight: 600; }

@media (min-width: 600px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.1rem; }
}

/* =================================
   STRUCTURAL LAYOUT & CONTAINER STYLES
==================================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(52,100,115,0.07), 0 1.5px 12px rgba(167,191,160,0.04);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: box-shadow 0.18s;
  position: relative;
}
@media (max-width: 550px) {
  main > section {padding: 30px 8px; margin-bottom: 36px; border-radius: 12px; }
}

/* ===========================
     NAVBAR & HEADER STYLES
============================= */
header {
  width: 100%;
  background: #fff;
  border-bottom: 2.5px solid #A7BFA0;
  position: sticky;
  top: 0; left: 0;
  z-index: 40;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  height: 68px;
}
.main-nav a {
  color: #346473;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #A7BFA0;
}
.main-nav img {
  height: 38px;
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
}
.mobile-menu-toggle {
  display: flex;
  position: absolute;
  right: 18px;
  top: 15px;
  background: #fff;
  color: #346473;
  border: 1.5px solid #A7BFA0;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 52;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #A7BFA0; color: #fff;
  box-shadow: 0 2px 16px rgba(52,100,115,0.10);
}

@media (min-width: 900px) {
  .main-nav { gap: 36px; }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 900px) {
  .mobile-menu-toggle { display: none; }
}


/* =======================
   MOBILE MENU OVERLAY
======================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(52,100,115,0.977);
  z-index: 51;
  width: 100vw; height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-105vw);
  transition: transform 0.35s cubic-bezier(.8,.01,.25,1);
  padding: 0; overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 3px 52px rgba(52,100,115,0.14);
}
.mobile-menu-close {
  background: #F2F5F1;
  color: #346473;
  border: 1.5px solid #A7BFA0;
  border-radius: 6px;
  font-size: 2rem;
  margin: 28px 0 18px 28px;
  align-self: flex-start;
  width: 44px; height: 44px;
  display: flex;  align-items: center;  justify-content: center;
  cursor: pointer;
  transition: background .17s;
  z-index: 53;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #A7BFA0;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100vw;
  padding-left: 44px;
  margin-top: 15px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 1.2px solid rgba(255,255,255,0.13);
  width: 80vw;
  max-width: 420px;
  transition: color 0.16s, background 0.16s;
  border-radius: 8px 0 0 8px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #A7BFA0;
  color: #346473;
}

/* NAV SPACING (DESKTOP) */
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .mobile-menu { display: none !important; } 
}

/* ================================
   SECTION, CARD & FLEX LAYOUTS
================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3.5px 16px rgba(52,100,115,0.09), 0 1px 6px rgba(52,100,115,0.03);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  align-items: flex-start;
  gap: 12px;
  min-width: 240px;
  min-height: 160px;
  flex: 1 1 260px;
  transition: box-shadow 0.16s, transform 0.14s;
}
.card:hover {
  box-shadow: 0 7px 28px rgba(52,100,115,0.23), 0 1px 12px rgba(52,100,115,0.05);
  transform: translateY(-3px) scale(1.018);
}
.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: 900px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* =============================
     FEATURES, ARTICLE, BUTTONS
============================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 28px;
}
.feature-grid > div{
  flex: 1 1 230px;
  min-width: 210px;
  background: #A7BFA0;
  border-radius: 18px;
  padding: 25px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 2px 12px rgba(52, 100, 115, 0.12), 0 1px 4px rgba(167,191,160,0.05);
  color: #253237;
  position: relative;
  border: 1.5px solid #34647311;
  transition: box-shadow .16s, transform .13s;
}
.feature-grid > div:hover {
  box-shadow: 0 12px 32px rgba(52,100,115,0.17);
  transform: translateY(-2px) scale(1.012);
}
.feature-grid img {
  width: 46px;
  height: 46px;
  background: #fff;
  padding: 7px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(52,100,115,0.07);
  margin-bottom: 7px;
}

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

.cta-btn,
.newsletter-signup button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #346473;
  color: #fff;
  border: none;
  border-radius: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 14px 32px;
  box-shadow: 0 2.5px 10px rgba(52,100,115,0.09);
  margin-top: 20px;
  cursor: pointer;
  transition: background .18s, transform .14s, box-shadow .16s;
  outline: none;
}
.cta-btn:hover, .newsletter-signup button:hover, .cta-btn:focus {
  background: #A7BFA0;
  color: #346473;
  transform: scale(1.03);
}

.article-list {
  margin: 18px 0 6px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.article-list li {
  padding: 20px 18px 18px 18px;
  margin-bottom: 10px;
  background: #F2F5F1;
  border-radius: 16px;
  border-left: 4px solid #A7BFA0;
  font-size: 1.09rem;
  color: #253237;
  box-shadow: 0 2px 7px rgba(52,100,115,0.04);
  line-height: 1.63;
  position: relative;
}
.article-meta {
  color: #346473;
  font-size: .95rem;
  margin-left: 3px;
  font-weight: 600;
}
.article-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 15px 0 10px 0;
  font-size: 1rem;
  align-items: center;
}
.article-filters a {
  color: #346473;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 3px 13px;
  border-radius: 12px;
  background: #F2F5F1;
  margin: 0 3px;
  transition: background .14s, color .17s;
}
.article-filters a:hover, .article-filters a:focus {
  background: #A7BFA0;
  color: #253237;
}

.pagination {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  justify-content: flex-end;
}
.pagination a {
  color: #346473;
  background: #F2F5F1;
  border-radius: 9px;
  font-weight: 700;
  padding: 5px 18px;
  transition: background .14s, color .17s;
}
.pagination a:hover, .pagination a:focus { background: #A7BFA0; color: #fff; }

/* ===============
   NEWSLETTER SIGNUP
================== */
.newsletter-signup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  align-items: flex-start;
  background: #A7BFA0;
  padding: 22px 20px;
  border-radius: 18px;
  margin: 18px 0 0 0;
}
.newsletter-signup input[type="email"] {
  padding: 9px 15px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #34647344;
  margin-right: 7px;
  margin-bottom: 6px;
  background: #fff;
  width: 225px;
}
@media (max-width: 400px) {
  .newsletter-signup input[type="email"] {
    width: 120px;
    font-size: .98rem;
  }
}
.newsletter-signup button {
  margin: 0 0 0 0;
}

/* =========================
     TESTIMONIALS
=========================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-left: 5px solid #346473;
  border-radius: 15px;
  margin-bottom: 20px;
  margin-top: 10px;
  box-shadow: 0 2px 14px rgba(52,100,115,0.07);
  transition: box-shadow .14s, border-left .14s;
  color: #253237;
}
.testimonial-card:hover {
  box-shadow: 0 7px 28px rgba(52,100,115,0.19);
  border-left: 5px solid #A7BFA0;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #253237;
  font-style: italic;
  margin-right: 16px;
  flex: 1;
}
.testimonial-card cite {
  font-size: .98rem;
  color: #346473;
  font-weight: 600;
  font-style: normal;
}

/* ==================================
   FOOTER
==================================== */
footer {
  width: 100%;
  background: #346473;
  color: #fff;
  padding: 48px 0 24px 0;
  border-top: 2.5px solid #A7BFA0;
  font-size: 1em;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.01rem;
  transition: color .15s,text-shadow .15s;
}
.footer-nav a:hover, .footer-nav a:focus { color: #A7BFA0; text-shadow: 0 2px 4px #34647333; }
.brand-footer {
  text-align: center;
  font-size: 1rem;
  color: #fff;
  margin-top: 10px;
}

/* =========================================================
   COOKIE CONSENT BANNER - FIXED BOTTOM, ANIMATED, MODAL
========================================================= */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; width: 100vw;
  z-index: 1100;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(52,100,115,.14);
  border-top: 2.5px solid #A7BFA0;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform .33s cubic-bezier(.63,-0.2,.19,1.28), opacity .22s;
  opacity: 1; transform: translateY(0);
}
.cookie-banner.hidden {
  opacity: 0;
  transform: translateY(130%);
  pointer-events: none;
}
.cookie-banner p {
  font-size: 1rem;
  color: #253237;
  margin: 0 auto;
  text-align: center;
}
.cookie-banner .cookie-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 5px;
  justify-content: center;
}
.cookie-banner button {
  background: #346473;
  color: #fff;
  border: none;
  padding: 11px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  transition: background .14s, color .14s;
  cursor: pointer;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #A7BFA0;
  color: #346473;
}
.cookie-banner .cookie-btn-secondary {
  background: #A7BFA0;
  color: #346473;
}
.cookie-banner .cookie-btn-secondary:hover,
.cookie-banner .cookie-btn-secondary:focus {
  background: #346473;
  color: #fff;
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(52,100,115,0.56);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .18s;
}
.cookie-modal-overlay.hidden { opacity: 0; pointer-events: none; }

.cookie-modal {
  background: #fff;
  color: #253237;
  border-radius: 18px;
  box-shadow: 0 7px 38px rgba(52,100,115,0.20);
  padding: 32px 24px 24px 24px;
  width: 100%;
  max-width: 410px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-in .23s cubic-bezier(.52,0,.13,1.31);
}
@keyframes cookie-modal-in {
  from { opacity: 0; transform: translateY(120px) scale(.91); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h3 { color: #346473; font-size: 1.2rem; margin: 0 0 8px 0; }
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.cookie-modal label {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal input[type="checkbox"] {
  appearance: none;
  width: 18px; height: 18px;
  border: 1.6px solid #A7BFA0;
  border-radius: 4px;
  background: #F2F5F1;
  margin-right: 6px;
  transition: border-color .13s;
  position: relative;
  cursor: pointer;
}
.cookie-modal input[type="checkbox"]:checked {
  background: #A7BFA0;
  border-color: #346473;
}
.cookie-modal input[type="checkbox"]:checked:after {
  content: "";
  position: absolute;
  left: 4px; top: 4px;
  width: 9px; height: 9px;
  background: #346473;
  border-radius: 2px;
}
.cookie-modal .modal-actions {
  margin-top: 13px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  padding: 9px 20px;
  border-radius: 9px;
  font-size: 1rem;
}

/* ====================================
   RESPONSIVE MEDIA QUERIES
==================================== */
@media (max-width: 900px) {
  .container {max-width: 97vw;}
}
@media (max-width: 768px) {
  .feature-grid,.card-container,.content-grid
    {flex-direction: column; gap: 16px;}
  main > section {padding: 24px 8px; border-radius: 9px;}
  .footer-nav {gap: 7px;}
}
@media (max-width: 500px) {
  main>section {padding: 18px 0;}
  .footer-nav {font-size: .96em;gap: 5px;}
  .container {padding-left: 6px;padding-right: 6px;}
  .content-wrapper{gap:10px;}
}

/* =====================================
   GEOMETRIC THEME DECORATIVE ELEMENTS
   (Sharpened borders, extra shapes)
======================================= */
main > section,
.card,
.feature-grid > div,
.testimonial-card {
  border-radius: 18px 18px 9px 9px;
}
/* Optionally add subtle accent geometric line */
main > section:before {
  content: '';
  display: block;
  width: 70px;
  height: 5px;
  background: #A7BFA0;
  border-radius: 3px;
  margin-bottom: 28px;
}

main > section:first-child:before {margin-bottom: 20px; margin-top: 2px;}
@media (max-width: 600px) {
  main > section:before { display: none; }
}

/* =========================
   CONTACT & ICONS STYLING
========================== */
.content-wrapper ul li img {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: middle;
  filter: grayscale(0.3) contrast(1.08);
}

/* ===============
   ACCESSIBILITY
================ */
@media (max-width: 350px) {
  .cookie-banner,.footer-nav {font-size: .88em;}
}

/* Spacing between content cards/sections */
main > section + section { margin-top: 0; margin-bottom: 60px; }
.card + .card, .testimonial-card + .testimonial-card { margin-top: 20px; }

/* Utility: Hide visually, keep accessible */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

