/* 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,
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #fff;
  color: #213245;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin-left: 1.4em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: 16px;
}
a {
  color: #213245;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #8FB6C9;
  outline: none;
}
strong {
  font-weight: bold;
}
/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #213245;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 15px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }
.text-center { text-align: center; }

p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #213245;
}
small {
  color: #576579;
  font-size: 0.95em;
}

/* BASIC LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 600px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 24px 0 24px 0;
  }
}

/* HERO SECTION */
.hero {
  background: #F4F7FA;
  padding: 64px 0 32px 0;
  margin-bottom: 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 24px;
}
.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 18px;
  color: #213245;
}
.hero p {
  font-size: 1.18em;
  margin-bottom: 22px;
  color: #213245;
  max-width: 480px;
}
@media (max-width: 768px) {
  .hero { padding: 36px 0 16px 0; }
  .hero .content-wrapper { align-items: center; text-align: center; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1em; max-width: 100%; }
}

/* FLEXBOX LAYOUTS AS MANDATED */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(33,50,69,0.05);
  padding: 32px 24px;
  transition: box-shadow .22s;
  min-width: 250px;
  flex: 1 1 300px;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(33,50,69,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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(33,50,69,0.08);
  border-radius: 14px;
  margin-bottom: 20px;
  min-width: 200px;
  max-width: 500px;
  transition: box-shadow .2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px 0 rgba(33,50,69,0.11);
}
.testimonials .testimonial-card {
  margin-bottom: 22px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}

/* GENERIC FLEX LAYOUTS FOR .team-list, .blog-list, .project-list, .feature-grid */
.team-list, .blog-list, .project-list, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.text-section {
  background: #F4F7FA;
  border-radius: 12px;
  padding: 24px 22px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px rgba(33,50,69,0.04);
  flex: 1 1 320px;
}
@media (max-width: 768px) {
  .team-list, .blog-list, .project-list, .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-section,
  .testimonial-card {
    max-width: 100%;
  }
}

/* NAVIGATION STYLES */
header {
  background: #fff;
  border-bottom: 1px solid #e8ecf1;
  position: sticky;
  top: 0;
  z-index: 990;
}
header > .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 18px;
}
header a img { height: 38px; }
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1;
  color: #213245;
  padding: 5px 10px;
  border-radius: 7px;
  transition: background .17s, color .17s;
}
header nav a:hover, header nav a:focus {
  background: #8FB6C9;
  color: #fff;
}
.btn {
  display: inline-block;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 1.09em;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 6px 0 rgba(33,50,69,0.06);
  border: none;
  cursor: pointer;
  outline: none;
  transition: background .19s, color .19s, box-shadow .19s;
  margin-top: 8px;
  margin-bottom: 8px;
  min-width: 150px;
}
.btn-primary {
  background: #213245;
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: #8FB6C9;
  color: #213245;
  box-shadow: 0 6px 22px 0 rgba(33,50,69,0.10);
}
.btn-secondary {
  background: #fff;
  color: #213245;
  border: 1px solid #8FB6C9;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #8FB6C9;
  color: #fff;
  border-color: #213245;
}

/* ---  MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #213245;
  padding: 6px 12px;
  cursor: pointer;
  display: none;
  margin-left: 12px;
  border-radius: 6px;
  transition: background .12s;
  z-index: 1012;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F4F7FA;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform .36s cubic-bezier(.83,.04,.24,1);
  box-shadow: 0 6px 64px -6px rgba(33,50,69,0.22);
  padding: 32px 18px 18px 18px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #213245;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  border-radius: 8px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #F4F7FA;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  color: #213245;
  padding: 14px 10px;
  border-radius: 8px;
  background: #F4F7FA;
  margin-bottom: 4px;
  transition: background .17s, color .17s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #8FB6C9;
  color: #fff;
}

@media (max-width: 1050px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1051px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* ---- FOOTER ---- */
footer {
  background: #fff;
  border-top: 1px solid #e8ecf1;
  padding: 32px 0 24px 0;
  color: #213245;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 15px;
}
footer > .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
footer a img {
  height: 36px;
  margin-bottom: 10px;
}
footer nav {
  display: flex;
  gap: 16px;
}
footer nav a {
  color: #576579;
  font-size: 1.05em;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  padding: 4px 7px;
  border-radius: 7px;
  transition: background .14s, color .16s;
}
footer nav a:hover, footer nav a:focus {
  background: #F4F7FA;
  color: #213245;
}
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.97em;
}
.contact-block div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-block img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
@media (max-width: 900px) {
  footer > .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* --- CTA FINAL --- */
.cta-final {
  background: #F4F7FA;
  border-radius: 24px;
  padding: 56px 0;
  margin-bottom: 32px;
}
.cta-final .content-wrapper {
  gap: 16px;
  align-items: center;
  text-align: center;
}
.cta-final h2 {
  color: #213245;
  font-size: 2.1rem;
}
.cta-final p {
  color: #213245;
  font-size: 1.13em;
}
@media (max-width: 768px) {
  .cta-final {
    padding: 28px 0;
  }
}

/* --- SPECIAL ELEMENTS --- */
.info-block {
  background: #fff;
  border-left: 3px solid #8FB6C9;
  padding: 18px;
  margin: 16px 0;
  border-radius: 9px;
  font-size: 1.08em;
  color: #213245;
  box-shadow: 0 1px 8px rgba(33,50,69,0.04);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -4px 24px 0 rgba(33,50,69,0.09);
  border-top: 1px solid #e8ecf1;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 12px 22px 12px;
  gap: 24px;
  transition: transform .32s cubic-bezier(.83,.04,.24,1), opacity .22s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-banner-message {
  flex: 1 1 340px;
  max-width: 540px;
  margin-right: 14px;
  font-size: 1.06em;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-btn {
  border: none;
  border-radius: 21px;
  background: #213245;
  color: #fff;
  padding: 10px 26px;
  font-size: 1em;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  margin-left: 7px;
  margin-bottom: 3px;
  transition: background .18s, color .18s, box-shadow .18s;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(33,50,69,0.06);
}
.cookie-btn.cookie-accept {
  background: #213245;
  color: #fff;
}
.cookie-btn.cookie-accept:hover, .cookie-btn.cookie-accept:focus {
  background: #8FB6C9;
  color: #213245;
}
.cookie-btn.cookie-reject {
  background: #fff;
  color: #213245;
  border: 1px solid #213245;
}
.cookie-btn.cookie-reject:hover, .cookie-btn.cookie-reject:focus {
  background: #8FB6C9;
  color: #fff;
  border-color: #8FB6C9;
}
.cookie-btn.cookie-settings {
  background: #8FB6C9;
  color: #fff;
}
.cookie-btn.cookie-settings:hover, .cookie-btn.cookie-settings:focus {
  background: #213245;
  color: #fff;
}
@media (max-width: 800px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 18px; }
  .cookie-banner .cookie-banner-message { margin-right: 0; }
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal-backdrop {
  position: fixed;
  left:0; right:0; top:0; bottom:0;
  background: rgba(33,50,69,0.33);
  z-index: 4100;
  display: none;
  transition: opacity .2s;
}
.cookie-modal-backdrop.active {
  display: block;
  opacity: 1;
}
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 64px -12px rgba(33,50,69,0.19);
  z-index: 4200;
  width: 100%;
  max-width: 430px;
  padding: 38px 26px 28px 26px;
  opacity: 1;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .22s, transform .22s;
}
.cookie-modal.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
  visibility: visible;
}
.cookie-modal h2 {
  font-size: 1.35em;
  margin-bottom: 13px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #e8ecf1;
}
.cookie-category:last-child { border-bottom: none; }
.cookie-category label {
  flex: 1 1;
  font-size: 1.08em;
  color: #213245;
}
.cookie-category input[type="checkbox"] {
  accent-color: #8FB6C9;
  width: 20px;
  height: 20px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}
.cookie-modal .cookie-btn {
  min-width: 105px;
  padding: 9px 14px;
}
.cookie-modal .cookie-info {
  font-size: 0.97em;
  color: #576579;
  margin-bottom: 9px;
}
/* Essential cookie - always enabled visual cue */
.cookie-category .cookie-essential-label {
  font-weight: bold;
  color: #213245;
  font-size: 1.04em;
}
.cookie-category .cookie-essential-switch {
  color: #8FB6C9;
  margin-left: 12px;
  font-size: 0.97em;
  font-style: italic;
}

/* --- ANIMATIONS --- */
.transition-fade {
  transition: opacity .17s;
}

/* --- MISC UTILS --- */
.mb-24 { margin-bottom: 24px; }
.mt-18 { margin-top: 18px; }
.gap-16 { gap: 16px; }

/* --- BRAND COLORS UTILITY CLASSES --- */
.bg-primary { background: #213245 !important; color: #fff !important; }
.bg-secondary { background: #8FB6C9 !important; color: #213245 !important; }
.bg-light { background: #F4F7FA !important; color: #213245 !important; }
.text-primary { color: #213245 !important; }
.text-secondary { color: #8FB6C9 !important; }
.text-light { color: #fff !important; }

/* --- FEATURE GRID (INDEX ATTRIBUTES) --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: space-between;
}
.feature-grid > div {
  flex: 1 1 220px;
  padding: 24px 18px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 11px rgba(33,50,69,0.06);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 200px;
  transition: box-shadow .18s;
}
.feature-grid > div:hover {
  box-shadow: 0 10px 32px 0 rgba(33,50,69,0.09);
}
.feature-grid h3 {
  font-size: 1.18em;
  margin-top: 14px;
}
.feature-grid img {
  width: 44px;
  height: 44px;
}
@media (max-width: 1000px) {
  .feature-grid { flex-direction: column; }
  .feature-grid > div { max-width: 100%; }
}

/* --- BUTTON MICRO-INTERACTION --- */
.btn, .cookie-btn {
  transition: background .22s, color .19s, transform .14s, box-shadow .19s;
}
.btn:active, .cookie-btn:active {
  transform: scale(0.98);
}

/* --- SCROLLBAR FOR MODALS --- */
.cookie-modal {
  max-height: 94vh;
  overflow-y: auto;
}

/* --- REMOVE OUTLINE GAPS ON FOCUS FOR BUTTONS --- */
.btn:focus, .cookie-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid #8FB6C9;
  outline-offset: 2px;
}

/* --- RESPONSIVE IMPROVEMENTS --- */
@media (max-width: 700px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
}
@media (max-width: 500px) {
  .btn, .cookie-btn, .btn-primary, .btn-secondary {
    padding: 10px 10px;
    font-size: 0.98em;
    min-width: unset;
  }
  .hero h1, .cta-final h2, h2 { font-size: 1.06rem; }
}

/* --- ACCESSIBLE FOCUS STATES --- */
a:focus, button:focus, .btn:focus, .cookie-btn:focus {
  box-shadow: 0 0 0 2px #8FB6C9 inset;
  outline: none;
}

/* --- BLOG TAGS & CATEGORY LIST --- */
.text-section span {
  background: #e8ecf1;
  color: #213245;
  border-radius: 8px;
  padding: 4px 12px;
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 4px;
  font-size: 0.97em;
}
/* --- TABLES, WHEN USED --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}
th, td {
  border: 1px solid #e8ecf1;
  padding: 8px 12px;
  text-align: left;
  font-size: 1em;
}
th {
  background: #F4F7FA;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
}

/* --- Z-INDEX LAYERING FOR INTERACTIVE ELEMENTS --- */
header, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-backdrop {
  z-index: 999 !important;
}

/* --- ENSURE NO CONTENT OVERLAP --- */
main, footer { position: relative; z-index: 1; }

/* --- END MINIMALIST, FLEXBOX-FOCUSED SWEEPCANYON CSS --- */