/* ============================================================
   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, 
main, 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 { scroll-behavior: smooth; }
body { line-height: 1; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img, svg { max-width: 100%; display: block; height: auto; }
button, input, select, textarea { font-family: inherit; font-size: 1em; background: none; border: none; outline: none; padding: 0; margin: 0; }
button { cursor: pointer; }

/* ============================================================
   FONT FACES (googlefonts: Montserrat & Roboto)
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500;700&display=swap');

:root {
  /* Brand Colors */
  --color-primary: #23324F;
  --color-secondary: #71A39A;
  --color-accent: #F5F3EB;

  /* Organic/Nature additions for Earth Tones */
  --color-earth: #B8B294;
  --color-bark: #6E6240;
  --color-green: #50986B;
  --color-sand: #DED8CD;
  --color-leaf: #7D9655;
  --color-shadow: rgba(35,50,79,0.07);
  --color-focus: #385C46;

  /* Text */
  --color-text-main: #23324F;
  --color-text-dark: #1E2D34;
  --color-text-light: #728078;
  --color-link: #50986B;

  /* Other */
  --border-radius: 22px;
  --card-radius: 20px;
  --input-radius: 12px;

  --shadow-soft: 0 2px 16px 0 var(--color-shadow);

  --transition-main: all 0.23s cubic-bezier(.45,.05,.55,.95);
}

/* ================= NATURE ORGANIC BASE =================== */
body {
  background: var(--color-accent);
  color: var(--color-text-main);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}
h1 { font-size: 2.4rem; margin-bottom: 16px; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; }

p, li {
  color: var(--color-dark, #23324F);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 12px;
}
.lead {
  color: var(--color-green);
  font-size: 1.22rem;
  font-weight: 500;
  margin-bottom: 22px;
}
strong { color: var(--color-leaf); font-weight: 700; }

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.07rem; }
  .lead { font-size: 1.03rem; }
}

/* ============================================================
   LAYOUT CONTAINERS (FLEXBOX & SPACING)
============================================================ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--border-radius);
  background: var(--color-accent);
  box-shadow: var(--shadow-soft);
}
@media (max-width: 768px) {
  .section { padding: 28px 10px; margin-bottom: 38px; }
  .container { padding-left: 8px; padding-right: 8px; }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-sand);
  border-radius: var(--card-radius);
  box-shadow: 0 4px 18px 0 var(--color-shadow);
  padding: 28px 24px;
  min-width: 270px;
  flex: 1 1 270px;
  transition: box-shadow 0.22s; 
}
.card:hover {
  box-shadow: 0 2px 32px 0 rgba(35,50,79,0.16);
}

.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) {
  .content-grid, .card-container, .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
  background: var(--color-accent);
  box-shadow: 0 1px 7px 0 rgba(113,163,154,0.10);
  margin-bottom: 20px;
  transition: box-shadow var(--transition-main), transform var(--transition-main);
  border-left: 6px solid var(--color-green);
}
.testimonial-card:hover {
  box-shadow: 0 4px 18px 0 var(--color-shadow);
  background: #f0efea;
  transform: translateY(-3px) scale(1.014);
}
.testimonial-card p {
  font-size: 1.06em;
  color: var(--color-text-main);
  font-weight: 500;
}
.testimonial-card span {
  font-size: 0.98em;
  color: var(--color-text-light);
  font-style: italic;
}

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

/* ============================================================
   NAVIGATION: Desktop/Main & Responsive
============================================================ */
header {
  background: var(--color-accent);
  box-shadow: 0 2px 12px 0 rgba(35,50,79,0.04);
  margin-bottom: 16px;
  z-index: 100;
  position: relative;
  height: 100px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 0 14px 0;
}
.main-nav > a {
  color: var(--color-text-main);
  font-size: 1rem;
  padding: 5px 15px;
  font-weight: 500;
  border-radius: 30px;
  transition: color 0.22s, background 0.22s;
}
.main-nav > a:hover, .main-nav > a:focus {
  background-color: var(--color-secondary);
  color: #fff;
}
.main-nav img {
  height: 44px; width: auto; margin-right: 12px;
}

.cta-button {
  background: var(--color-green);
  color: #fff !important;
  border-radius: 50px;
  padding: 10px 26px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 2px 12px 0 rgba(80,152,107,0.09);
  margin-left: 14px;
  transition: background var(--transition-main), box-shadow var(--transition-main), transform 0.15s;
  border: 0;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-primary);
  color: var(--color-accent) !important;
  box-shadow: 0 4px 18px 0 var(--color-shadow);
  transform: scale(1.055) translateY(-2px);
}

/* HIDE desktop nav on small screens */
@media (max-width: 960px) {
  .main-nav {
    display: none;
  }
}

/* ===================== MOBILE MENU ======================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--color-green);
  color: #fff;
  font-size: 2rem;
  padding: 10px 18px;
  border-radius: 50%;
  z-index: 210;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 18px 0 rgba(80,152,107,0.14);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-primary);
}

@media (max-width: 960px) {
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(35,50,79, 0.96);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.41s cubic-bezier(.66,.13,.52,1.38), opacity 0.29s;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.5rem;
  align-self: flex-end;
  margin: 10px 20px 0 0;
  padding: 4px 18px;
  border: none;
  cursor: pointer;
  z-index: 3100;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 38px;
  padding-left: 40px;
  padding-right: 40px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.18rem;
  padding: 13px 0;
  font-weight: 500;
  border-radius: 20px;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.02em;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-green);
  color: #fff;
}
@media (max-width: 480px) {
  .mobile-nav {
    padding-left: 20px; padding-right: 20px;
  }
  .mobile-menu-close { margin-right: 10px; }
}

/* When menu is open, prevent background scroll */
body.mobile-menu-open {
  overflow: hidden;
}

/* ============================================================
   ORGANIC/EARTH BUTTON & LINK STYLES
============================================================ */
a, button { transition: color 0.16s, background 0.18s, box-shadow 0.19s, border 0.18s; }
footer nav a { font-size: 0.98rem; margin-right: 15px; color: var(--color-green); font-weight: 500; }
footer nav a:hover, footer nav a:focus { color: var(--color-primary); text-decoration: underline; }

/* ============================================================
   UL/LI ORGANIC FEATURE LISTS WITH ICONS
============================================================ */
ul {
  margin: 0 0 18px 0;
  padding: 0;
  list-style: none;
}
ul li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--color-bark);
}
ul li img {
  width: 32px; height: 32px; border-radius: 50%; background: var(--color-sand);
  box-shadow: 0 1px 4px 0 var(--color-shadow);
  margin-right: 8px;
}
ul li strong {
  font-weight: 700;
  color: var(--color-green);
  margin-right: 4px;
}

@media (max-width: 520px) {
  ul li img { width: 24px; height: 24px; }
  ul li { font-size: 0.98rem; }
}

/* ============================================================
   FOOTER & ADDRESS
============================================================ */
footer {
  background: var(--color-earth);
  padding: 28px 0 16px 0;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  box-shadow: 0 -2px 12px 0 var(--color-shadow);
  margin-top: 40px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 12px;
}
address {
  font-style: normal;
  color: var(--color-bark);
  text-align: center;
  font-size: 0.95em;
  margin-top: 6px;
}

/* ============================================
   WHITE ORGANIC CARDS, BACKGROUNDS, SHAPES
============================================ */
.section {
  background: var(--color-accent);
  box-shadow: 0 4px 18px 0 var(--color-shadow);
  border-radius: var(--border-radius);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card {
  background: var(--color-sand);
  border-radius: var(--card-radius);
  box-shadow: 0 4px 18px 0 var(--color-shadow);
  margin-bottom: 20px;
}

/* Organic-ish divider for headlines */
h2:after {
  content: '';
  display: block;
  width: 54px;
  height: 4px;
  margin-top: 10px;
  background: var(--color-leaf);
  border-radius: 12px;
}

/* Organic Section shaping (asymmetry on wide) */
@media (min-width: 1100px) {
  .section:nth-child(even) {
    border-top-left-radius: 70px;
    border-bottom-right-radius: 70px;
    background: linear-gradient(98deg,#f5f3eb 85%, #71a39a0f 100%);
  }
}

/* =============================================
   RESPONSIVE HELPERS
============================================= */
@media (max-width: 520px) {
  .section { padding: 19px 3px; }
  .container { padding: 0 2px; }
}

/* =============================
   FORM INPUTS (if any)
============================= */
input, textarea, select {
  background: #fff;
  border: 1px solid var(--color-leaf);
  border-radius: var(--input-radius);
  padding: 10px 16px;
  margin-bottom: 18px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.02em;
  color: var(--color-bark);
  transition: border 0.19s, box-shadow 0.19s;
  width: 100%;
  box-shadow: 0 1px 3px #ded8cd20;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--color-green);
  box-shadow: 0 0 0 2px #50986b33;
}

/* ============================================
   TABLE STYLES (if used)
============================================ */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  background: var(--color-accent);
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 var(--color-shadow);
  overflow: hidden;
}
th, td {
  padding: 12px 18px;
  text-align: left;
}
th { background: var(--color-sand); }
td { border-bottom: 1px solid #ececec; }

/* ============================================
   LINK + INTERACTION STATES
============================================ */
a {
  color: var(--color-green);
  transition: color 0.18s, text-decoration 0.18s;
}
a:hover, a:focus { color: var(--color-primary); text-decoration: underline; }

/* ============================================
   MICRO INTERACTIONS, ANIMATIONS
============================================ */
.card, .cta-button, .testimonial-card, .mobile-menu, .cookie-consent-banner, .cookie-modal {
  transition: var(--transition-main);
}
.cta-button:active {
  background: var(--color-leaf);
  color: var(--color-primary) !important;
  transform: scale(.98);
}

/* =============================
   COOKIE BANNER & MODALS
============================= */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 18px 18px 18px;
  z-index: 4000;
  box-shadow: 0 -2px 24px 0 var(--color-shadow);
  font-size: 1rem;
  animation: cookie-banner-in 0.5s cubic-bezier(.65, .01, .3, 1.21);
}
@keyframes cookie-banner-in {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner strong { color: var(--color-green); }
.cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-actions button {
  background: var(--color-green);
  color: #fff;
  border-radius: 40px;
  padding: 9px 25px;
  font-size: 1em;
  font-weight: 600;
  box-shadow: 0 1px 10px 0 #50986b20;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.15s, transform 0.18s;
}
.cookie-actions button:hover, .cookie-actions button:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 2px 16px 0 #71A39A22;
}
.cookie-actions .reject {
  background: var(--color-bark);
}
.cookie-actions .reject:hover {
  background: #4e4630;
  color: #fff;
}
.cookie-actions .settings {
  background: #fff;
  color: var(--color-leaf);
  border: 1.5px solid var(--color-leaf);
}
.cookie-actions .settings:hover {
  background: var(--color-sand);
  color: var(--color-green);
  border-color: var(--color-green);
}

/* COOKIE MODAL OVERLAY */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4500;
  top: 0; left: 0; right:0; bottom: 0;
  background: rgba(35,50,79,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal {
  background: var(--color-accent);
  color: var(--color-text-main);
  padding: 34px 32px 22px 32px;
  border-radius: 26px;
  box-shadow: 0 7px 36px 0 #23324f45;
  max-width: 96vw;
  min-width: 320px;
  min-height: 220px;
  animation: modal-in 0.33s cubic-bezier(.61,.04,.34,1.11);
  z-index: 4502;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@keyframes modal-in {
  from { transform: translateY(40px) scale(.93); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.16rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.cookie-modal-category {
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--color-sand);
  color: var(--color-bark);
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.06em;
}
.cookie-modal-category .toggle {
  margin-left: auto;
}
.toggle-switch {
  position: relative;
  width: 42px;
  height: 24px;
}
.toggle-switch input[type="checkbox"] {
  display: none;
}
.toggle-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-green);
  border-radius: 16px;
  transition: background 0.23s;
  cursor: pointer;
}
.toggle-switch input[type="checkbox"]:not(:checked) + .toggle-slider {
  background: var(--color-leaf);
}
.toggle-slider:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.23s;
}
.toggle-switch input[type="checkbox"]:checked + .toggle-slider:before {
  transform: translateX(18px);
}
.toggle-switch input[type="checkbox"]:not(:checked) + .toggle-slider:before {
  transform: translateX(0px);
}
.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}
.cookie-modal-footer button {
  background: var(--color-green);
  color: #fff;
  border-radius: 34px;
  font-weight: 600;
  padding: 9px 19px;
  border: 0;
}
.cookie-modal-footer button.cancel {
  background: var(--color-text-light);
  color: var(--color-primary);
}
.cookie-modal-footer button.cancel:hover {
  background: var(--color-sand);
  color: var(--color-green);
}

/* Hide banner & modal overlay by default */
.cookie-consent-banner[hidden] { display: none !important; }
.cookie-modal-overlay[hidden] { display: none !important; }

/* =================== UTILITY ============================ */
.hide { display: none !important; }
.d-flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }

.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }

/* Organic/Earthy accent backgrounds */
.bg-accent { background: var(--color-accent); }
.bg-leaf { background: var(--color-leaf); color: #fff; }
.bg-earth { background: var(--color-earth); }
.bg-sand { background: var(--color-sand); }

/* ============== SCROLLBAR THEMING ============== */
::-webkit-scrollbar {
  width: 12px;
  background: var(--color-sand);
}
::-webkit-scrollbar-thumb {
  background: var(--color-leaf);
  border-radius: 12px;
}

/* =============== SELECTION COLOR ================== */
::selection {
  background: var(--color-green);
  color: #fff;
}

/* Ensure minimum 20px between all major blocks and cards */
.section + .section { margin-top: 20px; }
.card + .card, .testimonial-card + .testimonial-card { margin-top: 20px; }

/* Prevent overlap with z-index for banners and nav */
header, nav, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay, .cookie-modal { z-index:999; position:relative; }

/* =========== Accessibility 
   Focus outlines & skip to main ========== */
a:focus, button:focus, .cta-button:focus, input:focus, select:focus {
  outline: 2px solid var(--color-focus) !important;
  outline-offset: 2px;
}

/* =========== Print styles (hidden nav/banners) ========== */
@media print {
  .main-nav, .mobile-menu, .mobile-menu-toggle, .cookie-consent-banner, .cookie-modal-overlay, footer { display: none !important; }
  .container, .section { box-shadow: none !important; background: #fff !important; }
}
