/* RESET & BASE TYPOGRAPHY */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #294156;
  background: #fff;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
ul, ol { padding-left: 24px; margin-bottom: 24px; }
ul:last-child, ol:last-child { margin-bottom: 0; }
li { margin-bottom: 12px; }
a {
  color: #294156;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}
a:hover, a:focus {
  color: #8F5B2C;
}
section { margin-bottom: 60px; padding: 40px 20px; background: #fff; }

/* TYPOGRAPHY SCALE */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 16px;
}
h4, .h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}
p {
  margin-bottom: 18px;
  font-size: 1rem;
  color: #293d4d;
}
strong { font-weight: 600; }

/* CONTAINERS & WRAPPERS */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
}

/* FLEX LAYOUT UTILS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(41,65,86,0.06);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 4px 20px rgba(41,65,86,0.10);
  transform: translateY(-2px) scale(1.014);
}
.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: #F6E7CF;
  color: #294156;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(41,65,86,0.04);
  flex-direction: column;
  font-size: 1.08rem;
  max-width: 540px;
  transition: box-shadow 0.2s, background 0.2s;
}
.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.07em;
  color: #294156;
  margin-bottom: 12px;
  quotes: none;
}
.testimonial-card strong {
  color: #8F5B2C;
}
.testimonial-card:hover {
  box-shadow: 0 4px 18px rgba(41,65,86,0.15);
  background: #fff7e6;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HEADER NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(41,65,86,0.06);
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
header nav img {
  height: 42px;
  margin-right: 20px;
}
header .cta-btn {
  margin-left: auto;
}

/* CTA BUTTONS */
.cta-btn, .cookie-banner .btn, .cookie-modal .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: #294156;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  margin-top: 6px;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(41,65,86,0.10);
  transition: background 0.18s, color 0.18s, transform 0.18s;
  text-decoration: none;
  outline: none;
  letter-spacing: .02em;
}
.cta-btn:hover, .cta-btn:focus, .cookie-banner .btn:hover, .cookie-banner .btn:focus, .cookie-modal .btn:hover, .cookie-modal .btn:focus {
  background: #8F5B2C;
  color: #fff;
  transform: translateY(-1px) scale(1.022);
}

/* BUTTON VARIANTS: accept, reject, settings */
.cookie-banner .btn.accept, .cookie-modal .btn.accept {
  background: #294156;
  color: #fff;
}
.cookie-banner .btn.reject, .cookie-modal .btn.reject {
  background: #8F5B2C;
  color: #fff;
}
.cookie-banner .btn.settings, .cookie-modal .btn.settings {
  background: transparent;
  border: 2px solid #294156;
  color: #294156;
}
.cookie-banner .btn.settings:hover, .cookie-modal .btn.settings:hover {
  background: #294156;
  color: #fff;
}

/* FOOTER */
footer {
  background: #f7f7fa;
  padding: 40px 0 10px 0;
  font-size: 0.97em;
  color: #294156;
  box-shadow: 0 -2px 10px rgba(41,65,86,0.03);
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
footer img {
  height: 36px;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
footer nav a {
  color: #294156;
  font-size: 1em;
  opacity: 0.88;
  transition: color .15s, opacity .15s;
}
footer nav a:hover, footer nav a:focus {
  color: #8F5B2C;
  opacity: 1;
}
footer .contact-details p {
  color: #555d6a;
  font-size: .97em;
  margin-bottom: 4px;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  font-size: 2.25rem;
  border: none;
  color: #294156;
  margin-left: auto;
  cursor: pointer;
  padding: 10px;
  transition: color .18s, background .18s;
  z-index: 1002;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #8F5B2C;
  background: #f2f2f5;
  border-radius: 6px;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(249, 247, 243, 0.98);
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.7,.15,.3,.9);
  z-index: 1200;
  box-shadow: 2px 0 12px rgba(41,65,86,0.12);
  display: flex;
  flex-direction: column;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #294156;
  margin: 24px 24px 0 0;
  padding: 4px 12px;
  cursor: pointer;
  transition: color .18s, background .18s;
  z-index: 1202;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #8F5B2C;
  background: #ede3d5;
  border-radius: 50%;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 44px 0 0 42px;
}
.mobile-nav a {
  color: #294156;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.32rem;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid #efedeb;
  width: fit-content;
  transition: color .16s, background .12s;
  border-radius: 4px;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #8F5B2C;
  background: #f1e3cd;
  outline: none;
}

/* Spacing and Patterns from BRIEF */
.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; }

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #294156;
  box-shadow: 0 -2px 18px rgba(41,65,86,0.08);
  padding: 24px 10px 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 1999;
  font-size: 1rem;
  animation: cookieSlideIn 0.38s cubic-bezier(.7,.15,.3,.90);
}
@keyframes cookieSlideIn {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner .cookie-banner-content {
  max-width: 760px;
  text-align: center;
  margin-bottom: 12px;
  color: #294156;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-banner .btn {
  min-width: 122px;
  margin-bottom: 0;
}

/* COOKIE CONSENT MODAL */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top:0; bottom:0;
  width: 100vw;
  height: 100vh;
  background: rgba(41,65,86,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
  animation: fadeInModal 0.28s cubic-bezier(.5,.2,.5,.9);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 36px rgba(41,65,86,0.13);
  padding: 34px 22px 26px 22px;
  min-width: 330px;
  max-width: 95vw;
  max-height: 88vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.16rem;
  margin-bottom: 7px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
}
.cookie-modal .category-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}
.cookie-modal .category-row label {
  padding-left: 4px;
  font-weight: 500;
}
.cookie-modal .toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #e1e5ef;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .toggle:checked {
  background: #294156;
}
.cookie-modal .toggle::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.19s;
}
.cookie-modal .toggle:checked::before {
  left: 18px;
  background: #8F5B2C;
}
.cookie-modal .btns-modal {
  display: flex;
  gap: 18px;
  margin-top: 10px;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 16px;
  top: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #294156;
  cursor: pointer;
  transition: color .14s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #8F5B2C;
}

/* FORMS - (if present) */
input, textarea, select {
  font-family: inherit;
  font-size: 1em;
  outline: none;
  border: 1px solid #e0e5ea;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: #fafbfc;
  color: #294156;
  transition: border .16s, box-shadow .18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #8F5B2C;
  box-shadow: 0 0 0 2px #F6E7CF;
}
label {
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

/* ICONS */
.content-wrapper img[src*="/icons/"] {
  width: 48px;
  height: 48px;
  filter: grayscale(0.2) contrast(0.97) brightness(0.97);
}
.content-wrapper img[src*="/logo-mark"] {
  width: 52px;
  height: 52px;
}

/* TABLES (generic styling) */
table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 1em; }
th, td { padding: 14px; border-bottom: 1px solid #E1E5EF; text-align: left; }
th { background: #F6E7CF; color: #294156; font-weight: 600; }

/* LISTS */
ul, ol { margin-bottom: 18px; }
ul li, ol li {
  line-height: 1.7;
  margin-bottom: 9px;
}
ul li:last-child, ol li:last-child { margin-bottom: 0; }
ul {
  list-style-type: disc;
}
ol {
  list-style-type: decimal;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .container { max-width: 92vw; }
  h1, .h1 { font-size: 2.05rem; }
  h2, .h2 { font-size: 1.56rem; }
  .content-wrapper { gap: 18px; }
}
@media (max-width: 768px) {
  .container { padding-left: 8px; padding-right: 8px; }
  nav { gap: 10px; font-size: 1rem; }
  .content-wrapper { gap: 16px; }
  .text-section {
    max-width: 99vw;
    gap: 10px;
  }
  section { padding: 28px 6px; margin-bottom: 38px; }
  .testimonial-card { font-size: 1rem; max-width: 99vw; gap: 9px; padding: 14px; }
  .card {
    padding: 20px 11px;
    min-width: 90vw;
  }
  .content-grid { gap: 10px; }
}
@media (max-width: 760px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  .content-wrapper { gap: 9px; }
  .testimonial-card { font-size: .97rem; gap: 6px; padding: 10px; }
  footer { padding-top: 20px; }
}

@media (max-width: 850px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 500px) {
  h1, .h1 { font-size: 1.38rem; }
  h2, .h2 { font-size: 1.12rem; }
  section { padding: 14px 2px; margin-bottom: 18px; }
  footer .content-wrapper { gap: 8px; }
}

/* ACCESSIBILITY FOCUS RING */
:focus {
  outline: 2px solid #8F5B2C;
  outline-offset: 2px;
}

/* MICRO-INTERACTIONS AND SHADOWS */
.card, .testimonial-card, .cookie-modal-content {
  transition: box-shadow 0.19s, transform 0.18s, background 0.17s;
}

.card:focus-within, .testimonial-card:focus-within {
  box-shadow: 0 5px 24px rgba(41,65,86,0.15);
}

/* PREVENT OVERLAPPING: Minimum margin between elements */
.content-wrapper > *, .card-container > *, .content-grid > *, .text-section > *, .feature-item > * {
  margin-bottom: 20px;
}
.content-wrapper > *:last-child, .card-container > *:last-child, .content-grid > *:last-child, .text-section > *:last-child, .feature-item > *:last-child {
  margin-bottom: 0;
}

/* REMOVE ABSOLUTE FOR CONTENT - only decorative (see modal close) */

/* Z-INDEX LAYERS */
header { z-index: 50; }
.mobile-menu { z-index: 1200; }
.cookie-banner { z-index: 1999; }
.cookie-modal { z-index: 2001; }

/* HIDE UNNECESSARY SCROLL ON MOBILE MENU/COOKIES */
body.menu-open, body.cookie-modal-open {
  overflow: hidden;
}

/* MISC */
hr {
  border: 0;
  border-top: 1px solid #e6e2df;
  margin: 28px 0;
}

/* ENSURE .card, .testimonial-card, .feature-item, ETC., USE FLEXBOX */

/* [END OF CSS - compliant with strict flexbox/minimalist/directives] */
