/* ---- CSS RESET & NORMALIZE ---- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  background: #F5F7FA;
  color: #1D334A;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}
body {
  min-height: 100vh;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  padding-left: 1.8em;
}
li + li {
  margin-top: 8px;
}
a {
  color: #1D334A;
  text-decoration: none;
  transition: color .2s;
}
a:focus {
  outline: 2px solid #52A3C7;
  outline-offset: 2px;
  border-radius: 4px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #1D334A;
  letter-spacing: -.01em;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.18rem; font-weight: 600;}
h4 { font-size: 1.1rem; font-weight: 500;}

p, .subheadline {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #1D334A;
  margin-bottom: 16px;
}
strong, b {
  font-weight: 600;
}

/* ---- CONTAINER ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---- HEADER ---- */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(29, 51, 74, 0.05);
  position: relative;
  z-index: 90;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header a img {
  height: 34px;
  width: auto;
  margin-right: 22px;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .005em;
  color: #1D334A;
  position: relative;
  padding: 4px 1px;
  transition: color .17s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #52A3C7;
}

.cta-btn, .service-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1D334A;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 32px;
  border: none;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(29,51,74,.04);
  cursor: pointer;
  margin-left: 14px;
  transition: background .2s, box-shadow .22s, color .2s;
  outline: none;
  text-align: center;
  text-decoration: none;
  min-width: 145px;
  min-height: 44px;
}
.cta-btn:hover, .cta-btn:focus, .service-cta-btn:hover, .service-cta-btn:focus {
  background: #52A3C7;
  color: #fff;
  box-shadow: 0 4px 32px rgba(82,163,199,0.12);
}

button.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #1D334A;
  cursor: pointer;
  margin-left: 16px;
  transition: color .2s;
  padding: 0 3px;
}
button.mobile-menu-toggle:hover, button.mobile-menu-toggle:focus {
  color: #52A3C7;
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(245,247,250,0.97);
  box-shadow: 0 10px 40px 0 rgba(30,51,74,.08);
  z-index: 200;
  transition: transform .36s cubic-bezier(.67,.24,.21,1), opacity .2s;
  transform: translateX(100vw);
  opacity: 0;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 32px 28px;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2rem;
  color: #1D334A;
  background: none;
  border: none;
  align-self: flex-end;
  margin-bottom: 14px;
  cursor: pointer;
  transition: color .22s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #52A3C7;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  padding: 10px 0;
  color: #1D334A;
  border-radius: 6px;
  transition: background .14s, color .14s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: #52A3C7;
  color: #fff;
}

/* ---- HERO SECTION ---- */
.hero-section {
  background: #F5F7FA;
  padding: 0;
  min-height: 320px;
  display: flex;
  align-items: center;
}
.hero-section .container {
  display: flex;
  align-items: center;
  min-height: 320px;
}
.hero-section .content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 48px 0;
  max-width: 700px;
}
.hero-section h1 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero-section .subheadline {
  color: #29456A;
  font-size: 1.16rem;
  margin-bottom: 16px;
}

/* ---- GENERIC SECTIONS ---- */
.section, .about-section, .features-section, .services-section, .solutions-section, .benefits-section, .contact-cta-section, .cta-section, .blog-list-section, .thankyou-section, .legal-section, .values-section, .process-section, .contact-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 20px 0 rgba(30,51,74,.03);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.text-section {
  margin-bottom: 18px;
}

/* ---- FLEX / GRID PATTERNS ---- */
.feature-grid, .service-list, .solutions-grid, .article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.article-list {
  gap: 24px 16px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F5F7FA;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(82,163,199,0.04);
  padding: 24px 18px 24px 18px;
  min-width: 210px;
  flex: 1 1 240px;
}
.feature-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}
.feature-item h3 {
  font-size: 1.16rem;
  margin-bottom: 6px;
}

/* ---- SERVICE CARDS ---- */
.service-list {
  flex-wrap: wrap;
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 18px 0 rgba(30,51,74,.06);
  padding: 28px 20px 22px 20px;
  min-width: 240px;
  flex: 1 1 290px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
}
.service-card h3, .service-card h2 {
  margin-bottom: 6px;
  font-size: 1.22rem;
  font-weight: 600;
}
.service-card .price {
  color: #52A3C7;
  font-size: 1rem;
  margin-top: 6px;
  margin-bottom: 10px;
}
.service-cta-btn {
  margin-top: auto;
  background: #52A3C7;
  color: #fff;
  border-radius: 22px;
  min-width: 130px;
  min-height: 38px;
  font-size: 0.95rem;
  transition: background .18s, color .18s, box-shadow .19s;
  box-shadow: 0 2px 10px rgba(82,163,199,0.04);
}
.service-cta-btn:hover, .service-cta-btn:focus {
  background: #1D334A;
  color: #fff;
}

/* ---- TESTIMONIALS ---- */
.testimonials-section {
  background: #F5F7FA;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 18px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(29,51,74,0.06);
  padding: 28px 20px 22px 24px;
  color: #1D334A;
  font-size: 1rem;
  max-width: 370px;
  min-width: 240px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  transition: box-shadow .22s, transform .22s;
}
.testimonial-card strong {
  margin-top: 16px;
  font-weight: 600;
  display: block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #29456A;
  font-size: 0.96rem;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 40px rgba(82,163,199,0.12);
  transform: translateY(-4px) scale(1.02);
}

/* ---- ARTICLE CARDS FOR BLOG ---- */
.article-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 12px 0 rgba(82,163,199,0.05);
  padding: 22px 18px;
  min-width: 200px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  transition: box-shadow .22s, transform .19s;
}
.article-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.article-card .read-more {
  color: #52A3C7;
  font-weight: 500;
  font-size: 0.96rem;
  margin-top: auto;
  letter-spacing: .01em;
  text-decoration: underline dotted;
}
.article-card .read-more:hover,
.article-card .read-more:focus {
  color: #1D334A;
  text-decoration: underline solid;
}
.article-card:hover {
  box-shadow: 0 4px 36px 0 rgba(82,163,199,0.12);
  transform: translateY(-3px) scale(1.01);
}

/* ---- BLOG CONTROLS ---- */
.blog-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
.blog-controls input[type="text"], .blog-controls select {
  padding: 10px 18px;
  border: 1px solid #e7eaf0;
  border-radius: 24px;
  background: #fff;
  font-size: 1rem;
  color: #1D334A;
  min-width: 170px;
  font-family: inherit;
  outline: none;
  transition: border-color .17s, box-shadow .17s;
}
.blog-controls input[type="text"]:focus, .blog-controls select:focus {
  border-color: #52A3C7;
  box-shadow: 0 0 0 2px #e0f1fa;
}

/* ---- LEGAL SECTION ---- */
.legal-section, .values-section, .process-section {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 60px;
  padding: 40px 20px;
  color: #1D334A;
}
.legal-section h1, .legal-section h2, .values-section h2 {
  margin-bottom: 16px;
}

/* ---- PROCESS STEPS ---- */
.process-steps {
  list-style: decimal inside;
}
.process-steps li {
  margin-bottom: 11px;
  font-size: 1rem;
}
.process-steps .step {
  font-weight: bold;
  color: #52A3C7;
}

/* ---- CTA SECTION ---- */
.contact-cta-section, .cta-section, .thankyou-section {
  background: #F5F7FA;
  border-radius: 18px;
  padding: 40px 20px;
  margin-bottom: 60px;
  text-align: center;
}
.contact-cta-section .content-wrapper, .cta-section .content-wrapper, .thankyou-section .content-wrapper {
  align-items: center;
}

/* ---- THANK YOU MESSAGE ---- */
.thankyou-section h1 {
  margin-bottom: 16px;
  font-size: 2rem;
}
.thankyou-message {
  margin-bottom: 14px;
}
.next-steps-info {
  margin-bottom: 18px;
  color: #29456A;
}

/* ---- FOOTER ---- */
footer {
  background: #fff;
  color: #1D334A;
  border-top: 1px solid #e7eaf0;
  margin-top: 60px;
  padding: 30px 0 18px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  text-align: center;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 0.97rem;
}
.footer-nav a {
  color: #29456A;
  transition: color .16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #52A3C7;
}
.footer-info {
  color: #637A96;
  font-size: 0.96rem;
  margin-bottom: 10px;
}
.footer-info a {
  color: #52A3C7;
}
footer p {
  font-size: 0.93rem;
  color: #98A3B7;
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 299;
  background: #fff;
  border-top: 1px solid #e7eaf0;
  box-shadow: 0 -2px 20px 0 rgba(30,51,74,.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 20px 16px;
  gap: 18px;
  animation: slideUpCookie .55s cubic-bezier(0.16,1,0.3,1);
}
@keyframes slideUpCookie {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner span, .cookie-banner p {
  color: #1D334A;
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cookie-btn {
  border: none;
  outline: none;
  border-radius: 24px;
  padding: 10px 26px;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #fff;
  background: #1D334A;
  font-weight: 600;
  margin-right: 0;
  transition: background .17s, color .17s;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(88,167,205,0.04);
}
.cookie-btn.secondary {
  background: #52A3C7;
  color: #fff;
}
.cookie-btn.tertiary {
  background: none;
  color: #1D334A;
  border: 1px solid #52A3C7;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #29456A;
  color: #fff;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #1D334A;
  color: #fff;
}
.cookie-btn.tertiary:hover, .cookie-btn.tertiary:focus {
  background: #f0f6fa;
  color: #29456A;
}

/* ---- COOKIE SETTINGS MODAL ---- */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 300;
  transform: translate(-50%, -50%) scale(1);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px 0 rgba(29,51,74,.18);
  padding: 36px 30px 28px 30px;
  width: 90vw;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeInModal .38s cubic-bezier(0.33,1,0.68,1);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translate(-50%,-40%) scale(0.89); }
  to { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
}
.cookie-modal .cookie-toggle {
  min-width: 40px;
  min-height: 24px;
  border-radius: 12px;
  border: 1px solid #c3d2de;
  background: #F5F7FA;
  outline: none;
  position: relative;
  appearance: none;
  cursor: pointer;
  transition: background .15s, border .15s;
  margin-left: 9px;
  /* Toggle visually */
}
.cookie-modal .cookie-toggle:checked {
  background: #52A3C7;
  border-color: #52A3C7;
}
.cookie-modal .cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.17s;
}
.cookie-modal .cookie-toggle:checked:before {
  left: 20px;
}
.cookie-modal .cookie-actions {
  margin-top: 16px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .cookie-category label {
  font-size: 1em;
  color: #1D334A;
  font-weight: 500;
}
.cookie-modal .desc {
  font-size: 0.98em;
  color: #637A96;
}

/* ---- OVERLAY FOR MODAL ---- */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(30, 51, 74, 0.16);
  z-index: 299;
  animation: fadeCookieBackdrop .22s;
}
@keyframes fadeCookieBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1050px) {
  .footer-nav {
    gap: 12px;
  }
  .feature-grid, .service-list, .solutions-grid, .article-list {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .container { max-width: 97vw; }
  .main-nav {
    gap: 11px;
  }
}
@media (max-width:780px) {
  .feature-item, .service-card, .testimonial-card, .article-card, .solution-item {
    min-width: 190px;
    flex: 1 1 100%;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.24rem; }
  h3 { font-size: 1.08rem; }
  .section, .about-section, .features-section, .solutions-section, .benefits-section, .services-section, .cta-section, .legal-section, .contact-cta-section, .thankyou-section, .values-section, .process-section, .blog-list-section, .contact-section {
    padding: 26px 7px;
    border-radius: 10px;
    margin-bottom: 32px;
  }
  .footer-nav, .main-nav {
    gap: 8px;
    font-size: 0.99rem;
  }
  .footer-nav {
    flex-direction: column;
    gap: 2px;
  }
  .hero-section .container, .hero-section .content-wrapper {
    min-height: 180px;
    padding: 28px 0;
  }
  .hero-section h1, .thankyou-section h1 {
    font-size: 1.27rem;
  }
  .main-nav, .cta-btn {
    display: none;
  }
  button.mobile-menu-toggle {
    display: inline-block;
  }
  .mobile-menu {
    padding-top: 41px;
    padding-left: 16px;
    padding-right: 16px;
    width: 100vw;
    max-width: none;
  }
  .feature-grid, .service-list, .solutions-grid, .article-list {
    flex-direction: column;
    gap: 14px;
  }
  .content-wrapper, .blog-controls {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width:500px) {
  html { font-size: 14px; }
  .feature-item, .service-card, .testimonial-card, .article-card {
    min-width: 140px;
    padding: 18px 6px;
  }
  .blog-controls input[type="text"], .blog-controls select {
    min-width: 120px;
    padding: 8px 10px;
    font-size: 0.96rem;
  }
  .cookie-modal { padding-left: 12px; padding-right: 12px; }
  .cookie-banner {
    padding-left: 5px; padding-right: 5px;
  }
}

/* ---- UTILITIES ---- */
.hr { border:none; border-bottom: 1px solid #e7eaf0; margin: 30px 0; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Hide scrollbars in mobile menu */
.mobile-menu { overflow-y: auto; }

/* ---- ACCESSIBLE FOCUS ---- */
a:focus, button:focus, .cta-btn:focus, .service-cta-btn:focus, .mobile-menu-close:focus {
  outline: 2px solid #52A3C7;
  outline-offset: 2px;
}

