/* ===== 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F4F7FA;
  color: #23446E;
  font-family: 'Roboto', Arial, sans-serif;
}
ul, ol {
  list-style: none;
}
a {
  background: none;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img, picture, svg {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}
button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* ===== VARIABLE FALLBACKS ===== */
:root {
  --primary: #23446E;
  --secondary: #F9B234;
  --accent: #F4F7FA;
  --text: #23446E;
  --text-light: #7a8699;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(35,68,110,0.08);
  --radius: 12px;
  --transition: 0.18s cubic-bezier(.4,0,.2,1);
}

body {
  color: var(--text);
  font-size: 16px;
  background: var(--accent);
}


/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.15;
}
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; }

p, li, blockquote, address {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
strong { color: var(--primary); font-weight: 600; }
blockquote {
  font-style: italic;
  color: var(--primary);
  border-left: 3px solid var(--secondary);
  padding-left: 16px;
  background: var(--accent);
  margin-bottom: 8px;
}
cite {
  display: block;
  margin-top: 8px;
  color: var(--text-light);
  font-size: 0.98em;
}
address {
  font-style: normal;
  margin-bottom: 10px;
}


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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(35,68,110,0.04);
  padding: 0;
  z-index: 100;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo img {
  height: 42px;
  width: auto;
  margin-right: 12px;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--primary);
  font-size: 1rem;
  padding: 10px 6px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
  letter-spacing: 0.02em;
}
nav a:hover,
nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}
.btn-primary {
  background: var(--primary);
  color: var(--white)!important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: 0 1px 6px rgba(35,68,110,0.07);
  border: none;
  outline: none;
  display: inline-block;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--secondary);
  color: var(--primary)!important;
  box-shadow: 0 4px 12px rgba(249,178,52,0.11);
}
.btn-secondary {
  background: var(--white);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  border: 1.5px solid var(--primary);
  display: inline-block;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(35,68,110,0.14);
}

/* Burger Menu (mobile-menu-toggle/close) */
.mobile-menu-toggle {
  display: none;
  background: var(--white);
  color: var(--primary);
  padding: 0 12px;
  font-size: 2rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background var(--transition), border var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--accent);
  border: 1px solid var(--primary);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,68,110,0.90);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.6,.2,.2,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  overflow-y: auto;
  padding-top: 56px;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 18px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.7rem;
  line-height: 1;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  z-index: 1202;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--primary);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 21px;
  padding: 46px 32px 32px 32px;
  width: 100vw;
}
.mobile-nav a {
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.27rem;
  padding: 12px 0;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  text-align: left;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 900px) {
  header .container nav,
  header .container .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===== SECTIONS ===== */
.hero {
  background: var(--accent);
  padding-top: 68px;
  padding-bottom: 68px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  max-width: 580px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero p {
  color: var(--text-light);
  font-size: 1.12rem;
  margin-bottom: 26px;
}

.features {
  margin-bottom: 60px;
  padding: 40px 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.features .content-wrapper ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-top: 12px;
}
.features .content-wrapper li {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(35,68,110,0.07);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  min-width: 220px;
  color: var(--text);
  font-size: 1.05rem;
  flex: 1 1 240px;
}
.features .content-wrapper li img {
  width: 32px;
  height: 32px;
}

.services-teaser {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 0;
  margin-bottom: 60px;
  box-shadow: var(--shadow);
}
.services-teaser h2,
.services-teaser p {
  color: var(--white);
}
.services-teaser .btn-secondary {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}
.services-teaser .btn-secondary:hover {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
}

.trust .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
}
.logo-slider {
  display: flex;
  align-items: center;
  gap: 32px;
}
.trust-badges {
  display: flex;
  gap: 16px;
  align-items: center;
}
.trust-badges img {
  background: var(--white);
  border-radius: 50%;
  padding: 9px;
  box-shadow: 0 2px 6px rgba(35,68,110,0.06);
  width: 44px;
  height: 44px;
}
.cta {
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--radius);
  padding: 40px 0;
}
.cta h2,
.cta p {
  color: var(--primary);
}
.cta .btn-primary {
  background: var(--primary);
  color: var(--white);
}
.cta .btn-primary:hover {
  background: var(--white);
  color: var(--primary);
}

/* ===== CARDS, LISTS, FLEX PATTERNS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
  min-width: 220px;
  flex: 1 1 280px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(35,68,110,0.20);
  transform: translateY(-3px) scale(1.02);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 16px 0;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
  min-width: 230px;
  box-shadow: 0 2px 8px rgba(35,68,110,0.07);
}
.testimonial-card cite {
  margin-top: 6px;
  color: var(--primary);
  font-weight: 500;
}
.certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
}
.certifications li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--primary);
  background: var(--white);
  border-radius: 18px;
  padding: 8px 20px;
  box-shadow: 0 1px 5px rgba(35,68,110,0.08);
}
.certifications img {
  width: 26px;
  height: 26px;
  display: block;
}

.team-leaders {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 20px;
  align-items: stretch;
}
.team-leaders > div {
  flex: 1 1 220px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 1px 7px rgba(35,68,110,0.04);
  padding: 16px 20px;
  min-width: 220px;
}

/* ===== VARIOUS PAGE SECTION CLASSES ===== */
.policy-content, .gdpr-content {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 20px;
  margin-bottom: 60px;
}
.policy-content h1, .gdpr-content h1 {
  margin-bottom: 20px;
}
.policy-content ul, .gdpr-content ul {
  margin-bottom: 20px;
}
.policy-content li, .gdpr-content li {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 1rem;
}
.policy-content a, .gdpr-content a {
  color: var(--secondary);
  text-decoration: underline;
  transition: color var(--transition);
}
.policy-content a:hover, .gdpr-content a:hover {
  color: var(--primary);
}

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

/* List numbers and disc styles for legal/policy pages only */
.policy-content ol {
  list-style: decimal inside;
  margin-left: 16px;
}
.policy-content ul {
  list-style: disc inside;
  margin-left: 10px;
}
.gdpr-content ul, .gdpr-content ol {
  margin-left: 10px;
  list-style: disc inside;
}
.gdpr-content ol {
  list-style: decimal inside;
}

/* Map section */
.map {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 0;
  margin-top: 60px;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -2px 10px rgba(35,68,110,0.07);
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 20px;
}
footer a {
  color: var(--white);
  font-weight: 500;
  font-size: 1.03rem;
  margin-right: 14px;
  padding: 7px 0;
  transition: color var(--transition);
}
footer a:hover, footer a:focus {
  color: var(--secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.98rem;
}
.footer-contact img {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: middle;
}
footer p {
  color: var(--secondary);
}
/* ==== BUTTONS & LINKS ==== */
a, button {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
a.btn-primary, button.btn-primary {
  text-align: center;
  text-decoration: none;
  outline: none;
}

/* ==== MICRO-INTERACTIONS & HOVER EFFECTS ==== */
.card, .testimonial-card, .team-leaders > div {
  transition: box-shadow 0.21s cubic-bezier(.47,0,.745,.715), transform 0.23s cubic-bezier(.47,0,.745,.715);
}
.card:hover, .team-leaders > div:hover {
  box-shadow: 0 4px 16px rgba(249,178,52,0.16);
  transform: scale(1.016);
}
.testimonial-card:hover {
  box-shadow: 0 4px 18px rgba(35,68,110,0.13);
  transform: scale(1.025);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 1000px) {
  .container {
    max-width: 970px;
  }
  .footer-contact {
    font-size: 0.96rem;
  }
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
    padding: 22px 12px;
  }
}
@media (max-width: 768px) {
  header .container { flex-wrap: wrap; }
  .content-wrapper { gap: 18px; }
  .section, section, .policy-content, .gdpr-content {
    padding: 28px 5px;
    margin-bottom: 37px;
    box-shadow: 0 2px 10px rgba(35,68,110,0.04);
  }
  .hero {
    padding-top: 36px;
    padding-bottom: 36px;
  }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.24rem; }
  .features .content-wrapper ul,
  .card-container, .team-leaders, .content-grid, .logo-slider {
    flex-direction: column;
    gap: 17px;
  }
  .trust-badges { gap: 10px; }
  .cta, .services-teaser { padding: 25px 8px; }
  .footer-contact p { font-size: 1rem; }
  .testimonial-card, .card, .team-leaders > div {
    min-width: 160px;
    padding: 12px 10px;
  }
  nav, footer nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
}
@media (max-width: 540px) {
  .logo img { height: 36px; }
  .footer-contact img { width: 18px; height: 18px; }
  .footer-contact { font-size: 0.93rem; }
}

/* ===== COOKIE CONSENT BANNER & MODAL ===== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 -2px 10px rgba(35,68,110,0.23);
  z-index: 1900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
  gap: 20px;
  font-size: 1rem;
  border-top: 3px solid var(--secondary);
  animation: cookieBannerAppear 0.32s ease;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cookie-consent-banner button {
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  padding: 8px 20px;
  border: none;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  margin-right: 2px;
  transition: background var(--transition), color var(--transition);
}
.cookie-consent-banner button:hover {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-consent-banner .cookie-settings {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
  transition: background var(--transition), color var(--transition), border var(--transition);
}
.cookie-consent-banner .cookie-settings:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--secondary);
}
@keyframes cookieBannerAppear {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(35,68,110,0.32);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.23s;
}
.cookie-consent-modal {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: 0 4px 30px rgba(35,68,110,0.18);
  max-width: 370px;
  width: 92vw;
  padding: 34px 18px 22px 18px;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookieModalAppear 0.29s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieModalAppear {
  from { transform: translateY(30px) scale(0.94); opacity:0; }
  to { transform: translateY(0) scale(1); opacity:1; }
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 21px;
  height: 21px;
  margin-right: 6px;
}
.cookie-category label {
  color: var(--text);
  font-weight: 500;
}
.cookie-category .always-enabled {
  color: var(--text-light);
  font-size: 0.94em;
  font-style: italic;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 16px;
}
.cookie-modal-actions button {
  border-radius: 7px;
  padding: 7px 20px;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  background: var(--primary);
  color: var(--white);
}
.cookie-modal-actions .cookie-cancel {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-modal-actions .cookie-cancel:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
}

/* ========================
   A11Y FOCUS OUTLINE
======================== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2.5px dashed var(--secondary);
  outline-offset: 4px;
}

/* ========================
   SELECT INPUTS/FORMS (if any in future)
======================== */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1.2px solid var(--accent);
  background: var(--white);
  margin-bottom: 12px;
  color: var(--text);
  transition: border var(--transition);
}
input:focus, textarea:focus, select:focus {
  border: 1.2px solid var(--primary);
}

/* ===============================
   PRINT (Optional, minimal)
=============================== */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-consent-banner, .cookie-modal-backdrop { display: none !important; }
  header, footer { box-shadow: none; }
  section, .policy-content, .gdpr-content { box-shadow: none; }
}
