/* ------------------------- CSS RESET & BASE ------------------------- */
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.6;
  font-family: 'Roboto', serif;
  color: #222;
  background: #F5F7FA;
  min-height: 100vh;
  font-size: 16px;
}
ul, ol {
  margin-left: 1.5em;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #1A3559;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #558C44;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* -------------------- TYPOGRAPHY & HEADING SCALE -------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', serif;
  color: #1A3559;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 26px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p {
  margin-bottom: 18px;
  color: #2A3240;
}
strong {
  font-weight: 600;
  color: #222;
}

/* --------------------------- LAYOUT CONTAINER ----------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.05rem;
  }
}

/* ------------------------------- HEADER ----------------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #e3e6ea;
  box-shadow: 0 4px 16px 0 rgba(20, 40, 94, 0.02);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 82px;
}
	header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', serif;
  font-weight: 500;
  font-size: 1rem;
  color: #1A3559;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
header nav a:hover, header nav a:focus {
  color: #558C44;
  border-bottom: 2px solid #558C44;
}
.cta-primary {
  background: #1A3559;
  color: #fff !important;
  border-radius: 24px;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 10px 30px 10px 30px;
  margin-left: 12px;
  transition: background 0.22s, color 0.22s, box-shadow 0.18s;
  border: none;
  box-shadow: 0 2px 16px 0 rgba(26, 53, 89, 0.08);
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
.cta-primary:hover, .cta-primary:focus {
  background: #558C44;
  color: #fff;
  box-shadow: 0 5px 24px 0 rgba(85, 140, 68, 0.14);
  outline: none;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 20px;
}

/* Hide hamburger on desktop */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 1020px) {
  header .container {
    gap: 12px;
  }
  header nav {
    gap: 14px;
  }
}
@media (max-width: 860px) {
  header nav a {
    font-size: 0.95rem;
    padding: 8px 0;
  }
  .cta-primary {
    margin-left: 6px;
    font-size: 0.95rem;
    padding: 9px 19px;
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    font-size: 2rem;
    background: none;
    border: none;
    color: #1A3559;
    align-items: center;
    cursor: pointer;
    margin-left: auto;
    z-index: 1201;
    padding: 6px 12px;
    transition: background 0.18s;
    border-radius: 50%;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #E4E7ED;
    outline: none;
  }
  header .container {
    height: 62px;
    padding: 0 4px;
  }
  header img {
    height: 38px;
  }
}

/* ------------------------ MOBILE MENU (OVERLAY) ----------------------- */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26, 53, 89, 0.95);
  color: #fff;
  z-index: 1200;
  transform: translateX(100vw);
  transition: transform 0.42s cubic-bezier(.4,.9,.45,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #fff;
  align-self: flex-end;
  margin: 22px 20px 8px 0;
  cursor: pointer;
  z-index: 1250;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F5F7FA;
  background: #558C44;
  border-radius: 50%;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100vw;
  margin-top: 10vh;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.18s, background 0.18s;
  padding: 10px 20px 10px 0;
  border-radius: 0 24px 24px 0;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #558C44;
  color: #fff;
  outline: none;
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --------------------------------- FOOTER --------------------------------- */
footer {
  background: #1A3559;
  color: #F5F7FA;
  padding: 54px 0 0 0;
  border-top: 1px solid #e1e5ec;
  margin-top: 56px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 34px;
  align-items: flex-start;
}
footer img {
  height: 44px;
  width: auto;
  margin-bottom: 12px;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 5px;
}
footer nav a {
  color: #F5F7FA;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  opacity: 0.95;
  padding-bottom: 2px;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #558C44;
  text-decoration: underline;
}
.footer-contact p {
  color: #F5F7FA;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  margin-bottom: 6px;
}
.footer-links {
  display: flex;
  gap: 20px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #DDE5F7;
  font-size: 0.97rem;
  opacity: 0.9;
  transition: color 0.15s, text-decoration 0.15s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #558C44;
  text-decoration: underline;
  outline: none;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F7FA;
  border-radius: 40%;
  width: 38px;
  height: 38px;
  transition: background 0.16s;
}
.footer-social a:hover, .footer-social a:focus {
  background: #558C44;
}
.copyright {
  color: #DDE5F7;
  opacity: 0.67;
  font-size: 0.92rem;
  margin: 0 0 30px 0;
}
@media (max-width: 768px) {
  footer {
    padding: 32px 0 0 0;
    margin-top: 40px;
  }
  footer img {
    height: 32px;
  }
  .footer-links, .footer-contact p, .copyright {
    font-size: 0.93rem;
  }
}

/* ------------------------ MAIN & SECTIONS ------------------------ */
main {
  width: 100%;
  min-height: 60vh;
  background: #F5F7FA;
}
section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px 0 rgba(26, 53, 89, 0.05);
  margin-bottom: 60px;
  padding: 40px 20px;
  transition: box-shadow 0.2s;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 38px;
    padding: 22px 7px;
  }
}

/* ------------------- FLEXBOX CONTAINER PATTERNS ------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(26, 53, 89, 0.09);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(26,53,89, 0.16);
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F5F7FA;
  color: #1A3559;
  border-left: 5px solid #558C44;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px 0 rgba(26,53,89, 0.08);
  position: relative;
  flex-direction: column;
  max-width: 680px;
}
.testimonial-card p {
  font-size: 1.08rem;
  font-style: italic;
  color: #2A3240;
  margin-bottom: 7px;
}
.testimonial-card span {
  font-family: 'Montserrat', serif;
  font-size: 0.97rem;
  color: #23406b;
  opacity: 0.83;
  align-self: flex-end;
}
@media (max-width: 600px) {
  .testimonial-card {
    padding: 14px 10px;
    font-size: 0.94rem;
    max-width: 99vw;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ---------------------- HERO & SPECIAL SECTIONS -------------------- */
.hero {
  background: linear-gradient(100deg, #F5F7FA 80%, #558C44 120%);
  padding-top: 64px;
  padding-bottom: 64px;
  margin-bottom: 56px;
  min-height: 270px;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 4px 28px 0 rgba(26,53,89, 0.08);
}
.hero .container {
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  color: #1A3559;
  font-size: 2.3rem;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.13rem;
  color: #333941;
  margin-bottom: 30px;
}
.hero .cta-primary {
  margin: 0;
  font-size: 1.1rem;
  padding: 12px 32px;
}
@media (max-width: 768px) {
  .hero {
    padding-top: 32px;
    padding-bottom: 28px;
    margin-bottom: 32px;
    border-radius: 0 0 14px 14px;
  }
}

/* -------------- FEATURES SECTION (Multiple .feature-grid) ------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 38px 24px;
  margin-top: 18px;
  align-items: flex-start;
}
.feature-icon {
  flex: 0 0 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.feature-description {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 4px;
  min-width: 180px;
  max-width: 340px;
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 18px 18px;
  }
  .feature-description {
    max-width: 100vw;
  }
}
@media (max-width: 700px) {
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-icon, .feature-description {
    min-width: 0;
    max-width: 100vw;
  }
}

/* -------------------------- TEXT-SECTION & ADDRESS  --------------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 20px;
  font-size: 1.05rem;
}
address {
  font-style: normal;
  font-size: 1.04rem;
  color: #1A3559;
  margin-bottom: 10px;
  background: #F5F7FA;
  padding: 10px 13px;
  border-radius: 8px;
  box-shadow: 0 2px 10px 0 rgba(26,53,89,0.04);
}

/* --------------------------------- LISTS & OL ---------------------- */
ul, ol {
  margin-bottom: 18px;
}
ul li, ol li {
  color: #222;
  font-size: 1.03rem;
  margin-bottom: 10px;
  list-style-position: outside;
  line-height: 1.5;
}
ol {
  padding-left: 22px;
}
ul img {
  margin-right: 9px;
  vertical-align: baseline;
}

/* --------------------------------- BUTTONS ------------------------- */
button, [type="button"], [role="button"] {
  font-family: 'Montserrat', serif;
  cursor: pointer;
  border: none;
  border-radius: 24px;
  background: #1A3559;
  color: #fff;
  letter-spacing: 0.01em;
  font-size: 1rem;
  padding: 11px 32px;
  transition: background 0.22s, box-shadow 0.2s, color 0.18s;
}
button:hover, button:focus {
  background: #558C44;
  color: #fff;
  box-shadow: 0 5px 16px rgba(85, 140, 68, 0.11);
  outline: none;
}

/* --------------------------- COOKIE CONSENT BANNER ---------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 1600;
  background: #fff;
  border-top: 1.5px solid #dde5f7;
  box-shadow: 0 -2px 16px 0 rgba(26,53,89,0.10);
  padding: 24px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  transition: transform 0.38s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.25s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.closed {
  opacity: 0;
  transform: translateY(130%);
  pointer-events: none;
}
.cookie-banner .cookie-text {
  color: #1A3559;
  font-size: 1rem;
  max-width: 500px;
  margin-right: 12px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner button,.cookie-banner .button {
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 22px;
  background: #1A3559;
  color: #fff;
  font-family: 'Montserrat', serif;
  transition: background 0.18s, color 0.18s, box-shadow 0.17s;
  border: none;
  margin-right: 2px;
}
.cookie-banner button:hover,.cookie-banner .button:focus {
  background: #558C44;
  outline: none;
}
.cookie-banner .button-settings {
  background: #558C44;
  color: #fff;
}
.cookie-banner .button-settings:hover, .cookie-banner .button-settings:focus {
  background: #1A3559;
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 3px;
  }
  .cookie-banner .cookie-text {
    margin-right: 0;
    font-size: 0.97rem;
  }
}

/* -------- COOKIE MODAL PREFERENCES --------- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(26,53,89,.67);
  z-index: 1700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.3s;
}
.cookie-modal.closed {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-dialog {
  background: #fff;
  min-width: 300px;
  max-width: 96vw;
  border-radius: 12px;
  box-shadow: 0 8px 40px 0 rgba(26,53,89,0.14);
  padding: 36px 34px 32px 34px;
  color: #1A3559;
  font-family: 'Montserrat', serif;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
@media (max-width: 600px) {
  .cookie-modal-dialog {
    padding: 18px 8px 16px 8px;
    min-width: 0;
  }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 15px;
  top: 12px;
  background: none;
  color: #1A3559;
  font-size: 1.7rem;
  cursor: pointer;
  border: none;
  transition: color 0.18s, background 0.18s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #558C44;
  background: #E4E7ED;
  border-radius: 50%;
  outline: none;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #dde5f7;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label {
  font-family: 'Roboto', serif;
  font-weight: 500;
  font-size: 1.07rem;
  color: #222;
}
.cookie-category input[type="checkbox"] {
  accent-color: #558C44;
  width: 20px;
  height: 20px;
}
.cookie-category .category-description {
  font-size: 0.97rem;
  color: #2A3240;
  margin-left: 6px;
}
.cookie-category.essential label {
  color: #aaa;
  font-style: italic;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 22px;
}
.cookie-modal .modal-actions button {
  padding: 8px 22px;
}

/* ----------------------- FORMS & INPUTS (not present) --------------- */
input, textarea, select {
  font-family: 'Roboto', serif;
  border: 1px solid #dde5f7;
  border-radius: 7px;
  padding: 8px 12px;
  outline: none;
  font-size: 1rem;
  margin-bottom: 14px;
  background: #F5F7FA;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #558C44;
  box-shadow: 0 2px 10px 0 rgba(85,140,68,0.09);
}

/* --------------------- ANIMATIONS & MICRO-INTERACTIONS -------------- */
.card, section, .testimonial-card, .feature-description, .feature-icon {
  transition: box-shadow 0.19s, background 0.22s, transform 0.14s;
}
.card:hover, .testimonial-card:hover, section:hover {
  box-shadow: 0 8px 36px 0 rgba(26, 53, 89, 0.15);
  transform: translateY(-3px)
}
.cta-primary:active, button:active {
  transform: scale(0.96);
}

/* -------------------- GENERAL RESPONSIVE UTILITY -------------------- */
@media (max-width: 600px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 10px;
  }
}

/* -------------------- EXTRAS & ACCESSIBILITY -------------------- */
:focus {
  outline: 2px solid #558C44;
  outline-offset: 2px;
}

/* Visually hide for accessibility */
.sr-only {
  position: absolute;
  left: -2000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* -------------- FIX: Prevent overlapping, ensure spacing -------------- */
section + section {
  margin-top: 0;
}
.card + .card, .testimonial-card + .testimonial-card {
  margin-top: 24px;
}
.content-wrapper > * + * {
  margin-top: 16px;
}

/* ----------------------- PRINT STYLES ----------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  section {
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 18px;
  }
}
