/* 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, 
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; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #224061;
  background: #F3F9EF;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, picture { max-width: 100%; height: auto; display: block; }
a { color: #224061; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #57A635; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 12px 8px; text-align: left; }

/* BRAND GRADIENTS (fallback solid for compatibility) */
:root {
  --primary: #224061;
  --secondary: #57A635;
  --accent: #F3F9EF;
  --gradient-hero: linear-gradient(90deg, #224061 0%, #57A635 100%);
  --gradient-section: linear-gradient(135deg, #f3f9ef 0%, #e3efe2 100%);
  --shadow: 0 4px 24px rgba(34,64,97,0.10);
  --shadow-light: 0 1.5px 6px 0 rgba(34,64,97,0.05);
  --radius: 16px;
}

/* CONTAINER */
.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/****** HEADER STYLES ******/
header {
  background: #fff;
  box-shadow: var(--shadow-light);
  position: sticky; top: 0; z-index: 100;
}
header .container {
  min-height: 76px;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex; align-items: center;
}

/***** MAIN NAVIGATION *****/
.main-nav {
  display: flex; align-items: center; gap: 24px;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  color: var(--primary);
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a.active,
.main-nav a:hover,
.main-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}
.btn-primary,
.btn-secondary {
  display: inline-block;
  border-radius: 32px;
  padding: 12px 34px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s;
  cursor: pointer;
  box-shadow: var(--shadow-light);
  font-size: 18px;
}
.btn-primary {
  background: var(--gradient-hero);
  color: #fff !important;
  border: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #18417d 0%, #93c15a 100%);
  box-shadow: 0 2px 12px rgba(87,166,53,0.18);
}
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--secondary);
  color: #fff !important;
  border-color: var(--primary);
}

/******* MOBILE MENU *******/
.mobile-menu-toggle {
  background: none;
  font-size: 2rem;
  border: none;
  color: var(--primary);
  padding: 4px 12px;
  display: none;
  cursor: pointer;
  z-index: 105;
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(34,64,97,0.9);
  backdrop-filter: blur(3px);
  z-index: 2000;
  transform: translateX(-110%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 16px 0 rgba(34,64,97,0.12);
  padding: 32px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.5rem;
  border: none;
  background: none;
  color: #fff;
  margin-left: 20px;
  margin-bottom: 24px;
  cursor: pointer;
  z-index: 2010;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 24px;
  gap: 22px;
}
.mobile-nav a {
  color: #fff;
  background: transparent;
  font-size: 1.22rem;
  font-weight: 600;
  padding: 16px 4px 16px 8px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(255,255,255,0.12);
  color: #F3F9EF;
}
@media (max-width: 900px) {
  .mobile-menu { display: flex; }
}

/******* GENERIC LAYOUT SECTIONS *******/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--gradient-section);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  position: relative;
}
section + section { margin-top: 40px; }

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 12px;
}
@media (min-width: 950px) {
  .content-wrapper { gap: 28px; }
  section .content-wrapper { padding: 12px 18px; }
}

/***** FLEX LAYOUT HELPERS *****/
.card-container, .card-grid {
  display: flex; flex-wrap: wrap; gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 28px 22px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 220px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .card-container, .card-grid, .content-grid { flex-direction: column; }
}

/***** TESTIMONIAL CARDS *****/
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  border-left: 5px solid var(--secondary);
  transition: box-shadow 0.25s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(87,166,53,0.11);
  transform: translateY(-3px) scale(1.012);
}
.testimonial-card p {
  color: #1a2634;
  font-size: 18px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-style: italic;
  margin-bottom: 12px;
}
.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #224061;
  font-weight: 600;
  font-size: 16px;
}
.testimonial-footer span:last-child {
  color: #FFD700; /* Star yellow */
}

/***** FEATURE ITEMS *****/
.feature-item { 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/****** HERO / HEADERS ******/
h1, h2, h3, h4 {
  font-family: 'Roboto Slab', 'Open Sans', Arial, sans-serif;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.38rem;
  margin-bottom: 6px;
}
h4 {
  font-size: 1.15rem;
}

@media (max-width: 600px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.36rem; }
}
p, li, td, th {
  font-size: 1rem;
  font-weight: 400;
}
strong { font-weight: 700; color: var(--secondary); }

/***** DIVIDERS & LINES *****/
hr {
  border: 0;
  border-top: 1px solid #e3efe2;
  margin: 28px 0;
}

/**** SERVICE LISTS ****/
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.service-list > div {
  flex: 1 1 320px;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 18px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.service-list > div:hover {
  box-shadow: 0 8px 32px rgba(87,166,53,0.11);
}
.service-list h3 {
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 1.18rem;
}
.service-list p strong {
  display: inline-block;
  margin-top: 7px;
  color: var(--secondary);
}

/******* TABLES ******/
table {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-light);
  margin-bottom: 24px;
}
thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-family: 'Roboto Slab', 'Open Sans', Arial, sans-serif;
  font-size: 17px;
}
tbody tr { border-bottom: 1px solid #e3efe2; }
tbody td {
  font-size: 16px;
  color: #224061;
  background: #fff;
}

/***** FAQ / LISTS *****/
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}
.faq-list li {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  padding: 16px 16px 10px 18px;
  border-left: 3px solid var(--secondary);
  transition: box-shadow 0.16s;
}
.faq-list li strong {
  color: var(--primary);
  display: block;
  margin-bottom: 5px;
}
.faq-list li p {
  font-size: 15px;
  color: #224061;
}

/***** CONTACT INFO BLOCKS *****/
.contact-info-quick, .contact-address {
  background: var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  color: var(--primary);
  box-shadow: var(--shadow-light);
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact-info-quick strong, .contact-address strong { color: var(--secondary); }

/****** FOOTER *******/
footer {
  background: #224061;
  color: #fff;
  padding: 38px 0 24px 0;
  font-size: 15px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  justify-content: flex-start;
}
.footer-menus {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  width: 100%;
}
.footer-nav, .footer-utility {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.footer-nav a, .footer-utility a {
  color: #fff;
  opacity: 0.85;
  font-weight: 600;
  padding: 6px 0;
  transition: color 0.2s, opacity 0.2s;
  border-radius: 3px;
}
.footer-nav a:hover, .footer-utility a:hover {
  color: #57A635;
  opacity: 1;
  background: rgba(244,252,241,0.08);
}
.company-footer-info {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #c8e0c1;
  font-size: 14px;
  text-align: center;
  flex-wrap: wrap;
}
.footer-social {
  display: flex; gap: 14px; margin-top: 10px;
}
.footer-social img {
  width: 32px; height: 32px; filter: brightness(88%);
  transition: filter 0.17s;
}
.footer-social img:hover { filter: brightness(104%) drop-shadow(0 1px 4px #57A63544); }

@media (max-width: 850px) {
  .footer-menus { flex-direction: column; gap: 16px; }
}

/********* COOKIE CONSENT BANNER ********/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3200;
  width: 100vw;
  background: #fff;
  border-top: 4px solid #57A635;
  box-shadow: 0 -4px 36px 0 rgba(34,64,97,0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 16px;
  font-size: 15px;
  animation: slide-up 0.45s cubic-bezier(.7,0,.3,1);
}
@keyframes slide-up {
  0% { transform: translateY(120px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  color: var(--primary);
  font-size: 1rem;
  flex: 1 1 auto;
  line-height: 1.25;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.14s;
}
.btn-cookie-accept{
  background: var(--secondary);
  color: #fff;
}
.btn-cookie-accept:hover{
  background: #3f7a18;
}
.btn-cookie-reject{
  background: #c8e0c1;
  color: var(--primary);
}
.btn-cookie-reject:hover{
  background: #b4d6ad;
}
.btn-cookie-settings {
  background: #fff;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn-cookie-settings:hover {
  background: var(--accent);
  color: var(--secondary);
  border-color: var(--secondary);
}
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-banner__actions { width: 100%; justify-content: flex-end; margin-top: 10px; }
}

/******* COOKIE MODAL *********/
.cookie-modal {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%) translateY(130%);
  width: 95vw; max-width: 420px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 36px 0 rgba(34,64,97,0.16);
  z-index: 4000;
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(.5,0,.5,1), opacity 0.22s;
}
.cookie-modal.open {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.cookie-modal h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 7px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-modal .switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  margin-left: auto;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #c8e0c1;
  border-radius: 20px;
  transition: background 0.15s;
}
.slider:before {
  position: absolute;
  content: '';
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background: var(--primary);
  transition: transform 0.15s;
  border-radius: 50%;
}
.switch input:checked + .slider { background: #57A635; }
.switch input:checked + .slider:before {
  transform: translateX(16px);
  background: #fff;
}
.cookie-modal .cookie-btn {
  margin-top: 16px;
  width: 100%;
  padding: 12px 0;
}
.cookie-modal .category-alwayson {
  opacity: 0.7;
}
.cookie-modal .category-alwayson .switch {
  pointer-events: none; filter: grayscale(1) opacity(0.4);
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  right: 15px;
  top: 12px;
  font-size: 1.5em;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--primary);
  opacity: 0.6;
  transition: opacity 0.16s;
}
.cookie-modal .close-cookie-modal:hover { opacity: 1; }

/***** SPACING & ALIGNMENT MANDATES *****/
.card-container { gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { gap: 20px; justify-content: space-between; }
.text-image-section { gap: 30px; align-items: center; }
.testimonial-card { gap: 20px; align-items: center; padding: 20px; }
.feature-item { gap: 15px; align-items: flex-start; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/****** ACCESSIBILITY FOCUS STATES ******/
a:focus,
.button:focus,
input:focus, textarea:focus, select:focus {
  outline: 2px solid #57A635;
  outline-offset: 2px;
  z-index: 50;
  background: #ddeeda;
}

/****** RESPONSIVE LAYOUT ADJUSTMENTS ******/
@media (max-width: 600px) {
  .section { padding: 26px 6px; }
  header .container, footer .container { padding: 0 8px; }
  .testimonial-card { padding: 13px 10px; }
  .service-list > div { padding: 11px 8px; }
  .contact-info-quick, .contact-address { padding: 7px 5px; }
}

/***** ANIMATIONS & MICRO-INTERACTIONS *****/
.btn-primary, .btn-secondary, .cookie-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s, transform 0.12s;
}
.btn-primary:active, .btn-secondary:active, .cookie-btn:active {
  transform: scale(0.97);
}
.card,
.service-list > div,
.testimonial-card,
.faq-list li {
  transition: box-shadow 0.2s, transform 0.12s;
}
.card:hover,
.faq-list li:hover {
  box-shadow: 0 8px 32px rgba(87,166,53,0.09);
  transform: translateY(-3px) scale(1.012);
}

/***** PRINT SUPPORT *****/
@media print {
  header, nav, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section, .container { box-shadow: none !important; border: none !important; }
}
