/* --- 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;
  background: transparent;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  min-height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #222E36;
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-text-size-adjust: 100%;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #395B7F;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #395B7F;
  outline-offset: 2px;
}
a:hover {
  color: #222E36;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 8px;
}
/* --- BRAND FONTS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #222E36;
  font-weight: 600;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, blockquote {
  margin-bottom: 14px;
}
blockquote {
  font-style: italic;
  color: #395B7F;
  border-left: 4px solid #D7F4EA;
  padding-left: 18px;
  margin-bottom: 4px;
}
cite {
  display: block;
  color: #888;
  margin-top: 8px;
  font-style: normal;
  font-size: 1rem;
}
strong {
  font-weight: 600;
}

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  border-bottom: 1px solid #eef4f8;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(57,91,127,0.04);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 82px;
}
header img {
  height: 44px;
  min-width: 44px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #395B7F;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 4px;
  transition: color 0.2s;
}
header nav a:hover {
  color: #222E36;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #395B7F;
  color: #fff !important;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 12px 32px;
  border-radius: 32px;
  box-shadow: 0 2px 18px rgba(57,91,127,0.05);
  border: none;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.25s, transform 0.15s;
  margin-left: 14px;
}
.cta:hover, .cta:focus {
  background: #22364a;
  box-shadow: 0 2px 24px rgba(57,91,127,0.13);
  transform: translateY(-2px) scale(1.03);
  outline: none;
  color: #fff;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  color: #395B7F;
  font-size: 2rem;
  padding: 6px 10px;
  margin-left: 8px;
  border-radius: 4px;
  display: none;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 110;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F9EDC6;
  outline: none;
  color: #222E36;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  max-width: 100vw;
  background: #fff;
  z-index: 120;
  box-shadow: 0 4px 36px rgba(57,91,127, 0.13);
  transform: translateX(-100%);
  transition: transform 0.39s cubic-bezier(.5,.8,.1,1);
  display: flex;
  flex-direction: column;
  padding: 0 0 40px 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 22px 8px 0;
  background: none;
  border: none;
  color: #395B7F;
  font-size: 2.2rem;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 5px;
  transition: background 0.18s;
  z-index: 200;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #D7F4EA;
  color: #222E36;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 16px 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  color: #395B7F;
  padding: 8px 0;
  transition: color 0.19s, background 0.18s;
  width: 100%;
  border-radius: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #D7F4EA;
  color: #222E36;
  outline: none;
}

/* --- BASIC SECTIONS LAYOUT --- */
main {
  padding-bottom: 60px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.section:last-child {
  margin-bottom: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 0;
}
.text-section {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* --- HERO SECTION --- */
.hero {
  padding: 54px 0 64px 0;
  background: #F9EDC6;
  box-shadow: 0 4px 30px rgba(57,91,127,0.03);
  border-bottom: 1px solid #eee;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero h1 {
  color: #395B7F;
  font-size: 2.6rem;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.16rem;
  color: #395B7F;
  margin-bottom: 30px;
}
.hero .cta {
  margin-top: 10px;
}

/* --- FEATURE / CARD GRIDS (flexbox) --- */
.feature-grid, .benefit-grid, .faq-list, .card-container, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 18px;
  justify-content: flex-start;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(57,91,127,0.07);
  padding: 28px 24px 20px 24px;
  min-width: 240px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.14s;
}
.card:hover {
  box-shadow: 0 10px 32px rgba(57,91,127,0.13);
  transform: translateY(-2px) scale(1.015);
}

.feature-grid > div, .benefit-grid > div, .faq-list > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(57,91,127,0.07);
  padding: 24px 18px 18px 18px;
  flex: 1 1 260px;
  min-width: 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: box-shadow 0.2s, transform 0.13s;
}
.feature-grid img, .benefit-grid img {
  height: 40px;
  width: 40px;
  margin-bottom: 4px;
}
.feature-grid > div:hover, .benefit-grid > div:hover {
  box-shadow: 0 8px 22px rgba(57,91,127,0.13);
  transform: translateY(-2px) scale(1.01);
}

.faq-list > div {
  box-shadow: 0 1px 4px rgba(57,91,127,0.06);
  transition: box-shadow 0.16s, background 0.13s;
}
.faq-list > div:hover {
  box-shadow: 0 4.5px 22px rgba(57,91,127,0.10);
  background: #F9EDC6;
}

/* --- CALLOUT BOX --- */
.callout-box {
  background: #D7F4EA;
  color: #222E36;
  border-radius: 10px;
  padding: 18px 18px 14px 18px;
  margin: 16px 0 10px 0;
  font-size: 1rem;
  box-shadow: 0 2px 12px rgba(57,91,127,0.06);
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(57,91,127,0.09);
  max-width: 650px;
  color: #222E36;
  font-size: 1.08rem;
  transition: box-shadow 0.18s, transform 0.12s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(57,91,127,0.15);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card blockquote {
  color: #395B7F;
  border: none;
  padding-left: 0;
  font-size: 1.1rem;
  font-style: italic;
}
.testimonial-card cite {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #888;
  margin-left: 14px;
}

/* --- BLOG TEASERS --- */
.blog-teaser {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(57,91,127,0.08);
  padding: 28px 22px 22px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.1s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-teaser h3 {
  margin-bottom: 8px;
}
.blog-teaser a {
  align-self: flex-start;
  color: #395B7F;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 1px solid #D7F4EA;
  border-radius: 2px;
  transition: color 0.15s, background 0.14s;
}
.blog-teaser a:hover {
  background: #D7F4EA;
  color: #222E36;
}
.blog-teaser:hover {
  box-shadow: 0 7px 26px rgba(57,91,127,0.13);
  transform: translateY(-1px) scale(1.011);
}

/* --- FOOTER --- */
footer {
  background: #f9fafb;
  border-top: 1px solid #eef4f8;
  padding: 38px 0 0 0;
  font-size: 1rem;
}
.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 20px;
}
.footer-main nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 18px;
  align-items: center;
}
.footer-main nav a, .footer-main nav span {
  color: #395B7F;
  font-weight: 400;
  font-size: 0.98rem;
  opacity: 0.85;
  transition: color 0.15s;
  margin-right: 8px;
}
.footer-main nav a:hover {
  color: #222E36;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #666;
  font-size: 0.98rem;
}
.footer-contact img {
  width: 19px;
  vertical-align: middle;
  margin-right: 6px;
}
.footer-legal {
  border-top: 1px solid #eef4f8;
  padding-top: 14px;
  color: #bbb;
  font-size: 0.98rem;
  text-align: right;
}

/* --- INPUTS & FORMS --- */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  border: 1px solid #dbe6ee;
  border-radius: 8px;
  font-size: 1.08rem;
  padding: 12px 14px;
  background: #f7fbfd;
  color: #222E36;
  margin-bottom: 14px;
  outline: none;
  transition: border 0.17s, box-shadow 0.17s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #395B7F;
  box-shadow: 0 2px 8px rgba(57,91,127,0.08);
}

button, [type="button"], [type="submit"] {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #395B7F;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 26px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.13s, box-shadow 0.18s;
}
button:hover, button:focus {
  background: #22364a;
  color: #fff;
  outline: none;
  box-shadow: 0 2px 16px rgba(57,91,127,0.06);
}

/* --- COOKIES BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  background: #fff;
  border-top: 1px solid #D7F4EA;
  box-shadow: 0 -4px 24px rgba(57,91,127,0.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  padding: 22px 18px 18px 28px;
  max-width: 99vw;
  transition: transform 0.32s cubic-bezier(.4,.85,.4,1);
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(140%);
}
.cookie-banner__message {
  flex: 3 3 360px;
  color: #222E36;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn {
  padding: 9px 18px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  transition: background 0.15s, color 0.15s;
  background: #D7F4EA;
  color: #395B7F;
}
.cookie-btn.accept {
  background: #395B7F;
  color: #fff;
}
.cookie-btn.reject {
  background: #F9EDC6;
  color: #222E36;
}
.cookie-btn.settings {
  background: #D7F4EA;
  color: #395B7F;
}
.cookie-btn:hover, .cookie-btn:focus {
  opacity: 0.88;
  outline: none;
}

/* COOKIE MODAL */
#cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 98vw;
  max-width: 420px;
  z-index: 2000;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 13px 52px rgba(57,91,127,0.20);
  transform: translate(-50%, -60%) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s, transform 0.29s;
  padding: 35px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
#cookie-modal h2 {
  font-size: 1.4rem;
  color: #395B7F;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 20px;
  background: #D7F4EA;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: background 0.16s;
  margin-left: 10px;
}
.cookie-toggle:checked {
  background: #395B7F;
}
.cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.15s;
}
.cookie-toggle:checked:before {
  left: 19px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal-actions .cookie-btn {
  min-width: 100px;
}
#cookie-modal .close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #395B7F;
  font-size: 1.45rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 5px;
  transition: background 0.18s;
}
#cookie-modal .close:hover, #cookie-modal .close:focus {
  background: #D7F4EA;
  color: #222E36;
  outline: none;
}

/* --- SPACING & FLEX LAYOUTS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- RESPONSIVE DESIGN (MOBILE FIRST) --- */
@media (max-width: 1024px) {
  .container {
    max-width: 99vw;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .benefit-grid, .card-container, .content-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  header .container {
    height: 68px;
    padding-top: 2px;
    gap: 8px;
  }
  header nav {
    display: none;
  }
  .cta {
    padding: 10px 22px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: block;
  }

  .section {
    padding: 28px 4vw;
    margin-bottom: 44px;
  }
  .hero {
    padding: 34px 0 36px 0;
  }
  .hero h1 {
    font-size: 1.64rem;
  }
  .feature-grid > div, .benefit-grid > div, .faq-list > div, .card {
    min-width: 98vw;
    flex: 1 1 98vw;
    padding: 20px 6vw 15px 6vw;
  }
  .text-section {
    max-width: 99vw;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    max-width: 97vw;
  }
  .footer-main, .footer-main nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  .footer-legal {
    text-align: left;
    font-size: 0.97rem;
    padding-top: 8px;
  }
  .blog-teaser {
    padding: 17px 2vw 14px 3vw;
  }
}
@media (max-width: 575px) {
  .section {
    padding: 18px 2vw;
    margin-bottom: 32px;
  }
  .feature-grid, .benefit-grid, .card-container, .content-grid, .faq-list {
    flex-direction: column;
    gap: 15px;
  }
  .callout-box {
    padding: 16px 8px 12px 10px;
    font-size: 0.97rem;
  }
  input[type="text"], input[type="email"], textarea {
    font-size: 1rem;
    padding: 9px 8px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 3vw 12px 3vw;
    gap: 11px;
  }
  #cookie-modal {
    max-width: 99vw;
    padding: 29px 7vw 15px 7vw;
  }
}
@media (max-width: 450px) {
  .blog-teaser h3 {
    font-size: 1.01rem;
    margin-bottom: 5px;
  }
  .feature-grid img, .benefit-grid img {
    height: 29px;
    width: 29px;
  }
  h2 {
    font-size: 1.38rem;
  }
  h1 {
    font-size: 1.12rem;
  }
  .testimonial-card {
    font-size: 0.995rem;
    padding: 12px 3vw 12px 5vw;
  }
}

/* --- MICRO ANIMATIONS --- */
.cta, .cookie-btn, .card, .feature-grid > div, .benefit-grid > div, .blog-teaser, .testimonial-card {
  transition: box-shadow 0.13s, background 0.15s, transform 0.13s;
}

/* --- ACCESSIBLE FOCUS STYLES --- */
a:focus, button:focus, .cta:focus, input:focus, .cookie-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid #395B7F;
  outline-offset: 2px;
}

/* --- UTILITIES --- */
.hide {
  display: none !important;
}

/* --- OVERRIDE AUTO MARGINS --- */
section {
  margin-bottom: 0;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-thumb {
  background: #D7F4EA;
  border-radius: 3px;
}
::-webkit-scrollbar-track {
  background: #fff;
}

/* --- END CSS --- */
