/* ============================
   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;
  vertical-align: baseline;
  font-size: 100%;
  font: inherit;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background-color: #F5F1ED;
  color: #244164;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  text-decoration: none;
  color: inherit;
}
img, svg {
  max-width: 100%;
  display: block;
}
button, input, optgroup, select, textarea {
  font: inherit;
  color: inherit;
  outline: none;
  background: none;
  border: none;
  box-sizing: border-box;
}
:focus-visible {
  outline: 2px solid #244164;
  outline-offset: 2px;
}

/* ======================
   BRAND TYPOGRAPHY
====================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&family=Playfair+Display:wght@700&display=swap');

body {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 16px;
  background-color: #F5F1ED;
  color: #244164;
  letter-spacing: 0.02em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #244164;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
}
p, ul, ol {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin-bottom: 16px;
  color: #244164;
  line-height: 1.7;
}
.subheadline {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #3a5474;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 28px;
}
strong {
  font-weight: 700;
}

/* ======================
   CONTAINER ALIGNMENT & SECTION SPACING
====================== */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
section:not(.hero):not(.cta-section) {
  /* subtle separation for sections */
  background-color: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(36, 65, 100, 0.06);
}

/* accent CTA Section */
.cta-section, section.accent {
  background: #244164;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(36, 65, 100, 0.08);
}
.cta-section h2,
.cta-section p,
.cta-section a {
  color: #fff;
}

/* ======================
   FLEXBOX & LAYOUTS
====================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px 0 rgba(36, 65, 100, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 28px 22px;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px 0 rgba(36, 65, 100, 0.15);
}
.content-grid, .feature-grid, .article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.feature-grid > div, .article-list > article {
  background: #F5F1ED;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(36, 65, 100, 0.03);
  padding: 24px 18px;
  flex: 1 1 240px;
  min-width: 250px;
  max-width: 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 10px 0 0 0;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 20px 0 rgba(36, 65, 100, 0.08);
  margin-bottom: 20px;
  min-width: 250px;
  max-width: 420px;
  color: #244164;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 28px 0 rgba(36, 65, 100, 0.18);
}
.testimonial-card p {
  color: #244164;
  font-size: 1.08rem;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #244164;
  opacity: 0.77;
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.process-overview {
  margin-top: 20px;
  background: #F5F1ED;
  border-radius: 10px;
  padding: 18px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-filters {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
}
.category-filters a {
  font-size: 0.99rem;
  color: #244164;
  background: #e8edf2;
  border-radius: 7px;
  padding: 7px 14px;
  transition: background 0.18s;
}
.category-filters a:hover {
  background: #AF9164;
  color: #fff;
}

/* ======================
   HEADER / NAVIGATION
====================== */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e1e5ea;
  box-shadow: 0 2px 10px 0 rgba(27, 34, 50, 0.03);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  padding: 0 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-left: 30px;
}
header nav a {
  color: #244164;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.18s;
  padding: 6px 11px;
  border-radius: 8px;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: #AF9164;
  background: #f3efe6;
}
header .cta-btn {
  margin-left: 38px;
  padding: 13px 26px;
  background: #244164;
  color: #fff;
  border-radius: 9px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  box-shadow: 0 4px 16px 0 rgba(36,65,100,0.09);
  transition: background 0.18s, transform 0.13s;
  border: 2px solid #244164;
  cursor: pointer;
  display: inline-block;
}
header .cta-btn:hover, header .cta-btn:focus {
  background: #AF9164;
  border-color: #AF9164;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
header img {
  height: 48px;
  width: auto;
}

/* ==================
   MOBILE NAVIGATION
================== */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: #244164;
  color: #fff;
  border-radius: 6px;
  padding: 6px 14px;
  border: none;
  cursor: pointer;
  z-index: 101;
  margin-left: 18px;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #AF9164;
}
.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: flex;
  position: fixed;
  flex-direction: column;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(36, 65, 100, 0.97);
  z-index: 120;
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(.4,1.4,.5,1), background 0.22s;
  will-change: transform;
}
.mobile-menu[aria-hidden="true"] {
  transform: translateX(-100vw);
}
.mobile-menu .mobile-menu-close {
  align-self: flex-end;
  margin: 26px 26px 8px 0;
  font-size: 2.1rem;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0 6px;
  border-radius: 5px;
  transition: background 0.18s;
  z-index: 130;
}
.mobile-menu .mobile-menu-close:hover, .mobile-menu .mobile-menu-close:focus {
  background: #AF9164;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-left: 38px;
  margin-top: 18px;
}
.mobile-nav a {
  font-size: 1.22rem;
  padding: 8px 16px;
  border-radius: 8px;
  color: #fff;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #AF9164;
  color: #fff;
}

@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .cta-btn {
    display: none;
  }
}

@media (max-width: 500px) {
  .mobile-nav {
    margin-left: 15px;
    gap: 18px;
  }
}

/* ======================
   HERO SECTION
====================== */
.hero {
  background: linear-gradient(90deg, #244164 26%, #3d5473 100%);
  color: #fff;
  padding: 56px 0 52px 0;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 10px 38px 0 rgba(36,65,100,0.13);
  margin-bottom: 68px;
  overflow: hidden;
}
.hero h1,
.hero h2,
.hero .subheadline {
  color: #fff;
}
.hero .cta-btn {
  background: #AF9164;
  color: #fff;
  border-color: #AF9164;
  margin-top: 15px;
}
.hero .cta-btn:hover, .hero .cta-btn:focus {
  background: #fff;
  color: #AF9164;
  border-color: #fff;
}

/* ===========================
   BUTTONS & CALLS TO ACTION
=========================== */
.cta-btn {
  background: #244164;
  color: #fff;
  border-radius: 9px;
  padding: 14px 30px;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: 2px solid #244164;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.17s, transform 0.13s;
  box-shadow: 0 2px 8px 0 rgba(36,65,100,0.07);
  margin-top: 10px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #AF9164;
  border-color: #AF9164;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

button, .btn {
  padding: 10px 22px;
  border-radius: 7px;
  background: #244164;
  color: #fff;
  border: 2px solid #244164;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
button.btn-secondary, .btn-secondary {
  background: #fff;
  color: #244164;
  border: 2px solid #244164;
}
button.btn-secondary:hover, .btn-secondary:hover {
  background: #AF9164;
  color: #fff;
  border-color: #AF9164;
}

/* ===========================
   FOOTER
=========================== */
footer {
  margin-top: 68px;
  background: #244164;
  color: #fff;
  border-radius: 22px 22px 0 0;
  padding: 48px 0 32px 0;
  box-shadow: 0 -3px 18px 0 rgba(36,65,100,.11);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  margin: 18px auto;
}
footer nav a {
  color: #AF9164;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
}
footer nav a:hover,footer nav a:focus {
  background: #fff;
  color: #244164;
}
footer img {
  height: 46px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  font-size: 0.99rem;
}
.footer-contact img {
  margin-right: 7px;
  vertical-align: baseline;
  height: 20px;
  width: 20px;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  opacity: 0.85;
}

/* ====================
   COOKIE CONSENT
==================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #244164;
  color: #fff;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 14px 0 rgba(36,65,100,0.18);
  padding: 24px 18px 18px 18px;
  gap: 18px;
  font-size: 1rem;
  animation: slideUp 0.45s cubic-bezier(.4,1.38,.45,1.12);
	border-radius: 18px 18px 0 0;
}
@keyframes slideUp {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner .cookie-btn {
  padding: 10px 22px;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
  margin-top: 8px;
}
.cookie-btn.accept {
  background: #AF9164;
  color: #fff;
}
.cookie-btn.settings {
  background: #e8edf2;
  color: #244164;
}
.cookie-btn.reject {
  background: #fff;
  color: #244164;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #244164;
  color: #fff;
}

/* Cookie modal */
.cookie-modal-backdrop {
  position: fixed; top:0; left:0; width:100vw; height:100vh;
  background: rgba(36,65,100, 0.18);
  z-index: 20005;
  display:flex; align-items:center; justify-content:center;
  animation: fadeBackdrop 0.22s;
}
@keyframes fadeBackdrop {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #244164;
  border-radius: 20px;
  width: 97vw;
  max-width: 430px;
  box-shadow: 0 4px 32px 0 rgba(36,65,100, 0.16);
  padding: 30px 22px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popUp .33s cubic-bezier(.52,1.65,.46,1.15);
  position: relative;
}
@keyframes popUp {
  0% { transform: scale(.6) translateY(28px); opacity:0; }
  100% { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 3px;
  color: #244164;
}
.cookie-modal-category {
  padding: 11px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e3e5ea;
  font-size: 1.04rem;
}
.cookie-modal-category:last-child { border-bottom: none; }
.cookie-modal-switch-label {
  font-weight: 500;
}
.cookie-modal-switch {
  margin-left: 8px;
  width: 43px;
  height: 22px;
  position: relative;
}
.cookie-modal-switch input[type='checkbox'] { display: none; }
.cookie-modal-switch-slider {
  position: absolute; left: 0; top: 0;
  width: 43px; height: 22px;
  background: #e1e6ea;
  border-radius: 22px;
  transition: background 0.2s;
}
.cookie-modal-switch input:checked + .cookie-modal-switch-slider {
  background: #AF9164;
}
.cookie-modal-switch-slider:after {
  content: '';
  position: absolute; left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(36,65,100,0.08);
  transition: transform 0.2s;
}
.cookie-modal-switch input:checked + .cookie-modal-switch-slider:after {
  transform: translateX(20px);
}
.cookie-modal .cookie-btn {
  margin-right: 13px;
  margin-top: 0;
  min-width: 104px;
}
.cookie-modal-close {
  position: absolute; top: 19px; right: 15px;
  background: none; border: none;
  font-size: 1.45rem; color: #244164;
  cursor: pointer;
}
.cookie-modal-close:hover {
  color: #AF9164;
}

/* ===========================
   RESPONSIVENESS & FLEX
=========================== */
@media (max-width: 1080px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 900px) {
  .card-container, .content-grid, .feature-grid, .testimonial-slider, .article-list {
    flex-direction: column;
    gap: 24px;
  }
  .feature-grid > div, .article-list > article {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 6px;
  }
  .section, section {
    padding: 25px 6px;
    margin-bottom: 36px;
  }
  .hero {
    padding: 32px 0 30px 0;
    border-radius: 0 0 18px 18px;
    margin-bottom: 34px;
  }
  .content-wrapper {
    padding-left: 0;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  h1 {
    font-size: 1.85rem;
    margin-bottom: 16px;
  }
  h2 {
    font-size: 1.28rem;
    margin-bottom: 14px;
  }
}
@media (max-width: 520px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .testimonials {
    padding-left: 0;
    padding-right: 0;
  }
  .feature-grid > div, .article-list > article {
    padding: 16px 8px;
  }
  footer {
    padding-left: 0;
    padding-right: 0;
  }
  .cookie-modal {
    padding: 18px 7px 8px 7px;
    max-width: 95vw;
  }
}
@media (max-width: 370px) {
  .cookie-modal {
    padding: 6px 3px 3px 3px;
  }
}

/* ===========================
  TABLES, FORMS & MISC
=========================== */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 28px;
}
th, td {
  padding: 12px 10px;
  border: 1px solid #e4e7ef;
  text-align: left;
}
form label {
  font-weight: 500;
}
input, textarea, select {
  border-radius: 7px;
  border: 1px solid #d1d5db;
  padding: 10px 13px;
  font-size: 1rem;
  width: 100%;
  background: #f8fafc;
  margin-bottom: 14px;
  transition: border 0.1s;
}
input:focus, textarea:focus, select:focus {
  border-color: #244164;
}
::-webkit-input-placeholder { color: #988c7d; opacity:1; }
::-moz-placeholder          { color: #988c7d; opacity:1; }
:-ms-input-placeholder      { color: #988c7d; opacity:1; }
::placeholder              { color: #988c7d; opacity:1; }

/* =======================
 MICRO-INTERACTIONS
======================== */
a, button, .cta-btn, .cookie-btn, .btn {
  transition: background 0.19s, color 0.19s, border-color 0.16s, transform 0.15s;
}

/* =======================
    LIST ALIGNMENT
======================== */
ul, ol {
  padding-left: 22px;
  margin-bottom: 18px;
  line-height: 1.65;
  list-style: disc inside;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1rem;
}
.feature-grid ul, .feature-grid ol {
  padding-left: 0;
  margin-bottom: 0;
}

/* ======================
   ACCENT COLORS
====================== */
.accent-bg {
  background: #AF9164;
  color: #fff;
}
.accent {
  color: #AF9164 !important;
}

/* ======================
   Z-INDEX
====================== */
header, .mobile-menu, .cookie-banner, .cookie-modal-backdrop {
  z-index: 9999;
}

/* ========== Hide from AT/SEO =========== */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
