/* === CSS RESET & BASE TYPOGRAPHY === */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F8FAFB;
  color: #203356;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #203356;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #25B981;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #203356;
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
}
h4, h5, h6 {
  font-size: 1.125rem;
}
p {
  margin-bottom: 14px;
  font-size: 1rem;
}
strong {
  font-weight: 700;
}
small {
  color: #6D7CA4;
  font-size: 0.9375rem;
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(32,51,86,0.06);
}

/* === FLEXBOX MANDATORY PATTERNS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(32,51,86,0.07);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F5F8F9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(32,51,86,0.08);
  color: #203356;
  margin-bottom: 20px;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === HEADER & NAVIGATION === */
header {
  width: 100%;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(32,51,86,0.02);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1200;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #203356;
  font-weight: 500;
  transition: color 0.2s;
  padding: 8px 10px;
  border-radius: 6px;
}
nav a.cta-btn {
  background: #25B981;
  color: #FFFFFF;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(37,185,129,0.09);
  transition: background 0.22s, box-shadow 0.22s;
}
nav a.cta-btn:hover, nav a.cta-btn:focus {
  background: #203356;
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(32,51,86,0.16);
}
nav a:hover:not(.cta-btn), nav a:focus:not(.cta-btn) {
  color: #25B981;
  background: #EDF7F2;
}
header img {
  height: 32px;
  margin-right: 14px;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #203356;
  cursor: pointer;
  z-index: 1021;
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #FFFFFF;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.71,0.07,0.37,0.99);
  z-index: 2500;
  box-shadow: 0 6px 36px rgba(32,51,86,0.16);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: #203356;
  margin: 18px 24px 4px 0;
  cursor: pointer;
  transition: color 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #25B981;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  color: #203356;
  padding: 12px 0;
  border-radius: 6px;
  width: 100%;
  display: block;
  font-weight: 500;
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #EDF7F2;
  color: #25B981;
}

/* === CTA BUTTONS === */
.cta-btn {
  background: #25B981;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  display: inline-block;
  font-size: 1.06rem;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(37,185,129,0.08);
  transition: background 0.18s, box-shadow 0.25s, color 0.18s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #203356;
  color: #fff;
  box-shadow: 0 4px 28px rgba(32,51,86,0.17);
}

/* == Feature Grid (icon sections)== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 34px;
  margin-top: 14px;
  margin-bottom: 16px;
}
.feature-grid > div {
  background: #F5F8F9;
  border-radius: 14px;
  flex: 1 1 240px;
  padding: 28px 20px 22px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 1px 8px rgba(32,51,86,0.06);
  gap: 12px;
  min-width: 220px;
  max-width: 330px;
}
.feature-grid img {
  height: 44px;
  width: 44px;
  margin-bottom: 12px;
}
.feature-grid h3 {
  font-size: 1.23rem;
  margin-bottom: 7px;
  color: #203356;
}

/* == Article/Card/Grid == */
.article-preview {
  background: #FFFFFF;
  border: 1.5px solid #E5ECF3;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(32,51,86,0.04);
  padding: 22px 18px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.article-preview:hover, .article-preview:focus-within {
  box-shadow: 0 4px 18px rgba(32,51,86,0.13);
}

.card {
  margin-bottom: 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* == Testimonials == */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  background: #F5F8F9;
  color: #203356;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(32,51,86,0.08);
}
.testimonial-card p {
  color: #203356;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: #25B981;
  font-weight: 700;
}

/* = Blog Category Buttons = */
main button {
  background: #F0F3F6;
  border: none;
  border-radius: 7px;
  font-family: 'Roboto', Arial, sans-serif;
  color: #203356;
  font-size: 0.98rem;
  padding: 7px 18px;
  margin-right: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.18s, color 0.16s;
}
main button:hover, main button.active {
  background: #25B981;
  color: #fff;
}

/* === CONTACT & MAP === */
.contact-information {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.map-location {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.04rem;
  margin-bottom: 10px;
  color: #203356;
}
.map-location img {
  width: 18px;
  height: 18px;
}

/* === FOOTER === */
footer {
  width: 100%;
  background: #203356;
  color: #fff;
  padding: 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
  padding: 38px 20px 28px 20px;
}
.footer-brand img {
  height: 33px;
  margin-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #F2F9F2;
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #25B981;
}
.footer-contact {
  font-size: 1.03rem;
  line-height: 1.65;
  color: #EDF7F2;
}
.footer-contact img {
  height: 16px;
  width: 16px;
  margin-right: 5px;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  padding: 22px 20px 20px 20px;
  background: #FFFFFF;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -2px 16px rgba(32,51,86,0.10);
  z-index: 4000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  transition: transform 0.36s cubic-bezier(0.71,0.07,0.37,0.99);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner-message {
  color: #203356;
  font-size: 1.08rem;
  max-width: 480px;
  line-height: 1.7;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  background: #F5F8F9;
  color: #203356;
  border: none;
  border-radius: 7px;
  padding: 10px 23px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  margin-right: 4px;
  margin-bottom: 3px;
  transition: background 0.20s, color 0.20s;
}
.cookie-btn.accept {
  background: #25B981;
  color: #fff;
  font-weight: 600;
}
.cookie-btn.reject {
  background: #E8EAED;
  color: #203356;
}
.cookie-btn.settings {
  background: #EDF7F2;
  color: #25B981;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #203356;
  color: #fff;
}
.cookie-btn.settings:hover {
  background: #25B981;
}

/* === COOKIE MODAL === */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(32,51,86,0.28);
  z-index: 4100;
  display: none;
}
.cookie-modal-backdrop.open {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadein 0.23s;
}
@keyframes fadein {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 48px rgba(32,51,86,0.23);
  width: 95vw;
  max-width: 430px;
  padding: 32px 26px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 4130;
  animation: popin 0.32s cubic-bezier(0.71,0.07,0.37,0.99);
}
@keyframes popin {
  from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #203356;
  cursor: pointer;
  transition: color 0.12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #25B981;
}
.cookie-modal h3 {
  color: #203356;
  font-size: 1.22rem;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.cookie-category label {
  font-size: 1rem;
  color: #203356;
}
.cookie-toggle {
  appearance: none;
  width: 44px;
  height: 24px;
  background: #E8EAED;
  border-radius: 16px;
  position: relative;
  outline: none;
  transition: background 0.19s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #25B981;
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background: #FFF;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.13);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.2s;
}
.cookie-toggle:checked:before {
  left: 22px;
}
.cookie-category.disabled label {
  color: #C0C6DB;
}
.cookie-category.disabled .cookie-toggle,
.cookie-category.disabled .cookie-toggle:before {
  background: #F0F3F6;
  pointer-events: none;
}

/* === FORM ELEMENTS === */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border: 1.5px solid #E5ECF3;
  padding: 12px;
  border-radius: 8px;
  background: #FFFFFF;
  margin-bottom: 12px;
  width: 100%;
  transition: border 0.17s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #25B981;
}

/* === SPACING & HIERARCHY === */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(32,51,86,0.06);
  background: #fff;
}
.section:last-child {
  margin-bottom: 0;
}

/* === RESPONSIVE BREAKPOINTS (MOBILE FIRST) === */
@media (max-width: 1100px) {
  .footer-contact, .footer-brand, .footer-nav {
    flex: 1 1 240px;
    min-width: 180px;
  }
  .container {
    max-width: 930px;
  }
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 36px;
    align-items: flex-start;
  }
  .feature-grid {
    gap: 26px 16px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .section, section {
    margin-bottom: 38px;
    padding: 23px 0;
  }
  .feature-grid {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
  .container {
    padding-left: 10px; padding-right: 10px;
  }
  .article-preview { padding: 15px 8px; }
  .testimonial-card, .card {
    padding: 18px 8px;
    gap: 10px;
  }
  .footer-contact {
    font-size: 0.98rem;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin: 0 18px 0 0;
    background: none;
  }
  header .container {
    height: 62px;
    padding-left: 12px;
    padding-right: 2px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
    padding: 17px 8px 15px 8px;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.37rem; }
  h2 { font-size: 1.08rem; }
  .container { padding-left: 6px; padding-right: 6px; }
  .footer-brand img {
    height: 21px;
  }
  .footer-contact {
    font-size: 0.90rem;
  }
}

/* === MICRO-INTERACTIONS === */
.card, .feature-grid > div, .testimonial-card, .article-preview {
  transition: box-shadow 0.21s, transform 0.18s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover, .article-preview:hover {
  box-shadow: 0 6px 24px rgba(32,51,86,0.14);
  transform: translateY(-2px) scale(1.012);
}

/* === Z-INDEX LAYERS === */
.mobile-menu { z-index: 2500; }
.cookie-banner { z-index: 4000; }
.cookie-modal-backdrop { z-index: 4100; }
.cookie-modal { z-index: 4130; }

/* === CUSTOM SCROLLBAR FOR WEBKIT === */
::-webkit-scrollbar {
  width: 8px;
  background: #E5ECF3;
}
::-webkit-scrollbar-thumb {
  background: #CED5E3;
  border-radius: 4px;
}

/* === UTILITIES === */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.align-center { align-items: center; }

/* === PRINT FRIENDLY === */
@media print {
  .mobile-menu, .cookie-banner, .cookie-modal-backdrop, header, footer {
    display: none !important;
  }
}
