/* === 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, 
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F6FBFF;
  color: #1C3A5E;
  min-height: 100vh;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
table {
  border-collapse: collapse;
  width: 100%;
}

/* === BRAND FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');
html {
  font-size: 16px;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #EBF4FB;
  color: #1C3A5E;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1C3A5E;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, ul, ol, table, .star-rating {
  font-size: 1rem;
  color: #263650;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}

/* === LAYOUT SECTIONS & FLEX PATTERNS === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(44, 74, 132, 0.09);
  padding: 24px;
  transition: box-shadow 0.18s, transform 0.2s;
  min-width: 260px;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(44, 74, 132, 0.18);
  transform: translateY(-6px) scale(1.02);
}
.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(44, 74, 132, 0.09);
  margin-bottom: 20px;
  position: relative;
  min-width: 280px;
  max-width: 630px;
  margin-left: auto;
  margin-right: auto;
}
.testimonial-card p {
  color: #2A2636;
  font-size: 1.10rem;
  margin-bottom: 6px;
  text-align: center;
}
.testimonial-meta {
  color: #47A477;
  font-size: 0.96rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
  justify-content: flex-start;
}
.features-grid > div {
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 1px 10px 0 rgba(41,118,90,0.05);
  padding: 28px 22px 22px 22px;
  flex: 1 1 260px;
  min-width: 220px;
  transition: box-shadow 0.16s, transform 0.18s;
  margin-bottom: 20px;
  position: relative;
}
.features-grid > div img {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
}
.features-grid > div:hover {
  box-shadow: 0 4px 20px 0 rgba(41, 118, 90, 0.14);
  transform: translateY(-4px) scale(1.03);
}
.text-section {
  background: #F6FBFF;
  border-radius: 20px;
  padding: 32px 28px;
  margin-bottom: 32px;
  box-shadow: 0 1px 8px 0 rgba(28, 58, 94, 0.05);
}

/* === TABLE STYLES === */
table {
  width: 100%;
  margin: 30px 0 16px 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 10px rgba(28,58,94,0.07);
  overflow: hidden;
}
thead {
  background: #47A477;
  color: #fff;
}
thead th {
  padding: 12px 10px;
  text-align: left;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
tbody td {
  padding: 12px 8px;
  border-bottom: 1px solid #EBF4FB;
  font-size: 1rem;
  color: #1C3A5E;
}
tbody tr:last-child td {
  border-bottom: none;
}
td {
  white-space: nowrap;
}

/* === HEADER & MAIN NAV === */
header {
  background: #1C3A5E;
  color: #fff;
  box-shadow: 0 2px 12px 0 rgba(28,58,94,0.04);
  padding: 0 0 0 0;
  position: sticky;
  top: 0;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 18px 20px;
}
header img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 26px;
  margin-left: 22px;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 500;
  position: relative;
  padding: 4px 10px;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover {
  background: #47A477;
  color: #fff;
}
.cta-button {
  background: #47A477;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(41,118,90,0.09);
  transition: background 0.22s, box-shadow 0.20s, transform 0.22s;
  border: none;
  cursor: pointer;
  margin-left: 24px;
  letter-spacing: 0.03em;
}
.cta-button:hover, .cta-button:focus {
  background: #29765A;
  box-shadow: 0 4px 20px 0 rgba(41,118,90,0.22);
  transform: scale(1.03) translateY(-2px);
  outline: none;
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  background: #47A477;
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  height: 48px;
  width: 48px;
  align-items: center;
  justify-content: center;
  margin-left: 18px;
  cursor: pointer;
  position: relative;
  z-index: 102;
  box-shadow: 0 2px 6px 0 rgba(36, 70, 100, 0.13);
  transition: background .2s;
}
.mobile-menu-toggle:hover {
  background: #29765A;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 340px;
  max-width: 95vw;
  background: #1C3A5E;
  box-shadow: -4px 0 32px rgba(44, 74, 132, 0.28);
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.65,.01,.22,1);
  padding: 32px 28px 0 28px;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.1rem;
  align-self: flex-end;
  margin-bottom: 22px;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover{
  color: #47A477;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 0;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  background: none;
  color: #EBF4FB;
  font-size: 1.28rem;
  font-weight: 500;
  padding: 8px 0;
  border-radius: 14px;
  transition: background 0.15s, color 0.18s;
}
.mobile-nav a:hover {
  background: #47A477;
  color: #fff;
}
@media (max-width: 1020px) {
  .main-nav {
    gap: 16px;
    margin-left: 10px;
  }
  .cta-button {
    margin-left: 16px;
    padding: 10px 18px;
  }
}
@media (max-width: 820px) {
  .main-nav {
    gap: 8px;
  }
  .cta-button {
    margin-left: 6px;
  }
}
@media (max-width: 900px) {
  .main-nav, .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* === SECTION SPACING ENFORCEMENT === */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
section:last-child {
  margin-bottom: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* === STAR RATING === */
.star-rating {
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
}
.star-rating span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  margin-left: 8px;
  color: #47A477;
  font-weight: 500;
}

/* === FOOTER === */
footer {
  background: #1C3A5E;
  color: #fff;
  padding: 40px 0 15px 0;
  border-radius: 32px 32px 0 0;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  font-size: 1rem;
}
.footer-nav a {
  color: #EBF4FB;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background .15s, color .17s;
}
.footer-nav a:hover {
  background: #47A477;
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
  color: #EBF4FB;
}
.footer-contact img {
  height: 34px;
  margin-bottom: 4px;
}
.footer-copy {
  margin-top: 8px;
  font-size: 0.94rem;
  color: #AED7E6;
}


/* === LINKS & BUTTONS === */
a {
  color: #29765A;
  transition: color .18s, text-decoration .15s;
}
a:hover, a:focus {
  color: #47A477;
  text-decoration: underline;
}

button {
  font-family: inherit;
  font-size: 1rem;
}

/* === FORM ELEMENTS (if present in modal) === */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  padding: 10px;
  border-radius: 12px;
  border: 1.5px solid #D2EBE1;
  background: #F6FBFF;
  font-size: 1rem;
  margin-bottom: 14px;
  width: 100%;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #47A477;
}

/* === UL/OL === */
ul, ol {
  margin-left: 1.4em;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 7px;
  padding-left: 3px;
}
ul li::marker, ol li::marker {
  color: #47A477;
  font-size: 1em;
  font-weight: bold;
}

/* === CUSTOM ARTISTIC ELEMENTS === */
section, .features-grid > div, .testimonial-card, .card, .text-section {
  /* Artistic squiggle border */
  position: relative;
  z-index: 1;
}
section:before, .features-grid > div:before, .testimonial-card:before, .card:before, .text-section:before {
  content: '';
  display: block;
  position: absolute;
  z-index: 0;
  pointer-events: none;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  background: url("data:image/svg+xml,%3Csvg width='38' height='38' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 34Q16 10 34 4' stroke='%2347A477' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/contain;
  opacity: 0.17;
  filter: blur(1px);
}
.features-grid > div:before {
  left: auto;
  right: 10px;
  top: 12px;
  background: url("data:image/svg+xml,%3Csvg width='38' height='38' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M34 4Q22 28 4 34' stroke='%2329765A' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/contain;
  opacity: 0.13;
  filter: blur(0.7px);
}
.testimonial-card:before {
  left: 10px; top: auto; bottom: 14px;
  background: url("data:image/svg+xml,%3Csvg width='38' height='38' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 34 Q22 6 34 4' stroke='%23EBF4FB' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/contain;
  opacity: 0.14;
}
.text-section:before {
  left: 24px; top: 16px;
  background: url("data:image/svg+xml,%3Csvg width='38' height='38' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 37 Q19 14 36 7' stroke='%2347A477' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/contain;
  opacity: 0.09;
}
@media (max-width: 600px) {
  section:before, .features-grid > div:before, .testimonial-card:before, .card:before, .text-section:before {
    display: none;
  }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1090px) {
  .container {
    max-width: 96vw;
  }
  .features-grid > div, .card, .testimonial-card {
    min-width: 210px;
  }
}
@media (max-width: 900px) {
  .footer-contact {
    flex-direction: column;
    align-items: center;
  }
 
  .footer-nav {
    gap: 6px;
    font-size: 0.97rem;
  }
}
@media (max-width: 770px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.32rem;
  }
  .features-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .features-grid > div {
    min-width: 0;
    width: 100%;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 98vw;
  }
  .container {
    padding: 0 10px;
  }
  section {
    padding: 32px 0;
    margin-bottom: 40px;
  }
  .content-wrapper.text-section {
    padding: 20px 10px;
  }
}
@media (max-width: 450px) {
  .container {
    padding: 0 2vw;
  }
  .features-grid > div, .testimonial-card, .card {
    padding: 17px 8px;
  }
  .footer-nav {
    font-size: 0.94rem;
  }
}
@media (max-width: 768px) {
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .section {
    margin-bottom: 35px;
    padding: 22px 0;
  }
}

/* === COLORED HEADLINE VARIATION === */
h1, h2, h3, .headline-vibrant {
  background: linear-gradient(90deg, #1C3A5E 60%, #47A477 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === MICRO-INTERACTIONS & TRANSITIONS === */
.card, .features-grid > div, .testimonial-card, .cta-button, .main-nav a, .mobile-nav a, .footer-nav a {
  transition: box-shadow .18s, background .20s, color .18s, transform .18s;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: #1C3A5E;
  color: #fff;
  box-shadow: 0 -6px 32px rgba(28,58,94,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 200;
  padding: 22px 10px 20px 10px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  animation: cookie-slidein .6s cubic-bezier(.63,0,.18,1);
}
@keyframes cookie-slidein {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 14px;
}
.cookie-btn, .cookie-settings-btn {
  background: #47A477;
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 16px;
  padding: 8px 20px;
  cursor: pointer;
  box-shadow: 0 1px 6px 0 rgba(41,118,90,0.09);
  transition: background .17s, transform .13s;
}
.cookie-settings-btn {
  background: #fff;
  color: #29765A;
  border: 1.4px solid #47A477;
}
.cookie-btn:hover {
  background: #29765A;
}
.cookie-settings-btn:hover {
  background: #47A477;
  color: #fff;
}

/* === COOKIE SETTINGS MODAL === */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(44,58,94,0.29);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 301;
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  color: #1C3A5E;
  border-radius: 18px;
  min-width: 320px;
  max-width: 96vw;
  padding: 32px 28px 26px 28px;
  box-shadow: 0 8px 40px rgba(41, 58, 94, 0.24);
  font-family: 'Roboto', Arial, sans-serif;
  animation: modalfade .25s cubic-bezier(.62,.01,.18,1);
  position: relative;
}
@keyframes modalfade {
  from { transform: translateY(30px) scale(0.97); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal-content h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1C3A5E;
  font-weight: 700;
  font-size: 1.26rem;
  margin-bottom: 16px;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 8px 0;
  font-size: 1rem;
}
.cookie-modal-content input[type="checkbox"] {
  accent-color: #29765A;
  width: 18px;
  height: 18px;
}
.cookie-modal-close {
  position: absolute;
  right: 14px; top: 12px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #1C3A5E;
  cursor: pointer;
  transition: color .15s;
}
.cookie-modal-close:hover {
  color: #47A477;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  justify-content: flex-end;
}

/* === ACCESSIBILITY & CONTRAST (ESPECIALLY FOR TESTIMONIALS) === */
.testimonial-card, .testimonial-card p, .testimonial-meta {
  color: #1C3A5E;
}
.testimonial-card {
  background: #fff !important;
}
.testimonial-meta {
  color: #29765A !important;
  font-style: italic;
}

/* === ARTISTIC HIGHLIGHT & SVG WAVY ACCENT FOR H1 ON HOME === */
.index h1 {
  position: relative;
  z-index: 1;
}
.index h1:after {
  content: '';
  display: block;
  position: absolute;
  left: 16px;
  bottom: -12px;
  width: 112px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg width='112' height='12' viewBox='0 0 112 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 10C18.5 4 33.5 7.5 56 10.5C78.5 13.5 96.5 4 109.5 6' stroke='%2347A477' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
  opacity: 0.19;
}

/* === ARTISTIC FONTS FOR HIGHLIGHTS === */
.headline-art {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #47A477 5%, #1C3A5E 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; 
}

/* === FAQ collapse (if JS is added) === */
.faq-question {
  cursor: pointer;
  position: relative;
  padding-right: 28px;
}
.faq-question::after {
  content: '+';
  position: absolute;
  right: 4px; top: 0;
  font-size: 1.2em;
  color: #29765A;
  font-weight: 700;
}
.faq-question.open::after {
  content: '-';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .19s cubic-bezier(.7,0,1,1);
}
.faq-question.open + .faq-answer {
  max-height: 600px;
  transition: max-height .27s cubic-bezier(.22,1,.36,1.04);
  margin-bottom: 18px;
}

/* === PRINT STYLES === */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section, .container { box-shadow: none !important; background: #fff !important; color: #222 !important; }
}
