/* ---------- 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #2d3e50;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
a {
  background: none;
  color: #417505;
  text-decoration: underline;
  transition: color 0.18s;
}
a:visited {
  color: #2d3e50;
}
a:focus, a:hover {
  color: #222500;
  outline: none;
  text-decoration: none;
}
button {
  font-family: inherit;
  font-size: 1rem;
  line-height: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}
ul, ol {
  list-style: none;
}
strong, b {
  font-weight: 700;
}

/* ---------- ROOT BRAND COLORS & FONT ---------- */
:root {
  --primary: #417505;
  --secondary: #222500;
  --accent: #ffe074;
  --accent-dark: #ffe074cc;
  --white: #fff;
  --grey-bg: #f9faee;
  --dark: #2d3e50;
  --radius: 20px;
  --shadow: 0 2px 12px 0 rgba(41, 68, 0, 0.08);
  --shadow-hover: 0 4px 18px 0 rgba(41, 68, 0, 0.16);
}

body {
  background: var(--grey-bg);
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--dark);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: none;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
p {
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ---------- LAYOUT & CONTAINER ---------- */
.container {
  width: 94%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  padding: 0 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--grey-bg);
  border-radius: var(--radius);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.025);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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: var(--white);
  border-left: 8px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  font-size: 1.16rem;
  transition: box-shadow 0.17s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 18px 18px 0;
}

/* ---------- HERO ---------- */
.hero {
  background: var(--accent);
  padding: 54px 0 52px 0;
  margin-bottom: 48px;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 8px 34px -18px rgba(41, 68, 0, 0.11);
}
.hero h1 {
  font-size: 2.5rem;
  color: var(--primary);
  text-shadow: 2px 2px 0 #f6f9e1;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.22rem;
  color: var(--secondary);
}

/* ---------- BUTTONS & CTA ---------- */
.cta:not(.header .cta) {
  background: var(--primary);
  color: var(--white) !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 14px;
  padding: 16px 26px;
  margin-top: 10px;
  display: inline-block;
  text-decoration: none;
  border: none;
  box-shadow: 0 3px 12px rgba(41, 68, 0, 0.06);
  transition: background 0.18s, color 0.18s, transform 0.14s;
}
.cta:hover, .cta:focus {
  background: var(--secondary);
  color: var(--accent) !important;
  transform: scale(1.04);
  outline: none;
  text-decoration: none;
}

/* Important for menu CTA */
nav .cta {
  background: var(--accent);
  color: var(--secondary) !important;
  font-weight: 700;
  border-radius: 10px;
  padding: 8px 20px;
  margin-left: 16px;
  box-shadow: 0 2px 8px rgba(33, 57, 5,0.10);
  text-transform: uppercase;
  font-size: 1.01rem;
  transition: background 0.15s, color 0.15s;
}
nav .cta:hover, nav .cta:focus {
  background: var(--primary);
  color: var(--white) !important;
  outline: none;
}

/* ---------- HEADER & NAVIGATION ---------- */
header {
  background: var(--white);
  box-shadow: 0 1px 10px rgba(33,38,30,0.06);
  border-radius: 0 0 22px 22px;
  padding: 0 0 0 0;
  position: relative;
  width: 100%;
  z-index: 31;
  display: flex;
  flex-direction: column;
}
header > a > img {
  height: 54px;
  margin: 12px 0 10px 0;
  display: block;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  align-items: center;
  justify-content: flex-end;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  padding: 10px 6px;
  letter-spacing: 0.03em;
  border-radius: 8px;
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s, color 0.14s;
}
header nav a:hover, header nav a:focus {
  background: var(--accent-dark);
  color: var(--primary);
  outline: none;
}
header .mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--primary);
  background: none;
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  margin-right: 10px;
  margin-top: 8px;
  z-index: 32;
  transition: background 0.17s;
}
header .mobile-menu-toggle:focus,
header .mobile-menu-toggle:hover {
  background: var(--accent);
  color: var(--secondary);
  outline: none;
}

header .mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--grey-bg);
  box-shadow: 0 0 64px 12px rgba(64,80,20,0.17);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(0.53,0.09,0.27,0.98);
  align-items: stretch;
  padding: 0;
  opacity: 0.993;
  pointer-events: none;
}
header .mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
header .mobile-menu-close {
  position: absolute;
  top: 26px;
  right: 22px;
  font-size: 2.2rem;
  color: var(--primary);
  background: none;
  border: none;
  padding: 9px 13px;
  border-radius: 10px;
  z-index: 205;
  transition: background 0.16s, color 0.16s;
}
header .mobile-menu-close:hover,
header .mobile-menu-close:focus {
  background: var(--accent);
  color: var(--secondary);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-top: 78px;
  padding: 22px 0 0 42px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 0;
  min-width: 200px;
  border-radius: 0 18px 18px 0;
  margin-bottom: 8px;
  transition: background 0.19s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
  outline: none;
  font-weight: 700;
}

/* ---------- MAIN SECTIONS SPACING ---------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
/* .section applies to ALL major sections - guaranteed spacing! */

/* ---------- CARDS & LISTS ---------- */
ul li, ol li {
  margin-bottom: 18px;
  padding-left: 0 !important;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 1.07rem;
}
ul li img, .text-section img {
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 7px;
  margin-right: 10px;
  background: var(--accent-dark);
  box-shadow: 0 2px 8px rgba(64,116,20,0.09);
}
.text-section {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---------- ABOUT/LEGAL STYLES ---------- */
.legal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 24px;
  margin-bottom: 60px;
}
.legal h1, .legal h2 {
  color: var(--primary);
}
.legal ul, .legal ol {
  margin-left: 18px;
}
.legal li {
  font-size: 1rem;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--secondary);
  color: var(--white);
  margin-top: 50px;
  border-radius: 28px 28px 0 0;
  padding: 26px 0 18px 0;
  box-shadow: 0 -2px 23px -8px rgba(64,80,20,0.09);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--accent);
  text-decoration: underline;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  text-transform: none;
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--white);
  text-decoration: none;
}
.footer-contact {
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 1rem;
}
.footer-contact img {
  width: 20px;
  vertical-align: middle;
  margin-right: 4px;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.footer-logo img {
  max-height: 36px;
  margin-bottom: 5px;
}
.footer-logo span {
  color: var(--accent);
  font-size: 0.99rem;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0.8;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.testimonials h2 {
  color: var(--primary);
}
.testimonial-card p {
  color: var(--secondary);
  font-style: italic;
}
.testimonial-card span {
  margin-left: 22px;
  color: var(--primary);
  font-weight: 700;
  font-style: normal;
}

/* ---------- SPECIAL/THANK YOU ---------- */
.thank-you {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 40px 12px;
  margin-bottom: 60px;
}
.thank-you h1 {
  color: var(--primary);
  margin-bottom: 18px;
}
.thank-you p {
  color: var(--secondary);
  margin-bottom: 20px;
}

/* ---------- COOKIE CONSENT BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  z-index: 3000;
  background: var(--accent);
  color: var(--secondary);
  box-shadow: 0 -2px 18px 0 rgba(33,38,30,0.15);
  padding: 18px 14px 18px 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font-size: 1.02rem;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: transform 0.25s, opacity 0.18s;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.03rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--white);
  margin-left: 10px;
  margin-right: 2px;
  letter-spacing: 0.02em;
  border: none;
  transition: background 0.15s, color 0.14s;
  box-shadow: 0 2px 10px -3px rgba(41, 68, 0, 0.07);
}
.cookie-btn.cookie-reject {
  background: var(--secondary);
}
.cookie-btn.cookie-settings {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--accent);
  color: var(--secondary);
  outline: none;
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%) translateY(140%);
  min-width: 320px;
  width: 96%;
  max-width: 440px;
  background: var(--white);
  color: var(--dark);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px -10px rgba(41, 68, 0, 0.13);
  z-index: 3012;
  opacity: 0;
  pointer-events: none;
  padding: 34px 26px 24px 26px;
  transition: transform 0.41s cubic-bezier(0.4,0.15,0,0.89), opacity 0.21s;
}
.cookie-modal.open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal h2 {
  font-size: 1.28rem;
  margin-bottom: 14px;
  color: var(--primary);
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.03rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 16px;
}
.cookie-modal .cookie-category {
  border-bottom: 1px solid var(--grey-bg);
  padding-bottom: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.cookie-modal .toggle-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.cookie-modal .toggle-switch input[type="checkbox"] {
  display: none;
}
.cookie-modal .slider {
  width: 36px;
  height: 20px;
  background: var(--accent);
  border-radius: 24px;
  position: relative;
  transition: background 0.17s;
}
.cookie-modal .slider:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--secondary);
  transition: left 0.22s, background 0.17s;
}
.cookie-modal .toggle-switch input:checked + .slider {
  background: var(--primary);
}
.cookie-modal .toggle-switch input:checked + .slider:before {
  left: 18px;
  background: var(--white);
}
.cookie-modal .category-title {
  font-weight: 700;
  color: var(--secondary);
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.35rem;
  color: var(--primary);
  cursor: pointer;
  border-radius: 6px;
  padding: 6px 10px;
  transition: background 0.15s, color 0.15s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: var(--accent);
  color: var(--secondary);
}

/* ---------- RESPONSIVE / MOBILE ---------- */
@media (max-width: 1028px) {
  .container {
    max-width: 950px;
  }
}
@media (max-width: 896px) {
  .container {
    max-width: 96vw;
    width: 96vw;
  }
  .hero {
    padding: 40px 0 36px 0;
  }
}
@media (max-width: 768px) {
  /* Flex wraps for all major grids */
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px !important;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  section {
    padding: 22px 7px;
    margin-bottom: 40px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 14px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 7px;
    font-size: 0.98rem;
    text-align: center;
  }
}
@media (max-width: 620px) {
  h1 {
    font-size: 1.48rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  .hero {
    border-radius: 0 0 20px 20px;
  }
  .mobile-nav {
    padding-left: 6vw;
  }
  .card, .testimonial-card {
    min-width: 0;
    padding: 14px 9px;
    font-size: 0.99rem;
  }
  .footer-logo img {
    max-height: 22px;
  }
}

/* Hamburger menu show/hide */
@media (max-width: 1000px) {
  header nav {
    display: none;
  }
  header .mobile-menu-toggle {
    display: block;
    float: right;
  }
}
@media (min-width: 1001px) {
  header .mobile-menu {
    display: none !important;
  }
}

/* Miscellaneous utility classes */
.d-none {
  display: none !important;
}

/* ---------- GEOMETRIC STRUCTURED DESIGN SHAPES ---------- */
.hero, .section, .card, .testimonial-card, .legal, .thank-you, .cookie-modal {
  /* geometric: heavier bottom shadow, angular border radius */
  border-radius: 24px 44px 24px 44px;
}
/* Subtle geometric SVG overlays (example for optional backgrounds) */
.section:after {
  content: '';
  display: block;
  position: absolute;
  right: 2vw;
  bottom: 2vw;
  width: 60px;
  height: 60px;
  background: url('data:image/svg+xml;utf8,<svg width="60" height="60" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="8" y="8" width="44" height="44" rx="10" fill="%23ffe074" fill-opacity="0.2"/><polygon points="22,28 30,14 38,28" fill="%23417505" fill-opacity="0.14"/></svg>') no-repeat center/contain;
  opacity: 0.34;
  z-index: 1;
  pointer-events: none;
}
.hero:after {
  content: '';
  display: block;
  position: absolute;
  left: 2vw;
  bottom: 16px;
  width: 80px;
  height: 42px;
  background: url('data:image/svg+xml;utf8,<svg width="80" height="42" fill="none" xmlns="http://www.w3.org/2000/svg"><ellipse cx="40" cy="21" rx="36" ry="16" fill="%23417505" fill-opacity="0.12"/><rect x="24" y="7" width="32" height="20" rx="6" fill="%23ffe074" fill-opacity="0.22"/></svg>') no-repeat center/contain;
  opacity: 0.37;
  z-index: 2;
  pointer-events: none;
}

/* Prevent accidental overlap if not absolutely positioned */
.section, .hero {
  position: relative;
  z-index: 10;
}

/* Hide section bg overlays at small screen for no overlap */
@media (max-width: 640px) {
  .section:after, .hero:after { display: none !important; }
}

/* ---------- MICRO-INTERACTIONS / TRANSITIONS ---------- */
.card, .testimonial-card, .cta, .cookie-btn, .cookie-modal, .mobile-menu {
  transition-property: box-shadow, background, color, transform, opacity;
  transition-duration: 0.19s, 0.16s, 0.16s, 0.16s, 0.2s;
  transition-timing-function: cubic-bezier(0.42,0,0.59,1);
}

/* ---------- FOCUS STYLES FOR ACCESSIBILITY ---------- */
a:focus-visible, button:focus-visible, .cookie-btn:focus-visible, .cta:focus-visible {
  outline: 2px dashed var(--primary);
  outline-offset: 2px;
  background: var(--accent-dark);
}

section.cta.fade-in-prepare.fade-in {
  width: 100%;
}

/* ---------- END OF STYLE ---------- */
