/* ====== CSS RESET & 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, caption, tbody, tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption, footer, header, hgroup, main, 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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F8FAFC;
  color: #232A34;
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}
ul, ol {
  margin: 0 0 16px 24px;
}
a {
  color: #2B3E5F;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1D2940;
  text-decoration: underline;
}
::-webkit-input-placeholder { color: #9098A4; }
::-moz-placeholder { color: #9098A4; }
:-ms-input-placeholder { color: #9098A4; }
::placeholder { color: #9098A4; }

/* ====== BRAND FONTS ====== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #2B3E5F;
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}

p, li {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #232A34;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
}

.subheadline {
  font-size: 1.125rem;
  color: #465366;
  margin-bottom: 18px;
  max-width: 640px;
}

/* ========== CONTAINER & LAYOUT ========== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(43,62,95,0.08);
}

.card-container,
.feature-grid,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.card-container {
  gap: 24px;
}

.content-grid { 
  gap: 20px;
  justify-content: space-between;
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px 0 rgba(43,62,95,0.06);
  padding: 28px 20px;
  min-width: 240px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F5F8FA;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px 0 rgba(43,62,95,0.08);
  color: #2B3E5F;
  transition: box-shadow 0.3s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 18px 0 rgba(43,62,95,0.11);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Responsive layout for feature-grid */
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: #F6FBFF;
  border-radius: 10px;
  box-shadow: 0 1px 6px 0 rgba(43,62,95,0.05);
  padding: 24px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.25s, background 0.25s;
}
.feature-grid > div:hover,
.feature-grid > div:focus-within {
  background: #e7f2fa;
  box-shadow: 0 4px 18px 0 rgba(43,62,95,0.10);
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.faq-list h3 {
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2B3E5F;
  margin-bottom: 2px;
}
.faq-list p {
  font-size: 1rem;
  color: #465366;
}

.text-section {
  max-width: 740px;
}

/* ====== HEADER STYLES ====== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(43,62,95,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 70px;
  padding: 0 24px;
}
header .logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-right: 18px;
}
header img {
  height: 44px;
  width: auto;
}
nav {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #2B3E5F;
  font-weight: 500;
  transition: color 0.2s;
  padding: 8px 10px;
  border-radius: 6px;
}
nav a:hover, nav a:focus {
  background: #E5F0F8;
  color: #183158;
}
.cta.primary {
  background: #2B3E5F;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  margin-left: 30px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.23s;
  box-shadow: 0 1px 5px 0 rgba(43,62,95,0.10);
  outline: none;
  display: inline-block;
  text-align: center;
}
.cta.primary:hover, .cta.primary:focus {
  background: #385184;
  color: #fff;
  box-shadow: 0 3px 12px 0 rgba(43,62,95,0.14);
}

.mobile-menu-toggle {
  background: none;
  border: none;
  color: #2B3E5F;
  font-size: 2.1rem;
  cursor: pointer;
  margin-left: 18px;
  z-index: 52;
  display: none;
  align-items: center;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(43,62,95, 0.97);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 70px;
  padding-left: 0;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.66,0,0.34,1);
  z-index: 100;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  position: absolute;
  top: 16px;
  right: 26px;
  z-index: 120;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { background: #25334B; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100vw;
  margin-top: 10px;
  align-items: flex-start;
  padding-left: 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 10px 10px 0;
  border-radius: 3px;
  transition: color 0.18s, background 0.18s;
  line-height: 1.4;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #4A648C;
  color: #9EC6DF;
}

/* ===== HERO SECTION ===== */
.hero {
  background: #e5f0f8;
  padding: 60px 0 52px;
  margin-bottom: 40px;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 8px 36px 0 rgba(43,62,95,0.07);
  display: flex;
  align-items: center;
  min-height: 320px;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}

/* ====== BUTTONS ====== */
.btn, .cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 6px;
  padding: 12px 28px;
  text-align: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.23s;
  border: none;
}
.cta.primary {
  background: #2B3E5F;
  color: #fff;
}
.cta.primary:hover, .cta.primary:focus {
  background: #385184;
}
.cta.secondary {
  background: #fff;
  color: #2B3E5F;
  border: 1px solid #2B3E5F;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #e5f0f8;
  color: #183158;
}

/* ====== FOOTER ====== */
footer {
  background: #2B3E5F;
  color: #fff;
  padding: 0 0 0 0;
  margin-top: 60px;
}
footer .container {
  padding: 36px 20px 0 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 42px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-brand img {
  height: 35px;
  margin-bottom: 8px;
}
.footer-brand .tagline {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #9EC6DF;
  margin-bottom: 0;
}
.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: #9EC6DF;
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-contact p,
.footer-contact a {
  color: #E6E9EF;
  font-size: 0.98rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer-legal {
  flex-basis: 100%;
  text-align: center;
  margin-top: 28px;
  color: #B6C2D7;
  font-size: 0.92rem;
}

/* ===== GENERAL VISUALS & CARDS ===== */
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px 0 rgba(43,62,95,0.08);
  padding: 28px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, background 0.18s;
}
.card:hover {
  background: #eaf4fc;
  box-shadow: 0 2px 18px 0 rgba(43,62,95,0.13);
}

ul, ol {
  padding-left: 28px;
  margin-bottom: 12px;
}
li {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #465366;
}

/* ICONS next to text */
.footer-contact img, .footer-contact svg,
.feature-grid img, .feature-item img, ul img {
  height: 20px;
  width: 20px;
  margin-right: 7px;
}

/* ========== SPACING PATTERNS (MANDATORY) ========== */
.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; }

/* ===== MICRO-INTERACTIONS ===== */
.testimonial-card {
  transition: box-shadow 0.25s, background 0.20s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 20px 0 rgba(43,62,95,0.13);
  background: #EAF0F7;
}

.feature-grid > div:active {
  background: #dbeaf6;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 28px;
  background: #233052;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 16px 0 rgba(43,62,95,0.20);
  padding: 26px 30px 24px 30px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 520px;
  margin: 0 auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s, transform 0.35s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
}
.cookie-banner p {
  margin-bottom: 0;
  color: #fff;
  font-size: 1rem;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 5px;
  border: none;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.cookie-btn.accept {
  background: #2B3E5F;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #183158;
}
.cookie-btn.reject {
  background: #fff;
  color: #2B3E5F;
  border: 1px solid #2B3E5F;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #EAF0F7;
}
.cookie-btn.settings {
  background: #9EC6DF;
  color: #233052;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #6E9CB8;
  color: #fff;
}

/* ===== COOKIE MODAL ====== */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(43,62,95,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.35s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 34px 30px 28px 30px;
  max-width: 460px;
  width: 90vw;
  box-shadow: 0 8px 32px 0 rgba(43,62,95,0.18);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInModal 0.33s cubic-bezier(.24,1.23,.38,1.01);
}
@keyframes fadeInModal {
  from { transform: translateY(70px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal .modal-close {
  position: absolute;
  right: 36px; top: 24px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #2B3E5F;
  cursor: pointer;
  border-radius: 5px;
  padding: 3px 8px;
  transition: background 0.17s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus { background: #E5F0F8; }
.cookie-modal-content h2 {
  font-size: 1.3rem;
  color: #2B3E5F;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #EEF3F8;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label {
  font-size: 1rem;
  color: #233052;
}
.cookie-switch {
  position: relative;
  width: 44px;
  height: 22px;
  display: inline-block;
}
.cookie-switch input[type='checkbox'] {
  opacity: 0; width: 0; height: 0; position: absolute;
}
.cookie-slider {
  background: #CCE2F2;
  border-radius: 11px;
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  transition: background 0.18s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #9EC6DF;
}
.cookie-slider:before {
  content: '';
  position: absolute;
  left: 4px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s;
  box-shadow: 0 2px 4px rgba(43,62,95,0.13);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
}
.cookie-category[data-essential] .cookie-switch input {
  display: none;
}
.cookie-category[data-essential] .cookie-slider {
  background: #b4c8d7;
}
.cookie-category[data-essential] .cookie-slider:before {
  background: #F3E8D2;
}
.cookie-save {
  margin-top: 16px;
  width: 100%;
  font-size: 1rem;
  border-radius: 6px;
  background: #2B3E5F;
  color: #fff;
  border: none;
  padding: 11px 0;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  transition: background 0.19s;
}
.cookie-save:hover, .cookie-save:focus {
  background: #183158;
}

/* ========== UTILITY CLASSES ========== */
.centered { text-align: center; justify-content: center; align-items: center; }

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1150px) {
  .container { max-width: 98vw; }
  .footer-brand, .footer-contact, .footer-links { min-width: 190px; }
}
@media (max-width: 900px) {
  .footer-brand, .footer-contact, .footer-links { min-width: 150px; }
  .content-wrapper { gap: 26px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .hero { padding: 40px 0 36px; min-height: 195px; border-radius: 0; }
  .footer-brand, .footer-contact, .footer-links { min-width: 120px; }
  .content-wrapper { gap: 18px; }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
    margin-bottom: 14px;
  }
  .section { padding: 30px 8px; }
  .cookie-banner { left: 3vw; right: 3vw; padding: 18px 14px; border-radius: 9px; }
  .cookie-modal .cookie-modal-content { padding: 18px 10px 18px 10px; }
}
@media (max-width: 600px) {
  header .logo img { height: 32px; }
  .footer-brand img { height: 23px; }
  .footer-legal { font-size: 0.83rem; }
  .hero { padding: 26px 0 20px; }
  .cookie-banner { max-width: 98vw; padding: 11px 5vw 16px 5vw; font-size: 0.99rem; }
}
@media (max-width: 900px) {
  .footer .content-wrapper { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (max-width: 980px) {
  .footer .content-wrapper { flex-wrap: wrap; gap: 18px; }
}
@media (max-width: 940px) {
  .footer .content-wrapper { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 830px) {
  .footer .content-wrapper { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1024px) {
  nav { gap: 19px; }
}
@media (max-width: 900px) {
  header .cta.primary { margin-left: 10px; padding: 10px 14px; font-size: 0.97rem; }
}
@media (max-width: 850px) {
  footer .container { padding: 26px 10px 0 10px; }
}

/* ===== MOBILE/STICKY HEADER ===== */
@media (max-width: 900px) {
  header {
    padding: 0 14px;
    min-height: 58px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 510px) {
  header { min-height: 42px; }
  footer .container { padding: 10px 1vw 0 1vw; }
}
@media (min-width: 901px) {
  .mobile-menu-toggle { display: none !important; }
  .mobile-menu { display: none !important; }
  nav { display: flex !important; }
}

/* ====== EXTRA DETAILS: ENSURE CONTRAST ====== */
.testimonials .testimonial-card, .testimonial-card {
  background: #F5F8FA;
  color: #2B3E5F;
}
.testimonial-card p, .testimonial-card strong {
  color: #2B3E5F;
}

/* Hide mobile menu by default */
.mobile-menu {
  display: flex;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.38s, transform 0.38s;
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
}

/* Hide scroll behind modal/menu */
body.mobile-menu-open, body.cookie-modal-open {
  overflow: hidden;
  position: fixed;
  width: 100vw;
}

/* ====== END OF CSS ====== */
