/* -------------------- 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, 
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;
  font-size: 16px;
  scroll-behavior: smooth; 
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: #F2F6F6;
  color: #273D33;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 6px;
}
a {
  color: #184563;
  text-decoration: none;
  transition: color .2s;
}
a:focus, a:hover {
  color: #42A16A;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}

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

body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #F2F6F6;
  color: #273D33;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #184563;
  margin-bottom: 16px;
}
h1 { font-size: 2.4rem; margin-bottom: 18px; }
h2 { font-size: 1.9rem; margin-bottom: 14px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
p, ul, ol, blockquote {
  color: #273D33;
  font-size: 1rem;
  margin-bottom: 16px;
}
strong { color: #184563; }
small {
  font-size: 0.85rem;
  color: #70847A;
}

/* ------------------- BRAND COLORS ------------------- */
:root {
  --primary: #184563;
  --secondary: #42A16A;
  --accent: #F2F6F6;
  --earth1: #BEA47B;
  --earth2: #E8E1D4;
  --leaf: #B6CBA1;
  --stone: #70847A;
  --shadow: 0 4px 16px rgba(56,76,54,.09);
  --radius: 18px;
  --gap-xl: 32px;
  --gap-lg: 24px;
  --gap-md: 20px;
  --gap-sm: 12px;
  --organic-curve: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------------- CONTAINER / LAYOUT ---------------- */
.container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 18px;
  padding-right: 18px;
}

.content-wrapper {
  width: 100%;
  margin: 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Cards and Flex Containers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-lg);
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .2s var(--organic-curve), transform .2s var(--organic-curve);
}
.card:hover {
  box-shadow: 0 6px 32px rgba(24,69,99,0.14);
  transform: translateY(-3px) scale(1.018);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
  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;
  padding: 20px;
  background: #fff;
  border-left: 7px solid var(--secondary);
  border-radius: calc(var(--radius) / 1.5);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.testimonial-card blockquote {
  font-style: italic;
  color: #184563;
  background: #F2F6F6;
  border-radius: 12px;
  padding: 12px 15px;
  margin-bottom: 8px;
  line-height: 1.5;
}
.testimonial-card strong {
  color: #184563;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.55;
}

/* ---------------- HEADER ---------------- */
header {
  background: var(--earth2);
  box-shadow: 0 2px 12px rgba(24,69,99,.03);
  border-bottom-left-radius: 80px 20px;
  border-bottom-right-radius: 124px 36px;
  margin-bottom: 30px;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  padding: 8px 10px 8px 10px;
  border-radius: 9px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--primary);
  transition: background .16s, color .16s;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: #fff;
}
header .primary-cta {
  background: var(--secondary);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 22px 18px 26px 14px/22px 16px 26px 18px;
  font-weight: 700;
  margin-left: 18px;
  box-shadow: 0 2px 12px rgba(24,65,106,0.10);
  transition: background .16s, box-shadow .2s;
  border: 0;
}
header .primary-cta:hover, header .primary-cta:focus {
  background: #184563;
  color: #fff;
  box-shadow: 0 6px 36px rgba(24,65,106,0.17);
}
header img {
  height: 52px;
  width: auto;
  border-radius: 18px;
  margin-right: 20px;
}

/* ----------- MOBILE MENU ------------ */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  z-index: 1051;
  transition: background .18s;
  border: 0;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32,57,48,.91);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform .45s var(--organic-curve);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu .mobile-menu-close {
  font-size: 2.1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-self: flex-end;
  margin: 24px 24px 8px 0;
  transition: background .18s;
  z-index: 2010;
}
.mobile-menu .mobile-menu-close:hover,
.mobile-menu .mobile-menu-close:focus {
  background: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 90vw;
  max-width: 350px;
  gap: 0;
  background: #fff;
  padding: 32px 0 24px 0;
  border-radius: 0 22px 32px 0 / 0 46px 38px 0;
  min-height: 100vh;
  box-shadow: 0 8px 24px rgba(24,69,99,.09);
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  padding: 14px 30px 14px 38px;
  display: block;
  border-bottom: 1px solid var(--accent);
  transition: background .14s, color .16s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--leaf);
  color: var(--secondary);
}
@media (max-width: 1024px) {
  header .container nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Hide mobile menu on desktop */
@media (min-width: 1025px) {
  .mobile-menu-toggle, .mobile-menu { display: none !important; }
  header .container nav { display: flex !important; }
}

/* ------------------ MAIN / HERO / GEN LAYOUT ------------------ */
main {
  margin-bottom: 42px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: calc(var(--radius) / 1.4);
  box-shadow: var(--shadow);
}
@media (max-width: 800px) {
  section {
    padding: 24px 6px;
    margin-bottom: 38px;
    border-radius: 16px 22px 18px 23px / 20px 28px 18px 22px;
  }
}

/* text-image-section for hero about, etc */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 22px;
  }
}
/* Make all card/grid layouts flexbox and responsive */
@media (max-width: 1024px) {
  .card-container,
  .content-grid {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 9px;
  }
}


/* -------------------------- BUTTONS -------------------------- */
button, .primary-cta {
  background: var(--secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  border-radius: 20px 13px 24px 14px / 24px 18px 20px 16px;
  padding: 12px 28px;
  border: 0;
  outline: 0;
  transition: background .17s, box-shadow .2s, color .17s, transform .16s;
  box-shadow: 0 2px 8px rgba(66,161,106,0.08);
  display: inline-block;
  margin-top: 7px;
}
button:hover, .primary-cta:hover, button:focus, .primary-cta:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(24,65,106,.19);
  transform: translateY(-1px) scale(1.02);
}

/* -------------- LISTS & ICONS --------------- */
ul li, .text-section > div, .text-section > ul > li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 15px;
  font-size: 1.03rem;
  border-radius: 7px;
  background: transparent;
}
ul li img, .text-section img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-right: 7px;
  background: var(--leaf);
  border-radius: 50%;
  padding: 7px;
  box-shadow: 0 2px 4px rgba(66,161,106,0.08);
}
ul li strong, .text-section strong {
  font-weight: 600;
  margin-right: 4px;
  color: var(--secondary);
}
@media (max-width: 900px) {
  ul li img, .text-section img {
    width: 28px; height: 28px; padding: 5px;
  }
}

/* -------------------- FORM & INPUTS -------------------- */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid var(--leaf);
  padding: 9px 14px;
  margin-bottom: 12px;
  background: #fff;
  color: #184563;
  transition: border .14s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--secondary);
  outline: none;
}
label {
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

/* ----------- FOOTER ------------ */
footer {
  background: var(--earth2);
  color: #184563;
  padding-top: 31px;
  padding-bottom: 12px;
  border-top-left-radius: 70px 24px;
  border-top-right-radius: 88px 25px;
  margin-top: 38px;
  border-top: 2px solid #E3EEEC;
}
footer .container {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
footer .text-section strong {
  color: #184563;
  margin-bottom: 6px;
}
footer a {
  color: #184563;
  font-weight: 500;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 1rem;
  margin-top: 12px;
}
footer small {
  color: #70847A;
  text-align: center;
  display: block;
  padding-top: 7px;
}
@media (max-width: 800px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ------------------- COOKIE BANNER ------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 3000;
  background: #F2F6F6;
  color: #273D33;
  border-top: 2px solid var(--leaf);
  box-shadow: 0 -3px 16px rgba(24, 69, 99,.09);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  font-size: 1rem;
  animation: slideUp .52s var(--organic-curve);
}
@keyframes slideUp {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  margin-bottom: 0;
  color: inherit;
}
.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}
.cookie-consent-banner button {
  background: var(--secondary);
  color: #fff;
  border-radius: 14px 12px 19px 13px / 16px 13px 18px 10px;
  padding: 10px 17px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: 0;
  transition: background .135s;
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: var(--primary);
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-consent-banner { flex-direction: column; align-items: flex-start; gap: 17px; padding: 20px 9px; }
  .cookie-consent-actions { flex-direction: column; gap: 7px; }
}

/* -------- Cookie Modal ----------- */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right:0; bottom:0;
  z-index: 3100;
  background: rgba(32,57,48,.85);
  display: none;
  justify-content: center;
  align-items: center;
  animation: fadeInModal .262s var(--organic-curve);
}
@keyframes fadeInModal {
  0% { opacity: 0; } 100% { opacity: 1; }
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  color: #273D33;
  border-radius: var(--radius);
  padding: 32px 24px 24px 24px;
  box-shadow: 0 6px 38px rgba(24,69,99,.14);
  min-width: 340px;
  max-width: 99vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h3 {
  color: var(--primary);
  margin-bottom: 2px;
  font-size: 1.25rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}
.cookie-modal-content .close-modal {
  position: absolute;
  top: 13px; right: 15px;
  color: var(--primary);
  background: var(--accent);
  border: 0;
  font-size: 1.35rem;
  padding: 7px 11px;
  border-radius: 12px;
  transition: background .14s;
}
.cookie-modal-content .close-modal:hover,
.cookie-modal-content .close-modal:focus {
  background: var(--secondary);
  color: #fff;
}
.cookie-category input[type=checkbox] {
  width: 19px; height: 19px;
  accent-color: var(--secondary);
  margin-right: 7px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.cookie-modal-actions button {
  background: var(--secondary);
  color: #fff;
  border-radius: 12px;
  padding: 9px 17px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background .14s;
  font-weight: 600;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: var(--primary);
}

/* --------- ORGANIC DECORATIVE DETAILS --------- */
.section {
  position: relative;
}
.section:before, .section:after {
  content: '';
  position: absolute;
  z-index: 0;
  border-radius: 60% 40% 38% 62% / 64% 31% 69% 36%;
  opacity: 0.05;
}
.section:before {
  width: 80px; height: 90px;
  left: -37px; top: 18px;
  background: var(--secondary);
}
.section:after {
  width: 72px; height: 90px;
  right: -35px; bottom: 14px;
  background: var(--earth1);
}
@media (max-width: 600px) {
  .section:before, .section:after { display: none; }
}

/* ------------------- VISUAL HIERARCHY/SHADOWS ---------------------- */
.card, .section, .testimonial-card {
  box-shadow: var(--shadow);
}
.testimonial-card {
  border-left: 7px solid var(--secondary);
}

/* ---- Star rating/Icons inside Testimonials --- */
.testimonial-card img {
  display: inline;
  width: 20px !important;
  height: 20px !important;
  border-radius: 0;
  margin: 0 2px 0 0;
  background: none;
  box-shadow: none;
  padding: 0;
}

/* ------------- RESPONSIVE TYPOGRAPHY -------------- */
@media (max-width: 650px) {
  h1 { font-size: 1.47rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1.01rem; }
  p, ul, ol, label, button, .primary-cta {font-size: 0.98rem; }
}

/* -------------------- SPACING & FLEX GAPS ----------------------- */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  align-items: center;
  gap: 30px;
}
.testimonial-card {
  gap: 20px;
  padding: 20px;
}
.feature-item {
  gap: 15px;
}

/* ------- FOCUS VISIBILITY ----------- */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  background: rgba(66,161,106,0.06);
}

/* ----------- TABLE ------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  font-size: 1rem;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 11px;
  overflow: hidden;
}
th, td {
  padding: 15px 8px;
  border-bottom: 1px solid #E3EEEC;
}
th {
  background: var(--earth1);
  color: #184563;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
tr:last-child td {
  border-bottom: none;
}

/* ----------- Misc ----------------- */
::-webkit-input-placeholder { color: #A2AD98; }
::-moz-placeholder { color: #A2AD98; }
:-ms-input-placeholder { color: #A2AD98; }
::placeholder { color: #A2AD98; }

/* ----------- PRINT ----------- */
@media print {
  header, footer, nav, .cookie-consent-banner, .mobile-menu { display: none !important; }
  section, .section { box-shadow: none !important; }
}
