/* ----- CSS RESET & NORMALIZE ----- */
html {
  box-sizing: border-box;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #fff;
  color: #23272F;
  font-family: 'Roboto', Arial, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #6EC1E4;
  text-decoration: none;
  transition: color 0.25s cubic-bezier(.77,0,.175,1);
}
a:hover, a:focus {
  color: #FFD600;
  outline: none;
}
ul, ol {
  list-style: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: #23272F;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.75rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
h4 { font-size: 1.25rem; }
strong, b { font-weight: 700; }
p, li, address { font-size: 1rem; }

/* ----- CONTAINER PATTERN ----- */
.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1240px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* ----- HEADER STYLES ----- */
header {
  background: #23272F;
  color: #fff;
  width: 100%;
  box-shadow: 0 2px 8px rgba(35, 39, 47, 0.06);
  position: sticky;
  top: 0;
  z-index: 1001;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 6px;
  padding: 8px 12px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #FFD600;
  color: #23272F;
}

.btn-primary, .btn-secondary {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  display: inline-block;
  padding: 12px 36px;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(35, 39, 47, 0.12);
  margin-left: 18px;
  margin-right: 8px;
}
.btn-primary {
  background: #FFD600;
  color: #23272F;
}
.btn-primary:hover, .btn-primary:focus {
  background: #6EC1E4;
  color: #fff;
}
.btn-secondary {
  background: #23272F;
  color: #FFD600;
  border: 2px solid #FFD600;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #6EC1E4;
  color: #fff;
  border-color: #6EC1E4;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFD600;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 16px;
  border-radius: 8px;
  transition: background 0.15s;
  padding: 3px 15px 3px 6px;
  z-index: 1010;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #FFD600;
}

/* --- Mobile Menu Styles --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(35,39,47,0.96);
  color: #fff;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.175,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #FFD600;
  font-size: 2rem;
  padding: 16px 20px 0 20px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  outline: 2px solid #FFD600;
}
.mobile-nav {
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 12px 0;
  border-radius: 4px;
  transition: background 0.21s, color 0.21s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFD600;
  color: #23272F;
}

/* ----- HERO, SECTION, CTAS ----- */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.hero {
  background: #F7F8FA;
  margin-bottom: 48px;
  padding: 60px 20px 56px 20px;
  position: relative;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  color: #23272F;
  margin-bottom: 22px;
}

.cta {
  background: #6a6c6e;
  color: #fff;
  border-radius: 32px;
  box-shadow: 0 2px 24px rgba(35,39,47,0.02);
  margin-bottom: 64px;
}
.cta .btn-primary { margin: 0; }

/* ----- FLEX WRAPPED GRIDS ----- */
.feature-grid, .service-list, .service-category-list, .case-study-list, .post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 -8px;
}
.feature-item, .service-item, .service-card, .case-study, .post-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(35,39,47,0.09);
  min-width: 260px;
  flex: 1 1 250px;
  margin: 8px;
  padding: 28px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  border: 2.5px solid #F2F4F8;
  transition: border-color 0.18s, box-shadow 0.21s;
}
.feature-item:hover, .service-card:hover, .case-study:hover, .post-item:hover {
  border-color: #6EC1E4;
  box-shadow: 0 4px 24px rgba(35,39,47,0.16);
}
.feature-item img, .service-card img, .case-study img {
  max-width: 54px;
  margin-bottom: 8px;
}

/* ----- TESTIMONIALS SECTION ----- */
.testimonials {
  background: #fff;
  margin-bottom: 60px;
  padding: 44px 20px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 30px 22px 30px;
  border-radius: 18px;
  background: #F7F8FA;
  color: #23272F;
  font-size: 1.043rem;
  box-shadow: 0 4px 22px rgba(35,39,47,0.05);
  border-left: 7px solid #6EC1E4;
  min-width: 270px;
  max-width: 410px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 28px rgba(35,39,47,0.13);
  border-left-color: #FFD600;
}
.testimonial-card strong {
  color: #6EC1E4;
  font-weight: 700;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.02rem;
  margin-top: 4px;
}

/* For testimonials page */
.testimonials .testimonial-card {
  background: #fff;
  border: 2px solid #E5E9EF;
  border-left: 7px solid #FFD600;
  color: #23272F;
}

/* ----- LOGOS STRIP AND CLIENT LOGOS ----- */
.logos-strip, .clients-logos-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 16px;
}
.logos-strip img, .clients-logos-grid img {
  height: 38px;
  width: auto;
  opacity: 0.80;
  transition: opacity 0.19s;
}
.logos-strip img:hover, .clients-logos-grid img:hover {
  opacity: 1;
}

/* ----- LISTS & VALUES ----- */
.value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.value-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.09rem;
  background: #F7F8FA;
  border-radius: 12px;
  padding: 18px 26px;
  box-shadow: 0 2px 10px rgba(35,39,47,0.04);
  flex: 1 1 210px;
  min-width: 160px;
}
.value-list img {
  max-height: 34px;
}

.core-competencies,
.outcome-summaries,
.industry-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 16px;
  margin-top: 12px;
}

/* ----- BLOG LIST & FILTERS ----- */
.blog-list .post-list {
  gap: 24px;
  flex-wrap: wrap;
}
.post-item {
  background: #F5FBFD;
  border-left: 6px solid #6EC1E4;
  box-shadow: 0 2px 14px rgba(35,39,47,0.08);
}
.category-filters {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 28px 0 12px 0;
}
.category-filters a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  background: #23272F;
  color: #fff;
  border-radius: 7px;
  padding: 6px 18px;
  transition: background 0.17s;
}
.category-filters a:hover, .category-filters a:focus {
  background: #FFD600;
  color: #23272F;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.tag-cloud span {
  background: #E8FBFD;
  color: #23272F;
  border-radius: 8px;
  padding: 4px 14px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ----- CONTACT INFO ----- */
.contact-info .content-wrapper > div {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.08rem;
  background: #F7F8FA;
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 15px 22px;
}
.contact-info img {
  max-height: 28px;
}

/* ----- FOOTER STYLES ----- */
footer {
  background: #23272F;
  color: #fff;
  padding: 0 0 0 0;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 25px;
  padding: 40px 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #FFD600;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #6EC1E4;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 0.99rem;
}
.footer-contact img {
  vertical-align: middle;
  margin-right: 7px;
  max-height: 18px;
  display: inline-block;
}
.footer-contact address {
  font-style: normal;
  margin-bottom: 6px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin: 16px 0 6px 0;
}
.footer-social img {
  height: 28px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.85;
  transition: filter 0.17s, opacity 0.17s;
  cursor: pointer;
}
.footer-social img:hover {
  filter: none;
  opacity: 1;
}
.footer-logo img {
  height: 40px;
}

/* LEGAL SECTIONS */
.legal {
  background: #FAFBFF;
  border-radius: 18px;
  box-shadow: 0 2px 15px rgba(35,39,47,.06);
  margin-bottom: 60px;
  padding: 45px 25px;
}

/* --- THANK-YOU PAGE --- */
.thank-you .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 18px;
}

/* -------------------------
   FLEXBOX CRITICAL CLASSES
--------------------------- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; border-radius: 16px; background: #fff; box-shadow: 0 2px 14px rgba(35,39,47,.08); }
.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; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Ensure minimum 20px between all cards/sections */
.card:not(:last-child),
.feature-item:not(:last-child),
.service-card:not(:last-child),
.testimonial-card:not(:last-child),
.case-study:not(:last-child),
.value-list li:not(:last-child) {
  margin-right: 20px;
}
/* Prevent overlap in wrappers */
.content-wrapper > *:not(:last-child) {
  margin-bottom: 20px;
}

/* -------------------------
   GEOMETRIC STRUCTURED STYLE
--------------------------- */
body {
  background: #F7F8FA;
}
section, .section {
  background: #fff;
  border-radius: 28px 3px 24px 18px;
  box-shadow: 0 2px 28px rgba(35,39,47,0.07);
}
h1, h2, h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.3rem;
  line-height: 1.12;
}
h2 {
  font-size: 1.65rem;
  line-height: 1.13;
}
h3 {
  font-size: 1.20rem;
  line-height: 1.17;
}

/* Geometric accent for sections */
section {
  position: relative;
  overflow: visible;
}
section::before {
  content: "";
  display: block;
  position: absolute;
  top: -24px;
  right: -38px;
  width: 60px;
  height: 60px;
  background: #6EC1E4;
  border-radius: 15% 80% 15% 40%/15% 29% 85% 74%;
  opacity: 0.12;
  z-index: 1;
  pointer-events: none;
}
section.hero::before { background: #FFD600; opacity: 0.09; }

/* --- BUTTONS: MICRO-INTERACTIONS --- */
.btn-primary, .btn-secondary {
  box-shadow: 0 2px 10px rgba(35,39,47,0.12);
  transform: perspective(1px) translateZ(0);
  transition: box-shadow 0.15s, background 0.15s, color 0.15s, transform 0.18s;
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.96);
}
.btn-primary:focus, .btn-secondary:focus {
  outline: 2.5px solid #FFD600;
  outline-offset: 2px;
}

/* -------------------------
   COOKIE CONSENT BANNER
--------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #23272F;
  color: #fff;
  padding: 22px 24px 22px 24px;
  border-radius: 24px 24px 0 0;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 -3px 32px rgba(35,39,47,0.22);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s, transform 0.35s cubic-bezier(.56,.07,.56,1.12);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}
.cookie-banner .cookie-message {
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}
.cookie-banner button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  padding: 9px 26px;
  border-radius: 13px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.16s, color 0.16s;
}
.cookie-banner .accept {
  background: #FFD600;
  color: #23272F;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #6EC1E4;
  color: #fff;
}
.cookie-banner .reject {
  background: #23272F;
  border: 2px solid #FFD600;
  color: #FFD600;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #6EC1E4;
  border-color: #6EC1E4;
  color: #fff;
}
.cookie-banner .settings {
  background: #fff;
  color: #23272F;
  border: 2px solid #6EC1E4;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #6EC1E4;
  color: #fff;
  border-color: #6EC1E4;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(35,39,47,0.92);
  color: #fff;
  z-index: 1401;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  transition: opacity 0.27s, transform 0.27s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
}
.cookie-modal-dialog {
  background: #fff;
  color: #23272F;
  border-radius: 20px;
  min-width: 320px;
  max-width: 98vw;
  padding: 38px 30px 24px 30px;
  box-shadow: 0 4px 24px rgba(35,39,47,0.23);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal-title {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.27rem;
  font-weight: 700;
  color: #23272F;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #6EC1E4;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover {
  color: #FFD600;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F7F8FA;
  padding: 14px 20px;
  border-radius: 12px;
}
.cookie-category label {
  font-size: 1rem;
  color: #23272F;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
.cookie-toggle {
  appearance: none;
  width: 40px;
  height: 22px;
  border-radius: 16px;
  background: #E5E9EF;
  position: relative;
  outline: none;
  transition: background .19s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #6EC1E4;
}
.cookie-toggle::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 1px;
  top: 1px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(35,39,47,0.19);
  transition: left 0.19s;
}
.cookie-toggle:checked::before {
  left: 19px;
}
.cookie-category.essential .cookie-toggle {
  opacity: 0.6;
  pointer-events: none;
}

/* Media Query: Responsive - MOBILE FIRST */
@media (max-width: 1100px) {
  .container { max-width: 100%; }
}
@media (max-width: 900px) {
  .main-nav { gap: 14px; }
  .feature-grid, .service-list, .service-category-list, .case-study-list, .post-list { gap: 14px; }
  .value-list { gap: 11px; }
  footer .container { gap: 15px; }
}
@media (max-width: 768px) {
  
  .main-nav, .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  header .container {
    padding: 12px 8px;
  }
  .hero { padding: 40px 10px 36px 10px; }
  .section, section { padding: 28px 6px; margin-bottom: 36px; border-radius: 16px 16px 13px 10px; }
  .section::before, section::before { width: 40px; height: 40px; top: -12px; right: -12px; border-radius: 70% 10% 50% 20%/10% 80% 30% 23%; }
  .feature-grid, .service-list, .service-category-list, .case-study-list, .post-list, .value-list {
    flex-direction: column;
    gap: 10px;
    margin: 0;
  }
  .feature-item, .service-item, .service-card, .case-study, .post-item {
    min-width: unset;
    width: 100%;
    padding: 20px 10px 17px 14px;
    margin: 0 0 13px 0;
  }
  .testimonial-slider, .clients-logos-grid, .logos-strip {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }
  .testimonial-card {
    padding: 16px 13px 14px 20px;
    min-width: unset;
    max-width: 98vw;
  }
  .testimonials, .legal, .cta {
    margin-bottom: 32px;
    padding: 22px 5px;
    border-radius: 14px;
  }
  .content-wrapper { gap: 13px; }
  .content-grid, .team, .about-preview, .services-overview, .blog-list { gap: 0; }
  .cta .content-wrapper { align-items: center; text-align: center; }
  .category-filters, .tag-cloud {
    gap: 8px;
    flex-wrap: wrap;
  }
  .footer-nav { flex-direction: column; gap: 3px; }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 8px 16px 8px;
  }
  .footer-contact { margin-bottom: 6px; }
  .footer-logo img { height: 28px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.58rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1.02rem; }
  .cookie-banner { padding: 12px 6px; font-size: 0.98rem; border-radius: 16px 16px 0 0; }
  .cookie-modal-dialog { min-width: 94vw; padding: 21px 6px 9px 9px; border-radius: 13px; font-size: 0.96rem; }
}

/*------------- CUSTOM SCROLLBAR -------------*/
::-webkit-scrollbar { width: 9px; background: #F7F8FA; }
::-webkit-scrollbar-thumb { background: #D4E2E8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6EC1E4; }

/* --- FOCUS VISIBLE --- */
a:focus-visible, button:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible {
  outline: 2.5px solid #FFD600;
  outline-offset: 2.5px;
}

/* --- HIDE MOBILE MENU WHEN NOT NEEDED --- */
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* --- UTILITIES --- */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }

/* END CSS */
