/* ==== CSS RESET & BASE ==== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #fff;
  color: #222;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  padding-left: 1.5em;
}
a {
  color: #235674;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #8BC53F;
  outline: none;
}
button {
  font-family: inherit;
  font-size: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: #235674;
  transition: background .2s, color .2s;
}


/* ==== BRAND TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #235674;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
}
p, ul, ol, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #303033;
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
  color: #235674;
}


/* ======== LAYOUT CONTAINERS ======== */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Section pattern */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: none;
}

/* ======= NAVIGATION ======= */
header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(35, 86, 116, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 0;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #235674;
  letter-spacing: 0.01em;
  padding: 8px 0;
  transition: color .2s;
  border-radius: 4px;
}
.main-nav a.cta-button {
  margin-left: 24px;
  background: #235674;
  color: #fff;
  border-radius: 30px;
  padding: 8px 28px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 12px rgba(35,86,116,0.07);
  transition: background .2s, color .2s, box-shadow .2s;
}
.main-nav a.cta-button:hover,
.cta-button:focus {
  background: #8BC53F;
  color: #235674;
  box-shadow: 0 4px 24px rgba(139,197,63, 0.12);
}
.main-nav a:hover:not(.cta-button),
.main-nav a:focus:not(.cta-button) {
  color: #8BC53F;
  background: rgba(139,197,63,0.07);
}
.main-nav img {
  height: 38px;
  margin-right: 18px;
}


/* ======= MOBILE MENU ======= */
.mobile-menu-toggle {
  display: none;
  background: #235674;
  color: #fff;
  border-radius: 6px;
  width: 42px;
  height: 42px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(255,255,255,0.98);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 8px 32px rgba(35,86,116,.08);
  padding: 0 0 60px 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #235674;
  font-size: 2rem;
  align-self: flex-end;
  margin: 24px 28px;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #235674;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 28px;
  padding-left: 32px;
}
.mobile-nav a {
  color: #235674;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 10px 0;
  transition: color .2s, background .2s;
  border-radius: 6px;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #8BC53F;
  color: #fff;
}


/* ==== HERO SECTIONS ==== */
.hero-section {
  display: flex;
  align-items: center;
  min-height: 280px;
  margin-bottom: 32px;
  padding: 24px 0 24px 0;
}
.hero-section h1 {
  color: #235674;
  font-size: 2.2rem;
}
.hero-section p {
  font-size: 1.125rem;
}


/* ==== FEATURES & CARD PATTERN ==== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature-grid > div {
  flex: 1 1 250px;
  background: #fafbfc;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 3px 12px rgba(35,86,116,0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  transition: box-shadow .2s, background .2s;
  min-height: 210px;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 30px rgba(35,86,116,0.09);
  background: #fff;
}
.feature-grid img {
  width: 40px; height: 40px;
  margin-bottom: 12px;
}


/* ==== SERVICES, LISTS, TEAM ==== */
.service-list, .team-list, .certification-list, .case-study-list, .tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 14px;
  list-style: none;
}
.service-list li, .case-study-list li, .tech-list li {
  flex: 1 1 300px;
  background: #fafbfc;
  border-radius: 16px;
  margin-bottom: 20px;
  padding: 30px 24px;
  min-width: 220px;
  box-shadow: 0 3px 13px rgba(35,86,116,.04);
  transition: box-shadow .2s, background .2s;
  display: flex; flex-direction: column;
  gap: 10px;
}
.service-list li img {
  width: 38px; height: 38px;
  margin-bottom: 10px;
}
.service-list li:hover, .tech-list li:hover, .case-study-list li:hover {
  box-shadow: 0 10px 32px rgba(35,86,116,0.13);
  background: #fff;
}
.team-list {
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}
.certification-list {
  flex-wrap: wrap;
  gap: 14px 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #235674;
  margin-bottom: 12px;
}
.certification-list li {
  background: #e8f4eb;
  border-radius: 8px;
  padding: 8px 14px;
}


/* ==== TESTIMONIALS ==== */
.testimonials-section {
  margin-top: 32px;
}
.testimonial-card {
  background: #fff;
  color: #222;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(35,86,116,0.13);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 32px;
  margin-bottom: 20px;
  margin-top: 12px;
  min-width: 220px;
  transition: box-shadow .2s, background .2s;
}
.testimonial-card p {
  color: #303033;
  font-size: 1rem;
  margin-bottom: 4px;
}
.testimonial-card strong {
  color: #235674;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(35,86,116,0.09);
  background: #fafbfc;
}

/* ==== CTA SECTION ==== */
.cta-section {
  background: #235674;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(35,86,116,0.08);
  padding: 40px 0;
  margin-top: 30px;
  color: #fff;
  text-align: center;
}
.cta-section h2, .cta-section p, .cta-section .cta-button {
  color: #fff;
}
.cta-section .cta-button {
  background: #8BC53F;
  color: #235674;
  margin: 20px auto 0 auto;
}
.cta-section .cta-button:hover {
  background: #fff;
  color: #8BC53F;
}

/* ==== BUTTONS ==== */
.cta-button {
  display: inline-block;
  background: #235674;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(35,86,116,0.07);
  margin-top: 8px;
  margin-bottom: 8px;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
  text-align: center;
  cursor: pointer;
}
.cta-button:hover, .cta-button:focus {
  background: #8BC53F;
  color: #235674;
  box-shadow: 0 4px 24px rgba(139,197,63, 0.12);
  transform: translateY(-2px) scale(1.04);
}

.industry-tag {
  display: inline-block;
  color: #8BC53F;
  background: rgba(139,197,63,0.07);
  padding: 3px 12px;
  border-radius: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-right: 0.7em;
  margin-top: 7px;
  font-size: 0.97em;
}


/* ==== LEGAL PAGES STYLING ==== */
.legal-section {
  background: #fafbfc;
  border-radius: 14px;
  padding: 40px 24px;
  margin: 40px 0 30px 0;
  box-shadow: 0 2px 20px rgba(35,86,116,0.05);
}
.legal-section h1 {
  color: #235674;
}
.legal-section h2, .legal-section h3 {
  color: #235674;
  font-weight: 700;
  margin-top: 18px;
}
.legal-section p, .legal-section li {
  color: #323232;
}


/* ==== CONFIRMATION PAGE (THANK YOU) ==== */
.confirmation-section {
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafbfc;
  border-radius: 20px;
  box-shadow: 0 2px 24px rgba(35,86,116,0.08);
  padding: 40px 10px;
}
.confirmation-section h1 {
  color: #8BC53F;
  font-size: 2.3rem;
}

/* ==== TEXT IMAGE AND GRID SECTIONS ==== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 4px;
}
.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;
}

/* ==== CONTACT PAGE DETAILS ==== */
.contact-details, .map-embed {
  background: #fafbfc;
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 2px 12px rgba(35,86,116,0.06);
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-details p, .map-embed p {
  margin-bottom: 6px;
  color: #235674;
  font-weight: 500;
  font-size: 1rem;
}

/* ==== FOOTER STYLES ==== */
footer {
  background: #fafbfc;
  color: #235674;
  font-size: 0.97rem;
  border-top: 1px solid #e7eae8;
  padding: 40px 0 28px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
}
.footer-nav a {
  color: #235674;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0.82;
  font-size: 1rem;
}
.footer-nav a:hover {
  color: #8BC53F;
  opacity: 1;
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 1rem;
}
.contact-info p {
  margin-bottom: 4px;
  color: #235674;
  font-size: 1rem;
}
footer p:last-child {
  opacity: 0.6;
  font-size: .92rem;
  margin-top: 12px;
}


/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -4px 24px rgba(35,86,116,0.14);
  border-top: 1px solid #e7eae8;
  padding: 28px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 3000;
  transition: transform .32s cubic-bezier(.66,0,.22,1), opacity .16s;
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner-text {
  color: #235674;
  font-size: 1.02rem;
  text-align: center;
  margin-bottom: 6px;
  max-width: 680px;
}
.cookie-banner-buttons {
  display: flex; flex-direction: row; gap: 18px;
}
.cookie-banner button {
  padding: 8px 24px;
  border-radius: 24px;
  font-size: 1rem;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: #235674;
  color: #fff;
  box-shadow: 0 2px 8px rgba(35,86,116,0.13);
  transition: background .18s, color .18s, box-shadow .18s;
}
.cookie-banner button.settings {
  background: #fff;
  color: #235674;
  border: 1px solid #235674;
}
.cookie-banner button.accept {
  background: #8BC53F;
  color: #235674;
}
.cookie-banner button.reject {
  background: #235674;
  color: #fff;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #8BC53F;
  color: #235674;
  box-shadow: 0 4px 20px rgba(139,197,63,0.14);
}
.cookie-banner button.settings:hover {
  background: #f4f4ef;
  color: #235674;
}


/* ==== COOKIE MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3100;
  background: rgba(35,86,116,0.21);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .22s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(35,86,116,0.16);
  min-width: 300px;
  max-width: 98vw;
  width: 400px;
  padding: 38px 28px 28px 28px;
  color: #235674;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  animation: fadein .34s cubic-bezier(.55,0,.26,1);
}
.cookie-modal h2 {
  margin-bottom: 20px;
  color: #235674;
  font-size: 1.2rem;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  margin-left: 9px;
  color: #235674;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  margin-left: 0;
  accent-color: #8BC53F;
}
.cookie-modal .cookie-category.essential label {
  opacity: 0.6;
  font-style: italic;
}
.cookie-modal .cookie-category.essential input {
  display: none;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 20px;
  background: none;
  color: #235674;
  font-size: 1.4rem;
  border: none;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, color .18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #8BC53F;
  color: #fff;
}
.cookie-modal-buttons {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  width: 100%;
}
.cookie-modal-buttons button {
  flex: 1 1 0;
  padding: 9px 0;
  border-radius: 20px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  background: #235674;
  color: #fff;
  transition: background .15s, color .15s;
}
.cookie-modal-buttons button.save {
  background: #8BC53F;
  color: #235674;
}
.cookie-modal-buttons button.save:hover {
  background: #235674;
  color: #fff;
}
.cookie-modal-buttons button.cancel {
  background: #fff;
  color: #235674;
  border: 1px solid #235674;
}
.cookie-modal-buttons button.cancel:hover {
  background: #f7f7f5;
  color: #235674;
}

@keyframes fadein {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* ==== GENERAL UTILITIES ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(35,86,116,0.07);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .18s;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(35,86,116,0.11);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
  gap: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== SPACING RULES ==== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container,
.content-grid,
.feature-grid,
.service-list,
.case-study-list,
.tech-list {
  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;
}


/* ==== MEDIA QUERIES ==== */
@media (max-width: 1024px) {
  .main-nav {
    gap: 10px;
    padding-left: 0;
    padding-right: 0;
  }
  .feature-grid, .service-list, .certification-list, .case-study-list, .tech-list {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .container {
    max-width: 97vw;
    padding-left: 12px; padding-right: 12px;
  }
  .feature-grid > div, .service-list li, .case-study-list li, .tech-list li {
    min-width: 160px;
    padding: 24px 14px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    right: 22px;
    top: 16px;
    z-index: 1050;
  }
  .cookie-modal {
    width: 96vw;
    padding: 28px 10px 20px 10px;
  }
  .hero-section h1 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }
  .feature-grid, .service-list, .case-study-list, .tech-list, .certification-list {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .service-list li, .case-study-list li, .tech-list li {
    width: 100%;
    min-width: 0;
    margin-bottom: 16px;
  }
  .testimonials-section, .cta-section, .legal-section, .confirmation-section {
    padding: 20px 0 20px 0;
  }
  .footer-nav {
    gap: 14px;
    font-size: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-info {
    gap: 10px;
    flex-direction: column;
    font-size: .97rem;
  }
  .text-image-section, .content-grid {
    flex-direction: column !important;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 15.5px;
  }
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.05rem; }
}


/* ====== FOCUS & MICRO-INTERACTIONS ====== */
a, button, .cta-button, .cookie-banner button, .mobile-menu-toggle, .mobile-menu-close, .cookie-modal-close {
  outline: none;
}
a:focus-visible, .cta-button:focus-visible,
.mobile-menu-toggle:focus-visible, .cookie-modal-close:focus-visible, .cookie-banner button:focus-visible {
  box-shadow: 0 0 0 3px #8BC53F33;
  border-radius: 6px;
}

/* ==== Hide visually but accessible ==== */
.visually-hidden {
  position: absolute!important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
