/* -------- CSS RESET & NORMALIZE -------- */
html {
  box-sizing: border-box;
  font-size: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #1D3557;
  background: #F9FAFB;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #1D3557;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E63946;
  outline: none;
}
ul, ol {
  list-style: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 18px;
  text-align: left;
}
th {
  background: #F1FAEE;
  font-weight: 600;
}
tr:nth-child(even) {
  background: #F9FAFB;
}


/* ---- LAYOUT CONTAINERS & SECTIONS ---- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 1px 8px 0 rgba(25, 33, 37, 0.05);
}

/* Spacing for 24px rule */
.card-container,
.feature-grid,
.content-grid,
.case-list,
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(29,53,87,0.06);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
}
.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;
}

.feature-item,
.service-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(29,53,87,0.06);
  padding: 24px 18px;
  margin-bottom: 20px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  border-radius: 14px;
  background: #F1FAEE;
  margin-bottom: 20px;
  box-shadow: 0 1px 7px rgba(29,53,87,0.04);
  color: #1D3557;
  font-size: 18px;
  max-width: 650px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 16px rgba(29,53,87,0.15);
  transform: translateY(-6px) scale(1.02);
}
.testimonial-name {
  font-size: 16px;
  color: #1D3557;
  font-weight: 600;
  opacity: 0.78;
  margin-top: 4px;
}


/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1D3557;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.22;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
}
.subheadline {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 20px;
  color: #457B9D;
  margin-bottom: 16px;
  font-weight: 400;
}
p, ul, ol, .cta-text, .testimonial-text {
  color: #22304D;
  font-size: 1rem;
}
ul, ol {
  margin-left: 26px;
  margin-bottom: 14px;
}
ul li, ol li {
  margin-bottom: 6px;
  padding-left: 0;
  position: relative;
}
ul li:before {
  content: '\2022';
  color: #E63946;
  font-size: 18px;
  padding-right: 8px;
  vertical-align: middle;
}

/* Remove bullet decoration when icon is present (team/approach list) */
.team ul li img, .approach ul li img {
  vertical-align: middle;
  margin-right: 8px;
  width: 22px;
  height: 22px;
  display: inline-block;
}
.team ul li:before, .approach ul li:before {
  display: none;
}

.strong, strong, b {
  font-weight: 700;
  color: #1D3557;
}

.cta-text {
  font-size: 18px;
  margin-bottom: 16px;
}


/* -- BUTTONS & CTA -- */
.cta-btn, .cta-btn.primary, .cta-btn.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.06rem;
  min-width: 170px;
  padding: 13px 28px;
  border: none;
  border-radius: 27px;
  background: #E63946;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 1px 6px rgba(29,53,87,0.09);
  transition: background 0.19s, transform 0.19s, box-shadow 0.19s;
  outline: none;
}
.cta-btn.primary {
  background: #E63946;
  color: #fff;
}
.cta-btn.secondary {
  background: #1D3557;
  color: #F1FAEE;
}
.cta-btn:hover, .cta-btn:focus {
  background: #C12736;
  color: #fff;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 3px 18px rgba(29,53,87,0.13);
}


/* ---- HEADER ---- */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(29,53,87,0.04);
  position: sticky;
  top: 0;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 32px;
  height: 54px;
}
.logo img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.01rem;
  color: #22304D;
  padding: 6px 10px;
  transition: color 0.13s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #E63946;
}
.mobile-menu-toggle {
  display: none;
  flex-shrink: 0;
  background: #E63946;
  color: #fff;
  font-size: 1.82rem;
  border: none;
  border-radius: 9px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
  transition: background 0.17s, box-shadow 0.17s;
  z-index: 60;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #C12736;
  box-shadow: 0 3px 12px rgba(29,53,87,0.09);
}

/* Hide CTA on mobile in header (handled via media query) */


/* ---- MOBILE NAVIGATION (SLIDE-OVER) ---- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(29,53,87,0.15);
  z-index: 1000;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transition: background 0.16s ease;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu nav.mobile-nav {
  background: #FFF;
  min-width: 270px;
  height: 100vh;
  box-shadow: -7px 0 20px rgba(29,53,87,0.11);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 46px 26px 18px 26px;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.68,-0.55,.27,1.55);
}
.mobile-menu.open nav.mobile-nav {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 22px;
  background: #FFF;
  border: 2px solid #E63946;
  color: #E63946;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  cursor: pointer;
  z-index: 1011;
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #E63946;
  color: #FFF;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  padding: 14px 0;
  color: #1D3557;
  border-bottom: 1px solid #F1FAEE;
  min-width: 180px;
  transition: color 0.13s;
  margin-bottom: 7px;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #E63946;
}

/* ---- HERO SECTIONS ---- */
.hero, .services-hero, .references-hero, .blog-hero, .contact-hero, .thank-you {
  background: #F1FAEE;
  border-radius: 0 0 18px 18px;
  padding: 56px 0 34px 0;
  margin-bottom: 50px;
  box-shadow: 0 1px 10px 0 rgba(29,53,87,0.06);
}
.hero .content-wrapper,
.services-hero .content-wrapper, 
.references-hero .content-wrapper,
.blog-hero .content-wrapper,
.contact-hero .content-wrapper,
.thank-you .content-wrapper {
  align-items: flex-start;
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

.client-logos {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 18px;
}

/* ---- FEATURES / SERVICES ---- */
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(29,53,87,0.06);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 240px;
  flex: 1 1 220px;
  transition: box-shadow 0.17s, transform 0.17s;
}
.feature img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 12px;
}
.feature:hover {
  box-shadow: 0 6px 25px rgba(29,53,87,0.12);
  transform: translateY(-4px) scale(1.025);
}

/* ---- SERVICES ---- */
.services-details .service-block {
  flex: 1 1 220px;
  min-width: 220px;
  margin-bottom: 24px;
  gap: 11px;
}
.services-details .service-block img {
  height: 38px;
  width: 38px;
  margin-bottom: 2px;
}
.services-details .price {
  margin-top: 18px;
  color: #457B9D;
  font-size: 1.05rem;
  font-weight: bold;
}

/* ---- CASE STUDIES/REFERENCES ---- */
.case-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.case-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(29,53,87,0.06);
  padding: 22px 20px;
  flex: 1 1 280px;
  min-width: 250px;
  margin-bottom: 20px;
}
.outcomes-summary ul {
  margin-left: 17px;
  margin-bottom: 14px;
}

/* ---- BLOG CATEGORIES ---- */
.categories-filter {
  display: flex;
  flex-direction: row;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 22px;
  color: #94A5B2;
  justify-content: flex-start;
}
.categories-filter a {
  color: #457B9D;
  font-weight: 500;
  transition: color 0.12s;
}
.categories-filter a:hover {
  color: #E63946;
}

.blog-post-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.blog-post-list li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(29,53,87,0.06);
  padding: 22px 20px;
}

/* ---- POLICY & INFO PAGES ---- */
.policy {
  margin-bottom: 60px;
  padding: 40px 18px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 1px 8px 0 rgba(25, 33, 37, 0.06);
}

/* ---- FOOTER ---- */
footer {
  background: #F1FAEE;
  border-top: 1.5px solid #EDF2F2;
  padding: 34px 0 8px 0;
  margin-top: 70px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
}
.footer-nav a {
  color: #457B9D;
  font-size: 1.01rem;
  transition: color 0.1s;
}
.footer-nav a:hover {
  color: #E63946;
}
.footer-info {
  font-size: 0.97rem;
  color: #A0A7AB;
}


/* ---- NEUTRAL PLACEHOLDER ---- */
.neutral-placeholder {
  background: #F6F7F8;
  border-radius: 9px;
  padding: 8px 13px;
  color: #A7A7AD;
  font-style: italic;
  margin-top: 7px;
}

/* -------- COOKIE CONSENT BANNER -------- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -3px 26px rgba(29,53,87,.16);
  border-top: 2px solid #E63946;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  gap: 18px;
  min-height: 85px;
  font-size: 16px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s, transform 0.25s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
}
.cookie-consent-banner p {
  flex: 1 1 180px;
  font-size: 16px;
  color: #22304D;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 22px;
  border: none;
  background: #F1FAEE;
  color: #1D3557;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.cookie-btn.accept {
  background: #E63946;
  color: #fff;
}
.cookie-btn.reject {
  background: #1D3557;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #E63946;
  border: 2px solid #E63946;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #C12736;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F1FAEE;
  color: #C12736;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) scale(0.95);
  opacity: 0;
  z-index: 10001;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 38px rgba(29,53,87,0.23);
  width: 95vw;
  max-width: 420px;
  padding: 36px 26px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  pointer-events: none;
  transition: opacity 0.24s, transform 0.24s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h3 {
  font-size: 1.20rem;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #F9FAFB;
  border-radius: 6px;
  padding: 12px 15px;
}
.cookie-category label {
  font-size: 1rem;
  color: #1D3557;
}
.cookie-toggle {
  accent-color: #E63946;
  width: 19px;
  height: 19px;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: #fff;
  border: 1.5px solid #E63946;
  color: #E63946;
  font-size: 1.33rem;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 11001;
  align-items: center;
  justify-content: center;
  display: flex;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #E63946;
  color: #fff;
}


/* -------- MEDIA QUERIES FOR RESPONSIVENESS -------- */
@media (max-width: 1024px) {
  .container {
    max-width: 94vw;
    padding: 0 12px;
  }
  .main-nav {
    gap: 12px;
  }
  .features .feature-grid,
  .card-container,
  .content-grid,
  .case-list {
    gap: 16px;
  }
  .feature, .service-block, .case-item {
    padding: 18px 12px;
    min-width: 185px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding: 0 6px;
  }
  .footer-nav {
    gap: 12px;
    flex-wrap: wrap;
  }
  .main-nav a {
    font-size: 0.96rem;
  }
  h1 {
    font-size: 2.05rem;
  }
  h2 {
    font-size: 1.33rem;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 98%;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 8px;
  }
  .logo {
    height: 36px;
  }
  .logo img {
    height: 32px;
  }
  .main-nav {
    display: none;
  }
  .cta-btn.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero, .services-hero, .references-hero, .blog-hero, .contact-hero, .thank-you {
    padding: 34px 0 14px 0;
    margin-bottom: 26px;
    border-radius: 0 0 12px 12px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .feature-grid, .case-list, .content-grid {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .feature, .case-item, .card, .service-block {
    min-width: 0;
  }
  .testimonial-card {
    max-width: 100vw;
    padding: 15px 8px 15px 12px;
    border-radius: 10px;
    font-size: 16px;
  }
  .footer-info {
    font-size: 0.89rem;
  }
  footer .container {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    padding: 0 10px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    gap: 9px;
    padding: 12px 10px 15px 10px;
    font-size: 15px;
  }
}
@media (max-width: 540px) {
  html {
    font-size: 92%;
  }
  h1 {
    font-size: 1.40rem;
    margin-bottom: 14px;
  }
  h2 {
    font-size: 1.08rem;
    margin-bottom: 10px;
  }
  th, td {
    padding: 8px 6px;
    font-size: 0.99rem;
  }
  .card, .feature, .service-block, .case-item, .policy, .section {
    padding: 11px 7px;
    border-radius: 7px;
  }
  .testimonial-card {
    padding: 10px 5px 10px 7px;
    font-size: 15px;
    border-radius: 8px;
  }
  .footer-info {
    font-size: 0.81rem;
  }
  .cookie-consent-banner {
    min-height: 72px;
    font-size: 14px;
  }
  .cookie-modal {
    width: 99vw;
    padding: 16px 6px 14px 6px;
  }
}


/* ------- ANIMATIONS ------- */
@keyframes slideInMenu {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes slideOutMenu {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

.mobile-menu nav.mobile-nav {
  animation: slideOutMenu 0.32s forwards;
}
.mobile-menu.open nav.mobile-nav {
  animation: slideInMenu 0.32s cubic-bezier(.68,-0.55,.27,1.55) forwards;
}
.mobile-menu,
.cookie-consent-banner,
.cookie-modal {
  animation: fadeIn 0.6s;
}


/* ------- ACCESSIBILITY FOCUS STATES ------- */
a:focus-visible, .cta-btn:focus-visible {
  outline: 2.5px solid #E63946;
  outline-offset: 1px;
}

.mobile-menu-close:focus, .cookie-btn:focus, .cookie-modal-close:focus {
  outline: 2px solid #E63946;
  outline-offset: 2px;
}

/* ------ SCROLLBAR ------ */
::-webkit-scrollbar {
  width: 10px;
  background: #F1FAEE;
}
::-webkit-scrollbar-thumb {
  background: #E3E8EE;
  border-radius: 8px;
}

/* ------ FORMS (later or in contact) ------ */
input, textarea, select {
  border: 1.5px solid #c7d0db;
  border-radius: 7px;
  padding: 11px 13px;
  font-size: 1rem;
  font-family: inherit;
  color: #1D3557;
  margin-bottom: 14px;
  background: #F9FAFB;
  transition: border-color 0.1s, box-shadow 0.1s;
}
input:focus, textarea:focus, select:focus {
  border-color: #E63946;
  box-shadow: 0 0 0 2px #F1FAEE;
  outline: none;
}


/* -------- CUSTOM UTILITIES -------- */
.text-section {
  max-width: 700px;
  margin: 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}


/* ------ PRINT MEDIA ------ */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal {
    display: none !important;
  }
  body {
    background: #fff !important;
  }
  .section, .card, .feature, .case-item, .service-block {
    box-shadow: none !important;
  }
}

/* -------- FONTS -------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Open+Sans:wght@400;600;700&display=swap');
