/* --- CSS RESET --- */
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, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  box-sizing: border-box;
  vertical-align: baseline;
}
html {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background: #F3EAD9;
  color: #234567;
  line-height: 1.6;
  /* smooth font rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture {
  max-width: 100%;
  display: block;
}
a {
  color: #234567;
  text-decoration: none;
  transition: color 0.17s cubic-bezier(.45,.05,.55,.95);
}
a:hover, a:focus {
  color: #8CBF26;
}
ul, ol {
  list-style: none;
}
button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
}

/* --- BRAND FONTS --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #234567;
  font-weight: 800;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.25;
}
h4, h5, h6 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  line-height: 1.2;
}
p, ul, ol, li, blockquote {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #234567;
}
strong {
  font-weight: 700;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  align-items: flex-start;
}

/* --- MODERN BOLD SECTION SPACING --- */
.section,
.hero,
.features,
.about,
.testimonials,
.articles,
.contact,
.services,
.articles-overview,
.legal,
.contact-section,
.confirmation,
.about-details,
.features-team,
.contact-cta-inline {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 6px 32px rgba(35,69,103,0.07);
}

/* --- HEADER --- */
header {
  background: #234567;
  width: 100%;
  z-index: 99;
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
header a img {
  height: 40px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  letter-spacing: .03em;
  padding: 6px 0;
  position: relative;
  transition: color 0.17s;
}
.main-nav a:after {
  display:block;
  content: '';
  border-bottom: 2.5px solid #8CBF26;
  transform: scaleX(0);
  transition: transform .16s cubic-bezier(.55,.01,.29,.99);
  transform-origin: left;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  transform: scaleX(1);
}
.main-nav a:hover, .main-nav a:focus {
  color: #8CBF26;
}
.cta.primary {
  background: #8CBF26;
  color: #234567!important;
  padding: 10px 28px;
  border-radius: 34px;
  font-size: 1.1rem;
  font-weight: 900;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: .02em;
  box-shadow: 0 2px 12px rgba(35,69,103,0.12);
  border: none;
  transition: background .16s, color .16s, box-shadow .2s;
  margin-left: 12px;
}
.cta.primary:hover, .cta.primary:focus {
  background: #234567;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(35,69,103,0.15);
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: #fff;
  background: none;
  border: none;
  margin-left: 18px;
  z-index: 1080;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  z-index: 1099;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(35,69,103,0.97);
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.66,.00,.34,1.00);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 34px 22px 22px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.4rem;
  align-self: flex-end;
  margin-bottom: 18px;
  border: none;
  padding: 0 10px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  padding: 12px 0;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #8CBF26;
  color: #234567;
}

/* --- HERO --- */
.hero {
  min-height: 340px;
  display: flex;
  align-items: center;
  background: #234567;
  margin-top: 0;
  color: #fff;
  box-shadow: 0 6px 30px rgba(35,69,103,0.10);
  padding: 60px 10px 60px 10px;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 32px;
}
.hero h1, .hero p{
  color: #fff;
}
.hero .cta {
  margin-top: 18px;
  background: #8CBF26;
  color: #234567;
}

/* --- FEATURES --- */
.features, .services {
  background: #F3EAD9;
  box-shadow: none;
  margin-bottom: 60px;
  padding: 0 0 40px 0;
}
.feature-grid,
.feature-card-container,
.article-teaser-grid,
.featured-articles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}
.feature-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 14px rgba(35,69,103,0.08);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  max-width: 340px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  transition: box-shadow .17s, transform .16s;
  position: relative;
}
.feature-card img {
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
}
.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.feature-card:hover, .feature-card:focus {
  box-shadow: 0 8px 26px rgba(35,69,103,0.18);
  transform: translateY(-3px) scale(1.025);
}

/* --- ARTICLE TEASERS --- */
.article-teaser-grid, .article-categories, .featured-articles-list {
  gap: 22px;
}
.article-teaser {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(35,69,103,0.08);
  padding: 22px 18px 18px 18px;
  flex: 1 1 240px;
  max-width: 340px;
  margin-bottom: 20px;
  transition: box-shadow .15s, transform .14s;
}
.article-teaser h3 {
  margin-bottom: 6px;
  font-size: 1.10rem;
  font-weight: 800;
}
.article-teaser a {
  color: #234567;
  font-weight: 800;
}
.article-teaser:hover, .article-teaser:focus {
  box-shadow: 0 7px 20px rgba(35,69,103,0.12);
  transform: translateY(-3px);
}

/* --- TESTIMONIALS --- */
.testimonials {
  background: #fff;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 26px;
  box-shadow: 0 6px 32px rgba(35,69,103,0.07);
}
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 26px;
}
.testimonial-card {
  background: #F3EAD9;
  border-radius: 16px;
  box-shadow: 0 2px 13px rgba(35,69,103,0.06);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  flex: 1 1 260px;
  max-width: 420px;
  margin-bottom: 20px;
  transition: box-shadow .14s, transform .11s;
  color: #234567;
}
.testimonial-card p {
  font-size: 1rem;
  color: #234567;
  font-weight: 600;
}
.testimonial-meta {
  font-size: 0.98rem;
  color: #234567;
  opacity: 0.82;
  font-weight: 700;
  margin-top: 6px;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 26px rgba(140,191,38,0.11);
  transform: scale(1.018) translateY(-2px);
}

/* --- ABOUT / TEAM / LEGAL --- */
.about, .about-details, .features-team,
.legal, .contact-section, .confirmation {
  background: #fff;
  border-radius: 26px;
}

.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.categories-list li {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 8px 14px;
  border-radius: 8px;
  background: #8CBF26;
  color: #234567;
}

/* --- CONTACT --- */
.contact, .contact-section {
  background: #F3EAD9;
  box-shadow: none;
}
.contact-short, .contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.location-map-simple, .location-map {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.location-map-simple img, .location-map img {
  width: 32px;
  height: 32px;
}

address {
  font-style: normal;
  margin-top: 4px;
  color: #234567;
  font-size: 1rem;
}

.contact-details-list ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

/* --- NEWSLETTER SIGNUP --- */
.signup-form {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(35,69,103,0.04);
  padding: 16px 18px;
  margin-top: 15px;
}

/* --- GENERAL BUTTON STYLES --- */
.cta, .cta.secondary {
  display: inline-block;
  background: #234567;
  color: #fff !important;
  padding: 10px 28px;
  border-radius: 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .02em;
  border: none;
  box-shadow: 0 2px 12px rgba(35,69,103,0.11);
  transition: background .18s, color .13s, box-shadow .18s;
  cursor: pointer;
}
.cta.secondary {
  background: #fff;
  color: #234567 !important;
  border: 2px solid #8CBF26;
  box-shadow: 0 2px 10px rgba(140,191,38,0.06);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #8CBF26;
  color: #234567 !important;
  box-shadow: 0 4px 18px rgba(35,69,103,0.13);
}

/* --- PRICING INFO --- */
.pricing-info {
  font-size: 1.13rem;
  font-weight: 700;
  margin: 24px 0 0 0;
  color: #8CBF26;
  letter-spacing: .03em;
}

/* --- FOOTER --- */
footer {
  background: #234567;
  color: #fff;
  padding: 56px 0 22px 0;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 800;
  margin-bottom: 22px;
}
.footer-brand img {
  height: 34px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 4px 0;
  opacity: 0.90;
  transition: color 0.17s, opacity 0.19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #8CBF26;
  opacity: 1; 
  text-decoration: underline;
}
.footer-legal {
  font-size: 0.97rem;
  opacity: 0.7;
}

/* --- LAYOUT FLEXBOX PATTERNS (MANDATORY) --- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container, .feature-grid, .article-teaser-grid, .testimonial-slider, .testimonial-list, .featured-articles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .feature-card, .article-teaser {
  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;
}

/* --- MOBILE STYLES --- */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .feature-grid, .article-teaser-grid, .testimonial-slider, .testimonial-list, .featured-articles-list, .footer-nav {
    flex-wrap: wrap;
    gap: 16px;
  }
  .card, .feature-card, .article-teaser, .testimonial-card {
    min-width: 180px;
    max-width: 100%;
    flex: 1 1 220px;
  }
}
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .header-wrapper {
    padding: 10px 0; 
    gap: 10px;
  }
  .cta.primary { margin-left: 0; }
  .hero {
    padding: 38px 5px 38px 5px;
    min-height: 220px;
    background: #234567;
  }
  .hero .container {
    flex-direction: column;
    gap: 10px;
  }
  .feature-grid, .article-teaser-grid, .testimonial-slider, .testimonial-list, .featured-articles-list {
    flex-direction: column;
    gap: 14px;
  }
  .card, .feature-card, .article-teaser, .testimonial-card {
    min-width: unset;
    max-width: 100%;
    flex: 1 1 100%;
  }
  .section, .about, .testimonials, .contact, .articles, .services, .contact-section {
    margin-bottom: 38px !important;
    padding: 22px 8px !important;
  }
  .testimonials, .feature-card, .article-teaser {
    padding: 14px 9px !important;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .categories-list {
    flex-direction: column;
    gap: 8px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.375rem; }
  h2 { font-size: 1.08rem; }
  h3, h4 { font-size: 1rem; }
  .footer-brand { font-size: 1rem; }
}

/* --- COOKIE BANNER & POPUP --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  border-top: 4px solid #8CBF26;
  box-shadow: 0 -2px 14px rgba(35,69,103,0.18);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 26px;
  z-index: 1200;
  transition: transform .36s cubic-bezier(.70,.05,.31,.97);
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-banner.hide {
  transform: translateY(140%);
}
.cookie-banner p {
  font-size: 1rem;
  color: #234567;
  margin-bottom: 6px;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  background: #234567;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  padding: 7px 22px;
  margin-right: 5px;
  transition: background .16s, color .13s;
  cursor: pointer;
}
.cookie-btn.accept {
  background: #8CBF26;
  color: #234567;
}
.cookie-btn.reject {
  background: #fff;
  color: #234567;
  border: 1.6px solid #234567;
}
.cookie-btn.settings {
  background: #234567;
  color: #fff;
  border: 1.6px solid #8CBF26;
}
.cookie-btn:hover, .cookie-btn:focus {
  opacity: 0.89;
  background: #8CBF26;
  color: #234567 !important;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  background: #fff;
  box-shadow: 0 8px 38px rgba(35,69,103,0.21);
  border-radius: 19px;
  z-index: 1500;
  padding: 36px 30px;
  min-width: 320px;
  max-width: 99vw;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: opacity .23s, transform .36s cubic-bezier(.66,.00,.34,1.00);
}
.cookie-modal.hide {
  opacity: 0;
  transform: translate(-50%,-35%) scale(0.93);
  pointer-events: none;
}
.cookie-modal .cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cookie-modal .close-modal {
  background: none;
  border: none;
  font-size: 2rem;
  color: #234567;
  opacity: .95;
  transition: color .14s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #8CBF26;
}
.cookie-modal h3 {
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  margin-bottom: 7px;
}
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 1rem;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-toggle input[type='checkbox'] {
  width: 22px;
  height: 22px;
  appearance: none;
  background: #F3EAD9;
  border: 2px solid #7A9FC0;
  border-radius: 5px;
  transition: background .15s;
  cursor: pointer;
  position: relative;
}
.cookie-toggle input[type='checkbox']:checked {
  background: #8CBF26;
  border-color: #234567;
}
.cookie-toggle input[type='checkbox']:checked:after {
  content: '✓';
  position: absolute;
  left: 4.5px; top: 1.5px;
  color: #234567;
  font-size: 1.08em;
}
.cookie-toggle input[type='checkbox'][disabled] {
  opacity: .27;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    padding: 12px 8px;
    gap: 13px;
    font-size: .95rem;
    align-items: flex-start;
  }
  .cookie-actions {
    flex-direction: row;
    gap: 6px;
  }
  .cookie-modal {
    min-width: 90vw;
    padding: 16px 7px;
    font-size: 1rem;
  }
}

/* --- UTILITY --- */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

/* --- MICRO INTERACTIONS & EFFECTS --- */
.card, .feature-card, .article-teaser, .testimonial-card {
  transition: box-shadow .16s, transform .16s;
}
.card:hover, .feature-card:hover, .article-teaser:hover, .testimonial-card:hover {
  box-shadow: 0 12px 40px rgba(140,191,38,0.14), 0 5px 13px rgba(35,69,103,0.11);
  transform: translateY(-4px) scale(1.02);
}
.cta, .cta.secondary, .cookie-btn {
  transition: background .13s, color .13s, box-shadow .13s;
}
.cta:active, .cta.secondary:active, .cookie-btn:active {
  transform: scale(.97);
}

/* --- GEOMETRIC BACKGROUND SHAPES (optional, for modern bold look) --- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero:before {
  content: '';
  position: absolute;
  left: -60px; top: 100px;
  width: 160px; height: 160px;
  background: #8CBF26;
  opacity: 0.15;
  border-radius: 50%;
  z-index: 0;
}
.hero:after {
  content: '';
  position: absolute;
  right: -60px; bottom: -70px;
  width: 160px; height: 160px;
  background: #F3EAD9;
  opacity: 0.18;
  border-radius: 50%;
  z-index: 0;
}
.hero .container, .hero * {
  position: relative;
  z-index: 1;
}

/* --- Custom scrollbar for modern look --- */
body::-webkit-scrollbar {
  width: 11px;
  background: #F3EAD9;
} 
body::-webkit-scrollbar-thumb {
  background: #8CBF26;
  border-radius: 9px;
}
/* --- END --- */
