/* ===========================
   CSS 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;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F1F5F7;
  color: #222E40;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  position: relative;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #222E40;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #365A8C;
}
ul, ol {
  padding-left: 20px;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
}
th, td {
  padding: 12px 16px;
  border-bottom: 1px solid #E2E8F0;
  text-align: left;
}
th {
  background: #F1F5F7;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #222E40;
}
input, select, textarea, button {
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}

/* ===========================
   BRAND TYPOGRAPHY
=========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .01em;
  color: #222E40;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.18;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
p, ul, ol, table {
  margin-bottom: 18px;
  color: #3C4A59;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
strong, b {
  font-weight: 600;
}

/* ===========================
   LAYOUT STRUCTURE & SPACING
=========================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.text-section {
  max-width: 700px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ===========================
   FLEXBOX PATTERNS
=========================== */
.feature-grid,
.service-list,
.card-container,
.card-grid,
.value-highlights ul,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card-container {
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(34,46,64,0.08);
  margin-bottom: 20px;
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 20px;
  gap: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Testimonial structure uses flex for alignment */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(34,46,64,0.10);
  margin-bottom: 20px;
  min-width: 0;
  color: #222E40;
  font-size: 1.02rem;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #365A8C;
}
.testimonial-card span {
  color: #FFD600;
  font-size: 1.2rem;
}

.feature-grid > div,
.service-list > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(34,46,64,0.07);
  padding: 26px 22px 22px 22px;
  flex: 1 1 270px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow .26s;
}
.feature-grid > div:hover,
.service-list > div:hover {
  box-shadow: 0 8px 26px rgba(106,134,142,0.11);
}
.feature-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
}
.service-price {
  color: #6A868E;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 8px;
}

/* Cookie modal: flex for options alignment */
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

/* ===========================
   NAVIGATION
=========================== */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(34,46,64,.04);
  padding: 0;
  z-index: 201;
  position: relative;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
  padding: 0 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 500;
}
.main-nav .logo {
  margin-right: 26px;
  display: flex;
  align-items: center;
}
.main-nav a {
  color: #222E40;
  padding: 4px 10px;
  border-radius: 7px;
  transition: background .22s, color .15s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #fff;
  background: #222E40;
  outline: none;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: #222E40;
  background: none;
  border: none;
  margin-right: 16px;
  cursor: pointer;
  z-index: 205;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #222E40;
  box-shadow: 0 8px 32px rgba(34,46,64, .22);
  z-index: 300;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.79,0.01,0.27,0.99);
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  align-self: flex-end;
  margin: 24px 26px 0 0;
  cursor: pointer;
  z-index: 302;
  transition: color .13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FFD600;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  margin: 45px 0 0 38px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.19rem;
  padding: 6px 6px 6px 0;
  border-radius: 6px;
  transition: background .18s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFD600;
  background: #365A8C;
  outline: none;
}

/* Intuitive touch targets */
.mobile-nav a {
  min-height: 44px;
  min-width: 44px;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 14px;
    font-size: 1rem;
    padding: 0 12px;
  }
  .main-nav .logo { margin-right: 8px; }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 6px;
    font-size: 0.97rem;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 15px; right: 14px;
  }
}

/* ===========================
   BUTTONS & CTA
=========================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background: #222E40;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  box-shadow: 0 3px 18px rgba(34,46,64,0.11);
  text-decoration: none;
  margin-top: 10px;
  cursor: pointer;
  transition: background .22s, box-shadow .24s, color .16s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #365A8C;
  color: #FFD600;
  box-shadow: 0 9px 34px rgba(34,46,64,0.16);
  outline: none;
}

/* Table styling: structured corporate */
table {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
tr:nth-child(even) td {
  background: #F1F5F7;
}

/* 
  Footer styles
=============================================== */
footer {
  background: #222E40;
  color: #fff;
  padding: 36px 0 20px 0;
  margin-top: 80px;
  width: 100%;
  position: relative;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-bottom: 22px;
}
.footer-nav a {
  color: #F1F5F7;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 5px;
  transition: background .19s, color .16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #FFD600;
  background: #365A8C;
}
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 1.06rem;
  color: #E3ECF4;
}
.footer-info img {
  width: 58px;
  margin-bottom: 10px;
}

/* 
  Service/feature icons
=============================================== */
.feature-grid img,
.card img {
  filter: grayscale(1) brightness(0.62) contrast(1.55);
  opacity: 0.74;
}

/* 
  Value highlights
=============================================== */
.value-highlights ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  margin-top: 24px;
}
.value-highlights li {
  background: #F1F5F7;
  border-left: 5px solid #222E40;
  border-radius: 7px;
  padding: 10px 18px;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #222E40;
  min-width: 200px;
}

/* 
  Contact page, info sections
=============================================== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0;
  font-size: 1.08rem;
}
.contact-info a {
  color: #365A8C;
}
.contact-info a:hover, .contact-info a:focus {
  text-decoration: underline;
}

/*
  Utility classes & Layout helpers
=============================================== */
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

/* ===========================
   COOKIE BANNER & MODAL
=========================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 2px solid #222E40;
  box-shadow: 0 -4px 24px rgba(34,46,64,0.09);
  z-index: 9999;
  padding: 26px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  transition: transform 0.34s cubic-bezier(0.76,0,0.24,1), opacity 0.2s;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  color: #222E40;
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 8px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.cookie-banner button {
  padding: 9px 21px;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s, color .13s;
}
.cookie-banner .accept-all {
  background: #222E40;
  color: #fff;
}
.cookie-banner .accept-all:hover,
.cookie-banner .accept-all:focus {
  background: #365A8C;
  color: #FFD600;
}
.cookie-banner .reject-all {
  background: #F1F5F7;
  color: #222E40;
  border: 1.5px solid #6A868E;
}
.cookie-banner .reject-all:hover,
.cookie-banner .reject-all:focus {
  background: #e2e8f0;
}
.cookie-banner .cookie-settings {
  background: #6A868E;
  color: #fff;
}
.cookie-banner .cookie-settings:hover,
.cookie-banner .cookie-settings:focus {
  background: #222E40;
  color: #FFD600;
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 10000;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 39px rgba(34,46,64,.18);
  padding: 32px 28px 16px 28px;
  min-width: 300px;
  max-width: 95vw;
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 1;
  transition: opacity .18s, transform .33s cubic-bezier(.85, 0, .14,1);
  animation: cookie-modal-in .42s cubic-bezier(.5,.06,.23,1);
}
@keyframes cookie-modal-in {
  0% {transform: translate(-50%,-52%) scale(.92); opacity: 0;}
  100% {transform: translate(-50%,-50%) scale(1); opacity: 1;}
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -55%) scale(.97);
}
.cookie-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal h3 {
  font-size: 1.26rem;
  color: #222E40;
  margin-bottom: 2px;
}
.cookie-modal .modal-close {
  font-size: 1.6rem;
  background: none;
  border: none;
  color: #365A8C;
  cursor: pointer;
  transition: color .14s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  color: #FFD600;
}
.cookie-modal-categories {
  margin-top: 7px;
  margin-bottom: 16px;
}
.cookie-modal-category label {
  font-size: 1rem;
  color: #222E40;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.cookie-modal-category input[type='checkbox'] {
  accent-color: #222E40;
  width: 21px;
  height: 21px;
  margin-left: 8px;
  margin-right: 2px;
  cursor: pointer;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 7px;
  padding: 9px 20px;
  font-size: 1rem;
  border: none;
  font-weight: 500;
  cursor: pointer;
  background: #F1F5F7;
  color: #222E40;
  transition: background .16s, color .14s;
}
.cookie-modal .save-settings {
  background: #222E40;
  color: #fff;
}
.cookie-modal .save-settings:hover,
.cookie-modal .save-settings:focus {
  background: #365A8C;
  color: #FFD600;
}

/* Overlay for modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 9998;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,46,64,0.22);
  backdrop-filter: blur(1.5px);
  pointer-events: auto;
}
.cookie-modal.hide, .cookie-modal-backdrop.hide {
  display: none;
}

/* Accessibility outline improvements */
:focus {
  outline: 2px solid #365A8C;
  outline-offset: 2px;
}

/* ===========================
   RESPONSIVE DESIGN
=========================== */
@media (max-width: 1120px) {
  .container {
    max-width: 94vw;
    padding: 0 8px;
  }
}
@media (max-width: 940px) {
  .container {
    max-width: 99vw;
    padding: 0 3vw;
  }
}
@media (max-width: 900px) {
  .feature-grid,
  .service-list,
  .card-container,
  .card-grid,
  .content-grid,
  .value-highlights ul {
    gap: 16px;
  }
  .value-highlights li { min-width: 160px; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }
  .container { padding: 0 4vw; }
  .section {
    margin-bottom: 40px;
    padding: 28px 8px;
  }
  .content-wrapper { gap: 7px; }
  .feature-grid > div, .service-list > div {
    min-width: 99%;
    padding: 16px 13px 14px 13px;
  }
  .feature-grid img { width: 35px; height: 35px; margin-bottom: 6px; }
  .testimonial-card {
    padding: 16px;
    font-size: 1rem;
  }
  .text-image-section,
  .content-grid, .value-highlights ul {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}
@media (max-width: 540px) {
  .container { padding: 0 2vw; }
  .main-nav { font-size: .95rem; }
  .testimonial-card { font-size: .98rem; }
  .btn-primary { padding: 11px 18px; font-size: .97rem; }
  .footer-nav {
    flex-direction: column;
    gap: 14px;
  }
  .footer-info img { width: 43px; }
  .footer-info { font-size: .98rem; }
}
/* Hide modal overflow background when not open */
@media (max-width: 410px) {
  .cookie-modal {
    padding: 18px 6px 8px 6px;
    min-width: 0;
    width: 96vw;
  }
}

/* ===========================
   MICRO-INTERACTIONS & EFFECTS
=========================== */
.btn-primary,
.main-nav a,
.footer-nav a,
.mobile-nav a,
.feature-grid > div,
.service-list > div,
.card,
.cookie-banner button,
.cookie-modal button {
  transition: background .22s, color .18s, box-shadow .24s;
}

/* Card hover effect */
.card:hover,
.feature-grid > div:hover,
.service-list > div:hover {
  box-shadow: 0 10px 32px rgba(34,46,64,0.18);
}

/* Smooth in-page anchor hover for readability */
a:active { color: #365A8C; }

/* ===========================
   PRINT STYLES (basic)
=========================== */
@media print {
  header, footer, .btn-primary, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-backdrop { display: none !important; }
  body { background: #fff; color: #222E40; }
  .container { max-width: 100vw; padding: 0; }
}
