/* --- 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;
}
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { line-height: 1.6; background: #F6F8FC; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }

/* --- BRAND FONTS AND BASE TYPOGRAPHY --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #27314B;
  background: #F6F8FC;
  font-size: 16px;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #27314B;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}
p, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #27314B;
  margin-bottom: 16px;
}
p:last-child, li:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

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

/* --- FLEX UTILITY CLASSES (NO GRID) --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px 0 rgba(39,49,75,0.06);
}
.section:last-child { margin-bottom: 0; }
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(39,49,75,0.09);
  padding: 32px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(34,150,207,.11);
}
.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: 24px 28px 24px 28px;
  background: #f6f8fc;
  border-radius: 14px;
  box-shadow: 0 1px 12px rgba(39,49,75,.07);
  margin-bottom: 20px;
  max-width: 470px;
  min-width: 230px;
}
.testimonial-card p {
  font-size: 1.06rem;
  color: #253962;
  margin-bottom: 10px;
}
.testimonial-card span { font-size: 0.95rem; color: #2296CF; font-weight: 500; }
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

/* Cards for various lists */
.feature-grid, .service-list, .blog-list, .case-study-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.feature-grid > div,
.service-list > div,
.blog-list > div,
.case-study-cards > div {
  background: #fff;
  border-radius: 12px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 330px;
  padding: 32px 24px;
  box-shadow: 0 1px 10px rgba(39,49,75,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.18s, transform 0.18s;
  margin-bottom: 20px;
}
.feature-grid > div:hover,
.service-list > div:hover,
.blog-list > div:hover,
.case-study-cards > div:hover {
  box-shadow: 0 8px 20px 0 rgba(34,150,207,.10);
  transform: translateY(-2px);
}
.feature-grid img,
.service-list img,
.case-study-cards img,
.trust-badges img {
  height: 40px;
  width: 40px;
  margin-bottom: 10px;
}
.trust-badges {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}
.client-logos, .client-highlights, .client-showcase {
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 32px 0 0 0;
}

/* --- HEADER --- */
header {
  background: #fff;
  border-bottom: 1px solid #E3E7EE;
  box-shadow: 0 2px 6px 0 rgba(39,49,75,0.02);
  position: sticky; top: 0; z-index: 110;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 0 20px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #27314B;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 0;
  position: relative;
  transition: color 0.14s;
  border-radius: 6px;
}
header nav a:hover,
header nav a:focus {
  color: #2296CF;
  background: #f0fafe;
}
.primary-cta {
  background: #2296CF;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.14rem;
  padding: 12px 28px;
  border-radius: 8px;
  box-shadow: 0 2px 4px 0 rgba(34,150,207,0.07);
  border: none;
  outline: none;
  transition: background 0.16s, box-shadow 0.16s;
  margin-left: 14px;
  display: inline-block;
  cursor: pointer;
}
.primary-cta:hover, .primary-cta:focus {
  background: #1868A3;
  box-shadow: 0 4px 8px 0 rgba(39,49,75,0.09);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #27314B;
  font-size: 2.1rem;
  cursor: pointer;
  margin-left: 24px;
  padding: 6px 16px;
  border-radius: 7px;
  transition: background 0.13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #eef6fc;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  z-index: 130;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 0 32px 4px rgba(39,49,75,0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(-110vw);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.68,-.55,.27,1.55), opacity 0.2s;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 26px 32px 0 0;
  font-size: 2.6rem;
  background: none;
  border: none;
  color: #27314B;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #2296CF;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 40px 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: #2296CF;
  padding: 10px 0;
  border-radius: 7px;
  width: 100%;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #1868A3;
  background: #eef6fc;
}

/* --- HERO SECTIONS --- */
.hero {
  background: #F6F8FC;
  margin-bottom: 60px;
  padding: 56px 0 48px 0;
  display: flex;
  align-items: center;
  min-height: 340px;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 18px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(39,49,75,0.06);
  max-width: 700px;
}
.hero h1 {
  color: #27314B;
  font-size: 2.5rem;
  line-height: 1.12;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.13rem;
  color: #3D4B66;
}
.hero .primary-cta {
  margin-top: 8px;
}

.team-photo {
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.team-photo img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #eef6fc;
  box-shadow: 0 1px 8px rgba(39,49,75,0.06);
}

/* --- FEATURES, SERVICES, BLOG, CASES --- */
.features, .services, .about, .contact, .testimonials {
  margin-bottom: 60px;
  padding: 40px 0;
}
.features .content-wrapper,
.services .content-wrapper,
.about .content-wrapper,
.contact .content-wrapper,
.testimonials .content-wrapper {
  margin: 0 auto;
  max-width: 900px;
}
.features ul,
.about ul,
.services ul {
  list-style: none;
  padding: 0 0 10px 0;
  margin: 0;
}
.features ul li,
.about ul li,
.services ul li {
  margin-bottom: 10px;
  padding-left: 0;
  color: #27314B;
  font-size: 1rem;
  line-height: 1.6;
}
.features ul li strong,
.services ul li strong {
  color: #2296CF;
  font-weight: 600;
}
.platform-features, .integration-options, .quantifiable-results, .project-summaries, .marketplace-overview {
  margin-top: 24px;
  background: #F6F8FC;
  border-radius: 14px;
  padding: 20px 18px;
}

.text-section {
  padding: 0;
  background: none;
}
.text-section ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 10px;
}
.text-section ul li img {
  width: 22px;
  height: 22px;
}

/* --- TESTIMONIALS --- */
.testimonial-carousel {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 22px;
}

/* --- BLOG ARTICLES --- */
.blog-list > div {
  min-height: 170px;
}
.featured-article {
  background: #fff;
  border-radius: 12px;
  padding: 28px 22px;
  margin: 28px 0 0 0;
  box-shadow: 0 1px 10px rgba(39,49,75,0.09);
}

/* --- FOOTER --- */
footer {
  background: #27314B;
  color: #fff;
  padding: 38px 0 0 0;
  font-size: 0.98rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.footer-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #364162;
  padding-bottom: 18px;
}
.footer-top img {
  width: 46px;
  height: 46px;
}
.footer-top nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-top nav a {
  color: #F6F8FC;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.93;
  transition: color 0.14s;
}
.footer-top nav a:hover,
.footer-links a:hover { color: #2296CF; }
.footer-links {
  width: 100%;
  display: flex;
  gap: 22px;
  margin: 18px 0 0 0;
  justify-content: center;
}
.footer-links a {
  color: #a6b7d6;
  font-size: 0.97rem;
  transition: color 0.13s;
}
.footer-social {
  width: 100%;
  display: flex;
  gap: 14px;
  margin: 15px 0 0 0;
  justify-content: center;
}
.footer-social img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
  opacity: 0.87;
  transition: opacity 0.12s;
}
.footer-social img:hover { opacity: 1; }
.footer-copy {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 18px 0 8px 0;
  opacity: 0.72;
  font-size: 0.93rem;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #27314B;
  color: #fff;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 250;
  box-shadow: 0 -4px 32px rgba(34,150,207,.10);
  font-size: 1rem;
  transition: transform 0.3s, opacity 0.3s;
}
.cookie-banner.hide { transform: translateY(120%); opacity: 0; pointer-events: none; }
.cookie-banner.show { transform: translateY(0); opacity: 1; pointer-events: all; }
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 6px;
}
.cookie-btn {
  border: none;
  outline: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.17s, color 0.16s;
}
.cookie-btn.accept {
  background: #2296CF;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #1868A3;
}
.cookie-btn.reject {
  background: #fff;
  color: #2296CF;
  border: 1.5px solid #2296CF;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #E3E7EE;
  color: #1868A3;
}
.cookie-btn.settings {
  background: #364162;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #435081;
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; height: 100vh; width: 100vw;
  z-index: 300;
  background: rgba(39,49,75,0.44);
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cookie-modal.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 48px 0 rgba(34,150,207,.13);
  padding: 38px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 410px;
  min-width: 300px;
  gap: 20px;
  position: relative;
  animation: fadeInModal 0.4s cubic-bezier(.66,-0.48,.17,1.34);
}
@keyframes fadeInModal {
  0% { transform: scale(0.82); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  color: #2296CF;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
}
.cookie-category label {
  font-size: 1rem;
  color: #27314B;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: #E3E7EE;
  border-radius: 13px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  cursor: pointer;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px; background: #fff;
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 1px 4px rgba(39,49,75,0.11);
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  transform: translateX(16px);
  background: #2296CF;
}
.cookie-modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: #2296CF;
  cursor: pointer;
}
.cookie-modal-close:hover {
  color: #1868A3;
}

/* --- RESPONSIVE QUERIES & FLEX --- */
@media (max-width: 1100px) {
  .container { max-width: 97vw; }
  .hero .container, .footer-top { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 900px) {
  .feature-grid > div, .service-list > div, .blog-list > div, .case-study-cards > div {
    max-width: 100%;
    flex: 1 1 260px;
  }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 768px) {
  html { font-size: 97%; }
  body { font-size: 15px; }
  header .container { flex-direction: row; }
  header nav { display: none; }
  .primary-cta { display: none; }
  .mobile-menu-toggle { display: block; }
  .hero {
    min-height: 160px;
    padding: 32px 0 26px 0;
  }
  .hero .container, .hero .content-wrapper {
    flex-direction: column;
    max-width: 98vw;
    padding: 18px 4px;
  }
  .features, .about, .services, .testimonials, .contact {
    margin-bottom: 38px; padding: 24px 0;
  }
  .feature-grid, .service-list, .blog-list, .case-study-cards, .testimonial-carousel {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card { max-width: 100%; }
  .content-grid, .footer-links, .client-logos, .client-highlights, .client-showcase {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }
  .trust-badges { gap: 11px; }
  .about .content-wrapper, .features .content-wrapper, .testimonials .content-wrapper, .services .content-wrapper, .contact .content-wrapper {
    max-width: 97vw;
    padding: 0 0 0 0;
  }
  footer .container { padding: 0 8px; }
  .cookie-modal-content { min-width: 90vw; max-width: 98vw; }
}
@media (hover: hover) {
  .primary-cta:hover, .footer-top nav a:hover {
    filter: brightness(1.04);
    text-decoration: none;
  }
}

@media (max-width: 500px) {
  .section,
  .hero .content-wrapper,
  .feature-grid > div, .service-list > div, .blog-list > div, .case-study-cards > div,
  .featured-article, .platform-features, .integration-options, .quantifiable-results {
    padding: 16px 7px;
  }
  .testimonial-card {
    padding: 15px 11px 15px 11px;
  }
}

/* --- MISC --- */
::-webkit-input-placeholder { color: #798099; }
:-ms-input-placeholder { color: #798099; }
::placeholder { color: #798099; }

button:focus, a:focus, .cookie-btn:focus {
  outline: 2px solid #2296CF;
  outline-offset: 2px;
}

/* --- Z-INDEX LAYERING (for overlays) --- */
header { z-index: 110; }
.mobile-menu { z-index: 130; }
.cookie-banner { z-index: 250; }
.cookie-modal { z-index: 300; }

/* --- END --- */
