/* =====================
   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;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F4F4F4;
  color: #252525;
  font-family: 'Open Sans', 'Times New Roman', Times, serif;
  font-size: 16px;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #003366;
  text-decoration: none;
  transition: color 0.20s;
}
a:hover, a:focus {
  color: #4DAA57;
}
ul, ol {
  list-style-position: inside;
  margin-left: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
  transition: box-shadow 0.15s, background 0.15s;
}


/* ============================
   TYPOGRAPHY & ELEGANT STYLES
   ============================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 700;
  color: #003366;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.2rem;
}
h2 {
  font-size: 1.6rem;
}
h3 {
  font-size: 1.25rem;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li, blockquote {
  color: #343434;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
blockquote {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.08rem;
  font-style: italic;
  color: #2a3550;
  background: #F8F9FA;
  border-left: 4px solid #4DAA57;
  margin: 0 0 10px 0;
  padding: 16px 18px 16px 24px;
}
strong {
  font-weight: bold;
  color: #003366;
}
em {
  font-style: italic;
}
.text-center {
  text-align: center;
}


/* ============================
   LAYOUT UTILS & CONTAINERS
   ============================ */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  margin: 0 auto;
  padding: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(44, 62, 80, 0.08);
  transition: box-shadow 0.25s, background 0.25s;
}
@media (max-width: 900px) {
  .section {
    margin-bottom: 40px;
    padding: 30px 10px;
    border-radius: 10px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 11px rgba(44,62,80,0.08);
  transition: box-shadow 0.23s;
  padding: 24px 20px;
}
.card:hover {
  box-shadow: 0 6px 22px rgba(44,62,80,0.14);
  z-index: 1;
}

.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;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F8F9FB;
  border-radius: 14px;
  margin-bottom: 20px;
  border: 1px solid #e4e7ec;
  box-shadow: 0 1px 5px rgba(44,62,80,0.06);
  transition: box-shadow 0.22s, border-color 0.22s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 16px rgba(76, 170, 87, 0.08);
  border-color: #b3d7bc;
}
.testimonial-author {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  color: #003366;
  margin-left: 16px;
  font-size: 1rem;
}

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

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}


/* ===============================
   BUTTONS & INTERACTIVE ELEMENTS
   =============================== */
.btn-primary {
  display: inline-block;
  background: #003366;
  color: #fff;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 11px 34px;
  border-radius: 25px;
  border: none;
  box-shadow: 0 1px 6px rgba(76, 170, 87, 0.10);
  transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
  margin-top: 12px;
  margin-bottom: 8px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #4DAA57;
  color: #fff !important;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 3px 14px rgba(76, 170, 87, 0.11);
  text-decoration: none;
}
.btn-secondary {
  display: inline-block;
  background: #fff;
  color: #003366;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid #003366;
  padding: 9px 28px;
  border-radius: 22px;
  transition: border 0.18s, color 0.18s, background 0.18s, box-shadow 0.18s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #003366;
  color: #fff;
  border-color: #4DAA57;
}


/* =====================
   HEADER & NAVIGATION
   ===================== */
header {
  background: #fff;
  box-shadow: 0 3px 18px rgba(44,62,80,0.06);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1001;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}
.main-nav a {
  padding: 4px 4px 2px 4px;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 500;
  font-size: 1rem;
  color: #003366;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s, border-bottom 0.18s;
}
.main-nav a:hover, .main-nav a.active {
  color: #4DAA57;
  border-bottom: 1.5px solid #4DAA57;
}
/* Hide burger button on desktop */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  .header-content {
    gap: 6px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    font-size: 2rem;
    background: #003366;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    transition: background 0.17s, color 0.17s;
    box-shadow: 0 2px 8px rgba(0,51,102,0.10);
    z-index: 1021;
  }
  .mobile-menu-toggle:active, .mobile-menu-toggle:focus {
    background: #4DAA57;
    color: #fff;
  }
}


/* ====================
   MOBILE MENU OVERLAY
   ==================== */
.mobile-menu {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(244,244,244,0.97);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 30px;
  padding-left: 0;
  padding-right: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(0.38,0.45,0.17,0.91), opacity 0.24s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  background: #003366;
  color: #fff;
  font-size: 2.2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 12px 18px;
  transition: background 0.15s;
  z-index: 2002;
  box-shadow: 0 1px 6px rgba(0,32,64,0.13);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #4DAA57;
}

.mobile-nav {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  width: 100vw;
  gap: 0;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.19rem;
  color: #003366;
  padding: 20px 30px;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.17s, color 0.15s;
  width: 100%;
}
.mobile-nav a:last-child {
  border-radius: 0 0 13px 13px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e9f5ee;
  color: #4DAA57;
}

@media (min-width: 901px) {
  .mobile-menu { display: none; }
}


/* ============
   FOOTER STYLES
   ============ */
footer {
  background: #003366;
  color: #fff;
  padding: 48px 0 16px 0;
  margin-top: 36px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-content > div, .footer-content nav {
  min-width: 180px;
  margin-bottom: 18px;
}
.footer-content strong {
  color: #fff;
}
.footer-content p, .footer-content a {
  color: #dbe5ee;
  font-size: 1rem;
  line-height: 1.6;
}
.footer-content a {
  transition: color 0.16s;
}
.footer-content a:hover, .footer-content a:focus {
  color: #4DAA57;
}
.footer-content nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
footer img {
  margin-bottom: 15px;
}

@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
  footer {
    padding: 38px 0 8px 0;
  }
}


/* ===============
   COOKIE CONSENT
   =============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #f8f9fa;
  color: #23292b;
  box-shadow: 0 -2px 18px rgba(44,62,80,0.10);
  padding: 18px 22px 18px 22px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  border-top: 1px solid #e3e6ea;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.31s cubic-bezier(0.32,0.56,0.21,1), opacity 0.16s;
}
.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner p {
  margin: 0;
  font-size: 1rem;
  color: #23292b;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  padding: 7px 22px;
  border-radius: 19px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 500;
  margin: 0 2px;
  outline: none;
  border: 1px solid #d7e5ee;
  background: #fff;
  color: #003366;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cookie-btn.accept {
  background: #4DAA57;
  color: #fff;
  border-color: #388d44;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #388d44;
  color: #fff;
}
.cookie-btn.reject {
  background: #f2f2f2;
  color: #003366;
  border-color: #003366;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #eed8d0;
  color: #c0392b;
}
.cookie-btn.settings {
  background: #fff;
  color: #4DAA57;
  border-color: #4DAA57;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #e9f5ee;
  color: #00692b;
}

/* Cookie modal */
.cookie-modal-overlay {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(36, 42, 48, 0.34);
  z-index: 3500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
.cookie-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 95%;
  max-width: 400px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 44px 0 rgba(44,62,80,0.19);
  transform: translate(-50%, 100%);
  z-index: 3501;
  padding: 30px 26px 24px 26px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.26,0.8,0.2,1), opacity 0.18s;
}
.cookie-modal.show {
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal h3 {
  margin-bottom: 12px;
  color: #003366;
  font-weight: 700;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.08rem;
}
.cookie-modal .category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cookie-modal .category label {
  font-size: 1rem;
  font-family: 'Open Sans', 'Georgia', serif;
}
.cookie-modal .category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #4DAA57;
  margin-left: 8px;
  cursor: pointer;
}
.cookie-modal .desc {
  font-size: 0.95rem;
  color: #61616b;
  margin-bottom: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: #4DAA57;
  color: #fff;
  border-radius: 49%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 1.58rem;
  cursor: pointer;
  border: none;
  transition: background 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #003366;
}

/* =============
   HELPER UTILS
   ============= */
@media (max-width: 500px) {
  html, body { font-size: 15px; }
  .container { padding-left: 6px; padding-right: 6px; }
  .section { padding: 20px 4px; margin-bottom: 30px; }
  .footer-content { gap: 13px; }
  .testimonial-card { flex-direction: column; gap: 7px; padding: 13px; }
  .btn-primary { font-size: 0.97rem; padding: 11px 15px; }
  h1 { font-size: 1.27rem; }
  h2 { font-size: 1.08rem; }
}


/* =====================
   ADDITIONAL ELEGANCE
   ===================== */
ul, ol {
  margin-top: 6px;
  margin-bottom: 14px;
  padding-left: 1.2em;
  font-family: 'Open Sans', 'Georgia', serif;
}
ul li, ol li {
  margin-bottom: 7px;
  padding-left: 0.4em;
}
li strong {
  font-family: 'Montserrat', 'Georgia', serif;
}

input[type='checkbox'] {
  accent-color: #4DAA57;
}

hr {
  border: none;
  border-top: 1px solid #e8e6f0;
  margin: 28px 0;
}


/* 
==============================
==  ELEGANT_MICRO-INTERACTIONS ==
==============================
*/
.section, .card, .testimonial-card, .btn-primary, .btn-secondary, .footer-content a, .main-nav a, .cookie-btn, .cookie-menu a {
  transition: background 0.18s, color 0.18s, border-color 0.20s, box-shadow 0.20s, transform 0.18s;
}

/* Selection highlight */
::selection {
  background: #c1e0dc;
  color: #003366;
}

/* =========================
   VISUAL HIERARCHY SPACING
   ========================= */
.section:not(:last-child), .card:not(:last-child), .testimonial-card:not(:last-child), .feature-item:not(:last-child) {
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .section:not(:last-child), .card:not(:last-child), .testimonial-card:not(:last-child) {
    margin-bottom: 16px;
  }
}


/* =======
   MISC.
   ======= */
::-webkit-scrollbar { width: 10px; background: #f7f9fa; }
::-webkit-scrollbar-thumb { background: #dde5ec; border-radius: 6px; }

/* Hide outline for mouse, show on keyboard navigation */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2.5px solid #4DAA57;
  outline-offset: 2px;
}


/* ================
   Z-INDEX STACK
   ================ */
header { z-index: 1001; }
.mobile-menu, .mobile-menu-close { z-index: 2001; }
.cookie-banner { z-index: 3000; }
.cookie-modal, .cookie-modal-overlay { z-index: 3500; }


/* ============
   ACCESSIBILITY
   ============ */
@media (forced-colors: active) {
  .btn-primary, .btn-secondary, .cookie-btn.accept {
    border: 2px solid transparent;
    forced-color-adjust: auto;
  }
}
