/* ------ 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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; background: #F5F5F2; min-height: 100vh; }
img, video { max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; border-spacing: 0; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
button { font-family: inherit; font-size: 1rem; background: none; border: none; padding: 0; cursor: pointer; }
:focus { outline: 2px solid #85A53C; outline-offset: 2px; }

/* ------ BRAND FONTS ------ */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');
body { font-family: 'Open Sans', Arial, sans-serif; color: #2C3E4F; background: #F5F5F2; }
h1, h2, h3, h4 { font-family: 'Montserrat', Arial, sans-serif; letter-spacing: -0.02em; }

/* ------ COLOR VARIABLES (FALLBACKS) ------ */
:root {
  --color-primary: #2C3E4F;
  --color-secondary: #85A53C;
  --color-accent: #F5F5F2;
  --color-white: #fff;
  --color-black: #191b20;
  --gradient-main: linear-gradient(90deg, #85A53C 0%, #2C3E4F 100%);
  --gradient-primary: linear-gradient(100deg, #85A53C 20%, #2C3E4F 90%);
  --gradient-light: linear-gradient(90deg, #F5F5F2 60%, #E9F1CC 100%);
}

/* Fallback for gradients on old browsers */
.hero, .cta.primary, .cta, .mobile-menu, .cookie-banner, .btn-gradient {
  background-color: #85A53C;
  background-image: none;
}


/* ------ LAYOUT: CONTAINER & FLEXBOX ------ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(44,62,79,0.10);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  min-width: 220px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(44,62,79,.08);
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px rgba(133,165,60,0.12);
}

/***** RESPONSIVE FLEX LAYOUTS *****/
@media (max-width: 900px) {
  .container { max-width: 100%; padding-left: 16px; padding-right: 16px; }
  .content-grid, .card-container, .service-list { gap: 16px; }
}
@media (max-width: 768px) {
  .content-wrapper,
  .content-grid,
  .card-container,
  .features ul,
  .testimonial-slider,
  .testimonial-grid,
  .service-list {
    flex-direction: column !important;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 24px;
  }
  .card { min-width: 0; }
}

/**** SPACING FOR COMMON ELEMENTS ****/
h1 { font-size: 2.5rem; font-weight: 700; color: #2C3E4F; margin-bottom: 16px; }
h2 { font-size: 2rem; font-weight: 700; color: #2C3E4F; margin-bottom: 12px; }
h3 { font-size: 1.25rem; font-weight: 600; color: #2C3E4F; margin-bottom: 10px; }
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
}
p, li, ul, ol, span, strong { font-size: 1rem; color: #303640; }
p.subheadline { font-size: 1.1rem; color: #2C3E4F; margin-bottom: 10px; }
strong { font-weight: 700; }
ul li, ol li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
ul li img, ol li img {
  margin-right: 8px;
  width: 28px; height: 28px;
}

main section {
  margin-bottom: 60px;
  padding: 40px 0;
}

/**** HEADER & NAVIGATION ****/
header {
  background: #fff;
  box-shadow: 0 2px 24px rgba(44,62,79,0.06);
  z-index: 90;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}
.logo img {
  height: 52px;
  width: auto;
  display: block;
  margin-right: 8px;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Open Sans', Arial,sans-serif;
  color: #2C3E4F;
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E9F1CC;
  color: #85A53C;
}
.cta.primary {
  background: var(--gradient-main, #85A53C);
  background-color: #85A53C;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 30px;
  margin-left: 24px;
  border: none;
  transition: box-shadow 0.15s, background 0.22s;
  box-shadow: 0 2px 16px rgba(133,165,60,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cta.primary:hover, .cta.primary:focus {
  background: #2C3E4F;
  color: #fff;
  box-shadow: 0 5px 24px rgba(44,62,79,0.19);
}

.mobile-menu-toggle {
  display: none;
  background: #85A53C; color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  align-items: center; justify-content: center;
  border: none; z-index: 91;
  transition: background 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #2C3E4F;
}

@media (max-width: 960px) {
  nav.main-nav { display: none; }
  .cta.primary { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/***** MOBILE MENU OVERLAY *****/
.mobile-menu {
  display: flex;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--gradient-main, #85A53C);
  background-color: #85A53C;
  flex-direction: column;
  z-index: 150;
  transform: translateX(-110vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.39s cubic-bezier(0.8,0.3,0.4,1.1), opacity 0.28s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin-top: 32px;
  margin-left: auto;
  margin-right: 28px;
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #2C3E4F; }
.mobile-nav {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 8px 0;
  width: 100%;
  text-align: center;
  border-radius: 10px;
  transition: background 0.18s, color 0.22s; 
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(44,62,79,0.15);
  color: #2C3E4F;
}
@media (min-width: 961px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/**** HERO SECTION ****/
.hero {
  background: var(--gradient-main, #85A53C);
  color: #fff;
  padding: 56px 0 48px 0;
  min-height: 340px;
  display: flex;
  align-items: center;
}
.hero .container { justify-content: center; align-items: center; }
.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 30px rgba(44,62,79,0.16);
}
.hero .subheadline {
  color: #f9faeb;
  font-size: 1.15rem;
  margin-bottom: 20px;
}
.hero .cta { background: #fff; color: #85A53C; box-shadow: 0 1px 16px rgba(44,62,79,0.07); }
.hero .cta:hover, .hero .cta:focus { background: #E9F1CC; color: #2C3E4F; }

@media (max-width: 600px) {
  .hero { min-height: 230px; padding: 34px 0 28px 0; }
  .hero h1 { font-size: 1.5rem; }
}

/**** FEATURES, SERVICES, ABOUT, CARDS, BENEFITS, TABLES ****/
.features ul,
.services ul,
.about ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex-direction: column;
  margin-bottom: 12px;
}
.features ol,
.services ol,
.about ol {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
}
.features li,
.services li,
.about li {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(44,62,79,0.04);
  padding: 16px 16px 16px 10px;
  align-items: center;
  margin-bottom: 0;
}
.service-list, .testimonial-slider, .testimonial-grid, .benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}
.service-item {
  flex: 1 1 220px;
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(44,62,79,0.07);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-item h3 { font-size: 1.17rem; color: #85A53C; margin-bottom: 5px; }
.service-item strong { color: #2C3E4F; }

.comparison-table {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  margin-top: 22px;
  box-shadow: 0 2px 12px rgba(133,165,60,.06);
  font-size: 1rem;
  overflow: hidden;
}
.comparison-table th, .comparison-table td {
  padding: 12px 18px;
  text-align: left;
  color: #2C3E4F;
  border-bottom: 1px solid #E9F1CC;
}
.comparison-table th {
  background: #E9F1CC;
  font-weight: bold;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}

.benefits img {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #F5F5F2;
  display: inline-block;
  margin-right: 16px;
}

/**** TESTIMONIALS ****/
.testimonials {
  background: #F5F5F2;
  padding: 48px 0;
}
.testimonials h2 { color: #2C3E4F; }
.testimonial-slider,
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.testimonial-card {
  flex: 1 1 260px;
  background: #fff;
  color: #222;
  box-shadow: 0 2px 9px rgba(44,62,79,0.10);
  border-radius: 18px;
  padding: 20px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
}
.testimonial-card p {
  font-size: 1rem;
  font-family: 'Open Sans', Arial,sans-serif;
  line-height: 1.55;
  color: #222;
}
.testimonial-card span {
  color: #85A53C;
  font-weight: 600;
  font-size: .95rem;
}
@media (max-width: 900px) {
  .testimonial-slider, .testimonial-grid { flex-direction: column; gap: 16px; }
}

/**** CONTACT BLOCKS ****/
.contact ul, .quick-info ul, .company-details ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border-radius: 8px;
  padding: 18px 18px 10px 18px;
  box-shadow: 0 2px 10px rgba(44,62,79,0.06);
  margin-bottom: 15px;
}
.contact h3, .company-details h3, .quick-info h3 { color: #2C3E4F; }

/**** BUTTONS & CTA ****/
.cta, .btn-gradient {
  display: inline-block;
  padding: 12px 32px;
  background: var(--gradient-main, #85A53C);
  background-color: #85A53C;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  border: none;
  border-radius: 30px;
  box-shadow: 0 2px 12px rgba(44,62,79,0.08);
  transition: box-shadow 0.14s, background 0.19s, color 0.19s, transform 0.16s;
  cursor: pointer;
  margin-top: 18px;
  text-align: center;
}
.cta:hover, .cta:focus, .btn-gradient:hover, .btn-gradient:focus {
  background: #2C3E4F;
  color: #fff;
  box-shadow: 0 6px 28px rgba(44,62,79,0.20);
  transform: translateY(-2px) scale(1.03);
}

/**** FOOTER ****/
footer {
  background: #2C3E4F;
  color: #fff;
  padding: 38px 0 18px 0;
  font-size: 1rem;
}
footer .container { flex-direction: column; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  margin-bottom: 22px;
}
.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.95;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 0;
  font-size: 1rem;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus { color: #85A53C; }
footer .social-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  font-size: 1rem;
}
footer .social-links img { width: 28px; height: 28px; filter: grayscale(0.8) brightness(1.2); transition: filter 0.18s; cursor: pointer; }
footer .social-links img:hover { filter: none; }
.brand-credits { font-size: 0.95rem; opacity: 0.86; }
@media (max-width: 768px) {
  .footer-nav { flex-direction: column; gap: 23px; }
  .footer-nav nav { flex-direction: row; gap: 12px; flex-wrap: wrap; }
}

/**** COOKIE CONSENT BANNER ****/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  display: flex; flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 26px 18px 26px 18px;
  background: linear-gradient(90deg,#F5F5F2 90%, #E9F1CC 100%);
  box-shadow: 0 -4px 20px rgba(44,62,79,0.06);
  z-index: 130;
  font-size: 1.01rem;
  color: #2C3E4F;
  transition: transform 0.35s cubic-bezier(.85,0,.32,1), opacity 0.23s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner .cookie-message { flex: 1 1 240px; min-width: 160px; }
.cookie-banner .cookie-actions {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
}
.cookie-banner .btn {
  padding: 9px 20px;
  background: #2C3E4F;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 22px;
  border: none;
  font-size: 1rem;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, transform 0.15s;
}
.cookie-banner .btn.accept {
  background: #85A53C;
  color: #fff; font-weight: 700;
}
.cookie-banner .btn.reject {
  background: #E9E9E2; color: #2C3E4F; font-weight: 600;
  border: 1px solid #C9D3B8;
}
.cookie-banner .btn.settings {
  background: transparent;
  color: #2C3E4F;
  border: 1px solid #85A53C;
}
.cookie-banner .btn:hover, .cookie-banner .btn:focus {
  transform: scale(1.05);
  background: #2C3E4F;
  color: #fff;
}
.cookie-banner .btn.accept:hover, .cookie-banner .btn.accept:focus { background: #2C3E4F; }

/* Cookie Modal (Example: .cookie-modal) */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(44,62,79,0.40);
  display: flex; align-items: center; justify-content: center;
  z-index: 180;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.26s;
}
.cookie-modal.hide { opacity: 0; pointer-events: none; }
.cookie-modal-content {
  background: #fff;
  color: #2C3E4F;
  border-radius: 18px;
  max-width: 420px;
  padding: 38px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  box-shadow: 0 8px 48px rgba(44,62,79,0.18);
  position: relative;
  animation: cookieModalIn 0.36s cubic-bezier(.71,1.5,.39,1) both;
}
@keyframes cookieModalIn {
  from { transform: translateY(70px) scale(0.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal-close {
  position: absolute; top: 14px; right: 20px;
  background: none;
  color: #85A53C;
  font-size: 2rem;
  border: none;
  cursor: pointer;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.cookie-category input[type=checkbox] {
  accent-color: #85A53C;
  width: 18px; height: 18px;
}
.cookie-category .always-on { color: #85A53C; font-weight: 600; font-size: 0.94rem; margin-left: 8px; }
.cookie-modal-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
}
.cookie-modal-actions .btn {
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: 700;
}

/**** UTILITY CLASSES ****/
.show { display: block !important; }
.hide { display: none !important; }

/**** ANIMATIONS & TRANSITIONS ****/
.section, .card, .testimonial-card, .feature-item, .service-item, .cta, .btn, .hero, .mobile-menu, .cookie-banner {
  transition: box-shadow .19s, background .25s, color .13s, transform .17s, filter .16s, opacity .20s;
}

/**** FORM ELEMENTS STYLING ****/
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1.5px solid #C9D3B8;
  border-radius: 8px;
  outline: none;
  margin-bottom: 16px;
  background: #fff;
  color: #2C3E4F;
  transition: border-color 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #85A53C;
}

/**** OTHER RESPONSIVE TWEAKS ****/
@media (max-width:500px) {
  .hero h1 { font-size: 1.1rem; }
  .service-item, .testimonial-card, .card {
    padding: 14px 8px;
  }
  .container { padding-left: 8px; padding-right: 8px; }
}

/**** OVERFLOW FIX FOR MOBILE MENU & COOKIE MODAL ****/
body.menu-open, body.cookie-modal-open { overflow: hidden; }

