/* ===============================
   CSS RESET & BASE STYLES
   =============================== */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #F8F9FA 0%, #E8F7F2 100%);
  color: #1B3A5B;
  font-size: 16px;
  line-height: 1.65;
  transition: background 0.5s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  padding-left: 1.3em;
  margin-bottom: 1em;
}
a {
  color: #40916C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1B3A5B;
  text-decoration: underline;
}
strong {
  font-weight: 600;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1B3A5B;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.18;
}
h1 {
  font-size: 2.1rem;
  margin-bottom: 22px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 600;
}
p {
  margin-bottom: 20px;
}

/* ===============================
   CONTAINER & SECTIONS
   =============================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===============================
   HEADER & MAIN NAVIGATION
   =============================== */
header {
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(27, 58, 91, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 0;
  gap: 20px;
}
header > a img, header > img {
  max-height: 46px;
  margin-right: 12px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 18px;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #1B3A5B;
  letter-spacing: 0.03em;
  font-size: 1rem;
  padding: 8px 4px;
  transition: color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #40916C;
}

.cta-primary {
  background: linear-gradient(90deg, #40916C 0%, #2d8458 100%);
  color: #fff;
  padding: 12px 28px;
  border-radius: 28px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  box-shadow: 0 4px 14px rgba(64, 145, 108, 0.13);
  transition: background 0.25s, box-shadow 0.2s, transform 0.2s;
  display: inline-block;
  margin-left: auto;
  cursor: pointer;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, #2d8458 0%, #40916C 100%);
  box-shadow: 0 6px 18px rgba(64,145,108,0.2);
  transform: translateY(-2px) scale(1.03);
}

.cta-secondary {
  background: #fff;
  color: #40916C;
  border: 2px solid #40916C;
  padding: 10px 26px;
  border-radius: 28px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 18px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(64, 145, 108, 0.11);
  cursor: pointer;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #40916C;
  color: #fff;
  box-shadow: 0 4px 14px rgba(27, 58, 91, 0.11);
}

/* ===============================
   MOBILE NAVIGATION
   =============================== */
.mobile-menu-toggle {
  display: none;
  background: #40916C;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 10px 13px;
  font-size: 1.7rem;
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.22s;
  z-index: 102;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #1B3A5B;
  box-shadow: 0 2px 8px rgba(64, 145, 108, 0.22);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(27, 58, 91, 0.96);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.7,.24,.32,1.12);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 25px 28px 0 0;
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.2s;
  z-index: 3050;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #95dac1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 40px;
  align-items: flex-start;
  width: 100%;
  max-width: 330px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  background: none;
  padding: 13px 0;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #b0ffe2;
  background: none;
}

/* Hide main nav & show burger button on mobile */
@media (max-width: 970px) {
  .main-nav, .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }
}

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

/* ===============================
   HERO SECTIONS
   =============================== */
.hero {
  background: linear-gradient(120deg, #40916C 20%, #1B3A5B 100%);
  color: #fff;
  border-radius: 0 0 32px 32px;
  margin-bottom: 52px;
  box-shadow: 0 6px 28px rgba(27, 58, 91, 0.10);
  padding: 50px 0 60px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.hero h1, .hero h2 { color: #fff; }
.hero p { color: #F8F9FA; font-size: 1.16rem; margin-bottom: 18px; }
.hero .cta-primary {
  background: linear-gradient(90deg, #fff 2%, #40916C 98%);
  color: #1B3A5B;
  box-shadow: 0 2px 12px rgba(255,255,255,0.13);
  margin-left: 0;
}
.hero .cta-primary:hover {
  background: linear-gradient(90deg, #b0ffe2 0%, #2d8458 100%);
  color: #1B3A5B;
}

@media (max-width: 768px) {
  .hero {
    padding: 32px 0 40px 0;
    margin-bottom: 32px;
    border-radius: 0 0 18px 18px;
    min-height: unset;
  }
}

/* ===============================
   FEATURE / SERVICE GRIDS & CARDS
   =============================== */
.feature-grid,
.service-list,
.blog-post-list,
.offers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 0 0;
  list-style: none;
}
.feature-grid li,
.service-list > div,
.blog-post-list > div,
.offers-list > div {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 14px rgba(27, 58, 91, 0.08);
  flex: 1 1 240px;
  min-width: 230px;
  max-width: 350px;
  padding: 26px 24px 22px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #E8F7F2;
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature-grid li:hover, .service-list > div:hover, .blog-post-list > div:hover, .offers-list > div:hover {
  box-shadow: 0 8px 26px rgba(64,145,108,0.16);
  transform: translateY(-7px) scale(1.028);
}
.feature-grid img,
.service-list img,
.blog-post-list img,
.offers-list img {
  width: 39px;
  height: 39px;
  margin-bottom: 6px;
}
.feature-grid h3, .service-list h3, .blog-post-list h3, .offers-list h3 {
  font-size: 1.1rem;
  color: #1B3A5B;
  margin-bottom: 7px;
}
.feature-grid p, .service-list p, .blog-post-list p, .offers-list p {
  font-size: 1rem;
  color: #334e68;
}
@media (max-width: 960px) {
  .feature-grid,
  .service-list,
  .blog-post-list,
  .offers-list {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid li, .service-list > div, .blog-post-list > div, .offers-list > div {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}

/* ===============================
   TESTIMONIALS
   =============================== */
.testimonials {
  padding: 40px 20px 40px 20px;
}
.testimonial-card {
  background: #f4f8fb;
  color: #1B3A5B;
  border-radius: 20px;
  box-shadow: 0 1px 6px rgba(27, 58, 91, 0.08);
  margin-bottom: 20px;
  padding: 20px 34px 18px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  position: relative;
  border-left: 5px solid #40916C;
}
.testimonial-card blockquote {
  color: #1B3A5B;
  font-size: 1.08rem;
  line-height: 1.56;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card p {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .testimonial-card {
    padding: 16px 16px 13px 16px;
    font-size: 0.98rem;
  }
}

/* ===============================
   ABOUT, TEXT SECTIONS, LEGAL
   =============================== */
.about, .contact, .contact-details, .legal {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1px 8px rgba(27, 58, 91, 0.08);
}
.text-section {
  padding: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.02rem;
}
.text-section ul {
  margin-left: 12px;
  margin-bottom: 10px;
}
.legal-title {
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  color: #40916C;
  font-size: 1.09rem;
  margin-bottom: 18px;
}

/* ===============================
   CARDS & CARD LAYOUTS
   =============================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 16px rgba(27, 58, 91, 0.09);
  padding: 22px 20px;
  transition: box-shadow 0.22s, transform 0.12s;
}
.card:hover {
  box-shadow: 0 7px 32px rgba(64,145,108,0.14);
  transform: translateY(-5px) scale(1.025);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ===============================
   CONTACT, LISTS & DETAILS
   =============================== */
.contact ul, .contact-details ul, .about ul, .text-section ul, .special-interests ul, .offer-highlights ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact li, .contact-details li, .about li, .special-interests li, .offer-highlights li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
}
.contact li img, .contact-details li img {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  opacity: 0.66;
}

/* ===============================
   BLOG SECTIONS
   =============================== */
.blog-post-list > div {
  min-height: 160px;
}
.featured-post {
  margin-top: 24px;
  background: #E8F7F2;
  border-radius: 15px;
  padding: 18px 23px;
  box-shadow: 0 1px 8px rgba(64,145,108,0.06);
  font-size: 1rem;
}
.featured-post h3 {
  color: #40916C;
  margin-bottom: 8px;
}

/* ===============================
   FOOTER
   =============================== */
footer {
  background: linear-gradient(98deg,#1B3A5B 70%, #40916C 100%);
  color: #fff;
  padding: 38px 0 20px 0;
  margin-top: 64px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  padding: 7px 3px;
  transition: color 0.18s;
}
.footer-nav a:hover {
  color: #b0ffe2;
}

footer p {
  margin-bottom: 0;
  color: #c3d9f3;
  font-size: 0.97rem;
  font-weight: 400;
}

/* ===============================
   COOKIE CONSENT BANNER & MODAL
   =============================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: #1B3A5B;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  z-index: 4000;
  box-shadow: 0 -2px 18px rgba(27,58,91,0.11);
  gap: 20px;
  font-size: 1rem;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.5,.27,.15,1.1), opacity 0.26s;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  border-radius: 18px;
  border: none;
  font-family: 'Montserrat',sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 9px 20px;
  background: #40916C;
  color: #fff;
  cursor: pointer;
  margin-right: 0;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
}
.cookie-banner button.accept {
  background: #40916C;
}
.cookie-banner button.reject {
  background: #EB4D4B;
}
.cookie-banner button.settings {
  background: #F8F9FA;
  color: #1B3A5B;
  border: 1px solid #1B3A5B;
}
.cookie-banner button:focus, .cookie-banner button:hover {
  background: #2d8458;
  color: #fff;
  box-shadow: 0 0 0 2px #E8F7F2;
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: #E8F7F2;
  color: #40916C;
}

@media (max-width:660px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 8px;
    font-size: 0.96rem;
  }
  .cookie-banner .cookie-buttons {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }
}

.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(27,58,91,0.6);
  z-index: 5200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.95);
  background: #fff;
  color: #1B3A5B;
  border-radius: 22px;
  box-shadow: 0 6px 34px rgba(27,58,91,0.19);
  width: 95%;
  max-width: 420px;
  z-index: 5300;
  padding: 34px 29px 22px 29px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s, transform 0.3s;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal.visible {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h3 {
  margin-bottom: 10px;
  color: #40916C;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
  gap: 8px;
}
.cookie-category label {
  font-weight: 500;
}
.cookie-toggle {
  width: 34px;
  height: 18px;
  border-radius: 13px;
  background: #E8F7F2;
  position: relative;
  border: 1px solid #40916C;
  cursor: pointer;
  transition: background 0.22s;
  margin-left: 10px;
}
.cookie-toggle input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.cookie-toggle span {
  position: absolute;
  left: 2px; top: 2px;
  width: 14px; height: 14px;
  background: #40916C;
  border-radius: 50%;
  transition: left 0.22s, background 0.22s;
}
.cookie-toggle input:checked + span {
  left: 16px;
  background: #1B3A5B;
}
.cookie-category .desc {
  color: #889;
  font-size: 0.89em;
  margin-left: 11px;
}
.cookie-modal-buttons {
  display: flex;
  gap: 13px;
  margin-top: 18px;
}
.cookie-modal-buttons button {
  border-radius: 18px;
  border: none;
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  padding: 8px 18px;
  font-size: 0.98rem;
  background: #40916C;
  color: #fff;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.cookie-modal-buttons button.cancel {
  background: #fff;
  color: #40916C;
  border: 1px solid #40916C;
}
.cookie-modal-buttons button.cancel:hover, .cookie-modal-buttons button.cancel:focus {
  background: #E8F7F2;
  color: #1B3A5B;
}
.cookie-modal-buttons button.save {
  background: #40916C;
  color: #fff;
}
.cookie-modal-buttons button.save:hover, .cookie-modal-buttons button.save:focus {
  background: #1B3A5B;
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */
@media (max-width: 600px) {
  h1 { font-size: 1.44rem; }
  h2 { font-size: 1.14rem; }
  h3 { font-size: 1.01rem; }
  footer {
    font-size: 0.94rem;
    padding-bottom: 10px;
  }
  section, .section, .about, .contact, .contact-details, .legal {
    padding: 18px 5px;
    margin-bottom: 32px;
  }
}

@media (max-width: 400px) {
  .cookie-banner {
    padding: 8px 2px;
    font-size: 0.91rem;
  }
  .cookie-modal {
    padding: 13px 4px 10px 4px;
  }
  header {
    padding-left: 3px; padding-right: 3px;
  }
}

/* ===============================
   ANIMATIONS & MICROINTERACTIONS
   =============================== */
.card, .feature-grid li, .service-list > div, .blog-post-list > div, .offers-list > div {
  transition: box-shadow 0.2s, transform 0.18s;
}
.cta-primary, .cta-secondary, .cookie-banner button, .cookie-modal-buttons button {
  transition: background 0.19s, color 0.19s, transform 0.14s, box-shadow 0.14s;
}
.mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-backdrop {
  will-change: opacity, transform;
}

/* ===============================
   ACCESSIBILITY
   =============================== */
:focus {
  outline: 2px solid #40916C;
  outline-offset: 2px;
}

/* ===============================
   OVERRIDE FOR ULTRA-WIDE SCREENS
   =============================== */
@media (min-width:1400px) {
  .container {
    max-width: 1300px;
  }
}
