/* 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #fff;
  color: #174168;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

/* BASE TYPOGRAPHY */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background: #F1EAEA;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial', sans-serif;
  color: #174168;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}
h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: 2px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

p, ul, ol, li, dl, dd {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #174168;
  font-size: 1rem;
  margin-bottom: 12px;
}
ul, ol {
  padding-left: 28px;
}
ul li, ol li {
  margin-bottom: 8px;
}

strong {
  font-weight: 700;
}

blockquote {
  font-family: 'Montserrat', cursive, sans-serif;
  font-size: 1.25rem;
  color: #174168;
  padding-left: 18px;
  border-left: 5px solid #28A081;
  margin-bottom: 12px;
}

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.content-wrapper {
  background: rgba(255,255,255,0.96);
  border-radius: 32px 32px 42px 10px;
  box-shadow: 0 4px 28px rgba(23,65,104,0.11);
  padding: 32px 24px;
  margin: 0 0 36px 0;
  position: relative;
  z-index: 1;
  transition: box-shadow .2s;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 4px 20px rgba(23,65,104,0.09);
  border-bottom: 3px solid #28A081;
  margin-bottom: 10px;
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  position: relative;
  padding: 0 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
header nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .18s, color .18s;
}
header nav a:not(.cta-btn):hover, header nav a:focus {
  background: #28A081;
  color: #fff;
}
.cta-btn {
  background: #174168;
  color: #fff!important;
  border-radius: 16px 32px 12px 22px;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 25px;
  margin-left: 14px;
  box-shadow: 0 2px 8px rgba(23,65,104,0.11);
  outline: none;
  border: none;
  cursor: pointer;
  transition: background .21s, transform .18s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #28A081;
  color: #fff;
  transform: translateY(-3px) scale(1.03) rotate(-1deg);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #174168;
  cursor: pointer;
  z-index: 25;
  margin-left: 18px;
  outline: none;
  transition: color .2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #28A081;
}
.mobile-menu {
  position: fixed;
  z-index: 1001;
  background: #fff;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  transform: translateX(105%);
  transition: transform .38s cubic-bezier(.63,0,.33,1);
  box-shadow: 0 4px 28px rgba(44,74,140,0.20);
  padding: 32px 24px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #28A081;
  font-size: 2.5rem;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 8px;
  outline: none;
  transition: color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #174168;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  padding: 10px 0;
  color: #174168;
  border-radius: 0;
  transition: color .19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #28A081;
  background: none;
}

@media (max-width: 1100px) {
  .container {
    max-width: 960px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 760px;
  }
}
@media (max-width: 768px) {
  header .container {
    padding: 0 8px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper {
    padding: 24px 8px;
  }
}

/* MAIN STACKED SECTIONS */
main > section {
  margin-bottom: 60px;
  padding: 40px 0;
  position: relative;
  background: none;
}
main > section:nth-child(even) .content-wrapper {
  background: #F1EAEA;
  box-shadow: none;
}

/* CARDS, FLEX LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  border-radius: 26px 36px 10px 18px;
  box-shadow: 0 2px 14px rgba(23,65,104,0.11);
  overflow: hidden;
  position: relative;
  min-width: 250px;
  max-width: 360px;
  transition: box-shadow 0.25s, transform 0.1s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px rgba(23,65,104,0.19);
  transform: translateY(-3px);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px 18px 22px;
  gap: 14px;
}

.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;
}

.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  color: #174168;
  border-radius: 32px 18px 24px 12px;
  box-shadow: 0 4px 24px rgba(39,160,129,0.09);
  padding: 20px 24px;
  min-width: 230px;
  max-width: 330px;
  margin-bottom: 20px;
  transition: box-shadow .18s, transform .14s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 38px rgba(23,65,104,0.17);
  transform: scale(1.02);
}
.testimonial-card blockquote {
  color: #174168;
  font-style: italic;
  border-left: 4px solid #28A081;
  padding-left: 15px;
  font-size: 1.10rem;
  line-height: 1.5;
}
.testimonial-card footer {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.93rem;
  color: #28A081;
  letter-spacing: 0.04em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 16px 6px 12px 0;
}

/* HOME FEATURES LAYOUT */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: center;
}
.features-grid > div {
  background: #28A08110;
  border-radius: 26px 18px 26px 10px;
  padding: 22px 18px;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 220px;
  box-shadow: 0 2px 10px rgba(39,160,129,0.07);
  text-align: center;
  margin-bottom: 20px;
  transition: box-shadow .25s,filter .15s;
}
.features-grid > div:hover, .features-grid > div:focus {
  box-shadow: 0 4px 24px rgba(23,65,104,0.15);
  filter: brightness(1.04) saturate(1.15);
}
.features-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 8px #28A08160);
}
.features-grid h3 {
  color: #174168;
  margin-bottom: 10px;
  font-size: 1.08rem;
  font-family: 'Montserrat',sans-serif;
  font-weight: 700;
  letter-spacing: 0.001em;
}

/* BLOG LISTS */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 12px;
  margin-bottom: 18px;
}
.blog-list article {
  background: #fff;
  border-radius: 16px 28px 10px 24px;
  box-shadow: 0 2px 12px rgba(23,65,104,0.08);
  padding: 22px 16px;
  min-width: 230px;
  max-width: 340px;
  flex: 1 1 260px;
  transition: box-shadow .17s, background .13s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-list article:hover, .blog-list article:focus-within {
  background: #F1EAEA;
  box-shadow: 0 4px 24px rgba(39,160,129,0.16);
}
.blog-list h3 {
  margin-bottom: 6px;
  font-size: 1.09rem;
}
.blog-list a {
  color: #174168;
  text-decoration: underline;
  font-family: 'Montserrat',sans-serif;
}
.blog-categories {
  font-size: .97rem;
  color: #28A081;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

/* FAQ, DL/DT STYLE */
dl {
  margin-bottom: 24px;
}
dt {
  font-family: 'Montserrat',sans-serif;
  color: #174168;
  font-weight: 700;
  margin-top: 18px;
  font-size: 1.07rem;
}
dd {
  margin-left: 22px;
  margin-bottom: 8px;
  color: #174168;
}

/* EMBED MAP PLACEHOLDER */
.embedded-map {
  background: #28A08120;
  border-radius: 16px 12px 20px 8px;
  padding: 26px 16px;
  margin-top: 14px;
  text-align: center;
  color: #174168;
  font-family: 'Montserrat',sans-serif;
  font-size: 1.05rem;
}

/* FOOTER */
footer {
  background: #174168;
  color: #fff;
  border-top: 5px solid #28A081;
  margin-top: 16px;
  padding: 34px 0 14px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
footer .content-wrapper {
  background: none;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0;
  margin: 0;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #fff;
  font-weight: 600;
  font-family: 'Montserrat',sans-serif;
  transition: color .2s;
  font-size: 1rem;
}
footer nav a:hover, footer nav a:focus {
  color: #28A081;
}
.footer-contact p {
  color: #F1EAEA;
  font-size: .97rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
}

footer img {
  max-height: 42px;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  footer nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 10px;
  }
}
@media (max-width: 600px) {
  .footer-contact p {
    font-size: .92rem;
  }
  footer .content-wrapper {
    font-size: .99rem;
    padding: 0;
    gap: 8px;
    margin: 0;
  }
}

/* BUTTONS & INTERACTIVE */
button, .cta-btn, .btn {
  font-family: 'Montserrat',sans-serif;
  background: #174168;
  color: #fff;
  border: none;
  border-radius: 14px 24px 12px 18px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .21s, box-shadow .17s, color .12s, transform .14s;
  box-shadow: 0 2px 10px rgba(39,160,129,0.06);
}
button:hover, .cta-btn:hover, .btn:hover,
button:focus, .cta-btn:focus, .btn:focus {
  background: #28A081;
  color: #fff;
  box-shadow: 0 6px 18px rgba(23,65,104,0.17);
  transform: scale(1.03) translateY(-2px);
}

/* TRANSITIONS & EFFECTS */
a, .cta-btn, .card, .testimonial-card, .features-grid > div, button {
  transition-property: background, color, box-shadow, transform, filter;
  transition-duration: 0.18s, 0.18s, 0.25s, 0.15s, 0.11s;
}

/* RESPONSIVE FLEX ADJUSTMENTS */
@media (max-width: 990px) {
  .features-grid, .testimonials-list, .content-grid, .blog-list, .card-container {
    gap: 16px;
    justify-content: flex-start;
  }
}
@media (max-width: 700px) {
  .features-grid, .testimonials-list, .blog-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .section {
    padding: 18px 4px;
  }
  main > section {
    padding: 16px 0;
    margin-bottom: 36px;
  }
  h1 {
    font-size: 2rem;
    margin-bottom: 18px;
  }
  h2 {
    font-size: 1.23rem;
    margin-bottom: 13px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 520px) {
  .card, .blog-list article, .features-grid > div, .testimonial-card {
    min-width: 160px;
    max-width: 98vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-wrapper, .section {
    padding: 6px 1px;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #174168;
  color: #fff;
  z-index: 1110;
  width: 100vw;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px 12px 18px 12px;
  box-shadow: 0 -4px 24px rgba(23,65,104,0.13);
  animation: banner-slideup .5s;
  font-size: 1rem;
}
@keyframes banner-slideup {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}
.cookie-btn {
  background: #28A081;
  color: #fff;
  border: none;
  border-radius: 16px 12px 18px 10px;
  font-size: 1rem;
  font-family: 'Montserrat',sans-serif;
  padding: 8px 18px;
  font-weight: 700;
  cursor: pointer;
  margin-right: 4px;
  transition: background .19s, color .12s, box-shadow .11s, transform .11s;
}
.cookie-btn.cookie-settings {
  background: #fff;
  color: #174168;
  border: 1.5px solid #28A081;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #174168;
  color: #fff;
  box-shadow: 0 2px 12px rgba(23,65,104,0.15);
  transform: scale(1.04);
}
.cookie-btn.cookie-settings:hover, .cookie-btn.cookie-settings:focus {
  background: #28A081;
  color: #fff;
  border-color: #174168;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(44,66,96,0.66);
  z-index: 1121;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalfadein .2s;
}
@keyframes modalfadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #174168;
  border-radius: 32px 22px 24px 14px;
  box-shadow: 0 6px 32px rgba(23,65,104,0.13);
  max-width: 420px;
  width: 92vw;
  padding: 36px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  color: #28A081;
  border: none;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 1;
}
.cookie-modal h3 {
  color: #174168;
  margin-bottom: 14px;
  font-family: 'Montserrat',sans-serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.09rem;
  color: #174168;
}
.cookie-toggle {
  width: 38px;
  height: 20px;
  background: #F1EAEA;
  border-radius: 12px;
  position: relative;
  margin-right: 8px;
  cursor: pointer;
  border: 1px solid #28A08160;
  transition: background .2s;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #28A081;
  position: absolute;
  left: 1px;
  top: 1px;
  transition: left .21s, background .15s;
}
.cookie-toggle input:checked + span {
  left: 19px;
  background: #174168;
}
.cookie-category[aria-disabled="true"] .cookie-toggle {
  background: #28A08144;
  pointer-events: none;
  opacity: .56;
}
.cookie-category[aria-disabled="true"] label {
  color: #888;
}
.cookie-modal-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

/* MISC & MICROINTERACTIONS */
hr {
  border: none;
  border-top: 2px solid #28A08160;
  margin: 32px 0 32px 0;
}
::-webkit-scrollbar {
  width: 11px;
  background: #F1EAEA;
}
::-webkit-scrollbar-thumb {
  background: #28A08177;
  border-radius: 12px;
}
::-webkit-scrollbar-thumb:hover {
  background: #28A081;
}
::-webkit-input-placeholder, ::placeholder {
  color: #A2B0CC;
  opacity: 1;
}

/* Spacing Utility (flexbox gap fallback if needed) */
.flex-gap-20 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.flex-gap-24 {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* ACCESSIBILITY & FOCUS STATES */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus, .mobile-menu-close:focus {
  outline: 2px solid #28A081;
  outline-offset: 2px;
  z-index: 10;
}

/* HIDE COOKIE BANNER WHEN ACCEPTED */
.cookie-banner[aria-hidden="true"] {
  display: none !important;
}

/* Hide mobile menu if not open */
.mobile-menu:not(.open) {
  pointer-events: none;
  user-select: none;
  visibility: hidden;
}
