/* --- 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,
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;
}
html {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Arial', Arial, sans-serif;
  background: #F4F1ED;
  color: #25281C;
  font-size: 16px;
  line-height: 1.6;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #217038;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #17406D;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #17406D;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.15;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.22;
}
@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1rem; }
}
strong, b {
  font-weight: 700;
}
blockquote {
  background-color: #EAEAEA;
  border-left: 5px solid #217038;
  padding: 16px 24px;
  margin: 20px 0;
  border-radius: 10px 18px 10px 24px;
  font-style: italic;
}
hr {
  border: 0;
  border-bottom: 1px solid #D3D0C6;
  margin: 32px 0;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* --- CONTAINER & SPACING --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 32px 18px 28px 18px;
  box-shadow: 0 5px 36px rgba(70,85,51,0.09);
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
    border-radius: 20px 8px 18px 8px;
  }
  .container { padding: 0 6px; }
}

/* --- HEADER --- */
header {
  background: #FAF8F3 url('../assets/textures/leaf-bg.png') repeat top left;
  box-shadow: 0 1px 8px rgba(33,112,56,0.04);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 20px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #217038;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.14s, border-color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #17406D;
  border-bottom: 2px solid #17406D;
}
header img[alt="RadKompass"] {
  height: 43px;
  width: auto;
}
.cta-btn {
  background: #31A354;
  color: #FFF;
  border: 0;
  border-radius: 24px 28px 18px 24px;
  font-size: 1.07rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 13px 34px;
  box-shadow: 0 3px 12px rgba(49,163,84,0.09);
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.19s, box-shadow 0.17s, transform 0.16s;
  outline: none;
  letter-spacing: 0.01em;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #217038;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(33,112,56,0.14);
  transform: translateY(-2px) scale(1.03);
}

/* --- MOBILE NAV --- */
.mobile-menu-toggle {
  display: none;
  background: #31A354;
  border: none;
  color: #FFF;
  font-size: 2rem;
  padding: 8px 16px;
  border-radius: 32px;
  cursor: pointer;
  margin-left: 16px;
  z-index: 120;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #217038;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right:0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background: rgba(250,248,243, 0.96);
  box-shadow: 0 4px 64px rgba(33,112,56,0.16);
  z-index: 2000;
  transition: transform 0.36s cubic-bezier(.19,1,.22,1);
  transform: translateX(-100%);
  flex-direction: column;
  align-items: flex-start;
  justify-content: start;
  padding: 32px 0 0 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: #17406D;
  color: #FFF;
  border: none;
  font-size: 2rem;
  align-self: flex-end;
  margin-right: 24px;
  margin-bottom: 30px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: background 0.12s;
  z-index: 2200;
  box-shadow: 0 2px 14px rgba(23,64,109,0.10);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #217038;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
  padding-left: 40px;
}
.mobile-nav a {
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #17406D;
  letter-spacing: 0.01em;
  padding: 8px 0;
  width: 100%;
  border-radius: 0 24px 24px 0;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #E1EBE2;
  color: #31A354;
}

@media (max-width: 1020px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1021px) {
  .mobile-menu, .mobile-menu.open { display: none !important; }
  .main-nav { display: flex; }
}

/* --- HERO SECTIONS --- */
.hero {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #E1EBE2 url('../assets/textures/organic-leaf.svg') no-repeat right top;
  min-height: 350px;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 8px 36px rgba(49,163,84,0.075);
  margin-bottom: 48px;
  padding: 0 0 20px 0;
  margin-top: 0;
}
.hero .container {
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  margin-left: 0;
  margin-right: 0;
  padding-top: 52px;
  padding-bottom: 32px;
}
.hero h1 {
  font-size: 2.3rem;
  color: #17406D;
  margin-bottom: 10px;
  text-shadow: 0 1px 0 #EAEAEA, 0 6px 20px rgba(49,163,84,0.06);
}
.hero p {
  font-size: 1.13rem;
  color: #217038;
  margin-bottom: 0;
  font-family: 'Arial', Arial, sans-serif;
}
.hero .cta-btn {
  margin-top: 24px;
  font-size: 1.14rem;
}
@media (max-width: 769px) {
  .hero {
    border-bottom-left-radius: 24px;
    min-height: 180px;
    margin-bottom: 20px;
    padding: 0 0 8px 0;
  }
  .hero .content-wrapper { padding-top: 20px; padding-bottom:10px; }
}

/* --- LAYOUT STRUCTURES --- */
.feature-grid, .card-container, .content-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
  margin-bottom: 18px;
  justify-content: space-between;
}
.card-container { gap: 24px; }
.card {
  margin-bottom: 20px;
  background: #FFFFFF;
  border-radius: 22px 18px 24px 10px;
  box-shadow: 0 2px 18px rgba(49,163,84,0.07);
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 240px;
  flex: 1 1 310px;
  max-width: 400px;
  padding: 24px 22px;
  transition: box-shadow 0.19s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 28px rgba(49,163,84,0.15);
  transform: translateY(-3px) scale(1.02);
  z-index: 10;
}
.feature-grid > div {
  flex: 1 1 220px;
  background: #F4F7F6;
  border-radius: 18px 18px 14px 14px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 180px;
  min-height: 258px;
  box-shadow: 0 1px 8px rgba(33,112,56,0.05);
  transition: box-shadow 0.15s, transform 0.16s;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 16px rgba(49,163,84,0.13);
  transform: translateY(-2px) scale(1.02);
}
.feature-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}
.feature-grid h3 {
  font-size: 1.17rem;
  color: #17406D;
  margin-bottom: 6px;
}
.feature-grid p {
  color: #217038;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.text-section {
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid, .content-grid, .features, .card-container {
    flex-direction: column;
    gap: 18px;
  }
}

/* --- TESTIMONIALS / REVIEW CARDS --- */
.testimonials {
  background: #E1EBE2;
  border-radius: 24px 16px 36px 24px;
  padding: 40px 0 52px 0;
}
.testimonials .container {
  align-items: center;
  justify-content: center;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 22px;
  border-radius: 18px 26px 22px 10px;
  background: #FFF;
  color: #215328;
  font-size: 1.12rem;
  box-shadow: 0 2px 15px rgba(33,112,56,0.07);
}
.testimonial-card p {
  color: #17406D;
  margin: 0;
  font-size: 1em;
}
.testimonial-card strong {
  color: #217038;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
}

/* --- CTA SECTIONS --- */
.cta {
  background: #F8FAEA;
  border-radius: 32px 16px 32px 8px;
  padding: 38px 18px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(49,163,84,0.06);
  margin-bottom: 40px;
}
.cta h2 {
  color: #217038;
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.cta p {
  color: #17406D;
  margin-bottom: 24px;
}
.cta .cta-btn {
  font-size: 1.09rem;
  padding: 11px 28px;
}

/* --- ALERTS --- */
.alert {
  padding: 16px 22px;
  background: #E1EBE2;
  color: #17406D;
  border-left: 5px solid #31A354;
  border-radius: 10px 24px 14px 10px;
  margin: 18px 0 22px 0;
  font-size: 1rem;
  box-shadow: 0 1px 8px rgba(33,112,56,0.06);
}
.alert strong { color: #217038; }

/* --- FOOTER --- */
footer {
  background: #25281C url('../assets/textures/leaf-footer.png') repeat-x bottom left;
  color: #FAF8F3;
  padding: 40px 0 18px 0;
  border-top-left-radius: 32px;
  border-top-right-radius: 12px;
  z-index: 10;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  margin-bottom: 6px;
  margin-top: 0;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #A0B68A;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #31A354;
}
footer .cta-btn {
  background: #17406D;
  color: #FFF;
  padding: 8px 22px;
  font-size: 0.99rem;
  margin-top: 8px;
  box-shadow: none;
}
footer .cta-btn:hover, footer .cta-btn:focus {
  background: #31A354;
  color: #FAF8F3;
}
.social-links {
  display: flex;
  gap: 18px;
  margin: 12px 0 0 0;
}
.social-links a img {
  width: 34px;
  height: 34px;
  background: #FFF;
  border-radius: 16px 24px 18px 24px;
  box-shadow: 0 2px 13px rgba(49,163,84,0.09);
  padding: 4px;
  transition: box-shadow 0.15s, background 0.17s;
}
.social-links a img:hover, .social-links a img:focus {
  background: #EAEAEA;
  box-shadow: 0 5px 24px rgba(49,163,84,0.16);
}
.footer-contact {
  margin: 10px 0 0 0;
  font-size: 0.95rem;
  text-align: center;
  color: #CCD5BB;
}
.footer-contact p {
  margin-bottom: 2px;
}
@media (max-width: 768px) {
  .footer-nav { flex-direction: column; gap: 10px; align-items: center; }
  .footer-contact { font-size: 0.90rem; }
  footer .container { gap: 10px; }
}

/* --- DL FAQ Styling --- */
dl, dt, dd {
  margin: 0;
  padding: 0;
}
dl { margin-bottom: 22px; }
dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-top: 18px;
  color: #217038;
}
dd {
  margin-left: 0;
  color: #17406D;
  font-size: 0.98rem;
}

/* --- Feature Items / Utility --- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 22px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* --- Buttons and Form Elements --- */
button, .cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  cursor: pointer;
  outline: none;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid #31A354;
  outline-offset: 3px;
}

/* --- Cookie Consent Banner & Modal --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right:0;
  width: 100%;
  background: #25281C;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px 18px 24px;
  box-shadow: 0 -3px 18px rgba(33,112,56,0.13);
  z-index: 3000;
  font-size: 1rem;
  animation: slideUpBanner 0.8s cubic-bezier(.19,1,.22,1);
}
@keyframes slideUpBanner {
  0% { transform: translateY(80px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 10px 24px;
  font-size: 1rem;
  border-radius: 22px 18px 14px 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  margin: 0;
  transition: background 0.15s, color 0.14s, box-shadow 0.13s;
}
.cookie-btn.accept {
  background: #31A354;
  color: #FFF;
  font-weight: 700;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #217038;
}
.cookie-btn.reject {
  background: #EAEAEA;
  color: #217038;
  font-weight: 600;
  border: 1px solid #217038;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #D3D0C6;
  color: #17406D;
  border-color: #17406D;
}
.cookie-btn.settings {
  background: #17406D;
  color: #FFF;
  font-weight: 600;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #217038;
}
@media (max-width:600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    font-size: 0.95rem;
    padding: 14px 8px 12px 8px;
  }
  .cookie-banner .cookie-btns {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
  }
}

.cookie-modal {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 3300;
  background: rgba(28,36,18,0.76);
  align-items: center;
  justify-content: center;
  transition: opacity 0.21s;
}
.cookie-modal.open {
  display: flex;
  animation: fadeInModal 0.31s cubic-bezier(.19,1,.22,1);
}
@keyframes fadeInModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #FAF8F3;
  border-radius: 26px 20px 24px 10px;
  padding: 36px 24px 28px 24px;
  max-width: 420px;
  width: 93%;
  color: #17406D;
  position: relative;
  box-shadow: 0 4px 38px rgba(33,112,56, 0.23);
  animation: popModal 0.25s;
}
@keyframes popModal {
  0% { transform: scale(0.94); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  color: #217038;
  margin-bottom: 14px;
}
.cookie-categories {
  margin-bottom: 21px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-category input[type=checkbox] {
  accent-color: #31A354;
  width: 20px;
  height: 20px;
  border-radius: 6px;
}
.cookie-category .always-on {
  font-weight: 600;
  color: #31A354;
  margin-left: 6px;
}
.cookie-pref-btns {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: #17406D;
  color: #FFF;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 1;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #31A354;
}

/* --- ORGANIC / NATURE DECORATIVE TOUCHES --- */
.section, .card, .feature-grid > div, .about, .testimonials, .cta, .cookie-modal-content {
  box-shadow: 0 2px 18px rgba(45,120,82,0.08);
  background-image: url('../assets/textures/organic-shape.svg');
  background-repeat: no-repeat;
  background-position: 120% 40%;
  background-size: 85%;
}
@media (max-width:520px){
  .section, .feature-grid > div, .card, .about, .testimonials, .cta, .cookie-modal-content {
    background-size: 210%;
    background-position: 120% 90%;
  }
}

/* --- ORGANIC ACCENTS --- */
h1, h2, h3, .cta-btn, .cookie-btn, .feature-grid h3, .feature-grid p, .testimonials h2 {
  border-radius: 26px 12px 16px 22px;
}

/* --- Misc: Lists with icons --- */
ul li img, .contact-icons {
  margin-right: 8px;
  vertical-align: middle;
  width: 22px;
  height: 22px;
}

/* --- Responsive Tweaks --- */
@media (max-width: 570px) {
  .about, .section, .card, .testimonials, .cta {
    border-radius: 12px 8px 12px 5px;
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* --- Print Safe --- */
@media print {
  * { color: #222 !important; background: #fff !important; box-shadow: none !important; }
  .main-nav, .cta-btn, .cookie-banner, .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* --- Utility Classes --- */
.mb-20 { margin-bottom: 20px !important; }
.mt-20 { margin-top: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }

/* --- END --- */
