/* 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F8FB;
  color: #23405C;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
:root {
  --primary: #246FA5;
  --secondary: #10314A;
  --accent: #F6F8FB;
  --pastel-blue: #DDEBF7;
  --pastel-lilac: #F3E8FF;
  --pastel-pink: #FFE7F0;
  --pastel-mint: #D6FAEE;
  --pastel-yellow: #FFF9DC;
  --white: #fff;
  --gray: #F2F4F8;
  --border: #d4e6f6;
  --shadow: 0 2px 16px 0 rgba(36, 111, 165, 0.08);
  --radius: 18px;
  --body-font: 'Open Sans', Arial, sans-serif;
  --display-font: 'Montserrat', Arial, sans-serif;
}

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

body {
  font-family: var(--body-font);
  background: var(--accent);
  min-height: 100vh;
  font-size: 16px;
  color: #23405C;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  color: var(--secondary);
  margin-bottom: 0.7em;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.1rem; }
p, ul, li {
  font-family: var(--body-font);
  color: #24405c;
  font-size: 1rem;
}
strong { font-weight: 700; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER & NAVIGATION */
header {
  background: linear-gradient(90deg, var(--pastel-blue), var(--accent));
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--border);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 70px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  padding: 8px 14px;
  border-radius: 14px;
  font-family: var(--body-font);
  font-weight: 600;
  color: var(--secondary);
  transition: background 0.2s, color 0.2s;
}
header nav a.cta {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 1px 8px rgba(36, 111, 165, 0.10);
  padding: 10px 24px;
  font-family: var(--display-font);
  letter-spacing: 0.05em;
  border-radius: 19px;
  transition: background 0.2s, transform 0.2s;
}
header nav a.cta:hover,
header nav a.cta:focus {
  background: #3980b6;
  color: var(--white);
  transform: translateY(-2px) scale(1.03);
}
header nav a:hover,
header nav a:focus {
  background: var(--pastel-mint);
  color: var(--primary);
}
header img {
  height: 50px;
  width: auto;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 16px;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--primary);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(230, 245, 255, 0.96);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.66,0,0.19,1);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 36px 20px 20px 20px;
  width: 100vw;
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  align-self: flex-end;
  margin-bottom: 26px;
  z-index: 2100;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 14px;
}
.mobile-nav a {
  padding: 14px 0;
  font-size: 1.3rem;
  font-family: var(--display-font);
  color: var(--secondary);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--pastel-mint);
  color: var(--primary);
}

/* HERO & SECTION LAYOUTS */
.hero {
  background: linear-gradient(120deg, var(--pastel-blue) 80%, var(--pastel-pink) 100%);
  border-radius: 0 0 52px 52px / 0 0 24px 24px;
  margin-bottom: 46px;
  box-shadow: 0 8px 32px 0 rgba(36, 111, 165, 0.06);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 290px;
  padding: 52px 14px 36px 14px;
  justify-content: center;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
}
.hero h1, .hero p {
  color: var(--secondary);
  text-shadow: 0 6px 36px #fff6, 0 1px 0 #fff8;
}
.hero a.cta {
  margin-top: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--pastel-mint);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  flex: 1 1 344px;
  min-width: 250px;
  transition: box-shadow 0.2s, transform 0.12s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 32px 0 rgba(36, 111, 165, 0.12);
  transform: translateY(-3px) scale(1.016);
}

.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--pastel-yellow);
  padding: 20px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

/* Testimonial Cards */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  background: var(--pastel-lilac);
  border-radius: calc(var(--radius) + 8px);
  margin-bottom: 24px;
  box-shadow: 0 2px 24px 0 rgba(36, 111, 165, 0.06);
  max-width: 540px;
  color: #222943;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: #222943;
  font-weight: 500;
  font-family: var(--display-font);
}
.testimonial-card span {
  font-size: 0.99rem;
  color: #555;
  font-style: italic;
}

/* GENERAL CTAs & BUTTONS */
.cta,
button, input[type="submit"] {
  background: var(--primary);
  color: var(--white);
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--display-font);
  font-weight: 600;
  box-shadow: 0 2px 20px 0 rgba(36,111,165,0.12);
  font-size: 1.08rem;
  transition: background 0.19s, box-shadow 0.18s, transform 0.17s;
  letter-spacing: 0.04em;
  text-align: center;
  margin: 10px 0;
}
.cta:hover, .cta:focus,
button:hover, button:focus, input[type="submit"]:hover, input[type="submit"]:focus {
  background: #3980b6;
  color: #fff;
  box-shadow: 0 6px 28px 0 rgba(36,111,165,0.18);
  transform: translateY(-2px) scale(1.04);
}

/* SERVICES GRID (in services.html) */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.services-grid > div {
  background: var(--pastel-blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 320px;
  min-width: 260px;
  min-height: 190px;
  padding: 28px 22px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.services-grid > div:hover {
  box-shadow: 0 8px 36px 0 rgba(36, 111, 165, 0.13);
  transform: translateY(-2px) scale(1.03);
}
.services-grid h3 {
  font-size: 1.12rem;
  color: var(--primary);
  margin-bottom: 10px;
}

/* TEAM LIST */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.team-list > div {
  background: var(--pastel-mint);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 290px;
  min-width: 220px;
  padding: 25px 22px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.team-list > div:hover {
  box-shadow: 0 8px 34px 0 rgba(36,111,165,0.09);
  transform: translateY(-2px) scale(1.03);
}

/* FOOTER */
footer {
  background: linear-gradient(95deg, var(--pastel-blue) 70%, var(--pastel-lilac) 100%);
  margin-top: 60px;
  border-top: 2px solid var(--border);
  padding: 0;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 38px 6px;
}
.footer-brand img {
  height: 60px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 2px 8px 0 rgba(36,111,165,0.03);
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.97rem;
  margin-right: 18px;
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.97rem;
}
.footer-contact img {
  height: 22px;
  width: 22px;
  margin-top: 2px;
}
footer a:hover, footer a:focus {
  color: var(--primary);
  text-decoration: underline;
}

/* OTHER STATES & HIGHLIGHTS */
ul > li, .section ul > li, .content-wrapper ul > li {
  margin-bottom: 0.9em;
  padding-left: 32px;
  position: relative;
  color: #24405c;
}
ul > li img, .section ul > li img, .content-wrapper ul > li img {
  position: absolute;
  top: 1px;
  left: 0;
  width: 22px; height: 22px;
}

a {
  color: var(--primary);
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #3980b6;
  text-decoration: underline;
}

.section a.cta {
  margin-top: 10px;
  align-self: flex-start;
}

/* COOKIE CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  box-shadow: 0 -1px 16px 0 rgba(36,111,165,0.14);
  border-top: 2px solid var(--pastel-blue);
  z-index: 9999;
  padding: 22px 18px 18px 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInBanner 0.6s 0.06s cubic-bezier(0.66,0,0.19,1);
}
@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner__text {
  flex: 1 1 250px;
  color: var(--secondary);
  font-size: 0.98rem;
}
.cookie-banner button {
  padding: 0.65em 1.7em;
  margin: 0 3px;
  border: none;
  border-radius: 24px;
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 1rem;
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.18s, transform 0.13s;
}
.cookie-banner button.cookie-settings {
  background: var(--pastel-lilac);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-banner button.cookie-settings:hover,
.cookie-banner button.cookie-settings:focus {
  background: var(--pastel-pink);
  color: var(--secondary);
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #3980b6;
  color: #fff;
  transform: scale(1.055);
}

.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,111,165,0.04);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInBg 0.25s;
}
@keyframes fadeInBg {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal__window {
  background: var(--white);
  border-radius: 26px;
  box-shadow: 0 12px 48px 0 rgba(36,111,165,0.16);
  padding: 34px 28px 28px 28px;
  min-width: 320px;
  max-width: 96vw;
  font-size: 1rem;
  color: var(--secondary);
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: slideDownModal 0.36s 0.09s cubic-bezier(0.66,0,0.19,1);
}
@keyframes slideDownModal {
  from { opacity:0; transform: translateY(-48px); }
  to { opacity:1; transform: translateY(0); }
}
.cookie-modal__close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.1rem;
  align-self: flex-end;
  margin-bottom: 10px;
  cursor: pointer;
}
.cookie-modal__title {
  font-family: var(--display-font);
  font-size: 1.36rem;
  font-weight: 700;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 13px 0 6px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 36px;
}
.cookie-category--essential .cookie-toggle {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-category .cookie-toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--pastel-blue);
  appearance: none;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: background 0.18s;
}
.cookie-category .cookie-toggle:checked {
  background: var(--primary);
}
.cookie-category .cookie-toggle:before {
  content: '';
  position: absolute;
  left: 4px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px 0 rgba(36,111,165,0.13);
  transition: left 0.17s;
}
.cookie-category .cookie-toggle:checked:before {
  left: 24px;
}
.cookie-modal__actions {
  margin-top: 20px;
  display: flex;
  gap: 16px;
}
.cookie-modal .cta, .cookie-modal button {
  min-width: 120px;
  font-size: 1rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
  .footer-main {
    gap: 16px;
  }
  .services-grid, .team-list, .card-container, .content-grid {
    gap: 14px;
  }
}
@media (max-width: 880px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 38px 0px;
  }
  .section, .hero .container {
    padding: 28px 8px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  header .container, .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px !important;
    padding: 18px 5px 8px 8px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .section {
    padding: 26px 4px;
    margin-bottom: 36px;
  }
  .hero {
    margin-bottom: 18px;
    border-radius: 0 0 18px 18px;
  }
  .hero .container {
    padding: 36px 8px 18px 8px;
    min-height: 180px;
  }
  .services-grid, .team-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 16px 10px;
    min-width: 0;
  }
  .team-list > div, .card {
    min-width: 0;
  }
  .content-wrapper {
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-contact span {
    font-size: 0.95rem;
  }
}
@media (max-width: 520px) {
  body, html {
    font-size: 15px;
  }
  h1 {
    font-size: 2rem;
  }
  .cookie-modal__window {
    min-width: 0;
    padding: 18px 8px 15px 8px;
  }
  .card, .team-list > div, .services-grid > div {
    padding: 17px 7px;
  }
}

/* MICRO-ANIMATIONS */
.card, .services-grid > div, .team-list > div {
  transition: box-shadow 0.25s, transform 0.19s;
}
.cta, button, input[type="submit"] {
  transition: background 0.19s, box-shadow 0.16s, transform 0.15s;
}

/* ACCESSIBILITY STATES */
a:focus-visible, button:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 8px #77b7e51e;
}

/* UTILITIES */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* Hide cookie modal/overlay by default (js toggles display) */
.cookie-banner, .cookie-modal {
  display: none;
}
.cookie-banner.active {
  display: flex;
}
.cookie-modal.active {
  display: flex;
}

/* Ensure minimum space between elements */
.section:not(:last-child) { margin-bottom: 60px; }
.card, .testimonial-card, .services-grid > div, .team-list > div, .feature-item {
  margin-bottom: 20px;
}
