/* 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;
}
html {
  font-size: 16px;
}
body {
  line-height: 1.5;
  background: #F9FAFC;
  color: #283646;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
ul, ol {
  padding-left: 1.5rem;
}
a {
  color: #224F8C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #319A8A;
}
img {
  max-width: 100%;
  height: auto;
  border: none;
  vertical-align: middle;
}
button {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
  cursor: pointer;
}

/* BRAND COLORS (with warm, friendly accents) */
:root {
  --color-primary: #224F8C;
  --color-secondary: #319A8A;
  --color-accent: #F2F6FB;
  --color-warm1: #F7E3D7;
  --color-warm2: #FCE9CF;
  --color-warm3: #F8F1E8;
  --color-action: #F4991A;
  --text-dark: #283646;
  --text-medium: #405870;
  --text-light: #FFF;
  --shadow-card: 0 3px 18px 0 rgba(34, 79, 140, 0.08);
}

/* FONT FACE */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: var(--color-accent);
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
}
h1 { font-size: 2.375rem; line-height: 1.2; margin-bottom: 0.75em; }
h2 { font-size: 1.75rem; line-height: 1.3; margin-bottom: 0.75em; }
h3 { font-size: 1.25rem; line-height: 1.35; margin-bottom: 0.5em; }
h4 { font-size: 1.125rem; line-height: 1.4; margin-bottom: 0.4em; }

p, ul, ol, li, address {
  font-size: 1rem;
  color: var(--text-medium);
}
strong {
  font-weight: 600;
}

/* SPACING & LAYOUT CONTAINERS - FLEXBOX ONLY */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 28px 8px;
  }
  .container {
    padding: 0 8px;
  }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.2rem; }
}

/* FLEXBOX LAYOUT CLASSES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-accent);
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  padding: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover,
.card:focus {
  box-shadow: 0 6px 32px 0 rgba(34,79,140,0.18);
  transform: translateY(-2px) scale(1.02);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  background: var(--color-warm3);
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  border-left: 6px solid var(--color-action);
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card p {
  color: var(--text-dark);
  font-size: 1.12rem;
  font-style: italic;
}
.testimonial-card span {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(244,153,26,0.07); 
  transform: scale(1.015);
}

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

/* SPECIFIC CARDS & LISTS */
.service-overview-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.service-card {
  background: var(--color-warm2);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  min-width: 260px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  color: var(--text-dark);
  transition: box-shadow 0.23s, transform 0.19s;
}
.service-card h3 {
  color: var(--color-primary);
  margin-bottom: 10px;
}
.service-card:hover,
.service-card:focus {
  box-shadow: 0 8px 46px 0 rgba(49, 154, 138, 0.12);
  transform: translateY(-3px) scale(1.021);
}

/* MAIN NAVIGATION */
header {
  box-shadow: 0 2px 24px 0 rgba(34, 79, 140, 0.07);
  background: #fff;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: center;
  padding: 20px 0 10px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
}
.main-nav img {
  max-height: 40px;
  border-radius: 12px;
  margin-right: 14px;
}
.main-nav a {
  color: var(--color-primary);
  padding: 7px 10px;
  border-radius: 11px;
  transition: background 0.17s, color 0.2s;
  margin-bottom: 4px;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-warm1);
  color: var(--color-secondary);
}
.main-nav .cta-primary {
  background: var(--color-action);
  color: #fff;
  border-radius: 16px;
  margin-left: 12px;
  font-weight: 700;
  padding: 9px 22px;
  box-shadow: 0 2px 13px 0 rgba(244,153,26,0.10);
  transition: background 0.18s, box-shadow 0.21s, color 0.2s;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: #de7d00;
  color: #fff;
  box-shadow: 0 3px 23px 0 rgba(34,79,140,0.13);
}

/* MOBILE NAV TOGGLE STYLES */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  padding: 7px 16px;
  border-radius: 13px;
  z-index: 3001;
  position: absolute;
  right: 16px;
  top: 17px;
  transition: background 0.14s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
}

@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* MOBILE MENU OVERLAY and ANIMATION */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,79,140,0.98);
  z-index: 5000;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.43,.34,.12,1.16);
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  color: #fff;
  font-size: 2rem;
  border-radius: 13px;
  padding: 8px 18px;
  background: transparent;
  font-weight: 700;
  position: absolute;
  top: 18px;
  right: 16px;
  z-index: 5100;
  transition: background 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(49, 154, 138, 0.14);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 72px 24px 18px 32px;
  width: 100vw;
  min-height: 100vh;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 12px;
  padding: 14px 10px;
  transition: background 0.13s, color 0.19s;
  margin-bottom: 5px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-warm2);
  color: var(--color-primary);
}

/* GENERIC BUTTONS & CTA STYLES */
.cta-primary {
  background: var(--color-action);
  color: #fff;
  padding: 12px 36px;
  border-radius: 27px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 10px 0 rgba(244,153,26,0.13);
  transition: background 0.16s, color 0.24s, box-shadow 0.19s, transform 0.2s;
  display: inline-block;
  border: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: #e28a00;
  color: #fff;
  box-shadow: 0 6px 36px 0 rgba(49,154,138,0.11);
  transform: translateY(-2px) scale(1.035);
}

/* LIST STYLES, ICON BULLETS */
ul li {
  margin-bottom: 0.6em;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 0;
}
ul li img {
  height: 24px;
  width: 24px;
  border-radius: 7px;
  background: var(--color-warm1);
  flex-shrink: 0;
}

/* Misc utility spacing */
.mb-20  { margin-bottom: 20px; }
.mb-24  { margin-bottom: 24px; }
.mb-32  { margin-bottom: 32px; }
.mt-24  { margin-top: 24px; }
.mt-32  { margin-top: 32px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/* FORM FIELDS (for contact etc.) */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 13px;
  border: 1.5px solid #D0DEEB;
  border-radius: 10px;
  margin-bottom: 16px;
  background: #fff;
  box-shadow: 0 2px 9px 0 rgba(49,154,138,0.03);
  transition: border 0.12s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border: 1.6px solid var(--color-primary);
}

/* FOOTER STYLES */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 38px 0 20px;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 1160px;
  margin: auto;
  padding: 0 18px 0 18px;
}
.footer-wrapper img {
  height: 58px;
  width: auto;
  border-radius: 13px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 12px;
  min-width: 170px;
}
.footer-nav a {
  color: #fff;
  opacity: .98;
  font-weight: 600;
  letter-spacing: 0.18px;
  border-radius: 9px;
  padding: 5px 9px;
  transition: background 0.12s, color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
footer address {
  color: #e8eef6;
  font-style: normal;
  margin-top: 8px;
  line-height: 1.8;
}
footer address img {
  height: 19px;
  vertical-align: middle;
  margin-right: 8px;
}

@media (max-width: 990px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 18px 0;
    align-items: flex-start;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff9f3;
  box-shadow: 0 -2px 24px 0 rgba(49,154,138,0.07);
  padding: 24px 12px 19px 12px;
  gap: 14px;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.28s cubic-bezier(.45,1.17,.21,.94), opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  color: var(--text-dark);
  font-size: 1.07rem;
  max-width: 540px;
  margin: 0 auto 8px;
  text-align: center;
}
.cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.cookie-btn {
  font-family: 'Montserrat', sans-serif;
  border-radius: 15px;
  border: none;
  padding: 11px 20px;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 2px;
  transition: background 0.15s, color 0.17s, box-shadow 0.13s;
  box-shadow: 0 1px 10px 0 rgba(244,153,26,0.08);
}
.cookie-btn.accept {
  background: var(--color-action);
  color: #fff;
}
.cookie-btn.accept:hover {
  background: #e28918;
}
.cookie-btn.reject {
  background: var(--color-warm2);
  color: var(--color-primary);
}
.cookie-btn.reject:hover {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--color-warm1);
  color: var(--color-primary);
}
.cookie-btn.settings:hover {
  background: var(--color-action);
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(40,62,112,0.33);
  z-index: 10010;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: opacity 0.18s;
  opacity: 1;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 21px;
  box-shadow: 0 6px 48px 0 rgba(34,79,140,0.20);
  max-width: 360px;
  width: 98vw;
  padding: 30px 26px 24px 26px;
  z-index: 10011;
  transition: transform 0.24s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 8px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-modal input[type='checkbox'] {
  accent-color: var(--color-action);
  width: 19px; height: 19px;
}
.cookie-modal .cookie-modal-btns {
  width: 100%;
  display: flex; gap: 12px; margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  min-width: 96px;
}
.cookie-modal .close-cookies {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 1.45rem;
  color: var(--color-secondary);
  background: transparent;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes slideInUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.mobile-menu.open {
  animation: slideInLeft 0.32s;
}
.cookie-banner {
  animation: slideInUp 0.42s;
}
.testimonial-card, .service-card {
  animation: fadeIn 0.7s;
}

/* ACCESSIBILITY - FOCUS OUTLINES */
a:focus, button:focus, .cta-primary:focus, .cookie-btn:focus {
  outline: 2.5px solid var(--color-action);
  outline-offset: 2px;
}

/* RESPONSIVE - SMALLER CARDS */
@media (max-width: 700px) {
  .service-overview-cards,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .service-card, .card {
    min-width: 0;
    width: 100%;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .testimonial-card, .service-card, .card {
    padding: 15px 9px;
  }
}

/* -- OVERRIDE FORMATTING FOR text-section blocks (legal, info pages) -- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-accent);
  border-radius: 14px;
  padding: 26px 14px;
  box-shadow: 0 0px 7px 0 rgba(49,154,138,0.06);
  margin-bottom: 24px;
}
.text-section ul {
  margin-top: 8px;
}
.text-section li {
  margin-bottom: 0.3em;
}

/* ====== IE11/legacy fallback for accent-color ======= */
input[type='checkbox']::-ms-check {
  color: var(--color-action);
}

/* END OF STYLE.CSS */
