/* =========================================
   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,
main, 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #F5F7FA;
}
body {
  background: #F5F7FA;
  color: #21324B;
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
a {
  color: #21324B;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #8193A2;
  outline-offset: 2px;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 20px;
}
blockquote {
  quotes: none;
  margin: 0 0 8px 0;
  padding-left: 1.5em;
  border-left: 3px solid #8193A2;
  color: #273e56;
  font-style: italic;
  background: #f8fafc;
  border-radius: 4px;
}

/* =========================================
   Typography
   ========================================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600&display=swap');
@import url('https://fonts.googleapis.com/css?family=Source+Serif+Pro:400,600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 700;
  color: #21324B;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  line-height: 1.18;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 600;
}
p, li, blockquote {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 1rem;
  color: #273e56;
  margin-bottom: 12px;
}
strong, b {
  font-weight: 700;
}
.text-section h3 {
  margin-top: 18px;
}

/* =========================================
   Layout & Spacing
   ========================================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  section, .section {
    padding: 32px 8px;
    margin-bottom: 36px;
  }
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(33, 50, 75, 0.07);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.24s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(33, 50, 75, 0.14);
}
.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: 16px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(33, 50, 75, 0.10);
  margin-bottom: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
  font-size: 1.08rem;
}
.testimonial-card:hover {
  box-shadow: 0 6px 30px 0 rgba(33,50,75,0.13);
  transform: translateY(-2px) scale(1.012);
}
.testimonial-card p {
  margin-bottom: 0;
  font-size: 1rem;
  color: #21324B;
}
.testimonial-card blockquote {
  color: #21324B;
  background: none;
  margin: 0 16px 0 0;
  padding-left: 1.3em;
  border-left: 3px solid #8193A2;
  font-family: 'Source Serif Pro', serif;
}
.feature-grid, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.feature-grid > div, .blog-list article {
  flex: 1 1 260px;
  min-width: 260px;
  background: #fff;
  border-radius: 10px;
  padding: 24px 18px;
  box-shadow: 0 2px 10px rgba(33, 50, 75, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.23s;
}
.feature-grid > div:hover, .blog-list article:hover {
  box-shadow: 0 8px 24px rgba(33,50,75,0.10);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  font-size: 1rem;
  color: #8193A2;
}
.categories span {
  background: #E3E9F0;
  padding: 4px 10px;
  border-radius: 16px;
  color: #21324B;
  margin-right: 6px;
  font-family: 'Source Serif Pro', serif;
}

/* ========================
   HERO HEADER
   ======================== */
.hero {
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 6px 36px rgba(33,50,75,0.11);
  margin-top: 30px;
  margin-bottom: 58px;
  padding: 50px 0 44px 0;
  display: flex;
  align-items: center;
  min-height: 285px;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: #21324B;
}
.hero p {
  font-size: 1.125rem;
  color: #273e56;
}
@media (max-width: 800px) {
  .hero {
    min-height: 180px;
    padding: 36px 0 30px 0;
  }
}
@media (max-width: 650px) {
  .hero {
    padding: 18px 0 14px 0;
    margin-top: 8px;
    margin-bottom: 26px;
    border-radius: 0;
  }
  .hero h1 {
    font-size: 1.35rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* ========================
   NAVIGATION & HEADER
   ======================== */
header {
  background: #F5F7FA;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 101;
  width: 100%;
  box-shadow: 0 1px 8px rgba(33,50,75,0.08);
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1160px;
  gap: 16px;
}
.logo img {
  height: 46px;
  width: auto;
  display: block;
  transition: filter 0.25s;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', serif;
  color: #21324B;
  font-size: 1rem;
  padding: 8px 0;
  text-decoration: none;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #8193A2;
  border-bottom: 2px solid #8193A2;
}
.cta-btn {
  background: #21324B;
  color: #fff;
  border-radius: 28px;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  padding: 9px 32px;
  font-size: 1rem;
  box-shadow: 0 3px 16px rgba(33,50,75,0.10);
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.25s, transform 0.18s;
  margin-left: 18px;
  position: relative;
  z-index: 1;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #8193A2;
  color: #21324B;
  box-shadow: 0 5px 24px rgba(33,50,75,0.14);
  transform: translateY(-2px) scale(1.04);
}

/* ========================
   MOBILE MENU
   ======================== */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #21324B;
  font-size: 2rem;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 8px;
  z-index: 115;
  display: none;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #eaf0f7;
  color: #8193A2;
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(33,50,75,0.96);
  color: #fff;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-102vw);
  transition: transform 0.40s cubic-bezier(.45,.05,.55,.95);
  width: 100vw;
  height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  margin: 24px 22px 8px 0;
  cursor: pointer;
  z-index: 121;
  transition: color 0.18s, background 0.16s;
  border-radius: 7px;
  padding: 6px 19px 6px 9px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #8193A2;
  background: #fff1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 30px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', serif;
  padding: 14px 0 10px 0;
  border-bottom: 1px solid #8193A222;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  border-radius: 8px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #8193A2;
  background: #fff1;
  border-bottom: 1px solid #8193A2;
}
@media (max-width: 1000px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  header .container {
    gap: 5px;
    padding: 8px 12px;
  }
  .logo img {
    height: 38px;
  }
}

/* ========================
   CARDS, FEATURES, LISTS
   ======================== */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
ul, ol {
  font-family: 'Source Serif Pro', Georgia, serif;
  margin-bottom: 16px;
  color: #273e56;
  font-size: 1rem;
}
ul li, ol li {
  margin-bottom: 7px;
  padding-left: 5px;
}
ul li img, ol li img {
  height: 1.35em;
  width: auto;
  margin-right: 9px;
  margin-bottom: -4px;
}


/* ========================
   BLOG CARD STYLES
   ======================== */
.blog-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.blog-list article {
  background: #fff;
  border-radius: 12px;
  flex: 1 1 260px;
  min-width: 260px;
  box-shadow: 0 2px 10px rgba(33,50,75,0.05);
  padding: 23px 18px 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.22s, transform 0.14s;
}
.blog-list article:hover {
  box-shadow: 0 10px 28px rgba(33,50,75,0.13);
  transform: translateY(-3px) scale(1.012);
}

/* ========================
   FOOTER
   ======================== */
footer {
  background: #21324B;
  color: #F5F7FA;
  font-family: 'Source Serif Pro', Georgia, serif;
  padding: 36px 0 24px 0;
  margin-top: 24px;
  box-shadow: 0 -2px 16px rgba(33,50,75,0.16);
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #F5F7FA;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  transition: color 0.18s;
  letter-spacing: 0.03em;
  opacity: 0.83;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #8193A2;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.98rem;
  color: #d3e0f5;
}
.footer-contact img {
  height: 1em;
  width: auto;
  margin-right: 8px;
  margin-bottom: -2px;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    padding: 0 10px;
  }
}

/* ================================
   COOKIE CONSENT BANNER & MODAL
   ================================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #21324B;
  color: #fff;
  z-index: 250;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  box-shadow: 0 -2px 14px rgba(33,50,75,0.14);
  gap: 18px;
  font-size: 1rem;
  transition: transform 0.4s, opacity 0.3s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120px);
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  background: #FFF;
  color: #21324B;
  border-radius: 24px;
  padding: 7px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s, border 0.18s;
  margin-left: 2px;
  box-shadow: 0 2px 5px rgba(33,50,75,0.09);
}
.cookie-btn.primary {
  background: #8193A2;
  color: #FFF;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #F5F7FA;
  color: #21324B;
}
.cookie-btn.primary:hover, .cookie-btn.primary:focus {
  background: #21324B;
  color: #FFF;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 10px;
    font-size: 0.98rem;
    gap: 16px;
  }
  .cookie-buttons {
    flex-direction: column;
    gap: 9px;
    width: 100%;
    align-items: flex-start;
  }
}
/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(33,50,75,0.72);
  z-index: 251;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  color: #21324B;
  border-radius: 17px;
  box-shadow: 0 8px 34px 0 rgba(33,50,75,0.18);
  padding: 34px 28px 28px 28px;
  min-width: 290px;
  max-width: 95vw;
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.1rem;
  position: relative;
  animation: modalFadeIn 0.5s;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal-content h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #21324B;
  width: 20px;
  height: 20px;
  margin-right: 9px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px; right: 20px;
  background: none;
  border: none;
  color: #8193A2;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 6px;
  padding: 2px 11px;
  transition: background 0.13s, color 0.18s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #21324B;
  background: #EEFAFF;
}

/* ========================
   GENERAL ELEMENTS
   ======================== */
.text-section {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.text-section ul, .text-section ol {
  margin-top: 5px;
  margin-bottom: 12px;
  padding-left: 20px;
}
.text-section p {
  margin-bottom: 8px;
}

/* ========================
   Utility & Misc
   ======================== */
::-webkit-scrollbar {
  background: #F5F7FA;
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: #DCE2E9;
  border-radius: 5px;
}

hr {
  border: 0;
  border-bottom: 1px solid #E3E9F0;
  margin: 30px 0;
}

/* ========================
   RESPONSIVE RULES
   ======================== */
@media (max-width: 1024px) {
  .container {
    max-width: 940px;
    padding: 0 10px;
  }
  .feature-grid, .card-container, .blog-list {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .blog-list {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid > div, .blog-list article {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width:600px) {
  section, .section {
    padding: 18px 2px;
    margin-bottom: 16px;
  }
  h1 {
    font-size: 1.27rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  p, li, .footer-contact {
    font-size: 0.97rem;
  }
  .testimonial-card {
    padding: 14px;
    font-size: 0.98rem;
  }
}

/* ===========================================
   MICRO-INTERACTIONS/ANIMATIONS (Subtle)
   =========================================== */
a, button, .cta-btn, .card, .testimonial-card, .cookie-btn {
  transition: box-shadow 0.18s, background 0.18s, color 0.18s, border 0.18s, transform 0.19s;
}

/* ===========================================
   Accessibility: Focus Outlines
   =========================================== */
a:focus, button:focus, .cookie-btn:focus {
  outline: 2px solid #8193A2 !important;
  outline-offset: 2px;
  z-index: 1;
}

/* ===========================================
   Elegant Classic Shadow/Borders (across site)
   =========================================== */
.card, .feature-grid > div, .blog-list article, .testimonial-card {
  border: 1px solid #E3E9F0;
}

/* ========================
   Hide Utility/Accessibility
   ======================== */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* =======================================
   Elegant Classic Small Details
   ======================================= */
.card, .feature-grid > div, .testimonial-card, .blog-list article {
  border-radius: 12px;
  background: #fff;
}
/* Slight color accent for icon placeholders if needed */
.feature-grid > div img, .blog-list article img, .card img, .text-section img {
  filter: grayscale(20%) brightness(0.93);
  margin-bottom: 6px;
  border-radius: 4px;
  max-width: 44px;
}

/* ========================
   Print Styles
   ======================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
  section, .section {
    background: #fff !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}
