/* ============================
   CSS RESET & BASE
   ============================ */
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%;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F2F2F2;
  color: #244059;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  border: none;
  max-width: 100%;
  display: block;
}
a {
  color: #225087;
  text-decoration: none;
  transition: color .18s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #E9962C;
  outline: none;
}
button, .cta-button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  cursor: pointer;
  border: none;
  outline: none;
  padding: 0.75em 2.2em;
  border-radius: 5px;
  background: #225087;
  color: #fff;
  box-shadow: 0 2px 8px rgba(34, 80, 135, 0.08);
  font-weight: 700;
  letter-spacing: .03em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color .2s;
  margin-right: 16px;
  margin-bottom: 8px;
  display: inline-block;
}
.cta-button.secondary {
  background: #fff;
  color: #225087;
  border: 2px solid #225087;
}
.cta-button:hover, .cta-button:focus {
  background: #1d4070;
  color: #fff;
  box-shadow: 0 4px 16px rgba(34,80,135,0.17);
  border-color: #1d4070;
}
.cta-button.secondary:hover, .cta-button.secondary:focus {
  background: #E9962C;
  color: #fff;
  border-color: #E9962C;
}

/* ============================
   TYPOGRAPHY & HEADINGS
   ============================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.18;
  color: #225087;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, li, a, span {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
}
strong, b {
  font-weight: 600;
}
ul, ol {
  margin-left: 22px;
}
li {
  margin-bottom: 10px;
}

/* ============================
   LAYOUT & CONTAINER
   ============================ */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(34,80,135,0.06);
  position: relative;
}

/* ============================
   HEADER & NAVIGATION
   ============================ */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(34,80,135,0.06);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #174067;
  margin-right: 0;
  transition: color 0.18s;
  padding: 6px 0;
  position: relative;
}
header nav a:after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: #225087;
  opacity: 0;
  transition: opacity .22s, transform .22s;
  transform: scaleX(0.8);
}
header nav a:hover:after,
header nav a:focus:after {
  opacity: 1;
  transform: scaleX(1);
}
header nav a:hover,
header nav a:focus {
  color: #E9962C;
}
header .cta-button {
  margin: 0 0 0 14px;
  padding: 0.55em 2em;
  font-size: 1rem;
  border-radius: 5px;
}
header a img {
  height: 47px;
}

/* Burger Button */
.mobile-menu-toggle {
  background: none;
  font-size: 2.1rem;
  color: #225087;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1201;
  margin-left: 10px;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  box-shadow: 0 6px 22px rgba(34,80,135,0.12);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #225087;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 32px 0 0;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1202;
}
.mobile-menu-close:hover {
  color: #E9962C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
  padding: 48px 30px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #174067;
  padding: 8px 0;
  width: 100%;
  border-bottom: 1px solid #F2F2F2;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:active,
.mobile-nav a:hover {
  color: #E9962C;
}

@media (max-width: 1080px) {
  header .container {
    max-width: unset;
    padding-left: 10px;
    padding-right: 10px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 900px) {
  header nav, header .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .container {
    justify-content: flex-start;
    gap: 8px;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
  background: linear-gradient(90deg, #225087 45%, #407ab4 100%);
  color: #fff;
  padding: 72px 0 50px 0;
  margin-bottom: 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  max-width: 700px;
}
.hero h1, .hero p {
  color: #fff;
}
.hero .cta-button {
  background: #E9962C;
  color: #fff;
  border: none;
  font-weight: 700;
}
.hero .cta-button:hover {
  background: #C16900;
}

/* ============================
   FEATURES & CARDS
   ============================ */
.features {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}
.features .feature-grid,
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  align-items: stretch;
}
.features .feature-grid > div,
.services-grid > div {
  background: #F7FAFC;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(34,80,135,0.07);
  flex: 1 1 245px;
  padding: 30px 22px 24px 22px;
  min-width: 240px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: box-shadow .19s, transform .17s;
}
.features .feature-grid > div:hover,
.services-grid > div:hover {
  box-shadow: 0 7px 32px rgba(34,80,135,.13);
  transform: translateY(-3px) scale(1.012);
}
.features .feature-grid img,
.services-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
}
.features .feature-grid h3,
.services-grid h2 {
  font-size: 1.25rem;
  color: #225087;
  margin-bottom: 6px;
}

/* ============================
   CASE STUDIES & CARDS
   ============================ */
.case-study-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.case-study {
  background: #fff;
  border: 1px solid #E5E9F2;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(34,80,135,0.04);
  padding: 26px 22px 20px 22px;
  min-width: 240px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: box-shadow .17s, transform .16s;
}
.case-study:hover {
  box-shadow: 0 8px 26px rgba(34,80,135,0.13);
  transform: translateY(-2px) scale(1.008);
}

/* ============================
   TESTIMONIAL CARDS
   ============================ */
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  background: #f7fafd;
  border-radius: 12px;
  padding: 24px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(34,80,135,0.06);
  border-left: 6px solid #225087;
  color: #174067;
  font-size: 1.13rem;
  min-width: 220px;
}
.testimonial-card .testimonial-details {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 1rem;
  align-items: center;
}
.testimonial-card .stars {
  color: #E9962C;
  font-size: 1.2rem;
  margin-left: 2px;
}
.testimonial-card p {
  color: #244059;
  font-size: 1.15rem;
  font-family: Roboto, Arial, sans-serif;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}

/* ============================
   BLOG POSTS
   ============================ */
.blog-overview .blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.blog-overview .blog-post-list article {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(34,80,135,0.04);
  flex: 1 1 240px;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow .19s, transform .16s;
  border-left: 4px solid #225087;
}
.blog-overview .blog-post-list article:hover {
  box-shadow: 0 8px 25px rgba(34,80,135,0.12);
  transform: translateY(-2px) scale(1.009);
}
.featured-article {
  background: #225087;
  border-radius: 10px;
  color: #fff;
  padding: 28px 18px;
  margin-top: 12px;
  margin-bottom: 26px;
  box-shadow: 0 3px 14px rgba(34,80,135,0.11);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.featured-article h3 { color: #fff; }
.featured-article a {
  color: #E9962C;
  font-weight: 600;
}
.featured-article a:hover { color: #fff; text-decoration: underline; }

/* ============================
   SECTION/SPACING PATTERNS
   ============================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(34,80,135,0.07);
  flex: 1 1 250px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.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;
}

/* ============================
   BUTTONS & MICRO-INTERACTIONS
   ============================ */
button, .cta-button {
  transition: background .20s, color .20s, box-shadow .20s;
}
button:active, .cta-button:active {
  transform: scale(0.98);
}

/* ============================
   FOOTER
   ============================ */
footer {
  background: #1d4070;
  color: #fff;
  padding: 36px 0 18px 0;
  margin-top: 80px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 10px;
}
.footer-logo img {
  height: 38px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-nav a {
  color: #cee8fc;
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 0;
  transition: color 0.18s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #E9962C;
}
.footer-contact {
  color: #d9e4f3;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.footer-contact img {
  vertical-align: middle;
  width: 20px;
  margin-right: 9px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
.footer-social a img {
  height: 26px;
  filter: grayscale(1) brightness(1.9);
  transition: filter .17s, transform .16s;
}
.footer-social a:hover img {
  filter: none;
  transform: scale(1.13);
}

/* ============================
   COOKIE CONSENT BANNER & MODAL
   ============================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right:0;
  bottom: 0;
  z-index: 3001;
  background: #fff;
  box-shadow: 0 -3px 20px rgba(34,80,135,0.17);
  border-top: 4px solid #225087;
  padding: 26px 10px 26px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: center;
  font-size: 0.98rem;
  opacity: 1;
  transition: transform .34s cubic-bezier(.7,0,.2,1), opacity .24s;
  animation: slideUpBanner .44s cubic-bezier(.63, .09, .58, 1.14);
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0 }
  to   { transform: translateY(0);   opacity: 1 }
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
}
.cookie-banner p {
  color: #244059;
  margin-right: 16px;
  max-width: 570px;
  flex: 1 1 auto;
}
.cookie-banner .cookie-btn {
  padding: 9px 22px;
  margin-right: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 5px;
  font-weight: 600;
  background: #225087;
  color: #fff;
  border: none;
  transition: background .18s, color .18s;
}
.cookie-banner .cookie-btn.settings {
  background: #fff;
  color: #225087;
  border: 1.5px solid #225087;
}
.cookie-banner .cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #E9962C;
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: #fff;
  color: #225087;
  border: 1.5px solid #225087;
}
.cookie-banner .cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #e3e8f0;
  color: #C16900;
  border-color: #C16900;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #E9962C;
  color: #fff;
  border-color: #E9962C;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; right:0; top: 0; bottom: 0;
  z-index: 3100;
  background: rgba(34,80,135,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  animation: fadeInModal .39s cubic-bezier(.7,0,.2,1);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal.hide {
  display: none;
  opacity: 0;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 14px;
  min-width: 95vw;
  max-width: 450px;
  padding: 36px 28px 28px 28px;
  box-shadow: 0 7px 30px rgba(34,80,135,0.20);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: slideModalIn .32s cubic-bezier(.7,0,.2,1);
}
@keyframes slideModalIn {
  from { transform: translateY(54px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.22rem;
  color: #225087;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-content label {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Roboto', Arial, sans-serif;
  padding: 4px 0;
}
.cookie-modal-content input[type="checkbox"] {
  accent-color: #225087;
}
.cookie-modal-content .cookie-category {
  margin-bottom: 14px;
  font-weight: 600;
  color: #244059;
}
.cookie-modal-content .cookie-close {
  position: absolute;
  top: 18px; right: 20px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #225087;
  cursor: pointer;
}
.cookie-modal-content .cookie-close:hover {
  color: #E9962C;
}
.cookie-modal-content .cookie-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}
.cookie-modal-content .cookie-btn {
  padding: 8px 20px;
}

/* ============================
   MISC SECTIONS & UTILS
   ============================ */
.services-preview ul,
.about-preview ul, .about-preview ol {
  list-style: disc inside;
  margin-bottom: 16px;
  margin-left: 22px;
}
.services-preview ul li,
.about-preview ul li {
  font-size: 1.05em;
  color: #244059;
  margin: 0 0 9px 0;
}
.case-study-list, .blog-overview .blog-post-list {
  margin-top: 18px;
}

.text-section ul {
  list-style: none;
  margin-left: 0;
  margin-bottom: 14px;
}
.text-section ul li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #244059;
  font-size: 1rem;
}
.text-section ul img {
  width: 21px;
  height: 21px;
}

/* Blog CTA */
.blog-cta {
  background: #fff;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(34,80,135,0.06);
}

/* FOCUS STYLES ACCESSIBILITY */
a:focus, .cta-button:focus, button:focus, input:focus, select:focus {
  outline: 2px solid #E9962C;
  outline-offset: 2px;
  z-index: 2;
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */
@media (max-width: 1024px) {
  .container {
    max-width: 100vw;
    padding: 0 14px;
  }
  .features .feature-grid,
  .services-grid,
  .card-container,
  .case-study-list,
  .blog-overview .blog-post-list {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .features .feature-grid > div,
  .services-grid > div,
  .case-study,
  .card {
    min-width: 190px;
    padding: 18px 10px;
  }
  .case-study {
    font-size: 0.96em;
  }
  .footer-social {
    gap: 12px;
  }
  footer .container {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.32rem;
  }
  .hero {
    padding: 36px 0 28px 0;
  }
  .feature-grid,
  .services-grid,
  .case-study-list,
  .blog-overview .blog-post-list,
  .card-container,
  .content-grid,
  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
  .footer-nav {
    margin-bottom: 8px;
  }
  .blog-overview .blog-post-list article,
  .features .feature-grid > div,
  .services-grid > div,
  .case-study,
  .card {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
    padding-left: 14px;
    padding-right: 14px;
  }
  .testimonial-card,
  .about-preview ul,
  .services-preview ul {
    font-size: 1em;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 34px;
  }
  .footer-contact span {
    font-size: 13.8px;
  }
  .footer-logo img {
    height: 32px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .content-wrapper {
    gap: 16px;
  }
  main {
    padding-bottom: 24px;
  }
}
@media (max-width: 540px) {
  .section {
    padding: 11px 3px;
    margin-bottom: 21px;
  }
  body {
    font-size: 15px;
  }
  header .container {
    min-height: 56px;
  }
  .cta-button, .cookie-banner .cookie-btn {
    font-size: 0.98rem;
    padding: 7px 13px;
  }
  .cookie-banner {
    padding: 12px 3px 12px 3px;
    font-size: 0.93rem;
    gap: 14px;
  }
  .cookie-modal-content {
    padding: 13px 5vw 18px 5vw;
    min-width: 99vw;
  }
}
/* Guarantee minimum card spacing everywhere */
.card-container > *,
.case-study-list > *,
.blog-overview .blog-post-list > *,
.services-grid > *,
.features .feature-grid > * {
  margin-bottom: 20px;
}

/* Prevent unwanted overlaps */
.section, .card, .testimonial-card, .case-study, .blog-overview .blog-post-list article {
  margin-bottom: 20px;
}
/* More breathing room for testimonials at bottom */
.testimonials {
  margin-bottom: 60px;
}

/* Print styles */
@media print {
  header, footer, .cta-button, .cookie-banner, .mobile-menu { display: none !important; }
  .section, body, main, .container { background: #fff !important; color: #000 !important; }
}
