/* ==== 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;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F5F7F0;
  color: #184040;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: inline-block;
  border-radius: 12px;
}
a {
  color: #247F53;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #184040;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}

/* ==== BRAND COLORS ==== */
:root {
  --primary: #247F53;
  --primary-darker: #1D6D44;
  --secondary: #184040;
  --accent: #F5F7F0;
  --accent-deep: #E8ECDD;
  --warn: #FECA78;
  --error: #E46C5A;
  --neutral: #FFFFFF;
  --shadow: rgba(36, 127, 83, 0.07);
  --shadow-hover: rgba(36, 127, 83, 0.12);
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #184040;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.subtitle {
  font-size: 1.13rem;
  color: #247F53;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 500;
  margin-bottom: 18px;
}
p, li, ul {
  font-size: 1rem;
}
strong, b {
  font-weight: 600;
}

/* ==== UTILITY CLASSES ==== */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* ==== SECTIONS & LAYOUT ==== */
section {
  background: var(--neutral);
  border-radius: 24px;
  box-shadow: 0 4px 24px var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 992px) {
  section {
    margin-bottom: 40px;
    padding: 30px 10px;
    border-radius: 16px;
  }
}
@media (max-width: 640px) {
  section {
    margin-bottom: 24px;
    padding: 22px 2vw;
    border-radius: 12px;
  }
}

/* Card & Feature Grids with FLEXBOX ONLY! */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature {
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 2px 12px var(--shadow);
  padding: 26px 22px 20px 22px;
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fffaf0;
  margin-bottom: 7px;
}
.feature:hover {
  box-shadow: 0 6px 24px var(--shadow-hover);
  transform: translateY(-2px) scale(1.025);
}
@media (max-width: 768px) {
  .features-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature {
    min-width: 0;
    max-width: 100%;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--neutral);
  border-radius: 18px;
  box-shadow: 0 2px 12px var(--shadow);
  padding: 26px 22px 20px 22px;
  position: relative;
  margin-bottom: 20px;
}

.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;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 26px 18px 26px;
  background: var(--accent);
  color: var(--secondary);
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px 0 var(--shadow);
  min-width: 260px;
  max-width: 600px;
  transition: box-shadow 0.21s, transform 0.21s;
}
.testimonial-card p {
  font-size: 1.11rem;
  color: var(--secondary);
  text-align: left;
  margin-bottom: 0;
}
.testimonial-footer {
  width: 100%;
  text-align: left;
  margin-top: 6px;
  font-size: 1rem;
  color: var(--primary);
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px var(--shadow-hover);
  transform: translateY(-2px) scale(1.02);
}

/* Spacing helpers */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
}
.content-grid {
  gap: 20px;
}
.text-image-section {
  gap: 30px;
}
.testimonial-card {
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: var(--neutral);
  box-shadow: 0 2px 12px var(--shadow);
  border-radius: 0 0 18px 18px;
  margin-bottom: 28px;
  padding: 0;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 8px 20px;
  gap: 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--secondary);
  font-size: 1rem;
  border-radius: 12px;
  padding: 7px 13px;
  transition: background 0.15s, color 0.14s, box-shadow 0.2s;
}
header nav a:hover,
header nav a:focus, .footer-nav a:hover, .footer-nav a:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 1px 7px var(--shadow);
}

/* CTA PRIMARY BUTTON STYLES */
.cta.primary {
  background: var(--primary);
  color: #fff;
  border-radius: 24px;
  border: none;
  padding: 12px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.11rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 12px var(--shadow);
  margin-left: 16px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: background 0.16s, transform 0.13s, box-shadow 0.15s;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--primary-darker);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 32px var(--shadow-hover);
}

/* ==== MOBILE NAVIGATION ==== */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 18px;
  padding: 7px 12px 7px 12px;
  cursor: pointer;
  margin-left: 16px;
  transition: background 0.18s;
  z-index: 9992;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
}

/* Mobile menu overlay and slide-in */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24, 64, 64, 0.93);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-100vw);
  transition: opacity 0.34s cubic-bezier(0.62,0,0.34,1), transform 0.29s cubic-bezier(0.62,0,0.34,1);
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--error);
  color: #fff;
  border: none;
  border-radius: 18px;
  font-size: 2.4rem;
  padding: 7px 18px 7px 18px;
  margin: 20px 24px 10px 0;
  cursor: pointer;
  z-index: 10001;
  transition: background 0.2s;
  align-self: flex-end;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #c34e3c;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin: 20px 0 0 40px;
  width: 70vw;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.28rem;
  font-weight: 600;
  border-radius: 14px;
  padding: 10px 20px;
  display: inline-block;
  background: transparent;
  margin: 0;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--primary);
  color: #FFFAD3;
}

@media (max-width: 1020px) {
  header nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .cta.primary {
    margin-left: 7px;
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .cta.primary {
    margin-left: auto;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ==== LISTS & ICONS ==== */
.text-section ul,
.footer-contact ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.text-section ul li,
.footer-contact ul li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
}
.text-section ul li img,
.footer-contact ul li img {
  width: 22px;
  height: 22px;
  margin-right: 3px;
}

/* ==== FOOTER STYLES ==== */
footer {
  background: var(--accent-deep);
  box-shadow: 0 -1px 12px var(--shadow);
  border-radius: 22px 22px 0 0;
  padding: 34px 0 0 0;
  margin-top: 40px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.footer-top > a img {
  width: 62px;
  height: auto;
  min-width: 48px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 9px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 10px;
  padding: 5px 10px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, box-shadow 0.19s;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  align-items: flex-start;
  max-width: 325px;
}
.footer-contact h3 {
  font-size: 1.18rem;
  margin-bottom: 4px;
  font-weight: 600;
  color: var(--primary);
}
.footer-contact ul li a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}
.footer-legal {
  display: flex;
  flex-direction: row;
  gap: 16px;
  font-size: 0.96rem;
  margin-top: 8px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: var(--secondary);
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.14s;
}
.footer-legal a:hover, .footer-legal a:focus {
  background: var(--primary);
  color: #fff;
}
.footer-bottom {
  text-align: center;
  font-size: 1rem;
  color: #333;
  padding: 18px 0 12px 0;
  opacity: 0.82;
}
@media (max-width: 1020px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
  }
}
@media (max-width: 600px) {
  footer {
    border-radius: 12px 12px 0 0;
    padding-top: 18px;
  }
  .footer-bottom {
    font-size: 0.98rem;
    padding: 13px 0 7px 0;
  }
}

/* ==== FORMS & BUTTONS (could be extended) ==== */
button, .cta.primary {
  cursor: pointer;
  border: none;
  outline: none;
}
button:focus-visible, .cta.primary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border-radius: 12px;
  border: 1.5px solid #b8d9c6;
  background: #fff;
  padding: 12px 13px;
  margin-bottom: 18px;
  color: var(--secondary);
  box-shadow: 0 1px 4px var(--shadow);
  transition: border 0.14s;
  width: 100%;
  max-width: 410px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
}

/* ==== COOKIE CONSENT BANNER & MODAL ==== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fffbe8;
  box-shadow: 0 -4px 24px var(--shadow-hover);
  color: var(--secondary);
  z-index: 8888;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  padding: 28px 20px 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  transition: opacity 0.33s cubic-bezier(0.62,0,0.34,1);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  font-size: 1rem;
  max-width: 450px;
  line-height: 1.45;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 14px;
  font-weight: 600;
  border: none;
  margin: 0;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.17s, color 0.1s, box-shadow 0.2s;
  box-shadow: 0 2px 8px var(--shadow);
}
.cookie-btn.accept {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--primary-darker);
}
.cookie-btn.reject {
  background: var(--error);
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #b2553e;
}
.cookie-btn.settings {
  background: var(--warn);
  color: var(--secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #ffd29e;
}

/* Cookie settings modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(24, 64, 64, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 12px 48px var(--shadow-hover);
  width: 96vw;
  max-width: 430px;
  padding: 36px 28px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 8889;
  animation: cookieModalIn 0.33s cubic-bezier(0.92,0,0.34,1);
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h3 {
  font-size: 1.36rem;
  margin-bottom: 7px;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1rem;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--primary);
  width: 22px;
  height: 22px;
}
.cookie-category.essential label {
  font-weight: 600;
  color: var(--secondary);
}
.cookie-category.essential input {
  accent-color: var(--primary);
}
.btn-close-cookie-modal {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 1.7rem;
  background: transparent;
  color: var(--error);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.18s;
}
.btn-close-cookie-modal:hover, .btn-close-cookie-modal:focus {
  background: #f4dddb;
}
.cookie-modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}
@media (max-width: 540px) {
  .cookie-modal {
    padding: 22px 5vw 16px 5vw;
    min-width: 0;
  }
}

/* ==== MICRO INTERACTIONS & TRANSITIONS ==== */
section, .feature, .testimonial-card, .card, .cta.primary {
  transition: box-shadow 0.2s, background 0.13s, border 0.13s, transform 0.19s;
}

/* ==== SPECIAL SCALING & RESPONSIVE ==== */
@media (max-width: 800px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.45rem;
  }
  .cta.primary {
    font-size: 1rem;
    padding: 11px 21px;
  }
}
@media (max-width: 420px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .cta.primary {
    font-size: 0.95rem;
    padding: 10px 12px;
  }
}

/* ==== OVERRIDES FOR SPACING, FLEX, AND INTERACTIONS ==== */
/* Prevent any element from overlapping: enforced margin/padding */
section + section {
  margin-top: 0;
}
.card + .card, .testimonial-card + .testimonial-card, .feature + .feature {
  margin-top: 20px;
}
.content-wrapper > * + * { margin-top: 0; }
@media (max-width: 600px) {
  .feature,
  .testimonial-card,
  .card {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ==== PRINT FRIENDLY ==== */
@media print {
  body {
    background: #fff;
  }
  header, footer, .cookie-banner, .mobile-menu {
    display: none !important;
  }
  section {
    background: #fff;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }
}
