/* ================= CSS RESET & NORMALIZATION ================= */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #ffffff;
  color: #20426b;
}
*, *:before, *:after {
  box-sizing: inherit;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
input, textarea {
  font-family: inherit;
}

/* ================= BRAND COLOR VARIABLES ================= */
:root {
  --primary: #20426b;
  --secondary: #e3e7ec;
  --bg: #ffffff;
  --accent: #178b57;
  --danger: #b5352a;
  --neutral: #555e68;
  --shadow: 0 2px 12px 0 rgba(50,70,110,.09);
}

/* =============== TYPOGRAPHY / FONTS =============== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--primary);
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.75rem; line-height: 1.12; margin-bottom: 18px;}
h2 { font-size: 2rem; line-height: 1.17; margin-bottom: 16px;}
h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 12px;}
p, ul, li, blockquote { font-size: 1rem; line-height: 1.6; }
strong { font-weight: 600; }
blockquote {
  border-left: 6px solid var(--accent);
  margin: 0 0 10px 0;
  padding: 10px 18px;
  background: var(--secondary);
  font-style: italic;
  font-weight: 500;
  color: var(--neutral);
}

/* ============= STRUCTURED CONTAINERS & LAYOUTS ============= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  /* Add visual structure */
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
@media (min-width: 900px) {
  .content-wrapper {
    gap: 24px;
  }
}

.text-section {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section ul, .text-section li {
  margin: 0 !important;
  padding: 0;
  line-height: 1.7;
}
.text-section ul {
  margin-top: 8px;
  padding-left: 18px;
  list-style: disc;
}

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

.map-placeholder {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

/* ============= NAVIGATION & HEADER ============= */
header {
  width: 100%;
  background: var(--secondary);
  box-shadow: 0 2px 8px 0 rgba(50,70,110,.09);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img {
  height: 36px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  padding: 8px 2px;
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 2.5px solid transparent;
  transition: border-color .2s, color .2s;
  letter-spacing: 0.01em;
  border-radius: 0;
}
.main-nav a:hover:not(.cta-button), .main-nav a:focus:not(.cta-button), .main-nav a.active {
  border-bottom: 2.5px solid var(--accent);
  color: var(--accent);
}
.cta-button {
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 28px;
  border-radius: 6px;
  box-shadow: 0 1.5px 10px 0 rgba(23,139,87, 0.08);
  border: none;
  margin-left: 12px;
  transition: background 0.18s, transform 0.2s, box-shadow 0.18s;
  letter-spacing: 0.025em;
  display: inline-block;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: #0f7445;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 2px 16px 0 rgba(23,139,87, 0.18);
}

/* Hamburger / Mobile Menu */
.mobile-menu-toggle {
  display: none;
  font-size: 2.25rem;
  padding: 8px 10px;
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  margin-left: 18px;
  z-index: 102;
  transition: background 0.15s, box-shadow 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
  box-shadow: 0 2px 8px 0 rgba(23,139,87, 0.22);
}

/* Mobile Navigation - hidden on desktop */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(32,66,107,0.88);
  z-index: 1001;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transition: opacity 0.32s, transform 0.32s;
  will-change: opacity, transform;
}
.mobile-menu.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  animation: mobileMenuIn .36s cubic-bezier(.80,.09,.32,1.19);
}
@keyframes mobileMenuIn {
  from { opacity: 0; transform: translateX(30%); }
  to { opacity: 1; transform: none; }
}
.mobile-menu-close {
  background: #fff;
  color: var(--primary);
  font-size: 2rem;
  padding: 14px 20px;
  margin: 24px 35px 0 0;
  border-radius: 10px 0 0 10px;
  align-self: flex-end;
  box-shadow: 0 2px 8px 0 rgba(32,66,107, 0.13);
  transition: background .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
}
.mobile-nav {
  background: #fff;
  box-shadow: -6px 0 20px 0 rgba(32,66,107,0.12);
  height: 100vh;
  min-width: 260px;
  width: 85vw;
  max-width: 390px;
  padding: 45px 26px 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  border-radius: 18px 0 0 18px;
  /* Structured design: use angular shapes */
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.19rem;
  font-weight: 500;
  color: var(--primary);
  padding: 13px 2px 13px 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: color .13s, border-color .13s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  border-bottom: 2.5px solid var(--accent);
  background: var(--secondary);
}
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu { display: none !important; }
}

/* ============= CARDS & FEATURE GRID ============= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 18px;
}
.feature-item {
  background: #fff;
  border: 2.5px solid var(--secondary);
  box-shadow: 0 2px 22px 0 rgba(32,66,107,0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 32px 24px 26px 24px;
  min-width: 250px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  position: relative;
  z-index: 0;
  transition: box-shadow .19s, border-color .19s, transform .19s;
}
.feature-item img {
  width: 48px;
  height: 48px;
  background: var(--secondary);
  border-radius: 7px;
  margin-bottom: 7px;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 8px 32px 0 rgba(32,66,107,0.16);
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.025);
  z-index: 1;
}

/* Cards for general use */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border: 2.5px solid var(--secondary);
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(32,66,107,0.08);
  transition: box-shadow .18s, border-color .18s, transform .16s;
  padding: 24px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 28px 0 rgba(32,66,107,0.14);
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.015);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* Content grid for layout */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* ============= TESTIMONIALS ============= */
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 30px 22px 26px;
  background: #fff;
  border: 2px solid var(--secondary);
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(32,66,107,.10);
  min-width: 250px;
  margin-bottom: 20px;
  transition: box-shadow .15s, border-color .17s;
  z-index: 0;
}
.testimonial-card blockquote {
  border: none;
  background: none;
  color: #20426b;
  font-size: 1rem;
  font-style: italic;
  padding: 0 0 4px 0;
  margin-bottom: 4px;
}
.testimonial-card span{
  color: var(--accent);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.star-rating {
  font-size: 1.19rem;
  color: #e9b900;
  letter-spacing: 1.5px;
  margin-top: 3px;
}
.testimonial-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 36px 0 rgba(32,66,107,0.13);
  z-index: 2;
}

/* TESTIMONIALS SPECIFIC: Ensures readability */
.testimonial-card, .testimonial-card blockquote { color: #20426b; background: #fff; }

/* ============= BUTTONS & FORMS ============= */
button, .cta-button, input[type="submit"] {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  outline: none;
  transition: background .12s, color .12s, transform .12s, box-shadow .12s;
  cursor: pointer;
}
button:active, .cta-button:active {
  transform: scale(0.97);
}

/* ============= FOOTER ============= */
footer {
  background: var(--primary);
  color: #fff;
  padding: 36px 0 0 0;
  margin-top: 40px;
  /* geometric/structured shape hint */
  clip-path: polygon(0 0, 100% 0, 100% 95%, 0% 100%);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 14px;
  justify-content: space-between;
}
.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: 10.5px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  opacity: 0.93;
  transition: color .15s, opacity .15s;
  margin-bottom: 2px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  opacity: 1;
}
.footer-contact {
  font-size: 1rem;
  margin-bottom: 12px;
}
.footer-contact a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}
.footer-social {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
}
.footer-copyright {
  font-size: 0.97rem;
  color: #dbdbdb;
  padding: 10px 0 18px 0;
  border-top: 1.5px solid rgba(255,255,255,0.16);
}

/* ============= COOKIE CONSENT BANNER & MODAL ============= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -2px 18px 0 rgba(32,66,107,.12);
  padding: 22px 18px 22px 18px;
  z-index: 1800;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  animation: cookieBannerIn .45s cubic-bezier(.8,.09,.34,1.1);
}
@keyframes cookieBannerIn {
  from { opacity: 0; transform: translateY(80px); }
  to { opacity: 1; transform: none; }
}
.cookie-banner__text {
  font-size: 1rem;
  color: var(--primary);
  line-height: 1.55;
  text-align: center;
  max-width: 850px;
}
.cookie-banner__actions {
  display: flex;
  gap: 18px;
}
.cookie-banner__button, .cookie-banner__settings {
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  transition: background .16s, transform .11s;
}
.cookie-banner__button.reject {
  background: #b5352a;
}
.cookie-banner__settings {
  background: var(--primary);
  color: #fff;
}
.cookie-banner__button:hover, .cookie-banner__settings:hover  {
  background: #0f7445;
}
.cookie-banner__button.reject:hover {
  background: #9e2c1c;
}

/* Cookie modal popup */
.cookie-modal-bg {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(32,66,107,0.35);
  z-index: 2350;
  display: none;
  align-items: center; justify-content: center;
  transition: background .2s;
}
.cookie-modal-bg.active { display: flex; }
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: 18px;
  box-shadow: 0 8px 44px 0 rgba(32,66,107,.19);
  padding: 40px 32px 32px 32px;
  min-width: 320px;
  width: 92vw; max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalIn .28s cubic-bezier(.8,.18,.34,1.04);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.92) translateY(62px); }
  to { opacity: 1; transform: none; }
}
.cookie-modal__header {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.37rem;
  font-weight: 700;
  color: var(--primary);
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 12px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.cookie-modal__category label {
  font-size: 1rem;
}
.cookie-modal__switch {
  width: 48px;
  height: 24px;
  position: relative;
  display: inline-block;
}
.cookie-modal__switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal__slider {
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--secondary);
  border-radius: 22px;
  transition: background .13s;
}
.cookie-modal__switch input:checked + .cookie-modal__slider {
  background: var(--accent);
}
.cookie-modal__slider:before {
  content: "";
  position: absolute;
  left: 4px; top: 4px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .16s;
  box-shadow: 0 2px 8px 0 rgba(32,66,107,.08);
}
.cookie-modal__switch input:checked + .cookie-modal__slider:before {
  transform: translateX(24px);
}
.cookie-modal__category[data-essential] label {
  font-weight: 700;
  color: var(--primary);
}
.cookie-modal__category[data-essential] .cookie-modal__switch,
.cookie-modal__category[data-essential] input {
  pointer-events: none;
  opacity: 0.47;
}
.cookie-modal__actions {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal__actions button {
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  transition: background .14s;
}
.cookie-modal__actions .close-btn {
  background: var(--primary);
  color: #fff;
}
.cookie-modal__actions button:hover { background: #0f7445; }
.cookie-modal__actions .close-btn:hover { background: #16304b; }

/* ============= RESPONSIVE / MEDIA QUERIES ============= */
@media (max-width: 900px) {
  .container { max-width: 100vw; }
  .feature-grid,
  .testimonial-grid {
    gap: 18px;
  }
  .feature-item {
    min-width: 180px;
    padding: 18px 11px 15px 17px;
  }
  .testimonial-card {
    min-width: 120px;
    padding: 16px 11px 15px 13px;
  }
  .footer-nav {
    gap: 24px;
  }
}
@media (max-width: 650px) {
  header .container, .footer-nav {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .feature-grid, .testimonial-grid {
    flex-direction: column;
    gap: 18px;
  }
  .section {
    padding: 26px 7px 30px 7px;
    margin-bottom: 42px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
}
@media (max-width: 550px) {
  .footer-contact { font-size: .96rem; }
  .cookie-banner { padding: 13px 3vw; gap: 12px; }
  .cookie-modal { padding: 24px 8px 18px 8px; }
}

/* ==================== MICRO-INTERACTIONS & EFFECTS ==================== */
.cta-button,
button,
input[type="submit"] {
  transition: background .15s, color .13s, box-shadow .16s, transform .16s;
}
.cta-button:active,
button:active,
input[type="submit"]:active {
  transform: scale(0.97);
}

/* Focus states for accessibility */
a:focus, button:focus, .cta-button:focus {
  box-shadow: 0 0 0 2.5px var(--accent);
  outline: none;
  border-radius: 6px;
}

/* ================= SPECIAL: ANGULAR DECORATIVE ELEMENTS ================= */
.section {
  position: relative;
}
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: -18px; left: -14px;
  width: 46px; height: 46px;
  background: var(--secondary);
  border-radius: 13px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: 0.10;
  z-index: 0;
}
.section:nth-child(2):before { background: var(--accent); opacity: 0.06; }
.section:last-child:before { display: none; }

/* ================= UTILITY CLASSES ================= */
.text-center { text-align: center; }
.hidden { display: none !important; }

/*****************************
All flex containers & spacing rules (MANDATORY)
*****************************/
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/*****************************
PREVENT OVERLAPPING & Z-INDEX
*****************************/
.card, .feature-item, .testimonial-card {
  z-index: 1;
}
.cookie-banner,
.cookie-modal-bg,
.cookie-modal {
  z-index: 1800;
}

/*****************************
FORBIDDEN PROPERTIES
*****************************/
/* Never use display: grid, grid-*, column-count, columns, column-width, column-gap */