/* =========================================
   CSS RESET & NORMALIZE (BROWSER SAFE)
   ========================================= */
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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  height: 100%;
  box-sizing: border-box;
}
body {
  min-height: 100vh;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background-color: #F4F2ED;
  color: #263B31;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.6;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
:focus-visible {
  outline: 2px solid #B36D24;
  outline-offset: 2px;
}
::-webkit-input-placeholder { color: #888; }
::-moz-placeholder { color: #888; }
:-ms-input-placeholder { color: #888; }
::placeholder { color: #888; }

/* =============================================
   BRAND COLORS & CUSTOM PROPERTIES (with fallback)
   ============================================= */
:root {
  --brand-primary: #1B3556;
  --brand-primary-rgb: 27,53,86;
  --brand-secondary: #F4F2ED;
  --brand-tertiary: #FFFFFF;
  --brand-accent: #B36D24; /* warm earth orange */
  --brand-accent-alt: #CF883A;
  --brand-green: #4C7A50;
  --brand-brown: #A67749;
  --brand-darkgreen: #263B31;
  --brand-lightgreen: #C5CFBB;
  --brand-cream: #F9F7F0;
  --brand-gray: #888;
}

/* =============
   TYPOGRAPHY
   ============= */
@import url('https://fonts.googleapis.com/css?family=Merriweather:700,900|Lato:400,700&display=swap');

body, html {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: var(--brand-darkgreen);
}
h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, serif;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--brand-primary);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1rem;
}
p, ul li, ol li {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--brand-darkgreen);
}
small {
  font-size: 0.92rem;
  color: var(--brand-gray);
}
strong, b {
  font-weight: 700;
}
em {
  font-style: italic;
}

/* ====================
   LAYOUT CONTAINERS
   ==================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: var(--brand-cream);
  border-radius: 32px 32px 24px 24px;
  box-shadow: 0 6px 32px 0 rgba(50,80,35,0.07);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 18px 18px 14px 14px;
  background: var(--brand-tertiary);
  padding: 32px 24px;
  box-shadow: 0 4px 18px 0 rgba(44,61,32,0.10);
  transition: box-shadow 0.22s, transform 0.22s;
  min-width: 270px;
  max-width: 100%;
}
.card:hover {
  box-shadow: 0 8px 24px 0 rgba(44,61,32,0.16);
  transform: translateY(-4px) scale(1.025);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #FFF;
  color: #323E2B;
  border-radius: 20px;
  box-shadow: 0 4px 16px 0 rgba(38,59,49,0.08);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 270px;
  max-width: 100%;
}
.testimonial-card p {
  color: var(--brand-darkgreen);
  font-size: 1.06rem;
  margin-bottom: 8px;
}
.stars-rating {
  color: var(--brand-accent);
  font-size: 1.25rem;
  letter-spacing: 2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* =====================
   HEADER & NAVIGATION
   ===================== */
header {
  width: 100%;
  position: relative;
  background: var(--brand-secondary);
  box-shadow: 0 3px 18px 0 rgba(44,61,32,0.04);
  z-index: 1002;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 0;
  min-height: 80px;
}
header > a img {
  height: 52px;
  margin: 16px 24px;
}
header nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
header nav a {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  color: var(--brand-primary);
  line-height: 1.8;
  border-radius: 8px;
  padding: 7px 16px;
  transition: background 0.19s, color 0.19s, box-shadow 0.19s;
}
header nav a:hover, header nav a:focus {
  color: var(--brand-tertiary);
  background: var(--brand-accent);
  box-shadow: 0 1px 8px 0 rgba(179,109,36,0.11);
}
.cta-button {
  margin-left: 24px;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background: var(--brand-accent);
  color: #fff;
  border: none;
  border-radius: 20px 12px 18px 8px / 24px 8px 16px 10px;
  padding: 11px 28px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px 0 rgba(179,109,36,0.11);
  transition: background 0.18s, color 0.21s, transform 0.17s, box-shadow 0.13s;
  display: inline-block;
  letter-spacing: 0.5px;
  line-height: 1.4;
}
.cta-button:hover, .cta-button:focus {
  background: var(--brand-primary);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px 0 rgba(27,53,86,0.13);
}

/* Burger Menu Button */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-accent);
  color: #fff;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  margin-right: 16px;
  border: none;
  z-index: 1015;
  transition: background 0.17s, color 0.15s;
}
.mobile-menu-toggle:focus {
  background: var(--brand-primary);
}

/* MOBILE SLIDE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(27,53,86,0.95);
  color: #fff;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.6,.01,.51,1), opacity 0.28s;
  flex-direction: column;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 28px 28px 12px 0;
  font-size: 2.2rem;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-accent);
}
.mobile-nav {
  margin-top: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}
.mobile-nav a {
  color: #FFF;
  font-family: 'Merriweather', 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: bold;
  padding: 14px 0;
  letter-spacing: 0.5px;
  border-radius: 18px;
  min-width: 65vw;
  margin: 0 12px;
  transition: background 0.18s, color 0.167s;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-accent-alt);
  color: #fff2e5;
}
/* MOBILE NAV only on small screens */
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    min-height: 64px;
  }
  main {
    margin-top: 0;
  }
  header > a img {
    height: 40px;
    margin: 12px 10px;
  }
}

/* ================
   HERO Section
   ================ */
section:first-of-type .content-wrapper, .hero-content {
  align-items: center;
  text-align: center;
  gap: 24px;
}
section:first-of-type {
  background: linear-gradient(120deg, var(--brand-secondary) 80%, var(--brand-lightgreen) 100%);
  border-radius: 0 0 44px 44px;
  box-shadow: 0 10px 28px 0 rgba(44,61,32,0.13);
}

/* =========================
   CARDS, ICONS, ELEMENTS
   ========================= */
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1rem;
}
ul li img, ol li img {
  width: 28px;
  min-width: 28px;
  height: 28px;
  object-fit: contain;
  margin-right: 6px;
}
.card, .testimonial-card {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 18px 0 rgba(44,61,32,0.08);
  padding: 32px 24px;
}
.feature-item {
  background: var(--brand-lightgreen);
  border-radius: 14px;
  padding: 18px 16px;
  font-weight: 600;
  box-shadow: 0 2px 10px 0 rgba(76,122,80,0.08);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(44,61,32,0.04);
  margin-bottom: 20px;
  border-radius: 14px;
  overflow: hidden;
  font-size: 1rem;
}
thead tr {
  background: var(--brand-lightgreen);
}
table th, table td {
  padding: 14px 8px;
  text-align: left;
}
table th {
  font-weight: 700;
  color: var(--brand-primary);
  border-bottom: 2px solid var(--brand-accent-alt);
}
table td {
  color: var(--brand-darkgreen);
  border-bottom: 1px solid #eee;
}

/* ================
   FOOTER
   ================ */
footer {
  background: var(--brand-primary);
  color: var(--brand-tertiary);
  padding: 36px 0 20px;
  border-radius: 30px 30px 0 0;
  margin-top: 60px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 14px;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.85;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.13s, color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--brand-accent-alt);
  color: #fff2e5;
}
footer address, footer p {
  color: #eee;
  font-size: 0.95rem;
  text-align: center;
}

footer a {
  color: #CDE7CF;
  text-decoration: underline;
  font-size: 1rem;
}
footer a:hover, footer a:focus {
  color: var(--brand-accent-alt);
}

/* =============================
   COOKIE CONSENT BANNER & MODAL
   ============================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  background: var(--brand-tertiary);
  color: var(--brand-darkgreen);
  box-shadow: 0 -2px 14px 0 rgba(44,61,32,0.13);
  border-radius: 18px 18px 0 0;
  z-index: 1600;
  padding: 16px 24px 16px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: transform 0.29s cubic-bezier(.56,.13,.62,1);
  font-size: 1.06rem;
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner button {
  margin: 0 5px;
  padding: 10px 22px;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  background: var(--brand-accent);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 1px 8px 0 rgba(179,109,36,0.09);
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.cookie-banner button.cookie-banner-reject {
  background: var(--brand-lightgreen);
  color: var(--brand-darkgreen);
}
.cookie-banner button.cookie-banner-settings {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--brand-accent-alt);
}

/* Cookie Modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(27,53,86, 0.81);
  z-index: 1650;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal 0.19s;
}
@keyframes fadeInCookieModal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: var(--brand-cream);
  border-radius: 22px;
  box-shadow: 0 4px 32px 0 rgba(44,61,32,0.16);
  padding: 38px 28px;
  max-width: 90vw;
  min-width: 310px;
  width: 375px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  color: var(--brand-darkgreen);
  font-size: 1.06rem;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--brand-darkgreen);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 8px;
  transition: color 0.12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--brand-accent);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: bold;
}
.cookie-toggle {
  appearance: none;
  width: 38px; height: 18px;
  background: var(--brand-lightgreen);
  border-radius: 12px;
  position: relative;
  outline: none;
  transition: background 0.13s;
  border: 1px solid #c5cfbb;
}
.cookie-toggle:checked {
  background: var(--brand-accent-alt);
}
.cookie-toggle:before {
  content: "";
  position: absolute;
  left: 2.5px; top: 2px;
  width: 15px; height: 14px;
  background: #fff;
  border-radius: 8px;
  transition: left 0.14s;
  box-shadow: 0 1px 3px 0 rgba(76,122,80,0.07);
}
.cookie-toggle:checked:before {
  left: 20px;
}
.cookie-category[aria-disabled="true"] label, .cookie-toggle[disabled] {
  opacity: 0.38;
  pointer-events: none;
}
.cookie-modal-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal-buttons button {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 1rem;
  border: none;
  background: var(--brand-accent-alt);
  color: #fff;
  font-weight: bold;
  transition: background 0.13s, color 0.14s;
}
.cookie-modal-buttons button:hover, .cookie-modal-buttons button:focus {
  background: var(--brand-accent);
  color: #fff2e5;
}

/* ==========================
   RESPONSIVE & FLEX FLOW
   ========================== */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 1024px) {
  .section {
    padding: 26px 9px;
  }
  .container {
    padding: 0 12px;
  }
}
@media (max-width: 900px) {
  .section {
    padding: 20px 2vw;
    margin-bottom: 36px;
  }
  .testimonial-card, .card {
    padding: 20px 10px;
    min-width: 220px;
  }
}
@media (max-width: 820px) {
  .container {
    padding: 0 4vw;
  }
  .section {
    padding: 13px 2vw;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.7rem;
    margin-bottom: 20px;
  }
  h2 {
    font-size: 1.28rem;
    margin-bottom: 14px;
  }
  .content-wrapper, .text-section {
    gap: 12px;
  }
  .section {
    margin-bottom: 23px;
    border-radius: 20px;
    padding: 9px 2vw;
  }
  .card-container, .content-grid {
    gap: 12px;
  }
  .testimonial-card, .card {
    padding: 13px 8px;
    border-radius: 13px;
    margin-bottom: 13px;
    min-width: 130px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 16px;
    align-items: flex-start;
  }
  .mobile-menu {
    font-size: 1.07rem;
  }
}
@media (max-width: 520px) {
  .container, .section {
    padding-left: 0;
    padding-right: 0;
  }
  .testimonial-card, .card {
    padding: 8px 2px;
  }
  .cookie-modal-content {
    padding: 14px 3vw;
    min-width: 98vw;
    width: 98vw;
  }
  .cookie-banner {
    flex-direction: column;
    padding: 8px 2vw 8px 2vw;
    gap: 12px;
    font-size: 0.95rem;
  }
}

/* =====================
   INTERACTIVE ELEMENTS
   ===================== */
a, button {
  transition: background 0.15s, color 0.15s, box-shadow 0.18s, transform 0.15s;
}
.cta-button:active, .mobile-menu-toggle:active, .cookie-banner button:active {
  transform: scale(0.97);
}

/* ACCESSIBILITY */
[tabindex="0"]:focus:not(:focus-visible) {
  outline: none;
}

/* =============
   MISC.
   ============= */
hr {
  border: none;
  border-top: 1.5px solid var(--brand-lightgreen);
  margin: 20px 0;
}
blockquote {
  color: var(--brand-green);
  background: var(--brand-cream);
  border-left: 4px solid var(--brand-accent-alt);
  padding: 14px 18px;
  margin: 16px 0 18px 0;
  border-radius: 10px 20px 15px 10px;
  font-style: italic;
  font-size: 1rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.gap-20 { gap: 20px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 24px; }

/*****************
 ORGANIC EFFECTS
*****************/
.section, .card, .testimonial-card {
  border-radius: 28px 34px 21px 24px / 26px 18px 29px 24px;
}
.cta-button, .cookie-banner button, .mobile-nav a {
  border-radius: 22px 10px 16px 10px / 14px 12px 16px 14px;
}
.feature-item {
  border-radius: 22px 20px 14px 24px / 28px 16px 24px 10px;
}

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