/* --- CSS RESET & BASE TYPOGRAPHY ---------------------- */
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,main,menu,nav,output,ruby,section,summary,time,mark,audio,video
{
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  background: transparent;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*,*:before,*:after {
  box-sizing: inherit;
}
body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #294227;
  background-color: #FAFAF7;
  line-height: 1.6;
  min-height: 100vh;
  max-width: 100vw;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #386641;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #6A994E;
  outline: none;
}
ul, ol {
  padding-left: 1.1em;
}
li {
  margin-bottom: 0.5em;
}

/* --- TYPOGRAPHY SCALE / VISUAL HIERARCHY ----------- */
h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #294227;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
h2 {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #294227;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #386641;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
}
p, .footer-copy {
  font-size: 1rem;
  color: #294227;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: #386641;
}

/* --- CONTAINERS AND LAYOUT ----------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
/* Scandinavian card/section style */
.card, .testimonial-card, .news-list > div, .feature-grid > div, .product-grid > div, .solution-list > div, .service-list > div, .faq-list > li, .event-listing > li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(60, 83, 54, 0.03), 0 1.5px 6px 0 rgba(86, 115, 80, 0.04);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid #F2E8CF;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover, .testimonial-card:hover, .news-list > div:hover {
  box-shadow: 0 8px 24px 0 rgba(56, 102, 65, 0.10), 0 3px 10px 0 rgba(181, 201, 154, 0.09);
  border-color: #B5C99A;
  z-index: 2;
}

.section:last-child {
  margin-bottom: 0;
}

/* --- FLEXBOX LAYOUTS AS REQUESTED ---------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(86,115,80,0.07);
  border-radius: 14px;
  border: 1px solid #E8EAD3;
  margin-bottom: 20px;
  max-width: 520px;
  color: #294227;
}
.testimonial-details {
  align-self: flex-end;
  font-size: 0.97em;
  color: #6A994E;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
/* Feature grid (for cards or features) */
.feature-grid, .product-features-grid, .product-grid, .solution-list, .service-list, .news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div,
.product-features-grid > div,
.product-grid > div,
.solution-list > div,
.service-list > div,
.news-list > div {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 350px;
}

.faq-list {
  list-style: none;
  margin-top: 10px;
}
.faq-list > li {
  margin-bottom: 18px;
  background: #F7FAF0;
  padding: 18px 18px 14px 18px;
  border-radius: 10px;
  border: 1px solid #F2E8CF;
}

.event-listing {
  list-style: disc inside;
  margin-bottom: 20px;
}
.event-listing > li {
  background: #F7FAF0;
  padding: 18px 20px;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid #E8EAD3;
}

.news-highlights, .product-highlights, .support-highlights {
  background: #F2E8CF;
  border-left: 4px solid #B5C99A;
  padding: 16px 20px;
  border-radius: 8px 14px 14px 8px;
  margin-bottom: 18px;
  color: #294227;
  font-size: 1.05em;
}

/* --- HERO SECTIONS / CTA ------------------------ */
.hero {
  background:
    linear-gradient(90deg, #F2E8CF 0%, #ffffff 100%);
  padding: 60px 0 60px 0;
  margin-bottom: 40px;
}
.hero .container {
  min-height: 300px;
  justify-content: center;
  align-items: flex-start;
}
.hero h1 {
  color: #386641;
  margin-bottom: 14px;
  font-size: 2.4rem;
}
.hero p {
  color: #294227;
  margin-bottom: 24px;
  font-size: 1.18rem;
  max-width: 480px;
}
.cta {
  background: #B5C99A;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(56, 102, 65, 0.07);
  text-align: center;
  margin-bottom: 40px;
}
.cta h2 {
  color: #294227;
}
.cta p {
  color: #294227;
}

/**** BUTTONS and INTERACTIVES *********************/
.cta-button, button.cta-button, .cookie-btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 26px;
  background: #386641;
  color: #fff;
  border-radius: 30px;
  border: none;
  outline: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.17s, transform 0.13s;
  box-shadow: 0 1px 6px 0 rgba(56,102,65,0.08);
  letter-spacing: 0.02em;
  margin-top: 10px;
  margin-bottom: 10px;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus, .cookie-btn:hover, .cookie-btn:focus {
  background: #6A994E;
  color: #fff;
  box-shadow: 0 3px 18px 0 rgba(56,102,65,0.16);
  transform: translateY(-2px) scale(1.03);
}
button {
  font-family: inherit;
  cursor: pointer;
  background: none;
}

/**** HEADER & NAVIGATION ***************************/
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(56, 102, 65, 0.05);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}
header img[alt="AgriSolida"] {
  height: 46px;
  width: auto;
  margin-right: 20px;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #294227;
  padding: 7px 4px;
  border-radius: 5px;
  transition: background 0.17s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F2E8CF;
  color: #386641;
}
.mobile-menu-toggle {
  display: none;
}

/**** FOOTER **************************************/
footer {
  background: #F2E8CF;
  color: #294227;
  padding: 44px 0 24px 0;
  border-top: 1.5px solid #E8EAD3;
  margin-top: 80px;
}
.footer-nav {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #386641;
  margin: 0 2px;
  display: inline-block;
}
.footer-contact {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
  align-items: center;
  font-size: 0.97rem;
  color: #386641;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-contact img {
  height: 16px;
  width: 16px;
  filter: grayscale(20%) brightness(0.7);
  margin: 0 2px 0 8px;
}
.footer-copy {
  text-align: center;
  font-size: 0.93rem;
  color: #6A994E;
}

/**** MOBILE BURGER MENU ***********************/
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #386641;
  margin-left: 14px;
  cursor: pointer;
  z-index: 105;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(242, 232, 207, 0.96);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.7,0,0.3,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 32px 32px 32px;
  z-index: 110;
  min-height: 100vh;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.6rem;
  color: #386641;
  background: none;
  border: none;
  align-self: flex-end;
  margin-bottom: 16px;
  cursor: pointer;
  z-index: 120;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  margin-top: 10px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  color: #294227;
  padding: 14px 4px 10px 4px;
  border-radius: 5px;
  transition: background 0.19s, color 0.16s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #B5C99A;
  color: #386641;
}
@media (max-width: 1020px) {
  .main-nav {
    gap: 14px;
  }
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 16px;
  }
  .container {
    max-width: 99vw;
    padding: 0 10px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-button {
    padding: 11px 20px;
  }
  header img[alt="AgriSolida"] {
    height: 36px;
    margin-right: 11px;
  }
  .footer-nav, .footer-copy {
    font-size: 0.98rem;
  }
}
@media (max-width: 540px) {
  .container {
    padding: 0 6px;
  }
  header .container {
    min-height: 60px;
    gap: 9px;
  }
  .footer-contact {
    font-size: 0.93rem;
    gap: 6px;
  }
}

/**** RESPONSIVE FLEX ADJUSTMENTS as per rules ******/
@media (max-width: 930px) {
  .feature-grid > div, .product-features-grid > div, .solution-list > div, .service-list > div, .product-grid > div, .news-list > div {
    max-width: 100%;
    min-width: 180px;
  }
  .feature-grid, .product-features-grid, .solution-list, .service-list, .product-grid, .news-list, .content-grid {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 34px;
    padding: 26px 8px;
  }
  .content-wrapper {
    gap: 10px;
  }
  .hero {
    padding: 34px 0 32px 0;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .testimonial-card {
    padding: 14px;
    gap: 10px;
  }
  .card, .testimonial-card, .feature-item {
    margin-bottom: 13px;
    padding: 16px 11px;
  }
}

/**** TABLET & MOBILE FONT SIZES *****/
@media (max-width: 540px) {
  h1 {
    font-size: 1.64rem;
  }
  h2 {
    font-size: 1.29rem;
    margin-bottom: 10px;
  }
  h3 {
    font-size: 1.08rem;
    margin-bottom: 8px;
  }
}

/**** PAGE SPECIFIC LIST STYLES *****/
.product-categories ul, .product-benefits ul {
  margin-left: 16px;
  list-style: disc;
}
.solution-list, .service-list, .product-grid, .feature-grid, .product-features-grid, .news-list{
  margin-bottom: 18px;
}
/* Contact info formatting */
.contact-info ul {
  list-style: none;
  padding-left: 0;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 1.04em;
}
.contact-info img {
  height: 18px;
  width: 18px;
  filter: grayscale(40%) brightness(0.8);
}

/**** THANK YOU PAGE specific *****/
.thank-you {
  text-align: center;
  background: #F2E8CF;
  padding: 60px 10px;
  border-radius: 18px;
}

/**** VISUAL EFFECTS AND MICRO-ANIMATIONS *****/
.card, .testimonial-card, .news-list > div {
  transition: box-shadow 0.19s, border-color 0.19s, transform 0.14s;
}
.card:hover, .testimonial-card:hover, .news-list > div:hover {
  transform: translateY(-3px) scale(1.013);
}
.cta-button, .cookie-btn {
  transition: background 0.17s, transform 0.12s, box-shadow 0.15s;
}

/* --- COOKIE CONSENT BANNER & MODAL ---------------- ----- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 2.5px solid #B5C99A;
  box-shadow: 0 -4px 24px 0 rgba(56,102,65,0.12);
  padding: 19px 27px 19px 27px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  z-index: 9999;
  justify-content: space-between;
  min-height: 92px;
  font-size: 1rem;
  opacity: 1;
  transition: opacity 0.26s;
  color: #294227;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__text {
  flex: 1 1 280px;
  min-width: 180px;
}
.cookie-banner__actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
.cookie-btn {
  background: #B5C99A;
  color: #294227;
  border-radius: 22px;
  border: none;
  padding: 9px 19px;
  font-weight: 500;
  font-size: 0.98em;
  transition: background 0.19s, color 0.16s, box-shadow 0.15s;
  margin: 0 2px;
  box-shadow: 0 1px 5px 0 rgba(181,201,154,0.05);
}
.cookie-btn.accept {
  background: #386641;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #294227;
  color: #fff;
}
.cookie-btn.settings {
  background: #F2E8CF;
  color: #386641;
  border: 1px solid #B5C99A;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #B5C99A;
  color: #294227;
}
.cookie-btn.reject {
  background: transparent;
  color: #294227;
  border: 1px solid #B5C99A;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #F2E8CF;
  color: #6A994E;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 10px;
    min-height: 88px;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 8px;
  }
  .cookie-banner__text {
    font-size: 0.98em;
    min-width: 0;
  }
}

/* --- COOKIE CONSENT MODAL ---------------------- */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(73,87,62,0.14);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.24s;
  opacity: 1;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 32px 0 rgba(56,102,65,0.13);
  padding: 34px 32px 28px 32px;
  max-width: 410px;
  min-width: 240px;
  width: 96vw;
  color: #294227;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cookie-modal h2 {
  font-size: 1.17rem;
  margin-bottom: 11px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  font-weight: 500;
}
.cookie-toggle {
  width: 32px; height: 18px;
  background: #F2E8CF;
  border-radius: 14px;
  position: relative;
  transition: background 0.13s;
  cursor: pointer;
  border: 1px solid #B5C99A;
}
.cookie-toggle[data-checked="true"] {
  background: #B5C99A;
}
.cookie-toggle .dot {
  position: absolute;
  left: 2px; top:2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.5px 2px rgba(56,102,65,0.10);
  transition: left 0.15s;
}
.cookie-toggle[data-checked="true"] .dot {
  left: 16px;
}
.cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}
.cookie-modal .close-btn {
  background: none;
  border: none;
  color: #386641;
  font-size: 1.33rem;
  position: absolute;
  top: 12px;
  right: 18px;
  cursor: pointer;
}

/**** UTILITY CLASSES AND HELPERS ***********/
.d-none {
  display: none !important;
}
.flex {
  display: flex !important;
}
.align-center {
  align-items: center !important;
}
.justify-center {
  justify-content: center !important;
}
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }
.shadow-light { box-shadow: 0 2px 16px 0 rgba(56,102,65,0.07)!important; }
.bg-accent { background: #F2E8CF !important; }
.bg-secondary { background: #B5C99A !important; }
.bg-primary { background: #386641 !important; }
.text-light { color: #fff !important; }
.text-dark { color: #294227 !important; }
.rounded-8 { border-radius: 8px; }
.rounded-16 { border-radius: 16px; }

/**** NARROW SPECIALS for natural scandi look *****/
hr {
  border: none;
  border-top: 1.5px solid #E8EAD3;
  margin: 32px 0;
}

/* --- SCROLLBAR STYLING (subtle) ------ */
body::-webkit-scrollbar {
  width: 11px;
  background: #F2E8CF;
}
body::-webkit-scrollbar-thumb {
  background: #B5C99A;
  border-radius: 6px;
}
h1, h2, h3 {
  word-break: break-word;
}

/**** SCANDINAVIAN THEME, SIMPLE SHADOWS, SPACING ***/
.card, .testimonial-card, .feature-grid > div, .product-features-grid > div, .solution-list > div, .service-list > div, .product-grid > div, .news-list > div {
  border-radius: 14px;
  box-shadow: 0 2.5px 14px 0 rgba(56, 102, 65, 0.07);
  border: 1px solid #F2E8CF;
  background: #fff;
}

/**** FORMS (if used) ***************/
input, textarea, select {
  background: #F7FAF0;
  border: 1px solid #B5C99A;
  border-radius: 7px;
  padding: 11px 12px;
  font-size: 1rem;
  color: #294227;
  margin-bottom: 14px;
  width: 100%;
  transition: border-color 0.18s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #386641;
  outline: none;
  box-shadow: 0 1px 7px 0 rgba(181,201,154,0.13);
}

/**** ACCESSIBILITY FOCUS RINGS *****/
a:focus, button:focus, input:focus, .cta-button:focus {
  outline: 2px dashed #386641;
  outline-offset: 1.5px;
}

/********* AVOID OVERLAPPING, CORRECT SPACING ********/
.card, .testimonial-card, .feature-item, .news-list > div, .solution-list > div, .service-list > div, .product-grid > div, .faq-list > li, .event-listing > li {
  margin-bottom: 20px;
}

/************ ENSURE FLEX ONLY - NO GRID ******/
/* (NO grid/template/column-* used anywhere) */
