/* 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;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  background: #F2F4F8;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #223046;
  background: #F2F4F8;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #244365;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E39A36;
  outline: none;
}

ul, ol {
  list-style: none;
  padding: 0;
}

strong {
  font-weight: 700;
}

/* TYPOGRAPHY */
h1, h2, h3, .display {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #244365;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.subheadline {
  font-size: 1.125rem;
  color: #5A6F88;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.1rem;
  }
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  border-bottom: 1px solid #E4E9F0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(36,67,101,0.04);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 72px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  color: #244365;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
header nav a:hover,
header nav a:focus {
  background: #F2F4F8;
  color: #E39A36;
}

.button-primary {
  background: #244365;
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 10px 34px;
  border-radius: 28px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(36,67,101,0.07);
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  display: inline-block;
  outline: none;
}
.button-primary:hover, .button-primary:focus {
  background: #E39A36;
  color: #244365;
  box-shadow: 0 5px 18px rgba(36,67,101,0.16);
}

/* MOBILE HEADER NAVIGATION */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #244365;
  cursor: pointer;
  display: none;
  margin-left: 10px;
  z-index: 120;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover {
  background: #E4E9F0;
}

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 80vw;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 32px 0 rgba(36,67,101,0.17);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.82,.14,.42,1);
  display: flex;
  flex-direction: column;
  padding: 36px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #244365;
  align-self: flex-end;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px 8px;
  border-radius: 6px;
}
.mobile-menu-close:hover {
  color: #E39A36;
  background: #F2F4F8;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  color: #244365;
  padding: 10px 0;
  font-size: 1.125rem;
  border-radius: 7px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F2F4F8;
  color: #E39A36;
}

@media (max-width: 1100px) {
  header .container nav, header .container .button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1101px) {
  .mobile-menu {
    display: none !important;
  }
}

/* MAIN LAYOUT & SECTIONS */
main {
  min-height: 50vh;
}
section {
  background: #fff;
  margin-bottom: 60px;
  padding: 40px 0;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 36px;
    padding: 32px 0;
  }
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* FLEXBOX PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #F2F4F8;
  border-radius: 18px;
  padding: 28px 26px;
  margin-bottom: 20px;
  box-shadow: 0 2px 22px 0 rgba(36,67,101,0.05);
  flex: 1 1 320px;
  position: relative;
  transition: box-shadow 0.19s;
}
.card:hover {
  box-shadow: 0 6px 28px 0 rgba(36,67,101,0.14);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
  width: 100%;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #F2F4F8;
  color: #223046;
  padding: 20px 26px;
  border-radius: 16px;
  box-shadow: 0 2px 15px rgba(36,67,101,0.06);
  margin-bottom: 24px;
  min-width: 240px;
  max-width: 460px;
  margin-right: 24px;
}
@media (max-width: 800px) {
  .testimonial-card {
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* LISTS/THESE ICON SECTIONS */
.content-wrapper ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 0;
}
.content-wrapper ul li {
  background: #F2F4F8;
  border-radius: 16px;
  padding: 24px 18px 20px;
  min-width: 230px;
  flex: 1 1 270px;
  box-shadow: 0 2px 14px rgba(36, 67, 101, 0.046);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.21s;
}
.content-wrapper ul li:hover {
  box-shadow: 0 8px 28px rgba(227,154,54,0.10);
}
.content-wrapper ul li img {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}
.content-wrapper ul li h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

/* SPACING CONSISTENCY */
.content-wrapper > * + * {
  margin-top: 10px;
}

main .container > h2 {
  margin-bottom: 24px;
}

/* CARDS IN TESTIMONIALS */
section > .container > .content-wrapper {
  gap: 32px;
}
@media (min-width: 801px) {
  section > .container > .content-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .testimonial-card {
    flex: 1 1 32%;
    margin-bottom: 0;
  }
}

/* BUTTONS */
.button-secondary {
  background: #E39A36;
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 28px;
  border-radius: 28px;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  display: inline-block;
}
.button-secondary:hover, .button-secondary:focus {
  background: #244365;
  color: #fff;
}
.button-text {
  background: none;
  border: none;
  color: #244365;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 7px 12px;
  text-decoration: underline;
}
.button-text:hover {
  color: #E39A36;
}

/* FORMS */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 14px;
  border: 1px solid #DAE1EA;
  border-radius: 6px;
  background: #fff;
  transition: border 0.14s;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
  color: #244365;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #E39A36;
  outline: none;
}
label {
  display: block;
  font-weight: 600;
  color: #244365;
  margin-bottom: 6px;
}

/* FOOTER */
footer {
  background: #244365;
  color: #fff;
  padding: 32px 0 18px 0;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
footer nav a {
  color: #fff;
  font-weight: 500;
  opacity: 0.82;
  font-size: 1rem;
  padding: 4px 8px;
  transition: color 0.18s, opacity 0.16s;
}
footer nav a:hover,footer nav a:focus {
  color: #E39A36;
  opacity: 1;
}
footer .brand-info {
  display: flex;
  align-items: center;
  gap: 18px;
}
footer .brand-info img {
  width: 38px;
  height: 38px;
}
footer .brand-info p {
  margin: 0;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  footer .brand-info {
    gap: 12px;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #223046;
  padding: 20px 22px 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  box-shadow: 0 -2px 18px rgba(36,67,101,0.07);
  z-index: 5000;
  border-radius: 16px 16px 0 0;
  border-top: 1px solid #E4E9F0;
  max-width: 580px;
  margin: 0 auto;
  left: 0;
  right: 0;
  animation: cookie-slideup 0.45s cubic-bezier(.74,0,.26,1);
}
@keyframes cookie-slideup {
  0% { transform: translateY(60px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-message {
  flex: 1 1 auto;
  font-size: 1.06rem;
  line-height: 1.7;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.cookie-banner .button-primary, .cookie-banner .button-secondary {
  padding: 8px 22px;
  font-size: 1rem;
}
.cookie-banner .button-secondary {
  margin-left: 0;
  margin-top: 6px;
}
.cookie-banner .button-text {
  font-size: 0.95rem;
  color: #244365;
  margin-top: 2px;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 16px 8px 12px 8px;
    border-radius: 10px 10px 0 0;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-actions {
    align-items: stretch;
    gap: 8px;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(36,67,101, 0.22);
  z-index: 6800;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeinbg .3s;
}
@keyframes fadeinbg {
  from{ opacity: 0;} to{ opacity: 1;}
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  padding: 36px 30px 28px 30px;
  max-width: 420px;
  width: 92vw;
  box-shadow: 0 8px 39px rgba(36,67,101,0.15);
  z-index: 6900;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: popin .35s cubic-bezier(.76,0,.29,1.18);
}
@keyframes popin {
  from{transform: scale(0.93); opacity: 0;}
  to{transform: scale(1); opacity: 1;}
}
.cookie-modal h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #244365;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F2F4F8;
  border-radius: 10px;
  padding: 10px 15px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  color: #223046;
  font-weight: 500;
  margin: 0;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: #E39A36;
}
.cookie-modal .cookie-essential label {
  opacity: 0.6;
}
.cookie-modal .cookie-essential input[type="checkbox"]:disabled {
  opacity: 0.55;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

/* GENERAL UI ENHANCEMENTS */
::-webkit-input-placeholder { color: #A0AEC6; }
::-moz-placeholder { color: #A0AEC6; }
:-ms-input-placeholder { color: #A0AEC6; }
::placeholder { color: #A0AEC6; }

hr {
  border: 0;
  border-top: 1px solid #E4E9F0;
  margin: 38px 0;
}

/* UTILITIES */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.gap-20 { gap: 20px;}

/* RESPONSIVE LAYOUT*/
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .content-wrapper, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card-container {
    gap: 14px;
  }
  .card {
    padding: 20px 13px;
  }
  .content-wrapper ul {
    flex-direction: column;
    gap: 16px;
  }
  .content-wrapper ul li {
    min-width: unset;
    flex: 1 1 100%;
  }
}

/* SCROLLBARS (modern look) */
::-webkit-scrollbar { width: 9px; background: #E4E9F0; }
::-webkit-scrollbar-thumb { background: #C6CEDA; border-radius: 8px; }

/* MICRO-INTERACTIONS */
.button-primary, .button-secondary {
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
}
.card, .testimonial-card, footer, section, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.22s, background 0.22s;
}

/* ACCESSIBILITY FOCUS STATES */
a:focus, .button-primary:focus, .button-secondary:focus, .button-text:focus {
  outline: 2px solid #E39A36;
  outline-offset: 2px;
}

/* Hide mobile nav when not open */
.mobile-menu {
  display: flex;
}
.mobile-menu:not(.open) {
  pointer-events: none;
  visibility: hidden;
}

/* Z-INDEXES */
header { z-index: 100; }
.mobile-menu { z-index: 210; }
.cookie-banner { z-index: 5000; }
.cookie-modal-overlay { z-index: 6800; }

/* END OF STYLE */
