/* ===== 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, 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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; background: #f5f8fa; color: #223242; font-family: 'Roboto', Arial, Helvetica, sans-serif; min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }

/* ===== BRAND COLOR PALETTE ===== */
:root {
  --primary: #26547C;
  --secondary: #F7B32B;
  --accent: #F5F3F5;
  --text-body: #223242;
  --text-light: #fff;
  --bg-main: #f5f8fa;
  --bg-section: #fff;
  --border-card: #e0e6ee;
  --shadow-card: rgba(38,84,124,0.08);
  --gray-light: #e0e6ee;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p, ul, ol, li, blockquote, address { font-size: 1rem; color: var(--text-body); }
.section h1, .section h2, .section h3 {
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.1rem; }
}

/* ===== LAYOUT CONTAINERS & SECTIONS ===== */
body, html { background: var(--bg-main); }
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  background: var(--bg-section);
  border-radius: 16px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 16px var(--shadow-card);
}

/* ===== FLEXBOX PATTERNS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--bg-section);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s cubic-bezier(.4,0,.2,1), box-shadow 0.16s cubic-bezier(.4,0,.2,1);
}
.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 6px 24px rgba(38,84,124,0.18);
  border-color: var(--primary);
}
.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;
}

/* Testimonials cards will always be visually separate card blocks */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 18px 28px;
  margin-bottom: 20px;
  background: var(--accent);
  border-radius: 12px;
  border: 1px solid var(--gray-light);
  box-shadow: 0 2px 6px var(--shadow-card);
  color: var(--text-body);
  max-width: 550px;
  transition: box-shadow 0.15s, border-color 0.2s;
}
.testimonial-card blockquote {
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1.5;
  quotes: "\201C" "\201D" "\2018" "\2019";
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card footer {
  font-size: 1rem;
  color: #444;
  font-style: normal;
}
.testimonial-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(38,84,124,0.10);
}

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

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(90deg,#f5f8fa 60%, #accbe1 100%);
  padding: 42px 0 36px 0;
  margin-bottom: 44px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.4rem;
  margin-bottom: 12px;
}
.hero p {
  color: var(--text-body);
  font-size: 1.16rem;
}

@media (max-width: 768px) {
  .hero {
    padding: 32px 0 18px 0;
    margin-bottom: 30px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 32px;
    border-radius: 10px;
  }
}

/* ===== NAVIGATION ===== */
header {
  background: var(--bg-section);
  border-bottom: 1px solid var(--gray-light);
  position: sticky;
  top: 0;
  z-index: 1100;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 20px 12px 20px;
}
header nav > a img {
  max-height: 48px;
  width: auto;
  margin-right: 16px;
}
header nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
header nav ul li a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary);
  padding: 10px 16px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  outline: none;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: var(--accent);
  color: var(--secondary);
}
.cta-button {
  background: var(--primary);
  color: var(--text-light);
  padding: 11px 22px;
  border-radius: 7px;
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow-card);
  margin-left: 14px;
  font-size: 1rem;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.13s;
  outline: none;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 18px rgba(38,84,124,0.10);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  padding: 4px 14px 0 14px;
  cursor: pointer;
  margin-left:16px;
  transition: background 0.16s, color 0.16s;
  z-index: 1230;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  z-index: 2200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.48,-0.01,.24,1.17);
  box-shadow: -4px 0 40px rgba(38,84,124,0.20);
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  align-self: flex-end;
  margin: 18px 18px 6px 0;
  cursor: pointer;
  z-index: 2250;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 32px 0 32px;
}
.mobile-nav a {
  font-size: 1.18rem;
  font-family: 'Montserrat',Arial,sans-serif;
  color: var(--primary);
  padding: 16px 8px;
  border-radius: 7px;
  margin-bottom: 2px;
  transition: background .17s, color .17s;
  width: 100%;
  outline: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}
@media (max-width:911px) {
  header nav ul,
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width:912px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}


/* ===== BUTTONS, FORMS, INTERACTIVES ===== */
button, .button {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  background: var(--primary);
  color: var(--text-light);
  transition: background .17s, color .17s, transform .12s;
  outline: none;
}
button:hover, button:focus, .button:hover, .button:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-1px) scale(1.04);
}

input, textarea, select {
  font-size: 1rem;
  padding: 10px 14px;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  margin-bottom: 14px;
  background: #fff;
  color: var(--text-body);
  transition: border-color 0.13s, box-shadow 0.13s;
  width: 100%;
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 8px rgba(38,84,124, 0.1);
}

/* ===== LISTS AND BLOCKS ===== */
ul, ol {
  padding-left: 32px;
  margin-bottom: 12px;
}
ul li {
  position: relative;
  margin-bottom: 10px;
  font-size: 1.07rem;
}
ul li::before {
  content: "";
  display: inline-block;
  height: 10px;
  width: 10px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--secondary);
  vertical-align: middle;
  position: relative;
  top: -1.5px;
}
ol {
  counter-reset: item;
}
ol li {
  counter-increment: item;
}
ol li::before {
  content: counter(item) ". ";
  color: var(--primary);
  font-weight: 600;
  margin-right: 8px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-section);
  border-top: 1px solid var(--gray-light);
  padding: 36px 0 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
footer img {
  max-width: 50px;
  margin-bottom: 16px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-bottom: 8px;
}
footer nav a {
  font-size: .95rem;
  color: var(--primary);
  transition: color .18s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
}
footer p {
  font-size: .94rem;
  color: #798ca1;
}

@media (max-width:600px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  footer nav {
    gap: 10px;
    font-size: .91rem;
  }
  footer img { margin-bottom: 8px; }
}

/* ===== RESPONSIVE FLEXBOX ADJUSTMENTS ===== */
@media (max-width: 950px) {
  .card-container, .content-grid {
    gap: 16px;
    flex-wrap: wrap;
  }
}
@media (max-width: 900px) {
  .card {
    min-width: 188px;
    flex: 1 1 140px;
  }
}
@media (max-width:768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 100%;
    margin-bottom: 16px;
    padding: 18px 12px 14px 12px;
  }
}

/* ===== MISCELLANEOUS ===== */
strong { color: var(--primary); }
em { color: #5277ab; font-style: italic; }
section { margin-bottom: 0px; }
hr { border: none; height: 1px; background: var(--gray-light); margin: 30px 0; }

/* _____ COOKIE CONSENT BANNER _____ */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 28px rgba(38,84,124,0.13);
  border-top: 1px solid var(--gray-light);
  z-index: 3300;
  padding: 20px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 1;
  transition: transform 0.26s cubic-bezier(.43,1.12,.29,0.99), opacity 0.19s;
}
.cookie-consent-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner p {
  color: var(--text-body);
  font-size: 1rem;
  margin-right: 24px;
}
.cookie-buttons {
  display: flex;
  gap: 14px;
}
.cookie-consent-banner button, .cookie-consent-banner .button {
  padding: 7px 18px;
  border-radius: 6px;
  font-size: .98rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  background: var(--secondary);
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: background .16s, color .16s;
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus,
.cookie-consent-banner .button:hover, .cookie-consent-banner .button:focus {
  background: var(--primary);
  color: #fff;
}
.button-outline {
  background: #fff!important;
  color: var(--primary)!important;
  border: 1px solid var(--primary)!important;
  font-weight: 500!important;
}
.button-outline:hover, .button-outline:focus {
  background: var(--primary)!important;
  color: #fff!important;
}
@media (max-width:680px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 6px;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; bottom: 0; top: 0;
  background: rgba(38,84,124,0.19);
  z-index: 3400;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 360px;
  width: 92vw;
  padding: 28px 24px 20px 24px;
  box-shadow: 0 8px 38px rgba(38,84,124,0.16);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: popupIn 0.24s cubic-bezier(.43,1.12,.29,0.99);
}
@keyframes popupIn {
  from {transform: translateY(44px) scale(.95); opacity: .2;}
  to {transform: none; opacity: 1;}
}
.cookie-modal h3 {
  font-size: 1.11rem;
  margin-bottom: 6px;
  color: var(--primary);
}
.cookie-setting-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 4px;
}
.cookie-setting-label {
  font-size: 1rem;
  color: var(--text-body);
  user-select: none;
}
/* cookie toggles */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.switch input {display: none;}
.slider {
  position: absolute;
  cursor: pointer;
  top:0; left:0; right:0; bottom:0;
  background: var(--gray-light);
  border-radius: 22px;
  transition: .2s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: var(--primary);
  border-radius: 50%;
  transition: 0.2s;
}
input:checked + .slider {
  background: var(--secondary);
}
input:checked + .slider:before {
  background: var(--secondary);
  left: 19px;
}
.switch[aria-disabled="true"] .slider,
.switch input:disabled + .slider {
  background: #aac2d9;
  opacity: .46;
  pointer-events: none;
}
.cookie-modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal-buttons button, .cookie-modal-buttons .button {
  padding: 8px 20px;
}

/* ===== MICRO-INTERACTIONS ===== */
a, button, .cta-button, .button, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.16s, color 0.16s, transform 0.13s;
}

/* ===== UTILITY CLASSES ===== */
.align-center { text-align: center; }
.mb-32 { margin-bottom: 32px; }
.mb-24 { margin-bottom: 24px; }
.mb-16 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }

/* ===== ENSURE ADEQUATE SPACING, NO OVERLAP ===== */
.card, .testimonial-card, .feature-item, .section, .text-section {
  margin-bottom: 20px;
}
.card-container, .content-grid, .text-image-section, .feature-item {
  gap: 20px;
}

@media (max-width: 600px) {
  .section {
    margin-bottom: 22px;
    padding: 14px 4px;
  }
  .card { min-width: 100%; }
}
