/* --- 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;
  vertical-align: baseline;
  font: inherit;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; background: #F3ECEC; color: #24304E; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }

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

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background: linear-gradient(135deg, #A0B7C8 0%, #F3ECEC 100%);
  min-height: 100vh;
  color: #24304E;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #24304E;
  margin-bottom: 12px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 16px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
p, ul, ol, li, span { font-size: 1rem; line-height: 1.7; }

.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- SECTIONS & FLEX LAYOUTS --- */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: transparent;
}
.content-wrapper, .card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-container { flex-wrap: wrap; gap: 24px; }
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(36,48,78,0.08), 0 1.5px 5px rgba(160,183,200,0.07);
  padding: 32px 28px;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  box-shadow: 0 12px 24px rgba(36,48,78,0.14), 0 4px 16px rgba(160,183,200,0.11);
  transform: translateY(-4px) scale(1.015);
}
.content-grid {
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F3ECEC;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(36,48,78,0.07);
  border-left: 6px solid #A0B7C8;
  min-width: 0;
}
.testimonial-card p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #24304E;
  margin-bottom: 4px;
}
.testimonial-card span {
  font-size: 0.97rem;
  font-weight: 400;
  color: #24304E;
  opacity: 0.85;
}
.testimonial-card div {
  color: #A0B7C8;
  font-size: 1.15rem;
  margin-bottom: 0;
}
.feature-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section ul {
  margin-bottom: 18px;
  gap: 12px;
}

/* --- BRANDING & PRIMARY BUTTONS --- */
.cta-btn {
  background: linear-gradient(90deg, #24304E 80%, #A0B7C8 100%);
  color: #fff;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 22px;
  box-shadow: 0 2px 8px rgba(36,48,78,0.10);
  padding: 14px 38px;
  cursor: pointer;
  transition: background 0.22s, transform 0.18s, box-shadow 0.2s;
  margin-top: 10px;
  margin-bottom: 6px;
  display: inline-block;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #A0B7C8 22%, #24304E 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 16px rgba(36,48,78,0.20);
}

/* --- MAIN NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(36,48,78,0.065);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 16px;
}
header img {
  height: 48px;
  margin-right: 26px;
}
.main-nav {
  display: flex;
  gap: 23px;
}
.main-nav a {
  color: #24304E;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 8px 14px;
  border-radius: 18px;
  transition: background 0.18s, color 0.18s;
  position: relative;
  z-index: 1;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F3ECEC;
  color: #24304E;
  text-decoration: none;
}

/* --- MOBILE BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #24304E;
  padding: 8px 13px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 201;
  transition: background 0.22s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F3ECEC;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,48,78,0.97);
  transform: translateX(-105%);
  transition: transform 0.36s cubic-bezier(.42,1.22,.36,.98);
  z-index: 200;
  padding: 32px 28px 8px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 0 100vw 0 rgba(36,48,78,0.36);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 24px;
  align-self: flex-end;
  cursor: pointer;
  z-index: 201;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.25rem;
  text-align: left;
  padding: 12px 0 12px 10px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #A0B7C8;
  color: #24304E;
}

/* --- MEDIA QUERIES & RESPONSIVE LAYOUTS --- */
@media (max-width: 1050px) {
  .container { max-width: 970px; }
}
@media (max-width: 900px) {
  header .container { flex-direction: row; flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 820px) {
  .container { max-width: 96vw; padding-left: 10px; padding-right: 10px; }
  header img { margin-right: 12px; height: 40px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .main-nav {
    display: none;
  }
  .cta-btn { font-size: 1rem; padding: 11px 22px; }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper, .card-container, .content-grid, .testimonial-card, .feature-item, .text-image-section
  { flex-direction: column; gap: 18px; }
  .text-image-section { align-items: flex-start; }
  .card { padding: 20px 14px; }
  .testimonial-card { padding: 16px 12px; }
}
@media (max-width: 560px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.12rem; }
  .container { max-width: 99vw; }
  .footer-menu, .footer-branding, .footer-legal { font-size: 0.93rem; }
}

/* --- HOME & GENERAL CARDS --- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* --- ICONS IN LISTS --- */
ul li img {
  vertical-align: middle;
  height: 23px;
  width: 23px;
  margin-right: 7px;
  margin-bottom: -4px;
}
ul li strong {
  margin-right: 4px;
  color: #24304E;
}
.text-section ul li { padding-bottom: 4px; }

/* --- FOOTER --- */
footer {
  background: #24304E;
  color: #fff;
  padding: 48px 0 22px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-menu {
  display: flex;
  gap: 28px;
}
.footer-menu a {
  color: #A0B7C8;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #fff;
}
.footer-branding {
  font-size: 1.08rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 0;
  color: #F3ECEC;
}
.footer-legal {
  font-size: 0.97rem;
  opacity: 0.85;
  text-align: center;
  color: #A0B7C8;
}
@media (max-width: 768px) {
  footer .container { gap: 14px; }
  .footer-menu { gap: 15px; flex-wrap: wrap; font-size: 0.97rem; }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 3px solid #A0B7C8;
  box-shadow: 0 -2px 14px rgba(36,48,78,0.07);
  padding: 20px 24px;
  z-index: 3001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.35s, opacity 0.35s;
}
.cookie-banner.closed {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  margin: 0;
  font-size: 1rem;
  color: #24304E;
  flex: 2 1 350px;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex: 1 0 auto;
}
.cookie-btn {
  background: #A0B7C8;
  border: none;
  color: #24304E;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  padding: 9px 19px;
  border-radius: 18px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.17s, color 0.17s;
}
.cookie-btn.accept {
  background: #24304E;
  color: #fff;
}
.cookie-btn.reject {
  background: #F3ECEC;
  color: #24304E;
  border: 1px solid #A0B7C8;
}
.cookie-btn:hover, .cookie-btn:focus {
  opacity: 0.88;
  filter: brightness(1.08);
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 10px;
    gap: 12px;
  }
}

/* --- COOKIE CONSENT MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,48,78,0.73);
  z-index: 4002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.closed {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  padding: 38px 28px 32px 28px;
  width: 98vw;
  max-width: 400px;
  box-shadow: 0 8px 48px rgba(36,48,78,0.24);
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
}
.cookie-modal h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #24304E;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
}
.cookie-modal label {
  font-size: 1rem;
  color: #24304E;
}
.cookie-toggle {
  width: 36px; height: 20px;
  background: #A0B7C8;
  border-radius: 12px;
  position: relative;
  transition: background 0.17s;
  margin-right: 7px;
  flex-shrink: 0;
}
.cookie-toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-toggle .thumb {
  position: absolute;
  left: 3px; top: 2.5px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1.5px 5px #dde5ec2f;
  transition: left 0.19s;
}
.cookie-toggle input:checked + .thumb {
  left: 18px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 15px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  font-size: 1.35rem;
  color: #A0B7C8;
  cursor: pointer;
}

/* --- FORMS (if present in the future) --- */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #A0B7C8;
  padding: 12px 13px;
  background: #FAFAFA;
  margin-bottom: 14px;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #24304E;
  border-color: #24304E;
}

/* --- MICRO-INTERACTIONS AND TRANSITIONS --- */
a, .cta-btn, .main-nav a, .mobile-nav a, .cookie-btn {
  transition: background 0.19s, color 0.19s, box-shadow 0.19s, transform 0.17s;
}
.card, .testimonial-card {
  transition: box-shadow 0.24s, transform 0.18s;
}

/* --- SPACING & VISUAL HIERARCHY --- */
section, .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;
}

/* --- OVERRIDE TABLE, CODE, BLOCK --- */
table { border-collapse: collapse; width: 100%; margin-bottom: 20px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #A0B7C8; }
code, pre { background: #F3ECEC; border-radius: 4px; padding: 4px 9px; font-size: 0.9em; }

/* --- UTILS --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.inline-block { display: inline-block; }

/* --- ACCESSIBLE OUTLINE FOR FOCUSABLE --- */
a:focus, .cta-btn:focus, .cookie-btn:focus, button:focus {
  outline: 2px solid #A0B7C8;
  outline-offset: 2px;
}

/* --- NO OVERLAPPING, SPACING ENSURED --- */
.card, .testimonial-card, .content-wrapper, .section, .card-container, .content-grid, .text-image-section, .feature-item {
  min-width: 0;
}

/* --- FOR PRINT --- */
@media print {
  nav, .main-nav, .mobile-menu, .cookie-banner, .cookie-modal-overlay, .footer-menu, .footer-branding, .footer-legal { display: none !important; }
}

/* END */
