/* =====================
   CSS RESET & BASE STYLES
   ===================== */
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;
  outline: 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: #F8F5F0;
  color: #2C3A47;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  position: relative;
  font-size: 16px;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
button,
input,
select,
textarea {
  font: inherit;
  outline: none;
  border: none;
  background: none;
}

/* =====================
   COLOR VARIABLES + Fallbacks
   ===================== */
:root {
  --color-primary: #2C3A47;
  --color-secondary: #CE9234;
  --color-accent: #F8F5F0;
  --color-green: #6F8756;
  --color-brown: #AC8462;
  --color-cream: #F6EFE3;
  --color-muted: #E3DAC9;
  --shadow: 0 2px 16px rgba(112, 112, 112, 0.12);
}

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.18;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--color-green);
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--color-secondary);
}
p, li, span {
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1.65;
}
.subheadline {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-brown);
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 16px;
}
strong {
  color: var(--color-green);
  font-weight: 600;
}
em {
  color: var(--color-secondary);
  font-style: normal;
}

/* =====================
   CONTAINER & LAYOUT
   ===================== */
.container {
  width: 100%;
  max-width: 1100px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =====================
   HEADER
   ===================== */
header {
  width: 100%;
  background: var(--color-accent);
  box-shadow: 0 4px 24px rgba(76,79,72,0.08);
  position: relative;
  z-index: 80;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 20px;
}
header img {
  max-height: 48px;
  border-radius: 0;
}
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  color: var(--color-primary);
  transition: border-color 0.24s, color 0.15s;
  font-weight: 500;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}
.btn-primary {
  background: var(--color-green);
  color: #fff;
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(47, 60, 45, 0.10);
  cursor: pointer;
  display: inline-block;
  border: none;
  transition: background 0.15s, box-shadow 0.23s, transform 0.17s;
  letter-spacing: 0.01em;
  margin-left: 16px;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(76, 79, 72, 0.18);
  transform: translateY(-2px) scale(1.025);
}

/* Hide mobile nav toggle on desktop */
.mobile-menu-toggle {
  display: none;
}

/* =====================
   HERO SECTION
   ===================== */
.hero {
  background: var(--color-cream);
  background-image: url('../assets/patterns/organic-bg1.svg');
  background-repeat: no-repeat;
  background-position: bottom right;
  border-radius: 0 0 50px 50px/0 0 120px 120px;
  box-shadow: 0 8px 32px rgba(108,112,93, 0.10);
  margin-bottom: 60px;
  padding: 40px 0 48px 0;
  display: flex;
  align-items: center;
}
.hero .container {
  align-items: flex-start;
  gap: 22px;
  min-height: 280px;
}
.hero h1 {
  color: var(--color-green);
  font-size: 2.7rem;
  line-height: 1.15;
}
.hero .subheadline {
  font-size: 1.30rem;
  color: var(--color-brown);
  line-height: 1.22;
}

/* =====================
   MAIN FLEX LAYOUTS
   ===================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(83, 90, 65, 0.10);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  max-width: 340px;
  padding: 30px 22px;
  flex: 1 1 260px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 28px rgba(83, 90, 65, 0.17);
  transform: translateY(-2px) scale(1.015);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.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;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(70, 90, 90, 0.10);
  max-width: 460px;
  flex: 1 1 300px;
  border-left: 5px solid var(--color-green);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card p {
  color: var(--color-primary);
  font-style: italic;
  font-size: 1.1rem;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--color-brown);
  font-weight: 600;
  opacity: 0.9;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  border-left: 5px solid var(--color-secondary);
  box-shadow: 0 8px 22px rgba(83, 90, 65, 0.17);
}

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

/* Feature/Card Grid */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 20px;
}
.feature {
  background: #fff;
  border-radius: 18px 45px 36px 18px/30px 24px 40px 18px;
  box-shadow: 0 2px 12px rgba(108, 112, 93, 0.10);
  min-width: 240px;
  max-width: 320px;
  flex: 1 1 210px;
  padding: 28px 16px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.15s;
  border-left: 4px solid var(--color-green);
  margin-bottom: 20px;
}
.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 8px 22px rgba(76, 100, 80, 0.16);
  border-left: 4px solid var(--color-secondary);
  transform: translateY(-2px) scale(1.013);
}

/* =====================
   LISTS & SECTIONS
   ===================== */
.text-section {
  margin-bottom: 16px;
}
.text-section ul,
.content-wrapper ul {
  padding-left: 0;
  list-style: none;
}
.text-section ul li,
.content-wrapper ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 26px;
  color: var(--color-primary);
}
.text-section ul li:before,
.content-wrapper ul li:before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-green);
  position: absolute;
  left: 0;
  top: 7px;
}

.contact-details {
  margin-bottom: 24px;
}
.contact-details ul,
.contact-details li {
  list-style: none;
  margin-bottom: 12px;
  font-size: 1rem;
}
.contact-details a {
  color: var(--color-green);
  font-weight: 600;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--color-cream);
  border-top: 3px solid var(--color-green);
  padding: 38px 0 24px 0;
  margin-top: 60px;
  box-shadow: 0 -2px 12px rgba(83, 90, 65, 0.05);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--color-green);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: color 0.15s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--color-secondary);
}
.legal-text {
  color: var(--color-muted);
  font-size: 0.98rem;
  text-align: center;
  margin-top: 12px;
}
.social-icons {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
  align-items: center;
}
.social-icons img {
  height: 36px; width: 36px; background: #ffffffcc; border-radius: 50%; box-shadow: 0 2px 8px rgba(108,112,93,0.13);
}

/* ========================
   LEGAL / THANK YOU SECTIONS
   ======================== */
.legal, .thankyou {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: 22px;
  box-shadow: 0 3px 20px rgba(83, 90, 65, 0.09);
}
.legal h1, .thankyou h1 {
  margin-bottom: 18px;
  color: var(--color-green);
}

/* ========================
   MOBILE MENU
   ======================== */
.mobile-menu-toggle {
  background: var(--color-green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  padding: 7px 14px;
  cursor: pointer;
  margin-left: auto;
  display: none;
  outline: none;
  position: relative;
  transition: box-shadow 0.18s, background 0.18s;
  z-index: 190;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #2C3A47ee;
  color: #fff;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.77,.06,.46,1.07);
  z-index: 210;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 0 80px 40px rgba(44,58,71,0.48);
}
.mobile-menu-close {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  font-size: 2rem;
  padding: 8px 20px 8px 0;
  cursor: pointer;
  align-self: flex-end;
  margin: 28px 28px 10px 0;
  border-radius: 6px;
  z-index: 220;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 34px;
  width: 100%;
  align-items: flex-start;
  margin: 16px 38px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.19s, color 0.13s;
  width: 100%;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}

/* ========================
   COOKIE CONSENT BANNER  
   ======================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: var(--color-green);
  color: #fff;
  z-index: 300;
  padding: 23px 20px 21px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  box-shadow: 0 -2px 24px rgba(76, 100, 80, 0.20);
  font-size: 1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  transition: transform 0.27s cubic-bezier(.7,.04,.5,1), opacity 0.22s;
}
.cookie-consent-banner.closed {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner .cookie-message {
  flex: 1 1 220px;
  margin-right: 6px;
}
.cookie-btns {
  display: flex;
  gap: 13px;
}
.cookie-btns .btn-cookie {
  padding: 8px 22px;
  font-size: 1rem;
  color: var(--color-green);
  background: #fff;
  border-radius: 20px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  transition: background 0.13s, color 0.14s, box-shadow 0.18s;
  cursor: pointer;
  box-shadow: 0 0.5px 6px rgba(108,112,93,0.07);
}
.cookie-btns .btn-cookie.accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btns .btn-cookie.accept:hover,
.cookie-btns .btn-cookie.accept:focus {
  background: #fff;
  color: var(--color-secondary);
}
.cookie-btns .btn-cookie.reject {
  background: #fff;
  color: var(--color-primary);
}
.cookie-btns .btn-cookie.reject:hover,
.cookie-btns .btn-cookie.reject:focus {
  background: #DAF1D5;
  color: var(--color-green);
}
.cookie-btns .btn-cookie.settings {
  background: var(--color-green);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: none;
}
.cookie-btns .btn-cookie.settings:hover,
.cookie-btns .btn-cookie.settings:focus {
  background: #fff;
  color: var(--color-green);
}

/* ========================
   COOKIE SETTINGS MODAL
   ======================== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 350;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 58, 71, 0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.closed {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--color-accent);
  border-radius: 20px;
  box-shadow: 0 6px 44px rgba(76,100,80,0.21);
  padding: 38px 32px 28px 32px;
  min-width: 320px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: popModal 0.43s cubic-bezier(.8,-0.02,.57,1.11);
}
@keyframes popModal {
  0% {transform: scale(0.96) translateY(48px); opacity: 0;}
  100% {transform: scale(1) translateY(0); opacity: 1;}
}
.cookie-modal h2 {
  color: var(--color-green);
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: 0 2px 8px rgba(83, 90, 65, 0.05);
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-green);
  margin-top: 2px;
}
.cookie-category .label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-size: 1.08rem;
  font-weight: 600;
}
.cookie-modal .btns {
  display: flex;
  gap: 13px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal .btns .btn-cookie {
  font-size: 1rem;
}
.cookie-modal-close {
  position: absolute;
  right: 22px; top: 22px;
  background: none;
  border: none;
  font-size: 1.9rem;
  color: var(--color-brown);
  cursor: pointer;
}

/* =====================
   GENERIC BUTTON STYLES
   ===================== */
.button,
.btn-secondary {
  background: var(--color-secondary);
  color: #fff;
  padding: 10px 28px;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.15s;
}
.btn-secondary:hover,
.btn-secondary:focus,
.button:hover,
.button:focus {
  background: var(--color-green);
  color: #fff;
}

/* =====================
   LINKS
   ===================== */
a {
  transition: color 0.14s, border-bottom 0.16s;
  outline: none;
}
a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}

/* =====================
   SPACING & GAPS
   ===================== */
.section, .hero, .legal, .thankyou {
  margin-bottom: 60px;
}
.card-container,
.feature-grid,
.content-grid {
  gap: 24px;
}
.card,
.feature,
.testimonial-card {
  margin-bottom: 20px !important;
}
.content-wrapper, .text-image-section, .feature-item {
  gap: 20px;
}

/* =====================
   MEDIA QUERIES - MOBILE FIRST
   ===================== */
@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 18px;
    font-size: 0.98rem;
  }
  .footer-nav {
    gap: 14px;
  }
  .feature-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 10px;
    padding: 13px 10px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .btn-primary {
    margin-left: 0;
    margin-top: 8px;
    font-size: 1rem;
    padding: 10px 18px;
  }
  .hero, .section, .legal, .thankyou {
    padding: 28px 8px 28px 8px;
    margin-bottom: 40px;
    border-radius: 16px;
  }
  .hero .container {
    min-height: 180px;
    gap: 12px;
  }
  .card-container, .feature-grid, .content-grid, .content-wrapper {
    flex-direction: column !important;
    gap: 18px;
  }
  .feature, .card, .testimonial-card {
    min-width: 0;
    max-width: 96vw;
    padding: 20px 11px 20px 16px;
  }
  .testimonial-card {
    max-width: 93vw;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .social-icons {
    margin-bottom: 2px;
  }
}
@media (max-width: 550px) {
  h1 {font-size: 1.55rem;}
  h2 {font-size: 1.18rem;}
  h3 {font-size: 1rem;}
  .container { padding: 0 6px; }
  .hero {
    border-radius: 0 0 30px 30px/0 0 60px 60px;
    background-size: 70%;
  }
}

/* ========================
   ANIMATIONS & MICRO-INTERACTIONS
   ======================== */
.btn-primary, .btn-secondary, .btn-cookie, .button {
  transition: background 0.18s, color 0.15s, transform 0.17s;
}
.card,
.feature,
.testimonial-card {
  transition: box-shadow 0.2s, transform 0.17s, border-color 0.21s;
}

.card:hover, .feature:hover, .testimonial-card:hover {
  box-shadow: 0 12px 30px rgba(83, 90, 65, 0.11), 0 1.5px 18px rgba(76,100,80,0.07);
  transform: translateY(-3px) scale(1.012);
}

/* =====================
   ACCESSIBILITY
   ===================== */
:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}

/* =====================
   CUSTOM ORGANIC VISUALS (decorative only)
   ===================== */
.hero, .section, .feature, .testimonial-card, .card {
  /* Subtle organic shadowing */
  box-shadow: 0 2.5px 24px rgba(150,143,117,0.09), var(--shadow);
}

.feature, .card, .testimonial-card {
  /* Slight organic shapes */
  border-radius: 16px 34px 22px 16px/20px 25px 24px 12px;
}

/* For backgrounds using organic shapes, override as needed in component images */

/* =====================
   PRINT (for legal pages)
   ===================== */
@media print {
  header, footer, .btn-primary, .mobile-menu, .cookie-consent-banner {display: none !important;}
  main {margin: 0;}
  body, html {background: #fff !important;}
  .section, .legal, .thankyou {box-shadow: none; padding: 0; background: #fff;}
}
