/* --- 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,
main, 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 {
  height: 100%;
  scroll-behavior: smooth;
  background: #F8F8F8;
}
body {
  min-height: 100vh;
  line-height: 1.5;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: #212529;
  background: #F8F8F8;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a { color: #28527A; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: #5CB85C; text-decoration: underline; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Custom Properties (fallbacks provided) --- */
:root {
  --color-primary: #28527A;
  --color-secondary: #5CB85C;
  --color-accent: #F8F8F8;
  --color-dark: #212529;
  --color-light: #fff;
  --color-contrast: #212529;
  --shadow-md: 0 2px 16px rgba(40,82,122,0.10);
  --shadow-lg: 0 6px 24px rgba(40,82,122,0.14);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 6px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display, Montserrat, Arial, sans-serif);
  font-weight: 900;
  line-height: 1.18;
  color: var(--color-primary, #28527A);
}
h1 { font-size: 2.5rem; margin-bottom: 16px; letter-spacing: -1px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; }
p, ul, ol, li, span, strong, em {
  font-family: var(--font-body, 'Open Sans', Arial, sans-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-dark, #212529);
}
strong { font-weight: 700; color: var(--color-primary, #28527A); }
.subheadline {
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--color-secondary, #5CB85C);
}

/* --- Lists --- */
ul, ol {
  margin-left: 1.25em;
  margin-bottom: 24px;
  padding-left: 0;
}
ul li, ol li { margin-bottom: 12px; }
ul li strong, ol li strong { font-family: var(--font-display); font-weight: 700; font-size: 1.07em; }

/* --- Containers & Sections --- */
.container {
  width: 100%;
  max-width: 1110px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent, #F8F8F8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cta {
  align-items: center;
  background: var(--color-primary, #28527A);
  color: var(--color-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.cta h2, .cta p { color: var(--color-light); }

/* --- Header & Navigation --- */
header { background: var(--color-light, #fff); box-shadow: 0 1px 8px rgba(40,82,122,0.06); }
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 20px;
  gap: 20px;
}
header nav img {
  height: 44px;
  width: auto;
  margin-right: 16px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-primary, #28527A);
  transition: background .18s, color .18s;
  letter-spacing: 0.07em;
}
header nav a.btn-primary {
  margin-left: auto;
  background: var(--color-secondary, #5CB85C);
  color: var(--color-light, #fff);
  padding: 10px 22px;
  font-size: 1.07rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
  transition: background .23s, box-shadow .23s;
}
header nav a.btn-primary:hover, header nav a.btn-primary:focus {
  background: var(--color-primary, #28527A);
  color: var(--color-light);
  box-shadow: var(--shadow-lg);
}
header nav a:hover, header nav a:focus {
  background: var(--color-accent, #F8F8F8);
  color: var(--color-secondary, #5CB85C);
  text-decoration: none;
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary, #28527A);
  color: var(--color-light, #fff);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2.1rem;
  position: absolute;
  right: 22px;
  top: 14px;
  z-index: 1001;
  border: none;
  box-shadow: 0 2px 6px rgba(40,82,122,0.20);
  transition: background .2s, color .2s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: var(--color-dark, #212529);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(40,82,122,0.95);
  color: var(--color-light, #fff);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform .35s cubic-bezier(.87,.13,.14,.94);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 26px;
  top: 23px;
  color: var(--color-light, #fff);
  background: none;
  font-size: 2.4rem;
  z-index: 2100;
  font-family: var(--font-display);
}
.mobile-nav {
  margin: 100px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-light);
  background: none;
  padding: 16px 32px;
  border-radius: 40px;
  font-weight: 900;
  letter-spacing: 0.09em;
  transition: background .2s, color .2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-dark, #212529);
}
@media (max-width: 1050px) {
  header nav {
    gap: 13px;
    padding: 14px 8px;
  }
  header nav a.btn-primary {
    padding: 10px 18px;
    font-size: .98rem;
  }
}
@media (max-width: 960px) {
  .container {
    max-width: 94vw;
    padding-left: 9px;
    padding-right: 9px;
  }
}
@media (max-width: 860px) {
  header nav {
    gap: 8px;
    padding: 8px 3px;
  }
}
@media (max-width: 768px) {
  header nav a:not(.btn-primary), header nav a.btn-primary { display: none; }
  .mobile-menu-toggle { display: block; }
  .mobile-menu { display: flex; }
  .container { padding-left: 8px; padding-right: 8px; }
}

/* --- Section & Card Layouts --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent, #F8F8F8);
}
@media (max-width: 650px) {
  .section { padding: 28px 4vw; }
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  transition: transform .22s, box-shadow .22s;
}
.card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-lg);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
    gap: 20px;
    align-items: flex-start;
  }
  .content-grid { flex-direction: column; }
  .card-container { flex-direction: column; }
}

/* Feature grid (custom for index) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 10px;
  list-style: none;
  justify-content: flex-start;
}
.feature-grid li {
  flex: 1 1 200px;
  min-width: 200px;
  background: #fff;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-md);
  padding: 32px 20px 28px 20px;
  margin-bottom: 20px;
  transition: box-shadow .18s, transform .18s;
}
.feature-grid li img {
  height: 48px;
  margin-bottom: 8px;
}
.feature-grid li h3 { margin-bottom: 6px; font-size: 1.19em; letter-spacing: -.5px; }
.feature-grid li:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px) scale(1.015);
}
@media (max-width: 900px) {
  .feature-grid { gap: 16px; }
  .feature-grid li { padding: 20px 12px; }
}
@media (max-width: 600px) {
  .feature-grid { flex-direction: column; gap: 14px; }
  .feature-grid li { min-width: 0; width: 100%; }
}

/* --- Testimonials --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  flex-direction: row;
  color: var(--color-contrast, #212529);
  font-size: 1.1rem;
  position: relative;
  border-left: 7px solid var(--color-secondary, #5CB85C);
  transition: box-shadow .2s, transform .2s;
  min-width: 220px;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.08rem;
  color: var(--color-primary, #28527A);
  margin: 0 12px 0 0;
  flex: 1 1 60%;
}
.testimonial-card span {
  font-family: var(--font-display);
  font-size: 1em;
  color: var(--color-dark, #212529);
  opacity: 0.85;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px) scale(1.01);
}
@media (max-width: 700px) {
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 10px; }
}

/* Distinctive cards (for features, reviews, etc) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}

/* --- Buttons & Links --- */
.btn-primary {
  display: inline-block;
  background: var(--color-secondary, #5CB85C);
  color: var(--color-light, #fff);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.11rem;
  border-radius: 40px;
  padding: 14px 36px;
  letter-spacing: .08em;
  margin-top: 18px;
  box-shadow: 0 2px 10px rgba(44,161,89,0.11);
  transition: background .22s, color .22s, box-shadow .22s, transform .16s;
  border: none;
  outline: none;
}
.btn-primary:active, .btn-primary:focus, .btn-primary:hover {
  background: var(--color-primary, #28527A);
  color: var(--color-light);
  box-shadow: 0 4px 18px rgba(40,82,122,0.19);
  transform: translateY(-1px) scale(1.015);
}
.btn-link {
  display: inline-block;
  font-weight: 700;
  color: var(--color-primary, #28527A);
  font-family: var(--font-display);
  font-size: 1.01rem;
  padding: 6px 0;
  border-radius: 0;
  border-bottom: 2px solid var(--color-secondary, #5CB85C);
  background: none;
  transition: color .16s, border-color .16s;
}
.btn-link:focus, .btn-link:hover {
  color: var(--color-secondary, #5CB85C);
  border-color: var(--color-primary, #28527A);
}

/* --- Footer --- */
footer {
  background: var(--color-primary, #28527A);
  color: #f8f8f8;
  padding: 48px 0 36px 0;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}
footer nav {
  display: flex;
  gap: 23px;
  justify-content: center;
  margin-bottom: 13px;
}
footer nav a {
  color: var(--color-light, #fff);
  font-family: var(--font-display);
  font-size: 1.01rem;
  font-weight: 700;
  background: none;
  border-radius: 20px;
  padding: 7px 14px;
  transition: background .19s, color .19s;
}
footer nav a:focus, footer nav a:hover {
  background: var(--color-secondary, #5CB85C);
  color: var(--color-dark, #212529);
}
.footer-contact {
  font-size: .97rem;
  line-height: 1.8;
  font-family: var(--font-body);
  color: #f8f8f8;
  text-align: center;
}
.footer-contact img {
  width: 18px;
  height: auto;
  vertical-align: middle;
  margin-right: 6px;
}
.footer-logo {
  text-align: center;
  margin-top: 14px;
}
.footer-logo img {
  height: 46px;
}
@media (max-width: 600px) {
  footer { gap: 19px; }
  footer nav { gap: 8px; flex-wrap: wrap; }
}

/* --- Contact Details (contact page) --- */
.contact-details {
  background: var(--color-accent, #F8F8F8);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-details strong { color: var(--color-secondary, #5CB85C); font-size: 1.06em; }
.contact-details img { vertical-align: middle; width: 20px; margin-right: 7px; }

.location-text {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-size: 1.12em;
}

/* --- Cookie Consent Banner & Modal --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #fff;
  box-shadow: 0 -6px 36px rgba(40,82,122,0.15);
  border-top: 4px solid var(--color-secondary, #5CB85C);
  color: var(--color-primary, #28527A);
  padding: 22px 16px 19px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  min-height: 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .33s, transform .33s;
  font-size: 1rem;
  font-family: var(--font-body);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-banner button {
  border-radius: 32px;
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1rem;
  padding: 9px 26px;
  margin: 0 3px 0 0;
  transition: background .2s, color .2s;
  border: none;
  min-width: 110px;
  box-shadow: 0 1px 4px rgba(44,161,89,0.06);
}
.cookie-banner .accept {
  background: var(--color-secondary, #5CB85C);
  color: #fff;
}
.cookie-banner .accept:focus, .cookie-banner .accept:hover {
  background: var(--color-primary, #28527A);
  color: #fff;
}
.cookie-banner .reject {
  background: var(--color-accent, #F8F8F8);
  color: var(--color-primary, #28527A);
}
.cookie-banner .reject:focus, .cookie-banner .reject:hover {
  background: #f2f2f2;
  color: var(--color-secondary, #5CB85C);
}
.cookie-banner .settings {
  background: none;
  color: var(--color-primary, #28527A);
  text-decoration: underline;
  font-size: .95rem;
  box-shadow: none;
  padding: 8px 14px;
}
.cookie-banner .settings:focus, .cookie-banner .settings:hover {
  color: var(--color-secondary, #5CB85C);
  background: #f5f5f5;
}
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 10px; }
  .cookie-banner .cookie-banner-actions { justify-content: flex-start; }
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(22,28,47,0.58);
  z-index: 4000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 1;
  pointer-events: all;
  transition: opacity .45s;
}
.cookie-modal.hide {
  opacity: 0; pointer-events: none;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 336px;
  max-width: 94vw;
  margin: 0 3vw 54px 3vw;
  padding: 32px 26px 18px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-body);
  color: var(--color-primary);
  animation: modal-popup .6s cubic-bezier(.14,.96,.77,1.06);
}
@keyframes modal-popup {
  from { transform: translateY(120vh) scale(.93); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-dialog h2 {
  color: var(--color-secondary);
  font-size: 1.25rem;
  margin-bottom: 7px;
}
.cookie-modal-dialog label {
  display: flex;
  align-items: center;
  font-size: 1.02rem;
  font-family: var(--font-body);
  margin: 0 0 7px 0;
}
.cookie-modal-dialog input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 18px;
  height: 18px;
  margin-right: 10px;
}
.cookie-modal-close {
  position: absolute;
  right: 32px;
  top: 34px;
  background: none;
  color: var(--color-primary);
  font-size: 2.2rem;
  line-height: 1;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 50%;
  cursor: pointer;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal-actions .btn-primary, .cookie-modal-actions .accept {
  min-width: 100px;
  padding: 9px 18px;
  font-size: 1rem;
}
.cookie-modal-actions .reject {
  background: var(--color-accent, #F8F8F8);
  color: var(--color-primary, #28527A);
}
.cookie-modal-actions .reject:focus, .cookie-modal-actions .reject:hover {
  background: #f2f2f2;
  color: var(--color-secondary, #5CB85C);
}
@media (max-width: 500px) {
  .cookie-modal-dialog { min-width: 0; width: 100%; margin: 0 0 8vh 0; }
}

/* --- Responsive Adjustments --- */
@media (max-width: 1000px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.5rem; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.42rem; }
  h2 { font-size: 1.06rem; }
  .btn-primary { font-size: 1rem; padding: 9px 22px; }
}

/* --- Misc utility classes (for spacing/alignment) --- */
.mb-0   { margin-bottom: 0 !important; }
.mb-16  { margin-bottom: 16px !important; }
.mb-24  { margin-bottom: 24px !important; }
.mb-40  { margin-bottom: 40px !important; }
.mt-20  { margin-top: 20px !important; }
.mt-32  { margin-top: 32px !important; }
.mt-40  { margin-top: 40px !important; }
.center { text-align: center !important; }

/* --- High Contrast for cards and testimonials --- */
.testimonial-card, .card, .feature-grid li {
  background: #fff;
  color: var(--color-dark, #212529);
  border: 1.5px solid #f0f4f6;
}
.testimonial-card span { color: #28527A; }

/* --- Geometric/Bold Shapes: Section Delimiters --- */
.section, .card, .cta, .feature-grid li, .testimonial-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* --- Micro-interactions --- */
.card, .feature-grid li, .testimonial-card, .btn-primary {
  transition: box-shadow .18s, transform .16s, background .16s;
}
.btn-primary:active, .feature-grid li:active, .card:active, .testimonial-card:active {
  transform: scale(.995);
}

/* --- Hide utility --- */
.hide, .is-hidden { display: none !important; }

/* --- Accessibility Focus Styles --- */
a:focus, button:focus, .btn-primary:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* --- Third-level color accent (optional) --- */
.secondary-accent {
  color: var(--color-secondary);
  font-weight: bold;
  letter-spacing: 0.07em;
}

/* --- End of CSS --- */