/* 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.5;
  background: #F5F3EE;
  color: #222;
  min-height: 100vh;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *:before, *:after {
  box-sizing: inherit;
}

a {
  color: #27506B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #5C823E;
  outline: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

ul, ol {
  margin-left: 24px;
  margin-bottom: 24px;
}
li {
  margin-bottom: 12px;
  font-size: 1rem;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TYPOGRAPHY ---------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  color: #27506B;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.125rem;
}
p {
  margin-bottom: 18px;
  color: #23313C;
  font-size: 1.08rem;
}
strong {
  font-weight: 600;
  color: #27506B;
}

/* BUTTONS AND CTA ---------------------------------------------------- */
.cta, .cta-nav, .secondary-cta, .mobile-nav a.cta {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  background: #27506B;
  color: #fff;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(39,80,107,0.11);
  border: none;
  cursor: pointer;
  text-align: center;
  min-width: 160px;
  transition: background 0.25s, color 0.2s, box-shadow 0.25s;
}
.cta:hover, .cta:focus, .cta-nav:hover, .cta-nav:focus, .secondary-cta:hover, .secondary-cta:focus {
  background: #5C823E;
  color: #fff;
  box-shadow: 0 6px 24px rgba(92,130,62,0.19);
}
.secondary-cta {
  background: #fff;
  color: #27506B;
  border: 2px solid #27506B;
  margin-top: 20px;
  padding: 12px 30px;
}
.secondary-cta:hover, .secondary-cta:focus {
  background: #5C823E;
  color: #fff;
  border-color: #5C823E;
}

/* NAVIGATION ---------------------------------------------------- */
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  background: #fff;
  padding: 18px 20px;
  box-shadow: 0 3px 16px 0 rgba(39,80,107,0.07);
  position: relative;
  z-index: 100;
}
.main-nav img {
  height: 46px;
  margin-right: 18px;
}
.main-nav a {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: #27506B;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F5F3EE;
  color: #5C823E;
}
.main-nav .cta-nav {
  background: #5C823E;
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 22px;
  margin-left: 8px;
}
.main-nav .cta-nav:hover, .main-nav .cta-nav:focus {
  background: #27506B;
  color: #fff;
}

/* Mobile Menu Burger
------------------------------------ */
.mobile-menu-toggle {
  display: none;
  background: #27506B;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  padding: 10px 16px;
  margin-left: auto;
  cursor: pointer;
  z-index: 120;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #5C823E;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 32px rgba(39,80,107,0.12);
  z-index: 300;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.63,.09,.27,.95);
  padding: 32px 28px 24px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #27506B;
  margin-bottom: 24px;
  padding: 0 12px;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #5C823E;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Lato', sans-serif;
  font-size: 1.18rem;
  color: #27506B;
  font-weight: 600;
  padding: 14px 6px;
  border-radius: 7px;
  background: none;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F5F3EE;
  color: #5C823E;
}

@media (max-width: 1060px) {
  .main-nav {
    gap: 17px;
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 880px) {
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  .main-nav a:not(:first-child):not(.cta-nav) {
    display: none;
  }
  .main-nav {
    flex-wrap: nowrap;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  .main-nav img {
    height: 36px;
  }
  .mobile-menu {
    padding: 26px 14px 12px 14px;
  }
}

/* =============== LAYOUT SECTIONS (SPACING & FLEX) ===================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(39,80,107,0.09);
  padding: 28px 18px 28px 22px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 7px 30px rgba(92,130,62,0.13);
  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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 12px rgba(39,80,107,0.10);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 680px;
  transition: box-shadow 0.19s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 7px 24px rgba(39,80,107,0.16);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-meta {
  margin-left: auto;
  font-size: 1rem;
  color: #27506B;
  font-weight: 600;
  opacity: 0.8;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ================ HERO & MAIN SECTIONS ========================= */
.hero {
  display: flex;
  align-items: center;
  min-height: 320px;
  padding: 56px 0;
  background: #27506B;
  color: #fff;
}
.hero h1,
.hero h2,
.hero p {
  color: #fff;
}
.hero .container {
  width: 100%;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.hero .cta {
  margin-top: 28px;
  background: #5C823E;
}
.hero .cta:hover, .hero .cta:focus {
  background: #fff;
  color: #5C823E;
}

/* ================ FEATURES, ABOUT, SERVICES =================== */
.features {
  background: #E7ECF0;
  border-radius: 0 0 36px 36px;
  margin-bottom: 60px;
  padding: 56px 0 40px 0;
}
.features .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.features ul {
  margin: 0 0 0 24px;
  padding: 0;
  list-style: disc inside;
}
.services {
  background: #F5F3EE;
  padding: 52px 0;
  margin-bottom: 60px;
}
.services .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.services ul {
  margin: 0 0 0 24px;
  padding: 0;
  list-style-type: disc;
}
.services table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 24px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(39,80,107,0.08);
}
.services th, .services td {
  text-align: left;
  padding: 14px 16px;
  font-size: 1rem;
}
.services th {
  background: #86B46C;
  color: #fff;
  font-weight: 600;
}
.services tr:not(:last-child) td {
  border-bottom: 1px solid #E7ECF0;
}

/* ================ CTA SECTIONS ==================== */
.cta.section, section.cta {
  background: #27506B;
  border-radius: 20px;
  color: #fff;
  text-align: center;
  margin: 60px 0;
}
.cta .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta h2 {
  color: #fff;
}

/* ================ CONTACT SECTION ==================== */
.contact {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 16px rgba(39,80,107,0.07);
  margin-bottom: 60px;
  padding: 48px 0;
}
.contact .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.contact-data {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 1rem;
  color: #23313C;
  margin: 18px 0 16px 0;
}

@media (max-width: 1020px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
}
@media (max-width: 750px) {
  .feature-item,
  .about .content-wrapper,
  .services .content-wrapper,
  .features .content-wrapper,
  .contact .content-wrapper,
  .cta .content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 680px) {
  .section, .features, .services, .contact {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
}

/* ================ TESTIMONIALS ================== */
.testimonials {
  background: #E7ECF0;
  border-radius: 28px;
  margin-bottom: 60px;
  padding: 40px 0 44px 0;
}
.testimonials .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonials h2 {
  color: #27506B;
  margin-bottom: 16px;
}
.testimonial-card {
  background: #fff;
  color: #222;
  box-shadow: 0 1px 12px rgba(39,80,107,0.10);
  border-radius: 16px;
  padding: 22px 18px 22px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.17s;
}
.testimonial-card:hover {
  box-shadow: 0 5px 30px rgba(92,130,62,0.15);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #23313C;
}
.testimonial-meta {
  font-size: 0.99rem;
  color: #27506B;
  font-weight: 600;
  margin-top: 10px;
  opacity: 0.92;
}

/* ================ FOOTER ================== */
footer {
  background: #27506B;
  color: #fff;
  padding: 40px 12px 28px 12px;
  margin-top: 60px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #fff;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 1rem;
  transition: background 0.17s, color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #5C823E;
  color: #fff;
}
.footer-logo {
  display: flex;
  justify-content: center;
  margin: 8px 0 18px 0;
}
.footer-logo img {
  max-height: 56px;
}
.footer-contact {
  text-align: center;
  color: #E7ECF0;
  font-size: 0.98rem;
  margin-top: 6px;
  line-height: 1.7;
}
.footer-contact a {
  color: #B3D99A;
  text-decoration: underline;
  word-break: break-all;
}
.footer-contact a:hover,
.footer-contact a:focus {
  color: #fff;
}

@media (max-width: 768px) {
  .main-nav {
    padding: 13px 8px;
  }
  .hero {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .hero h1 {
    font-size: 1.65rem;
  }
  .section, .features, .services, .contact {
    padding: 22px 6px;
    border-radius: 14px;
    margin-bottom: 28px;
  }
  .testimonials {
    padding: 22px 0 30px 0;
  }
  .testimonial-card {
    padding: 13px 7px 13px 13px;
    min-width: 0;
    max-width: 98vw;
  }
  .footer-logo img {
    max-height: 36px;
  }
  .footer-nav {
    gap: 14px;
  }
}

/* ================ COOKIE CONSENT BANNER ================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #23313C;
  color: #fff;
  box-shadow: 0 -2px 18px rgba(39,80,107,0.12);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 24px;
  gap: 14px;
  font-size: 1rem;
  transition: transform 0.25s;
}
.cookie-banner.hidden {
  transform: translateY(100%);
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 8px;
}
.cookie-btn {
  background: #5C823E;
  color: #fff;
  padding: 11px 25px;
  border: none;
  border-radius: 22px;
  font-family: 'Montserrat', 'Lato', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  cursor: pointer;
  transition: background 0.19s, color 0.17s, box-shadow 0.15s;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: #86B46C;
  color: #fff;
  box-shadow: 0 2px 12px rgba(92,130,62,0.16);
}
.cookie-btn.settings {
  background: #fff;
  color: #5C823E;
  border: 2px solid #5C823E;
  margin-left: 8px;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #5C823E;
  color: #fff;
}

/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%) scale(0.98);
  background: #fff;
  color: #23313C;
  box-shadow: 0 7px 32px rgba(39,80,107,0.17);
  border-radius: 18px;
  z-index: 2300;
  padding: 36px 22px 28px 22px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 23px;
  opacity: 1;
  transition: opacity 0.22s, transform 0.24s;
}
.cookie-modal.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.9);
}
.cookie-modal h3 {
  font-size: 1.1rem;
  color: #27506B;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.01rem;
  margin-bottom: 11px;
  justify-content: flex-start;
}
.cookie-category input[type=checkbox]:disabled + label {
  color: #b9b9b9;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
}

.cookie-modal .modal-close {
  position: absolute;
  top: 17px;
  right: 23px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #27506B;
  cursor: pointer;
  transition: color 0.17s, background 0.12s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  color: #5C823E;
}

@media (max-width: 430px) {
  .cookie-modal {
    padding: 23px 6px 14px 6px;
    min-width: 0;
    font-size: 0.96rem;
  }
}

/* ========== RESPONSIVE & ACCESSIBLE FLEX LAYOUTS ========== */
@media (max-width: 1050px) {
  .text-image-section,
  .content-grid {
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .card-container {
    flex-direction: column;
    gap: 13px;
  }
}

/* INTERACTIONS & ACCESSIBILITY ------------------------- */
button, input[type="button"], input[type="submit"], .cta, .cta-nav, .secondary-cta, .cookie-btn {
  user-select: none;
}
button:focus,
input:focus,
a:focus {
  outline: 2px solid #86B46C;
  outline-offset: 2px;
}

::-webkit-input-placeholder { color: #9daebf; opacity: 1; }
::placeholder { color: #9daebf; opacity: 1; }

/* ============= MISC: Divider, Spacing, Scrollbar ============== */
hr {
  border: 0;
  border-top: 1px solid #E7ECF0;
  margin: 32px 0 28px 0;
}
::-webkit-scrollbar {
  width: 8px;
  background: #E7ECF0;
}
::-webkit-scrollbar-thumb {
  background: #d6dee6;
  border-radius: 6px;
}

/* ============= PRINT VARIANTS (NO BG/SHADOWS) ====================== */
@media print {
  body, .hero, .features, .services, .about, .contact, .testimonials, footer {
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
  }
  .main-nav, .mobile-menu, .footer-nav, .footer-logo, .cookie-banner, .cookie-modal {
    display: none !important;
  }
}

/* ========== END ========== */
