/* -----------------------
   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,
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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #222;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 10px 14px;
  text-align: left;
  font-size: 16px;
}

/* -----------------------------
   FONT IMPORTS & BASE STYLES
------------------------------ */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
:root {
  --primary: #236B4A;
  --secondary: #B5E1D4;
  --accent: #F7E487;
  --neutral: #F9F9F7;
  --heading-font: 'Montserrat', Arial, Helvetica, sans-serif;
  --body-font: 'Roboto', Arial, Helvetica, sans-serif;
  --border-radius: 14px;
  --shadow-lg: 0 8px 32px 0 rgba(35, 107, 74, 0.18);
  --shadow-md: 0 2px 8px 0 rgba(35, 107, 74, 0.10);
  --color-dark: #172923;
  --color-grey: #666;
  --focus-ring: 0 0 0 3px var(--accent), 0 1.5px 14px 2.5px var(--secondary);
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  background: var(--neutral);
  color: var(--color-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.13;
}

h1 {
  font-size: 2.375rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
  color: var(--primary);
}
p, li, address {
  font-size: 1rem;
  font-family: var(--body-font);
  color: var(--color-dark);
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

/* -------------------------------
   CONTAINER & SECTION LAYOUTS
-------------------------------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 250px;
  transition: transform 0.14s, box-shadow 0.14s;
}
.card:hover {
  transform: translateY(-5px) scale(1.02) rotate(-1deg);
  box-shadow: var(--shadow-lg);
}

.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: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
  flex-wrap: wrap;
  flex: 1 1 320px;
  min-width: 0;
}

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

/* Ensure minimum gaps and no overlap */
section ul li, .content-wrapper > *:not(:last-child) {
  margin-bottom: 16px;
}
section ul li img {
  width: 28px;
  height: 28px;
  margin-right: 11px;
  vertical-align: middle;
}

/* -------------------------------
   NAVIGATION & HEADER STYLES
-------------------------------- */
header {
  width: 100%;
  padding: 18px 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(35, 107, 74, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 99;
}
header img {
  height: 46px;
  margin-right: 16px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 24px;
}
.main-nav a {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--primary);
  position: relative;
  font-size: 1.05rem;
  padding: 2px 6px;
  border-radius: 7px;
  transition: background 0.14s, color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: #222;
}
.cta-primary {
  background: var(--accent);
  color: var(--primary);
  border: none;
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 999px;
  margin-left: 24px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px var(--secondary);
  cursor: pointer;
  transition: background 0.14s, color 0.14s, box-shadow 0.24s, transform 0.12s;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px var(--secondary);
  transform: translateY(-2px) scale(1.04);
}

.cta-secondary {
  background: none;
  color: var(--primary);
  border: 2.5px solid var(--primary);
  font-family: var(--heading-font);
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 999px;
  margin-top: 14px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.24s;
  outline: none;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--accent);
}

/* Hamburger Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 19px;
  background: var(--accent);
  border: none;
  color: var(--primary);
  font-size: 2rem;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  z-index: 151;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, background 0.2s;
}
.mobile-menu-toggle:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* -----------------------
   MOBILE MENU STYLES
------------------------ */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  width: 94vw;
  max-width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 16px 0 rgba(35, 107, 74, 0.16);
  transform: translateX(105%);
  transition: transform 0.33s cubic-bezier(.8,-0.2,.45,1.24);
  z-index: 2000;
  padding-top: 29px;
  padding-left: 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  font-size: 1.8rem;
  border: none;
  color: var(--primary);
  margin-bottom: 18px;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.12s;
  align-self: flex-end;
  padding: 2px 9px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 7px;
}
.mobile-nav a {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  color: var(--primary);
  padding: 11px 0 11px 0;
  border-radius: 7px;
  transition: background 0.12s;
  width: 100%;
  display: flex;
  align-items: center;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--secondary);
  padding-left: 12px;
  color: #115e39;
}

/* Overlay backdrop (optional for smooth UX) */
.mobile-menu::before {
  content: '';
  display: none;
}
.mobile-menu.open::before{
  display: none;
}

/* Hide desktop nav on mobile, show hamburger */
@media (max-width: 980px) {
  .main-nav, .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 981px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav {
    display: flex !important;
  }
}

/* -----------------------
   HERO/INTRO SECTIONS
------------------------ */
.hero {
  background: var(--secondary);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  border-bottom-left-radius: 85px 25px;
  border-bottom-right-radius: 85px 25px;
}
.hero .container {
  padding-top: 66px;
  padding-bottom: 60px;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 540px;
  gap: 18px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.65rem;
  text-shadow: 0 2px 0 var(--accent), 0 4px 12px #a2d0bf44;
}
.hero p {
  color: #1c4431;
  font-size: 1.18rem;
  font-weight: 500;
  margin-bottom: 14px;
}

/* Decorative dividers / pseudo elements for artistic vibe */
section h2::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 7px;
  margin-right: 10px;
  border-radius: 12px;
  background: var(--accent);
  vertical-align: middle;
}

/* -------------------
   FEATURE LIST ICONS
-------------------- */
section ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-family: var(--body-font);
  font-size: 1.08rem;
}
section ul li strong {
  margin-right: 3px;
}

/* -------------------
   TESTIMONIAL CARDS
-------------------- */
.testimonial-card {
  background: #fff;
  color: #212421;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 26px 24px 20px 24px;
  margin-bottom: 20px;
  min-width: 270px;
  flex: 1 1 320px;
  transition: box-shadow 0.16s, transform 0.15s;
  position: relative;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #232323;
  margin-bottom: 10px;
  font-style: italic;
}
.testimonial-card div {
  font-size: 0.98rem;
  color: var(--color-grey);
  font-family: var(--heading-font);
  font-weight: 500;
  margin-bottom: 6px;
}
.testimonial-card img {
  width: 21px;
  height: 21px;
  display: inline-block;
}
.testimonial-card:hover {
  box-shadow: 0 10px 18px 0 rgba(247, 228, 135, 0.20);
  transform: rotate(-1deg) scale(1.025);
}

/* -----------
   TABLES
------------- */
table {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 20px;
  border: 2px solid var(--secondary);
}
th {
  background: var(--accent);
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 18px;
  padding-top: 14px;
  padding-bottom: 14px;
}
td {
  border-top: 1px solid #e3e3e3;
  font-family: var(--body-font);
  background: #fff;
}
tr:nth-child(even) td {
  background: #faf7ef;
}

/* -----------------------
   FAQ
------------------------ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: var(--secondary);
  border-radius: var(--border-radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.13s;
  margin-bottom: 8px;
}
.faq-item h3 {
  font-size: 1.18rem;
  font-family: var(--heading-font);
  color: var(--primary);
}
.faq-item p {
  margin-bottom: 6px;
}
.faq-item:hover {
  box-shadow: 0 6px 18px #b5e1d4aa;
}

/* ----------------------------
   FOOTER
----------------------------- */
footer {
  background: #fff;
  box-shadow: 0 -2px 8px rgba(35, 107, 74, 0.04);
  padding: 39px 0 18px 0;
  margin-top: 36px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-main a img {
  height: 36px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 1rem;
  transition: color 0.13s;
  margin-bottom: 5px;
  border-radius: 6px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  background: var(--secondary);
  padding-left: 6px;
}
address {
  font-style: normal;
  color: var(--color-grey);
  font-size: 0.98rem;
  max-width: 320px;
  margin-bottom: 0;
}
address img {
  vertical-align: middle;
  height: 18px;
  width: 18px;
  margin-right: 7px;
}
address span {
  display: block;
  margin-top: 7px;
  font-size: 0.97em;
  color: #7f7a60;
}

/* -------------------------------
   COOKIE BANNER & MODAL
-------------------------------- */
#cookie-banner, .cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fffbe3;
  color: #232323;
  box-shadow: 0 -3px 22px 0px #dacb764b;
  border-top: 3px solid var(--accent);
  font-size: 1.12rem;
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  z-index: 110010;
  font-family: var(--body-font);
  animation: cookiefadeIn 0.7s cubic-bezier(.49,1.56,.46,1.11);
}
@keyframes cookiefadeIn {
  from { opacity: 0; transform: translateY(64px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-message {
  max-width: 60vw;
  color: #1d291d;
  font-size: 1rem;
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn, #cookie-accept, #cookie-decline, #cookie-settings {
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: var(--heading-font);
  font-size: 1.08rem;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 7px;
  margin-bottom: 2px;
  cursor: pointer;
  transition: background 0.12s, color 0.14s;
  outline: none;
  box-shadow: 0 1.5px 7px #86e6c86b;
}
.cookie-btn.alt, #cookie-settings {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cookie-btn:hover, #cookie-accept:hover, #cookie-settings:hover, #cookie-decline:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

/* Cookie Preferences Modal */
#cookie-modal, .cookie-modal {
  position: fixed;
  left: 50%;
  top: 51%;
  transform: translate(-50%, -55%) scale(1);
  z-index: 120000;
  background: #fff;
  padding: 39px 32px 29px 32px;
  border-radius: 21px;
  box-shadow: 0 5px 44px #1a421914, 0 0 0 1000vw #00000025;
  width: 98vw;
  max-width: 438px;
  transition: opacity 0.22s, transform 0.22s;
  animation: modalfadeIn 0.22s cubic-bezier(.3,1.35,.6,1.21);
  display: none;
}
#cookie-modal.open, .cookie-modal.open {
  display: block;
}
@keyframes modalfadeIn {
  from { opacity: 0; transform: translate(-50%, 15%) scale(0.93); }
  to { opacity: 1; transform: translate(-50%, -55%) scale(1); }
}
.cookie-modal-categories {
  margin: 23px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-modal-categories label {
  font-size: 1rem;
  font-family: var(--body-font);
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}
.cookie-modal-categories input[type=checkbox],
.cookie-modal-categories input[type=radio] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}
#cookie-modal h2, .cookie-modal h2{
  font-family: var(--heading-font);
  color: var(--primary);
  font-size: 1.28rem;
  margin-bottom: 13px;
}
.cookie-modal-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

/* --------------------------
   ANIMATED BUTTONS & HOVERS
--------------------------- */
button, .cta-primary, .cta-secondary, .cookie-btn {
  outline: none;
}
button:focus, .cta-primary:focus, .cta-secondary:focus, .cookie-btn:focus {
  box-shadow: var(--focus-ring);
}

/* Micro-interactions for all anchor links */
a, .cta-primary, .cta-secondary {
  transition: color 0.13s, background 0.12s, border-color 0.13s, box-shadow 0.13s, transform 0.13s;
}
a:active { transform: scale(0.98); }

/* -----------------------------
   RESPONSIVE/TYPOGRAPHY SCALES
------------------------------ */
@media (max-width: 1150px) {
  .container {
    max-width: 96vw;
  }
  .footer-main {
    gap: 20px;
  }
}
@media (max-width: 900px) {
  h1 { font-size: 2.01rem; }
  h2 { font-size: 1.53rem; }
  .container { max-width: 98vw; }
  .footer-main {
    flex-direction: column;
    gap: 22px;
  }
  .card-container { flex-direction: column; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.22rem; }
  .container { padding-left: 9px; padding-right: 9px; }
  .section { padding: 23px 5px; margin-bottom: 31px; }
  .content-wrapper {
    flex-direction: column;
    gap: 17px;
  }
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 19px;
  }
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    padding: 18px 10px 12px 16px;
  }
  .mobile-nav a {
    font-size: 1rem;
    padding: 10px 0;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.24rem; }
  h2 { font-size: 1.02rem; }
  .hero .container {
    padding-top: 29px;
    padding-bottom: 34px;
  }
  .section { padding: 15px 2px; margin-bottom: 21px; }
  .footer-main { padding: 0 5px; }
}

/* -------------------------------
   MISCELLANEOUS/UTILITY CLASSES
-------------------------------- */
.text-section {
  background: var(--secondary);
  border-radius: var(--border-radius);
  padding: 20px 16px;
  box-shadow: var(--shadow-md);
  margin-bottom: 15px;
}

/* Decorative artistic line under h1 */
h1::after {
  content: '';
  display: block;
  margin-top: 7px;
  width: 65px;
  height: 8px;
  background: var(--accent);
  border-radius: 7px;
}

/* Artistic effect: lightly rotated list items for artistic look */
section ul li:nth-child(2n) {
  transform: rotate(-2.1deg);
}
section ul li:nth-child(2n+1) {
  transform: rotate(1.1deg);
}

/* 404 and Thank You pages */
main .content-wrapper a.cta-primary {
  margin-top: 23px;
}

/* -----------------
   Z-INDEX STRATEGY
------------------- */
header, .mobile-menu, .mobile-menu-toggle, #cookie-banner, .cookie-banner, #cookie-modal, .cookie-modal { z-index: 11000; }

/* ---------------
   PRINT SUPPORT
----------------- */
@media print {
  header, nav, footer, .mobile-menu, #cookie-banner, .cookie-banner { display: none !important; }
  body { color: #111; background: #fff; }
  .section, .container, .content-wrapper { box-shadow: none !important; background: none !important; }
}
