/* ------------------ CSS RESET & BASE ------------------ */
html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #FFFFFF;
  color: #23243B;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #1A237E;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #4CAF50;
  text-decoration: underline;
}
strong, b {
  font-weight: 600;
}
ul, ol {
  padding-left: 20px;
  margin-top: 12px;
  margin-bottom: 12px;
}
ul li, ol li {
  margin-bottom: 6px;
}
dt {
  font-weight: 600;
  margin-top: 12px;
}
dd {
  margin-bottom: 8px;
  color: #353858;
}
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  background: #FFF;
}
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1A237E;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
p {
  margin-bottom: 12px;
}
@media (max-width: 540px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* ------------------ HEADER & NAVIGATION ------------------ */
header {
  background: #FFFFFF;
  border-bottom: 1px solid #ececf2;
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  min-height: 64px;
}
.logo-header img {
  height: 36px;
  width: auto;
  display: block;
}
nav.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
nav.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1A237E;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border 0.2s, color 0.2s;
}
nav.main-nav a.active, nav.main-nav a:hover, nav.main-nav a:focus {
  color: #4CAF50;
  border-bottom: 2px solid #4CAF50;
}
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #1A237E;
  color: #FFF;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 28px;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(26,35,126,0.09);
  transition: background 0.2s, box-shadow 0.2s, transform 0.13s;
  border: none;
  cursor: pointer;
  margin-left: 32px;
  outline: none;
  letter-spacing: 0.04em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #4CAF50;
  color: #FFF;
  box-shadow: 0 4px 18px rgba(76, 175, 80, 0.15);
  transform: translateY(-2px) scale(1.03);
}
.btn-link {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #1A237E;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  text-decoration: underline;
  transition: color .2s;
  padding: 4px 2px;
  cursor: pointer;
  border: none;
}
.btn-link:hover, .btn-link:focus {
  color: #4CAF50;
}
/* Hamburger Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  background: #FFF;
  border-radius: 50%;
  border: 1.5px solid #1A237E;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: #1A237E;
  margin-left: 18px;
  transition: background .18s, border .18s, color .18s;
  cursor: pointer;
  z-index: 24;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  border-color: #4CAF50;
  color: #4CAF50;
  background: #f6f8fb;
  outline: none;
}
/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 88vw;
  max-width: 310px;
  height: 100vh;
  background: #FFF;
  z-index: 100;
  box-shadow: -6px 0 28px 0 rgba(44,46,85,0.14);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 22px 24px 22px;
  transform: translateX(110%);
  transition: transform 0.36s cubic-bezier(.86,.01,.38,.99), box-shadow 0.26s;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #1A237E;
  align-self: flex-end;
  margin-bottom: 16px;
  cursor: pointer;
  transition: color .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #4CAF50;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1A237E;
  font-size: 1.18rem;
  font-weight: 500;
  padding: 12px 0 10px 0;
  border-radius: 6px;
  transition: background .18s, color .25s;
  outline: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #4CAF50;
  background: #F6F8FB;
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: 10px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 540px) {
  header .container {
    padding: 6px 8px;
  }
  .mobile-menu {
    width: 100vw;
    padding: 26px 12px 14px 12px;
  }
}

/* ------------------ HERO + CTA BANNER ------------------ */
.hero {
  background: #F6F8FB;
  padding: 60px 0 40px 0;
  margin-bottom: 60px;
  min-height: 320px;
  display: flex;
  align-items: center;
}
.hero .container,
.cta-banner .container {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper,
.cta-banner .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
}
.cta-banner {
  background: #1A237E;
  color: #FFF;
  border-radius: 18px;
  padding: 40px 0;
  margin-bottom: 0;
  box-shadow: 0 8px 24px rgba(26,35,126,0.08);
}
.cta-banner h2,
.cta-banner p {
  color: #FFF;
}
.cta-banner .btn-primary {
  background: #4CAF50;
}
.cta-banner .btn-primary:hover,
.cta-banner .btn-primary:focus {
  background: #1A237E;
}

/* ------------------ FEATURES / SERVICES GRID ------------------ */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  align-items: stretch;
  margin-top: 24px;
}
.features-grid > div {
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(44,46,85,0.10);
  padding: 26px 20px 20px 20px;
  flex: 1 1 260px;
  min-width: 230px;
  max-width: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow .18s, transform .18s;
  margin-bottom: 20px;
}
.features-grid > div:hover {
  box-shadow: 0 6px 28px rgba(44, 46, 85, 0.16);
  transform: translateY(-4px) scale(1.015);
  z-index: 1;
}
.features-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  filter: grayscale(0.18) brightness(0.97);
  opacity: 0.92;
}
.features-grid h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1A237E;
  margin-bottom: 5px;
}
.features-grid p {
  font-size: 1em;
  color: #353858;
}
.features-grid ul {
  margin-top: 2px;
  margin-bottom: 0;
}

/* ------------------ TESTIMONIAL CARD ------------------ */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(44,46,85,0.10);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #1A237E;
  font-size: 1.08em;
  font-weight: 500;
  margin-bottom: 4px;
}
.testimonial-meta {
  font-size: .98em;
  color: #353858;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ------------------ PRICING TABLE ------------------ */
.pricing-table {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 28px 0 24px 0;
}
.pricing-row {
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: flex-start;
  align-items: center;
  background: #F6F8FB;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 1.5px 3.5px rgba(44,46,85,0.06);
  margin-bottom: 12px;
}
.pricing-row > div {
  flex: 1 1 0;
  font-size: 1em;
  color: #23243B;
}
@media (max-width: 600px) {
  .pricing-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 12px;
  }
}

/* ------------------ FAQ ACCORDION (STATIC) ------------------ */
.faq-accordion h2 {
  font-size: 1.1rem;
  color: #1A237E;
  margin-top: 18px;
  margin-bottom: 4px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.faq-accordion p {
  color: #383A51;
  margin-bottom: 10px;
}

/* ------------------ CONTENT BLOCKS & LISTS ------------------ */
.text-section {
  font-size: 1.08em;
  color: #353858;
  margin: 12px 0 16px 0;
}
.text-section ul {
  margin: 8px 0 0 20px;
}
.text-section li {
  margin-bottom: 7px;
}
address {
  font-style: normal;
  color: #23243B;
  margin-bottom: 6px;
}

/* ------------------ FLEX PATTERNS (AS REQUESTED) ------------------ */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* On mobile, column flex-direction for flexible blocks */
@media (max-width: 768px) {
  .features-grid,
  .content-grid,
  .text-image-section,
  .card-container {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}

/* ------------------ FOOTER ------------------ */
footer {
  background: #F6F8FB;
  border-top: 1px solid #ececf2;
  color: #23243B;
  padding: 36px 0 0px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding-bottom: 30px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav a {
  color: #23243B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .98em;
  padding: 4px 0;
  border-bottom: 1.5px dotted transparent;
}
.footer-nav a:hover {
  border-bottom: 1.5px dotted #4CAF50;
  color: #4CAF50;
}
.footer-contact {
  font-size: .97em;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact a {
  color: #1A237E;
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 6px;
}
.footer-social img {
  width: 24px;
  height: 24px;
  filter: grayscale(0.12) contrast(1.08) brightness(1.15);
  opacity: 0.86;
  transition: opacity .15s, filter .15s;
}
.footer-social a:hover img {
  opacity: 1;
  filter: grayscale(0) contrast(1.25) brightness(1.17);
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .footer-social {
    margin-top: 14px;
  }
}

/* ------------------ COOKIE CONSENT BANNER ------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #1A237E;
  color: #FFF;
  padding: 24px 18px 16px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  z-index: 150;
  box-shadow: 0 -4px 24px rgba(44,46,85,0.15);
  justify-content: center;
  transition: transform 0.26s, opacity 0.22s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__content {
  flex: 1 1 420px;
  font-size: 1em;
  max-width: 500px;
}
.cookie-banner__buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  padding: 10px 18px;
  background: #4CAF50;
  color: #FFF;
  border-radius: 22px;
  font-weight: 600;
  margin-right: 4px;
  cursor: pointer;
  border: none;
  outline: none;
  box-shadow: 0 1.5px 7px rgba(44,46,85,0.10);
  transition: background 0.16s, color .16s, box-shadow .17s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #23243B;
  color: #FFF;
  box-shadow: 0 3px 12px rgba(26,35,126,0.24);
}
.cookie-btn--secondary {
  background: #FFFFFF;
  color: #1A237E;
  border: 1px solid #1A237E;
}
.cookie-btn--secondary:hover, .cookie-btn--secondary:focus {
  background: #4CAF50;
  color: #FFF;
  border-color: #4CAF50;
}
.cookie-btn--ghost {
  background: transparent;
  color: #FFF;
  border: 1.2px solid #FFF;
  box-shadow: none;
}
.cookie-btn--ghost:hover, .cookie-btn--ghost:focus {
  background: #F6F8FB;
  color: #1A237E;
  border: 1.2px solid #1A237E;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 8px 14px 8px;
    gap: 15px;
  }
  .cookie-banner__buttons {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    width: 100%;
  }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(44,46,85,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeinbg .21s;
}
@keyframes fadeinbg {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(44,46,85,0.22);
  padding: 32px 26px 24px 26px;
  min-width: 340px;
  max-width: 420px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: popupIn .28s;
}
@keyframes popupIn {
  0%{ transform: translateY(40px) scale(0.92); opacity: 0; }
  100%{ transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  background: transparent;
  border: none;
  font-size: 1.5em;
  color: #1A237E;
  cursor: pointer;
  transition: color .15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #4CAF50;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F6F8FB;
  border-radius: 8px;
  padding: 11px 16px;
}
.cookie-category-descr {
  font-size: .93em;
  color: #353858;
  margin-top: 4px;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e4e6ee;
  border-radius: 18px;
  transition: background .19s;
}
.toggle-switch input:checked + .toggle-slider {
  background: #4CAF50;
}
.toggle-slider:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 17px;
  height: 17px;
  background: #FFF;
  border-radius: 50%;
  transition: transform .17s;
  box-shadow: 0 1.5px 6px rgba(44,46,85,0.11);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}
.cookie-category[aria-disabled="true"], .cookie-category[aria-disabled="true"] * {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 430px) {
  .cookie-modal {
    min-width: unset;
    padding: 12px 6px 10px 6px;
  }
}

/* ------------------ ANIMATIONS & MICRO-INTERACTIONS ------------------ */
.btn-primary, .btn-link, .cookie-btn {
  transition: all .18s cubic-bezier(.67,.01,.4,1.02);
}
.features-grid > div, .testimonial-card, .pricing-row {
  transition: box-shadow .17s, transform .15s;
}
.menu-fadein {
  animation: menuFadeIn .25s;
}
@keyframes menuFadeIn {
  0%{ opacity:0; transform: translateX(24px); } 100%{ opacity:1; transform: none; }
}

/* ------------------ DARK TEXT FOR TESTIMONIALS/REVIEWS ------------------ */
.testimonial-card p,
.testimonial-card .testimonial-meta {
  color: #23243B;
}

/* ------------------ RESPONSIVENESS ------------------ */
@media (max-width: 820px) {
  .features-grid {
    gap: 20px;
  }
  .features-grid > div {
    max-width: none;
    min-width: 140px;
  }
}
@media (max-width: 650px) {
  .hero, .cta-banner {
    padding: 36px 0 18px 0;
  }
  section {
    padding: 32px 0 0 0;
  }
  .footer-social {
    gap: 10px;
  }
}
@media (max-width: 540px) {
  .hero, .cta-banner {
    min-height: 140px;
  }
  section, .section {
    padding: 19px 0 0 0;
  }
  .features-grid > div {
    padding: 17px 10px 18px 10px;
  }
}

/* Hide elements visually but remain accessible to screen readers */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
