/* CSS RESET & NORMALIZATION */
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;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section {
  display:block;
}
body { line-height:1; }
ul,ol { list-style:none; }
a { text-decoration:none;color:inherit; }
img { max-width:100%;display:block; }
table { border-collapse:collapse; border-spacing:0; }
*:focus { outline:2px solid #D9B373; outline-offset:1px; }


/* FONT IMPORT */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');


:root {
  --color-primary: #39663B;
  --color-secondary: #D9B373;
  --color-accent: #F4F4F0;
  --color-headings: #242423;
  --color-body: #333;
  --color-white: #fff;
  --color-black: #000;
  --shadow-card: 0 4px 18px 0 rgba(57,102,59,0.08);
  --shadow-strong: 0 6px 24px 0 rgba(57,102,59,0.16);
  --border-radius: 22px;
  --border-radius-sm: 8px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 60px;
  --transition-fast: 0.16s cubic-bezier(.47,1.64,.41,.8);
  --transition: 0.28s cubic-bezier(.47,1.64,.41,.8);
  --cta-font: 700 18px/1 Montserrat,sans-serif;
}

html,
body {
  height: 100%;
  background-color: var(--color-accent);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--color-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
body {
  min-height:100vh;
  width:100%;
  box-sizing:border-box;
  background: var(--color-accent);
}

.container {
  width:100%;
  max-width:1240px;
  margin: 0 auto;
  padding:0 20px;
  box-sizing:border-box;
}

/* TOPOGRAPHY - Modern bold scale */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-headings);
  font-weight: 900;
  letter-spacing: -0.01em;
}
h1 { font-size: 40px; margin-bottom:24px; line-height: 1.18; }
h2 { font-size: 32px; margin-bottom:20px; font-weight: 800; }
h3 { font-size: 24px; margin-bottom:16px; font-weight: 800; }
h4 { font-size:18px; margin-bottom:12px; }
p,ul,ol { font-family: 'Roboto', Arial, Helvetica, sans-serif; color: var(--color-body);}
p { font-size: 16px; margin-bottom: 16px; }
ol, ul, li { font-size: 16px; margin-bottom:8px; }
strong { font-weight: bold; color:var(--color-primary); }
a:hover, a:focus { color: var(--color-secondary); transition:color var(--transition-fast); }

/* General section and spacing patterns (MANDATORY) */
.section {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg) 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative; /* Only for decorative effects */
}
.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;
  padding: 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  margin-right: 20px;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 440px;
  transition: box-shadow var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-strong);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-bottom: 24px;
}

/* Layout for .content-wrapper */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}
.text-section {
  max-width: 720px;
  margin: 0 auto;
}

/* HERO SECTIONS */
section:first-of-type {
  background: #fff;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: 0 2px 12px 0 rgba(34,34,34,.11);
  margin-bottom: var(--spacing-xl);
  padding-top:42px;
  padding-bottom:48px;
}
section:first-of-type h1 {
  color: var(--color-primary);
  text-shadow: 0 2px 0 #f4f4f0, 0 4px 12px rgba(0,0,0,.08);
}

/* BUTTONS AND CTA */
.cta {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:none;
  cursor:pointer;
  border-radius: var(--border-radius-sm);
  padding:12px 30px;
  margin-top:16px;
  font:var(--cta-font);
  text-transform:uppercase;
  letter-spacing:0.05em;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px 0 rgba(57,102,59,0.07);
  background-color: var(--color-secondary);
  color: var(--color-primary);
}
.cta.primary {
  background:var(--color-primary);
  color:var(--color-white);
  box-shadow: 0 4px 14px 0 rgba(57,102,59,0.11);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 2px 24px 0 rgba(57,102,59,0.15);
  transform: translateY(-2px) scale(1.04);
}
.cta.secondary {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-primary);
  color:#fff;
}

/* HEADER NAV */
header {
  background:#fff;
  position: sticky;
  top: 0;
  z-index:1002;
  box-shadow: 0 2px 12px 0 rgba(34,34,34,.07);
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.logo img, .logo-footer img { height: 45px; width: auto; }
.logo { margin-right:32px; }
.nav a, header nav a {
  font-family:'Montserrat',sans-serif;
  font-weight:700;
  font-size:16px;
  color:var(--color-primary);
  transition: color var(--transition-fast);
  padding: 6px 12px; border-radius: 6px;
}
header nav a.cta.primary {
  margin-left:auto;
}
header nav a:hover, header nav a:focus {
  background: var(--color-accent);
  color:var(--color-secondary);
}

/* Hide mobile nav button on desktop */
.mobile-menu-toggle {
  display:none;
  background:var(--color-primary);
  color:var(--color-white);
  border:none; border-radius:8px;
  font-size:2rem;
  padding:6px 18px;
  margin-left:auto;
  z-index:1020;
  cursor:pointer;
  transition: background var(--transition);
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus { background:var(--color-secondary); color: var(--color-primary);}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:rgba(36,36,35,0.99);
  box-shadow:0 0 40px 0 rgba(34,34,34,.14);
  z-index: 1101;
  transform: translateX(-100vw);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content:flex-start;
  padding:36px 32px 16px 32px;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 0 60px 0 rgba(34,34,34,0.26);
}
.mobile-menu-close {
  align-self: flex-end;
  color: var(--color-secondary);
  background: transparent;
  border: none;
  font-size:2.2rem;
  margin-bottom:24px;
  cursor:pointer;
  transition: color var(--transition);
  padding: 4px 12px;
  border-radius: 8px;
  z-index: 1102;
}
.mobile-menu-close:hover,.mobile-menu-close:focus{ color:var(--color-white); background:var(--color-secondary); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap:18px;
  width: 100%;
}
.mobile-nav a {
  color:var(--color-white);
  font-size: 1.36rem;
  letter-spacing:0.01em;
  font-weight:700;
  padding: 14px 0 12px 0;
  border-bottom:1px solid rgba(255,255,255,0.06);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background:rgba(217,179,115,0.04);
}

/* FOOTER */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 32px 0 12px 0;
  margin-top:60px;
  box-shadow: 0 -2px 24px 0 rgba(34,34,34,0.08);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 15px;
}
.logo-footer { margin-bottom:0; display:flex; align-items: center;}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: var(--color-accent);
  font-family:'Montserrat',sans-serif;
  font-weight:700;
  font-size: 15px;
  letter-spacing: 0.01em;
  margin-bottom:0;
}
footer nav a:hover,footer nav a:focus{
  color:var(--color-secondary);
}
.contact-footer {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 15px;
}
.contact-footer img {
  height: 19px;
  width: 19px;
  margin-right:8px;
  vertical-align:middle;
}

/* CARDS (GENERAL) */
.feature-grid>div, .card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding:28px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 220px;
  flex:1 1 260px;
  margin-bottom:20px;
  transition: box-shadow var(--transition), transform var(--transition-fast);
  border:2.5px solid transparent;
}
.feature-grid>div:hover, .card:hover {
  border-color:var(--color-secondary);
  box-shadow:var(--shadow-strong);
  transform: translateY(-4px) scale(1.03);
}
.feature-grid img, .feature-item img {
  height: 38px;
  width: 38px;
  margin-bottom:14px;
}

/* CARDS ON DARK (for mobile menu) */
.mobile-nav a {
  border-radius: 7px;
}

/* TESTIMONIALS - readable cards on light bg */
.testimonial-card {
  background: #fff;
  color: #242423;
  border-left:7px solid var(--color-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  min-width: 220px;
  flex: 1 1 340px;
}
.testimonial-card strong {
  color: var(--color-secondary);
  font-size: 17px;
  font-weight: 900;
  font-family: 'Montserrat',sans-serif;
}
.testimonial-card p {
  color:#262626;
  font-size:17px;
  font-style: italic;
  margin-bottom:8px;
}

/* FORMS (if any in later pages) */
input,textarea,select {
  font-family:'Roboto',sans-serif;
  padding: 10px 14px;
  font-size: 16px;
  border:1.5px solid var(--color-primary);
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
  width:100%;
  box-sizing:border-box;
  background:#fff;
  transition: border-color var(--transition);
}
input:focus,textarea:focus,select:focus{
  border-color: var(--color-secondary);
}
label { font-weight:600; margin-bottom:4px; display:block; }

/* MOBILE FIRST - RESPONSIVE FLEXBOX */
@media (max-width: 1024px) {
  .container { max-width: 990px; }
  .feature-grid { gap: 20px; }
  h1 { font-size:34px; }
  h2 { font-size:26px; }
}
@media (max-width: 768px) {
  .container { max-width: 98vw; padding:0 7vw; }
  header nav { gap: 7px; }
  .mobile-menu-toggle {
    display: inline-flex;
    margin-left:auto;
    margin-right:0;
  }
  header nav {
    display:none;
  }
  .feature-grid,.card-container,.content-grid,.card {
    flex-direction:column;
    flex-wrap:wrap;
    align-items:stretch;
  }
  .testimonial-card { max-width:100%; min-width:0; }
  .text-image-section { flex-direction: column; gap:16px; }
  .content-wrapper { gap:17px; }
  .card { min-width:0; }
  footer .container {
    flex-direction:column;
    gap:18px;
    align-items:flex-start;
  }
  .logo-footer { margin-bottom:14px; }
}
@media (max-width:480px) {
  .container { padding:0 2vw; }
  h1 { font-size:24px; }
  h2 { font-size:19.5px; }
  .feature-grid>div, .card { padding:18px 8px 18px 12px; }
  .section { padding:24px 0; }
  .mobile-nav a { font-size:18px; }
  .testimonial-card { padding: 13px 8px; }
}


/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
.cta, .card, .feature-grid > div, .testimonial-card, .cookie-banner, .cookie-modal {
  transition: box-shadow var(--transition), background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), border-color var(--transition);
}


/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position:fixed;
  left:0; right:0; bottom:0;
  z-index: 2100;
  background: #fff;
  color: #222;
  box-shadow: 0 -4px 24px 0 rgba(34,34,34,.21);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap:16px;
  padding: 20px 30px 14px 18px;
  border-radius: 18px 18px 0 0;
  border-top:3px solid var(--color-secondary);
  width:max(310px, 98vw);
  max-width: 100vw;
  animation: cookieIn 0.45s cubic-bezier(.47,1.64,.41,.8);
}
@keyframes cookieIn {
  from { transform:translateY(100%); opacity:0; }
  to   { transform:translateY(0);   opacity:1; }
}
.cookie-banner p {
  font-size: 15px; margin-bottom:6px; color: #222;
}
.cookie-buttons {
  display:flex;
  flex-wrap: wrap;
  gap:10px;
  margin-top:4px;
}
.cookie-banner button {
  font: 700 15px/1 Montserrat,sans-serif;
  padding:7px 23px;
  border-radius: 7px;
  border:none;
  margin-right:0;
  cursor:pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-accept:hover,.cookie-accept:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-reject {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.cookie-reject:hover,.cookie-reject:focus {
  background:var(--color-secondary);
  color: var(--color-primary);
}
.cookie-settings {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-settings:hover,.cookie-settings:focus {
  background: #dde3d6;
}

/* Cookie modal: popup for preferences */
.cookie-modal {
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%) scale(0.99);
  z-index:3000;
  background: #fff;
  color: #222;
  box-shadow: 0 8px 40px 0 rgba(34,34,34,0.20);
  border-radius: 18px;
  padding: 40px 32px 24px 32px;
  max-width:360px;
  width:96vw;
  display:flex;
  flex-direction:column;
  gap:18px;
  animation: cookiePopIn 0.33s cubic-bezier(.47,1.64,.41,.8);
}
@keyframes cookiePopIn {
  from { opacity:0; transform:translate(-50%,-60%) scale(0.95); }
  to   { opacity:1; transform:translate(-50%,-50%) scale(1); }
}
.cookie-modal h3 {
  font-size:24px; color:var(--color-primary); margin-bottom:0;
}
.cookie-modal label {
  display:flex; align-items:center; gap:14px;
  font-weight:700;
  color: #222;
}
.cookie-modal input[type=checkbox] {
  width:18px; height:18px;
  accent-color: var(--color-secondary);
}
.cookie-modal .cookie-modal-category {
  margin-bottom:10px;
  font-size:15px;
  color:var(--color-primary);
  display:flex; align-items:center; gap:8px;
}
.cookie-modal-accept {
  background: var(--color-primary);
  color: #fff;
  border-radius:6px;
  border:none;
  font: 700 16px/1 Montserrat,sans-serif;
  padding: 10px 23px;
  margin-top:12px;
  cursor:pointer;
}
.cookie-modal-accept:hover,.cookie-modal-accept:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-modal-close {
  position:absolute;
  right:16px; top:13px;
  background:transparent;
  border:none;
  font-size:22px;
  color: var(--color-secondary);
  cursor:pointer;
  padding:2px 10px;
}
.cookie-modal-close:hover,.cookie-modal-close:focus { color: var(--color-primary); background:var(--color-accent);}

/* Hide modal/banner by default */
.cookie-modal,.cookie-banner { display: none; }
.cookie-modal.open,.cookie-banner.show { display:flex; }

/* --- UTILITY CLASSES --- */
.d-flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-20 { gap: 20px; }
.gap-32 { gap: 32px; }
.mt-24 { margin-top: 24px; }

/* GEOMETRIC BG DECORATION (if wanted) */
.section {
  position:relative;
  z-index:1;
}
.section::before {
  content:'';
  display:block;
  position:absolute;
  z-index:-1;
  left:0; top:-6px;
  width:60px; height:60px;
  border-radius:20px 40px 12px 34px;
  background: var(--color-secondary);
  opacity:0.10;
  filter: blur(2px);
}
.section:nth-child(odd)::after {
  content:'';
  display:block; position:absolute; right:10px; bottom:-14px;
  width:38px;height:38px;
  background:var(--color-primary);
  opacity:.07;
  border-radius:42px 12px 35px 20px;
  filter: blur(1.5px);
  z-index:-1;
}

/* OLIVE ACCENT ICONS */
.text-section img, .contact-footer img, .feature-grid img, .feature-item img {
  filter: drop-shadow(0 1px 2px rgba(57,102,59,.09));
}

/* LISTS */
ol, ul {
  margin: 10px 0 18px 21px;
  font-size: 16px;
}
ol li, ul li { margin-bottom:8px; }

/* FAQ and About Pages Extras */
.text-section h3 {
  color:var(--color-primary);
  font-size: 20px;
  font-weight: bold;
  margin-top: 12px;
  margin-bottom: 6px;
}

/* BLOG Articles (as cards) */
.feature-grid>div > .cta.secondary {
  margin-top:6px; padding:7px 22px; font-size:16px;
}

/* --- GEOMETRY & NO OVERLAP --- */
.card, .feature-grid>div, .testimonial-card {
  min-width: 220px;
  margin-bottom: 20px;
  box-sizing: border-box;
}
.content-wrapper {
  margin-bottom: 32px;
}
section {
  margin-bottom: var(--spacing-xl);
}

/* ENSURE NO OVERLAPPING and Adequate Z-Index */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index:999 !important; }

/* End of CSS */
