/* =========================
   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: #17437A;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
img, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
*:focus {
  outline: 2px solid #20B471;
  outline-offset: 2px;
}

/* =========================
   TYPOGRAPHY
   ========================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  background: #fff;
  color: #17437A;
}
h1,
h2,
h3,
h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: -0.015em;
  color: #17437A;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
p, ul, ol, li {
  font-size: 1rem;
  color: #17437A;
  line-height: 1.65;
}
strong, b {
  font-weight: 700;
}

/* Typography responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.1rem;
  }
}

/* =========================
   BRANDING COLORS
   ========================= */
:root {
  --color-primary: #17437A;
  --color-secondary: #20B471;
  --color-accent: #FFFFFF;
  --color-dark: #101820;
  --color-grey: #F4F7FA;
  --color-shadow: rgba(23, 67, 122, 0.13);
  --color-border: #E1E8F0;
  --color-warning: #E53E3E;
}

/* =========================
   CONTAINER & LAYOUT
   ========================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0; /* Content-defined gaps handled below */
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-grey);
  border-radius: 24px;
  box-shadow: 0 4px 24px var(--color-shadow);
  position: relative;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* Cards, containers, sections */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: var(--color-accent);
  border-radius: 18px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 32px 28px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 240px;
  flex: 1 1 280px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px var(--color-shadow);
  margin-bottom: 32px;
  min-width: 240px;
  max-width: 550px;
  border-left: 6px solid var(--color-secondary);
  transition: box-shadow 0.2s, border-color 0.25s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 40px var(--color-shadow);
  border-color: var(--color-primary);
}
.star-rating {
  font-size: 1.2rem;
  color: #FFA500;
  letter-spacing: 0.08em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* List styles with modern_bold icons */
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  font-size: 1.08rem;
  font-weight: 500;
}
ul li img {
  width: 28px;
  height: 28px;
}

ol {
  counter-reset: section-ol;
}
ol li {
  position: relative;
  padding-left: 32px;
}
ol li::before {
  counter-increment: section-ol;
  content: counter(section-ol) ".";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 900;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1em;
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  width: 100%;
  background: var(--color-accent);
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 0;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  padding: 22px 20px;
  position: relative;
}
header img {
  height: 42px;
  margin-right: 18px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: 8px 14px;
  border-radius: 8px;
  letter-spacing: 0.05em;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.1rem;
  background: var(--color-secondary);
  color: #fff !important;
  border: none;
  border-radius: 12px;
  padding: 13px 36px;
  margin-left: 24px;
  box-shadow: 0 4px 20px var(--color-shadow);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.15s, transform 0.15s;
  letter-spacing: 0.02em;
}
.button-primary:hover, .button-primary:focus {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px var(--color-shadow);
}
.button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 30px;
  box-shadow: 0 2px 12px var(--color-shadow);
  cursor: pointer;
  transition: background .2s, transform .13s, box-shadow .13s;
  letter-spacing: 0.01em;
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.03);
}

/* MOBILE BURGER MENU */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 10px;
  padding: 6px 16px;
  cursor: pointer;
  position: absolute;
  right: 22px;
  z-index: 102;
  transition: background 0.16s;
}
.mobile-menu-toggle:hover {
  background: var(--color-primary);
}
.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23,67,122,0.95);
  z-index: 9999;
  padding: 0;
  justify-content: flex-start;
  align-items: flex-start;
  animation: mobile-menu-slide-in 0.3s cubic-bezier(.46,.03,.52,.96) both;
}
@keyframes mobile-menu-slide-in {
  from { transform: translateX(-100vw); }
  to   { transform: translateX(0); }
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2.2rem;
  margin: 24px 0 0 20px;
  align-self: flex-start;
  cursor: pointer;
  z-index: 10002;
}
.mobile-nav {
  display: flex !important;
  flex-direction: column;
  gap: 32px;
  margin: 46px 0 0 32px;
  width: 70vw;
  min-width: 220px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  padding: 15px 0 15px 6px;
  border-left: 6px solid var(--color-secondary);
  background: none;
  border-radius: 6px 0 0 6px;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.19s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-secondary);
  background: #fff;
}

/* Hide desktop nav on mobile, show burger button */
@media (max-width: 900px) {
  header nav, header .button-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block !important;
  }
}

/* Hide mobile menu on desktop */
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =========================
   FOOTER STYLES
   ========================= */
footer {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  padding: 36px 0;
  margin-top: 72px;
  border-top: 4px solid var(--color-secondary);
}
footer p {
  color: white;
}
footer .container {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 24px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.92;
  letter-spacing: 0.015em;
  transition: color .2s, opacity .13s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
}
footer .text-section {
  color: #fff;
  font-size: 0.95rem;
  font-family: 'Roboto', Arial, sans-serif;
  gap: 10px;
  opacity: .87;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
}

/* =========================
   CTA & ACTIONS
   ========================= */
.text-section a {
  color: var(--color-secondary);
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.17s;
}
.text-section a:hover {
  color: var(--color-primary);
}

/* =========================
   MAP PLACEHOLDER
   ========================= */
.map-placeholder {
  width: 100%;
  height: 160px;
  background: repeating-linear-gradient(135deg, #E1E8F0 0 10px, #F4F7FA 10px 20px);
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin: 20px 0 32px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

/* =========================
   SPACING SYSTEM
   ========================= */
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 900px) {
  main > section {
    margin-bottom: 36px;
    padding: 28px 8px;
  }
}

.card,
.testimonial-card {
  margin-bottom: 20px;
}

/* Visual consistency: ensure minimum spacing */
.section, .card-container, .content-wrapper, .card, .testimonial-card {
  margin-bottom: 20px;
}

.card-container, .content-grid, .text-image-section, .feature-item, .testimonial-card {
  gap: 20px;
}

/* =========================
   FLEXBOX RESPONSIVENESS
   ========================= */
@media (max-width: 900px) {
  .container {
    padding: 0 8px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 2vw;
  }
  .content-wrapper, .card-container, .content-grid {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .testimonial-card, .card {
    min-width: unset;
    width: 100%;
    max-width: 100%;
  }
}

/* =========================
   EFFECTS, SHADOWS, SHAPES
   ========================= */
.section, .card, .testimonial-card {
  box-shadow: 0 4px 24px var(--color-shadow);
  border-radius: 24px;
}
.button-primary, .button-secondary {
  box-shadow: 0 4px 24px var(--color-shadow);
}

/* Slight geometric accent in hero*/
.section.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg,#fff 65%,#20B471 130%);
}
.section.hero::before {
  content: "";
  display: block;
  position: absolute;
  left: -80px; top: -60px;
  width: 170px; height: 170px;
  border-radius: 36% 64% 52% 48% / 47% 51% 49% 53%;
  background: #20B471;
  opacity: 0.17;
  z-index: 0;
}

/* =========================
   FORMS (if needed for future)
   ========================= */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
  margin-bottom: 16px;
  width: 100%;
  transition: border-color 0.19s;
  box-sizing: border-box;
  background: #fff;
}
input:focus, textarea:focus {
  border-color: #20B471;
}

/* =========================
   TABLET & MOBILE ADJUSTMENTS
   ========================= */
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
    padding: 16px 6px;
  }
  header img {
    height: 36px;
  }
  .button-primary {
    margin-left: 6px;
    padding: 10px 22px;
    font-size: 1rem;
  }
}

@media (max-width: 550px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
  .section { padding: 24px 4vw; }
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 -3px 30px var(--color-shadow), 0 0 1px #ccc;
  z-index: 11111;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  padding: 22px 4vw;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 14px 14px 0 0;
  animation: cookie-banner-on 0.5s cubic-bezier(.25,1.27,.64,1) both;
}
@keyframes cookie-banner-on {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner p {
  margin: 0;
  font-size: 1rem;
  max-width: 540px;
}
.cookie-consent-banner .cookie-btn {
  margin: 0 12px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 12px var(--color-shadow);
  transition: background 0.16s, color 0.14s, box-shadow 0.13s;
  font-size: 1rem;
}
.cookie-consent-banner .cookie-btn:hover, .cookie-consent-banner .cookie-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 8px 32px var(--color-shadow);
}
.cookie-consent-banner .cookie-settings-btn {
  background: var(--color-secondary);
  color: #fff;
  border-radius: 8px;
  padding: 10px 19px;
  font-weight: 700;
  margin-right: 12px;
}
.cookie-consent-banner .cookie-settings-btn:hover, .cookie-consent-banner .cookie-settings-btn:focus {
  background: var(--color-primary);
  color: #fff;
}

/* Cookie modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16,24,32,0.55);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: cookie-modal-back 0.2s both;
}
@keyframes cookie-modal-back {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: var(--color-primary);
  border-radius: 22px 22px 0 0;
  max-width: 420px;
  width: 100vw;
  min-height: 280px;
  padding: 34px 28px 36px 28px;
  box-shadow: 0 12px 44px var(--color-shadow);
  position: relative;
  animation: cookie-modal-in 0.3s cubic-bezier(.32,2,.55,.27) both;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@keyframes cookie-modal-in {
  from { transform: translateY(100vh); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-category input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--color-secondary);
  border-radius: 8px;
  margin: 0 8px 0 0;
}
.cookie-category .essential-label {
  font-weight: 700;
  color: var(--color-primary);
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .modal-btn {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 2px 8px var(--color-shadow);
  font-size: 1rem;
  transition: background 0.2s;
}
.cookie-modal .modal-btn:hover, .cookie-modal .modal-btn:focus {
  background: var(--color-primary);
  color: #fff;
}
.cookie-modal .close-modal {
  background: none;
  color: #888;
  border: none;
  font-size: 1.8rem;
  position: absolute;
  top: 14px; right: 18px;
  cursor: pointer;
}

/* Responsive cookie banner/modal */
@media (max-width: 550px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    font-size: 0.95rem;
    padding: 18px 2vw;
  }
  .cookie-modal {
    border-radius: 18px 18px 0 0;
    padding: 22px 10px 24px 10px;
    max-width: 98vw;
  }
}

/* =========================
   ACCESSIBILITY
   ========================= */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  background: #17437A;
  color: #fff;
  z-index: 99990;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  font-size: 1.05rem;
  border-radius: 8px;
}

/* =========================
   UTILITY CLASSES
   ========================= */
.hidden { display: none !important; }
.d-flex { display: flex !important; }
.flex-row { flex-direction: row !important; }
.flex-col { flex-direction: column !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.justify-between { justify-content: space-between !important; }
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }
.m-b-20 { margin-bottom: 20px !important; }

/* =========================
   PRINT SUPPORT (OPTIONAL)
   ========================= */
@media print {
  body, .container, header, footer {
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
  }
  nav, .button-primary, .button-secondary, .cookie-consent-banner, .cookie-modal-backdrop {
    display: none !important;
  }
}
