/*------------------------------------------------------
  CSS RESET & BASELINE NORMALIZATION
------------------------------------------------------*/
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;
}
html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #F5F6FA;
  color: #20405A;
}
a {
  color: #5EA6BE;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #20405A;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 24px;
}
li {
  margin-bottom: 8px;
  font-size: 1em;
}

/* Typography scale and geometric-structured approach */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #20405A;
  line-height: 1.1;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #20405A;
  margin-bottom: 18px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #20405A;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #20405A;
}
p, .text-section p, .feature-item p, .footer-contact p {
  font-size: 1rem;
  color: #20405A;
  margin-bottom: 16px;
  font-family: 'Roboto', Arial, sans-serif;
}
.text-section strong {
  font-weight: 700;
}

/*------------------------------------------------------
  STRUCTURED CONTAINERS & GEOMETRIC LAYOUTS
------------------------------------------------------*/
.container {
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}
.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* Section and spacing patterns */
.section,
.hero,
.features,
.about,
.testimonials,
.cta,
.contact,
.services,
.pricing,
.legal,
.thank-you {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(32,64,90,0.05);
}

/* Neutral accent for geometric feel */
.features, .feature-grid, .feature-item {
  background: #F5F6FA;
}

/* Card containers */
.card-container, .feature-grid, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card, .feature-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(32,64,90,0.08);
  margin-bottom: 20px;
  padding: 24px 20px;
  position: relative;
  min-width: 250px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 2.5px solid #E5E8EC;
  transition: box-shadow 0.2s, border 0.2s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 4px 24px rgba(94,166,190,0.15);
  border-color: #5EA6BE;
}

.feature-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 10px;
}

/* Testimonials */
.testimonials .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #F5F6FA;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(32,64,90,0.07);
  border: 2px solid #E5E8EC;
  color: #20405A;
  font-size: 1rem;
  max-width: 520px;
}
.testimonial-card p {
  color: #20405A;
  margin-bottom: 0;
  font-style: italic;
}
.testimonial-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-size: 1.05em;
}
.testimonial-meta span:first-child {
  color: #5EA6BE;
  font-size: 1.15em;
}

/* Pricing section (uses lists as cards) */
.pricing ul {
  list-style: none;
  padding: 0;
}
.pricing li {
  background: #fff;
  border: 2px solid #E5E8EC;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 18px 20px;
  font-size: 1.06em;
  color: #20405A;
}

/* Content grid */
.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;
}

/* Contact lists with icons */
.contact ul {
  list-style: none;
  padding: 0;
}
.contact li {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-size: 1em;
  color: #20405A;
}
.contact li img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/*------------------------------------------------------
  HEADER & MAIN NAVIGATION
------------------------------------------------------*/
header {
  background: #20405A;
  color: #fff;
  box-shadow: 0 6px 20px rgba(32,64,90,0.07);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  padding-top: 14px;
  padding-bottom: 14px;
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo img {
  max-height: 46px;
  width: auto;
  display: block;
}
nav.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
nav.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 7px;
  transition: background 0.19s, color 0.19s;
}
nav.main-nav a:hover,
nav.main-nav a:focus {
  background: #5EA6BE;
  color: #fff;
}
.button.button-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #5EA6BE;
  color: #fff;
  padding: 12px 28px;
  font-size: 1.1em;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  letter-spacing: 0.06em;
  box-shadow: 0 3px 14px rgba(32,64,90,0.09);
  transition: background 0.18s, transform 0.17s, box-shadow 0.17s;
  margin-left: 22px;
  cursor: pointer;
  outline: none;
  display: inline-block;
  position: relative;
}
.button.button-primary:hover,
.button.button-primary:focus {
  background: #20405A;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(32,64,90,0.16);
}
.button,
.button.button-primary {
  text-align: center;
  border-radius: 14px;
}

@media (max-width: 1000px) {
  header .container {
    flex-wrap: wrap;
    gap: 8px;
  }
  .button.button-primary {
    margin-left: 10px;
  }
}

/*------------------------------------------------------
  MOBILE NAVIGATION
------------------------------------------------------*/
.mobile-menu-toggle {
  display: none;
  background: #5EA6BE;
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-left: 12px;
  z-index: 100;
  transition: background 0.16s, box-shadow 0.16s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #20405A;
  box-shadow: 0 4px 12px rgba(32,64,90,0.13);
}
.mobile-menu {
  position: fixed;
  z-index: 2001;
  top: 0;
  right: 0;
  width: 88vw;
  max-width: 340px;
  height: 100vh;
  background: #20405A;
  color: #fff;
  box-shadow: -4px 0 24px rgba(32,64,90,0.21);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.37s cubic-bezier(0.77,0,0.18,1);
  padding: 32px 22px 24px 28px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 28px;
  transition: color 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #5EA6BE;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
  width: 94%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1.16em;
  padding: 14px;
  border-radius: 8px;
  font-weight: 500;
  letter-spacing: 0.03em;
  box-sizing: border-box;
  transition: background 0.17s, color 0.17s;
  outline: none;
  border: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #5EA6BE;
  color: #fff;
}

@media (max-width: 920px) {
  nav.main-nav, .button.button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Mobile menu overlay background for close touch/click (optional) */
.mobile-menu-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,64,90,0.13);
  z-index: 2000;
  display: none;
}
.mobile-menu.active ~ .mobile-menu-backdrop {
  display: block;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/*------------------------------------------------------
  HERO & CTA SECTION
------------------------------------------------------*/
.hero {
  background: #5EA6BE;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 34px rgba(32,64,90,0.16);
  margin-bottom: 60px;
  padding: 48px 20px 48px 20px;
}
.hero h1, .hero p {
  color: #fff;
}
.hero .button.button-primary {
  background: #20405A;
  color: #fff;
  margin-left: 0;
}
.hero .button.button-primary:hover,
.hero .button.button-primary:focus {
  background: #fff;
  color: #20405A;
}
.cta {
  background: #20405A;
  border-radius: 14px;
  box-shadow: 0 6px 32px rgba(32,64,90,0.13);
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding: 42px 20px 36px 20px;
}
.cta h2, .cta p {
  color: #fff;
}
.cta .button.button-primary {
  background: #5EA6BE;
  color: #fff;
  margin-left: 0;
}
.cta .button.button-primary:hover,
.cta .button.button-primary:focus {
  background: #fff;
  color: #20405A;
}

/* Thank you page */
.thank-you {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(32,64,90,0.07);
  margin: 0 auto 60px auto;
  padding: 48px 20px 30px 20px;
  max-width: 520px;
}

/*------------------------------------------------------
  FOOTER STYLE
------------------------------------------------------*/
footer {
  background: #20405A;
  color: #fff;
  padding: 44px 0 18px 0;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  box-shadow: 0 -4px 24px rgba(32,64,90,0.08);
  margin-top: 46px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
  justify-content: center;
}
.footer-nav a {
  color: #5EA6BE;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 7px 11px;
  border-radius: 7px;
  transition: background 0.16s, color 0.16s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: #5EA6BE;
  color: #fff;
}
.footer-contact p, .footer-brand p {
  color: #E9F0F8;
  font-size: 0.98em;
  text-align: center;
}
.footer-brand {
  margin-top: 10px;
}

/*------------------------------------------------------
  COOKIE CONSENT BANNER & MODAL
------------------------------------------------------*/
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #20405A;
  color: #fff;
  box-shadow: 0 -8px 32px rgba(32,64,90,0.14);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  z-index: 3000;
  gap: 18px;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.27s cubic-bezier(0.37,0,0.63,1);
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  padding: 9px 18px;
  border: none;
  border-radius: 8px;
  margin: 0;
  font-weight: 600;
  background: #5EA6BE;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cookie-btn.settings {
  background: #f5f6fa;
  color: #20405A;
  border: 2px solid #5EA6BE;
}
.cookie-btn:focus,
.cookie-btn:hover {
  background: #fff;
  color: #20405A;
}
.cookie-btn.settings:focus,
.cookie-btn.settings:hover {
  background: #20405A;
  color: #fff;
}

/* Cookie settings modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4000;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,64,90,0.27);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn .3s;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: #20405A;
  border-radius: 16px;
  box-shadow: 0 20px 52px rgba(32,64,90,0.24);
  padding: 30px 26px 24px 26px;
  max-width: 600px;
  width: 90vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalPop .33s cubic-bezier(0.68,-0.55,0.27,1.55);
}
@keyframes modalPop {
  0% { transform: scale(0.86) translateY(60px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: #20405A;
  font-size: 1.8em;
  cursor: pointer;
  z-index: 10;
  padding: 0;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid #E5E8EC;
}
.cookie-category:last-child { border-bottom: none; }
.cookie-category-label {
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  flex: 1;
}
/* Custom styled toggles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  background-color: #E5E8EC;
  border-radius: 15px;
  top: 0; left: 0;
  right: 0; bottom: 0;
  transition: background-color 0.2s;
}
.toggle-slider:before {
  position: absolute;
  content: '';
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 2px 6px rgba(32,64,90,0.10);
}
.toggle-switch input:checked + .toggle-slider {
  background-color: #5EA6BE;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}
.toggle-switch input[disabled] + .toggle-slider {
  background-color: #aac8da;
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 14px;
}

/*------------------------------------------------------
  RESPONSIVE LAYOUT (Mobile-first)
------------------------------------------------------*/
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 98vw;
  }
  .section,
  .hero,
  .features,
  .about,
  .testimonials,
  .cta,
  .contact,
  .services,
  .pricing,
  .legal,
  .thank-you {
    margin-bottom: 36px;
    padding: 26px 2vw;
    border-radius: 9px;
  }
  .feature-grid, .card-container, .card-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card, .feature-item {
    min-width: unset;
    width: 100%;
    border-radius: 8px;
    padding: 18px 12px;
  }
  .testimonial-card {
    padding: 12px 8px;
    max-width: 100%;
    border-radius: 9px;
  }
  header .container {
    flex-direction: row;
    padding-top: 4px;
    padding-bottom: 4px;
    gap: 2px;
  }
  .hero {
    border-radius: 12px;
    padding: 26px 2vw;
  }
  .cta {
    border-radius: 10px;
    padding: 20px 2vw;
  }
  .about ul,
  .features ul,
  .pricing ul,
  .legal ul {
    margin-left: 14px;
    margin-bottom: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-meta {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
}

@media (max-width: 610px) {
  nav.main-nav, .button.button-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
    font-size: 1.5rem;
    width: 38px;
    height: 38px;
    margin-left: 0;
  }
  .logo img {
    max-height: 36px;
  }
  h1 { font-size: 1.4em; }
  h2 { font-size: 1.16em; margin-bottom: 12px; }
  .hero h1 { font-size: 1.2em; }
}

@media (max-width: 400px) {
  .cookie-consent-banner {
    flex-direction: column;
    padding: 10px 4px;
    font-size: 0.99em;
    gap: 10px;
  }
  .cookie-modal {
    padding: 18px 5px 10px 5px;
  }
}

/*------------------------------------------------------
  GEOMETRIC STRUCTURE DECORATIVE EFFECTS (Minimal, optional)
------------------------------------------------------*/
.hero, .features, .feature-item, .testimonials, .testimonial-card, .about, .section {
  position: relative;
  overflow: hidden;
}
.hero:before {
  content: '';
  position: absolute;
  top: -60px; right: 0;
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,0.12);
  clip-path: polygon(95% 0,100% 100%,0 85%,15% 30%);
  z-index: 0;
  pointer-events: none;
}
.features:before {
  content: '';
  position: absolute;
  bottom: -60px; left: 0;
  width: 110px;
  height: 110px;
  background: rgba(32,64,90,0.06);
  clip-path: polygon(0 0,100% 60%,60% 100%,0% 100%);
  z-index: 0;
}
.feature-item:after {
  content: '';
  position: absolute;
  top: 14px;
  right: 18px;
  width: 33px;
  height: 33px;
  background: rgba(94,166,190,0.07);
  clip-path: polygon(10% 0,100% 20%,80% 100%,0% 80%);
  z-index: 1;
}

/*------------------------------------------------------
  UTILITY CLASSES
------------------------------------------------------*/
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2px; }
.mb-2 { margin-bottom: 2px; }
.mt-8 { margin-top: 8px; }
.mb-8 { margin-bottom: 8px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

.hide { display: none !important; }

/*------------------------------------------------------
  ACCESSIBILITY & FOCUS VISIBLE OUTLINE
------------------------------------------------------*/
a, button, .button {
  outline: none;
}
a:focus-visible, .button:focus-visible, button:focus-visible {
  outline: 3px solid #5EA6BE;
  outline-offset: 2px;
}

/*------------------------------------------------------
  FORM CONTROLS (for contact forms, if any)
------------------------------------------------------*/
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  border: 2px solid #E5E8EC;
  border-radius: 7px;
  padding: 11px 14px;
  font-size: 1rem;
  color: #20405A;
  background: #fff;
  margin-bottom: 16px;
  width: 100%;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #5EA6BE;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1em;
  margin-bottom: 6px;
  color: #20405A;
}

/*------------------------------------------------------
  MISCELLANEOUS
------------------------------------------------------*/
::-webkit-input-placeholder { color: #aac8da; }
::-moz-placeholder { color: #aac8da; }
:-ms-input-placeholder { color: #aac8da; }
::placeholder { color: #aac8da; }

/* Hide scroll on modal open (for cookie modal overlay, via body class) */
body.cookie-modal-open {
  overflow: hidden;
}
