/* CSS RESET and BASE STYLES */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFF;
  color: #2D2D2D;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
a {
  color: #21518E;
  text-decoration: none;
  transition: color 0.3s;
}
a:hover, a:focus {
  color: #24A287;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.5em;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
strong { font-weight: 700; }

/* BRANDING VARIABLES (for fallback purposes) */
:root {
  --primary: #21518E;
  --secondary: #24A287;
  --accent: #F2EDE5;
  --text: #2D2D2D;
  --white: #FFF;
  --shadow: 0 4px 20px rgba(33,81,142,0.09);
  --shadow-subtle: 0 2px 10px rgba(33,81,142,0.07);
  --radius: 18px;
  --radius-sm: 10px;
  --spacing: 24px;
  --transition: 0.26s cubic-bezier(.42,0,.11,1.01);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  line-height: 1.2;
}
h1 {
  font-size: 2.25rem; /* ~36px */
  font-weight: 800;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.75rem; /* ~28px */
  font-weight: 700;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  font-weight: 600;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.125rem;
  font-weight: 600;
}
p, ul, ol {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 16px;
}
@media (min-width: 700px) {
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2.125rem; }
  h3 { font-size: 1.35rem; }
}

body, p, li, label, input, button, textarea {
  font-family: 'Roboto', Arial, sans-serif;
}

/* GENERAL CONTAINERS & LAYOUT */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
}

@media (max-width: 700px) {
  .section {
    padding: 28px 4vw;
    margin-bottom: 36px;
  }
}

/* FLEX AND GAP UTILITIES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
  padding: 24px;
  flex: 1 1 320px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  min-width: 0;
}
@media (min-width: 700px) {
  .content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 32px;
    flex-wrap: wrap;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

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

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 2 1 440px;
}
.highlighted-article {
  background: #FFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  flex: 1 1 320px;
  margin-left:0;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 1024px) {
  .content-wrapper {
    flex-direction: row;
    gap: 42px;
  }
  .blog-list {
    max-width: 60%;
  }
  .highlighted-article {
    margin-top: 0;
    margin-left: 32px;
  }
}

/* MAIN NAVIGATION */
header {
  background: var(--white);
  box-shadow: var(--shadow-subtle);
  position: relative;
  z-index: 52;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1040px;
  padding: 18px 16px;
  margin: 0 auto;
  width: 100%;
}
.main-nav img {
  height: 46px;
  width: auto;
  border-radius: 0;
}
.main-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  align-items: center;
}
.main-nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--primary);
  transition: background var(--transition), color var(--transition);
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  background: var(--accent);
  color: var(--secondary);
}
.cta-btn {
  background: var(--secondary);
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 11px 28px;
  border: none;
  border-radius: 32px;
  box-shadow: 0 2px 8px rgba(36,162,135,0.15);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform .12s;
  text-align: center;
  outline: none;
  display: inline-block;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 4px 24px rgba(33,81,142,0.12);
  transform: translateY(-2px) scale(1.03);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
  position: absolute;
  top: 16px;
  right: 10px;
  z-index: 110;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s;
}
@media (max-width: 990px) {
  .main-nav ul, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
.mobile-menu {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,81,142,0.96);
  transform: translateX(-100vw);
  transition: transform 0.28s cubic-bezier(.77,0,.175,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 30px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--secondary);
  color: var(--white);
  border:none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.6rem;
  position: absolute;
  top: 20px;
  right: 16px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 80px;
  width: 100vw;
  align-items: center;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  color: var(--accent);
  background: transparent;
  padding: 12px 28px;
  border-radius: 24px;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
  text-align: center;
  width: 80vw;
  max-width: 440px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
body.mobile-menu-open {
  overflow: hidden;
}

/* HERO SECTIONS */
.hero {
  background: linear-gradient(96deg, #FDEED9 90%, #f2ede5 100%);
  padding: 56px 0 48px 0;
  margin-bottom: 24px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-subtle);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 540px;
}
.hero h1 {
  color: var(--primary);
}
.hero p {
  font-size: 1.15rem;
  color: #3b3b3b;
  margin-bottom: 12px;
}
.hero .cta-btn {
  margin-top: 18px;
}
@media (max-width: 768px) {
  .hero {
    padding: 38px 0 24px 0;
  }
  .hero .container {
    padding: 0 6vw;
  }
  .hero .content-wrapper {
    max-width: 95vw;
  }
}

/* BUTTONS and LINKS */
button, [type=button], [type=submit] {
  font-family: inherit;
  font-size: 1rem;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 32px;
  padding: 10px 32px;
  cursor: pointer;
  outline: none;
  transition: background var(--transition), box-shadow var(--transition), transform .12s;
}
button:hover, button:focus {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-2px) scale(1.03);
}

/* LISTS, FEATURES, ICONS */
.text-section ul,
.text-section ol,
.content-wrapper ul,
.content-wrapper ol,
.content-wrapper li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.07rem;
  margin-bottom: 11px;
}
ul {
  list-style: disc inside;
  margin-bottom: 16px;
}
ol {
  list-style: decimal inside;
  margin-bottom: 16px;
}
.text-section ul li::marker, .content-wrapper ul li::marker {
  color: var(--secondary);
  font-size: 1.2em;
}
li img {
  vertical-align: middle;
  margin-right: 10px;
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 8px;
  background: #FFF;
  box-shadow: var(--shadow-subtle);
}

/* TESTIMONIALS */
.testimonial-card {
  background: var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-subtle);
  color: var(--text);
  padding: 20px;
  margin-bottom: 20px;
  max-width: 520px;
  font-size: 1.07rem;
}
.testimonial-card p {
  font-style: italic;
  line-height: 1.5;
  color: var(--primary);
}
.testimonial-card span {
  color: #6e6761;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
@media (min-width: 700px) {
  .content-wrapper .testimonial-card {
    min-width: 300px;
    flex: 1 1 320px;
  }
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 32px 0 16px 0;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: 40px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 10px;
}
footer nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  font-size: 1.02rem;
  background: none;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.14s, color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  background: rgba(36,162,135,0.11);
  color: var(--secondary);
}
.footer-info {
  text-align: center;
  font-size: 0.97rem;
  color: var(--accent);
  margin-top: 6px;
}

/* BLOG LIST STYLES */
article {
  background: #FFF;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-subtle);
  padding: 18px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
article h3 {
  font-size: 1.13rem;
  color: var(--primary);
  margin-bottom: 6px;
}
article a {
  color: var(--secondary);
  font-weight: 600;
  margin-top: 6px;
  font-size: 1.04rem;
}
article a:hover, article a:focus {
  color: var(--primary);
}

/* UTILITY */
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.mt-32 { margin-top: 32px; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 -4px 20px rgba(33,81,142,0.08);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 26px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 2222;
  animation: slideUpBanner 0.37s cubic-bezier(.77,0,.175,1) 1;
}
@keyframes slideUpBanner {
  from {transform: translateY(60px); opacity:0;}
  to {transform: translateY(0); opacity:1;}
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-banner button {
  min-width: 110px;
  font-size: 1rem;
  padding: 8px 20px;
  font-weight: 600;
}
.cookie-banner .cookie-settings-btn {
  background: none;
  color: var(--primary);
  border: 2px solid var(--primary);
  transition: color .19s, background .19s;
}
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-settings-btn:focus {
  background: var(--primary);
  color: var(--accent);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 3000;
  background: rgba(33,81,142,0.50);
  justify-content: center;
  align-items: center;
  animation: fadeModalBg .22s;
}
@keyframes fadeModalBg {
  from { opacity: 0;}
  to { opacity: 1;}
}
.cookie-modal.active { display: flex; }
.cookie-modal .modal-content {
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 420px;
  width: 92vw;
  padding: 34px 24px 20px 24px;
  position: relative;
  animation: popModal .29s cubic-bezier(0.44,0,0.16,1) 1;
}
@keyframes popModal {
  from {transform: translateY(60px) scale(0.99); opacity:0;}
  to {transform: translateY(0) scale(1); opacity:1;}
}
.cookie-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.cookie-modal .modal-close {
  background: var(--secondary);
  color: var(--white);
  border:none;
  border-radius: 50%;
  width: 38px; height: 38px;
  font-size: 1.38rem;
  display: flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  background: var(--primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.cookie-modal .cookie-category label {
  font-weight: 500;
  color: var(--primary);
  font-size: 1.09rem;
}
.cookie-modal .cookie-category input[type=checkbox] {
  width: 20px; height: 20px;
  accent-color: var(--secondary);
  border-radius: 6px;
  border: 2px solid var(--primary);
  margin-right: 5px;
  outline: none;
}
.cookie-modal .cookie-category input[disabled] {
  opacity: .7;
}
.cookie-modal .cookie-footer {
  margin-top: 16px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal button {
  padding: 9px 18px;
}

/* Responsive adjustments */
@media (max-width: 700px) {
  .main-nav {
    padding: 11px 2vw;
  }
  .section { padding: 18px 6vw; }
  .container { padding: 0 2vw; }
  .content-wrapper, .blog-list, .highlighted-article {
    gap: 16px;
  }
}
@media (max-width: 540px) {
  h1 {font-size: 1.55rem;}
  h2 {font-size: 1.21rem;}
  h3 {font-size: 1.08rem;}
  .footer-info { font-size: 0.93rem; }
  .cookie-modal .modal-content {
    padding: 13vw 3vw 20px 3vw;
  }
}

/* Micro-interaction - subtle card hover */
.card, .highlighted-article, article {
  transition: box-shadow 0.23s, transform 0.16s;
}
.card:hover, .highlighted-article:hover, article:hover {
  box-shadow: 0 7px 24px rgba(33,81,142,0.13);
  transform: translateY(-2px) scale(1.01);
}

/* Selection color for accessibility */
::selection {
  background: #FDEED9;
  color: var(--primary);
}

/* INPUTS (defaults, if forms get added) */
input, textarea {
  border: 1.5px solid #E1E6EA;
  background: #FFF;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 16px;
  outline: none;
  transition: border 0.17s;
}
input:focus, textarea:focus {
  border-color: var(--secondary);
}

/* VISUAL HIERARCHY and SPACING for mobile-first */
section + section, .container + .container {
  margin-top: 32px;
}
@media (min-width: 900px) { 
  section + section, .container + .container {
    margin-top: 60px;
  }
}

/* Prevent overlapping, maintain gaps between all cards/sections */
.content-wrapper > *:not(:last-child), .card-container > *:not(:last-child), .blog-list > *:not(:last-child) {
  margin-bottom: 20px;
}

/* END OF CSS */
