/* ========================================================== */
/*     CSS RESET & BASE STYLES                                */
/* ========================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
html, body {
  width: 100%;
  min-height: 100%;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #2F3A4C;
  background: #F3F7FB;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}
a {
  color: #337AB7;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #71A6D2;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.5em;
  margin-top: 0.5em;
  margin-bottom: 1em;
}
li + li {
  margin-top: 0.3em;
}
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #eef1f7;
  font-size: 1rem;
}
th {
  background: #f3f7fb;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #337AB7;
}
tr:last-child td {
  border-bottom: none;
}
strong {
  font-weight: 600;
}

/* Focus Styles */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px dashed #337AB7;
  outline-offset: 2px;
}

/* Container Pattern */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================================== */
/*                 TYPOGRAPHY - GEOMETRIC/STRUCTURED          */
/* ========================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #2F3A4C;
  margin-bottom: 16px;
  line-height: 1.1;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: 0.035em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
}
@media (max-width:768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.08rem; }
}
p {
  margin-bottom: 16px;
}

/* Hierarchy Helper Classes */
.text-section p {
  font-size: 1.08rem;
  max-width: 670px;
  margin-bottom: 10px;
}
.text-section ul {
  margin-bottom: 20px;
}

/* ========================================================== */
/*             FLEXBOX PATTERNS GEOMETRIC/STRUCTURED          */
/* ========================================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(47,58,76,.04);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(47,58,76,.09);
  padding: 28px 22px;
  flex: 1 1 280px;
  min-width: 260px;
  transition: box-shadow .16s;
}
.card:hover {
  box-shadow: 0 6px 22px 0 rgba(47,58,76,.12);
}
.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;
  background: #F3F7FB;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(47,58,76,.07);
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 420px;
}
.testimonial-card div:first-child {
  font-size: 1.2rem;
  color: #337AB7;
  font-weight: 700;
  letter-spacing: 2px;
}
.testimonial-card p {
  font-size: 1.04rem;
  color: #2F3A4C;
}
.testimonial-card footer {
  font-size: 0.93rem;
  font-family: 'Montserrat', Arial;
  font-style: italic;
  color: #2F3A4C;
  align-self: flex-end;
  margin-top: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

/* Geometric/Structured custom grids */
.feature-grid, .values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  justify-content: flex-start;
}
.feature-grid li, .values-grid li {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px 0 rgba(47,58,76,0.04);
  padding: 16px 30px 16px 18px;
  font-weight: 500;
  font-size: 1.1rem;
  gap: 18px;
  min-width: 245px;
  max-width: 330px;
}
.feature-grid img, .values-grid img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .feature-grid, .values-grid {
    gap: 14px;
  }
  .feature-grid li, .values-grid li {
    min-width: 190px;
    max-width: 100%;
    padding: 13px 16px 13px 14px;
  }
}

/* List for FAQ */
.faq-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-list li {
  background: #F3F7FB;
  border-radius: 10px;
  box-shadow: 0 1px 5px 0 rgba(47,58,76,0.07);
  padding: 20px 22px;
}
.faq-list strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #2F3A4C;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* Content wrapper helps inner alignment */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: flex-start;
  align-items: flex-start;
}

/* ================= HERO, SECTIONS, PREVIEWS =============== */
.hero-section {
  background: #337AB7;
  color: #fff;
  border-radius: 0 0 40px 40px;
  min-height: 330px;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  box-shadow: 0 4px 28px 0 rgba(39, 71, 111, 0.18);
  padding: 0;
}
.hero-section .container {
  padding: 48px 20px 60px 20px;
}
.hero-section h1, .hero-section p {
  color: #fff;
}
.hero-section .btn-primary {
  margin-top: 20px;
}

.features-section,
.services-preview-section,
.how-it-works-short-section,
.testimonials-preview-section,
.price-preview-section,
.contact-cta-section {
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(39,71,111,0.04);
  border-radius: 18px;
  margin-bottom: 52px;
}

.price-preview-section strong {
  color: #337AB7;
  font-weight: 700;
}

.contact-cta-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.contact-cta-section li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 8px;
}
.contact-cta-section img {
  width: 22px;
  height: 22px;
}

/* ===================== BUTTONS ============================ */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 32px;
  min-width: 150px;
  font-size: 1.12rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.18s, transform 0.12s;
  letter-spacing: .04em;
  margin-top: 4px;
  margin-bottom: 4px;
}
.btn-primary {
  background: #337AB7;
  color: #fff;
  box-shadow: 0 1px 8px 0 rgba(51,122,183, 0.14);
}
.btn-primary:hover, .btn-primary:focus {
  background: #2F3A4C;
  color: #fff;
  box-shadow: 0 3px 15px 0 rgba(47,58,76,0.17);
  transform: translateY(-2px) scale(1.028);
}
.btn-secondary {
  background: #fff;
  color: #337AB7;
  border: 2px solid #337AB7;
}
.btn-secondary:hover,
.btn-secondary:focus {
  color: #fff;
  background: #337AB7;
  box-shadow: 0 3px 12px 0 rgba(51,122,183, 0.10);
}

/* ===================== NAVIGATION ======================== */
header {
  background: #fff;
  box-shadow: 0 2px 14px 0 rgba(47,58,76,.06);
  border-radius: 0 0 28px 28px;
  position: relative;
  z-index: 12;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  height: 76px;
}
.main-nav a img {
  height: 46px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.main-nav ul li a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #2F3A4C;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 0 6px;
  border-radius: 6px;
  transition: background .12s, color .12s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus, .main-nav ul li a.active {
  background: #E6EEF7;
  color: #337AB7;
}
.main-nav .btn-primary {
  padding: 10px 26px;
  margin-left: 16px;
  min-width: 0;
  font-size: 1rem;
}

/* =============== MOBILE MENU NAVIGATION =============== */
.mobile-menu-toggle {
  display: none;
  background: #337AB7;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  padding: 4px 10px 4px 10px;
  border-radius: 8px;
  position: absolute;
  right: 24px;
  top: 18px;
  z-index: 100;
  cursor: pointer;
  transition: background .13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #2F3A4C;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 40px 25px 35px 25px;
  box-shadow: 0 4px 48px 0 rgba(47,58,76,0.21);
  z-index: 120;
  transform: translateX(-105vw);
  transition: transform .34s cubic-bezier(.77,0,.175,1), box-shadow .22s;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #337AB7;
  font-size: 2rem;
  position: absolute;
  top: 24px;
  right: 26px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background .13s;
  z-index: 130;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #edf3fa;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 48px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #2F3A4C;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 14px 0;
  border-radius: 7px;
  width: 100%;
  display: block;
  transition: background .13s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus,
.mobile-nav a.active, .mobile-nav a[aria-current=page] {
  background: #E6EEF7;
  color: #337AB7;
}

@media (max-width: 992px) {
  .main-nav ul {
    display: none;
  }
  .main-nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .main-nav {
    padding-right: 60px;
  }
}
@media (max-width: 600px) {
  .main-nav { padding: 0 12px; }
}

/* =================== FOOTER =========================== */
footer {
  background: #ffffff;
  border-radius: 38px 38px 0 0;
  box-shadow: 0 -2px 10px 0 rgba(47,58,76,0.08);
  padding: 30px 0 15px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  font-size: 1rem;
  color: #2F3A4C;
  margin-bottom: 8px;
}
.footer-menu a {
  color: #337AB7;
  padding: 2px 8px;
  border-radius: 6px;
  transition: background .14s;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: #E6EEF7;
  color: #2F3A4C;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  color: #697489;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}
@media (max-width: 500px) {
  .footer-contact, .footer-menu {
    flex-direction: column;
    gap: 7px;
    text-align: center;
  }
}

/* ================== RESPONSIVE SECTIONS =============== */
@media (max-width: 768px) {
  .section {
    margin-bottom: 38px;
    padding: 22px 4px;
    border-radius: 10px;
  }
  .hero-section { border-radius: 0 0 22px 22px; }
}
@media (max-width:992px) {
  .feature-grid, .values-grid{
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width:768px) {
  .content-grid {
    flex-direction: column;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    min-width: unset;
    max-width: 100%;
  }
}

/* ================== COOKIE CONSENT BANNER & MODAL ============ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 999;
  background: #ffffff;
  box-shadow: 0 -2px 24px 0 rgba(47,58,76,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 22px 10vw 18px 10vw;
  border-radius: 22px 22px 0 0;
  animation: cookiefadein .8s;
}
@keyframes cookiefadein {
  0% { opacity: 0; transform: translateY(90px);}
  100% { opacity: 1; transform: none;}
}
.cookie-banner p {
  color: #2F3A4C;
  font-size: 1rem;
  max-width: 700px;
  text-align: center;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn, .cookie-btn-secondary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  padding: 10px 30px;
  cursor: pointer;
  margin: 0 2px;
  transition: background .13s, color .13s;
}
.cookie-btn {
  background: #337AB7;
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #2F3A4C;
  color: #fff;
}
.cookie-btn-secondary {
  background: #E6EEF7;
  color: #2F3A4C;
  border: 1.6px solid #337AB7;
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: #337AB7;
  color: #fff;
}

@media (max-width:600px) {
  .cookie-banner {
    padding: 16px 5vw 12px 5vw;
  }
  .cookie-banner-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 96vw;
  max-width: 400px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 7px 24px 0 rgba(51,122,183,0.22);
  transform: translate(-50%, -50%) scale(0.97);
  z-index: 1500;
  padding: 34px 26px 25px 26px;
  display: none;
  animation: cookiemodalfade .37s;
}
.cookie-modal.open {
  display: block;
}
@keyframes cookiemodalfade {
  0% { opacity:0; transform: translate(-50%,-40%) scale(.92); }
  100% { opacity:1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #337AB7;
}
.cookie-modal .cookie-category {
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-modal label {
  font-weight: 500;
  color: #2F3A4C;
}
.cookie-modal input[type=checkbox] {
  accent-color: #337AB7;
  width: 21px;
  height: 21px;
}
.cookie-modal .cookie-essential {
  color: #967828;
  font-size: 0.95rem;
  font-style: italic;
}
.cookie-modal-actions {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

/* Cookie modal close button */
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #337AB7;
  cursor: pointer;
  transition: background .13s;
  border-radius: 8px;
  padding: 4px 8px;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #E6EEF7;
}

/* =============== UTILITY CLASSES FOR GEOMETRIC STYLE =============== */
.bg-accent {
  background: #337AB7 !important;
  color: #fff !important;
}
.text-accent {
  color: #337AB7;
}
.rounded {
  border-radius: 22px;
}
.shadow {
  box-shadow: 0 2px 16px 0 rgba(47,58,76,0.04) !important;
}

/* =================== SELECTION ============================ */
::selection {
  background: #337AB7;
  color: #fff;
}

/* =================== SCROLLBAR ============================ */
::-webkit-scrollbar {
  width: 7px;
  background: #f3f7fb;
}
::-webkit-scrollbar-thumb {
  background: #E6EEF7;
  border-radius: 8px;
}

/* =================== FORM FIELD STYLES ==================== */
input[type=text],
input[type=email],
input[type=tel],
textarea {
  border: 1.5px solid #d8e2ef;
  background: #fafcff;
  color: #2F3A4C;
  font-size: 1.04rem;
  border-radius: 6px;
  padding: 11px 16px;
  margin-top: 6px;
  margin-bottom: 18px;
  transition: border .14s;
  box-shadow: 0 1px 4px 0 rgba(52, 71, 111, 0.06);
  width: 100%;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
textarea:focus {
  border-color: #337AB7;
  outline: none;
  background: #f3f7fb;
}

label {
  color: #2F3A4C;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.02rem;
}

button {
  font-family: inherit;
}

/* ============== PRINT, SYSTEM STYLES =============== */
@media print {
  html, body {
    background: #fff;
    color: #333;
  }
  .main-nav,
  .mobile-menu-toggle,
  footer,
  .cookie-banner,
  .cookie-modal {
    display: none !important;
  }
  .section, .container {
    background: #fff !important;
    box-shadow: none !important;
  }
}

/* ================ MICRO-INTERACTIONS/ANIMATIONS =============== */
.btn-primary, .btn-secondary, .card, .testimonial-card, .feature-grid li, .faq-list li {
  will-change: transform, box-shadow;
}
.card, .testimonial-card, .feature-grid li, .faq-list li {
  transition: box-shadow .14s, transform .13s !important;
}
.card:hover, .testimonial-card:hover, .feature-grid li:hover, .faq-list li:hover {
  box-shadow: 0 6px 24px rgba(47,58,76,0.14) !important;
  transform: translateY(-1px) scale(1.012);
}

/* ================ MISC AVATAR, CHECKBOX ETC =============== */
.avatar {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

/* ========================= GENERAL RESPONSIVENESS ============ */
@media (max-width: 680px) {
  body {
    font-size: 0.98rem;
  }
  h1 { font-size: 1.4rem; }
  .card, .faq-list li {
    padding: 13px 9px;
  }
  .container { padding: 0 4px; }
}

/* ================== HIDE/SHOW ELEMENTS FOR ACCESSIBILITY ================== */
.sr-only {
  border: 0 !important;
  clip: rect(1px,1px,1px,1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}
