/* ====================================================
   CSS RESET & NORMALIZE
   ==================================================== */
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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.45;
  background: #F7F7FA;
  color: #22334C;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #42C5C7;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #22334C;
}
ul, ol {
  margin-left: 24px;
}
strong {
  font-weight: 700;
}
::-webkit-input-placeholder { color: #606d85; }
::-moz-placeholder { color: #606d85; }
:-ms-input-placeholder { color: #606d85; }
::placeholder { color: #606d85; }

/* ====================================================
   TYPOGRAPHY — GEOMETRIC/STRUCTURED
   ==================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #22334C;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol, blockquote {
  font-size: 1rem;
  margin-bottom: 16px;
}
blockquote {
  font-style: italic;
  border-left: 4px solid #42C5C7;
  padding-left: 16px;
  color: #22334C;
  margin-bottom: 8px;
  background: #eef8f8;
  border-radius: 7px;
}

/* ====================================================
   COMMON LAYOUT UTILITY CLASSES
   ==================================================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(34,51,76,0.04);
  margin-bottom: 20px;
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  transition: box-shadow 0.3s;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(34,51,76,0.13);
}
.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: 16px;
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px rgba(34,51,76,0.06);
  border-left: 8px solid #42C5C7;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-grid > div {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(34,51,76,0.06);
  padding: 28px 18px;
  flex: 1 1 200px;
  min-width: 220px;
  margin-bottom: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
  border-bottom: 5px solid #42C5C7;
}
.features-grid > div:hover {
  box-shadow: 0 6px 32px rgba(34,51,76,0.12);
  transform: translateY(-6px) scale(1.01);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.case-studies {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  justify-content: flex-start;
}
.case-studies .text-section {
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 1px 8px rgba(34,51,76,0.06);
  min-width: 220px;
  flex: 1 1 250px;
}

/* ====================================================
   HEADER & NAVIGATION
   ==================================================== */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1.5px solid #e3e8ee;
  box-shadow: 0 1px 6px rgba(34,51,76,0.03);
  position: relative;
  z-index: 80;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 12px 0;
  flex-wrap: wrap;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: 0.015em;
}
.main-nav a {
  color: #22334C;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 5px;
  transition: color 0.18s, background 0.18s;
  display: flex;
  align-items: center;
  gap: 7px;
}
.main-nav a:hover, .main-nav a:focus {
  background: #eef8f8;
  color: #42C5C7;
}
.main-nav .btn-primary {
  background: #42C5C7;
  color: #fff;
  border-radius: 8px;
  padding: 9px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: 12px;
  border: none;
  box-shadow: 0 1px 6px rgba(34,51,76,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.main-nav .btn-primary:hover, .main-nav .btn-primary:focus {
  background: #22334C;
  color: #fff;
  box-shadow: 0 3px 16px rgba(66,197,199,0.11);
}
header img {
  height: 38px;
  min-width: 38px;
  margin-right: 9px;
  border-radius: 7px;
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  color: #22334C;
  border: none;
  font-size: 2rem;
  align-self: center;
  margin-left: auto;
  padding: 7px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 110;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #eef8f8;
  color: #42C5C7;
}

@media (max-width: 980px) {
  .main-nav {
    gap: 15px;
  }
  header img {
    height: 34px;
    min-width: 34px;
  }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,51,76, 0.98);
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(110%);
  transition: opacity 0.25s, transform 0.37s cubic-bezier(.75,.01,.33,1.01);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  padding: 16px 30px 8px 24px;
  cursor: pointer;
  align-self: flex-end;
  margin-top: 8px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 25px;
  width: 100vw;
  gap: 8px;
  padding-left: 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 16px 0;
  margin-bottom: 4px;
  border-radius: 5px;
  transition: background 0.19s, color 0.17s;
  width: fit-content;
  min-width: 220px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #42C5C7;
  color: #22334C;
}
@media (max-width: 1100px) {
  .container {
    max-width: 92vw;
  }
}
@media (max-width: 900px) {
  .container {
    padding-left: 12px; padding-right: 12px;
  }
}
@media (max-width: 800px) {
  .main-nav a:not(:first-child) { font-size: 0.95rem; }
}
@media (max-width: 820px) {
  .main-nav {
    gap: 6px;
  }
  header img {
    height: 30px;
    min-width: 30px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ====================================================
   BUTTONS — Primary & Secondary (geometric)
   ==================================================== */
.btn-primary, .btn-secondary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  display: inline-block;
  text-align: center;
  padding: 10px 34px;
  font-size: 1.08rem;
  border-radius: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  margin: 6px 0;
  transition: background 0.19s, color 0.18s, box-shadow 0.19s, transform 0.15s;
  box-shadow: 0 2px 10px rgba(34,51,76,0.06);
  outline: none;
  position: relative;
  z-index: 1;
}
.btn-primary {
  background: #42C5C7;
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: #22334C;
  color: #fff;
  box-shadow: 0 6px 22px rgba(66,197,199,0.16);
  transform: translateY(-2px) scale(1.02);
}
.btn-secondary {
  background: #fff;
  color: #42C5C7;
  border: 2px solid #42C5C7;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #42C5C7;
  color: #fff;
  box-shadow: 0 6px 22px rgba(34,51,76,0.08);
}

/* ====================================================
   FOOTER
   ==================================================== */
footer {
  background: #22334C;
  color: #fff;
  padding: 40px 0 14px 0;
  font-size: 0.97rem;
  margin-top: 60px;
}
footer .container {
  width: 100%;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}
footer .footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.18s, color 0.18s;
}
footer .footer-nav a:hover, footer .footer-nav a:focus {
  color: #42C5C7;
  border-bottom: 1.5px solid #42C5C7;
}
footer p {
  color: #dce6f1;
}

/* ====================================================
   TESTIMONIALS
   ==================================================== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 12px rgba(34,51,76,0.10);
  border-left: 5px solid #42C5C7;
  max-width: 390px;
  min-width: 220px;
  transition: box-shadow 0.2s, border-color 0.13s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 22px rgba(66,197,199,0.12);
  border-left: 5px solid #22334C;
}
.testimonial-card blockquote {
  font-size: 1.12rem;
  color: #22334C;
  margin-bottom: 0;
  background: none;
  border-left: none;
  padding-left: 0;
}
.star-rating {
  color: #FFB800;
  letter-spacing: 0.12em;
  font-size: 1.23rem;
}

/* ====================================================
   CONTACT INFO CLASS (for icon/label rows)
   ==================================================== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
}
.contact-info p {
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 11px;
  margin-bottom: 3px;
}
.contact-info img {
  width: 22px;
  height: 22px;
  margin-right: 7px;
}

/* ====================================================
   RESPONSIVE LAYOUTS (mobile-first)
   ==================================================== */
@media (max-width: 1140px) {
  .case-studies {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 1020px) {
  .features-grid,
  .testimonial-slider {
    flex-direction: column;
    gap: 20px;
  }
  .features-grid > div, .testimonial-card {
    min-width: 0;  /* allow shrinking */
    width: 100%;
    max-width: 680px;
  }
}
@media (max-width: 820px) {
  .content-wrapper {
    gap: 17px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 38px;
    padding: 28px 8px;
  }
  h1 {
    font-size: 1.45rem;
    margin-bottom: 18px;
  }
  h2 {
    font-size: 1.17rem;
    margin-bottom: 12px;
  }
  h3 {
    font-size: 1.05rem;
  }
  .features-grid > div,
  .testimonial-card,
  .case-studies .text-section,
  .card {
    padding: 18px 12px;
    min-width: 0;
    max-width: 100%;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-grid,
  .case-studies {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 14px;
  }
  .footer-nav {
    gap: 12px;
  }
  .contact-info p {
    font-size: 0.98rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* ====================================================
   Animations
   ==================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.section, .features-grid > div, .testimonial-card, .card {
  animation: fadeInUp 0.8s cubic-bezier(.5,.05,.2,1.05);
}

/* ====================================================
   COOKIE CONSENT BANNER & MODAL
   ==================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  z-index: 250;
  background: #22334C;
  color: #fff;
  padding: 24px 14px 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 -2px 18px rgba(34,51,76,0.24);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  animation: fadeInUp 0.33s;
}
.cookie-banner-text {
  font-size: 1rem;
  line-height: 1.38;
  color: #fff;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.cookie-banner-btns {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-btn, .cookie-btn-alt {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  padding: 11px 32px;
  border-radius: 8px;
  font-size: 1rem;
  transition: background 0.19s, color 0.16s, box-shadow 0.13s;
  cursor: pointer;
  outline: none;
}
.cookie-btn {
  background: #42C5C7;
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #fff;
  color: #22334C;
  box-shadow: 0 2px 10px rgba(66,197,199,0.11);
}
.cookie-btn-alt {
  background: #fff;
  color: #22334C;
  border: 2px solid #42C5C7;
}
.cookie-btn-alt:hover, .cookie-btn-alt:focus {
  background: #42C5C7;
  color: #fff;
  border: 2px solid #fff;
}

/* Cookie settings modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,51,76,0.70);
  z-index: 260;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.16s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: #22334C;
  border-radius: 18px;
  box-shadow: 0 2px 33px rgba(34,51,76,0.16);
  min-width: 310px;
  max-width: 420px;
  padding: 34px 24px 28px 24px;
  animation: fadeInUp 0.38s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal h2 {
  font-size: 1.12rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 11px;
  letter-spacing: 0.009em;
}
.cookie-modal .category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 1rem;
  padding-bottom: 6px;
}
.cookie-modal .category strong {
  font-size: 1rem;
  font-family: inherit;
}
.cookie-modal .category-toggle {
  width: 36px; height: 20px;
  border-radius: 22px;
  background: #e3e8ee;
  position: relative;
  margin-left: 18px;
  cursor: pointer;
  transition: background 0.16s;
  display: inline-block;
}
.cookie-modal .category-toggle.enabled {
  background: #42C5C7;
}
.category-toggle-slider {
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(34,51,76,0.07);
  transition: left 0.16s;
}
.category-toggle.enabled .category-toggle-slider {
  left: 18px;
}
.cookie-modal .category-desc {
  font-size: 0.95rem;
  color: #606d85;
  margin-bottom: 4px;
}
.cookie-modal .modal-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 13px;
  justify-content: flex-end;
}
.cookie-modal .modal-close-btn {
  position: absolute; right: 18px; top: 12px;
  background: none;
  border: none;
  color: #42C5C7;
  font-size: 1.6rem;
  cursor: pointer;
}
@media (max-width: 578px) {
  .cookie-modal {
    min-width: 98vw;
    max-width: 100vw;
    padding: 19px 6vw 19px 6vw;
  }
  .cookie-banner {
    font-size: 0.99rem;
    padding: 14px 4px 14px 8px;
  }
  .cookie-banner-btns {
    flex-direction: column;
    gap: 10px;
  }
}

/* ====================================================
   OTHER ELEMENTS & UTILITIES
   ==================================================== */
hr {
  border: none;
  border-top: 1.5px solid #e3e8ee;
  margin: 32px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
th, td {
  padding: 10px 18px;
  border: 1px solid #e3e8ee;
  text-align: left;
}
input[type=text], input[type=email], textarea {
  border: 1.5px solid #e3e8ee;
  border-radius: 7px;
  padding: 10px 16px;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 15px;
  background: #f7f7fa;
  transition: border 0.18s;
}
input[type=text]:focus, input[type=email]:focus, textarea:focus {
  border: 1.5px solid #42C5C7;
  outline: none;
}

/* --- Geometric Shape accents (optional) --- */
.shape-accent {
  position: absolute;
  right: -11px; top: -11px;
  width: 60px;
  height: 60px;
  background: #42C5C7;
  clip-path: polygon(100% 0,0 0,100% 100%);
  z-index: 1;
  opacity: 0.08;
  pointer-events: none;
  border-radius: 6px;
}

/*****************
 MEDIA QUERIES for mobile structure & spacing
 *****************/
@media (max-width: 540px) {
  .content-wrapper, .footer-nav {
    gap: 10px;
  }
  .features-grid > div, .testimonial-card, .card {
    padding: 12px 6px;
    border-radius: 10px;
  }
  .container {
    padding-left: 3px; padding-right: 3px;
  }
}

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

/*****************
 Ensuring NO Grid!
 *****************/
/* (No grid/columns anywhere – only flex layouts used above) */
