/* --- 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;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #234364;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #234364;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #77A15D;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 8px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #234364;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}
.subheadline {
  font-size: 1.25rem;
  color: #597c46;
  margin-bottom: 24px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 400;
}
p {
  margin-bottom: 16px;
  color: #234364;
}
.text-center {
  text-align: center;
}
strong, b {
  font-weight: 700;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1216px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(35, 67, 100, 0.03);
}

/* --- Header and Navigation --- */
header {
  background: #E7ECF2;
  box-shadow: 0 2px 20px rgba(35, 67, 100, 0.07);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
header nav {
  display: flex;
  gap: 20px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #234364;
  padding: 10px 8px;
  border-radius: 8px;
  transition: background 0.20s, color 0.20s;
}
header nav a:hover, header nav a:focus {
  background: #dbe3ec;
  color: #77A15D;
}
.cta-btn.primary {
  background: #234364;
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 12px 32px;
  border-radius: 24px;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(35,67,100,0.07);
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.18s, color 0.2s, box-shadow 0.2s;
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: #77A15D;
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(119,161,93,0.15);
}
.cta-btn.secondary {
  background: #77A15D;
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 12px 26px;
  border-radius: 24px;
  font-weight: 500;
  margin-left: 0;
  transition: background 0.2s, color 0.2s;
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: #234364;
  color: #fff;
}
button.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #234364;
  cursor: pointer;
  margin-left: 8px;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.14s;
}
button.mobile-menu-toggle:hover, button.mobile-menu-toggle:focus {
  background: #dbe3ec;
}

/* --- Mobile Navigation Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 90vw;
  max-width: 340px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 32px rgba(35,67,100,0.12);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.65,.05,.36,1);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 36px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
button.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #234364;
  cursor: pointer;
  align-self: flex-end;
  margin: 0 22px 16px 0;
  transition: background 0.14s;
  padding: 8px 14px;
  border-radius: 8px;
}
button.mobile-menu-close:hover, button.mobile-menu-close:focus {
  background: #E7ECF2;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #234364;
  font-size: 1.15rem;
  padding: 14px 0;
  border-bottom: 1px solid #E7ECF2;
  transition: color 0.2s, background 0.14s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E7ECF2;
  color: #77A15D;
}

@media (max-width: 1024px) {
  header nav, .cta-btn.primary {
    display: none;
  }
  button.mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- Main Section & Cards --- */
main {
  background: #fff;
  min-height: 400px;
}
section {
  margin-bottom: 60px;
  padding: 0;
}
.content-wrapper.features-grid, .content-wrapper.services-list, .content-wrapper.team-section, .content-wrapper.posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.features-grid .feature,
.services-list .service-box,
.posts-grid .blog-post-preview {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(35,67,100,0.06);
  padding: 28px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 290px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.16s;
  min-width: 260px;
  max-width: 100%;
}
.features-grid .feature:hover, .services-list .service-box:hover, .posts-grid .blog-post-preview:hover {
  box-shadow: 0 8px 32px 0 rgba(35,67,100,0.11);
  transform: translateY(-2px) scale(1.012);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(88,107,131,0.06);
  background: #fff;
  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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- Testimonial Cards --- */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 22px 20px 22px;
  border-radius: 16px;
  background: #fafdff;
  box-shadow: 0 2px 18px rgba(35,67,100,0.09);
  margin-bottom: 20px;
  min-width: 250px;
  max-width: 100%;
  color: #234364;
  transition: box-shadow 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(35,67,100,.11);
}
.testimonial-card p {
  font-size: 1.125rem;
  color: #234364;
  margin-bottom: 0;
}
.testimonial-card .client-name {
  font-style: italic;
  font-family: 'Roboto', Arial, sans-serif;
  color: #597c46;
  font-size: 1rem;
}
.star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* --- Trust Badges --- */
.trust-badges {
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
  align-items: center;
}

/* --- Blog & Newsletter --- */
.posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.blog-post-preview {
  flex: 1 1 310px;
  min-width: 260px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 12px rgba(35,67,100,0.07);
  padding: 28px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.17s;
}
.blog-post-preview:hover {
  box-shadow: 0 8px 32px rgba(119,161,93, 0.13);
  transform: translateY(-2px) scale(1.01);
}
.blog-link {
  color: #77A15D;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 6px;
  transition: color 0.15s;
}
.blog-link:hover, .blog-link:focus {
  color: #234364;
  text-decoration: underline;
}
.blog-controls {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.blog-controls input[type="text"] {
  border: 1px solid #E7ECF2;
  border-radius: 12px;
  padding: 9px 18px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  background: #fafdff;
  outline: none;
  transition: border 0.15s;
}
.blog-controls input[type="text"]:focus {
  border-color: #77A15D;
}
.categories {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
}
.categories a {
  background: #E7ECF2;
  color: #234364;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.97rem;
  margin-left: 5px;
  transition: background .15s, color .14s;
}
.categories a:hover, .categories a:focus {
  background: #77A15D;
  color: #fff;
}

.newsletter-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  background: #f2f5f8;
  border-radius: 14px;
}

/* --- List / Benefit Styles --- */
.benefit-list, .dates-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.benefit-list li, .dates-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
  color: #234364;
  background: #F7FAFC;
  border-radius: 9px;
  padding: 10px 16px;
  box-shadow: 0 1px 4px 0 rgba(35,67,100,.04);
}
.benefit-list li img, .dates-list li img {
  width: 22px;
  height: 22px;
}

/**** CTA Banner ****/
.cta-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 34px 16px 36px 16px;
  border-radius: 18px;
  background: #E7ECF2;
  box-shadow: 0 2px 14px rgba(35,67,100,0.07);
  margin-bottom: 12px;
}
.cta-banner h2 {
  color: #234364;
  margin-bottom: 10px;
}
.cta-banner p {
  color: #234364;
  margin-bottom: 10px;
}

/**** FAQ and Text Sections ****/
.faq-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.faq {
  flex: 1 1 320px;
  min-width: 240px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(35,67,100,0.04);
  padding: 19px 20px 16px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s;
}
.faq:hover {
  box-shadow: 0 4px 20px 0 rgba(119,161,93,0.08);
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/**** Contact Page ****/
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.address-block, .phone-block, .email-block, .hours-block {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  background: #F7FAFC;
  border-radius: 10px;
  min-width: 220px;
  max-width: 100%;
  flex: 1 1 180px;
  box-shadow: 0 1px 6px 0 rgba(35,67,100,0.04);
}
.map-info {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #fafdff;
  border-radius: 12px;
  padding: 15px 18px;
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(35,67,100,0.04);
}

/**** Price / Tag ****/
.price-tag {
  display: inline-block;
  background: #E7ECF2;
  color: #234364;
  border-radius: 50px;
  font-size: 1rem;
  padding: 6px 18px;
  margin-bottom: 11px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.service-link {
  color: #77A15D;
  font-weight: 600;
  transition: color 0.12s;
  margin-bottom: 0;
}
.service-link:hover, .service-link:focus {
  color: #234364;
  text-decoration: underline;
}

/**** Confirmation Page ****/
.confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 40px 12px;
  background: #fafdff;
  border-radius: 15px;
  box-shadow: 0 1px 8px rgba(88,107,131,0.06);
}

/**** Footer ****/
footer {
  background: #E7ECF2;
  border-top: 2px solid #f6f8fb;
  margin-top: 52px;
  color: #234364;
  padding: 0 0 0 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px 20px 18px 20px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #234364;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  opacity: 0.95;
  transition: color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  color: #77A15D;
  text-decoration: underline;
}
.footer-contact {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #234364;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
footer a {
  color: #234364;
  word-break: break-word;
}

/**** Cookie Consent Banner ****/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  background: #ffffff;
  border-top: 2px solid #E7ECF2;
  box-shadow: 0 -2px 32px rgba(46,61,75,0.08);
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  animation: cookieBannerAppear 0.44s cubic-bezier(.6,.12,.46,.95);
}
@keyframes cookieBannerAppear {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #234364;
  margin-bottom: 0;
}
.cookie-btn {
  border: none;
  border-radius: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 22px;
  margin-left: 8px;
  margin-right: 0;
  cursor: pointer;
  transition: background 0.16s, color 0.13s, box-shadow 0.15s;
}
.cookie-btn.accept {
  background: #234364;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #77A15D;
}
.cookie-btn.reject {
  background: #E7ECF2;
  color: #234364;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ffded7;
  color: #ba2e2e;
}
.cookie-btn.settings {
  background: #fff;
  color: #234364;
  border: 1px solid #E7ECF2;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #f5f8fc;
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35,67,100,0.15);
  z-index: 4100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeinCookie 0.26s both;
}
@keyframes fadeinCookie {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -4px 40px 0 rgba(35,67,100,0.12);
  padding: 32px 22px 22px 22px;
  min-width: 310px;
  max-width: 98vw;
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
  animation: cookieModalAppear 0.44s cubic-bezier(.5,.15,.36,1);
}
@keyframes cookieModalAppear {
  from { transform: translateY(44px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.18rem;
  margin-bottom: 12px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #234364;
  cursor: pointer;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 14px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fafdff;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #77A15D;
  width: 22px;
  height: 22px;
}
.cookie-category.essential input[type="checkbox"] {
  accent-color: #234364;
}
.cookie-category .cookie-label {
  font-weight: 500;
  font-size: 1rem;
  color: #234364;
}
.cookie-modal .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

/**** Responsive Styles ****/
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding: 0 14px;
  }
  .footer-contact {
    font-size: 0.95rem;
  }
}
@media (max-width: 900px) {
  .content-wrapper.features-grid, .content-wrapper.services-list, .content-wrapper.team-section, .content-wrapper.posts-grid, .testimonials {
    gap: 18px;
  }
}
@media (max-width: 820px) {
  .content-wrapper.features-grid, .content-wrapper.services-list, .content-wrapper.team-section, .content-wrapper.posts-grid, .testimonials, .content-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .benefit-list {
    gap: 10px;
  }
}
@media (max-width: 620px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.35rem;
    margin-bottom: 13px;
  }
  .section, section {
    margin-bottom: 44px;
    padding: 24px 4px;
  }
  .feature, .service-box, .blog-post-preview, .testimonial-card, .faq, .cta-banner, .newsletter-section {
    padding: 17px 7px 15px 9px;
  }
  .confirmation {
    padding: 19px 3px;
  }
  .benefit-list li {
    font-size: 0.97rem;
  }
}
@media (max-width: 510px) {
  header .container {
    padding-left: 8px;
    padding-right: 8px;
    min-height: 54px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 18px 8px 10px 8px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .testimonial-card, .feature, .service-box, .blog-post-preview {
    min-width: 0;
  }
  .contact-details {
    flex-direction: column;
    gap: 12px;
  }
}

/* --- Micro-interactions & Transitions --- */
*, *:before, *:after {
  box-sizing: inherit;
}
input, button, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}
button:focus, .cta-btn:focus, a:focus, .blog-link:focus {
  outline: 2px dashed #597c46;
  outline-offset: 2px;
}

::-webkit-input-placeholder { color: #b4bcc4; }
::-moz-placeholder { color: #b4bcc4; }
:-ms-input-placeholder { color: #b4bcc4; }
::placeholder { color: #b4bcc4; }

/* --- Scrollbar minimal --- */
body::-webkit-scrollbar {
  width: 10px;
  background: #fafdff;
}
body::-webkit-scrollbar-thumb {
  background: #E7ECF2;
  border-radius: 10px;
}

/**** Utility Classes ****/
.text-center {
  text-align: center !important;
}
.text-section ul {
  margin-bottom: 8px !important;
  margin-top: 3px !important;
}

/* --- Hide elements for accessibility --- */
[hidden] {
  display: none !important;
}

/* --- Focus Styles for Accessibility --- */
a:focus, .cta-btn:focus, button:focus, .cookie-btn:focus {
  outline: 2px solid #77A15D;
  outline-offset: 1px;
}

/* --- Misc Fixes for Scandinavian Clean --- */
section {
  background: transparent;
}

/**** Print support (optional) ****/
@media print {
  * { color-adjust: exact; }
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-overlay { display: none !important; }
  body { background: #fff !important; }
}
