/* RESET & NORMALIZE */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin:0; padding:0; }
html, body { height:100%; width:100%; }
body {
  font-family: 'Georgia', Times, serif;
  font-size: 16px;
  line-height: 1.66;
  color: #18304B;
  background: #F9F6EF;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: #153B5E; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #23A393; outline: none; }
ul, ol { padding-left: 24px; margin-bottom: 24px; }
li { margin-bottom: 8px; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 600;
  color: #153B5E;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
h1 { font-size: 2.4rem; line-height: 1.13; margin-bottom: 22px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.44rem; margin-bottom: 16px; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 14px; }
p { margin-bottom: 18px; }

subheadline, .subheadline { color: #465A6B; font-size: 1.2rem; margin-bottom: 18px; }

/* CONTAINERS & LAYOUTS */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(21,59,94,0.07);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 6px 32px 0 rgba(33,44,67,0.12); }
.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: 20px;
  background: #fff;
  border-left: 5px solid #23A393;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 1px 12px rgba(33,44,67,0.08);
  transition: box-shadow 0.2s;
  max-width: 360px;
}
.testimonial-card:hover { box-shadow: 0 2px 24px 0 rgba(33,44,67,0.14); }
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FLEX LAYOUTS FOR BLOCKS ON HOMEPAGE and OTHERS */
.features-grid, .service-cards, .team-cards, .industry-cards, .metrics-row, .post-grid, .case-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.features-grid .feature-card, .service-cards .service-card, .team-cards .team-member-card, .industry-cards .industry-card, .post-grid .blog-post, .case-list .case-study-teaser {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 10px 0 rgba(21,59,94,0.07);
  padding: 28px 22px 22px 22px;
  flex: 1 1 240px;
  min-width: 270px;
  max-width: 320px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
  position: relative;
}
.features-grid .feature-card:hover,
.service-cards .service-card:hover,
.team-cards .team-member-card:hover,
.industry-cards .industry-card:hover,
.post-grid .blog-post:hover,
.case-list .case-study-teaser:hover {
  box-shadow: 0 8px 28px 0 rgba(21,59,94,0.11);
  transform: translateY(-2px) scale(1.03);
}

.metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-start;
}
.metrics-counter {
  background: #F9F6EF;
  border-radius: 10px;
  border: 1px solid #e2e2d6;
  padding: 22px 28px;
  min-width: 130px;
  text-align: center;
  flex: 1 1 110px;
  margin-bottom: 20px;
}
.metrics-counter h3 {
  color: #23A393;
  font-size: 2rem;
  margin-bottom: 8px;
  font-family: 'Georgia', Times, serif;
  font-weight: 700;
}
.metrics-counter p { font-size: 1.03rem; color: #153B5E; }

@media (max-width: 1024px) {
  .features-grid, .service-cards, .team-cards, .industry-cards, .post-grid, .case-list, .metrics-row {
    flex-direction: row;
    gap: 20px;
  }
  .features-grid .feature-card,
  .service-cards .service-card,
  .team-cards .team-member-card,
  .industry-cards .industry-card,
  .post-grid .blog-post,
  .case-list .case-study-teaser {
    flex: 1 1 100%;
    min-width: 220px;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .features-grid, .service-cards, .team-cards, .industry-cards, .post-grid, .case-list, .metrics-row {
    flex-direction: column;
    gap: 16px;
  }
  .features-grid .feature-card,
  .service-cards .service-card,
  .team-cards .team-member-card,
  .industry-cards .industry-card,
  .post-grid .blog-post,
  .case-list .case-study-teaser {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin-bottom: 16px;
  }
  .testimonial-list {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    max-width: 100%;
    width: 100%;
  }
  .metrics-row {
    gap: 12px;
  }
  .section {
    padding: 26px 4px;
  }
}

/* TESTIMONIAL CARDS */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
}
.testimonial-card p {
  color: #18304B;
  font-size: 1.04rem;
  font-style: italic;
}
.testimonial-person {
  color: #153B5E;
  font-weight: 600;
  font-family: 'Georgia', Times, serif;
  margin-top: 2px;
  font-size: 1rem;
}
.testimonial-rating {
  display: flex;
  gap: 2px;
  align-items: center;
}
.testimonial-rating img { width: 20px; height: 20px; }

/* BUTTONS & CTA */
.cta, .cta:visited, .cta:focus {
  display: inline-block;
  padding: 14px 32px;
  background: #153B5E;
  color: #fff;
  font-family: 'Georgia', Times, serif;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  font-size: 1.11rem;
  margin-top: 8px;
  border: none;
  box-shadow: 0 2px 10px 0 rgba(33,44,67,0.06);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.18s, color 0.16s;
}
.cta:hover, .cta:focus {
  background: #23A393;
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(33,44,67,0.13);
  outline: none;
}

button, .mobile-menu-toggle, .mobile-menu-close {
  font-family: 'Georgia', Times, serif;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
  color: #153B5E;
  transition: color 0.17s, background 0.17s;
}
button:focus { outline: 2px dashed #23A393; }

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 1px 8px rgba(21,59,94,0.04);
  margin-bottom: 16px;
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 18px;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-family: 'Georgia', Times, serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 14px;
  border-radius: 6px;
  color: #153B5E;
  background: transparent;
  transition: background 0.18s, color 0.18s;
}
nav a:hover, nav a:focus {
  background: #F9F6EF;
  color: #23A393;
}
nav a.cta {
  background: #23A393;
  color: #fff;
  margin-left: 14px;
  font-weight: 700;
}
nav a.cta:hover, nav a.cta:focus { background: #153B5E; color: #fff; }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  padding: 8px 12px;
  border-radius: 7px;
  color: #153B5E;
  margin-left: 8px;
  transition: background 0.18s, color 0.18s;
  z-index: 90;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #23A393;
  background: #F9F6EF;
}

@media (max-width: 1020px) {
  header nav {
    gap: 14px;
  }
  .header .container { padding: 0 5px; }
}

@media (max-width: 900px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(21,59,94,0.87);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  transform: translateX(100%);
  opacity: 0;
  z-index: 2000;
  transition: transform 0.38s cubic-bezier(0.6,0.3,0.2,1), opacity 0.38s;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  position: absolute;
  z-index: 3000;
  font-size: 2rem;
  color: #FFF;
  background: #153B5E;
  border: none;
  margin: 20px 24px 0 0;
  align-self: flex-start;
  z-index: 2100;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu-close:hover {
  color: #23A393;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 38px 22px 22px 22px;
  min-width: 67vw;
  min-height: 100vh;
  gap: 18px;
  border-radius: 0 0 0 21px;
  box-shadow: -2px 0 16px 0 rgba(21,59,94,0.13);
}
.mobile-nav a {
  color: #153B5E;
  font-size: 1.14rem;
  background: none;
  font-family: 'Georgia', Times, serif;
  padding: 11px 12px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #23A393;
  color: #fff;
}
@media (max-width: 600px) {
  .mobile-nav { min-width: 92vw; padding: 28px 6vw 34px 6vw; }
}

/* MAIN SECTIONS */
main {
  min-height: 58vh;
}

/* FOOTER */
footer {
  background: #fff;
  border-top: 2px solid #E2E2D6;
  margin-top: 56px;
  font-size: 0.98rem;
  line-height: 1.4;
}
footer .container {
  padding: 26px 18px 12px 18px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
}
.footer-contact, .footer-hours {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #465A6B;
  font-size: 0.99rem;
}

/* Responsive footer on mobile */
@media (max-width: 800px) {
  footer .content-wrapper {gap: 14px;}
  footer nav {gap: 11px;}
}
@media (max-width: 500px) {
  footer .content-wrapper {padding: 0 2px;}
}

/* TAGS, CATEGORY BADGES, FILTERS */
.category {
  display: inline-block;
  color: #fff;
  background: #153B5E;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.95rem;
  margin-top: 12px;
}
.topic-filters, .case-study-categories {
  margin-bottom: 18px;
  font-size: 1.09rem;
  color: #153B5E;
  background: #F9F6EF;
  border-radius: 8px;
  padding: 6px 12px;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 5100;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100vw;
  background: none;
  pointer-events: none;
  font-family: 'Georgia', Times, serif;
}
.cookie-banner-inner {
  background: #FFF;
  color: #153B5E;
  border-top: 2px solid #23A393;
  box-shadow: 0 -2px 18px 0 rgba(21,59,94,0.09);
  border-radius: 13px 13px 0 0;
  margin: 0 12px 22px 12px;
  max-width: 710px;
  padding: 22px 30px 18px 30px;
  min-width: 265px;
  pointer-events: all;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 1.01rem;
  animation: cookieSlideInUp 0.52s cubic-bezier(0.47,1.39,0.52,1) both;
}
@keyframes cookieSlideInUp {
  from { transform: translateY(130px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  margin-left: auto;
}
.cookie-btn, .cookie-btn:visited {
  font-family: 'Georgia', Times, serif;
  font-size: 1.04rem;
  padding: 10px 20px;
  color: #fff;
  border-radius: 7px;
  border: none;
  background: #153B5E;
  transition: background 0.22s,color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 7px rgba(21,59,94,0.07);
  cursor: pointer;
}
.cookie-btn:hover, .cookie-btn:focus { background: #23A393; color: #fff; }
.cookie-btn.secondary {
  background: #23A393;
}
.cookie-btn.ghost {
  background: transparent;
  color: #153B5E;
  border: 1.2px solid #153B5E;
}
.cookie-btn.ghost:hover, .cookie-btn.ghost:focus {
  background: #F9F6EF;
  color: #23A393;
  border-color: #23A393;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed; left:0; top:0; right:0; bottom:0;
  background: rgba(26, 46, 73, 0.42);
  z-index: 7100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.19s;
}
.cookie-modal-overlay.active {
  opacity: 1; pointer-events: all;
}
.cookie-modal {
  background: #FFF;
  color: #153B5E;
  padding: 38px 30px 18px 30px;
  border-radius: 17px;
  max-width: 500px;
  width: 98vw;
  box-shadow: 0 4px 30px 0 rgba(21,59,94,0.16);
  position: relative;
  animation: modalFadeIn 0.3s cubic-bezier(0.47,1.34,0.46,1) both;
}
@keyframes modalFadeIn {
  from { transform: scale(0.88) translateY(30px); opacity: 0.1; }
  to   { transform: scale(1) translateY(0);     opacity: 1; }
}
.cookie-modal-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 18px; }
.cookie-modal-list { display: flex; flex-direction: column; gap: 13px; margin-bottom: 20px; }
.cookie-modal-category {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 1.01rem;
  border-bottom: 1px solid #e2e2d6;
  padding-bottom: 8px;
}
.cookie-modal-category .cookie-toggle {
  position: relative;
  width: 44px;
  height: 22px;
  background: #e2e2d6;
  border-radius: 18px;
  margin-left: 25px;
  cursor: pointer;
}
.cookie-modal-category .cookie-toggle input {
  width: 0; height: 0; opacity: 0;
}
.cookie-modal-category .cookie-toggle span {
  display: block;
  width: 18px;
  height: 18px;
  background: #153B5E;
  border-radius: 50%;
  position: absolute;
  left: 3px; top: 2px;
  transition: left 0.18s, background 0.16s;
}
.cookie-modal-category .cookie-toggle input:checked + span {
  background: #23A393;
  left: 23px;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute; right: 18px; top: 11px;
  background: none;
  border: none;
  font-size: 1.44rem;
  color: #153B5E;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 7px;
}
.cookie-modal-close:hover { color: #23A393; background: #F9F6EF; }

/* Other input elements inside modal */
.cookie-modal input[type='checkbox'] {
  accent-color: #23A393;
  margin-right: 8px;
}

@media (max-width: 550px) {
  .cookie-modal {
    padding: 20px 8px 14px 10px;
    max-width: 96vw;
  }
}

/* FORMS (If any) */
input, textarea, select {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  border-radius: 6px;
  border: 1px solid #E2E2D6;
  padding: 12px 14px;
  font-size: 1rem;
  margin-bottom: 18px;
  background: #fff;
  color: #153B5E;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus { border-color: #23A393; outline: none; }

/* SUBTLE ANIMATIONS FOR CARD HOVER */
.card, .metric-counter,
.features-grid .feature-card, .service-cards .service-card, .team-cards .team-member-card, .industry-cards .industry-card, .post-grid .blog-post, .case-list .case-study-teaser {
  transition: box-shadow 0.19s cubic-bezier(0.4,0.34,0.6,1), transform 0.17s;
}

/* General spacing */
.section + .section { margin-top: 0; }

/* Blog-specific */
.blog-post {
  flex: 1 1 260px;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 1px 10px 0 rgba(21,59,94,0.07);
  padding: 25px 19px 18px 19px;
  margin-bottom: 20px;
}

/* Newsletter/info card */
.newsletter-info {
  background: #F9F6EF;
  border-radius: 8px;
  padding: 14px 20px;
  color: #18304B;
  margin-top: 12px;
}

/* Various helpers */
@media (max-width: 768px) {
  .section { padding: 18px 4px; margin-bottom: 34px; }
  h1 { font-size: 1.62rem; }
  h2 { font-size: 1.28rem; }
  h3 { font-size: 1.05rem; }
}

/* Map/location info block */
.map-location, .contact-details {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 10px 0 rgba(21,59,94,0.06);
  padding: 19px 14px;
  margin-bottom: 20px;
}
.contact-details img, .map-location img { margin-right: 7px; vertical-align: bottom; }

/* INDUSTRY EXPERIENCE/RESULTS SECTIONS */
.industry-experience, .industry-specialization, .industry-results {
  background: #F9F6EF;
  padding: 15px 20px;
  border-radius: 7px;
  color: #153B5E;
  font-size: 1.08rem;
  margin-top: 10px;
}

/* BEFORE/AFTER BLOCK */
.before-after {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 10px 0 rgba(21,59,94,0.07);
  padding: 22px 22px 17px 22px;
  color: #153B5E;
}

/* Responsive text-image section */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* Accessibility focus visible */
:focus-visible { box-shadow: 0 0 0 2px #23A393, 0 0 0 6px #F9F6EF; outline: none; }

/* Hide visually but remain accessible */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* Overlay for modals (z-index >=7000) */
.overlay { position: fixed; left:0; top:0; right:0; bottom:0; background: rgba(21,59,94,0.18); z-index: 7000; }

/* Utility classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }

/* SVGs and icons minor adjustments */
img[alt$='Icon'], img[alt$='SVG'] {
  width: 28px;
  height: 28px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

/* End of stylesheet */
