/* ==========================================================================
   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, 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #f7fafc;
  color: #22543D;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  overflow-x: hidden;
}
a {
  color: #397267;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #C75500;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #22543D;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  line-height: 1.15;
}
h1 { font-size: 2.4rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 600; }
h4 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 500; }
.lead {
  font-size: 1.25rem;
  color: #397267;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 20px;
}
p, li {
  font-size: 1rem;
  color: #314E40;
}
strong {
  font-weight: 700;
  color: #17412B;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   GLOBAL SOFT PASTEL PALETTE
   ========================================================================== */
:root {
  --primary: #22543D;
  --secondary: #F2F6F9;
  --accent: #F07C2B;
  --accent-dark: #C75500;
  --white: #fff;
  --card-bg: #F7FAFB;
  --pastel-green: #CFF2E5;
  --pastel-blue: #E3F3FF;
  --pastel-peach: #FFE3CA;
  --pastel-lavender: #F7E3FF;
  --pastel-yellow: #FFF8CC;
  --grey: #7D9685;
  --shadow: 0 8px 24px rgba(60, 128, 87, 0.08);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
  background: linear-gradient(180deg, var(--pastel-blue) 80%, var(--white) 100%);
  box-shadow: 0 2px 16px 0 rgba(34, 84, 61, 0.05);
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 20px 20px 16px 20px;
  position: relative;
  z-index: 100;
}
header nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #22543D;
  font-size: 1rem;
  padding: 2px 8px;
  border-radius: 5px;
  transition: background 0.17s, color 0.17s;
}
header nav a:hover, header nav a:focus {
  background: var(--pastel-peach);
  color: var(--accent-dark);
}
.cta-btn {
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  padding: 11px 26px;
  border: none;
  border-radius: 28px;
  margin-left: 16px;
  transition: background 0.15s, box-shadow 0.15s, color 0.15s;
  box-shadow: 0 3px 16px rgba(240, 124, 43, 0.08);
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--accent-dark);
  color: #FFF8CC;
  box-shadow: 0 6px 24px rgba(240, 124, 43, 0.10);
}

/* --------------------------------------------------------------------------
   Burger Menu Button (mobile)
   -------------------------------------------------------------------------- */
.mobile-menu-toggle {
  display: flex;
  background: none;
  font-size: 2.2rem;
  color: var(--primary);
  border: none;
  margin-left: 16px;
  padding: 4px 16px;
  align-items: center;
  border-radius: 12px;
  transition: background 0.18s, color 0.18s;
  z-index: 103;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--pastel-peach);
  color: var(--accent-dark);
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Mobile Menu Overlay
   -------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(243,247,255, 0.98);
  box-shadow: 0 0 40px rgba(34,84,61,0.10);
  z-index: 2004;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.19,1,.22,1);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: var(--primary);
  background: var(--pastel-peach);
  margin: 16px 24px;
  border-radius: 12px;
  align-self: flex-end;
  padding: 2px 13px;
  transition: background 0.14s, color 0.14s;
  z-index: 2010;
}
.mobile-menu-close:hover,.mobile-menu-close:focus {
  background: var(--accent);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 34px 34px 34px;
  width: 100%;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 10px 0;
  width: 100%;
  border-radius: 9px;
  transition: background 0.14s, color 0.13s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--pastel-green);
  color: var(--accent-dark);
}

/* HIDE DESKTOP NAV ON MOBILE, SHOW MOBILE MENU BUTTON */
@media (max-width: 991px) {
  header nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: linear-gradient(180deg, var(--white) 60%, var(--pastel-blue) 100%);
  padding-top: 45px;
  padding-bottom: 35px;
  border-top: 1px solid #e9f2ef;
  margin-top: 50px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #397267;
  font-size: 1rem;
  transition: color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent-dark);
  text-decoration: underline;
}
footer .contact-info {
  font-size: 0.97rem;
  color: var(--primary);
  opacity: 0.88;
}

/* =====================================================================
   MAIN LAYOUT & SPACING
   ===================================================================== */
main {
  padding-top: 35px;
  padding-bottom: 35px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.text-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}
@media (min-width: 800px) {
  .content-wrapper {
    gap: 38px;
    flex-direction: row;
    align-items: flex-start;
  }
  .text-section {
    max-width: 570px;
  }
}

/* ======================== SPACING PATTERNS ========================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  padding: 32px 22px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 10px 40px 5px rgba(60, 128, 87, 0.14);
  transform: translateY(-2px) scale(1.01);
}
.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;
    gap: 20px;
    align-items: stretch;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 20px;
  background: var(--pastel-green);
  box-shadow: 0 3px 14px 0 rgba(34,84,61,0.07);
  border-radius: 16px;
  padding: 20px;
  min-width: 240px;
  max-width: 520px;
  position: relative;
  font-size: 1.05rem;
  color: #17533C;
  transition: box-shadow 0.16s;
}
.testimonial-card:last-child {
  background: var(--pastel-yellow);
}
.testimonial-card strong, .testimonial-card span {
  display: block;
  margin-top: 12px;
  color: #22543D;
  font-size: 1.02em;
}
.testimonial-card img {
  width: 34px;
  margin-right: 8px;
}
.testimonial-card:after {
  content: '';
  display: block;
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  background: none;
  z-index: 10;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 38px 4px rgba(96, 172, 120,0.11);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 28px 22px;
  margin-bottom: 22px;
}

/* =====================================================================
   PASTEL FEATURE/CARD GRID PATTERNS
   ===================================================================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 16px;
  align-items: stretch;
}
.feature-grid li {
  flex: 1 1 220px;
  background: var(--pastel-blue);
  border-radius: 18px;
  margin-bottom: 0;
  padding: 25px 24px 22px 24px;
  box-shadow: 0 2px 10px 0 rgba(43, 84, 91, 0.08);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  transition: background 0.13s, box-shadow 0.16s;
}
.feature-grid li img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--pastel-peach);
  margin-bottom: 6px;
  box-shadow: 0 1px 5px rgba(48, 103, 80, 0.1);
}
.feature-grid li h3 {
  font-size: 1.11rem;
  color: var(--primary);
  margin-bottom: 3px;
}
.feature-grid li p {
  font-size: 0.98rem;
  color: #397267;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  background: var(--pastel-lavender);
  box-shadow: 0 8px 24px 0 rgba(120, 108, 180,0.08);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  list-style: none;
  margin-bottom: 10px;
}
.service-list li {
  background: var(--pastel-peach);
  border-radius: 15px;
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 210px;
  box-shadow: var(--shadow);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  transition: box-shadow 0.16s, background 0.14s;
}
.service-list li:hover, .service-list li:focus-within {
  box-shadow: 0 8px 32px rgba(207, 86, 17, 0.11);
  background: var(--pastel-yellow);
}

.guide-list, .blog-list, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}
.guide-list li, .blog-list li, .faq-list li {
  background: var(--pastel-lavender);
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(43, 84, 91, 0.07);
  padding: 22px 18px;
  flex: 1 1 200px;
  min-width: 200px;
  margin-bottom: 0;
  transition: background 0.14s, box-shadow 0.14s;
}
.guide-list li:hover, .blog-list li:hover, .faq-list li:hover {
  background: var(--pastel-green);
  box-shadow: 0 8px 24px 0 rgba(120, 180, 132,0.09);
}

.popular-tags ul, .guide-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0;
  margin-top: 8px;
}
.popular-tags li, .guide-categories li {
  background: var(--pastel-yellow);
  color: var(--primary);
  border-radius: 11px;
  padding: 5px 14px;
  font-size: .98rem;
  font-family: 'Montserrat', Arial, sans-serif;
}

.company-info ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.company-info li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
  color: var(--primary);
}
.company-info li img {
  width: 23px;
  opacity: 0.8;
}

.cta-message {
  background: var(--pastel-yellow);
  color: var(--primary);
  font-size: 1.12rem;
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: 0 1px 7px rgba(246, 211, 85, 0.12);
}

/* =====================================================================
   RESPONSIVE SETTINGS
   ===================================================================== */
@media (max-width: 991px) {
  .footer .container {
    flex-direction: column;
    gap: 24px;
  }
  .feature-grid, .service-list, .content-grid, .card-container, .guide-list, .blog-list, .faq-list {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  header .container {
    gap: 9px;
    flex-wrap: wrap;
  }
  .feature-grid li, .service-list li,
  .guide-list li, .blog-list li, .faq-list li {
    min-width: 0;
    width: 100%;
  }
  .card, .feature-item {
    padding: 18px 12px;
  }
  .testimonial-card {
    padding: 14px 10px;
    font-size: 0.98rem;
  }
  main {
    padding-top: 18px;
    padding-bottom: 15px;
  }
  .section {
    margin-bottom: 36px;
    padding: 20px 6px;
  }
}
@media (max-width: 520px) {
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.05rem;
  }
}

/* =======================================================================
   MICROINTERACTIONS & ANIMATIONS
   ======================================================================= */
.cta-btn, .feature-grid li, .service-list li, .card, .testimonial-card, .guide-list li, .blog-list li, .faq-list li {
  transition: box-shadow 0.16s, background 0.13s, transform 0.16s, color 0.14s;
}
.cta-btn:active {
  transform: scale(0.97);
}
.card:active, .feature-grid li:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* =======================================================================
   COOKIE CONSENT BANNER (FIXED BOTTOM BAR & MODAL)
   ======================================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 3004;
  background: linear-gradient(90deg, var(--pastel-peach) 88%, var(--pastel-blue) 100%);
  box-shadow: 0 -2px 18px rgba(34,84,61,0.09);
  color: var(--primary);
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px;
  justify-content: center;
  padding: 19px 14px 19px 16px;
  transition: transform 0.35s cubic-bezier(.28,1.19,.58,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-msg {
  flex: 1 1 240px;
  max-width: 560px;
}
.cookie-banner .cookie-btn {
  background: var(--accent);
  color: #fff;
  border-radius: 19px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 8px 20px;
  margin-left: 9px;
  margin-right: 5px;
  transition: background 0.14s, color 0.14s;
  box-shadow: 0 1px 9px 0 rgba(240, 124, 43, 0.10);
}
.cookie-banner .cookie-btn.cookie-settings {
  background: var(--pastel-blue);
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: none;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--accent-dark);
  color: #FFF8CC;
}
.cookie-banner .cookie-btn.cookie-settings:hover, .cookie-banner .cookie-btn.cookie-settings:focus {
  background: var(--pastel-green);
  color: var(--accent-dark);
}
@media (max-width: 540px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 4px 16px 8px;
    gap: 9px;
  }
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -56%) scale(1);
  background: var(--white);
  box-shadow: 0 8px 60px 0 rgba(34, 84, 61,0.20);
  border-radius: 28px;
  z-index: 4050;
  min-width: 300px;
  max-width: 98vw;
  padding: 38px 30px 23px 34px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.27s, transform 0.32s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -45%) scale(0.92);
}
.cookie-modal h2 {
  font-size: 1.23rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.cookie-modal .cookie-close {
  position: absolute;
  right: 28px;
  top: 18px;
  background: var(--pastel-peach);
  color: var(--primary);
  border-radius: 12px;
  font-size: 1.7rem;
  padding: 2px 12px;
  border: none;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal .cookie-close:hover,.cookie-modal .cookie-close:focus {
  background: var(--accent);
  color: var(--white);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category input[type='checkbox'] {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid var(--primary);
  accent-color: var(--accent);
  margin-right: 6px;
}
.cookie-category .cookie-label {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--primary);
}
.cookie-category .essential {
  font-weight: 600;
  color: var(--grey);
  font-size: .98em;
}
.cookie-modal .cookie-btn-row {
  display: flex;
  flex-direction: row;
  gap: 11px;
  justify-content: flex-end;
}
@media (max-width: 520px) {
  .cookie-modal {
    padding: 22px 9px 17px 13px;
    min-width: 0;
    width: 98vw;
  }
  .cookie-modal .cookie-close {
    right: 9px;
    top: 8px;
  }
}

/* =======================================================================
   BRANDS & ACCENT STYLES
   ======================================================================= */
::-webkit-scrollbar {
  width: 7px;
  background: #F2F6F9;
}
::-webkit-scrollbar-thumb {
  background: var(--pastel-green);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--pastel-peach);
}

/* =======================================================================
   GENERAL HELPERS
   ======================================================================= */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 2px !important; }
.mt-8 { margin-top: 8px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-20 { margin-top: 20px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }

/* =======================================================================
   PRINT
   ======================================================================= */
@media print {
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  header, footer, .cookie-banner, .mobile-menu {
    display: none !important;
  }
}
