/* =============================
   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;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body { line-height: 1; }
ol, ul {
  list-style: none;
  padding-left: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; border: none; display: block; }
'table { border-collapse: collapse; border-spacing: 0; }

:root {
  --primary: #334D5C;
  --secondary: #86AC41;
  --accent: #F9F7F3;
  --heading: 'Montserrat', Arial, sans-serif;
  --body: 'Open Sans', Arial, sans-serif;
  --shadow: 0 2px 16px rgba(51, 77, 92, 0.08);
  --radius: 18px;
}

body {
  font-family: var(--body);
  color: #163040;
  background: var(--accent);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* =============================
   TYPOGRAPHY - modern_bold
   ============================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading);
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1 { font-size: 2.7rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.4rem; }
h4, h5, h6 { font-size: 1.1rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
}

p, ul, ol, blockquote, address {
  font-family: var(--body);
  font-size: 1.09rem;
  font-weight: 500;
  margin-bottom: 18px;
}
p:last-child, ul:last-child, ol:last-child, blockquote:last-child { margin-bottom: 0; }
strong, b {
  font-weight: 800;
  color: var(--secondary);
}

ul, ol {
  margin-bottom: 20px;
  padding-left: 18px;
  line-height: 1.6;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1.04rem;
}
ul li:last-child, ol li:last-child { margin-bottom: 0; }
blockquote {
  border-left: 5px solid var(--secondary);
  padding-left: 20px;
  font-size: 1.13rem;
  font-style: italic;
  color: #333;
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
small {
  font-size: 0.85rem;
  color: #888;
}
address { font-style: normal; }

/* =============================
   GENERAL CONTAINERS AND LAYOUTS
   ============================= */
.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  min-width: 240px;
  flex: 1 1 220px;
  transition: transform .14s cubic-bezier(.65,.05,.36,1), box-shadow .18s;
}
.card:hover { 
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 4px 24px 0 rgba(51,77,92,0.19);
  z-index: 2;
}

.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: center;
  gap: 20px;
  padding: 20px 24px;
  background: #f7faf7;
  margin-bottom: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 650px;
  font-size: 1.03rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  margin-bottom: 32px;
  padding: 0 3px;
}

/* For visual separation */
section + section {
  margin-top: 36px;
}

/* ===============
   HERO STYLES
   =============== */
.hero {
  background: linear-gradient(100deg, var(--secondary) 0%, #bfd97b 100%);
  padding: 54px 0 44px 0;
  display: flex;
  align-items: center;
  min-height: 320px;
  margin-bottom: 60px;
}
.hero .container { }
.hero h1, .hero h1 {
  color: #fff;
}
.hero p {
  color: #f9f7f3;
  font-weight: 700;
  max-width: 630px;
  font-size: 1.2rem;
  margin-bottom: 28px;
}

/* ====================
   HEADER + NAVIGATION
   ==================== */
header {
  background: #fff;
  border-bottom: 3px solid var(--secondary);
  box-shadow: 0 3px 20px 0 rgba(51,77,92,0.04);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 12px 0;
  position: relative;
  z-index: 20;
}
.logo-block {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  min-width: 160px;
}
.logo-block img {
  max-height: 54px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin-left: 36px;
}
.main-nav a {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 13px;
  border-radius: 8px;
  transition: background .15s, color .12s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

.cta-btn {
  display: inline-block;
  margin-left: 28px;
  font-family: var(--heading);
  font-size: 1.06rem;
  font-weight: bold;
  color: #fff;
  background: var(--primary);
  border: none;
  padding: 12px 32px;
  border-radius: 25px;
  box-shadow: 0 3px 18px 0 rgba(51,77,92,.15);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background .15s, box-shadow .18s, transform .12s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0px 4px 40px 0 rgba(134, 172, 65, .19);
  transform: scale(1.06) translateY(-2px);
}

/* Hamburger menu */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #fff;
  font-size: 2rem;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 22px;
  transition: background .16s, color .16s, transform .13s;
  z-index: 42;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--primary);
  color: #fff;
  outline: none;
}

/* ================
   MOBILE MENU
   ================ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh;
  background: #fff;
  box-shadow: 0 3px 38px 0 rgba(40,60,100,.14);
  z-index: 999;
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(0.83,0,0.17,1);
  pointer-events: none;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 36px 26px 24px 36px;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-close {
  background: none;
  color: var(--secondary);
  font-size: 2.1rem;
  border: none;
  align-self: flex-end;
  margin-bottom: 5px;
  padding: 4px 15px;
  cursor: pointer;
  border-radius: 7px;
  transition: background .16s, color .15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--secondary);
  color: #fff;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 30px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  padding: 14px 4px 14px 7px;
  border-radius: 7px;
  transition: background .16s, color .15s, padding-left .13s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
  padding-left: 22px;
}

@media (max-width: 1100px) {
  .main-nav { gap: 8px; }
  .cta-btn { margin-left: 10px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 3px; font-size:0.92rem; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .cta-btn { display: none; }
  .mobile-menu-toggle { display: inline-block; }
  header {
    flex-wrap: wrap;
    flex-direction: row;
    padding: 10px 0 8px 0;
  }
  .hero {
    padding: 36px 0 36px 0;
    min-height: 160px;
  }
}

/* =======================
   FOOTER STYLES
   ======================= */
footer {
  background: var(--primary);
  color: #fff;
  padding: 39px 0 19px 0;
  border-top: 5px solid var(--secondary);
}
.footer-nav {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-nav a {
  color: #fff;
  font-family: var(--heading);
  font-weight: bold;
  font-size: 1.06rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background .13s, color .09s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.footer-contact {
  text-align: center;
  font-size: 0.98rem;
  color: #e9e9ef;
  line-height: 1.6;
  margin-top: 14px;
}
.footer-contact a {
  color: #cafe6b;
  font-family: var(--heading);
  font-weight: bold;
  transition: color .15s;
}
.footer-contact a:hover,
.footer-contact a:focus { color: #fff; }

@media (max-width: 600px) {
  .footer-nav { gap: 12px; font-size:1rem; }
  .footer-contact { font-size: 0.92rem; }
}

/* ================
   TESTIMONIALS
   ================ */
.testimonial-card {
  background: #fff;
  border: 2px solid var(--secondary);
  color: #192740;
  font-weight: bold;
  box-shadow: 0 3px 18px 0 rgba(51,77,92,0.06);
  margin-bottom: 26px;
  transition: box-shadow .16s;
}
.testimonial-card small {
  display: block;
  margin-top: 12px;
  color: var(--primary);
}
.testimonial-card blockquote {
  background: none;
  border-left: 5px solid var(--secondary);
  padding-left: 18px;
  color: #263442;
  font-size: 1.13rem;
}

/* ================
   TABLES, FORMS & MISC
   ================ */
table, th, td {
  border: 1px solid #eee;
}
table {
  width: 100%;
  margin-bottom: 27px;
  border-radius: 9px;
  overflow: hidden;
}
th, td {
  padding: 12px 18px;
  font-size: 0.98rem;
  text-align: left;
}

input, textarea, select {
  font-family: var(--body);
  font-size: 1rem;
  padding: 8px 13px;
  border: 2px solid #c3cfd7;
  border-radius: 7px;
  background: #f7fafc;
  margin-bottom: 16px;
  transition: border .14s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--secondary);
}

/* ================
   VISUAL ELEMENTS
   ================ */
hr {
  border: 0;
  height: 1px;
  background: #dce3ee;
  margin: 35px 0;
}

/* Geometric shape accent behind hero */
.hero::before {
  content: '';
  display: block;
  position: absolute;
  top: -50px; left: -120px;
  width: 160px; height: 160px;
  background: var(--primary);
  border-radius: 60% 35% 66% 41%/41% 44% 68% 56%;
  z-index: 0;
  opacity: 0.10;
}
.hero .container,
.hero .content-wrapper { position: relative; z-index: 1; }

/* =======================
   RESPONSIVE FLEX LAYOUTS
   ======================= */
@media (max-width: 980px) {
  .container { padding: 0 13px; }
}
@media (max-width: 768px) {
  .content-wrapper {
    gap: 20px;
    padding: 0;
  }
  .section {
    margin-bottom: 40px;
    padding: 22px 5px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  .feature-item { gap: 10px; }
  .testimonial-card {
    max-width: 98%;
    padding: 18px 9px;
  }
}
/* Always use flex-wrap for containers */
.card-container, .content-grid, .features { flex-wrap: wrap; }

/* ===============================
   COOKIE CONSENT BANNER & MODAL
   =============================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 44px 0 rgba(38,60,80,0.08);
  padding: 28px 15px 18px 15px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 5000;
  gap: 22px;
  font-family: var(--body);
  border-top: 3px solid var(--secondary);
  transition: transform .5s cubic-bezier(.73,.17,.33,.84), opacity .45s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(50px);
}
.cookie-banner__text {
  color: var(--primary);
  font-size: 1.07rem;
  flex: 1 1 60%;
  margin-right: 20px;
}
.cookie-banner__actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
.cookie-btn,
.cookie-btn-secondary {
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
  padding: 12px 30px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: background .18s, color .16s, box-shadow .19s, border .14s;
  box-shadow: 0 3px 12px 0 rgba(134,172,65,0.10);
  outline: none;
}
.cookie-btn {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-btn-secondary {
  background: #fff;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.cookie-btn-secondary:hover,
.cookie-btn-secondary:focus {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    padding: 20px 8px 12px 8px;
  }
  .cookie-banner__actions {
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* === Cookie Modal === */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  min-width: 340px;
  max-width: 98vw;
  width: 430px;
  padding: 38px 30px 29px 30px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 14px 80px 0 rgba(51,77,92,0.29);
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: var(--body);
  z-index: 7000;
  transform: translate(-50%, -50%) scale(1.02);
  opacity: 1;
  transition: opacity .33s cubic-bezier(.72,0,.21,1), transform .37s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.98);
}
.cookie-modal__close {
  position: absolute;
  right: 15px;
  top: 17px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--secondary);
  cursor: pointer;
  border-radius: 7px;
  padding: 0 6px;
  transition: background .14s, color .15s;
}
.cookie-modal__close:hover,
.cookie-modal__close:focus {
  background: var(--secondary);
  color: #fff;
}
.cookie-modal__title {
  font-family: var(--heading);
  font-size: 1.33rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.cookie-category-toggle {
  accent-color: var(--secondary);
  margin-top: 2px;
}
.cookie-category-label {
  font-family: var(--body);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--primary);
}
.cookie-category-desc {
  font-size: 0.96rem;
  color: #526075;
}
.cookie-category.essential .cookie-category-toggle {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-modal__actions {
  display: flex;
  gap: 13px;
  margin-top: 14px;
}
@media (max-width: 550px) {
  .cookie-modal {
    min-width: 90vw;
    width: 98vw;
    padding: 14vw 2vw 10vw 4vw;
  }
}

/* Micro-interactions */
.cta-btn, .cookie-btn, .cookie-btn-secondary, .main-nav a, .mobile-nav a, .footer-nav a, .mobile-menu-toggle, .mobile-menu-close {
  transition: background .17s, color .17s, transform .12s, box-shadow .13s;
}

/* =============
   UTILITIES
   ============= */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.text-center { text-align: center; }
.mt-1 { margin-top: 12px !important; }
.mb-1 { margin-bottom: 12px !important; }
.mt-2 { margin-top: 28px !important; }
.mb-2 { margin-bottom: 23px !important; }
.pt-1 { padding-top: 12px !important; }
.pb-1 { padding-bottom: 15px !important; }

/* ==============
   PRINT STYLES
   ============== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff; color: #111; }
  .container { max-width: none; width: 95vw; padding:0; }
  section, .section { margin-bottom: 20px; box-shadow:none; border:none; background: none; padding:0; }
}
