/* 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, 
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;
}
/* Set core body defaults */
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #283146;
  background: #F8FBFD;
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .18s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  outline: none;
  border: none;
  padding: 0;
}
/* Selection */
::selection { background: #3dc1d3; color: #fff; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1261a0;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
p, ul, ol, li, table, th, td {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #283146;
}
strong {
  font-weight: 600;
  color: #0e4874;
}

/* STRUCTURED LAYOUTS */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container,
.feature-grid,
.card-grid,
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(34,49,63,.08);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  transition: box-shadow .18s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(34,49,63,0.18);
  z-index: 1;
}
.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: 15px;
  background: #e8f6fa;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(18,97,160,0.07);
  padding: 20px 28px;
  margin-bottom: 20px;
}
.testimonial-client {
  font-weight: 500;
  color: #1261a0;
  font-size: .95rem;
  margin-top: 6px;
}
.rating-summary ul {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.rating-summary ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e8f6fa;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: .96rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(120deg, #e8f6fa 35%, #d7e9f7 100%);
  padding: 60px 0 60px 0;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  color: #1261a0;
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 26px;
}
.primary-cta,
.secondary-cta {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 1.05rem;
  transition: background .2s, color .2s, box-shadow .18s, transform .18s;
  text-align: center;
  box-shadow: 0 2px 8px 0 rgba(18,97,160,0.10);
  cursor: pointer;
  letter-spacing: 0.03em;
}
.primary-cta {
  background: #1261a0;
  color: #fff;
  border: 2px solid #1261a0;
}
.primary-cta:hover, .primary-cta:focus {
  background: #3dc1d3;
  color: #1261a0;
  border-color: #3dc1d3;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px 0 rgba(18,97,160,0.11);
}
.secondary-cta {
  background: #e8f6fa;
  color: #1261a0;
  border: 2px solid #3dc1d3;
  margin-top: 16px;
}
.secondary-cta:hover, .secondary-cta:focus {
  background: #3dc1d3;
  color: #fff;
  border-color: #3dc1d3;
}
.cta {
  background: #3dc1d3;
  color: #fff !important;
  border-radius: 18px;
  padding: 8px 18px;
  margin-left: 22px;
  font-weight: 600;
  transition: background .16s, color .16s;
}
.cta:hover, .cta:focus {
  background: #1261a0;
  color: #fff !important;
}

/* HEADER NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 1px 8px 0 rgba(27, 61, 113, 0.07);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 999;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
}
.main-nav a {
  display: inline-block;
  padding: 8px 14px;
  color: #283146;
  border-radius: 8px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background .15s, color .15s;
}
.main-nav a:not(.cta):hover, .main-nav a:not(.cta):focus {
  color: #1261a0;
  background: #e8f6fa;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: #3dc1d3;
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 8px;
  padding: 6px 16px;
  margin-left: 10px;
  cursor: pointer;
  transition: background .16s;
  z-index: 1500;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #1261a0;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 100vw;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 97, 160, 0.95);
  z-index: 1600;
  transition: left .36s cubic-bezier(.62,.18,.38,1.1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: 40px;
  overflow-y: auto;
}
.mobile-menu.open {
  left: 0;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  margin: 16px 32px 24px 0;
  border: none;
  cursor: pointer;
  z-index: 1700;
  align-self: flex-end;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-end;
  padding-right: 38px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #3dc1d3;
  color: #1261a0;
}

/* Hide main-nav and show mobile-toggle on mobile */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* FOOTER */
footer {
  background: #f5f8fc;
  padding: 40px 0 0 0;
  font-size: .96rem;
  color: #2b3756;
  border-top: 1px solid #e7eef5;
}
.footer-links {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  flex-wrap: wrap;
}
.footer-links img {
  width: 92px;
  height: auto;
  margin-bottom: 18px;
}
.footer-nav, .legal-nav {
  display: flex;
  flex-direction: column;
  gap: 6px 0;
}
.footer-nav a, .legal-nav a {
  color: #1261a0;
  margin-bottom: 4px;
}
.footer-nav a:hover, .legal-nav a:hover {
  text-decoration: underline;
}
.footer-contact {
  margin: 26px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px 0;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
}
.legal-notice {
  border-top: 1px solid #e5ecef;
  margin-top: 24px;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: .90rem;
  color: #7281a7;
}
.legal-notice a {
  color: #7281a7;
  text-decoration: underline;
}

/* ===== CARDS, SECTION GAPS, FLEX PATTERNS ===== */
/* Provided Patterns */
.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; }
/* Responsive spacing between all cards & main content blocks */
.content-wrapper > * + * { margin-top: 20px; }

/* --------------------- TABLES ------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(18,97,160,0.08);
  margin-bottom: 22px;
}
thead { background: #e8f6fa; }
th,
td {
  text-align: left;
  padding: 14px 22px;
  font-size: 1.01rem;
  border-bottom: 1px solid #e7eef2;
}
th {
  color: #1261a0;
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* ============= UTILITIES AND GENERIC COMPONENTS =============== */
.text-section ul, .text-section ol {
  padding-left: 22px;
  margin-bottom: 9px;
}
.text-section li {
  margin-bottom: 7px;
  line-height: 1.7;
}
.text-section li strong {
  color: #1261a0;
  font-size: 1.01em;
}
.text-section ol {
  list-style: decimal inside;
}
.text-section {
  background: #fff;
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(34,49,63,.06);
  margin-bottom: 20px;
}
.contact-info-snippet p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1.07em;
}
.contact-info-snippet img {
  width: 22px;
  height: 22px;
}

/* Feature grid, icons, lists */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}
.feature-grid li {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 300px;
  background: #e8f6fa;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(18,97,160,0.10);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px 0;
  align-items: flex-start;
  transition: box-shadow .17s, transform .12s;
}
.feature-grid li:hover {
  box-shadow: 0 6px 15px 0 rgba(18,97,160,0.13);
  transform: translateY(-2px) scale(1.03);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}
.feature-grid h3 {
  font-size: 1.18em;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1261a0;
  margin-bottom: 7px;
}
.feature-grid p {
  font-size: 1em;
  color: #283146;
}

/* Offer sections preview, list stylings */
.services-preview ul {
  margin-bottom: 10px;
}
.services-preview ul li {
  margin-bottom: 8px;
  padding-left: 27px;
  position: relative;
}
.services-preview ul li strong {
  color: #1261a0;
}
.services-preview ul li:before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #3dc1d3;
  border-radius: 100%;
  margin-right: 12px;
  position: absolute;
  left: 0;
  top: 7px;
}

/* Animations */
.primary-cta, .secondary-cta, .feature-grid li, .card, .testimonial-card {
  transition: box-shadow .18s, transform .16s, background .16s, color .16s;
}

/* ================= RESPONSIVE DESIGN =================== */
@media (max-width: 1200px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 992px) {
  .footer-links {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .feature-grid { flex-direction: column; gap: 18px; align-items: center; }
  .feature-grid li { max-width: 100%; flex: unset; }
}
@media (max-width: 768px) {
  html { font-size: 16px; }
  .container { padding: 0 9px; }
  .section { margin-bottom: 36px; padding: 28px 4vw; }
  .content-wrapper, .content-grid, .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section { flex-direction: column; gap: 20px; align-items: flex-start; }
  .footer-links { flex-direction: column; gap: 18px; align-items: flex-start; }
  .footer-contact { margin-top: 12px; }
  .hero { padding: 36px 0; }
  .hero .container { padding: 0 8px; }
  .testimonial-card { padding: 14px 10px; }
  table th, table td { padding: 8px 8px; font-size: .97em; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1rem; }
}

@media (max-width: 500px) {
  .hero h1 { font-size: 1.15rem; }
  .legal-notice { flex-direction: column; gap: 6px; }
  .footer-links img { width: 66px; }
}

/* ================= COOKIE BANNER & MODAL ================ */
#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 14px 0 rgba(18,97,160,.13);
  padding: 22px 24px 18px 24px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  transition: transform .3s cubic-bezier(.62,.18,.38,1.1), opacity .18s;
}
#cookie-consent-banner.hide {
  transform: translateY(120%);
  opacity: 0;
}
.cookie-banner-text {
  color: #283146;
  font-size: 1rem;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background: #e8f6fa;
  color: #1261a0;
  transition: background .16s, color .16s;
  box-shadow: 0 1px 5px 0 rgba(34,49,63,.08);
}
.cookie-btn.accept {
  background: #1261a0;
  color: #fff;
}
.cookie-btn.reject {
  background: #bfcfd8;
  color: #2b3756;
}
.cookie-btn.settings {
  background: #3dc1d3;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.settings:hover {
  background: #3dc1d3;
  color: #fff;
}
.cookie-btn.reject:hover {
  background: #7281a7;
  color: #fff;
}

#cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(18, 97, 160, 0.12);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4100;
}
#cookie-modal-overlay.show {
  display: flex;
}
#cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(34,49,63,.19);
  max-width: 95vw;
  width: 410px;
  padding: 38px 26px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modal-show .28s;
}
@keyframes modal-show {
  from { transform: translateY(40px) scale(.97); opacity: 0; }
  to { transform: none; opacity: 1; }
}
#cookie-modal h2 {
  margin-bottom: 8px;
  font-size: 1.3rem;
  color: #1261a0;
}
#cookie-modal ul {
  list-style: none;
  margin: 0 0 6px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.02em;
}
.cookie-category label {
  font-weight: 500;
}
.cookie-toggle {
  appearance: none;
  display: inline-block;
  width: 38px;
  height: 20px;
  background: #bfcfd8;
  border-radius: 11px;
  position: relative;
  transition: background 0.2s;
}
.cookie-toggle:checked {
  background: #3dc1d3;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 100%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.07);
  transition: left 0.14s;
}
.cookie-toggle:checked:before {
  left: 20px;
}
.cookie-category.essential label { color: #282e34; }
.cookie-category.essential {
  opacity: .67;
}
#cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  justify-content: flex-end;
}
#cookie-modal .cookie-btn {
  min-width: 100px;
}

/* Hide modal on mobile on half screen */
@media (max-width: 480px) {
  #cookie-modal { width: 97vw; padding: 19px 9px 16px 9px; }
}

/* ========== MISC ============= */
::-webkit-input-placeholder { color: #bfcfd8; }
::-moz-placeholder { color: #bfcfd8; }
:-ms-input-placeholder { color: #bfcfd8; }
::placeholder { color: #bfcfd8; }

/* Prevent overlapping and box consistency */
.card, .testimonial-card, .text-section, .feature-grid li {
  box-sizing: border-box;
}

/* Accessibility: Focus rings */
a:focus, button:focus, .primary-cta:focus, .secondary-cta:focus, .cta:focus {
  outline: 2px solid #3dc1d3;
  outline-offset: 2px;
}

/* High contrast for testimonial text */
.testimonial-card p, .testimonial-card span {
  color: #0e4874;
}

/* Mobile improvements for CTA */
@media (max-width: 600px) {
  .primary-cta, .secondary-cta {
    width: 100%;
    padding: 13px 0;
    font-size: 1rem;
  }
  .cta { margin-left: 6px; padding: 7px 10px; }
}
