/* ==================== 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,
u, i, center,
dl, dt, dd, menu, 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,
main, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #143A5F;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #143A5F;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #29A7DF;
  outline-offset: 1px;
}

/* =================== COLOR VARIABLES =================== */
:root {
  --color-primary: #143A5F;
  --color-secondary: #29A7DF;
  --color-accent: #F4F7FA;
  --color-white: #fff;
  --color-black: #11131a;
  --color-shadow: rgba(20,58,95,0.06);
}

/* ============= TYPOGRAPHY ============= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, ul, ol {
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
strong {
  color: var(--color-primary);
  font-weight: 700;
}
ul, ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
}

/* ============== CONTAINER SYSTEM ============== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .content-wrapper {
    gap: 40px;
    align-items: flex-start;
  }
}

/* ========== FLEX-BOX LAYOUTS ========== */
.card-container,
.card-grid,
.feature-grid,
.service-cards,
.service-list,
.platform-logos,
.blog-post-previews,
.case-study-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card,
.card-container > div,
.feature-grid > div,
.service-cards > div,
.service-list > div,
.blog-post-previews > div,
.case-study-cards > div {
  background: var(--color-accent);
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover,
.feature-grid > div:hover,
.service-cards > div:hover,
.service-list > div:hover,
.blog-post-previews > div:hover,
.case-study-cards > div:hover {
  box-shadow: 0 4px 24px var(--color-shadow);
  transform: translateY(-2px) scale(1.013);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

.testimonial-card {
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid #e3e8ed;
  box-shadow: 0 2px 12px var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 400px;
  color: var(--color-primary);
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 20px var(--color-shadow);
}
.testimonial-card p {
  font-size: 1.06rem;
  color: var(--color-primary);
}
.testimonial-card span {
  font-size: 0.97rem;
  color: var(--color-secondary);
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  margin-top: 18px;
}
.client-logos img {
  height: 38px;
  width: auto;
  filter: grayscale(60%);
  opacity: 0.9;
  transition: filter 0.2s, opacity 0.2s;
}
.client-logos img:hover { filter: none; opacity: 1; }

.culture-highlights ul,
.case-metrics ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 1rem;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.98rem;
}
.category-filters a {
  color: var(--color-primary);
  padding: 6px 14px;
  background: var(--color-accent);
  border-radius: 6px;
  transition: color 0.16s, background 0.17s;
}
.category-filters a:hover {
  color: var(--color-secondary);
  background: var(--color-white);
}

.platform-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin-bottom: 18px;
}
.platform-logos img {
  height: 34px;
  width: auto;
  transition: opacity 0.18s;
  opacity: 0.7;
}
.platform-logos img:hover { opacity: 1; }

.platform-descriptions {
  font-size: 1rem;
  color: var(--color-primary);
}

.location-map {
  background: var(--color-accent);
  border-radius: 12px;
  padding: 24px;
  font-size: 0.97rem;
  box-shadow: 0 0 10px var(--color-shadow);
  margin-left: 0;
  min-width: 220px;
}

/* ========== BUTTONS / CTAs ========== */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 1px 6px var(--color-shadow);
  cursor: pointer;
  transition: background 0.20s, box-shadow 0.17s, transform 0.15s;
  text-align: center;
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: 0 2px 12px var(--color-shadow);
  transform: translateY(-2px) scale(1.03);
}
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 1px 6px var(--color-shadow);
  cursor: pointer;
  transition: border-color 0.15s, background 0.17s, color 0.13s, transform 0.15s;
  text-align: center;
}
.cta-secondary:hover,
.cta-secondary:focus {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  background: var(--color-white);
  transform: translateY(-1px) scale(1.02);
}

button, .button, input[type="submit"], input[type="button"] {
  font-family: inherit;
  font-size: 1rem;
}

/* ========== MAIN NAVIGATION ========== */
header {
  background: var(--color-white);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
  border-bottom: 1px solid #EEEEF3;
}
.main-navigation {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  justify-content: flex-start;
  padding: 18px 0 18px 0;
}
.main-navigation a {
  color: var(--color-primary);
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 6px;
  position: relative;
  background: none;
  transition: color 0.14s, background 0.16s;
}
.main-navigation a:not(.cta-primary):hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.main-navigation img {
  height: 36px;
  width: auto;
}
@media (max-width: 1050px) {
  .main-navigation {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  .main-navigation {
    gap: 4px;
  }
}
@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }
}


/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 6px;
  padding: 5px 14px;
  margin: 10px 14px 10px auto;
  cursor: pointer;
  box-shadow: 0 1px 8px var(--color-shadow);
  z-index: 1101;
  transition: background 0.16s, color 0.14s, box-shadow 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: 0 4px 16px var(--color-shadow);
}
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  box-shadow: 0 0 12px var(--color-shadow);
  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(0.85,0,0.17,1);
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  align-self: flex-end;
  margin: 22px 20px 0 0;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 28px 0 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1.15rem;
  color: var(--color-primary);
  padding: 10px 0;
  border-radius: 6px;
  font-weight: 500;
  transition: color 0.16s, background 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none;
  }
}


/* ========== FOOTER ========== */
footer {
  background: var(--color-accent);
  padding: 38px 0 24px 0;
  font-size: 1rem;
  position: relative;
  margin-top: 80px;
  border-top: 1px solid #e3e8ed;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: stretch;
  width: 100%;
}
.footer-navigation {
  display: flex;
  flex-direction: row;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.footer-navigation a {
  color: var(--color-primary);
  background: none;
  font-size: 0.98rem;
  transition: color 0.15s;
  border-radius: 4px;
  padding: 3px 6px;
}
.footer-navigation a:hover {
  color: var(--color-secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 8px;
}
.footer-contact img {
  height: 16px;
  width: 16px;
  vertical-align: middle;
  margin-right: 5px;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.footer-brand img {
  height: 34px;
  width: auto;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-brand { flex-direction: column; gap: 8px; align-items: flex-start; }
}


/* ========== FORMS & FIELDS ========== */
input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #c6d0db;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  margin-bottom: 18px;
  box-shadow: 0 1px 4px rgba(20,58,95,0.03);
  transition: border-color 0.14s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  outline: none;
  box-shadow: 0 0 8px var(--color-shadow);
}
label {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1rem;
  margin-bottom: 7px;
  color: var(--color-primary);
}


/* ========== SPECIAL LAYOUTS ========== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
@media (min-width: 992px) {
  .content-wrapper,
  .footer-contact {
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
  }
  .text-section, .location-map {
    min-width: 300px;
    max-width: 600px;
    flex: 1 1 50%;
  }
}

@media (max-width: 992px) {
  .content-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ========== BLOG SPECIALS ========== */
.blog-post-previews > div {
  min-width: 250px;
  flex: 1 1 300px;
}

/* ========== CASE STUDIES ========== */
.case-study-cards > div {
  min-width: 258px;
  flex: 1 1 330px;
}

/* ========== ANIMATIONS & MICRO-INTERACTIONS ========== */
.card, .feature-grid > div, .service-cards > div, .service-list > div, .blog-post-previews > div, .case-study-cards > div {
  transition: box-shadow 0.19s, transform 0.14s;
}

.cta-primary, .cta-secondary, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner-btn, .cookie-settings-btn {
  transition: background 0.16s, color 0.16s, transform 0.13s;
}

/* Focus accessibility states */
.cta-primary:focus, .cta-secondary:focus, .cookie-banner-btn:focus, .cookie-settings-btn:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ======================== COOKIE CONSENT BANNER ======================== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: var(--color-white);
  border-top: 1.5px solid #e3e8ed;
  box-shadow: 0 -2px 24px var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 16px 12px 16px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
  transition: opacity 0.30s, transform 0.30s;
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner-content {
  max-width: 800px;
  font-size: 0.99rem;
  color: var(--color-primary);
  text-align: center;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: center;
}
.cookie-banner-btn, .cookie-settings-btn {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  padding: 9px 20px;
  border-radius: 7px;
  box-shadow: 0 1px 6px var(--color-shadow);
  cursor: pointer;
  margin-bottom: 4px;
}
.cookie-banner-btn.accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner-btn.reject {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.cookie-banner-btn.accept:hover, .cookie-banner-btn.accept:focus {
  background: var(--color-secondary);
}
.cookie-banner-btn.reject:hover, .cookie-banner-btn.reject:focus {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}
.cookie-settings-btn {
  background: var(--color-accent);
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--color-white);
  color: var(--color-primary);
}

@media (max-width: 540px) {
  .cookie-banner {
    gap: 14px;
    padding: 14px 5px 4px 5px;
  }
  .cookie-banner-content {
    font-size: 0.94rem;
  }
  .cookie-banner-actions {
    flex-direction: column;
    gap: 10px;
  }
}


/* ================= COOKIE SETTINGS MODAL ================== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(20,58,95,0.11);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.97);
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 6px 32px var(--color-shadow);
  padding: 30px 30px 25px 30px;
  min-width: 305px;
  max-width: 94vw;
  min-height: 180px;
  z-index: 3100;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s, opacity 0.2s;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal-header {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  align-self: flex-end;
  margin-left: 10px;
  transition: color 0.18s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus { color: var(--color-secondary); }
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 11px;
}
.cookie-category {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 15px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.cookie-category label {
  margin-bottom: 0;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1rem;
}
.cookie-category .always-enabled {
  color: #86a0b7;
  font-size: 0.93rem;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ========== OTHER TYPOGRAPHY ========== */
small, .text-small {
  font-size: 0.92rem;
  color: #647b94;
}

/* ========== SECTION SPACING OVERRIDES (ensures no overlap) ========== */
main > section { margin-bottom: 60px; }
main > section:last-child { margin-bottom: 0; }

/* ========== SEPARATORS/HR ========== */
hr {
  border: none;
  border-top: 1px solid #e3e8ed;
  margin: 38px 0;
}

/* ========== ACCESSIBILITY ========== */
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}

/* ========== MISCELLANEOUS ========== */
.hide {
  display: none !important;
}

/* ========== Media Queries for RESPONSIVE ========== */
@media (max-width: 1020px) {
  .container { max-width: 100%; }
}
@media (max-width: 900px) {
  .feature-grid, .service-cards, .service-list, .case-study-cards, .card-grid {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1rem; }
  .card, .feature-grid > div, .service-cards > div, .service-list > div, .blog-post-previews > div, .case-study-cards > div {
    padding: 18px 12px;
    min-width: 100%;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: unset;
    padding: 16px;
  }
}
@media (max-width: 540px) {
  .container { padding: 0 6px; }
  .content-wrapper { gap: 14px; }
}

/* ========== END ========== */