/* --- CSS RESET & NORMALIZE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #D6E8E1 0%, #fdfaf4 100%);
  color: #27475A;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #27475A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F8D67A;
  outline: none;
}
button {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
ul, ol {
  list-style: none;
}

/* --- BRAND FONTS & COLORS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #27475A;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }

p, li, ul, ol, span {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #27475A;
}
strong, b { font-weight: 700; }

.subheadline { font-size: 1.25rem; color: #27475A; opacity: 0.85; margin-bottom: 20px; }


/* --- CONTAINER & LAYOUT --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(39,71,90,0.05);
  padding: 32px 28px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 36px rgba(39,71,90,0.15);
  transform: translateY(-2px) 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;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(39,71,90,0.08);
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  min-width: 280px;
  max-width: 380px;
  flex: 1;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}


/* --- HERO --- */
.hero {
  background: linear-gradient(120deg, #D6E8E1 0%, #F8D67A 100%);
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  padding: 48px 0 56px 0;
  margin-bottom: 60px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 24px;
}
.hero h1 {
  font-size: 2.7rem;
}
.hero .primary-cta {
  margin-top: 18px;
}

/* --- NAVIGATION BAR --- */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(39,71,90,0.07);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #27475A;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: #D6E8E1;
  color: #27475A;
}
header nav .primary-cta {
  background: #27475A;
  color: #fff;
  font-weight: 700;
  border-radius: 24px;
  padding: 9px 24px;
  box-shadow: 0 4px 16px rgba(39,71,90,0.08);
  transition: background 0.2s, color 0.2s;
  margin-left: 12px;
}
header nav .primary-cta:hover, header nav .primary-cta:focus {
  background: #F8D67A;
  color: #27475A;
}
.mobile-menu-toggle {
  font-size: 2rem;
  background: #27475A;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  transition: background 0.2s;
  border: none;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #F8D67A;
  color: #27475A;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100vw;
  background: linear-gradient(120deg, #D6E8E1 80%, #F8D67A 100%);
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.77,0,.18,1);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  padding-top: 26px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 2.2rem;
  color: #27475A;
  background: none;
  border: none;
  z-index: 3500;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 92px 32px 32px 32px;
  gap: 18px;
}
.mobile-nav a {
  font-size: 1.25rem;
  padding: 14px 0;
  color: #27475A;
  font-weight: 500;
  width: 100%;
  border-radius: 8px;
  transition: background 0.19s, color 0.19s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F8D67A;
  color: #27475A;
}

/* Hide nav & burger on large and small, respectively */
header nav { display: flex; }
.mobile-menu-toggle { display: none; }

@media (max-width: 992px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}

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


/* --- SECTIONS SPACING & LAYOUT --- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(39,71,90,0.09);
  padding: 32px 24px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 295px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: box-shadow 0.17s, transform 0.19s;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 8px 32px rgba(248, 214, 122, 0.14);
  transform: translateY(-2px) scale(1.03);
}
.feature img {
  width: 44px;
  margin-bottom: 16px;
}

.about-short a, .about a {
  color: #27475A;
  background: #D6E8E1;
  border-radius: 10px;
  padding: 6px 20px;
  font-weight: 500;
  display: inline-block;
  transition: background 0.19s, color 0.19s;
  margin-top: 18px;
}
.about-short a:hover, .about-short a:focus,
.about a:hover, .about a:focus {
  background: #F8D67A;
  color: #27475A;
}

.articles-preview ul {
  margin-bottom: 18px;
}
.articles-preview ul li {
  margin-bottom: 10px;
}
.articles-preview a {
  color: #27475A;
  font-weight: 500;
  transition: color 0.17s;
}
.articles-preview a:hover, .articles-preview a:focus {
  color: #F8D67A;
}

.cta {
  background: linear-gradient(100deg, #D6E8E1 75%, #F8D67A 100%);
  border-radius: 32px;
  box-shadow: 0 2px 16px rgba(39,71,90,0.09);
  display: flex;
  align-items: center;
  margin-top: 32px;
}
.cta h2 { color: #27475A; }

.primary-cta {
  display: inline-block;
  background: #27475A;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 24px;
  padding: 12px 36px;
  font-size: 1.15rem;
  margin-top: 18px;
  box-shadow: 0 2px 16px rgba(39,71,90,0.10);
  transition: background 0.2s, color 0.2s, transform 0.14s;
  border: none;
}
.primary-cta:hover, .primary-cta:focus {
  background: #F8D67A;
  color: #27475A;
  transform: scale(1.04);
}

/* --- ABOUT & TEAM --- */
.about .content-wrapper, .about-short .content-wrapper {
  align-items: flex-start;
}
.team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 28px 20px 24px 20px;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(39,71,90,0.07);
  min-width: 220px;
  max-width: 270px;
  flex: 1;
  text-align: center;
  gap: 12px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.team-member:hover, .team-member:focus-within {
  box-shadow: 0 8px 22px rgba(248, 214, 122, 0.12);
  transform: translateY(-2px) scale(1.03);
}
.team-member img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 14px auto;
  background: #D6E8E1;
  object-fit: cover;
}
.team-member h3 {
  margin-bottom: 3px;
  font-size: 1.1rem;
}
.team-member span {
  font-size: 0.95rem;
  color: #9DBCB8;
  margin-bottom: 6px;
}

/* --- TESTIMONIALS --- */
.testimonials .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  color: #1D2D36;
  box-shadow: 0 2px 16px rgba(39,71,90,0.09);
  border-radius: 14px;
  padding: 28px 24px 16px 24px;
  min-width: 260px;
  max-width: 370px;
  flex: 1 1 260px;
  font-size: 1.09rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.19s, transform 0.16s;
}
.testimonial-card p {
  color: #1D2D36;
}
.testimonial-card span {
  color: #27475A;
  font-weight: 700;
  font-size: 1rem;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 28px rgba(248,214,122,0.10);
  transform: translateY(-1px) scale(1.01);
}

/* --- ARTICLES --- */
.articles-list .article-categories-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.article-categories-nav a {
  background: #D6E8E1;
  color: #27475A;
  border-radius: 12px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.18s, color 0.18s;
}
.article-categories-nav a:hover, .article-categories-nav a:focus {
  background: #F8D67A;
  color: #27475A;
}
.article-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 16px;
}
.article-list li {
  background: #fff;
  border-radius: 12px;
  padding: 22px 18px;
  box-shadow: 0 2px 16px rgba(39,71,90,0.06);
  margin-bottom: 20px;
}
.article-list li h2, .article-list li h3 {
  font-size: 1.25rem;
  color: #27475A;
}
.teaser-descriptions {
  background: #F8D67A;
  border-radius: 8px;
  padding: 16px 20px;
  color: #27475A;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(248,214,122,0.09);
}

/* --- CATEGORY PAGES --- */
.category-hero {
  background: linear-gradient(100deg, #D6E8E1 70%, #F8D67A 100%);
  border-radius: 20px;
  margin-bottom: 34px;
}
.category-hero h1 {
  font-size: 2.1rem;
}
.category-articles ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}
.category-articles ul li {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(39,71,90,0.07);
  padding: 18px 16px;
  margin-bottom: 16px;
}
.category-articles ul li h3 {
  font-size: 1.1rem;
  color: #27475A;
  margin-bottom: 8px;
}
.tips ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.tips ul li {
  background: #D6E8E1;
  border-radius: 8px;
  padding: 9px 14px;
  color: #27475A;
  font-size: 1rem;
}

/* --- CONTACT PAGE --- */
.contact-details {
  background: #fff;
  border-radius: 15px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(39,71,90,0.07);
  margin-bottom: 18px;
}
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #27475A;
}
.open-hours {
  background: #D6E8E1;
  border-radius: 8px;
  padding: 8px 18px;
  margin-bottom: 12px;
}
.location-map {
  background: #F8D67A;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 8px;
  font-weight: 500;
}
.text-section {
  margin-bottom: 14px;
}

/* --- THANK YOU PAGE --- */
.thank-you .content-wrapper {
  align-items: center;
}
.next-steps ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

/* --- LEGAL PAGES --- */
.legal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 14px rgba(39,71,90,0.06);
  padding: 42px 28px;
  margin-bottom: 80px;
}
.legal h1, .legal h2 {
  color: #27475A;
  font-weight: 700;
}
.legal h1 {
  font-size: 2rem;
  margin-bottom: 18px;
}
.legal h2 {
  font-size: 1.25rem;
  margin-top: 16px;
  margin-bottom: 10px;
}
.legal ul {
  margin-bottom: 16px;
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.legal li {
  list-style: disc inside;
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(120deg, #27475A 20%, #D6E8E1 120%);
  color: #fff;
  padding: 44px 0 12px 0;
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  box-shadow: 0 -4px 24px rgba(39,71,90,0.07);
  margin-top: 54px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 34px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #27475A;
  background: #F8D67A;
  border-radius: 11px;
  padding: 4px 18px;
  font-size: 1rem;
  margin-bottom: 5px;
  font-weight: 500;
  transition: background 0.17s, color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #fff;
  color: #27475A;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #27475A;
  font-size: 1rem;
}
.footer-contact img {
  width: 18px;
  vertical-align: middle;
  margin-right: 6px;
}
.footer-contact div {
  color: white;
}
.footer-social {
  display: flex;
  gap: 13px;
}
.footer-social a img {
  width: 28px;
  height: 28px;
}
.footer-newsletter {
  background: #fff;
  color: #27475A;
  border-radius: 10px;
  padding: 12px 18px;
  box-shadow: 0 2px 8px rgba(248,214,122,0.09);
  min-width: 210px;
  margin-top: 2px;
}
.footer-newsletter h3 {
  margin-bottom: 8px;
  color: #27475A;
  font-size: 1.12rem;
}
.footer-newsletter p {
  color: #27475A;
  font-size: 0.98rem;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5000;
  background: #27475A;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 14px;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 -2px 18px rgba(39,71,90,0.12);
  font-size: 1rem;
  transition: transform 0.2s, opacity 0.2s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner .cookie-btn {
  background: #F8D67A;
  color: #27475A;
  border: none;
  border-radius: 21px;
  padding: 11px 26px;
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  transition: background 0.18s, color 0.18s, transform 0.14s;
  cursor: pointer;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #fff;
  color: #27475A;
  transform: scale(1.03);
}
.cookie-banner .cookie-btn.secondary {
  background: #D6E8E1;
  color: #27475A;
}
.cookie-banner .cookie-btn.secondary:hover, .cookie-banner .cookie-btn.secondary:focus {
  background: #F8D67A;
  color: #27475A;
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgba(39,71,90,0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.24s;
}
.cookie-modal {
  background: #fff;
  color: #27475A;
  border-radius: 20px;
  box-shadow: 0 4px 40px rgba(39,71,90,0.16);
  padding: 34px 26px 28px 26px;
  max-width: 410px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: fadeInModal 0.24s ease-out;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.97) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  color: #27475A;
  font-size: 1.38rem;
  margin-bottom: 16px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal .category label {
  font-size: 1rem;
  font-weight: 500;
}
.cookie-modal .toggle-switch {
  appearance: none;
  width: 40px;
  height: 24px;
  background: #D6E8E1;
  border-radius: 14px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .toggle-switch:checked {
  background: #F8D67A;
}
.cookie-modal .toggle-switch:before {
  content: '';
  display: block;
  position: absolute;
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
}
.cookie-modal .toggle-switch:checked:before {
  left: 20px;
}
.cookie-modal .cookie-btn {
  margin-top: 12px;
  width: 100%;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #27475A;
  cursor: pointer;
}

/* --- MEDIA QUERIES: RESPONSIVE DESIGN --- */
@media (max-width: 1140px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .features .feature-grid, .team-profiles, .testimonials .testimonial-slider, .footer .content-wrapper {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 26px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
  .hero h1 { font-size: 2.1rem; }
  .section, section { padding: 28px 0; }
  .container { padding: 0 10px; }
  .hero { padding: 36px 0 38px 0; }
  .content-wrapper {
    gap: 20px;
  }
  .features .feature-grid, .team-profiles, .testimonials .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .card, .feature, .team-member, .testimonial-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 500px) {
  .hero, .cta, .category-hero, .about, .legal {
    padding-left: 0;
    padding-right: 0;
    border-radius: 0 0 22px 22px;
  }
  .cookie-modal {
    padding: 22px 8px 16px 8px;
  }
}

/* --- MICRO-INTERACTIONS --- */
button, .primary-cta, .feature, .card, .team-member, .testimonial-card, .footer-nav a {
  transition: box-shadow 0.16s, background 0.17s, color 0.16s, transform 0.14s;
}

/* --- UTILITY --- */
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }