/* ===================================================================
   RESET & BASELINE STYLES (normalize, box-sizing, typography)
=================================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Nunito', Arial, sans-serif;
  color: #1F355B;
  background: #fff;
  line-height: 1.65;
  font-size: 1rem;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #1F355B;
  text-decoration: none;
  transition: color 0.22s cubic-bezier(.4,0,.2,1);
}
a:hover,
a:focus {
  color: #F7C331;
  outline: none;
}
ul, ol {
  margin: 0 0 8px 0;
  padding-left: 2em;
}
li {
  margin-bottom: 8px;
  font-size: 1.05em;
}
strong {
  font-weight: 700;
}
/* ===================================================================
   TYPOGRAPHY & HEADINGS
=================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  color: #1F355B;
}
h1 { font-size: 2.6rem; line-height: 1.13; margin-bottom: 18px; }
h2 { font-size: 2rem;  margin-bottom: 14px; }
h3 { font-size: 1.44rem; }
h4 { font-size: 1.18rem; }
h5, h6 { font-size: 1rem; }
p {
  margin-bottom: 16px;
  font-size: 1.08rem;
  color: #263c61;
}
address {
  font-style: normal;
  color: #1F355B;
  font-size: 0.99rem;
  margin-top: 12px;
}
/* Accessibility: highlight with keyboard navigation */
a:focus-visible, button:focus-visible {
  outline: 2px solid #F7C331;
  outline-offset: 2px;
}
/* ===================================================================
   CONTAINER & LAYOUT STRUCTURE
=================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  padding-left: 24px;
  padding-right: 24px;
  margin-left: auto;
  margin-right: auto;
}
.content-wrapper {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(31,53,91,0.05), 0 1px 3px rgba(247,195,49,0.09);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Card Layouts (flex, gap) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: 0 3px 16px rgba(31,53,91,0.10);
  border-radius: 16px;
  padding: 30px 26px 24px 26px;
  min-width: 250px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.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;
  background: #fffefa;
  border-radius: 14px;
  padding: 18px 20px;
  min-width: 200px;
  box-shadow: 0 2px 8px rgba(31,53,91,0.07);
}

/* Testimonial Cards */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F7C331;
  color: #1F355B;
  padding: 20px 28px 22px 28px;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(31,53,91,0.09);
  font-size: 1.13rem;
  margin-bottom: 20px;
  position: relative;
  flex-wrap: wrap;
}
.testimonial-card p {
  color: #1F355B;
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: #fff;
  color: #1F355B;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.99rem;
}

/* Footer */
footer {
  background: #1F355B;
  color: #fff;
  padding: 46px 0 36px 0;
}
footer .container, footer nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer nav {
  gap: 32px;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.22s cubic-bezier(.4,0,.2,1);
}
footer nav a:hover { color: #F7C331; }
footer address { text-align: center; color: #fff; margin-top: 18px; font-size: 0.98rem; }

/* ===================================================================
   HEADER & NAVIGATION STYLES
=================================================================== */
header {
  background: #fff;
  border-bottom: 3px solid #F7C331;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(31,53,91,0.05);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 16px;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.22s, color 0.22s;
}
nav a.cta {
  background: #F7C331;
  color: #1F355B;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 1.08rem;
  box-shadow: 0 2px 6px rgba(31,53,91,0.11);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
  margin-left: 10px;
}
nav a.cta:hover {
  background: #1F355B;
  color: #F7C331;
}
nav a:hover, nav a:focus {
  background: #F7C33133;
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.4rem;
  line-height: 1;
  padding: 3px 11px 1px 11px;
  border-radius: 8px;
  color: #1F355B;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 910;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F7C331;
  color: #1F355B;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 3px 42px rgba(31,53,91,0.11);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-110vw);
  transition: transform 0.34s cubic-bezier(.45,.03,.4,.93);
  padding: 32px 28px 0 28px;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #1F355B;
  align-self: flex-end;
  margin-bottom: 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #F7C331;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
}
.mobile-nav a {
  color: #1F355B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
  padding: 15px 0 10px 0;
  border-radius: 6px;
  transition: background 0.22s, color 0.22s;
  background: none;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: #1F355B;
}
.mobile-nav a.cta {
  background: #F7C331;
  color: #1F355B;
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 24px;
  border-radius: 999px;
  margin-top: 12px;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(31,53,91,0.15);
}
.mobile-nav a.cta:hover {
  background: #1F355B;
  color: #F7C331;
}

/* ===================================================================
   BUTTONS & CTA STYLES
=================================================================== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  background: #F7C331;
  color: #1F355B;
  border: none;
  border-radius: 999px;
  padding: 14px 38px;
  font-size: 1.09rem;
  margin-top: 10px;
  letter-spacing: 0.045em;
  box-shadow: 0 2px 12px rgba(247,195,49,0.18);
  cursor: pointer;
  transition: background 0.23s, color 0.23s, box-shadow 0.24s;
  outline: none;
}
.cta:hover, .cta:focus {
  background: #1F355B;
  color: #F7C331;
  box-shadow: 0 5px 24px rgba(31,53,91,0.11);
}
button.cta {
  border: none;
  outline: none;
}

/* ===================================================================
   LISTS, TABLES, FORMS (minimal but consistent)
=================================================================== */
ul img, li img {
  width: 30px; height: 30px; object-fit: contain; margin-right: 10px; vertical-align: middle;
  display: inline-block;
}
ul li {
  display: flex;
  align-items: center;
  gap: 10px;
}

ol li {
  margin-left: 14px;
  list-style: decimal inside;
}
dt {
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 2px;
}
dd {
  margin-bottom: 10px;
  margin-left: 0;
}

/* ===================================================================
   COOKIE CONSENT BANNER + MODAL
=================================================================== */
.cookie-banner {
  position: fixed;
  z-index: 1100;
  left: 0; right: 0;
  bottom: 0;
  background: #fffdfa;
  box-shadow: 0 -2px 18px rgba(31,53,91,0.13);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 18px 18px 18px;
  gap: 16px;
  border-top: 3px solid #F7C331;
  opacity: 1;
  transition: opacity 0.3s cubic-bezier(.4,0,.2,1);
  font-size: 1.06rem;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  color: #1F355B;
  max-width: 500px;
  margin-bottom: 0;
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  background: #F7C331;
  color: #1F355B;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.99rem;
  margin-right: 6px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(247,195,49,0.18);
  outline: none;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: #1F355B;
  color: #F7C331;
  box-shadow: 0 4px 12px rgba(31,53,91,0.08);
}
.cookie-btn.settings {
  background: transparent;
  color: #1F355B;
  border: 1.8px solid #1F355B;
  box-shadow: none;
  padding: 10px 15px;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #F7C331;
  color: #1F355B;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  z-index: 1200;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(31,53,91,0.11);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s;
}
.cookie-modal.active {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 20px;
  max-width: 410px;
  min-width: 290px;
  padding: 38px 30px 26px 30px;
  box-shadow: 0 6px 32px rgba(31,53,91,0.20);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 2px;
  color: #1F355B;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 24px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F7C33122;
  padding: 10px 18px;
  border-radius: 10px;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.04rem;
  color: #1F355B;
  cursor: pointer;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #F7C331;
  border-radius: 8px;
}
.cookie-category .essential {
  font-weight: 700;
  color: #7889A1;
  font-size: 0.92rem;
}
.cookie-modal-actions {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
/* ===================================================================
   ANIMATIONS & MICRO-INTERACTIONS
=================================================================== */
.card, .cta, .testimonial-card, .feature-item, .cookie-btn {
  transition: box-shadow 0.22s cubic-bezier(.4,0,.2,1), transform 0.19s cubic-bezier(.4,0,.2,1);
}
.card:hover, .feature-item:hover, .testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(31,53,91,0.12);
  transform: translateY(-4px) scale(1.015);
}
.cta:active, .cookie-btn:active {
  transform: scale(0.97);
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS (mobile first)
=================================================================== */
@media (max-width: 1120px) {
  .container { max-width: 100vw; }
}
@media (max-width: 900px) {
  header .container {
    flex-wrap: wrap;
    gap: 8px;
  }
  nav { gap: 14px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }

  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.08rem; }

  .container {
    padding-left: 12px; padding-right: 12px;
  }
  .section {
    padding: 24px 7px;
    margin-bottom: 32px;
    border-radius: 12px;
  }
  .card {
    padding: 16px 12px 14px 12px;
    min-width: 170px;
    border-radius: 10px;
  }
  .testimonial-card { padding: 14px 12px; border-radius: 11px; font-size: 1rem; flex-direction: column; gap: 8px;}
  .text-image-section { flex-direction: column !important; gap: 18px; }
  .footer .container, footer nav { gap: 8px; }
  nav { display: none; }
  .mobile-menu-toggle { display: inline-block; }
}
@media (max-width: 570px) {
  .card-container, .content-grid {
    flex-direction: column !important;
    gap: 18px;
  }
  .section {
    padding: 11px 3vw;
    margin-bottom: 22px;
  }
  .testimonial-card {font-size: 0.97rem; }
  .card { min-width: 0; width: 100%;}
}

/* Show/hide navigation and mobile menu appropriately */
@media (max-width: 1000px) {
  nav { display: none; }
  .mobile-menu-toggle { display: inline-block; }
}
@media (min-width: 1000px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
  nav { display: flex !important; }
}

/* ===================================================================
   UTILITY & GEOMETRIC ELEMENTS: geometric shapes / accents
=================================================================== */
.section {
  position: relative;
  overflow: visible;
}
.section::before {
  content: '';
  position: absolute;
  top: -22px;
  left: -18px;
  width: 60px;
  height: 60px;
  background: #F7C33155;
  border-radius: 20px 30px 10px 40px;
  z-index: 0;
  opacity: 0.25;
  pointer-events: none;
}
.section:nth-child(2)::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 44px;
  height: 44px;
  background: #1F355B22;
  border-radius: 22px 45px 12px 5px;
  opacity: 0.19;
  pointer-events: none;
}
@media (max-width: 786px) {
  .section::before, .section::after {
    display: none;
  }
}

/* ===================================================================
   MISC: visuals, code, etc.
=================================================================== */
pre, code {
  font-family: 'Fira Mono', 'Consolas', 'Courier New', monospace;
  font-size: 0.98em;
  color: #1F355B;
  background: #F7C33133;
  padding: 3px 5px;
  border-radius: 5px;
}

/* Hide original scrollbars for cookie modal (if needed) */
.cookie-modal::-webkit-scrollbar {
  display: none;
}

/* ===================================================================
   ACCESSIBLE FOCUS, Z-INDEX GUARDRAILS
=================================================================== */
.mobile-menu, .cookie-modal, .cookie-banner {
  z-index: 1200;
}
.mobile-menu-toggle, .mobile-menu-close {
  z-index: 1300;
}

/* ===================================================================
   PRINT OPTIMIZE
=================================================================== */
@media print {
  header, footer, .cookie-banner, .cookie-modal, .mobile-menu { display: none !important;}
  main, section, .content-wrapper, .container { box-shadow: none !important; background: #fff !important; }
  body { background: #fff !important; }
}
