/* 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background-color: #FCFAF6;
  color: #29351B;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
button, input, select, textarea {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

/* VARIABLES & BRAND COLOR PALETTE */
:root {
  --primary: #174A6D;
  --secondary: #E5EAF0;
  --accent: #FFB51C;
  --nature-green: #3F7056;
  --earth-brown: #9B735F;
  --leaf-green: #72B788;
  --sand: #F6F2E7;
  --text-dark: #29351B;
  --text-medium: #444B35;
  --bg-main: #FCFAF6;
  --bg-section: #F1F5E6;
  --card-bg: #F9F7F3;
  --card-border: #DFE8D7;
  --radius-lg: 32px;
  --radius-md: 18px;
  --radius-sm: 8px;
  --shadow-md: 0 2px 10px rgba(63,112,86,0.07), 0 1.5px 4px rgba(155,115,95,0.04);
  --shadow-card: 0 2px 10px rgba(55,95,60,0.07);
  --shadow-hover: 0 5px 18px rgba(31,80,30,0.18);
  --transition: all 0.22s cubic-bezier(.44,.13,.48,.87);
}

/* TYPOGRAPHY */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.4rem;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.6rem;
  color: var(--nature-green);
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 0;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  color: var(--earth-brown);
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 0;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--leaf-green);
  font-weight: 500;
  margin-bottom: 8px;
  margin-top: 0;
}
p, ul li, ol li, dl dt, dl dd {
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: 12px;
}
strong {
  font-weight: 600;
  color: var(--primary);
}
em {
  color: var(--accent);
  font-style: italic;
}
.text-section, .content-wrapper {
  margin-bottom: 0; /* handled by section */
}

/* GENERAL LAYOUT */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: 1020px;
  padding-left: 18px;
  padding-right: 18px;
}
main {
  width: 100%;
  margin-top: 0;
  background: var(--bg-main);
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.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;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md) 38px var(--radius-md) 38px / 26px 12px 32px 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  transition: var(--transition);
  min-width: 265px;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px) scale(1.014);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HERO & CALL TO ACTION */
.hero {
  background: linear-gradient(to bottom right, rgba(157,201,143,0.07) 60%,rgba(255,181,28,0.02));
  background-color: var(--bg-section);
  border-radius: 0 0 38px 38px;
  padding: 55px 0 40px 0;
  margin-bottom: 44px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  background: none;
  box-shadow: none;
  padding: 0;
}

.cta {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 99px 38px 30px 24px / 22px 68px 16px 52px;
  background: var(--leaf-green);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 2px 8px rgba(63,112,86,0.08);
  margin-top: 10px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}
.cta.primary {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 18px rgba(255,181,28,0.07);
}
.cta:hover,
.cta:focus {
  background: var(--nature-green);
  color: #fff;
  box-shadow: 0 6px 24px rgba(31,80,30,0.14);
  transform: translateY(-2px) scale(1.019);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--primary);
  color: #fff;
}

/* HEADER & NAVIGATION */
header {
  width: 100%;
  background: var(--bg-main);
  box-shadow: 0 3px 16px rgba(63,112,86,0.03);
  border-bottom-left-radius: 38px;
  border-bottom-right-radius: 38px;
  position: sticky;
  top: 0;
  z-index: 33;
}
.logo-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  min-height: 74px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--nature-green);
  padding: 7px 14px;
  border-radius: 22px 14px 12px 24px / 14px 28px 8px 24px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus, .main-nav a.active {
  background: var(--leaf-green);
  color: #fff;
}
.logo-nav > .cta {
  margin-left: 18px;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  color: var(--nature-green);
  background: #fff;
  border-radius: 15px 34px 27px 44px / 18px 15px 23px 34px;
  border: 1.5px solid var(--secondary);
  box-shadow: 0 2px 7px rgba(63,112,86,0.06);
  cursor: pointer;
  z-index: 100;
  transition: var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--nature-green);
  color: #fff;
  border-color: var(--leaf-green);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #f6f2e7 60%, #CDE1D3 100%);
  box-shadow: 0 4px 40px rgba(63,112,86,0.11);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: var(--transition);
  padding: 36px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  color: var(--nature-green);
  background: #fff;
  border-radius: 50%;
  padding: 0 11px;
  border: 1.5px solid var(--secondary);
  box-shadow: 0 2px 7px rgba(63,112,86,0.07);
  cursor: pointer;
  margin-bottom: 24px;
  transition: var(--transition);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--leaf-green);
  color: #fff;
  border-color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat',Arial,Helvetica,sans-serif;
  font-size: 1.16rem;
  color: var(--primary);
  font-weight: 600;
  padding: 12px 9px 12px 0;
  border-radius: 28px 14px 22px 16px / 18px 12px 22px 38px;
  transition: background 0.17s, color 0.17s;
  width: 100%;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--leaf-green);
  color: #fff;
}

@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .main-nav,
  .logo-nav > .cta {
    display: none !important;
  }
  .logo-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
  }
  .logo-nav > a:first-child {
    max-width: 140px;
  }
}

/* FOOTER */
footer {
  background: linear-gradient(110deg, #F1F5E6 80%, #cde1d3 100%);
  color: var(--text-dark);
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  box-shadow: 0 -4px 16px rgba(157,201,143,0.10);
  margin-top: 50px;
  padding-top: 32px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--nature-green);
  font-size: 1rem;
  transition: text-decoration 0.15s, color 0.16s;
  text-decoration: underline dotted transparent;
  padding: 4px 7px;
  border-radius: 12px 14px 10px 14px / 8px 13px 6px 11px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  text-decoration: underline dotted var(--accent);
  background: var(--leaf-green);
  color: #fff;
}
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.98rem;
  gap: 6px;
  margin-bottom: 8px;
}

/* TESTIMONIAL CARDS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md) 28px 22px 36px / 22px 38px 16px 38px;
  box-shadow: 0 2px 10px rgba(31,80,30,0.09);
  margin-bottom: 24px;
  font-size: 1.08rem;
  min-width: 260px;
}
.testimonial-card p {
  margin-bottom: 0;
  color: var(--primary);
  font-weight: 500;
}
.testimonial-card strong {
  color: var(--leaf-green);
}
.testimonial-card div {
  color: var(--nature-green);
  font-size: 0.99rem;
  font-weight: 500;
  margin-left: 12px;
  letter-spacing: 0.01em;
}

/* LISTS, DLS, ULs, OLs */
ul, ol {
  margin-left: 20px;
  margin-bottom: 20px;
}
ul li, ol li {
  padding-left: 10px;
  margin-bottom: 8px;
  position: relative;
  color: var(--text-medium);
}
ul li:before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--nature-green);
  border-radius: 50%;
  margin-right: 9px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

ol li {
  list-style: decimal inside;
  margin-left: 0;
  padding-left: 18px;
}

/* DEFINITION LISTS */
dl {
  margin-bottom: 20px;
}
dl dt {
  font-weight: 600;
  color: var(--primary);
}
dl dd {
  margin-bottom: 12px;
  margin-left: 10px;
}

.text-section {
  margin-bottom: 0;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 990px) {
  .container {
    max-width: 95vw;
    padding-left: 9px;
    padding-right: 9px;
  }
}
@media (max-width: 768px) {
  .section, .hero {
    border-radius: 18px;
    padding: 30px 4px;
  }
  .hero .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    min-width: 0;
  }
}

/* BUTTONS */
button, .cta, input[type="submit"] {
  transition: var(--transition);
}
button:active,
.cta:active {
  transform: scale(0.98);
}

/* FORM ELEMENTS */
input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--card-border);
  background: #fff;
  color: var(--text-medium);
  font-size: 1rem;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(157,201,143,0.05);
  transition: border 0.19s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--leaf-green);
  outline: none;
}

/* CARDS & FEATURE BOXES */
.card-grid, .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  min-width: 250px;
  max-width: 420px;
  width: 100%;
  word-break: break-word;
}

/* SECTIONS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-section);
}

/* SPACING ADJUSTMENTS FOR MOBILE */
@media (max-width: 480px) {
  .section, .hero {
    padding: 18px 2px 20px 2px;
    border-radius: 9px;
  }
  h1, .hero h1 {
    font-size: 1.2rem;
  }
  h2 {
    font-size: 1.1rem;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #fff;
  border: 2px solid var(--card-border);
  border-radius: 18px 38px 15px 32px / 26px 8px 30px 12px;
  box-shadow: 0 4px 25px rgba(63,112,86,0.13);
  padding: 24px 18px 16px 18px;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
}
.cookie-consent-banner.hide {
  display: none;
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}
.cookie-consent-banner button {
  min-width: 110px;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 60px 30px 28px 22px/ 14px 24px 14px 22px;
  background: var(--leaf-green);
  color: #fff;
  font-weight: 600;
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(51,104,41,0.11);
  transition: background 0.16s, color 0.16s;
}
.cookie-consent-banner button.primary {
  background: var(--accent);
  color: var(--primary);
}
.cookie-consent-banner button.danger {
  background: var(--earth-brown);
  color: #fff;
}
.cookie-consent-banner button:focus,
.cookie-consent-banner button:hover {
  background: var(--nature-green);
  color: #fff;
}
.cookie-consent-banner .cookie-settings {
  text-decoration: underline;
  background: transparent;
  color: var(--leaf-green);
  font-size: 1rem;
  box-shadow: none;
  border: none;
  margin-left: 3px;
  min-width: unset;
  min-height: unset;
  padding: 0 7px;
  border-radius: 10px;
}
.cookie-consent-banner .cookie-settings:hover, .cookie-consent-banner .cookie-settings:focus {
  color: var(--accent);
  background: transparent;
  text-decoration: underline dotted var(--accent);
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(44,70,45,0.44);
  z-index: 10021;
  display: flex;
  align-items: flex-end; /* mobile-first bottom slide-up */
  justify-content: center;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px 30px 44px 10px/ 28px 44px 12px 16px;
  box-shadow: 0 8px 30px rgba(31,80,30,0.19);
  max-width: 430px;
  width: 95vw;
  padding: 32px 22px 28px 22px;
  margin: 0 8px 38px 8px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: cookie-modal-in 0.3s ease-out;
}
@keyframes cookie-modal-in {
  from { transform: translateY(80px) scale(0.8); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 1.7rem;
  color: var(--nature-green);
  background: none;
  border: none;
  cursor: pointer;
}
.cookie-modal h3 {
  color: var(--nature-green);
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #dde1c0;
  font-size: 1.04rem;
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal .switch {
  appearance: none;
  width: 40px; height: 22px;
  background: var(--sand);
  border-radius: 12px;
  position: relative;
  outline: none;
  border: 1.5px solid var(--card-border);
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .switch:checked {
  background: var(--leaf-green);
  border-color: var(--leaf-green);
}
.cookie-modal .switch::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2.2px;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(55,95,60,0.10);
  transition: 0.16s;
}
.cookie-modal .switch:checked::before {
  left: 20px;
  background: var(--nature-green);
}
.cookie-modal .cookie-category .essential-label {
  font-weight: 600;
  color: var(--leaf-green);
}
.cookie-modal .cookie-category .disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.cookie-modal .actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 14px;
}
.cookie-modal button {
  min-width: 100px;
  min-height: 38px;
}

@media (min-width: 600px) {
  .cookie-modal {
    margin-bottom: 0;
    margin-top: 36px;
    align-self: center;
    animation: cookie-modal-in-desk 0.29s ease;
  }
  @keyframes cookie-modal-in-desk {
    from { transform: scale(0.82) translateY(12px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
  }
}

/* BRAND/STYLE VISUALS */
section, .section {
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  margin-bottom: 60px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius-md) 38px var(--radius-md) 38px / 26px 12px 32px 18px;
  border: 1.5px solid var(--card-border);
  box-shadow: var(--shadow-card);
}
.cta, .cta.primary {
  box-shadow: 0 1.5px 8px rgba(255,181,28,0.10);
}
ul li:before {
  background: var(--leaf-green);
  width: 8px; height: 8px;
}

/* SHADOWS & ORGANIC SHAPES */
.card, .cta, .cookie-consent-banner, .cookie-modal {
  border-top-left-radius: 28px 38px;
  border-bottom-right-radius: 38px 18px;
  border-bottom-left-radius: 16px 36px;
  border-top-right-radius: 36px 18px;
}

/* MICRO-INTERACTIONS */
.card,
.cta,
.main-nav a,
.mobile-nav a,
button,
input[type="text"],
input[type="email"],
textarea  {
  transition: var(--transition);
}

/* Z-INDEX LAYERS */
header { z-index: 33; }
.mobile-menu { z-index: 999; }
.mobile-menu-toggle { z-index: 100; }
.cookie-consent-banner { z-index: 10000; }
.cookie-modal-backdrop { z-index: 10021; }

/* ACCESSIBILITY & CONTRAST */
.hero, .cta, .testimonial-card, .card {
  outline: none;
}
.cta:focus-visible, .main-nav a:focus-visible, .mobile-nav a:focus-visible {
  outline: 2px solid var(--leaf-green);
  outline-offset: 1px;
}

/* MISC */
::-webkit-input-placeholder { color: #929D7E; opacity:1; }
::-moz-placeholder { color: #929D7E; opacity:1; }
:-ms-input-placeholder { color: #929D7E; opacity:1; }
::placeholder { color: #929D7E; opacity:1; }

/* Hide scrollbars (mobile menu, modal) for aesthetics */
.mobile-menu,
.cookie-modal {
  scrollbar-width: thin;
  scrollbar-color: var(--card-border) var(--sand);
}
.mobile-menu::-webkit-scrollbar,
.cookie-modal::-webkit-scrollbar {
  width: 7px;
  background: var(--sand);
}
.mobile-menu::-webkit-scrollbar-thumb,
.cookie-modal::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 9px;
}

/* RESPONSIVE - LARGE TEXT ON SMALL DEVICES */
@media (max-width: 340px) {
  h1, .hero h1 { font-size: 1.01rem; }
  h2 { font-size: .98rem; }
}
