/* ===================================================================
   Reset & Base Styles (normalize + reset for consistent rendering)
   =================================================================== */
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 {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #233327;
  background-color: #FAFAF7;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: 0.01em;
  background-image: url('../assets/organic_bg.svg'); /* texture if provided */
  background-size: cover;
  background-repeat: no-repeat;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #206c36;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #164273;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
strong, b {
  font-weight: 600;
}

/* ===================================================================
   Typography
   =================================================================== */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.17;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: #164273;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #233327;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: #448035;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1rem;
  color: #206c36;
}
p {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

/* ===================================================================
   Layout Containers
   =================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 20px;
  background: #F6F8FB;
  box-shadow: 0 2px 8px rgba(35,51,39,0.07);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover, .card:focus {
  box-shadow: 0 6px 28px rgba(35,51,39,0.13);
  transform: translateY(-5px) scale(1.02);
  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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FAFAF7;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(35, 51, 39, 0.08);
  margin-bottom: 20px;
  border-left: 5px solid #5DAED3;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-radius: 18px;
  background: #F4F4ED;
  box-shadow: 0 1px 6px rgba(74,112,52,0.06);
  padding: 24px 20px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.13s;
  border: 1px solid #e2e8dc;
}
.feature-item:hover {
  box-shadow: 0 8px 32px rgba(90,174,211,0.11);
  transform: translateY(-4px) scale(1.01);
}
.hero {
  background: #F6F8FB;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 3px 30px rgba(22,66,115,0.08);
  margin-bottom: 60px;
  padding-top: 40px;
  padding-bottom: 50px;
}

/* ===================================================================
   Header & Navigation
   =================================================================== */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(18, 60, 32, 0.045);
  padding: 0;
  z-index: 90;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
  justify-content: space-between;
  gap: 18px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 12px;
}
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 1rem;
}
header nav a {
  color: #164273;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
header nav a:hover, header nav a:focus {
  background: #ECF3E9;
  color: #206c36;
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #206c36;
  color: #fff;
  padding: 12px 28px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 3px 20px rgba(32,108,54,0.14);
  border: none;
  outline: none;
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
  cursor: pointer;
  display: inline-block;
  margin-left: 12px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #448035;
  color: #fff;
  box-shadow: 0 6px 40px rgba(32,108,54,0.18);
  transform: translateY(-3px) scale(1.02);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #164273;
  border: none;
  font-size: 2.2rem;
  padding: 4px 12px;
  cursor: pointer;
  z-index: 120;
}

/* ======================
   MOBILE NAVIGATION
   ====================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 92vw;
  max-width: 360px;
  height: 100vh;
  background: #F6F8FB;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.43, 0.00, 0.01, 0.99);
  box-shadow: -4px 0 30px rgba(22,66,115,0.21);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding-top: 36px;
  padding-bottom: 32px;
  gap: 18px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #164273;
  font-size: 2.2rem;
  border: none;
  position: absolute;
  top: 16px;
  right: 22px;
  cursor: pointer;
  padding: 4px;
  z-index: 203;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #206c36;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 60px;
  padding-left: 24px;
  font-size: 1.2rem;
}
.mobile-nav a {
  color: #164273;
  padding: 10px 6px;
  border-radius: 10px;
  transition: background 0.16s, color 0.13s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: #ECF3E9;
  color: #206c36;
}

/* Hide main nav on mobile, show burger */
@media (max-width: 960px) {
  header nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===================================================================
   Footer
   =================================================================== */
footer {
  background: #FAFAF7;
  color: #4A7034;
  padding: 38px 0 20px 0;
  font-size: 1rem;
  border-top: 1px solid #e4ede2;
}
footer nav {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
footer nav a {
  color: #164273;
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 8px;
  transition: background 0.14s;
}
footer nav a:hover {
  background: #ECF3E9;
  color: #206c36;
}
.contact-footer {
  font-size: 0.98rem;
  color: #4A7034;
  line-height: 1.7;
}
.contact-footer a {
  color: #206c36;
  text-decoration: underline;
}

/* ===================================================================
   Page-specific Components & Patterns
   =================================================================== */
.feature-grid, .topic-grid, .area-highlight-grid, .listings-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
  margin-bottom: 16px;
}
.region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.region-tabs button {
  background: #ECF3E9;
  color: #206c36;
  border: none;
  border-radius: 16px 12px 15px 17px/18px 13px 16px 12px;
  padding: 8px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.13s, box-shadow 0.17s;
  box-shadow: 0 1px 7px rgba(35,51,39,0.05);
}
.region-tabs button:hover, .region-tabs button:focus {
  background: #206c36;
  color: #fff;
  box-shadow: 0 4px 14px #5DAED340;
}

.compare-table {
  background: #F6F8FB;
  padding: 25px 20px 18px 20px;
  border-radius: 18px;
  margin-bottom: 40px;
  box-shadow: 0 1px 8px rgba(35,51,39,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compare-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin-bottom: 10px;
}
.compare-table th, .compare-table td {
  border-bottom: 1px solid #e4ede2;
  padding: 10px 8px;
  text-align: left;
}
.compare-table th {
  background: #ECF3E9;
  color: #206c36;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}
.compare-table tr:last-child td {
  border-bottom: none;
}

.search-bar {
  display: flex;
  align-items: center;
  background: #F6F8FB;
  border-radius: 16px;
  padding: 7px 10px;
  max-width: 360px;
  gap: 8px;
  margin-bottom: 16px;
  border: 1px solid #e2e8dc;
}
.search-bar input[type='text'] {
  border: none;
  background: transparent;
  font-size: 1rem;
  outline: none;
  flex: 1 1 auto;
  color: #448035;
  padding: 7px 4px;
}
.search-bar input::placeholder {
  color: #89aa8e;
}
.search-bar img {
  height: 22px;
  width: 22px;
}
.quick-tips {
  background: #F4F4ED;
  border-radius: 14px;
  padding: 14px 16px 14px 32px;
  font-size: 0.99rem;
  margin-top: 10px;
  color: #4A7034;
  font-style: italic;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-details img {
  height: 20px;
  width: 20px;
  vertical-align: middle;
  margin-right: 7px;
}

/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: rgba(235, 242, 230, 0.97);
  border-top: 3px solid #206c36;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 20px 10px;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(32,108,54,0.08);
  font-size: 1rem;
  transition: transform 0.39s;
  animation: fadeinSlideUp 0.45s;
}
@keyframes fadeinSlideUp {
  from { opacity: 0; transform: translateY(100px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-text {
  max-width: 450px;
  color: #206c36;
  line-height: 1.5;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 16px 20px 14px 20px/18px 22px 14px 18px;
  padding: 9px 22px;
  font-weight: 600;
  font-size: 1rem;
  background: #206c36;
  color: #fff;
  box-shadow: 0 2px 12px #206c3620;
  cursor: pointer;
  transition: background 0.16s, transform 0.13s;
  outline: none;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #448035;
}
.cookie-btn.reject {
  background: #e0e9d7;
  color: #206c36;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #b6cd9e;
  color: #164273;
}
.cookie-btn.settings {
  background: #F6F8FB;
  color: #206c36;
  border: 1px solid #206c36;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #ECF3E9;
}

/* Cookie Modal Styles */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 108, 54, 0.40);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeinModal 0.29s;
}
@keyframes fadeinModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #FAFAF7;
  border-radius: 24px;
  max-width: 410px;
  width: 90vw;
  padding: 32px 22px 32px 32px;
  box-shadow: 0 8px 38px #23332725;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal h2 {
  font-size: 1.25rem;
  color: #206c36;
  margin-bottom: 6px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 600;
  color: #233327;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  background: none;
  color: #164273;
  border: none;
  font-size: 1.8rem;
  position: absolute;
  top: 14px;
  right: 18px;
  cursor: pointer;
  z-index: 10004;
  transition: color 0.15s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  color: #206c36;
}

/* ===================================================================
   Utilities & Micro-Animations
   =================================================================== */
@media (hover: hover) and (pointer: fine) {
  .feature-item, .testimonial-card, .compare-table, .card {
    transition: box-shadow 0.18s, transform 0.13s;
  }
}

::-webkit-scrollbar {
  width: 9px;
  background: #e7efda;
}
::-webkit-scrollbar-thumb {
  background: #d6dfce;
  border-radius: 10px;
}

/* ===================================================================
   RESPONSIVE DESIGN (mobile-first, then up)
   =================================================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 6px;
  }
  section, .section {
    margin-bottom: 34px;
    padding: 28px 7px;
  }
  .hero {
    border-radius: 0 0 16px 16px;
    padding-top: 22px;
    padding-bottom: 30px;
  }
  .content-wrapper, .content-grid, .feature-grid, .topic-grid, .area-highlight-grid, .listings-overview {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 18px;
  }
  .card, .feature-item {
    padding: 16px 10px;
    border-radius: 14px;
  }
  .region-tabs {
    gap: 7px;
  }
}
@media (max-width: 550px) {
  h1 {
    font-size: 1.45rem;
  }
  h2 {
    font-size: 1.13rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    font-size: 0.95rem;
    padding: 14px 4px;
  }
  .cookie-modal {
    padding: 18px 6px 24px 8px;
    border-radius: 12px;
  }
}

/* ===================================================================
   ORGANIC SHAPES & NATURE/ORGANIC FEEL
   =================================================================== */
.card, .feature-item, .hero, .compare-table, .testimonial-card {
  border-radius: 24px 20px 28px 17px/20px 22px 13px 28px;
}
/* Nature-inspired subtle shadow on hover */
.card:hover, .feature-item:hover, .testimonial-card:hover {
  box-shadow: 0 5px 22px rgba(32,108,54,0.17);
}

section {
  background: linear-gradient(95deg, #F4F4ED 22%, #F6F8FB 100%);
  border-radius: 1.5rem;
  box-shadow: 0 1px 14px rgba(99, 143, 68, 0.06);
}
.hero {
  background: linear-gradient(137deg, #F6F8FB 65%, #e3eddd 100%);
  border-bottom: 5px solid #b6cd9e;
}

/* Buttons, badges, and tabs with organic styling */
.cta-btn, .cookie-btn {
  border-radius: 20px 27px 15px 22px / 18px 32px 23px 18px;
}
.region-tabs button {
  border-radius: 16px 12px 15px 17px/18px 13px 16px 12px;
}

/* ===================================================================
   ACCENT COLORS & VISUAL HIERARCHY
   =================================================================== */
body {
  background-color: #FAFAF7;
}
.card, .compare-table, .testimonial-card, .feature-item {
  background: #F6F8FB;
}

h1, .cta-btn, .region-tabs button, .feature-item h3, .testimonial-card p strong {
  color: #164273;
}
h3 {
  color: #206c36;
}

/* Strong green accent for links & actions */
a, .cookie-btn.accept, .region-tabs button.active {
  color: #206c36;
}

/* ===================================================================
   ACCESSIBILITY AND CONTRAST IN TESTIMONIALS
   =================================================================== */
.testimonial-card, .testimonial-card p, .testimonial-card p strong {
  background: #F6F8FB;
  color: #164273;
}

.testimonial-card p:last-child {
  color: #4A7034;
  font-size: 0.99rem;
  margin-top: -6px;
  font-weight: 600;
}

/* ===================================================================
   MICRO-INTERACTIONS & TRANSITIONS
   =================================================================== */
a, .cta-btn, .region-tabs button, .feature-item, .card, input, .cookie-btn {
  transition: background 0.18s, color 0.16s, box-shadow 0.13s, border 0.14s, transform 0.14s;
}

/* ===================================================================
   SPACING & FLEX PATTERNS (MANDATORY)
   =================================================================== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { 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; }

/* ===================================================================
   OTHER: Hide elements as needed for accessibility
   =================================================================== */
[aria-disabled='true'] {
  opacity: 0.61;
  pointer-events: none;
  filter: grayscale(20%);
}

/* ===================================================================
   PRINT STYLING
   =================================================================== */
@media print {
  header, nav, .cookie-banner, .mobile-menu, footer {
    display: none !important;
  }
  section, .section, .container {
    box-shadow: none !important; background: #fff !important;
  }
}
