/* Reset & Normalize */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F7F7F9;
  color: #212431;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
a {
  text-decoration: none;
  color: #174076;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F2AB27;
  outline: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
input, button, select, textarea {
  font: inherit;
  color: inherit;
}
button {
  border: none;
  background: none;
  cursor: pointer;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #174076;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.3; margin-bottom: 20px; }
h3 { font-size: 1.25rem; line-height: 1.4; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1.125rem; }
p, ul, ol {
  margin-bottom: 16px;
  color: #212431;
  font-size: 1rem;
  line-height: 1.7;
}
strong { font-weight: 600; }

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(23, 64, 118, 0.06);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(23,64,118,0.04);
  padding: 28px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card-container > .card {
  flex: 1 1 250px;
  min-width: 230px;
  max-width: 350px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Service Cards (used everywhere) */
.service-card {
  background: #F7F7F9;
  border-radius: 14px;
  box-shadow: 0 1px 7px 0 rgba(23, 64, 118, 0.06);
  padding: 28px 20px;
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 4px 24px 0 rgba(23,64,118,0.10);
  transform: translateY(-4px) scale(1.02);
}

/* Testimonial Card */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px 0 rgba(23,64,118,0.10);
  max-width: 530px;
}
.testimonial-card p {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
  color: #212431;
}
.testimonial-card span {
  font-size: 0.96rem;
  color: #174076;
  margin-left: auto;
  font-weight: 500;
}

/* Buttons */
.cta-button, .cookie-btn, .cookie-btn-secondary, .cookie-btn-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: #174076;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  box-shadow: 0px 2px 8px 0 rgba(23,64,118,0.06);
  cursor: pointer;
  transition: background 0.17s, transform 0.17s, box-shadow 0.17s;
  min-width: 130px;
}
.cta-button:hover, .cta-button:focus, .cookie-btn:hover, .cookie-btn:focus {
  background: #F2AB27;
  color: #174076;
  transform: translateY(-2px) scale(1.03);
}
.cookie-btn-secondary {
  background: #F7F7F9;
  color: #174076;
  border: 1.5px solid #174076;
  margin-left: 12px;
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: #fff;
  color: #F2AB27;
  border-color: #F2AB27;
}
.cookie-btn-settings {
  background: #fff;
  color: #174076;
  border: 1.5px solid #F2AB27;
  margin-left: 12px;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #F2AB27;
  color: #174076;
}

/* Navigation */
header {
  background: #fff;
  border-bottom: 1px solid #EAEAEA;
  box-shadow: 0 2px 12px 0 rgba(23,64,118,.02);
  position: relative;
  z-index: 1030;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
header nav > a img {
  height: 40px;
  width: auto;
  margin-right: 18px;
  vertical-align: middle;
}
header nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav li {
  list-style: none;
}
header nav li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #174076;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
}
header nav li a:hover, header nav li a:focus {
  background: #F2AB27;
  color: #fff;
}
header .cta-button {
  margin-left: 24px;
  padding: 10px 26px;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: #fff;
  color: #174076;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 20px;
  top: 17px;
  z-index: 1061;
  transition: background 0.16s;
  box-shadow: 0 1px 6px 0 rgba(23,64,118,0.07);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F2AB27;
  color: #fff;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1060;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.82,0,.45,1);
  box-shadow: 0 2px 16px 0 rgba(23,64,118,0.15);
  padding: 34px 32px 0 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: #174076;
  background: none;
  border: none;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F2AB27;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #174076;
  padding: 18px 6px;
  border-bottom: 1px solid #EAEAEA;
  transition: color .17s, background .17s;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F2AB27;
  color: #fff;
}

/* Hero, Features, Text Sections */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-item img, li img, ol img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-right: 14px;
  vertical-align: middle;
}

/* Lists with Icons */
ul li, ol li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

/* Footer */
footer {
  background: #F7F7F9;
  border-top: 1.5px solid #EAEAEA;
  padding: 32px 20px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  font-size: 1rem;
  color: #556;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
footer nav a {
  color: #174076;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 6px;
  padding: 6px 14px;
  transition: background 0.15s, color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  background: #F2AB27;
  color: #fff;
}
footer div {
  color: #888;
  font-size: 0.95rem;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 18px 0 rgba(23,64,118,0.09);
  border-top: 1.5px solid #EAEAEA;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 22px 20px 22px 20px;
  z-index: 1110;
  animation: fadeInCookie 0.6s;
  font-size: 1.05rem;
}
@keyframes fadeInCookie {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 6px;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(23, 64, 118, 0.22);
  z-index: 1130;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  animation: fadeInModal 0.23s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  min-width: 320px;
  max-width: 92vw;
  box-shadow: 0 4px 42px 0 rgba(23,64,118,.18);
  padding: 36px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1141;
  animation: modalPop 0.25s;
}
@keyframes modalPop {
  from {transform: scale(0.96); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}
.cookie-modal h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.37rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
  font-size: 1.04rem;
}
.cookie-category input[type="checkbox"] {
  width: 21px; height: 21px;
  accent-color: #174076;
  margin-right: 8px;
}
.cookie-category .category-desc {
  color: #565c6f;
  font-size: .96rem;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* Accessibility for Cookie Modal */
.cookie-modal [aria-checked="true"] {
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1020px) {
  .container { max-width: 97vw; }
  header nav { max-width: 100vw; }
}
@media (max-width: 850px) {
  .container { padding: 0 8px; }
  .section { padding: 28px 8px; }
}
@media (max-width: 820px) {
  header nav ul, header .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}
@media (min-width: 821px) {
  .mobile-menu {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .text-section {
    flex-direction: column;
    gap: 18px;
  }
  .section {
    margin-bottom: 40px;
    padding: 22px 6px;
    border-radius: 13px;
  }
  .testimonial-card {
    max-width: 97vw;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 10px;
  }
  .service-card {
    padding: 24px 10px;
    border-radius: 10px;
  }
  .card-container, .content-grid {
    gap: 13px;
  }
  .card {
    margin-bottom: 14px;
    padding: 18px 8px;
    border-radius: 9px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .feature-item {
    gap: 10px;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.24rem; }
}
@media (max-width: 580px) {
  .container { padding: 0 2vw; }
  .section { padding: 16px 2vw; }
}

/* Micro-interactions, transitions */
.card, .service-card, .testimonial-card, .cta-button, .cookie-btn, .cookie-btn-secondary, .cookie-btn-settings {
  transition: box-shadow 0.16s, transform 0.16s, background 0.16s, color 0.16s;
}
ul li img, ol li img {
  transition: transform .18s;
}
ul li:hover img, ol li:hover img {
  transform: scale(1.13) rotate(-6deg);
  filter: brightness(1.12);
}

/* Spacing - Critical Design Patterns */
.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; }
/* END OF critical layout classes */

/* Misc visual polish */
::-webkit-scrollbar {
  width: 8px;
  background: #F7F7F9;
}
::-webkit-scrollbar-thumb {
  background: #ebecec;
  border-radius: 9px;
}

/* Typography helper classes (optional, can be used for blockquotes etc.) */
.text-muted {
  color: #8b94a7;
}
.text-primary {
  color: #174076;
}
.text-accent {
  color: #F2AB27;
}
.text-center {
  text-align: center;
}

/* Misc: Z-index for overlays/menus */
.mobile-menu { z-index: 1060; }
.cookie-modal-overlay { z-index: 1130; }
.cookie-modal { z-index: 1140; }

/* Utility class for screen-reader only text */
.sr-only {
  position: absolute;
  width: 0.5px;
  height: 0.5px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
