/* 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: #F0F1F6;
  color: #23395B;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: #8B1E3F;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:hover {
  color: #23395B;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
li + li {
  margin-top: 8px;
}
button, input[type="button"], input[type="submit"] {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', "Georgia", serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #8B1E3F;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 22px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
}
p, li {
  font-size: 1rem;
  line-height: 1.7;
  color: #23395B;
}
strong {
  font-weight: 700;
  color: #8B1E3F;
}
cite {
  font-style: normal;
  color: #23395B;
  font-size: 0.98rem;
}

/* STRUCTURED LAYOUTS */
.container {
  max-width: 1160px;
  padding: 0 20px;
  margin: 0 auto;
  width: 100%;
}
.content-wrapper {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section { 
  margin-bottom: 60px; 
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 4px 24px 0 rgba(35,57,91,0.04);
}

.card-container { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 24px; 
}

.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 18px 0 rgba(35,57,91,0.06);
  padding: 32px 28px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 275px;
  flex: 1 1 300px;
  transition: box-shadow 0.25s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  box-shadow: 0 6px 32px rgba(35,57,91,0.16);
  transform: translateY(-4px) 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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
  background: #F0F1F6;
  border-left: 5px solid #8B1E3F;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(35,57,91,0.12);
  min-width: 275px;
  max-width: 650px;
}
.testimonial-card p {
  color: #23395B;
  font-size: 1.05rem;
  margin-bottom: 0;
}
.testimonial-card span {
  color: #8B1E3F;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.18rem;
  margin-top: -8px;
}
.testimonial-card cite {
  display: block;
  color: #23395B;
  font-size: 0.99rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 1px 16px rgba(35,57,91,0.06);
  position: relative;
  z-index: 100;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 18px 0;
  max-width: 1160px;
  margin: 0 auto;
}
header nav > a img {
  height: 40px;
  width: auto;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
  margin-left: 32px;
}
header nav ul li {
  margin: 0;
}
header nav ul li a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #23395B;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 6px;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: #F0F1F6;
  color: #8B1E3F;
}
header .cta {
  background: #8B1E3F;
  color: #fff;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.08rem;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  padding: 11px 26px;
  margin-left: 32px;
  transition: background 0.2s cubic-bezier(.4,0,.2,1), transform 0.12s;
  box-shadow: 0 2px 12px rgba(35,57,91,0.10);
  display: inline-block;
  letter-spacing: 0.02em;
  text-align: center;
}
header .cta:hover, header .cta:focus {
  background: #23395B;
  color: #fff;
  transform: scale(1.04);
}

/* BURGER MENU (Mobile) */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 20px;
  right: 24px;
  background: #8B1E3F;
  color: #fff;
  font-size: 2rem;
  border-radius: 8px;
  z-index: 110;
  height: 44px;
  width: 44px;
  justify-content: center;
  align-items: center;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #8B1E3F;
  outline-offset: 3px;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 8px 32px 0 rgba(35,57,91,0.19);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  padding: 36px 26px 16px 26px;
  gap: 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: #F0F1F6;
  color: #8B1E3F;
  border-radius: 7px;
  font-size: 2rem;
  padding: 5px 12px;
  transition: background 0.18s;
  margin-bottom: 9px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #8B1E3F;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  color: #23395B;
  background: #F0F1F6;
  border-radius: 9px;
  padding: 16px;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.16s;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #8B1E3F;
  color: #fff;
}

/* MAIN LAYOUT SPACING */
main {
  margin-top: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0px 2px 20px rgba(35,57,91,0.07);
}

/* BUTTONS & CTA */
.cta, .button {
  background: #8B1E3F;
  color: #fff;
  padding: 13px 34px;
  border: none;
  border-radius: 14px;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(35,57,91,0.13);
  transition: background 0.19s cubic-bezier(.4,0,.2,1), box-shadow 0.18s, transform 0.09s;
  margin-top: 12px;
  margin-bottom: 7px;
}
.cta:hover, .button:hover, .cta:focus, .button:focus {
  background: #23395B;
  color: #fff;
  box-shadow: 0 6px 20px rgba(35,57,91,0.16);
  transform: scale(1.045);
}

/* FOOTER */
footer {
  background: #23395B;
  color: #fff;
  padding: 40px 0 20px 0;
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  box-shadow: 0px 0px 18px 0 rgba(35,57,91,0.19);
}
footer .container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
footer img {
  height: 48px;
  margin-bottom: 12px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 12px 0;
  justify-content: center;
}
footer nav a {
  color: #fff;
  opacity: 0.77;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  padding: 6px 4px;
  border-radius: 6px;
  transition: background 0.14s, color 0.14s, opacity 0.15s;
}
footer nav a:hover, footer nav a:focus {
  background: #8B1E3F;
  opacity: 1;
}
footer .legal {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #F0F1F6;
  opacity: 0.75;
  text-align: center;
}

/* COOKIES BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  color: #23395B;
  border-top: 4px solid #8B1E3F;
  box-shadow: 0 -2px 16px rgba(35,57,91,0.09);
  z-index: 12000;
  padding: 26px 16px 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  animation: cookie-banner-slidein 0.5s cubic-bezier(.4,0,.2,1) 1;
}
@keyframes cookie-banner-slidein {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #23395B;
  font-size: 1rem;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.cookie-banner .cookie-btn {
  background: #8B1E3F;
  color: #fff;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  padding: 10px 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  transition: background 0.17s cubic-bezier(.4,0,.2,1);
}
.cookie-banner .cookie-btn.secondary {
  background: #F0F1F6;
  color: #23395B;
  border: 1px solid #8B1E3F;
}
.cookie-banner .cookie-btn.secondary:hover, 
.cookie-banner .cookie-btn.secondary:focus {
  background: #8B1E3F;
  color: #fff;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #23395B;
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  background: rgba(35,57,91,0.44);
  z-index: 13000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: cookie-modal-fade 0.25s ease-in 1;
}
@keyframes cookie-modal-fade {
  from {opacity:0;}
  to {opacity:1;}
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 36px 22px 30px 22px;
  max-width: 420px;
  min-width: 260px;
  box-shadow: 0 5px 28px rgba(35,57,91,0.19);
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
  position: relative;
}
.cookie-modal-content h3 {
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.cookie-category span {
  font-weight: 600;
  color: #8B1E3F;
  font-size: 1.05rem;
}
.cookie-toggle {
  appearance: none;
  width: 44px;
  height: 22px;
  border-radius: 30px;
  background: #F0F1F6;
  outline: none;
  position: relative;
  border: 2px solid #8B1E3F;
  transition: background 0.18s, border-color 0.18s;
}
.cookie-toggle:checked {
  background: #8B1E3F;
  border-color: #8B1E3F;
}
.cookie-toggle::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 1px;
  left: 1px;
  transition: left 0.18s cubic-bezier(.4,0,.2,1), background 0.18s;
  box-shadow: 0 1px 4px rgba(35,57,91,0.14);
}
.cookie-toggle:checked::before {
  left: 23px;
  background: #fff;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 22px;
  background: #F0F1F6;
  color: #8B1E3F;
  border-radius: 8px;
  font-size: 1.5rem;
  padding: 4px 12px;
  cursor: pointer;
  border: none;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #8B1E3F;
  color: #fff;
}


/* GEOMETRIC STRUCTURED EXTRAS */
section, .card, .testimonial-card {
  border-radius: 16px 40px 16px 40px;
}
.card, .testimonial-card {
  border-top: 4px solid #8B1E3F;
  border-right: 7px solid #23395B;
}
section {
  border-radius: 32px 12px 32px 12px;
}
.container, .content-wrapper {
  border-radius: 0;
}

/* VISUAL ELEMENTS */
ul li::marker {
  color: #8B1E3F;
  font-size: 1.1em;
  font-weight: bold;
}

/* UTILITIES */
.m-0 { margin: 0 !important; }
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mt-3 { margin-top: 24px !important; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
  }
  header nav {
    max-width: 100vw;
  }
}
@media (max-width: 900px) {
  header nav ul {
    gap: 19px;
    margin-left: 10px;
  }
  .section, section {
    padding: 32px 6px;
    margin-bottom: 42px;
  }
}
@media (max-width: 768px) {

  header nav ul,
  header .cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    max-width: 100vw;
    padding: 0 1vw;
  }
  .content-wrapper {
    padding: 0;
    gap: 16px;
  }
  .card-container,
  .content-grid { 
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 100vw;
    padding: 16px 8px;
  }
  section {
    margin-bottom: 34px;
    padding: 24px 3vw;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  footer .content-wrapper {
    gap: 9px;
  }
  footer nav {
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.98rem;
  }
}

@media (max-width: 500px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.21rem;
  }
  .section, section {
    padding: 11px 1vw;
    border-radius: 16px 10px 16px 10px;
  }
  .testimonial-card, .card {
    min-width: 90vw;
    padding: 10px 4vw;
    border-radius: 10px 14px 10px 14px;
  }
}

/* MICRO-INTERACTIONS & TRANSITIONS */
section, .card, .testimonial-card, .cta, .button {
  transition: box-shadow 0.24s cubic-bezier(.4,0,.2,1), background 0.18s, border-radius 0.18s;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 9px;
  background: #F0F1F6;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: #8B1E3F;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #23395B;
}

/* FOCUS STATES */
a:focus, .cta:focus, .button:focus, .mobile-menu-close:focus {
  outline: 3px solid #8B1E3F;
  outline-offset: 1px;
}

/* Hide outline when mouse clicking (but keep for keyboard) */
:focus:not(:focus-visible) {
  outline: none;
}

/* SELECTED, ACTIVE STATES (for accessibility if needed) */
.mobile-nav a.active, header nav ul li a.active, footer nav a.active {
  background: #8B1E3F;
  color: #fff;
  opacity: 1;
}

/* COMPLIANCE: NO grid, columns, absolute for content */
/* All layouts are flexbox only! */