/* ---- CSS RESET & BASE ---- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #25415A;
  background: #F7F9FB;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #2BB673;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #25415A;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

/* ---- BRAND TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #25415A;
  margin-bottom: 0.6em;
  line-height: 1.18;
  letter-spacing: -0.015em;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 0.6em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 0.35em;
}
h4 {
  font-size: 1.17rem;
}
p, li {
  margin-bottom: 0.8em;
  font-size: 1.05rem;
  max-width: 750px;
}
strong {
  font-weight: 700;
}

/* Typography scale for mobile */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.2rem; }
}

/* ---- CONTAINER & GENERAL SPACING ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .container { padding: 0 14px; }
  .section {
    margin-bottom: 36px;
    padding: 28px 0;
  }
}

/* ---- HEADER & NAVIGATION ---- */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(37,65,90,0.05);
  border-bottom: 1px solid #eaeef2;
  position: relative;
  z-index: 1020;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 0;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #25415A;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #f0f4f8;
  color: #2BB673;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  background: #2BB673;
  color: #fff !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 11px 28px;
  border: none;
  border-radius: 28px;
  box-shadow: 0 4px 16px rgba(43,182,115,0.11);
  margin-left: 24px;
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.22s, color 0.18s;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: #25415A;
  color: #fff !important;
  box-shadow: 0 6px 24px rgba(37,65,90,0.12);
}

@media (max-width: 992px) {
  .main-nav { gap: 14px; }
  .cta-primary { margin-left: 12px; }
}

/* ---- MOBILE NAV ---- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #2BB673;
  cursor: pointer;
  padding: 8px 18px;
  margin-left: auto;
  transition: color 0.18s, background 0.18s;
  z-index: 1030;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #2BB673;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 3000;
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  box-shadow: -3px 0 36px 0 rgba(37,65,90,0.06);
  transition: transform 0.28s cubic-bezier(0.57,0.03,0.33,1);
  padding: 28px 24px 24px 24px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: #25415A;
  padding: 8px 12px;
  margin-bottom: 22px;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:focus {
  outline: 2px solid #2BB673;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #25415A;
  font-size: 1.18rem;
  padding: 12px 0 6px 0;
  border-bottom: 1px solid #E5EBF1;
  transition: color 0.17s, background 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #2BB673;
  background: #f2fcf9;
}

@media (max-width: 1021px) {
  .main-nav, .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1022px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ---- HERO SECTION ---- */
.hero {
  background: #F7F9FB;
  padding: 56px 0 56px 0;
  min-height: 340px;
  display: flex;
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 26px;
  max-width: 700px;
}
.hero img {
  margin-top: 10px;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(37,65,90,0.04);
}
@media (max-width: 768px) {
  .hero { padding: 28px 0 24px 0; }
}

/* ---- FLEXBOX FEATURES & CARDS ---- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  width: 100%;
}
.feature-grid > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(37,65,90,0.10);
  padding: 28px 22px 22px 22px;
  flex: 1 1 220px;
  min-width: 240px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.19s, transform 0.19s;
  margin-bottom: 20px;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 8px 32px rgba(43,182,115,0.19);
  transform: translateY(-2px) scale(1.015);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 5px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 12px rgba(37,65,90,0.07);
  padding: 28px 20px;
  margin-bottom: 20px;
  position: relative;
  min-width: 220px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 24px;
  max-width: 800px;
}

.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) {
  .feature-grid, .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    align-items: stretch !important;
    gap: 14px;
  }
}

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

/* ---- TESTIMONIALS ---- */
.testimonials { background: #EFF3F6; padding: 38px 0; }
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 10px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 22px 18px 22px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 22px rgba(37,65,90,0.10);
  min-width: 260px;
  max-width: 360px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  font-size: 1.13rem;
  color: #25415A;
  transition: box-shadow 0.17s, transform 0.17s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 12px 38px rgba(37,65,90,0.14);
  transform: translateY(-3px) scale(1.017);
}
.testimonial-card p {
  font-size: 1.12rem;
  color: #193043;
  margin-bottom: 10px;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2BB673;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 5px;
}

.customer-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.customer-logos img {
  height: 38px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(34%);
}

/* ---- CASE STUDIES & SPECIAL BLOCKS ---- */
.case-study-highlights, .how-it-works .process-steps, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}
.case-study-highlights .text-section, .how-it-works .text-section, .blog-list .text-section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 12px rgba(37,65,90,0.07);
  padding: 20px 16px;
  margin-bottom: 20px;
  flex: 1 1 270px;
}
.process-steps .text-section img {
  width: 36px;
  height: 36px;
}
.explainer {
  margin-top: 18px;
  font-size: 1rem;
  color: #25415A;
}
@media (max-width: 768px) {
  .case-study-highlights, .how-it-works .process-steps, .blog-list {
    flex-direction: column;
    gap: 13px;
  }
}

/* ---- CONTACT & MAP ---- */
.contact-info, .contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 15px 0 15px 0;
}
.contact-info div, .contact-details-list div {
  color: #25415A;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-info img, .contact-details-list img {
  height: 22px;
  width: 22px;
}
.map {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f2fcf9;
  padding: 14px 18px;
  border-radius: 12px;
  margin-top: 16px;
}
.map img {
  width: 28px; height: 28px;
}

/* ---- BUTTONS, FILTERS, INTERACTIONS ---- */
button, .cta-primary {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background 0.19s, box-shadow 0.18s, color 0.18s, border 0.18s;
}
.categories-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0 15px 0;
  font-size: 1rem;
  color: #25415A;
}
.categories-filter a {
  background: #EFF3F6;
  color: #25415A;
  border-radius: 8px;
  padding: 5px 15px;
  margin-right: 4px;
  transition: background 0.13s, color 0.13s;
}
.categories-filter a:hover, .categories-filter a:focus {
  background: #2BB673;
  color: #fff;
}

/* ---- FOOTER ---- */
footer {
  background: #25415A;
  color: #fff;
  padding: 42px 0 28px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
footer a {
  color: #2BB673;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  margin-right: 18px;
  transition: color 0.19s;
}
footer a:hover, footer a:focus {
  color: #fff;
  text-decoration: underline;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 1rem;
  color: #dcecfc;
}
.footer-contact img {
  filter: brightness(0) invert(1); width: 17px; height: 17px;
  margin-right: 6px;
}
@media (max-width: 992px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
  }
}

/* ---- STANDARDIZED SPACING ---- */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .feature-grid, .content-grid, .testimonial-slider, .case-study-highlights, .process-steps, .customer-logos {
  gap: 24px;
}
.card, .card-container > *, .feature-grid > *, .testimonial-slider > *, .case-study-highlights > *, .content-grid > *, .process-steps > *, .customer-logos > * {
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  section, .section {
    margin-bottom: 32px;
    padding: 22px 0;
  }
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #25415A;
  color: #fff;
  width: 100vw;
  z-index: 5000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 20px 32px;
  box-shadow: 0 -2px 18px rgba(37,65,90,0.15);
  gap: 28px;
  font-size: 1rem;
  animation: slideInCookie 0.5s cubic-bezier(0.4,0.6,0.3,1);
}
@keyframes slideInCookie {
  from { transform: translateY(110%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner p {
  color: #fff;
  margin-bottom: 0;
  margin-right: 22px;
  max-width: 820px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  background: #2BB673;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  padding: 8px 24px;
  font-family: 'Montserrat', sans-serif;
  margin: 0 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.17s, color 0.17s, box-shadow 0.18s;
  box-shadow: 0 2px 9px rgba(37,65,90,0.09);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #fff;
  color: #25415A;
  box-shadow: 0 4px 20px rgba(43,182,115,0.13);
}
.cookie-btn.secondary {
  background: transparent;
  color: #2BB673;
  border: 1px solid #2BB673;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #2BB673;
  color: #fff;
}
@media (max-width: 730px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
    gap: 14px;
  }
  .cookie-banner p { margin-right: 0; }
}

/* ---- COOKIE MODAL ---- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 6000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(37,65,90,0.38);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInOverlay 0.21s;
}
@keyframes fadeInOverlay {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal {
  background: #fff;
  color: #25415A;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(37,65,90,0.16);
  padding: 34px 32px 24px 32px;
  width: 100%;
  max-width: 420px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: scaleInModal 0.21s cubic-bezier(.52,.01,.53,1.12);
}
@keyframes scaleInModal {
  from { opacity:0; transform: scale(0.94); }
  to { opacity:1; transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.42rem;
  margin-bottom: 8px;
  color: #25415A;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1.03rem;
  font-family: 'Roboto', sans-serif;
  color: #25415A;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  background: #E4EEF3;
  border-radius: 11px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-toggle:checked {
  background: #2BB673;
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.09);
  transition: transform 0.17s;
}
.cookie-toggle:checked::before {
  transform: translateX(18px);
}
.cookie-category[disabled] label,
.cookie-category label[disabled] {
  color: #8D99A3;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}
@media (max-width: 570px) {
  .cookie-modal {
    padding: 19px 10px 15px 10px;
    max-width: 95vw;
  }
}

/* ---- FINAL CTA SECTIONS ---- */
.final-cta {
  background: #f0f4f8;
  border-radius: 22px;
  box-shadow: 0 2px 10px rgba(43,182,115,0.11);
  padding: 50px 0;
  margin-bottom: 54px;
  text-align: center;
}
.final-cta .container {
  align-items: center;
}
.final-cta h2 {
  color: #25415A;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 12px;
}
.final-cta p {
  color: #25415A;
  font-size: 1.14rem;
  margin-bottom: 23px;
}
.final-cta .cta-primary {
  margin-left: 0;
  margin-top: 10px;
}
@media (max-width: 768px) {
  .final-cta { padding: 28px 0; }
}

/* ---- CONFIRMATION ---- */
.confirmation {
  background: #F7F9FB;
  display: flex;
  align-items: center;
  min-height: 380px;
  text-align: center;
}
.confirmation .content-wrapper {
  align-items: center;
  gap: 18px;
}
.confirmation .cta-primary { margin-top: 18px; }

/* ---- LEGAL & POLICY ---- */
.legal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 16px rgba(37,65,90,0.06);
  padding: 38px 22px;
  margin-bottom: 48px;
}
.legal h1, .legal h2 { color: #25415A; }
.legal .text-section {
  margin-top: 12px;
}
@media (max-width: 768px) {
  .legal {
    padding: 19px 6px;
  }
}

/* ---- MISC STYLES AND HELPER CLASSES ---- */
hr {
  border: none;
  height: 1px;
  background: #E1E7EC;
  margin: 30px 0;
}
.bg-primary {
  background: #25415A; color: #fff;
}
.bg-secondary {
  background: #2BB673; color: #fff;
}
.bg-accent {
  background: #F7F9FB;
}
.radius-18 {
  border-radius: 18px;
}
.shadow {
  box-shadow: 0 4px 18px rgba(37,65,90,0.10);
}
.mbt-24 { margin-bottom: 24px; }

/* ---- TRANSITIONS & INTERACTIONS ---- */
input, textarea, select, button {
  transition: background 0.17s, border 0.17s, color 0.17s;
}
:focus {
  outline: 2px solid #2BB673;
  outline-offset: 2px;
}

/* ---- RESPONSIVE RULES ---- */
@media (max-width: 650px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.06rem; }
  .footer-contact { font-size: 0.99rem; }
  .case-study-highlights .text-section, .how-it-works .text-section, .blog-list .text-section {
    padding: 13px 5px;
    font-size: 0.99rem;
  }
}

/* ==== END OF CSS ==== */
