/* RESET & BASE TYPOGRAPHY ------------------------------------ */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #18465A;
  background: #F4F7F9;
  line-height: 1.6;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
a {
  color: #18465A;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus,
a:hover {
  color: #EAA641;
  outline: none;
}
ul, ol {
  padding-left: 1.6em;
  margin-bottom: 18px;
}
ul:last-child, ol:last-child {
  margin-bottom: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #18465A;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }
.subtitle {
  color: #18465A;
  opacity: 0.85;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  margin-bottom: 28px;
}
p {
  margin-bottom: 20px;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
strong, b {
  font-weight: bold;
  color: #18465A;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* HEADER ------------------------------------ */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(24,70,90,0.03), 0 1.5px 4px rgba(24,70,90,0.03);
  padding: 0;
  position: relative;
  z-index: 20;
}
.logo img {
  height: 50px;
  width: auto;
  margin: 12px 0;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #18465A;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 5px 6px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #F4F7F9;
  color: #EAA641;
}
.cta-btn {
  background: #EAA641;
  color: #18465A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 7px;
  padding: 12px 28px;
  margin-left: 8px;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  box-shadow: 0 1.5px 8px rgba(24,70,90,0.03);
  cursor: pointer;
  letter-spacing: 0.02em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #18465A;
  color: #fff;
  box-shadow: 0 3px 14px 0 rgba(24,70,90,.05);
  outline: none;
}
/* MOBILE MENU ------------------------------------ */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #18465A;
  display: none;
  cursor: pointer;
  margin-left: 12px;
  padding: 8px 10px;
  border-radius: 4px;
  transition: background 0.15s;
  z-index: 110;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #F4F7F9;
}
.mobile-menu {
  position: fixed;
  inset: 0 0 0 0;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.6,.1,0,1);
  box-shadow: 0 8px 28px rgba(24,70,90,0.15);
  z-index: 140;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 42px 26px 28px 26px;
  min-width: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: #18465A;
  cursor: pointer;
  margin-bottom: 34px;
  border-radius: 3px;
  transition: background 0.18s;
  padding: 8px 10px;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #F4F7F9;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.18rem;
  padding: 12px 10px;
  border-radius: 6px;
  color: #18465A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  transition: background 0.2s, color 0.22s;
  width: 100%;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #EAA641;
  color: #18465A;
}

/* HERO SECTION ------------------------------------ */
.hero, .thank-you-hero {
  padding: 64px 0 32px 0;
  background: #F4F7F9;
  display: flex;
  align-items: center;
  min-height: 290px;
}
.hero .content-wrapper, .thank-you-hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
}
.hero h1, .thank-you-hero h1 {
  font-size: 2.2rem;
  color: #18465A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* SECTIONS & LAYOUT ------------------------------------ */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
.cta-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 24px rgba(24,70,90,0.05);
  margin-bottom: 60px;
  padding: 32px 0;
}
.cta-section .cta-btn {
  margin-top: 16px;
}
.legal-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(24,70,90,0.04);
  padding: 40px 0;
}

/* GENERAL FLEX LAYOUTS ------------------------------------ */
.card-container,
.features-grid,
.services-list,
.article-teasers,
.flex-between,
.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-grid {
  gap: 24px;
  flex-wrap: wrap;
  margin: 18px 0 0 0;
}
.feature-item {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1.5px 9px rgba(24,70,90,0.045);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 22px 26px 22px;
  max-width: 310px;
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow 0.18s, transform 0.22s;
}
.feature-item img {
  height: 38px;
  width: 38px;
  margin-bottom: 2px;
}
.feature-item h3 {
  font-size: 1.15rem;
  margin: 0 0 7px 0;
}
.feature-item:hover {
  box-shadow: 0 6px 26px rgba(24,70,90,0.13);
  transform: translateY(-2px) scale(1.015);
}

.services-list {
  gap: 24px;
  margin: 26px 0 5px 0;
}
.service-card {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 3px 22px rgba(24,70,90,0.045);
  padding: 30px 20px 26px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 230px;
  flex: 1 1 265px;
  max-width: 330px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.service-card:hover {
  box-shadow: 0 8px 28px 0 rgba(24,70,90,0.12);
  transform: translateY(-3px) scale(1.02);
}
.service-card img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}
.service-card h3 {
  font-size: 1.08rem;
}
.service-price {
  color: #18465A;
  font-weight: 600;
  font-size: 1rem;
}
.service-cta {
  background: #EAA641;
  color: #18465A;
  padding: 7px 22px;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  margin-top: 8px;
  transition: background 0.2s, color 0.2s;
}
.service-cta:hover,
.service-cta:focus {
  background: #18465A;
  color: #fff;
}
.service-card details {
  margin-top: 8px;
  font-size: 0.98rem;
  color: #295d76;
}
.service-card summary {
  cursor: pointer;
  font-weight: 600;
  color: #18465A;
  border-bottom: 1px dashed #EAA641;
  outline: none;
  transition: color 0.18s;
}
.service-card summary:hover,
.service-card summary:focus {
  color: #EAA641;
}

.tips-list, .downloads-list, .habits-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 18px rgba(24,70,90,0.04);
  padding: 30px 18px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.usp-list {
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 0;
}
.newsletter-signup, .newsletter-section .content-wrapper {
  background: #F4F7F9;
  border-radius: 10px;
  padding: 22px 18px 18px 18px;
  margin-top: 12px;
  box-shadow: 0 2px 12px rgba(24,70,90,0.03);
}
.newsletter-signup h3 {
  font-size: 1.08rem;
  margin-bottom: 7px;
}
.newsletter-section p {
  margin-bottom: 10px;
}

/* BLOG ARTICLE CARDS / TEASERS ------------------------------------ */
.article-teasers {
  gap: 24px;
  margin: 8px 0 20px 0;
}
.article-card {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 14px rgba(24,70,90,0.045);
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 200px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.article-card:hover {
  box-shadow: 0 7px 32px rgba(24,70,90,0.07);
  transform: translateY(-3px) scale(1.014);
}
.article-card h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}
.article-card .article-tag {
  font-size: 0.96rem;
  color: #18465A;
  background: #F4F7F9;
  border-radius: 8px;
  padding: 2.5px 9px;
  font-weight: 600;
  opacity: 0.85;
}
.tag-filter {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 1rem;
  margin-top: 16px;
}
.tag-filter span {
  color: #295d76;
  background: #f7f8fa;
  border-radius: 8px;
  padding: 2.5px 10px 2.5px 10px;
  font-weight: 500;
  font-size: 0.96rem;
}

/* TESTIMONIALS ------------------------------------ */
.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  color: #18465A;
  border-radius: 13px;
  box-shadow: 0 3px 20px rgba(24,70,90,0.09);
  font-style: italic;
  font-size: 1.07rem;
  padding: 20px 22px 16px 24px;
  min-width: 220px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.14s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px rgba(24,70,90,0.14);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card span {
  color: #295d76;
  font-style: normal;
  font-size: 0.97rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
}

/* CONTACT / FOOTER ------------------------------------ */
.contact-info {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 14px rgba(24,70,90,0.045);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.map-placeholder {
  background: #F4F7F9;
  border-radius: 10px;
  padding: 22px 18px 18px 18px;
  margin-top: 12px;
  box-shadow: 0 2px 12px rgba(24,70,90,0.03);
}
.social-links {
  display: flex;
  gap: 20px;
  margin: 18px 0 0 0;
}
.social-links a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 1rem;
  color: #18465A;
  border-radius: 5px;
  background: none;
  padding: 5px 10px;
  transition: background 0.18s, color 0.2s;
}
.social-links a:hover {
  background: #EAA641;
  color: #18465A;
}

footer {
  margin-top: 32px;
  background: #fff;
  box-shadow: 0 -2px 15px rgba(24,70,90,0.03);
  padding: 34px 0 20px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.footer-nav a {
  color: #18465A;
  opacity: 0.9;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 5px;
  border-radius: 3px;
  transition: background 0.2s, color 0.18s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: #F4F7F9;
  color: #EAA641;
}
.logo-footer img {
  height: 40px;
  width: auto;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.97rem;
}
.footer-contact img {
  vertical-align: middle;
  width: 19px;
  height: 19px;
  margin-right: 6px;
}
.copy {
  text-align: center;
  font-size: .96rem;
  color: #425f6c;
  opacity: .82;
  margin-top: 20px;
  letter-spacing: 0.015em;
}

/* THANK YOU HERO (success/confirmation page) --------------------- */
.thank-you-hero {
  background: #fff7ec;
  margin-top: 42px;
  border-radius: 18px;
  box-shadow: 0 4px 22px rgba(24,70,90,0.035);
  padding: 60px 0 38px 0;
}

/* COOKIE CONSENT BANNER & MODAL ------------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: #fff;
  box-shadow: 0 -2px 20px rgba(24,70,90,0.08), 0 0.5px 2.5px rgba(24,70,90,0.02);
  display: flex;
  justify-content: center;
  padding: 22px 18px 18px 18px;
  gap: 24px;
  align-items: flex-end;
  min-height: 50px;
  font-size: 1rem;
  animation: cookieBannerIn 0.7s cubic-bezier(.6,.2,0,1);
}
@keyframes cookieBannerIn {
  0% { transform: translateY(120%); opacity: 0; }
  95%{ opacity:1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  color: #18465A;
  flex: 1 1 180px;
  max-width: 550px;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  background: #EAA641;
  color: #18465A;
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  border-radius: 6px;
  padding: 9px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.17s, color 0.18s;
  margin: 0 0 0 0;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: #18465A;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #18465A;
  border: 1px solid #EAA641;
}
.cookie-btn.settings:focus,
.cookie-btn.settings:hover {
  background: #EAA641;
  color: #18465A;
}
.cookie-btn.reject {
  background: #F4F7F9;
  color: #295d76;
  border: 1px solid #eee;
}
.cookie-btn.reject:focus,
.cookie-btn.reject:hover {
  background: #18465A;
  color: #fff;
}
/* Cookie Preference Modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0 0 0 0;
  background: rgba(24,70,90,0.21);
  z-index: 220;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: modalFadeIn 0.4s cubic-bezier(.6,.1,0,1);
}
@keyframes modalFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 12px 48px rgba(24,70,90,0.12);
  padding: 34px 24px 24px 24px;
  max-width: 360px;
  width: 95%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalIn 0.28s cubic-bezier(.7,.2,0,1);
}
@keyframes modalIn {
  0% { transform: scale(.95) translateY(80px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.24rem;
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #F4F7F9;
  border-radius: 9px;
  padding: 7px 12px;
  margin-bottom: 9px;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #d4dde0;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-toggle:checked {
  background: #EAA641;
}
.cookie-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 3px;
  transition: left 0.18s, background 0.15s;
}
.cookie-toggle:checked::after {
  left: 17px;
  background: #fff5e0;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 22px;
  top: 15px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #18465A;
  cursor: pointer;
  z-index: 11;
  border-radius: 4px;
  padding: 3px 7px 3px 7px;
  transition: background 0.16s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: #F4F7F9;
}

/* PAGE-SPECIFIC COMPONENTS ------------------------------------ */
.question-cta {
  font-size: 1.01rem;
  margin-top: 16px;
}
.question-cta a {
  color: #EAA641;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.18s;
}
.question-cta a:hover {
  color: #18465A;
}

.map-placeholder p {
  margin-bottom: 8px;
  line-height: 1.4;
}
.legal-section h2 {
  font-size: 1.11rem;
  margin: 19px 0 8px 0;
}
.legal-section ul {
  margin-bottom: 16px;
}
.legal-section li {
  margin-bottom: 7px;
}

/* SPACING/PATTERN CLASSES - ENFORCED ------------------------- */
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* RESPONSIVE DESIGN ------------------------------------ */
@media (max-width: 1120px) {
  .container {
    max-width: 100%;
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  .features-grid, .services-list, .article-teasers, .testimonials-grid, .flex-between {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 26px;
  }
  .feature-item, .service-card, .article-card, .testimonial-card {
    max-width: none;
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .logo img { height: 40px; }
  .hero, .thank-you-hero {
    padding: 38px 0 18px 0;
    min-height: 180px;
  }
  section {
    padding: 28px 0;
    margin-bottom: 38px;
  }
  .flex-between {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .container { padding: 0 8px; }
  .footer-nav { gap: 12px; font-size: 0.97rem; }
  .footer-contact { gap: 6px; font-size: 0.94rem; }
  .logo-footer img { height: 31px; }
}
@media (max-width: 600px) {
  html { font-size: 14px; }
  .hero .content-wrapper, .thank-you-hero .content-wrapper {
    gap: 16px;
  }
  .service-card, .feature-item, .article-card {
    padding: 18px 10px 14px 10px;
  }
  .newsletter-signup, .map-placeholder, .tips-list, .downloads-list, .habits-list {
    padding: 12px 7px 12px 8px;
  }
  .cta-btn, .service-cta { padding: 10px 13px; font-size: 0.97rem; }
  .footer-contact span { font-size: 0.88rem; }
  .cookie-modal { padding: 22px 7px 17px 7px; }
}
@media (max-width: 530px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px 6px 12px 6px;
  }
}
@media (max-width: 430px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.16rem; }
  .cta-btn, .service-cta { font-size: 0.93rem; padding: 9px 8px; }
}
