/* RESET & BASELINE --------------------------------------------------- */
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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
  display: block;
}
body {
  line-height: 1.6;
  font-size: 16px;
  background: #F5F7FA;
  color: #235168;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after {
  box-sizing: inherit;
}
a {
  color: #207742;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #39995D;
  text-decoration: underline;
}

/* CUSTOM FONTS ---------------------------------------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  color: #235168;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.3rem; line-height: 1.15; }
h2 { font-size: 1.65rem; line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.3; }

p, ul, ol, li, span {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: #235168;
}
.subheadline {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  color: #39995D;
  margin-bottom: 20px;
}

ul, ol {
  margin-left: 24px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 10px;
  list-style-type: disc;
  padding-left: 6px;
}
ol > li { list-style-type: decimal!important; }

b, strong {
  font-weight: 700;
  color: #207742;
}

/* SPACING --------------------------------------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 3px 24px 0 rgba(51, 81, 104, 0.07);
  padding: 32px 24px;
  margin-bottom: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(35, 81, 104, 0.11);
  margin-bottom: 20px;
  position: relative;
  min-width: 250px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(51, 153, 93, 0.13);
  transform: translateY(-4px) scale(1.02) rotate(-0.5deg);
}

.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;
}

div.testimonial-card, .testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fcfcfc;
  border-left: 6px solid #39995D;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 3px 24px 0 rgba(35,81,104,0.05);
  max-width: 480px;
}
.testimonial-card p {
  color: #235168;
  font-size: 1.09rem;
  margin-bottom: 0;
}
.testimonial-card span {
  color: #207742;
  font-size: 0.99rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

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

.section:last-child { margin-bottom: 0; }

/* HERO ------------------------------------------------------------ */
.hero {
  min-height: 340px;
  background: #fff8f3;
  background: linear-gradient(106deg, #F5F7FA 66%, #39995D 70%, #207742 97%);
  border-bottom-left-radius: 48px;
  border-bottom-right-radius: 80px 60px;
  box-shadow: 0 8px 28px 0 rgba(35,81,104,0.05);
  padding: 60px 0 40px;
  position: relative;
  margin-bottom: 60px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 24px;
}
.hero h1 {
  font-size: 2.4rem;
  color: #235168;
  letter-spacing: 0.02em;
}
.hero .subheadline {
  font-size: 1.19rem;
}

/* NAVIGATION ------------------------------------------------------ */
header {
  z-index: 99;
  position: relative;
  width: 100%;
  background: #F5F7FA;
  box-shadow: 0 2px 10px 0 rgba(35,81,104,0.05);
  padding-top: 18px;
  padding-bottom: 18px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  justify-content: flex-start;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}
.main-nav a {
  color: #235168;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1rem;
  padding: 7px 13px;
  border-radius: 32px;
  transition: background 0.18s, color 0.18s;
  position: relative;
  z-index: 2;
  line-height: 1.8;
}
.main-nav a.cta {
  background: #39995D;
  color: #fff;
  font-size: 1.02rem;
  padding: 8px 24px;
  border-radius: 28px;
  box-shadow: 0 3px 14px 0 rgba(32,119,66,0.11);
  margin-left: 16px;
  letter-spacing: 0.08em;
  transition: background 0.17s, color 0.15s, box-shadow 0.2s;
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: #207742;
  color: #fff;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E2F7EA;
  color: #39995D;
}
.main-nav img {
  height: 40px;
  margin-right: 10px;
  vertical-align: middle;
}

/* MOBILE MENU ----------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 18px;
  z-index: 115;
  font-size: 2rem;
  border: none;
  background: none;
  color: #235168;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #E2F7EA;
  color: #207742;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,81,104,0.94);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.22,.68,.59,1.08);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 11vh;
  width: 100%;
  height: 100vh;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0%);
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 36px;
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 208;
  border-radius: 7px;
  padding: 2px 10px;
  transition: background 0.16s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: rgba(57,153,93,0.23);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 80vw;
  max-width: 350px;
  margin-left: 28px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 900;
  margin: 0;
  padding: 10px 16px;
  border-radius: 22px;
  background: none;
  line-height: 1.7;
  transition: background 0.18s, color 0.14s;
  outline: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #39995D;
  color: #fff;
}

@media (max-width: 1100px) {
  .main-nav { gap: 16px; }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 2vw;
    font-size: 0.97rem;
  }
}
@media (max-width: 820px) {
  .main-nav a:not(:first-child):not(.cta) { display: none; }
  .main-nav a.cta { margin-left: auto; }
  .mobile-menu-toggle { 
    display: block;
  }
}

@media (max-width: 768px) {
  .main-nav { display: flex; gap: 0; justify-content: flex-start; }
  .main-nav a, .main-nav a.cta {
    padding: 6px 9px;
    font-size: 0.98rem;
  }
  header { padding: 10px 0; }
  .hero { padding: 38px 0 24px; border-bottom-left-radius: 32px; border-bottom-right-radius: 50px 38px; margin-bottom: 30px; }
}

/* FEATURES & SERVICES --------------------------------------------- */
.features, .services, .contact, .legal, .confirmation {
  margin-bottom: 60px;
  padding: 40px 0;
}
.features .content-wrapper, .services .content-wrapper,
.contact .content-wrapper, .legal .content-wrapper, .confirmation .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.features ul, .services ul, .features ol, .services ol {
  margin-bottom: 16px;
}
.features img, .services img {
  width: 28px; height: 28px;
  margin-right: 10px;
  vertical-align: middle;
}
.features li, .services li {
  display: flex; align-items: center;
  font-size: 1.07rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #235168;
  margin-bottom: 10px;
  background: none;
  border: none;
}
.features li b, .services li b { color: #207742; font-weight: bold; }

/* BUTTONS & CTA --------------------------------------------------- */
.cta, a.cta, button.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #39995D;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 24px;
  padding: 10px 32px;
  margin-top: 8px;
  box-shadow: 0 4px 18px -6px #20774233;
  transition: background 0.18s, box-shadow 0.18s, transform 0.17s;
  cursor: pointer;
  text-align: center;
  min-width: 150px;
}
.cta:hover, .cta:focus {
  background: #207742;
  color: #fff;
  transform: scale(1.05) rotate(-.7deg);
  box-shadow: 0 8px 32px 0 #39995d33;
}
button.cta:active { transform: scale(0.97); }

/* FOOTER ---------------------------------------------------------- */
footer {
  background: #235168;
  color: #fff;
  padding: 42px 0 18px;
  border-top-left-radius: 42px;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-nav a, .footer-legal a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.88;
  padding: 7px 12px;
  border-radius: 18px;
  transition: background 0.15s, color 0.15s;
}
.footer-nav a:hover, .footer-legal a:hover,
.footer-nav a:focus, .footer-legal a:focus {
  background: #39995D;
  color: #fff;
  opacity: 1;
}
.footer-brand {
  font-size: 0.98rem;
  color: #fff;
  font-weight: 400;
  font-family: 'Roboto', Arial, sans-serif;
  text-align: center;
  margin-top: 8px;
  opacity: 0.85;
  letter-spacing: 0.03em;
}
.footer-social {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 14px;
}
.footer-social img {
  width: 27px;
  height: 27px;
  opacity: .81;
  transition: opacity 0.18s, filter 0.16s;
}
.footer-social a:hover img, .footer-social a:focus img {
  opacity: 1;
  filter: brightness(1.35);
}

/* LEGAL, CONFIRMATION ---------------------------------------------- */
.legal h1, .confirmation h1 {
  color: #39995D;
  font-size: 2.05rem;
  margin-bottom: 22px;
}
.legal h2 {
  font-size: 1.19rem;
  color: #235168;
  margin-top: 22px;
}
.legal ul { margin-bottom: 18px; }

/* COOKIE CONSENT BANNER & MODAL ------------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1100;
  background: #F5F7FA;
  color: #235168;
  padding: 26px 16px 19px 16px;
  box-shadow: 0 -2px 22px 0 rgba(35,81,104,0.08);
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 4px solid #39995D;
  animation: cookieSlideIn 0.7s cubic-bezier(.22,.68,.59,1.08);
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%) scale(.98); opacity: 0; }
  to { transform: translateY(0%) scale(1); opacity: 1; }
}
.cookie-banner p {
  margin: 0 12px 0 0;
  font-size: 1rem;
  color: #235168;
}
.cookie-action-btn {
  background: #39995D;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  border: none;
  margin-right: 10px;
  border-radius: 18px;
  padding: 7px 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px -3px #39995d33;
  transition: background 0.14s, color 0.12s, box-shadow 0.14s;
}
.cookie-action-btn:last-child { margin-right: 0; }
.cookie-action-btn:hover, .cookie-action-btn:focus {
  background: #207742;
  color: #fff;
}
.cookie-action-btn.reject {
  background: #fff;
  color: #39995D;
  border: 2px solid #39995D;
  box-shadow: none;
}
.cookie-action-btn.reject:hover, .cookie-action-btn.reject:focus {
  background: #ffeced;
  color: #207742;
  border: 2px solid #207742;
}
.cookie-action-btn.settings {
  background: #235168;
  color: #fff;
  border: none;
}
.cookie-action-btn.settings:hover, .cookie-action-btn.settings:focus {
  background: #153344;
}

.cookie-modal {
  position: fixed; left: 0; right: 0; bottom: 0; top: 0;
  background: rgba(35,81,104,0.74);
  z-index: 1150;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 #15334433;
  padding: 32px 28px 18px 28px;
  min-width: 320px;
  max-width: 96vw;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookieModalPop 0.6s cubic-bezier(.22,.68,.59,1.08);
}
@keyframes cookieModalPop {
  from { transform: scale(0.84) translateY(54px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  color: #235168;
  font-weight: 700;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #39995D;
  font-size: 2.1rem;
  cursor: pointer;
  padding: 2px 12px;
  border-radius: 7px;
  transition: background 0.16s;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  background: #E2F7EA;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 11px;
}
.cookie-category-label {
  font-size: 1.02rem;
  color: #235168;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.cookie-toggle {
  position: relative;
  width: 46px;
  height: 26px;
  display: inline-block;
}
.cookie-toggle input { display: none; }

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  background-color: #ddd;
  border-radius: 14px;
  width: 46px;
  height: 100%;
  transition: background 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: #39995D;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
  box-shadow: 0 1px 5px 0 rgba(35,81,104,0.05);
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
  left: 24px;
}
.cookie-category[data-essential] .cookie-toggle-slider {
  background: #bbb;
  opacity: 0.6;
}
.cookie-category[data-essential] .cookie-toggle-slider::before {
  filter: grayscale(1);
}
.cookie-category[data-essential] .cookie-toggle {
  pointer-events: none;
  opacity: 0.7;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  justify-content: flex-end;
}

/* ANIMATION & MICRO-INTERACTIONS ---------------------------------- */
.card, div.testimonial-card {
  transition: box-shadow 0.25s, transform 0.25s;
}
.cta, .cookie-action-btn {
  transition: background 0.2s, color 0.13s, transform 0.13s;
}
.cta:active, .cookie-action-btn:active { transform: scale(.97); }

/* RESPONSIVE BREAKPOINTS ------------------------------------------ */
@media (max-width: 1020px) {
  .container { max-width: 96vw; }
  .hero, .section, footer { padding-left: 0; padding-right: 0; }
}
@media (max-width: 800px) {
  .hero h1 { font-size: 1.57rem; }
  .section, .services, .features, .legal, .confirmation { padding: 24px 0; }
}
@media (max-width: 768px) {
  .section, .services, .features, .legal, .confirmation {
    padding: 14px 0;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card, div.testimonial-card {
    max-width: 100%;
    padding: 18px 12px;
  }
  .container {
    padding: 0 7px;
  }
  .hero .content-wrapper { gap: 12px; }
  .text-section { padding: 18px 7px; }
  .footer-nav, .footer-legal { gap: 7px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.22rem; }
  h2 { font-size: 1.09rem; }
  .container { padding: 0 2px; }
}
@media (max-width: 480px) {
  .cookie-banner { flex-direction: column; gap: 10px; align-items: flex-start; }
  .cookie-banner p { margin-bottom: 6px; }
  .mobile-menu { padding-top: 9vh; }
  .mobile-nav a { font-size: 0.99rem; }
  .cookie-modal-content { padding: 17px 3vw 14px 3vw; }
}

/* ARTISTIC & CREATIVE ACCENTS ------------------------------------- */
.hero, .footer-brand, .section, .features, .cta, .main-nav a.cta, .cookie-action-btn, .card, .testimonial-card {
  box-shadow: 0 3px 24px 0 rgba(51,153,93,0.06),  0px 14px 80px -12px #39995d11 inset, 0 1.5px 4px -1px #23516812;
}
.features li, .services li {
  border-radius: 11px;
  padding-right: 10px;
  background: linear-gradient(90deg, #fff 90%, #E2F7EA 100%);
}
.features li img, .services li img {
  filter: hue-rotate(-18deg) saturate(1.2);
}
.testimonial-card {
  border-left: 6px solid #207742;
  background: #ffffff;
  box-shadow: 0 4px 18px -6px #20774223;
  position: relative;
  margin-left: 4px;
}
.testimonial-card:after {
  content: '';
  background: #39995D44;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  position: absolute;
  right: -17px;
  bottom: -17px;
  z-index: 0;
  opacity: 0.19;
}
.card:after {
  content: '';
  background: #20774219;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 0;
  opacity: 0.08;
}
.main-nav a.cta {
  box-shadow: 0 4px 18px -6px #20774233, 0 1.5px 4px -1px #23516814;
}

/* SCROLLBAR (optional, artistic touch) ---------------------------- */
::-webkit-scrollbar {
  width: 10px;
  background: #f5f7fa;
}
::-webkit-scrollbar-thumb {
  background: #E2F7EA;
  border-radius: 12px;
}

/* PRINT - REMOVE DECORATIONS -------------------------------------- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; }
}
