/* ==== CSS RESET & NORMALIZE (Safe for modern browsers) ==== */
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;
  box-sizing:border-box;
}
html { box-sizing: border-box; scroll-behavior:smooth; }
*, *:before, *:after { box-sizing:inherit; }
body { line-height: 1.6; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display:block; height:auto; border:0; }
button, input, select, textarea { font-family:inherit; font-size:inherit; border:none; background:none; outline:none; }

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

/* ==== THEME VARIABLES (with fallback) ==== */
:root {
  --color-primary: #23395d;
  --color-primary-dark: #16243a;
  --color-secondary: #f9e7c4;
  --color-secondary-light: #fff9ee;
  --color-accent: #8c2314;
  --color-accent-soft: #b24c33;
  --color-bg: #fffcf9;
  --color-neutral: #e2dbc6;
  --color-green: #49634f;
  --color-green-light: #9dbb89;
  --color-brown: #80604d;
  --color-grey: #3e4a4e;
  --color-shadow: rgba(35, 57, 93, 0.07);
  --color-white: #fff;
  --color-black: #181D1A;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ===== BASE TYPOGRAPHY ===== */
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-black);
  background: var(--color-bg);
  min-height: 100vh;
  letter-spacing: 0.03em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 0.4em;
  font-weight: 700;
  line-height: 1.175;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.375rem; }
h4 { font-size:1.125rem; }
p, ul, ol, li { font-size: 1rem; margin-bottom:12px; }
strong, b { font-weight: 700; color: var(--color-accent); }
a { color: var(--color-green); transition: color 0.2s; }
a:hover, a:focus { color: var(--color-accent-soft); }

/* ====== LAYOUT ====== */
.container {
  width:100%;
  max-width:1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  
  /* Make container a flex column for header/footer layouts */
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  width:100%;
  display: flex;
  flex-direction: column;
  gap:24px;
  box-sizing:border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-secondary-light);
  border-radius: 24px;
  box-shadow: 0 6px 26px var(--color-shadow);
}
@media (max-width: 900px) {
  .section {
    padding: 32px 10px;
    margin-bottom:30px;
  }
}

/* ======= HEADER ======= */
header {
  background: var(--color-white);
  box-shadow: 0 6px 26px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
header a img {
  height: 44px; width: auto;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.08));
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: var(--font-body);
  color: var(--color-primary);
  font-size: 1rem;
  padding: 8px 0;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--color-neutral);
  color: var(--color-accent);
}
.cta-btn {
  font-family: var(--font-body);
  font-weight:700;
  background: var(--color-green);
  color: var(--color-white)!important;
  border-radius: 99px;
  font-size: 1.15rem;
  padding: 10px 32px;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-left: 25px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  display:inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-accent);
  color: var(--color-white)!important;
  transform:translateY(-2px) scale(1.025);
  box-shadow: 0 5px 18px var(--color-shadow);
}

/* ======= MOBILE MENU ======= */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top:20px;
  right:24px;
  z-index: 1101;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 2.1rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 10px var(--color-shadow);
  cursor: pointer;
  transition: background .15s, box-shadow .2s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-accent);
}

@media (max-width: 900px) {
  header nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,57,93,0.97);
  z-index: 1200;
  transform: translateX(-110%);
  transition: transform .35s cubic-bezier(.8,.1,.2,1);
  display: flex;
  flex-direction: column;
  gap: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events:auto;
  opacity:1;
}
.mobile-menu-close {
  background:var(--color-accent);
  color:var(--color-white);
  font-size:1.8rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  position: absolute;
  top:20px; right:20px;
  border:none; cursor:pointer;
  z-index:1300;
  box-shadow:0 2px 8px var(--color-shadow);
  transition: background .15s;
  display:flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover { background:var(--color-green); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top:100px;
  gap: 18px;
  padding: 40px 32px;
  width:100%;
}
.mobile-nav a {
  color: var(--color-white) !important;
  font-size: 1.38rem;
  padding: 14px 0;
  font-family: var(--font-display);
  width: 100%;
  border-radius: 8px;
  transition: background .15s, color .15s;
  text-align:left;
  font-weight:600;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background:var(--color-accent-soft);
  color:var(--color-primary);
}

@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ===== MAIN LAYOUT FLEXBOX CONTAINERS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 3px 16px var(--color-shadow);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  padding: 30px;
  display: flex;
  flex-direction: column;
  min-width:270px;
}
.card:hover {
  filter: brightness(1.05);
  box-shadow:0 8px 26px var(--color-shadow);
  transform: translateY(-4px) scale(1.015);
}
.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;
  margin-bottom: 20px;
  background: var(--color-white);
  box-shadow: 0 2px 10px var(--color-shadow);
  border-radius:18px;
  border-left:8px solid var(--color-green);
  min-width:220px;
  font-size:1.1rem;
  transition:box-shadow .18s,border-color .13s;
}
.testimonial-card:hover {
  border-left:8px solid var(--color-accent-soft);
  box-shadow:0 4px 26px var(--color-shadow);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding:22px 18px;
  background: var(--color-secondary);
  border-radius: 18px;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-bottom:20px;
  transition:box-shadow .14s;
}
.feature-item:hover {
  background: var(--color-white);
  box-shadow: 0 8px 24px var(--color-shadow);
}

/* ======= HOME PAGE SPECIALS ======= */
.feature {
  background: var(--color-secondary);
  border-radius:18px;
  padding:28px 18px;
  box-shadow:0 2px 8px var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items:center;
  gap:12px;
  margin-bottom:20px;
  min-width:180px;
  flex:1 1 220px;
  transition:box-shadow .13s;
}
.feature img { height:48px; margin-bottom:2px; }
.feature:hover { box-shadow:0 8px 20px var(--color-shadow); }

/* ======= VALUES / ADVANTAGES / BLOG TEASERS ======= */
.values-list, .blog-teasers {
  display:flex;
  flex-wrap: wrap;
  gap:24px;
  margin-bottom:24px;
  align-items:stretch;
}
.value, .teaser {
  background:var(--color-secondary);
  border-radius:18px;
  box-shadow:0 2px 8px var(--color-shadow);
  flex:1 1 210px;
  min-width:200px;
  padding:18px 16px;
  margin-bottom:20px;
  display:flex;
  flex-direction:column;
  align-items: flex-start;
  gap:10px;
  transition:box-shadow .13s;
}
.value img {
  height:40px;
  margin-bottom:4px;
}
.value:hover,.teaser:hover {
  box-shadow:0 10px 24px var(--color-shadow);
  background:var(--color-white);
}

/* ======= LISTS & ICON LISTS ======= */
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
  font-size:1em;
}
ul li, ol li {
  margin-bottom:12px;
  position: relative;
}
ul li img {
  height: 19px;
  width: auto;
  margin-right: 12px;
  vertical-align: middle;
  display:inline-block;
}
ul li strong {
  color: var(--color-green);
}

/* ======= FORMS & BUTTONS GENERAL ======= */
button {
  background:var(--color-green);
  color:var(--color-white);
  font-family:var(--font-body);
  font-weight:600;
  padding:10px 28px;
  border:none;
  border-radius:99px;
  box-shadow:0 2px 10px var(--color-shadow);
  cursor:pointer;
  font-size:1rem;
  transition:background 0.2s, color .2s, box-shadow .2s;
}
button:hover, button:focus {
  background:var(--color-accent);
  color:var(--color-white);
  outline:none;
  box-shadow: 0 6px 16px var(--color-shadow);
}
input, textarea, select {
  font-family: var(--font-body);
  border-radius:9px;
  background:var(--color-secondary-light);
  border: 1.5px solid var(--color-neutral);
  padding:12px 16px;
  width:100%;
  font-size: 1rem;
  margin-bottom:18px;
  transition: border .2s, background .15s;
}
input:focus, textarea:focus, select:focus {
  border-color:var(--color-green);
  background:var(--color-secondary);
}

/***** THANK YOU PAGE *****/
.thankyou-message {
  background: var(--color-secondary);
  padding: 32px 22px;
  border-radius: 18px;
  box-shadow: 0 2px 8px var(--color-shadow);
  text-align: center;
  margin:32px auto 0 auto;
}

/***** BLOG TEASERS *****/
.blog-teasers { gap: 24px; }
.teaser h3 { color: var(--color-accent); margin-bottom:6px; font-size:1.18rem; }

/***** SOCIAL LINKS *****/
.social-links {
  display:flex;
  flex-direction: row;
  gap: 16px;
  margin-top:8px;
}
.social-links a img {
  width: 28px;
  filter: grayscale(.11) contrast(1.15);
  opacity:0.88;
  transition:filter .16s, opacity .14s;
}
.social-links a:hover img {
  filter:none;
  opacity:1;
  transform: scale(1.12);
}

/***** FOOTER STYLES *****/
footer {
  background: var(--color-green);
  color: var(--color-white);
  padding: 44px 0 18px 0;
}
footer .container {
  flex-direction: column;
  align-items: stretch;
  gap: 36px;
}
.footer-links {
  display:flex;
  flex-direction: row;
  gap: 48px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links nav a {
  color: var(--color-white);
  font-size:1.05rem;
  transition: color .16s, text-decoration .17s;
}
.footer-links nav a:hover, .footer-links nav a:focus { color: var(--color-accent-soft); text-decoration: underline; }
.brand-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}
.brand-footer p { font-size:1.13rem; font-family:var(--font-display); opacity: .92; }
.brand-footer img {
  height:40px; width:auto; filter:saturate(0.92);
}

@media (max-width: 900px) {
  footer .container { gap:18px; }
  .footer-links { flex-direction: column; gap:18px; }
  .brand-footer { align-items:center; text-align:center; }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  left:0; right:0; bottom:0;
  z-index: 2100;
  background: var(--color-secondary);
  color: var(--color-black);
  box-shadow: 0 -6px 26px var(--color-shadow);
  padding: 32px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  gap:14px;
  align-items: center;
  animation: cookie-slide-in .45s cubic-bezier(.6,.1,.2,1);
}
@keyframes cookie-slide-in {
 from { transform:translateY(160px); opacity: 0; }
 to { transform:translateY(0); opacity: 1; }
}
.cookie-banner p {
  max-width:530px;
  font-size:1.03rem;
  text-align: center;
  color: var(--color-black);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button, .cookie-banner .cookie-settings-btn {
  min-width: 130px;
  font-size:1rem;
  border-radius: 99px;
  border:none;
  transition:background .16s, color .14s;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding:10px 24px;
  cursor:pointer;
}
.cookie-banner .cookie-accept {
  background: var(--color-green);
  color: var(--color-white);
}
.cookie-banner .cookie-reject {
  background: var(--color-accent);
  color: var(--color-white);
}
.cookie-banner .cookie-settings-btn {
  background: var(--color-secondary-light);
  color: var(--color-black);
  border: 1.5px solid var(--color-green-light);
}
.cookie-banner button:focus, .cookie-banner button:hover {
  outline:none;
  filter:brightness(.97);
  transform:translateY(-2px) scale(1.025);
}

/* ===== COOKIE MODAL ===== */
.cookie-modal-backdrop {
  position:fixed;
  top:0;left:0;right:0;bottom:0;
  background:rgba(35,57,93,0.50);
  z-index:2200;
  display:flex;
  align-items: center;
  justify-content:center;
  animation:cookie-modal-fade-in .25s cubic-bezier(.6,.1,.2,1);
}
@keyframes cookie-modal-fade-in {
 from { opacity: 0; }
 to { opacity:1; }
}
.cookie-modal {
  background: var(--color-white);
  border-radius:24px;
  box-shadow:0 6px 38px var(--color-shadow);
  padding: 38px 30px 28px 30px;
  max-width:470px;
  width:94vw;
  display:flex;
  flex-direction:column;
  gap:22px;
  position:relative;
  animation: cookie-slide-in .27s cubic-bezier(.6,.1,.2,1);
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size:1.285rem;
  color:var(--color-primary);
  margin-bottom:0.5em;
}
.cookie-category {
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:16px;
  margin-bottom:12px;
}
.cookie-category label {
  font-size:1.08rem;
  flex:1 1 0;
  color:var(--color-black);
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-green);
  width:21px; height:21px;
}
.cookie-category input[disabled] {
  accent-color:var(--color-green-light);
}
.cookie-modal-close {
  position:absolute;
  right:18px;
  top:16px;
  background:var(--color-accent);
  color:var(--color-white);
  border-radius:50%;
  border:none;
  width:38px; height:38px;
  font-size:1.4rem;
  display:flex;
  align-items:center;justify-content:center;
  cursor:pointer;
  transition: background .14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-green); 
}
.cookie-modal-actions {
  margin-top:10px;
  display:flex;
  gap:14px;
  justify-content:end;
}
.cookie-modal-actions button {
  font-size:1.05rem;
}
@media (max-width: 700px) {
  .cookie-modal {
    padding: 22px 8px 18px 8px;
    max-width:98vw;
  }
}

/* ======= RESPONSIVE & ORGANIC FORMS, SECTIONS ======= */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size:1.45rem; }
  h3 { font-size: 1.1rem; }
  .header .container {
    height:66px;
  }
  .section {
    padding: 24px 6px;
    margin-bottom: 32px;
  }
  .card-container, .content-grid, .values-list, .blog-teasers {
    flex-direction: column;
    gap: 18px;
  }
  .footer-links { flex-direction:column; gap: 12px; }
  .brand-footer { align-items:center; }
  .testimonial-card {
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
    padding: 16px;
  }
  .feature, .value, .teaser, .feature-item, .card {
    min-width:unset;
    width:100%;
    padding: 16px 12px;
  }
  .text-image-section {
    flex-direction:column;
    gap:14px;
  }
  .mobile-menu-close {
    top:10px; right:7px; width:43px; height:43px;
  }
}

/* ===== OTHER MICRO-INTERACTIONS ===== */
.card, .feature, .teaser, .value, .feature-item {
  transition: box-shadow 0.19s, background 0.20s, transform 0.17s;
}
.card:active, .feature:active, .teaser:active, .value:active, .feature-item:active {
  filter:brightness(.96);
  transform:scale(.97);
}

/* ======= ORGANIC DETAILS ======= */
.section {
  box-shadow:
    0 4px 20px var(--color-shadow),
    0 1px 0 0 var(--color-neutral) inset;
  border-radius: 32px 12px 28px 17px/20px 38px 12px 27px; /* organic */
  border:1.5px solid var(--color-neutral);
  position:relative;
}
.feature, .feature-item, .value, .teaser, .card {
  border-radius: 28px 15px 22px 13px/17px 26px 17px 24px;
  border: 1px solid var(--color-neutral);
  background-image: linear-gradient(111deg, var(--color-secondary-light) 93%, transparent 100%);
  box-shadow: 0 2px 16px var(--color-shadow);
}
.testimonial-card {
  background: var(--color-white);
  border-radius:32px 18px 22px 17px/21px 37px 19px 28px;
  border: 1.2px solid var(--color-green-light);
}

/* ===== ACCESSIBILITY: CONTRAST ===== */
.testimonial-card p, .testimonial-card span, .testimonial-card strong {
  color: var(--color-black);
}

/****** UTILITIES ******/
.text-center { text-align:center !important; }
.uppercase { text-transform:uppercase; }
.mb-20 { margin-bottom:20px !important; }
.mt-40 { margin-top:40px !important; }

/****** Hide unwanted scroll on menu-open ******/
body.menu-open { overflow:hidden; }

/****** Sample Fade Animation for reveal ******/
.fade-in { animation:fadex .66s cubic-bezier(.8,.13,.22,1); }
@keyframes fadex{ 0% { opacity:0; transform:translateY(28px);} 100%{opacity:1;transform:none;} }
