/* ==========================================================
   CSS RESET & BASE STYLES (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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  color: #1a2326;
  background: linear-gradient(135deg, #f5f3ef 0%, #eaf0ee 100%);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*, *:before, *:after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: #174C4F;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #9E8B6C;
  outline-offset: 1px;
}


/* ==========================================================
   TYPOGRAPHY
========================================================== */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #174C4F;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -1px;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.2;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, ul, ol {
  font-size: 1rem;
  color: #262d2f;
  margin-bottom: 18px;
}
ul, ol {
  margin-left: 23px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 10px;
}
strong {
  font-weight: 700;
  color: #174C4F;
}


/* Typography scale for contemporary look */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }
  p, ul, ol { font-size: 1.125rem; }
}

/* ==========================================================
   CONTAINERS & LAYOUTS
========================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(30, 65, 90, 0.05);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Card containers and grid, Flexbox only */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(23,76,79,0.04);
  margin-bottom: 20px;
  flex: 1 1 300px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(23,76,79,0.13);
  transform: translateY(-4px) scale(1.015);
  z-index: 2;
}

.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;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 24px; }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(23,76,79,0.09);
  margin-bottom: 20px;
  border-left: 4px solid #9E8B6C;
  transition: box-shadow 0.22s, border-color 0.22s;
}
.testimonial-card p {
  color: #234146;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 20px rgba(30, 65, 90, 0.13);
  border-left-color: #174C4F;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FAFAF9;
  border-radius: 14px;
  padding: 22px 18px;
  margin-bottom: 16px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 260px;
  min-width: 220px;
  background: #fafafa;
  border-radius: 12px;
  padding: 22px 16px;
  box-shadow: 0 2px 8px rgba(23,76,79,0.05);
  transition: box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 28px rgba(23, 76, 79, 0.13);
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}

/* Lists Reset */
.text-section ul, .text-section ol, .content-wrapper ul, .content-wrapper ol {
  margin-left: 20px;
  margin-bottom: 12px;
}

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

/* Spacing Utilities */
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-40 { margin-bottom: 40px !important; }

/* ==========================================================
    HERO SECTION
========================================================== */
.hero {
  background: linear-gradient(120deg, #f5f3ef 40%, #d7ebe5 100%);
  padding-top: 68px;
  padding-bottom: 64px;
  border-radius: 0 0 40px 40px;
  margin-bottom: 48px;
}
.hero h1 {
  color: #174C4F;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 18px;
}
.hero p {
  color: #4D6870;
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.hero .cta-primary {
  font-size: 1.15rem;
  padding: 16px 40px;
}
@media (max-width: 768px) {
  .hero { padding: 48px 0 36px 0; border-radius: 0 0 30px 30px; }
}

/* ==========================================================
   HEADER & NAVIGATION
========================================================== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(23,76,79,0.04);
  position: sticky;
  top: 0;
  z-index: 99;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  min-height: 64px;
}
header a img {
  height: 48px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav a {
  color: #174C4F;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.07rem;
  letter-spacing: 0.2px;
  padding: 7px 0;
  border-radius: 5px;
  position: relative;
  transition: color 0.17s, background 0.17s;
}
nav a:hover, nav a.active {
  color: #9E8B6C;
  background: #f5f3ef;
}
nav .cta-primary {
  margin-left: 14px;
}
.cta-primary {
  background: linear-gradient(90deg, #174C4F 70%, #9E8B6C 100%);
  color: #fff;
  padding: 13px 28px;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 8px rgba(23,76,79,0.07);
  cursor: pointer;
  transition: background 0.17s, box-shadow 0.22s, transform 0.17s;
  outline: none;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, #175a5a 65%, #b8a682 100%);
  box-shadow: 0 4px 20px rgba(23,76,79,0.14);
  transform: translateY(-1px) scale(1.028);
}
.cta-secondary {
  background: #fff;
  color: #174C4F;
  padding: 12px 26px;
  border-radius: 26px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: 2px solid #174C4F;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.18s;
  display: inline-block;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #174C4F;
  color: #fff;
  border-color: #9E8B6C;
}

@media (max-width: 1024px) {
  header .container { flex-direction: row; }
}
@media (max-width: 850px) {
  nav {
    display: none;
  }
  header .mobile-menu-toggle {
    display: block;
  }
}

/* ==========================================================
   MOBILE MENU (Burger/Nav Overlay)
========================================================== */
header .mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: #174C4F;
  color: #fff;
  padding: 9px 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s, color 0.15s;
  z-index: 110;
}
header .mobile-menu-toggle:hover, header .mobile-menu-toggle:focus {
  background: #234146;
  color: #FAFAF9;
  outline: none;
}

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

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #f5f3ef;
  z-index: 120;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.83,.06,.41,.97);
  box-shadow: 0 8px 40px rgba(23,76,79,0.13);
  padding: 0;
  visibility: hidden;
}
.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: #174C4F;
  background: transparent;
  border: none;
  margin: 26px 26px 12px 0;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 9px;
  transition: background 0.12s, color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #e9efeb;
  color: #9E8B6C;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 22px;
  flex: 1 1 auto;
}
.mobile-nav a {
  color: #174C4F;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  font-weight: 500;
  border-radius: 7px;
  padding: 14px 10px;
  transition: color 0.16s, background 0.14s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #eaf0ee;
  color: #9E8B6C;
}
@media (min-width: 851px) {
  .mobile-menu { display: none !important; }
}


/* ==========================================================
    FOOTER
========================================================== */
footer {
  background: linear-gradient(90deg, #f5f3ef 70%, #eaf0ee 100%);
  padding: 0;
  margin-top: 56px;
}
footer .container {
  padding: 30px 20px 20px 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
footer nav a {
  font-size: 1rem;
  color: #4D6870;
  transition: color 0.19s;
}
footer nav a:hover {
  color: #174C4F;
}

.social-links {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}
.social-links img {
  height: 30px;
  width: 30px;
  transition: transform 0.2s;
}
.social-links a:hover img {
  transform: scale(1.12);
}

.legal-info {
  color: #6a7d7a;
  font-size: 0.97rem;
  margin-top: 10px;
  opacity: 0.92;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}


/* ==========================================================
    COOKIE CONSENT BANNER & MODAL
========================================================== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  z-index: 9000;
  background: #fff;
  box-shadow: 0 -4px 24px rgba(30,65,90,0.08);
  padding: 24px 16px 16px 16px;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 430px;
  margin: 0 auto;
  transition: transform 0.3s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner p {
  margin-bottom: 0;
  font-size: 1.1rem;
  color: #174C4F;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 10px;
}
.cookie-btn {
  padding: 11px 23px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.13s, box-shadow 0.19s;
}
.cookie-btn.accept {
  background: linear-gradient(90deg, #174C4F 70%, #9E8B6C 100%);
  color: #fff;
}
.cookie-btn.accept:hover {
  background: linear-gradient(90deg, #175a5a 62%, #b8a682 100%);
  color: #fff;
}
.cookie-btn.reject {
  background: #eaf0ee;
  color: #174C4F;
}
.cookie-btn.reject:hover { background: #e0e0da; }
.cookie-btn.settings {
  background: #fafafa;
  color: #9E8B6C;
  border: 1px solid #9E8B6C;
}
.cookie-btn.settings:hover { background: #f5f3ef; color: #174C4F; }

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23, 76, 79, 0.15);
  z-index: 9900;
  display: none;
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 30px rgba(30,65,90,0.09);
  padding: 30px 24px 24px 24px;
  max-width: 440px;
  width: 96%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeInSlideUp .2s;
}

}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #174C4F;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 1.08rem;
}
.cookie-category input[type='checkbox'] {
  accent-color: #174C4F;
  width: 19px;
  height: 19px;
}
.cookie-category .always-on {
  color: #999;
  font-size: 0.97rem;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 13px; right: 16px;
  border: none;
  background: transparent;
  font-size: 1.34rem;
  color: #174C4F;
  cursor: pointer;
  padding: 3px 7px;
  border-radius: 6px;
  transition: background 0.13s, color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #eaf0ee;
  color: #9E8B6C;
  outline: none;
}

/* ==========================================================
   RESPONSIVE DESIGN (Mobile-first, then up)
========================================================== */
@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .section {
    padding: 24px 6px;
    border-radius: 14px;
  }
  .content-wrapper {
    gap: 19px;
  }
  .feature-grid > div, .card {
    min-width: 154px;
    padding: 13px 9px;
    border-radius: 10px;
  }
  .testimonial-card {
    padding: 13px 9px;
    border-radius: 13px;
  }
  footer .container {
    padding: 18px 8px 14px 8px;
  }
}

@media (max-width: 600px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .hero {
    padding-top: 28px;
    padding-bottom: 23px;
    border-radius: 0 0 16px 16px;
  }
  .section {
    border-radius: 8px;
    padding: 12px 2px;
  }
}

/* ==========================================================
   GENERAL BUTTON & FORM STYLES
========================================================== */
button, .cta-primary, .cta-secondary, .cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background 0.16s, color 0.16s, box-shadow 0.13s, border-color 0.13s;
}

input, select, textarea {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  border-radius: 7px;
  border: 1.5px solid #e4e9e7;
  padding: 9px 13px;
  font-size: 1rem;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(23,76,79,0.03);
  transition: border-color 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #9E8B6C;
  outline: none;
}

/* ==========================================================
   MICRO-INTERACTIONS & TRANSITIONS
========================================================== */
a, button, .cta-primary, .cta-secondary, .feature-grid > div, .card, .testimonial-card {
  transition: box-shadow 0.2s, transform 0.18s, background 0.18s, color 0.16s, border-color 0.14s;
}

/* ==========================================================
   MISC & DETAIL STYLES
========================================================== */
::-webkit-scrollbar {
  width: 9px;
  background: #eaf0ee;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb {
  background: #c3c3b9;
  border-radius: 9px;
}


/* ==========================================================
   ADAPT COLOR CONTRAST - TESTIMONIALS, CARD, BANNERS
========================================================== */
.testimonial-card, .card, .section, .feature-grid > div {
  color: #174C4F;
  background: #fff;
}
.testimonial-card {
  background: #fff;
  color: #1a2326;
}
.testimonial-card a {
  color: #174C4F;
}

/* ==========================================================
   PRINT/MEDIA QUERIES (ACCESSIBILITY)
========================================================== */
@media print {
  *, *:before, *:after { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  body, .container, .section, .content-wrapper, .feature-grid, .card, .testimonial-card { box-shadow: none !important; border-radius: 0 !important; }
}

/* ==========================================================
   END OF CSS
========================================================== */