/* ==== CSS RESET & NORMALIZE ==== */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #181818;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #163245;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #181818;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.3em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.25em;
}
strong {
  font-weight: 600;
}

/* ==== BRAND TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #111112;
  font-variation-settings: 'wght' 600;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  line-height: 1.3;
}
.text-section h2 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

p {
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: #232324;
}

/* ==== LAYOUT CONTAINERS ==== */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.text-section {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ==== HEADER ==== */
header {
  background: #fff;
  border-bottom: 1px solid #ececec;
  padding: 0;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 20px;
}
.logo-link img {
  height: 46px;
  max-width: 180px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
header nav a {
  color: #163245;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 8px 0;
  position: relative;
  font-size: 1.08rem;
  transition: color 0.2s;
}
header nav a:hover, header nav a:focus {
  color: #181818;
}

/* ==== CTA BUTTONS ==== */
.cta-button {
  display: inline-flex;
  align-items: center;
  padding: 0.72em 2em;
  border-radius: 28px;
  border: none;
  background: #163245;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 16px -7px rgba(22, 50, 69, 0.10);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.17s;
  outline: none;
  margin-top: 16px;
  text-shadow: none;
}
.cta-button:hover, .cta-button:focus {
  background: #5790A6;
  color: #fff;
  box-shadow: 0 6px 32px -12px rgba(22,50,69,0.22);
}

/* ==== MAIN ==== */
main {
  flex: 1;
  background: #fff;
}

.section {
  background: #fff;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-top: 32px;
  margin-bottom: 32px;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 330px;
  background: #f7f7f7;
  border-radius: 14px;
  box-shadow: 0 2px 10px -5px rgba(22, 50, 69, 0.05);
  padding: 32px 24px 28px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.2s, transform 0.15s;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 40px -10px rgba(22,50,69,0.16);
  transform: translateY(-3px) scale(1.015);
}
.feature-grid img {
  margin-bottom: 10px;
  filter: grayscale(80%) contrast(1.3);
}
.feature-grid h3 {
  font-size: 1.17rem;
  font-weight: 600;
  letter-spacing: 0.1px;
  margin-bottom: 6px;
}

/* ==== FLEXBOX PATTERNS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 14px -7px rgba(22,50,69,0.14);
  margin-bottom: 20px;
  padding: 24px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 40px -10px rgba(22,50,69,0.14);
}
.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: #f4f5f7;
  border-radius: 10px;
  box-shadow: 0 2px 16px -8px rgba(22,50,69,0.12);
  padding: 32px 26px 22px 26px;
  margin-bottom: 24px;
  text-align: center;
  color: #181818;
}
.testimonial-card p {
  font-size: 1.15rem;
  color: #232324;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: #163245;
  letter-spacing: 0.1px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== FOOTER ==== */
footer {
  background: #181818;
  padding: 36px 0 20px 0;
  color: #fff;
}
footer .container {
  display: flex;
  justify-content: center;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  opacity: 0.85;
  transition: opacity 0.18s;
}
footer nav a:hover, footer nav a:focus {
  opacity: 1;
  text-decoration: underline;
}
footer p {
  color: #f3f3f3;
  font-size: 0.97rem;
  opacity: 0.8;
}

/* ===================== MOBILE NAVIGATION ===================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 26px;
  right: 28px;
  background: rgba(22,50,69,0.97);
  color: #fff;
  font-size: 2.0rem;
  border: none;
  border-radius: 8px;
  width: 46px;
  height: 46px;
  z-index: 1001;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  transition: background 0.18s, color 0.16s, box-shadow 0.18s;
  box-shadow: 0 2px 12px -8px #1119;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #5790A6;
}

.mobile-menu {
  display: flex;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #17181B;
  color: #fff;
  z-index: 1200;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.76,.01,.65,1.49);
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin-top: 24px;
  margin-left: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
  align-self: flex-start;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #23242a;
}
.mobile-nav {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100vw;
  align-items: flex-start;
  padding-left: 40px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.24rem;
  font-weight: 600;
  padding: 10px 0 10px 0;
  opacity: 0.96;
  border-radius: 4px;
  min-width: 190px;
  display: block;
  transition: color 0.18s, background 0.17s;
  margin-right: 12px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #23242a;
  color: #5790A6;
}

@media (max-width: 1020px) {
  header .container {
    gap: 8px;
  }
  .feature-grid {
    gap: 18px;
  }
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 12px;
  }
  .feature-grid > div {
    padding: 22px 14px 18px 14px;
  }
}
@media (max-width: 860px) {
  .feature-grid {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .cta-button {
    margin-right: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .feature-grid {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 40px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .container {
    padding: 0 8px;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    gap: 14px;
    flex-direction: column;
  }
  .testimonial-card {
    padding: 22px 8px 16px 8px;
    font-size: 1rem;
  }
  .mobile-nav {
    padding-left: 18px;
    gap: 18px;
  }
}

@media (max-width: 500px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  .cta-button {
    font-size: 0.95rem;
    padding: 0.61em 1.23em;
  }
  .footer .content-wrapper {
    gap: 8px;
  }
  .feature-grid > div {
    min-width: 120px;
    padding: 14px 5px 10px 5px;
  }
  .mobile-menu-toggle {
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
}

/* ==== ADDITIONAL GLOBAL STYLES (SPACING, FORMS, ICONS) ==== */
main ul, main ol {
  color: #232324;
  margin-top: 8px;
  margin-bottom: 20px;
}
main li {
  line-height: 1.8;
  font-size: 1rem;
}
.icon {
  margin-right: 8px;
  vertical-align: middle;
}

/* Make sure minimum 20px margin/gap between sections/cards */
.section + .section {
  margin-top: 32px;
}
.card + .card, .testimonial-card + .testimonial-card {
  margin-top: 22px;
}

/* ==== MONOCHROME SOPHISTICATED VISUAL MOOD ==== */
/* All cards/sections use solid white/light background with dark text, borders, subtle shadows. */
.card, .feature-grid > div, .testimonial-card {
  background: #fff;
  color: #222;
  border: 1px solid #efefef;
  box-shadow: 0 1px 10px -5px #0001;
  border-radius: 14px;
}

/* ==== COOKIES CONSENT BANNER + MODAL ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2040;
  width: 100vw;
  background: #17191A;
  color: #fff;
  padding: 18px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -2px 16px -2px rgba(22,50,69,0.12);
  gap: 16px;
  align-items: center;
  opacity: 1;
  transition: transform 0.4s cubic-bezier(.7,.03,.35,.96), opacity 0.22s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px);
}
.cookie-banner p {
  color: #f3f3f3;
  margin-bottom: 8px;
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.5;
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  padding: 0.65em 1.3em;
  border-radius: 24px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.15s;
  margin: 0;
}
.cookie-accept {
  background: #163245;
  color: #fff;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #5790A6;
}
.cookie-reject {
  background: #fff;
  color: #181818;
  border: 1px solid #bfbfc3;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #232324;
  color: #fff;
}
.cookie-settings {
  background: #232324;
  color: #fff;
  border: none;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #363738;
}

.cookie-modal-backdrop {
  display: none;
  position: fixed;
  z-index: 2051;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(22,50,69,0.58);
}
.cookie-modal-backdrop.show {
  display: block;
}
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 2060;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #181818;
  border-radius: 16px;
  max-width: 390px;
  width: 94vw;
  margin: 0 auto;
  box-shadow: 0 16px 60px -10px #1114;
  padding: 34px 28px 18px 28px;
  transition: opacity 0.23s, transform 0.27s;
}
.cookie-modal.show {
  display: block;
  animation: cookieFadeIn 0.29s cubic-bezier(.6,.01,.32,1.12) both;
}
@keyframes cookieFadeIn {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #163245;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.05rem;
  margin-bottom: 2px;
}
.cookie-toggle {
  width: 32px;
  height: 18px;
  position: relative;
  display: inline-block;
}
.cookie-toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e3e3e3;
  border-radius: 10px;
  transition: background 0.15s;
}
.cookie-toggle input:checked + .cookie-slider {
  background: #163245;
}
.cookie-slider:before {
  position: absolute; content: '';
  left: 2px; bottom: 2px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 100%;
  transition: transform 0.15s;
  box-shadow: 0 1px 4px #1112;
}
.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(14px);
}
.cookie-modal-actions {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  justify-content: flex-end;
}
.cookie-modal-footer {
  margin-top: 8px;
  color: #272728;
  font-size: 0.93rem;
}

/* ==== MICRO-INTERACTIONS & HOVER EFFECTS ==== */
.button, .cta-button, button, a.button {
  transition: background 0.2s, color 0.2s, box-shadow 0.17s, transform 0.13s;
}
.button:active, .cta-button:active, button:active {
  transform: scale(0.97);
}
.feature-grid > div:hover, .card:hover, .testimonial-card:hover {
  transform: translateY(-2px) scale(1.011);
  z-index: 6;
}

/* ==== FORM FIELDS (IF ANY) ==== */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 7px;
  border: 1px solid #d3d3d6;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.13s;
  margin-bottom: 15px;
  background: #fafbfc;
  color: #1b1b1c;
}
input:focus, textarea:focus, select:focus {
  border-color: #163245;
}
label {
  font-size: 1rem;
  margin-bottom: 5px;
  color: #181818;
  display: inline-block;
}

/* ==== ERROR, ALERT, INFO (OPTIONAL) ==== */
.alert {
  background: #f6f1ec;
  color: #222;
  border-radius: 9px;
  padding: 18px 16px;
  margin-bottom: 1em;
  border-left: 5px solid #5790A6;
  font-size: 1.01rem;
  box-shadow: 0 2px 5px -4px #1813;
}

/* ==== Z-INDEX MANAGEMENT ==== */
header, .mobile-menu, .mobile-menu-toggle { z-index: 1000; }
.cookie-banner { z-index: 2040; }
.cookie-modal, .cookie-modal-backdrop { z-index: 2051; }

/* ==== PRINT ==== */
@media print {
  header, footer, .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-backdrop { display: none !important; }
  main, .container, .section { background: #fff !important; color: #111 !important; }
}
