/* ==== RESET & BASE ==== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F0F3F9;
  color: #124266;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  padding-left: 1.5em;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.5em;
}
h1 { font-size: 2.75rem; margin-bottom: 20px; color: #124266; }
h2 { font-size: 2rem; margin-bottom: 18px; color: #31A69D; }
h3 { font-size: 1.4rem; margin-bottom: 10px; color: #124266; }
h4 { font-size: 1.1rem; margin-bottom: 6px; color: #124266; }
p, li {
  font-size: 1rem;
  margin-bottom: 12px;
}
a {
  color: #124266;
  text-decoration: none;
  transition: color 0.18s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #31A69D;
  outline: none;
}
strong { font-weight: 700; }

/* ==== CONTAINERS & LAYOUT ==== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 22px 0 rgba(49,166,157,0.07), 0 1.5px 3px 0 rgba(18,66,102,0.07);
  position: relative;
}

/* ==== HEADER & NAV ==== */
header {
  background: #fff;
  box-shadow: 0 1px 8px 0 rgba(49,166,157,0.11);
  padding-top: 8px;
  padding-bottom: 8px;
  position: relative;
  z-index: 100;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  width: 100%;
}
.main-nav > a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #124266;
  padding: 8px 4px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.main-nav > a:not(.btn-primary):hover, .main-nav > a:not(.btn-primary):focus {
  background: #F0F3F9;
  color: #31A69D;
}
.main-nav img {
  height: 38px;
  width: auto;
  margin-right: 8px;
}
.btn-primary, .btn-secondary {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  padding: 14px 32px;
  border-radius: 26px;
  color: #fff;
  background: #31A69D;
  box-shadow: 0 6px 24px 0 rgba(49,166,157,0.18);
  margin-left: 12px;
  transition: background 0.18s, box-shadow 0.18s, transform .10s;
  outline: none;
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #124266;
  color: #fff;
  transform: translateY(-2px) scale(1.035) rotate(-1deg);
  box-shadow: 0 10px 32px 0 rgba(18,66,102,0.14);
}
.btn-secondary {
  background: #124266;
  color: #fff;
  box-shadow: 0 6px 16px 0 rgba(18,66,102,0.10);
  margin-left: 0;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #31A69D;
  color: #fff;
  transform: translateY(-2px) scale(1.035) rotate(1deg);
}

/* Hide .main-nav and show burger on mobile */
.mobile-menu-toggle {
  display: none;
  background: rgba(49,166,157,0.13);
  color: #124266;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  cursor: pointer;
  transition: background 0.16s;
  z-index: 201;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #124266;
  color: #fff;
}

/* ==== MOBILE NAV MENU ==== */
.mobile-menu {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  max-width: 97vw;
  background: #124266;
  color: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.62,.13,.36,.97);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 24px 30px 0 30px;
  box-shadow: -6px 0 28px 0 rgba(49,166,157,0.10);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  position: absolute;
  right: 22px;
  top: 20px;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #31A69D;
}
.mobile-nav {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 12px 14px 0;
  border-radius: 8px;
  transition: background 0.17s, color 0.17s;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #31A69D;
  color: #fff;
}

/* ==== HERO, CTA & MAIN SECTIONS ==== */
.hero-section, .cta-section, .blog-hero {
  padding: 70px 0 40px 0;
  margin-bottom: 60px;
  background: linear-gradient(103deg, #F0F3F9 72%, #31A69D 120px, #124266 100%);
  border-radius: 0 0 34px 34px / 0 0 24px 24px;
  position: relative;
}
.hero-section h1,
.blog-hero h1 {
  font-size: 2.7rem;
  background: linear-gradient(90deg,#31A69D 25%,#124266 75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.cta-section h2 {
  font-size: 2.2rem;
  background: linear-gradient(90deg,#124266 15%,#31A69D 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  color: #124266;
  font-size: 1.18rem;
  margin-top: 10px;
  margin-bottom: 24px;
}

/* ==== FEATURE & CARD LAYOUT ==== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 10px;
  justify-content: space-between;
}
.feature-item {
  background: #fff;
  border-radius: 16px;
  padding: 20px 22px 24px 22px;
  box-shadow: 0 3px 18px 0 rgba(49,166,157,0.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  max-width: 290px;
  flex: 1 1 215px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.13s;
  margin-bottom: 20px;
}
.feature-item img {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  box-shadow: 0 3px 6px rgba(49,166,157,0.09);
  margin-bottom: 5px;
  background: #F0F3F9;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 7px 32px 0 rgba(49,166,157,0.16);
  transform: translateY(-3px) scale(1.035);
}

/* ==== CARDS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(49,166,157,0.12);
  overflow: hidden;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, transform 0.11s;
  position: relative;
}
.card:hover {
  box-shadow: 0 7px 32px 0 rgba(18,66,102,0.13);
  transform: translateY(-3px) scale(1.025);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px 18px 24px;
  gap: 12px;
}

/* ==== TESTIMONIALS ==== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: 0 3px 18px 0 rgba(49,166,157,0.11);
  max-width: 670px;
}
.testimonial-card blockquote {
  font-size: 1.2rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-style: italic;
  color: #124266;
  margin-right: 18px;
}
.testimonial-card div {
  font-size: 1rem;
  color: #31A69D;
}
.testimonial-card strong {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #124266;
}

/* Ensure strong contrast (as per requirements) */
.testimonial-card, .testimonial-card blockquote, .testimonial-card div {
  background: #fff;
  color: #124266;
}

/* ==== GENERIC FLEX LAYOUTS (SPACING & ALIGNMENT) ==== */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 32px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* ==== CASE STUDIES (SOLUTIONS PAGE) ==== */
.case-study {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px 18px 22px;
  box-shadow: 0 2px 13px 0 rgba(49,166,157,0.10);
  margin-bottom: 20px;
  max-width: 660px;
  transition: box-shadow 0.16s, transform 0.10s;
}
.case-study h3 {
  color: #31A69D;
  margin-bottom: 6px;
}
.case-study:hover, .case-study:focus-within {
  box-shadow: 0 6px 28px 0 rgba(18,66,102,0.12);
  transform: scale(1.025) translateY(-2px);
}

/* ==== BLOG LIST & TEASERS ==== */
.blog-list .article-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.teaser {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1.5px 10px 0 rgba(49,166,157,0.10);
  padding: 18px 18px 14px 18px;
  max-width: 330px;
  transition: box-shadow 0.13s, transform .10s;
}
.teaser:hover {
  box-shadow: 0 5px 22px 0 rgba(49,166,157,0.15);
  transform: scale(1.030) translateY(-2px);
}

.categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 7px;
  list-style: none;
}
.categories li {
  background: #31A69D;
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  border-radius: 16px;
  font-size: 0.95rem;
  padding: 5px 18px;
  margin-bottom: 6px;
  font-weight: 500;
  transition: background 0.16s;
}
.categories li:hover {
  background: #124266;
}

/* ==== FAQ / LISTS ==== */
.faq-list {
  list-style: none;
  padding-left: 0;
  margin-top: 16px;
  margin-bottom: 32px;
}
.faq-list li {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1.5px 10px 0 rgba(49,166,157,0.09);
  padding: 18px 16px 9px 18px;
}
.faq-list strong {
  color: #31A69D;
}

/* ==== TEXT-SECTION ==== */
.text-section h2, .text-section h3 {
  color: #31A69D;
}
.text-section {
  font-size: 1rem;
  color: #124266;
  margin-bottom: 18px;
}

/* ==== CONTACT DETAILS ==== */
.contact-details {
  margin-bottom: 28px;
}
.contact-details > div {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
  font-size: 1rem;
}
.map-snippet {
  margin-top: 20px;
  background: #F0F3F9;
  border-radius: 12px;
  padding: 16px;
}

/* ==== FOOTER ==== */
footer {
  background: #124266;
  color: #fff;
  padding: 30px 0 20px 0;
  font-size: 1rem;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  box-shadow: 0 -6px 16px 0 rgba(49,166,157,0.11);
  margin-top: 60px;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer-links a {
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.14s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #31A69D;
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 46px;
  margin-bottom: 16px;
}
.contact-info img {
  width: 22px;
  height: 22px;
  margin-right: 5px;
}
.brand-statement {
  margin-top: 14px;
  font-size: 0.98rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.brand-statement p {
  color: #F0F3F9;
}

/* ==== COOKIE BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  padding: 24px 18px 24px 24px;
  background: #124266;
  color: #fff;
  box-shadow: 0 -4px 32px 0 rgba(49,166,157,0.17);
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  animation: cookieFadeIn 0.6s 0.2s ease both;
}
@keyframes cookieFadeIn {
  from { opacity: 0; transform: translateY(100%);} 
  to { opacity: 1; transform: translateY(0);} 
}
.cookie-banner__text {
  flex: 1 1 230px;
  font-size: 1rem;
  margin-bottom: 12px;
}
.cookie-banner__actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner__actions .btn-cookie {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 22px;
  border: none;
  border-radius: 24px;
  font-weight: 700;
  cursor: pointer;
  margin-right: 0;
  margin-bottom: 0;
  box-shadow: 0 2px 8px 0 rgba(18,66,102,0.11);
  transition: background 0.15s, color 0.16s, transform 0.11s;
}
.btn-cookie.accept {
  background: #31A69D;
  color: #fff;
}
.btn-cookie.accept:hover, .btn-cookie.accept:focus {
  background: #268f86;
}
.btn-cookie.decline {
  background: #fff;
  color: #124266;
  border: 2px solid #31A69D;
}
.btn-cookie.decline:hover, .btn-cookie.decline:focus {
  background: #31A69D;
  color: #fff;
}
.btn-cookie.settings {
  background: none;
  color: #fff;
  border: 2px solid #fff;
  margin-right: 0;
}
.btn-cookie.settings:hover, .btn-cookie.settings:focus {
  background: #fff;
  color: #124266;
}
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-banner__text { margin-bottom: 14px; }
}

/* ==== COOKIE PREFERENCES MODAL ==== */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(18,66,102,0.56);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal__content {
  background: #fff;
  color: #124266;
  border-radius: 22px;
  width: 97vw;
  max-width: 420px;
  padding: 38px 30px 28px 38px;
  box-shadow: 0 10px 40px 0 rgba(49,166,157,0.21);
  animation: cookieModalIn 0.4s .05s cubic-bezier(.5,1.2,.7,1.0) both;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: scale(0.95) translateY(40px);} 
  to { opacity: 1; transform: scale(1) translateY(0);} 
}
.cookie-modal__close {
  position: absolute;
  right: 22px;
  top: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #31A69D;
  cursor: pointer;
}
.cookie-modal h2 {
  color: #31A69D;
  font-size: 1.3rem;
}
.cookie-categories {
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 11px 0;
}
.cookie-category label {
  font-weight: 600;
  color: #124266;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  margin-left: 4px;
}
.cookie-toggle {
  appearance: none;
  width: 42px;
  height: 25px;
  background: #31A69D;
  border-radius: 20px;
  position: relative;
  outline: none;
  vertical-align: middle;
  transition: background 0.15s;
  cursor: pointer;
}
.cookie-toggle:after {
  content: '';
  display: block;
  position: absolute;
  top: 2.5px;
  left: 3.5px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.19s cubic-bezier(.4,0,.2,1);
}
.cookie-toggle:checked {
  background: #124266;
}
.cookie-toggle:checked:after {
  left: 18px;
}
.cookie-category .always {
  color: #31A69D;
  font-size: 0.95rem;
  font-style: italic;
  margin-left: 6px;
}
.cookie-modal__actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal__actions .btn-cookie {
  font-family: inherit;
  font-size: 1rem;
  min-width: 94px;
  padding: 8px 18px;
}

/* ==== MEDIA QUERIES - RESPONSIVE ==== */
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
}
@media (max-width: 950px) {
  .feature-grid, .card-container, .blog-list .article-teasers, .contact-info {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 16px;
  }
  .feature-item, .card, .case-study, .testimonial-card {
    max-width: 99vw;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .card-container, .content-grid, .blog-list .article-teasers {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card, .case-study {
    padding: 18px 10px 16px 12px;
    max-width: 97vw;
    font-size: 1rem;
  }
  .section, .hero-section, .cta-section, .blog-hero {
    padding: 22px 4px 24px 4px;
    margin-bottom: 38px;
    border-radius: 0 0 28px 28px / 0 0 14px 14px;
  }
  .footer-links {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }
  .contact-info {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  .content-wrapper {
    padding: 0;
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 15px;
  }
  .cookie-modal__content {
    padding: 24px 14px 16px 18px;
    width: 96vw;
  }
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  .section, .hero-section, .cta-section, .blog-hero {
    padding: 12px 2px 14px 2px;
  }
  .container {
    padding-left: 3px;
    padding-right: 3px;
  }
  .footer-links, .contact-info {
    font-size: 0.95rem;
    gap: 2px;
  }
}

/* ==== CREATIVE/ARTISTIC ACCENTS ==== */
/* Hand-drawn element: colored accent under section titles */
h2, .cta-section h2, .hero-section h1, .blog-hero h1 {
  position: relative;
  width: fit-content;
}
h2::after, .cta-section h2::after, .hero-section h1::after, .blog-hero h1::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 9px;
  width: 68%;
  background: #fff6c0;
  border-radius: 5px 18px 5px 15px / 9px 6px 10px 8px;
  z-index: -1;
  opacity: 0.45;
}

/* Playful shapes: accent circles for artistic touch */
.section::before {
  content: '';
  display: block;
  position: absolute;
  right: 32px;
  top: 28px;
  width: 36px;
  height: 36px;
  background: #31A69D;
  opacity: 0.08;
  border-radius: 50%;
  z-index: 0;
}
@media (max-width: 768px) {
  .section::before {
    right: 8px; top: 17px; width: 22px; height: 22px;
  }
}

/* Artistic Font Variant: (for creative accent) */
.cta-section a.btn-primary,
.hero-section a.btn-primary {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  letter-spacing: 0.11em;
  font-size: 1.09rem;
  text-shadow: 0 2px 12px rgba(49,166,157,0.09);
}

/* Micro-Interactions / Subtle Animations */
.btn-primary, .btn-secondary, .btn-cookie {
  will-change: background, transform, box-shadow;
}
.feature-item, .card, .case-study, .teaser {
  will-change: box-shadow, transform;
}

/* Focus visible for keyboard accessibility */
:focus-visible {
  outline: 3px solid #31A69D;
  outline-offset: 2px;
}

/* Hide elements only for a11y */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==== END OF STYLE.CSS ==== */
