/* --- CSS RESET & BASE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #223966;
  background: #fff;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #223966;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 { font-size: 2rem; margin-bottom: 20px; }
h2 { font-size: 1.5rem; margin-bottom: 16px; }
h3 { font-size: 1.15rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 10px; }

p, ul, ol, li { font-size: 1rem; color: #223966; }
ul, ol { margin-left: 24px; margin-bottom: 16px; }
li { margin-bottom: 6px; }
p { margin-bottom: 14px; }

img {
  max-width: 100%;
  display: block;
  border-radius: 6px;
}
a {
  color: #51B6C8;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #223966;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  padding-left: 20px;
  padding-right: 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- LAYOUT: Spacing Patterns --- */
.section,
section:not(.hero):not(.cookie-banner):not(.confirmation) {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(34,57,102,0.06); padding: 24px; transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 4px 20px rgba(81,182,200,0.10); }
.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: #F2F5F8; border-radius: 12px; box-shadow: 0 2px 8px rgba(34,57,102,0.05); min-width: 220px; max-width: 340px; margin-bottom: 20px; transition: box-shadow .2s; }
.testimonial-card:hover { box-shadow: 0 4px 20px rgba(81,182,200,0.08); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  border-bottom: 1px solid #F2F5F8;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 70px;
}
header img {
  height: 40px;
  width: auto;
  margin-right: 28px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  margin-left: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #223966;
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.88;
  padding: 6px 0;
  transition: color 0.18s, opacity 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #51B6C8;
  opacity: 1;
}
.cta-btn {
  display: inline-block;
  background: #223966;
  color: #fff;
  padding: 11px 28px;
  border-radius: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(34,57,102,0.05);
  letter-spacing: 0.01em;
  border: none;
  transition: background 0.18s, transform 0.13s, box-shadow 0.2s;
  margin-left: 28px;
  cursor: pointer;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #51B6C8;
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 20px rgba(81,182,200,0.14);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #223966;
  cursor: pointer;
  padding: 8px;
  margin-left: 22px;
  z-index: 120;
  transition: background 0.14s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #F2F5F8;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: fixed;
  top: 0;
  left: 0;
  right:0;
  bottom: 0;
  background: rgba(34,57,102,0.94);
  z-index: 2000;
  transform: translateX(104%);
  transition: transform .45s cubic-bezier(.83,0,.17,1);
  opacity: 1;
  will-change: transform;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  padding: 18px 22px;
  margin: 0 8px 8px 0;
  align-self: flex-end;
  cursor: pointer;
  transition: color .17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #51B6C8;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 56px 28px 28px 38px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  padding: 10px 0;
  transition: color 0.19s, background 0.14s;
  border-radius: 8px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(81, 182, 200, 0.12);
  color: #51B6C8;
}

@media (max-width: 1024px) {
  .main-nav { gap: 16px; }
  .cta-btn { margin-left: 12px; padding: 11px 18px; font-size: 1rem; }
}
@media (max-width: 900px) {
  header .container { flex-wrap: wrap; min-height: 62px; }
  .main-nav { gap: 12px; }
}
@media (max-width: 768px) {
  .main-nav, .cta-btn { display: none !important; }
  .mobile-menu-toggle { display: inline-block !important; }
}

@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* --- HERO / PAGE TOP --- */
.hero {
  background: #F2F5F8;
  color: #223966;
  padding: 62px 0 48px 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eceff3;
}
.hero .container {
  flex-direction: row;
  align-items: center;
}
.hero h1 { font-size: 2.4rem; line-height: 1.1; margin-bottom: 22px; }
.hero .subheadline {
  font-size: 1.08rem;
  color: #4760a4;
  font-weight: 400;
  margin-bottom: 28px;
  max-width: 600px;
  line-height: 1.6;
}
.hero .cta-btn { margin-top: 8px; }

@media (max-width: 700px) {
  .hero { padding: 32px 0 20px 0; }
  .hero h1 { font-size: 1.5rem; }
}

/* --- CARD & GRID STYLES (GENERIC) --- */
.features-grid, .service-overview-grid, .project-cards { 
  display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; justify-content: flex-start;
}
.features-grid > div,
.service-overview-grid > div,
.project-cards > div {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1.5px 7px rgba(34,57,102,0.048);
  padding: 28px 22px 22px 22px;
  flex: 1 1 230px;
  min-width: 220px;
  max-width: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.19s, transform 0.17s;
  margin-bottom: 20px;
}
.features-grid > div:hover,
.service-overview-grid > div:hover,
.project-cards > div:hover {
  box-shadow: 0 8px 32px rgba(81,182,200,.11);
  transform: translateY(-3px) scale(1.015);
}
.features-grid img,
.service-overview-grid img,
.project-cards img {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 0;
}
.features-grid h3,
.service-overview-grid h3,
.project-cards h3 {
  font-size: 1.09rem;
  color: #223966;
  margin-bottom: 8px;
}
.features-grid p,
.service-overview-grid p,
.project-cards p {
  color: #2C436C;
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .features-grid, .service-overview-grid, .project-cards {
    flex-direction: column;
    gap: 18px;
  }
  .features-grid > div, .service-overview-grid > div, .project-cards > div {
    max-width: 100%;
    width: 100%;
    margin-bottom: 12px;
  }
}

/* --- TESTIMONIALS --- */
.testimonials, .testimonial-row {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.testimonials .testimonial-row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  color: #223966;
  background: #F2F5F8;
  box-shadow: 0 2px 8px rgba(34,57,102,0.07);
  border-radius: 12px;
  min-width: 230px;
  max-width: 330px;
  padding: 28px 20px 22px 22px;
  margin-bottom: 20px;
  margin-right: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  font-size: 1.04rem;
  transition: box-shadow 0.21s, transform 0.16s;
  border-left: 5px solid #51B6C8;
}
.testimonial-card strong { color: #223966; font-size: 0.98rem; margin-top: 10px; font-weight: 600; margin-bottom: 2px; }
.testimonial-card span {
  font-size: 1.12rem;
  color: #FDBD4E;
  letter-spacing: 1px;
}
.testimonial-card p { color: #2C436C; }
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(34,57,102,0.12);
  transform: translateY(-2px) scale(1.01);
}
@media (max-width: 900px) {
  .testimonials .testimonial-row { flex-direction: column; gap: 18px; }
}

/* --- FOOTER --- */
footer {
  background: #F2F5F8;
  border-top: 1px solid #eceff3;
  padding: 0;
  margin-top: 48px;
}
footer .container { flex-direction: column; gap: 20px; padding: 34px 20px 24px 20px; }
.footer-menu {
  display: flex;
  flex-direction: row;
  gap: 28px;
  margin-bottom: 10px;
}
.footer-menu a {
  color: #4760a4;
  opacity: 0.8;
  font-size: 0.98rem;
  transition: color 0.16s, opacity 0.16s;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #223966;
  opacity: 1;
}
.footer-contact {
  font-size: 0.95rem;
  color: #223966;
  opacity: 0.76;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0;
}
@media (max-width: 750px) {
  .footer-menu { flex-direction: column; gap: 4px; }
}

/* --- SECTIONS, FORMS, MISC --- */
.content-wrapper {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.core-values-list, .benefit-list, .service-list {
  list-style: none;
  margin-left: 0;
  margin-bottom: 0;
  padding-left: 0;
}
.core-values-list li::before, .benefit-list li::before, .service-list li::before {
  content: '•';
  color: #51B6C8;
  margin-right: 8px;
}
.contact-info {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  margin: 18px 0 20px 0;
}
.contact-info div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  background: #fff;
  border-radius: 8px;
  padding: 7px 15px 7px 8px;
  box-shadow: 0 1.5px 7px rgba(81,182,200,0.04);
}
.contact-info img {
  width: 20px;
  height: 20px;
}
.contact-info a {
  color: #51B6C8;
  font-weight: 500;
}
@media (max-width: 800px) {
  .contact-info { flex-direction: column; gap: 8px; }
}

/* --- LEGAL SECTIONS --- */
.legal h1 { font-size: 2rem; margin-bottom: 20px; }
.legal h2 { font-size: 1.2rem; margin-bottom: 14px; }
.legal ul, .legal ol { margin-left: 18px; }
.legal li { margin-bottom: 5px; }
.legal p { margin-bottom: 12px; }

/* --- PAGE-SPECIFIC --- */
.awards {
  font-size: 0.98rem;
  color: #51B6C8;
  margin-top: 15px;
}
.confirmation, .cta-row {
  padding: 62px 20px 62px 20px;
  text-align: center;
}
.confirmation .cta-btn { margin-top: 20px; }

/* --- BUTTONS & INTERACTIONS --- */
button, .cta-btn {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.14s, color 0.13s, transform 0.14s, box-shadow .2s;
}
button:active,
.cta-btn:active { transform: scale(.98); }

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #223966;
  color: #fff;
  padding: 22px 18px 22px 18px;
  z-index: 4000;
  box-shadow: 0 -4px 24px 0 rgba(34,57,102,.07);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.99rem;
  animation: bannerSlideIn 0.8s cubic-bezier(.76,0,.24,1);
}
@keyframes bannerSlideIn {
  0% { transform: translateY(120%); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-banner-content { flex: 1; }
.cookie-banner-buttons { display: flex; flex-direction: row; gap: 12px; }
.cookie-banner .cookie-btn {
  border-radius: 24px;
  padding: 9px 23px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 1.5px 7px rgba(34,57,102,0.05);
  background: #fff;
  color: #223966;
  margin-left: 0;
  transition: background 0.12s, color 0.12s;
}
.cookie-btn.accept {
  background: #51B6C8;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #223966;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #223966;
  border: 1px solid #ECEFF3;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #eceff3;
  color: #223966;
}
.cookie-btn.settings {
  background: transparent;
  color: #fff;
  border: 1px solid #51B6C8;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #51B6C8;
  color: #fff;
}

@media(max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.98rem;
    gap: 9px;
    padding: 18px 8px 24px 8px;
  }
  .cookie-banner-buttons { flex-direction: column; gap: 8px; align-self: flex-end; }
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right:0; bottom: 0;
  background: rgba(34,57,102,.56);
  z-index: 4200;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s;
  animation: fadeModalBgIn .38s cubic-bezier(.76,0,.24,1);
}
@keyframes fadeModalBgIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #223966;
  border-radius: 14px;
  min-width: 90vw;
  max-width: 400px;
  padding: 36px 30px 30px 30px;
  box-shadow: 0 8px 48px rgba(34,57,102,0.14);
  animation: modalSlideDown .5s cubic-bezier(.74,0,.22,1);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@keyframes modalSlideDown {
  0% { transform: translateY(-30px); opacity:0; }
  100% { transform: none; opacity:1; }
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 2rem;
  color: #51B6C8;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #223966;
}
.cookie-modal h2 {
  font-size: 1.22rem;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1rem;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  border-radius: 15px;
  background: #eceff3;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-toggle input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.cookie-toggle-slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left .21s, background .14s;
  box-shadow: 0 1.5px 6px rgba(81,182,200,0.10);
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 18px;
  background: #51B6C8;
}
.cookie-modal-actions {
  display: flex; flex-direction: row; gap: 10px; justify-content: flex-end; }
.cookie-modal-actions .cookie-btn { min-width: 120px; }

@media (max-width: 580px) {
  .cookie-modal-content { min-width: 96vw; padding: 26px 8px 22px 8px; }
}

/* --- RESPONSIVE FLEX --- */
@media (max-width: 900px) {
  .content-grid, .card-container, .testimonials .testimonial-row { flex-direction: column; gap: 18px; }
  .card, .testimonial-card { max-width: 100%; }
  .features-grid, .service-overview-grid, .project-cards { flex-direction: column; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 520px) {
  h1 { font-size: 1.2rem; }
  h2 { font-size: 1rem; }
  h3 { font-size: 0.98rem; }
}

/* --- UTILITY CLASSES / VISUAL IMPROVEMENTS --- */
.bg-accent { background: #F2F5F8; }
.rounded { border-radius: 12px; }
.shadow { box-shadow: 0 2px 8px rgba(34,57,102,0.07); }

/* Visually hidden for accessibility */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip-path: inset(100%);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}
