/* RESET, NORMALIZE & BASE COLORS (Mobile-first) */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section { display: block; }
body {
  line-height: 1.6;
  background: linear-gradient(135deg, #F5FAFE 50%, #eaf1fa 100%);
  color: #234168;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: #3CA37A; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #234168; text-decoration: underline; }
ul, ol { padding-left: 24px; }
strong { font-weight: 600; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #234168;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; margin-bottom: 24px; }
h2 { font-size: 1.5rem; margin-bottom: 20px; }
h3 { font-size: 1.17rem; }
p, li { font-size: 1rem; }

@media (min-width: 600px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  p, li { font-size: 1.0625rem; }
}

/* CONTAINER, WRAPPERS, AND SPACING */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 36px rgba(35,65,104,0.09);
  padding: 32px 18px;
  margin-bottom: 32px;
  transition: box-shadow 0.2s;
}
.text-section {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 900px) {
  .content-wrapper { padding: 48px 48px; }
}

/* SECTION SPACING & MANDATORY PATTERNS */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(35,65,104,0.05);
  transition: box-shadow 0.3s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(35,65,104,0.15);
  transform: translateY(-2px) scale(1.02);
}
.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: center;
  gap: 20px;
  background: #F5FAFE;
  color: #234168;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 4px 14px 0 rgba(41,85,169,0.08);
  min-width: 240px;
  margin: 12px 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FLEX ONLY - NO GRID! */
.feature-grid, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div, .faq-list > div {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(35,65,104,0.04);
  padding: 24px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-grid > div img {
  height: 38px;
  margin-bottom: 12px;
}
.faq-list > div h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 18px;
  margin-bottom: 12px;
}

/* PRICING TABLE */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(35,65,104,0.04);
}
.pricing-table th, .pricing-table td {
  text-align: left;
  padding: 16px 12px;
  font-size: 1rem;
}
.pricing-table thead {
  background: #234168;
  color: #fff;
}
.pricing-table tbody tr:nth-child(even) {
  background: #F5FAFE;
}

/* MAP PLACEHOLDER */
.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: #eaf1fa;
  border-radius: 16px;
  margin-bottom: 24px;
}

/* CTA BUTTONS */
.cta-button {
  display: inline-block;
  background: linear-gradient(90deg, #3CA37A 0, #234168 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  border: none;
  border-radius: 28px;
  padding: 13px 32px;
  margin-top: 18px;
  box-shadow: 0 2px 14px 0 rgba(41,85,169,0.09);
  cursor: pointer;
  outline: none;
  transition: background 0.3s, box-shadow 0.16s, transform 0.18s;
}
.cta-button:hover,.cta-button:focus {
  background: linear-gradient(90deg, #234168 0, #3CA37A 100%);
  box-shadow: 0 6px 24px rgba(41,85,169,0.13);
  transform: translateY(-2px) scale(1.03);
}
.cta-button.secondary {
  background: linear-gradient(90deg, #234168 0, #3CA37A 100%);
  color: #fff;
}

/* HEADER & PRIMARY NAVIGATION */
header {
  background: linear-gradient(90deg, #1055af 0, #3CA37A 150%);
  box-shadow: 0 2px 18px rgba(35,65,104,0.06);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  min-height: 70px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
header nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: #fff;
  color: #234168;
}
header .cta-button {
  margin-left: 24px;
  margin-top: 0;
}
header img {
  height: 42px;
  width: auto;
}

/* MOBILE MENU ICON */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.2s;
  z-index: 1101;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #3CA37A;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #234168 80%, #3CA37A 150%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-110%);
  transition: transform 0.4s cubic-bezier(0.6,0.05,0.3,1);
  padding-top: 0;
  width: 100vw;
  max-width: 100vw;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin-top: 24px;
  margin-left: 22px;
  background: none;
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1210;
  align-self: flex-start;
  transition: color 0.17s;
}
.mobile-menu-close:hover,.mobile-menu-close:focus { color: #3CA37A; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: 30px;
  gap: 8px;
  padding: 0 28px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.22rem;
  font-weight: 600;
  background: none;
  padding: 16px 8px;
  border-radius: 8px;
  width: 100%;
  display: block;
  margin-bottom: 7px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover,.mobile-nav a:focus {
  background: #3CA37A;
  color: #fff;
}

/* HIDE DESKTOP NAV ON MOBILE */
@media (max-width: 1024px) {
  header nav { display: none; }
  header .cta-button { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* MAIN & PAGE LAYOUT */
main {
  padding: 10px 0 40px 0;
  min-height: 46vh;
}

/* FOOTER */
footer {
  background: #234168;
  color: #fff;
  padding: 44px 0 28px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  min-width: 210px;
}
.footer-brand img {
  height: 32px;
  margin-bottom: 7px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 3px 0;
  transition: color 0.18s;
}
.footer-nav a:hover,.footer-nav a:focus { color: #3CA37A; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.97rem;
  align-items: flex-start;
}
.footer-contact img {
  height: 15px;
  margin-right: 6px;
  vertical-align: middle;
}

/* RESPONSIVE FOOTER / CONTENT */
@media (max-width: 768px) {
  .container, footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .content-grid, .feature-grid, .testimonial-slider, .faq-list {
    flex-direction: column;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-wrapper {
    padding: 20px 8px;
    margin-bottom: 28px;
  }
  section { padding: 26px 0 0 0; }
}

/* ANIMATIONS/TRANSITIONS */
html, body, section, header, main, footer, .content-wrapper, .card, .cta-button {
  transition: background 0.25s, color 0.21s, box-shadow 0.21s, border 0.21s;
}

/* MICRO-INTERACTIONS */
.card:active, .cta-button:active {
  transform: scale(0.97);
}
.testimonial-card {
  transition: box-shadow 0.15s, transform 0.12s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(41,85,169,0.16);
  transform: scale(1.02);
}

/* FOR OL steps with icons */
ol > li {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  background: #F5FAFE;
  border-radius: 14px;
  padding: 12px 14px;
}
ol > li img, ol > li span img {
  height: 30px;
  width: 30px;
  background: #3CA37A;
  border-radius: 50%;
  padding: 5px;
  object-fit: contain;
}

/* GENERAL FORMATTING FOR LISTS */
ul li, ol li {
  margin-bottom: 7px;
}

/* COOKIES BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #234168;
  border-top: 3px solid #3CA37A;
  box-shadow: 0 -6px 28px rgba(35,65,104,0.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  z-index: 2002;
  padding: 22px 18px 18px 18px;
  font-size: 1rem;
  width: 100%;
  animation: cookie-slidein 0.6s cubic-bezier(0.6,0.2,0.4,1);
}
@keyframes cookie-slidein {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 9px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 20px;
  border-radius: 22px;
  border: none;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.18s, color 0.16s;
  font-weight: 600;
}
.cookie-banner .accept {
  background: #3CA37A;
  color: #fff;
}
.cookie-banner .accept:hover,.cookie-banner .accept:focus {
  background: #234168;
  color: #fff;
}
.cookie-banner .reject {
  background: #234168;
  color: #fff;
}
.cookie-banner .reject:hover,.cookie-banner .reject:focus {
  background: #3CA37A;
  color: #fff;
}
.cookie-banner .settings {
  background: #fff;
  border: 2px solid #3CA37A;
  color: #234168;
}
.cookie-banner .settings:hover,.cookie-banner .settings:focus {
  background: #3CA37A;
  color: #fff;
}

@media (max-width: 680px) {
  .cookie-banner {
    padding: 18px 8px 10px 8px;
    font-size: 0.98rem;
    gap: 14px;
  }
  .cookie-actions { gap: 9px; }
}

/* COOKIE MODAL OVERLAY */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,65,104,0.42);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein 0.2s;
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* COOKIE MODAL WINDOW */
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 430px;
  width: 98vw;
  padding: 28px 24px 20px 24px;
  box-shadow: 0 8px 40px rgba(35,65,104,0.13);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  animation: modal-bounce-in 0.34s cubic-bezier(0.33,1,0.68,1);
}
@keyframes modal-bounce-in {
  0% { transform: scale(0.97) translateY(20px); opacity: 0; }
  80% { transform: scale(1.03) translateY(-3px); opacity: 1; }
  100% { transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #234168;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.cookie-category .toggle {
  width: 44px;
  height: 24px;
  background: #eaf1fa;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  border: 2px solid #3CA37A;
  transition: background 0.17s;
}
.cookie-category .toggle[aria-checked="true"] {
  background: #3CA37A;
}
.cookie-category .toggle .switch {
  position: absolute;
  left: 3px;
  top: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: left 0.17s;
}
.cookie-category .toggle[aria-checked="true"] .switch {
  left: 21px;
}
.cookie-modal-footer {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  align-items: center;
}
.cookie-modal-close {
  position: absolute;
  right: 12px;
  top: 13px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #234168;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: #3CA37A; }

/* ACCESSIBILITY FIXES */
:focus-visible {
  outline: 2px solid #3CA37A;
  outline-offset: 2px;
}

/* SCROLLBAR STYLING (Modern Look) */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #3CA37A; border-radius: 11px; }
::-webkit-scrollbar-track { background: #eaf1fa; }

/* MISC HELPERS */
@media (max-width: 499px) {
  .pricing-table th, .pricing-table td {
    padding: 11px 7px;
    font-size: 0.95rem;
  }
}

/* OVERRIDES FOR SMALLER DEVICES */
@media (max-width: 499px) {
  .container, .content-wrapper, .card, .testimonial-card, .feature-grid > div { border-radius: 13px !important; }
  .content-wrapper { padding: 12px 2px; }
  .testimonial-card { padding: 14px 7px; }
}
