/* --- CSS RESET & BASE --- */
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, main, section, article, aside, nav, header, footer, figure, figcaption {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #EDECEA;
  color: #274D6D;
  font-family: 'Roboto', serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #274D6D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #31C48D;
}
ul, ol {
  margin: 0 0 1em 1.5em;
  padding: 0;
}
li {
  margin-bottom: 0.5em;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', serif;
  color: #274D6D;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.16;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  line-height: 1.18;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
p, .subheadline {
  color: #3B4657;
}
.subheadline {
  font-size: 1.16rem;
  font-style: italic;
  margin-bottom: 20px;
  color: #556070;
}
strong, b {
  font-weight: 600;
}

/* --- CONTAINER & SPACING --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.section:last-child {
  margin-bottom: 0;
}

/* --- HEADER & MAIN NAV --- */
header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 4px 14px -6px rgba(39,77,109,0.07);
  position: relative;
  z-index: 101;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 18px 18px;
  gap: 18px;
}
.logo {
  height: 40px;
  width: auto;
  display: block;
}
nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 0;
  color: #274D6D;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: #31C48D;
  transition: width 0.2s;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}
.main-nav a:hover {
  color: #31C48D;
}

.cta-button {
  background: #31C48D;
  color: #fff;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  padding: 11px 32px;
  border-radius: 28px;
  font-size: 1.1rem;
  border: none;
  box-shadow: 0 3px 14px -7px rgba(39,77,109,0.13);
  cursor: pointer;
  display: inline-block;
  letter-spacing: 0.04em;
  transition: background 0.18s, box-shadow 0.15s, color 0.16s;
  margin-left: 16px;
}
.cta-button:hover, .cta-button:focus {
  background: #229b6e;
  color: #f9f9f9;
  box-shadow: 0 8px 20px -8px rgba(34,155,110,0.15);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  background: #274D6D;
  color: #fff;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  font-size: 1.6rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 105;
  transition: background 0.18s;
  box-shadow: 0 2px 7px -3px #274D6D36;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #31C48D;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh;
  background: #ffffff;
  box-shadow: 0 0 40px 18px rgba(39,77,109,0.21);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.29,1.03,.6,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 26px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #274D6D;
  color: #fff;
  border: none;
  font-size: 2rem;
  align-self: flex-end;
  margin-bottom: 22px;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 320;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #229b6e;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1.19rem;
  color: #274D6D;
  padding: 12px 0;
  font-weight: 500;
  border-bottom: 1px solid #EDECEA;
  display: block;
  border-radius: 0;
  transition: color 0.16s, background 0.18s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #229b6e;
  background: #F3F3F2;
}

/* --- HERO SECTIONS --- */
.hero {
  background: #EDECEA;
  display: flex;
  align-items: center;
  min-height: 320px;
  padding: 48px 0 24px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid #e6e6e6;
}
.hero .content-wrapper {
  gap: 0;
  align-items: flex-start;
}
.hero h1 {
  color: #274D6D;
  margin-bottom: 10px;
}

.hero .cta-button {
  margin-top: 20px;
}

/* --- FLEXBOX LAYOUTS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px -4px #274D6D20;
  margin-bottom: 20px;
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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;
}

.feature-grid, .service-grid, .article-teasers, .article-listing {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div, .service-grid > div, .article-teasers > div, .article-preview {
  background: #fff;
  box-shadow: 0 1px 6px -2px #274D6D13;
  border-radius: 14px;
  flex: 1 1 min(240px, 100%);
  min-width: 210px;
  padding: 20px 18px 22px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.article-preview a {
  color: #31C48D;
  font-weight: 500;
  font-family: 'Montserrat', serif;
  text-decoration: underline;
  font-size: 1.1rem;
  transition: color 0.15s;
}
.article-preview a:hover { color: #229b6e; }

.service-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.service-list li {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1px 8px -3px #274D6D11;
  padding: 14px 20px 13px 22px;
  list-style: none;
  font-size: 1.09rem;
}

.category-list {
  font-size: 1.13rem;
  color: #69758A;
  letter-spacing: 0.02em;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  font-family: 'Montserrat', serif;
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.filter-tabs button {
  background: #F8F8F6;
  color: #274D6D;
  font-family: 'Montserrat', serif;
  padding: 8px 22px;
  border-radius: 20px;
  border: none;
  font-weight: 500;
  font-size: 1rem;
  box-shadow: 0 1px 7px -3px #274D6D0D;
  transition: background 0.14s, color 0.15s;
  cursor: pointer;
  margin-bottom: 4px;
}
.filter-tabs button:hover, .filter-tabs button:focus {
  background: #31C48D;
  color: #fff;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  color: #274D6D;
  border-radius: 14px;
  box-shadow: 0 3px 16px -10px #274D6D19;
  padding: 20px;
  margin-bottom: 20px;
  font-size: 1.15rem;
  line-height: 1.5;
  position: relative;
  font-family: 'Roboto', serif;
  transition: box-shadow 0.22s;
}
.testimonial-card span {
  margin-left: auto;
  font-style: italic;
  color: #227156;
  font-family: 'Montserrat', serif;
}
.testimonial-card:hover {
  box-shadow: 0 5px 24px -7px #31C48D30;
}

/* --- FEATURE/ITEM LISTS --- */
.values-list, .benefit-list, .icon-list, .faq-list, .contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 12px;
  list-style: disc inside;
  font-size: 1.05rem;
}
.icon-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 0;
  font-family: 'Roboto', serif;
}
.icon-list img {
  width: 24px; height: 24px;
}
.benefit-list li {
  padding-left: 6px;
}

/* --- TABLES --- */
.price-table, .price-table th, .price-table td {
  border: none;
  border-collapse: collapse;
}
.price-table tr {
  border-bottom: 1px solid #e0e0e0;
}
.price-table th, .price-table td {
  padding: 13px 14px;
  text-align: left;
  font-family: 'Montserrat', serif;
  font-size: 1.06rem;
}
.price-table th {
  color: #274D6D;
}

/* --- PAGINATION --- */
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  font-family: 'Montserrat', serif;
}
.pagination span, .pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.12rem;
  background: #F2F3F3;
  color: #274D6D;
  transition: background 0.17s, color 0.16s;
}
.pagination a:hover {
  background: #31C48D;
  color: #fff;
}
.pagination span {
  background: #31C48D;
  color: #fff;
  font-weight: 700;
}

/* --- FOOTER --- */
footer {
  background: #FAF9F5;
  padding: 30px 0 10px 0;
  border-top: 1px solid #e4e5e9;
  font-size: 1rem;
  margin-top: 40px;
}
footer .content-wrapper {
  gap: 22px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: 'Montserrat', serif;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #6e7a8e;
  font-size: 1rem;
  font-weight: 400;
  transition: color 0.13s;
}
.footer-nav a:hover {
  color: #31C48D;
}
.footer-info {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
  color: #49536b;
  font-size: 1rem;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social img {
  width: 26px;
  height: 26px;
  filter: grayscale(0.1) contrast(1.21);
  opacity: 0.93;
  transition: opacity 0.13s;
}
.footer-social img:hover {
  opacity: 1;
}
.footer-copyright {
  color: #b6b47a;
  font-size: 0.93rem;
  font-family: 'Montserrat', serif;
  margin-top: 18px;
}

/* --- CONTACT DETAILS --- */
.contact-details p {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 8px;
  color: #3B4657;
  font-size: 1.09rem;
}
.contact-details img {
  width: 22px;
  height: 22px;
}

/* --- FAQ LIST --- */
.faq-list h3 {
  font-family: 'Montserrat', serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: 14px;
  margin-bottom: 3px;
  color: #274D6D;
}
.faq-list p {
  margin-bottom: 8px;
  font-size: 1.03rem;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #274D6D;
  box-shadow: 0 -4px 24px -6px #274D6D26;
  padding: 24px 16px 18px 16px;
  z-index: 9000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 1.06rem;
  animation: cookie-fade-in 0.6s cubic-bezier(.3,1.07,.72,1.1);
}
@keyframes cookie-fade-in {
  0% { transform: translateY(50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0;
  max-width: 54vw;
  color: #4b5c73;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1.02rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  padding: 9px 24px;
  transition: background 0.15s, color 0.13s;
  margin: 0 0 0 0;
}
button.cookie-accept {
  background: #31C48D;
  color: #fff;
}
button.cookie-accept:hover {
  background: #229b6e;
}
button.cookie-reject {
  background: #EDECEA;
  color: #274D6D;
}
button.cookie-reject:hover {
  background: #E1E1DE;
}
button.cookie-settings {
  background: #fff;
  color: #274D6D;
  border: 1px solid #274D6D30;
}
button.cookie-settings:hover {
  border-color: #229b6e;
  color: #229b6e;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  background: #274D6D70;
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fade-in 0.33s cubic-bezier(.22,1,.36,1);
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes cookie-modal-fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 430px;
  width: 90vw;
  padding: 40px 28px 28px 28px;
  box-shadow: 0 6px 34px -10px #274D6D30;
  color: #274D6D;
  font-family: 'Roboto', serif;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-in 0.25s;
  position: relative;
}
.cookie-modal h2 {
  margin-bottom: 8px;
  font-size: 1.6rem;
}
.cookie-cat-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 10px;
}
.cookie-cat-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
}
.cookie-cat-label {
  font-family: 'Montserrat', serif;
  font-size: 1.05rem;
  font-weight: 500;
}
.cookie-cat-toggle {
  margin-left: auto;
  width: 38px;
  height: 20px;
  border-radius: 10px;
  background: #E1E6ED;
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-cat-toggle.checked {
  background: #31C48D;
}
.cookie-cat-toggle .toggle-knob {
  width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #fff;
  position: absolute;
  left: 1px;
  transition: left 0.14s;
}
.cookie-cat-toggle.checked .toggle-knob {
  left: 19px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-actions button {
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 20px;
  border: none;
  transition: background 0.15s, color 0.13s;
  padding: 8px 20px;
  cursor: pointer;
}
.cookie-modal .cookie-accept {
  background: #31C48D;
  color: #fff;
}
.cookie-modal .cookie-accept:hover { background: #229b6e; }
.cookie-modal .cookie-reject {
  background: #EDECEA;
  color: #274D6D;
}
.cookie-modal .cookie-reject:hover { background: #e5e6e2; }
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 2em;
  color: #afb1bd;
  cursor: pointer;
  transition: color 0.16s;
  z-index: 9999;
}
.cookie-modal .cookie-modal-close:focus,
.cookie-modal .cookie-modal-close:hover {
  color: #229b6e;
}

/* --- RESPONSIVE DESIGN (MOBILE-FIRST) --- */
@media (max-width: 1020px) {
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 860px) {
  .container {
    max-width: 97vw;
  }
  .feature-grid > div, .service-grid > div, .article-teasers > div, .article-preview {
    min-width:160px;
  }
}
@media (max-width: 820px) {
  .feature-grid, .service-grid, .article-teasers, .article-listing {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature-grid > div, .service-grid > div, .article-teasers > div, .article-preview {
    width: 100%;
    flex-basis: 100%;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 99vw;
    padding: 0 8px;
  }
  .section {
    margin-bottom: 40px;
    padding: 26px 8px 22px 8px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.36rem; }
  .hero {
    padding: 38px 0 15px 0;
    min-height: 210px;
  }
  .main-nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
    margin-left: auto;
  }
}
@media (max-width: 600px) {
  .footer-info, .footer-nav {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .footer-social {
    margin-top: 9px;
  }
}
@media (max-width: 540px) {
  .footer-info {
    gap: 18px;
  }
  .cookie-banner p {
    max-width: 100vw;
    font-size: 0.95rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 10px 16px 10px;
  }
}
@media (max-width: 500px) {
  .content-wrapper {
    gap: 18px;
  }
  .section {
    padding: 14px 2px 4px 2px;
  }
  .testimonial-card { font-size: 1rem; padding: 13px; }
}
@media (max-width: 425px) {
  h1 { font-size: 1.42rem; }
  h2 { font-size: 1.15rem; }
  .footer-copyright { font-size: 0.81rem; }
}
@media (max-width: 370px) {
  .cookie-modal { padding: 18px 2px; }
}

/* --- MICRO-INTERACTIONS & ANIMATIONS --- */
.cta-button, .feature-grid > div, .article-preview, .service-list li, .card, .testimonial-card,
.price-table tr, .filter-tabs button {
  transition: box-shadow 0.17s, background 0.15s, transform 0.15s, color 0.13s;
}
.cta-button:active {
  transform: scale(0.96);
}
.feature-grid > div:hover, .service-grid > div:hover, .article-teasers > div:hover, .article-preview:hover, .service-list li:hover {
  box-shadow: 0 6px 22px -8px #31C48D31;
  transform: translateY(-4px) scale(1.025);
}

/* --- ACCESSIBILITY HELPERS --- */
:focus {
  outline: 2px solid #31C48D;
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10110;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background: #229b6e;
  color: #fff;
  border-radius: 8px;
}
