/* --- 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,
main, 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 {box-sizing: border-box;}
*, *:before, *:after {box-sizing: inherit;}
body {
  min-height: 100vh;
  background: #F5F6FA;
  color: #315279;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {max-width: 100%;display: block;border: 0;}
a {text-decoration: none;color: #315279;transition: color 0.2s;}
a:hover, a:focus {color: #6EB4D1;text-decoration: underline;}
ul, ol {margin-left: 20px;}
strong {font-weight: bold;}

/* --- SOFT PASTEL PALETTE EXTENSIONS --- */
:root {
  --primary: #315279;
  --secondary: #6EB4D1;
  --accent: #F5F6FA;
  --pastel-blue: #D1E6FA;
  --pastel-mint: #C6F4EF;
  --pastel-lilac: #E6E1FB;
  --pastel-yellow: #FFF6DC;
  --pastel-pink: #FFE4ED;
  --text-main: #26435C;
  --text-soft: #627692;
  --white: #fff;
  --shadow: 0 4px 16px 0 rgba(49,82,121,0.06);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #315279;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.18;
  margin-bottom: 24px;
  color: #315279;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #4C5499;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #45729C;
}
h4, h5, h6 { font-size: 1rem; }
.subheadline {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 400;
  color: var(--text-soft);
  margin-bottom: 26px;
}
p {margin-bottom: 18px;}
.text-section p:last-child,
.text-section ul:last-child {margin-bottom: 0;}

/* --- CONTAINER & WRAPPERS --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {width: 100%;}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 40px;
    border-radius: 14px;
  }
  .container {padding: 0 12px;}
}

/* --- HEADER & NAVIGATION --- */
header {
  position: relative;
  background: linear-gradient(90deg, #D1E6FA 0%, #FFF6DC 100%);
  box-shadow: 0 2px 16px 0 rgba(49,82,121,0.04);
  z-index: 100;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  color: var(--text-main);
  font-weight: 500;
  padding: 6px 2px;
  border-radius: 4px;
  transition: background 0.15s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--pastel-blue);
  color: var(--secondary);
  outline: none;
}
.btn-primary {
  display: inline-block;
  background: #6EB4D1;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  padding: 12px 36px;
  border-radius: 26px;
  box-shadow: 0 2px 8px 0 rgba(110,180,209,0.10);
  border: none;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.2s, transform 0.2s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #315279;
  color: #FFF;
  box-shadow: 0 4px 16px 0 rgba(49,82,121,0.14);
  transform: translateY(-2px) scale(1.02);
  outline: none;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #fff;
  border: none;
  font-size: 2rem;
  line-height: 1;
  padding: 8px 16px;
  border-radius: 50%;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 120;
  cursor: pointer;
  transition: background 0.15s, color 0.12s;
  box-shadow: 0 2px 10px 0 rgba(110,180,209,0.10);
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--secondary);
  background: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.51,.7,.25,1);
  box-shadow: -2px 0 24px 0 rgba(49,82,121,0.10);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  background: var(--pastel-blue);
  color: var(--primary);
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  margin: 22px 16px 8px auto;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(209,230,250,0.16);
  transition: background 0.2s, color 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: #fff;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  margin-top: 40px;
  padding-left: 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: var(--primary);
  padding: 8px 2px;
  margin-right: 10px;
  border-radius: 8px;
  transition: background 0.14s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-blue);
  color: var(--secondary);
}
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1025px) { .mobile-menu { display: none!important; } }

/* --- HERO & GENERIC SECTIONS --- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: transparent;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 36px;
    padding: 20px 0;
  }
}
.content-grid, .feature-grid, .service-overview-list, .blog-list, .case-studies-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
}
@media (max-width: 900px) {
  .content-grid,
  .feature-grid,
  .service-overview-list,
  .blog-list,
  .case-studies-list {
    gap: 18px;
    flex-direction: column;
    align-items: stretch;
  }
}
/* --- FEATURE, SERVICE, CASE STUDY, BLOG ITEMS --- */
.feature-item, .service-item, .case-study-summary, .blog-post {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 18px;
  padding: 28px 22px 24px 22px;
  box-shadow: 0 2px 10px rgba(49,82,121,0.06);
  margin-bottom: 20px;
  min-width: 285px;
  max-width: 420px;
  transition: box-shadow 0.15s, transform 0.18s;
}
.feature-item:hover, .service-item:hover, .case-study-summary:hover, .blog-post:hover {
  box-shadow: 0 6px 22px 0 rgba(110,180,209,0.16);
  transform: translateY(-2px) scale(1.015);
}
.feature-item img, .service-item img {
  width: 40px; height: 40px;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 4px #C6F4EF);
}
.blog-post.featured {
  background: var(--pastel-blue);
  border-left: 5px solid var(--secondary);
}
.blog-post h3 a {color: #315279;}
.meta {
  font-size: 0.93em;
  color: #7897B2;
}

/* --- TESTIMONIAL SLIDER & CARDS --- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--pastel-mint);
  color: #315279;
  border-radius: 22px;
  padding: 24px 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(49,82,121,0.07);
  min-width: 230px; max-width: 390px;
  flex: 1 1 220px;
  font-size: 1.06em;
  transition: box-shadow 0.15s, transform 0.14s;
}
.testimonial-card:hover, .testimonial-card:focus {
  background: var(--pastel-blue);
  box-shadow: 0 8px 24px rgba(49,82,121,0.13);
  outline: none;
  transform: translateY(-3px) scale(1.025);
}
.testimonial-card p {
  color: #315279;
  font-size: 1.08em;
  margin-bottom: 8px;
}
.testimonial-author {
  color: #45729C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: italic;
  font-size: 0.99em;
  margin-top: 0;
  align-self: flex-end;
}

/* --- CTA & NEWSLETTER --- */
.text-section {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
@media (max-width: 768px) {
  .text-section {
    padding: 0;
    gap: 15px;
  }
  .testimonial-card {
    padding: 18px 12px;
  }
}

/* --- CONTACT INFO --- */
.contact-info-block {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.contact-info-block .text-section {
  min-width: 250px;
  max-width: 400px;
}
@media (max-width: 768px) {
  .contact-info-block {flex-direction: column;gap: 16px;}
}

/* --- FOOTER --- */
footer {
  background: #E6E1FB;
  border-top: 3px solid #D1E6FA;
  margin-top: 60px;
  font-size: 1em;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 42px;
  padding: 38px 0 22px 0;
}
.footer-brand {
  flex: 1 1 256px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #315279;
  font-size: 1em;
}
.footer-brand img {margin-bottom: 10px;}
.footer-brand p {margin-bottom: 8px; color: #315279;}
.footer-links {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #315279;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-links a:hover {color: #6EB4D1;}
.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  padding: 7px;
  border-radius: 50%;
  transition: background 0.12s;
  background: transparent;
}
.footer-social a:hover {
  background: var(--pastel-blue);
}
footer img[alt*='Icon'] {width: 19px; height: 19px;}
.copyright {
  border-top: 1px solid #D1E6FA;
  padding: 13px 0;
  color: #627692;
  font-size: 0.98em;
  text-align: center;
}
@media (max-width: 900px) {
  .footer-flex {flex-direction: column;gap: 16px;}
}

/* --- GENERAL FORMS, BUTTONS, INTERACTIONS --- */
input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}
button, .btn-primary {
  cursor: pointer;
  outline: none;
}
.btn-primary:active {transform: scale(0.97);}

/* --- LISTS & BLOCKS --- */
ul, ol {
  padding-left: 25px;
  margin-bottom: 18px;
}
ul:last-child, ol:last-child {margin-bottom: 0;}
li {margin-bottom: 10px;}
li:last-child {margin-bottom: 0;}

/* --- CARDS & FLEX CONTAINERS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.16s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 22px 0 rgba(110,180,209,0.16);
  transform: translateY(-3px) scale(1.015);
}

/* --- STRICT LAYOUT/FLEX FOR GIVEN CLASSES --- */
.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: stretch;}
}
.testimonial-card {display: flex; align-items: center; gap: 20px; padding: 20px;}
.feature-item {display: flex; flex-direction: column; align-items: flex-start; gap: 15px;}

/* --- MODALS & OVERLAYS --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(49,82,121,0.17);
  z-index: 2100;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadein 0.25s;
}
@keyframes fadein { from {opacity: 0;} to {opacity: 1;} }
.modal {
  background: #fff;
  padding: 36px 26px 32px 26px;
  border-radius: 18px;
  box-shadow: 0 8px 24px 0 rgba(49,82,121,0.12);
  max-width: 440px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.modal h3 {margin-top: 0;margin-bottom: 14px;}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1600;
  width: 100vw;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  background: #FFE4ED;
  color: #26435C;
  border-top: 2px solid #D1E6FA;
  box-shadow: 0 -2px 14px 0 rgba(49,82,121,0.06);
  padding: 22px 38px;
  font-size: 1rem;
  transition: transform 0.35s cubic-bezier(.78,.03,.22,1);
  will-change: transform;
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner-text {
  flex: 2 1 260px;
  min-width: 210px;
}
.cookie-banner-buttons {
  flex: 1 1 140px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  padding: 10px 20px;
  border-radius: 18px;
  border: none;
  margin: 0;
  box-shadow: 0 1px 3px rgba(49,82,121,0.08);
  background: var(--secondary);
  color: var(--white);
  font-weight: 500;
  transition: background 0.15s, color 0.12s;
  cursor: pointer;
}
.cookie-banner .cookie-btn-accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .cookie-btn-accept:hover { background: var(--primary); }
.cookie-banner .cookie-btn-reject {
  background: #FFBFCB;
  color: #315279;
}
.cookie-banner .cookie-btn-reject:hover {
  background: #FFD7DE;
}
.cookie-banner .cookie-btn-settings {
  background: #E6E1FB;
  color: #315279;
}
.cookie-banner .cookie-btn-settings:hover { background: #D1E6FA; }
@media (max-width: 600px) {
  .cookie-banner {flex-direction: column;align-items: stretch;padding: 12px 5px;gap: 10px;}
  .cookie-banner-buttons {justify-content: flex-start;gap: 10px;}
}

.cookie-preferences-modal {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-preferences-category {
  background: #F5F6FA;
  border-radius: 10px;
  padding: 14px 12px;
  margin-bottom: 10px;
}
.cookie-pref-toggle {
  appearance: none;
  width: 42px; height: 22px;
  background: #E6E1FB;
  border-radius: 16px;
  position: relative;
  outline: none;
  margin-left: 14px;
  vertical-align: middle;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-pref-toggle:checked {
  background: #6EB4D1;
}
.cookie-pref-toggle::before {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(49,82,121,0.14);
  transition: transform 0.16s;
}
.cookie-pref-toggle:checked::before {
  transform: translateX(20px);
}
.cookie-pref-label {
  font-size: 1em;
  margin-left: 10px;
}

/* --- ACCESSIBILITY FOCUS --- */
:focus {
  outline: 2px dashed #6EB4D1;
  outline-offset: 2px;
}

/* --- TRANSITIONS & MICRO-ANIMATIONS --- */
.btn-primary, .feature-item, .service-item, .case-study-summary, .card, .blog-post, .testimonial-card, .cookie-banner button, .footer-links a {
  transition: box-shadow 0.15s, background 0.16s, color 0.12s, transform 0.12s;
}

/* --- RESPONSIVE TYPOGRAPHY & SCALE --- */
@media (max-width: 600px) {
  h1 {font-size: 1.68rem;}
  h2 {font-size: 1.33rem;}
  h3 {font-size: 1.08rem;}
  .btn-primary {font-size: 1.06rem;padding: 10px 18px;}
}

/* --- PREVENT CARD OVERLAP --- */
.card, .feature-item, .service-item, .case-study-summary, .testimonial-card, .blog-post {
  min-width: 0;  /* let flexbox shrink as needed */
  box-sizing: border-box;
}

/* --- UTILITY --- */
.show {display: block;}
.hide {display: none;}

/* --- SPECIAL: GRADIENT & PASTEL EFFECTS --- */
.pastel-bg {
  background: linear-gradient(90deg,#C6F4EF 0%, #FFE4ED 100%);
  border-radius: 16px;
}

/* --- SCROLLBAR (PASTEL THEME) --- */
::-webkit-scrollbar {width: 8px;background: #F5F6FA;}
::-webkit-scrollbar-thumb {background: #E6E1FB;border-radius: 8px;}
::-webkit-scrollbar-thumb:hover {background: #D1E6FA;}

/* --- END OF STYLE --- */
