/* =====================
   CSS RESET & BASE
===================== */
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;
  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;
  background: #F6F6F6;
  color: #243752;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #243752;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #DEB967;
  outline: none;
}
ul, ol {
  list-style-position: inside;
  margin-left: 0.5em;
}

/* =====================
   TYPOGRAPHY & SCALE
===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #243752;
}
h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 18px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 12px; }

p, li, dt, dd {
  font-size: 1rem;
  line-height: 1.7;
  color: #364860;
  margin-bottom: 10px;
}
strong {
  color: #243752;
  font-weight: 700;
}
.text-section p:last-child, .text-section li:last-child { margin-bottom: 0; }
.text-section { margin-bottom: 20px; }

/* =====================
   CONTAINERS
===================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =====================
   NAVIGATION - DESKTOP
===================== */
header {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0; left: 0; width: 100%;
  z-index: 99;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  height: 74px;
  min-height: 60px;
  justify-content: flex-start;
}
.main-nav img {
  height: 38px;
  width: auto;
  margin-right: 28px;
}
.main-nav a:not(.cta-button) {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #243752;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:not(.cta-button):hover {
  background: #F6F6F6;
  color: #DEB967;
}
.cta-button {
  background: #243752;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  margin-left: 12px;
  display: inline-block;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 rgba(36,55,82,0.08);
}
.cta-button:hover, .cta-button:focus {
  background: #DEB967;
  color: #243752;
  box-shadow: 0 4px 18px 0 rgba(36,55,82,0.14);
}

/* ==========================
   MOBILE NAVIGATION (Burger)
========================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  color: #243752;
  position: absolute;
  top: 14px;
  right: 22px;
  cursor: pointer;
  z-index: 104;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #DEB967;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  position: fixed;
  top: 0;
  right: -100vw;
  width: 100vw;
  height: 100vh;
  z-index: 110;
  transition: transform 0.35s cubic-bezier(.77,0,.18,1), right 0s 0.35s;
  box-shadow: -2px 0 24px 0 rgba(36,55,82,0.10);
  pointer-events: none;
}
.mobile-menu.open {
  right: 0;
  transform: translateX(-100vw);
  pointer-events: all;
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #243752;
  padding: 18px 24px 10px 0;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 112;
}
.mobile-menu-close:focus {
  outline: 2px solid #DEB967;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 24px 0 36px;
  gap: 18px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  color: #243752;
  font-weight: 500;
  padding: 10px 0;
  transition: color 0.17s, background 0.17s;
  border-radius: 7px;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #DEB967;
  background: #F6F6F6;
}

/* =====================
   SECTIONS & FLEX LAYOUTS
===================== */
section {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 24px 0 rgba(36,55,82,0.04);
}
.section { /* for legacy/optional use */
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(36,55,82,0.09);
  padding: 28px 18px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  min-width: 240px;
  transition: box-shadow 0.17s, transform 0.17s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(36,55,82,0.13);
  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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FAFBFC;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(36,55,82,0.08);
  margin-bottom: 20px;
  border-left: 4px solid #DEB967;
  flex: 1 1 260px;
  min-width: 220px;
}
.testimonial-card p {
  color: #243752;
  font-size: 1rem;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 0.99rem;
  color: #364860;
  font-weight: 500;
}
.feature-item,
.features-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 8px;
  font-size: 1rem;
}

/* =====================
   FORMS & TABLES
===================== */
table {
  width: 100%;
  margin-bottom: 18px;
  background: #F6F6F6;
  border-radius: 8px;
  border-collapse: collapse;
  overflow: hidden;
  font-size: 1rem;
}
table th, table td {
  padding: 12px 10px;
  text-align: left;
}
table th {
  background: #243752;
  color: #fff;
  font-weight: 600;
}
table tr:nth-child(even) td {
  background: #F9F9FA;
}
table tr:nth-child(odd) td {
  background: #F6F6F6;
}
table td {
  color: #364860;
  border-bottom: 1px solid #e5e9f1;
}
table tr:last-child td {
  border-bottom: none;
}
dl, dt, dd {
  margin-bottom: 10px;
}
dt {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #243752;
  margin-bottom: 5px;
}
dd {
  margin-left: 0;
  color: #364860;
}

/* =====================
   FOOTER
===================== */
footer {
  background: #243752;
  color: #fff;
  padding: 40px 0 22px 0;
  margin-top: 64px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  box-shadow: 0 -1px 16px 0 rgba(36,55,82,0.10);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 16px;
  transition: color 0.18s, background 0.18s;
  border-radius: 5px;
}
footer nav a:hover, footer nav a:focus {
  color: #DEB967;
  background: rgba(255,255,255,0.05);
}
footer .copyright {
  text-align: center;
  color: #C4C8D2;
  font-size: 0.98rem;
  margin-top: 6px;
}
footer .text-section {
  color: #bee4fc;
  text-align: center;
  margin-bottom: 12px;
}
footer .social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
}
footer .social-links a img {
  height: 26px;
  width: 26px;
  filter: grayscale(60%) brightness(1.3);
  transition: filter 0.19s;
}
footer .social-links a:hover img {
  filter: none;
}

/* =====================
   COOKIE CONSENT BANNER
====================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #243752;
  color: #fff;
  box-shadow: 0 -2px 16px 0 rgba(36,55,82,0.16);
  padding: 18px 20px 18px 24px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  animation: cookie-slide-in 0.4s cubic-bezier(.77,0,.18,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p { color: #fff; margin-bottom: 0; }
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.cookie-banner button, .cookie-banner .cookie-settings-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 21px;
  border: none;
  cursor: pointer;
  background: #fff;
  color: #243752;
  font-weight: 600;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 5px rgba(36,55,82,0.10);
}
.cookie-banner button:hover,
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner button:focus {
  background: #DEB967;
  color: #243752;
}
.cookie-banner .cookie-reject {
  background: none;
  border: 1.5px solid #fff;
  color: #fff;
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #fff;
  color: #243752;
}
/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(36,55,82,0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 201;
  animation: cookie-modal-fade-in 0.25s cubic-bezier(.77,0,.18,1);
}
@keyframes cookie-modal-fade-in { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: #fff;
  color: #243752;
  border-radius: 16px;
  max-width: 410px;
  width: 92vw;
  padding: 28px 26px 22px 26px;
  box-shadow: 0 8px 40px 0 rgba(36,55,82,0.17);
  position: relative;
  display: flex; flex-direction: column; gap: 20px;
  animation: cookie-modal-slide-in 0.28s cubic-bezier(.77,0,.18,1);
}
@keyframes cookie-modal-slide-in { from {transform: translateY(32px); opacity: 0;} to {transform: translateY(0); opacity: 1;} }
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px;
}
.cookie-modal .cookie-category input[type=checkbox]{
  accent-color: #243752;
  margin-right: 4px;
 }
.cookie-modal .cookie-category label {
  font-weight: 600; cursor: pointer;
}
.cookie-modal .essential { opacity: 0.7; }
.cookie-modal .modal-btn-group {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 4px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #243752;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal .close-cookie-modal:hover {
  color: #DEB967;
}

/* =====================
   RESPONSIVE STYLES
===================== */
@media (max-width: 1090px) {
  .main-nav, .container {
    max-width: 960px;
  }
}
@media (max-width: 900px) {
  .main-nav, .container {
    max-width: 98vw;
  }
  section, .section {
    padding: 32px 8px;
  }
}
@media (max-width: 830px) {
  .main-nav {
    gap: 18px;
    padding: 0 10px;
  }
  header {
    min-height: 54px;
  }
  .footer {
    padding: 30px 0 15px 0;
  }
}
@media (max-width: 768px) {
  html { font-size: 15.5px; }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  section, .section {
    padding: 22px 4vw;
    margin-bottom: 36px;
    border-radius: 10px;
  }
  .content-grid,
  .card-container,
  .card-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 580px) {
  html { font-size: 14px; }
  .container {
    padding: 0 3vw;
  }
  section, .section {
    padding: 13px 2vw;
    margin-bottom: 28px;
  }
  .card {
    padding: 13px 8px;
  }
  footer {
    padding: 22px 0 8px 0;
    border-radius: 0;
  }
}

/* =====================
   SHADOWS, BORDERS, BACKGROUNDS
===================== */
.card, .testimonial-card {
  box-shadow: 0 1.5px 10px 0 rgba(36,55,82,0.08);
  background: #fff;
}
section {
  box-shadow: 0 2px 22px 0 rgba(36,55,82,0.05);
  border: 1px solid #e4e8ef;
}

/* =====================
   BUTTONS, LINKS, HOVER/FOCUS
===================== */
button, .cta-button, input[type="submit"] {
  outline: none;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
button:focus, .cta-button:focus {
  box-shadow: 0 0 0 2.5px #DEB967;
}
a:active {
  color: #DEB967;
}

/* ============
   UTILITIES
============ */
.gap-top-30 { margin-top: 30px !important; }
.gap-btm-30 { margin-bottom: 30px !important; }
.text-center { text-align: center; }
.text-section {
  font-size: 1rem;
  color: #364860;
}

/* ===============
   MICRO-ANIMATIONS
=============== */
.cta-button, .cookie-banner button, .cookie-modal button {
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.13s;
}
.card, .testimonial-card {
  transition: box-shadow 0.16s, transform 0.13s;
}
.card:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* ===============
   ACCESSIBILITY
=============== */
a:focus-visible, button:focus-visible, .cta-button:focus-visible {
  outline: 2px solid #DEB967;
  outline-offset: 3px;
}

/* ===============
   PRINT STYLES
=============== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  section { box-shadow: none; border: none; }
}