/* === 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, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFFFFF;
  color: #24496D;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #24496D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFD34E;
}
ul, ol {
  margin: 0;
  padding-left: 1.5em;
}
strong {
  font-weight: bold;
}

/* === VARIABLES === */
:root {
  --bz-primary: #24496D;
  --bz-secondary: #E8EDF2;
  --bz-accent: #FFD34E;
  --bz-white: #FFFFFF;
  --bz-text: #24496D;
  --bz-grey: #616E83;
  --bz-shadow: 0 4px 16px rgba(36, 73, 109, 0.06);
  --bz-radius: 18px;
}

/* === TYPOGRAPHY === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500|Open+Sans:400,600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--bz-primary);
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.19;
  text-transform: uppercase;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  text-transform: uppercase;
}
h3 {
  font-size: 1.4rem;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li {
  font-size: 1.05rem;
  color: var(--bz-grey);
}
small {
  font-size: 0.9rem;
  color: var(--bz-grey);
}

/* === GLOBAL STRUCTURE === */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bz-secondary);
  border-radius: var(--bz-radius);
  box-shadow: var(--bz-shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* === HEADER === */
header {
  width: 100%;
  background: var(--bz-white);
  box-shadow: 0 2px 12px rgba(36, 73, 109, 0.03);
  z-index: 22;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 80px;
}
header nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.03rem;
  letter-spacing: 0.01em;
  padding: 8px 0 8px 0;
  display: inline-block;
  border-bottom: 2.5px solid transparent;
  transition: border-bottom 0.16s, color 0.19s;
}
header nav a:hover,
header nav a:focus {
  color: var(--bz-accent);
  border-bottom: 2.5px solid var(--bz-accent);
}
header .btn-primary {
  margin-left: 30px;
  flex-shrink: 0;
}
header img {
  height: 40px;
  width: auto;
  margin-right: 32px;
}

/* === BUTTONS === */
.btn-primary {
  background: var(--bz-accent);
  color: var(--bz-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  padding: 13px 30px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(36,73,109,0.08);
  cursor: pointer;
  letter-spacing: 0.03em;
  outline: none;
  transition: background 0.18s, transform 0.18s, box-shadow 0.2s;
  text-transform: uppercase;
  display: inline-block;
  margin-top: 12px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #f7c936;
  color: var(--bz-primary);
  transform: translateY(-3px) scale(1.04); 
  box-shadow: 0 6px 20px rgba(36,73,109,0.11);
}
.btn-secondary {
  background: var(--bz-primary);
  color: var(--bz-white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 11px 24px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(36,73,109,0.08);
  cursor: pointer;
  letter-spacing: 0.01em;
  outline: none;
  transition: background 0.18s, transform 0.18s, box-shadow 0.2s;
  text-transform: uppercase;
  display: inline-block;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #163859;
  color: var(--bz-accent);
}

/* === RESPONSIVE NAVIGATION BURGER === */
.mobile-menu-toggle {
  display: none;
  background: var(--bz-accent);
  color: var(--bz-primary);
  border: none;
  font-size: 2.3rem;
  border-radius: 6px;
  padding: 5px 15px;
  margin-left: 12px;
  cursor: pointer;
  z-index: 99;
  transition: background .16s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--bz-primary);
  color: var(--bz-accent);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bz-white);
  z-index: 98;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.64,.06,.58,1.12);
  box-shadow: 0 0 80px 0 rgba(36,73,109,0.10);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 32px 32px 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--bz-accent);
  color: var(--bz-primary);
  border: none;
  font-size: 2rem;
  border-radius: 6px;
  padding: 8px 16px;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 38px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--bz-primary);
  color: var(--bz-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
}
.mobile-nav a {
  color: var(--bz-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  padding: 10px 0;
  border-left: 6px solid transparent;
  transition: border-left 0.15s, color 0.15s, background .15s;
  border-radius: 0 10px 10px 0;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--bz-accent);
  background: var(--bz-secondary);
  border-left: 6px solid var(--bz-accent);
}

/* Hide main nav on small screens */
@media (max-width: 1024px) {
  header nav, header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* === MAIN SECTIONS, LAYOUT & GRIDS === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bz-secondary);
  border-radius: var(--bz-radius);
  box-shadow: var(--bz-shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--bz-white);
  box-shadow: 0 2px 12px rgba(36,73,109,0.05);
  border-radius: var(--bz-radius);
  padding: 26px 20px 24px 20px;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow .17s, transform .18s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 30px rgba(36,73,109,0.13), 0 1.5px 6px 0px var(--bz-accent);
  transform: translateY(-3px) scale(1.03);
}
.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;
  background: var(--bz-white);
  box-shadow: 0 3px 18px rgba(36,73,109,.13);
  border-radius: var(--bz-radius);
  padding: 20px;
  margin-bottom: 20px;
  border-left: 6px solid var(--bz-accent);
  min-width: 270px;
  max-width: 600px;
  flex: 1 1 290px;
  transition: box-shadow .19s;
  font-size: 1.1rem;
}
.testimonial-card p {
  color: var(--bz-primary);
  font-size: 1.07rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}
.testimonial-card strong {
  color: var(--bz-primary);
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 10px 30px rgba(255,211,78,.16);
  border-left: 8px solid var(--bz-primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 0;
}
.text-section {
  background: var(--bz-white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1.5px 7px rgba(36,73,109,.07);
}

/* === FOOTER === */
footer {
  background: var(--bz-primary);
  color: var(--bz-white);
  padding: 42px 0 20px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--bz-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.19s, color 0.16s;
  padding-bottom: 2px;
}
footer nav a:hover,
footer nav a:focus {
  border-bottom: 2px solid var(--bz-accent);
  color: var(--bz-white);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 20px 0;
  align-items: center;
  color: var(--bz-accent);
  font-size: 1.08rem;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 8px;
}
footer img {
  height: 34px;
}
footer small {
  color: #b9c2ce;
  margin-top: 12px;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--bz-primary);
  color: var(--bz-white);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px 15px 23px 15px;
  box-shadow: 0 -4px 16px rgba(36,73,109,0.08);
  z-index: 99;
  font-size: 1rem;
  animation: banner-fade-in 0.44s;
}
@keyframes banner-fade-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-left: 16px;
}
.cookie-banner .btn-primary, .cookie-banner .btn-secondary {
  padding: 10px 24px;
  font-size: 1rem;
  border-radius: 6px;
}
.cookie-banner .btn-secondary {
  background: var(--bz-white);
  color: var(--bz-primary);
  border: 1.5px solid var(--bz-accent);
  font-weight: 600;
  transition: background 0.13s, color 0.13s, border .16s;
}
.cookie-banner .btn-secondary:hover {
  background: var(--bz-accent);
  color: var(--bz-primary);
  border-color: var(--bz-primary);
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,73,109,0.28);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--bz-white);
  border-radius: var(--bz-radius);
  box-shadow: 0 8px 40px rgba(36,73,109,.15);
  padding: 45px 26px 33px 26px;
  min-width: 320px;
  max-width: 420px;
  color: var(--bz-primary);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translateY(36px);
  opacity: 0;
  transition: transform .24s, opacity .22s;
}
.cookie-modal-overlay.open .cookie-modal {
  transform: translateY(0);
  opacity: 1;
}
.cookie-modal h2 {
  color: var(--bz-primary);
  margin-bottom: 6px;
  font-size: 1.12rem;
  font-weight: 700;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bz-secondary);
  padding: 13px 12px;
  border-radius: 7px;
  margin-bottom: 10px;
}
.cookie-modal .btn-primary {
  margin-top: 7px;
  width: 100%;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 19px;
  color: var(--bz-grey);
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--bz-accent);
}

/* Cookie toggle switches */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #c6d7ef;
  border-radius: 22px;
  transition: background 0.22s;
}
.switch input:checked + .slider {
  background: var(--bz-accent);
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: var(--bz-white);
  border-radius: 50%;
  transition: transform .22s;
  box-shadow: 0 1.5px 4px rgba(36,73,109,.12);
}
.switch input:checked + .slider:before {
  transform: translateX(22px);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1020px) {
  .container {
    max-width: 98vw;
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .card, .testimonial-card {
    min-width: 220px;
    max-width: 94vw;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.39rem; }
  .container, .section {
    padding-left: 12px;
    padding-right: 12px;
  }
  .section {
    padding: 26px 8px;
  }
  .content-grid, .text-image-section, .card-container, .footer-contact {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .testimonial-card, .card {
    min-width: 150px;
    max-width: 97vw;
    flex: 1 1 100%;
  }
  footer .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    gap: 14px;
  }
}
@media (max-width: 480px) {
  body {
    font-size: 0.97rem;
  }
  .footer-contact {
    gap: 14px;
    font-size: 0.95rem;
  }
}

/* === GEOMETRIC STRUCTURED DECORATIVE STYLES === */
.section, .card, .testimonial-card, .cookie-modal {
  box-shadow: 0 4px 16px rgba(36,73,109,0.06), 0 0.5px 3.5px var(--bz-accent);
  border-radius: 18px 46px 13px 35px;
  border-bottom: 3.5px solid var(--bz-accent);
  position: relative;
}
header, footer, .cookie-banner, .cookie-modal {
  border-radius: 0 0 16px 16px;
}
@media (max-width: 1020px) {
  .section, .card, .testimonial-card, .cookie-modal {
    border-radius: 13px 25px 10px 15px;
  }
  header, footer, .cookie-banner, .cookie-modal {
    border-radius: 0 0 11px 11px;
  }
}

/* === MICRO-INTERACTIONS & HOVER EFFECTS === */
.card, .testimonial-card, .btn-primary, .btn-secondary {
  transition: box-shadow .17s, transform .17s, background 0.17s, color 0.15s;
}
.card:active, .testimonial-card:active {
  transform: scale(0.99);
  box-shadow: 0 2.5px 10px rgba(36,73,109,0.11);
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.97);
}
nav a:focus, .mobile-nav a:focus {
  outline: 2.5px solid var(--bz-accent);
  border-radius: 3px;
}

/* === VISUAL SEPARATORS === */
div:not(.card):not(.testimonial-card):not(.cookie-modal)  > ul > li:not(:last-child),  
div.text-section > ul > li:not(:last-child),  
.feature-item:not(:last-child) {
  border-bottom: 1.5px solid var(--bz-secondary);
  margin-bottom: 7px;
  padding-bottom: 7px;
}

/* === FOCUS STYLES FOR ACCESSIBILITY === */
.btn-primary:focus, .btn-secondary:focus, .cookie-modal-close:focus,
.mobile-menu-close:focus, .mobile-menu-toggle:focus {
  outline: 2.5px solid var(--bz-accent);
  outline-offset: 1px;
}

/* === SELECTION COLOR === */
::selection { background: var(--bz-accent); color: var(--bz-primary); }

/* === FORM (if present, for newsletter or contact) === */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1.7px solid var(--bz-secondary);
  margin-bottom: 15px;
  background: #f5f7fa;
  color: var(--bz-primary);
  box-shadow: none;
  width: 100%;
  font-size: 1rem;
  transition: border 0.17s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--bz-accent);
}
label {
  margin-bottom: 7px;
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--bz-primary);
  font-size: 1.04rem;
}

/* === NESTED FLEX & GEOMETRIC UTILITIES === */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  align-items: flex-start;
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
/* spacing between all content blocks */
.card, .testimonial-card, .feature-item, .section, .content-wrapper, .card-container {
  margin-bottom: 20px;
}

/* === Z-INDEX MANAGEMENT === */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay { z-index:99; }
footer { z-index:5; }
main { z-index:8; }

/* === NO ABSOLUTE POSITIONING FOR CONTENT === */
/* Only used for .cookie-modal-close which is a close button, not content */

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