/* CSS RESET AND NORMALIZATION */
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;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #203153;
  background: #F7F8FA;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

address {
  font-style: normal;
  color: #203153;
}
a {
  color: #31478A;
  text-decoration: none;
  transition: color 0.16s;
  font-weight: 500;
}
a:hover, a:focus {
  color: #E8B93A;
  outline: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #31478A;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1.25;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  line-height: 1.3;
}
h4, h5, h6 {
  margin-bottom: 10px;
}
p, ul, ol {
  margin-bottom: 16px;
}

/* UTILITY CONTAINERS */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  box-sizing: border-box;
}

.content-wrapper {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(49,71,138,0.07);
  padding: 32px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .content-wrapper {
    padding: 48px 36px;
  }
}

/* HEADER STYLES */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(49,71,138,0.09);
  position: sticky;
  top: 0;
  z-index: 101;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
header nav a {
  padding: 6px 12px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 5px;
  transition: background 0.17s, color 0.17s;
}
header nav a.cta-button {
  background: #31478A;
  color: #fff;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(49,71,138,0.12);
  margin-left: 12px;
  transition: background 0.16s;
}
header nav a.cta-button:hover,
header nav a.cta-button:focus {
  background: #E8B93A;
  color: #31478A;
}

header .mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: #31478A;
  background: #F3F5F9;
  border-radius: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

/* MOBILE NAVIGATION */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(49,71,138,0.96);
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.7,.2,.2,1);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 24px 0 0 22px;
  background: #E8B93A;
  color: #31478A;
  font-size: 2.2rem;
  border-radius: 6px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  display: flex;
  border: none;
  transition: background 0.17s;
  z-index: 15;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #fff;
  color: #31478A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 42px 0 0 40px;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: #fff;
  padding: 10px 0;
  border-radius: 7px;
  transition: background 0.13s, color 0.13s;
  font-weight: 600;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #E8B93A;
  color: #31478A;
}

@media (max-width: 992px) {
  header nav {
    display: none;
  }
  header .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu {
    display: flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
  header nav {
    display: flex !important;
  }
}

/* HERO SECTIONS */
.hero {
  background: #31478A;
  color: #fff;
  width: 100%;
  padding: 48px 0 32px 0;
  position: relative;
  margin-bottom: 40px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.hero h1 {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.18;
}
.hero p {
  font-size: 1.16rem;
  color: #e3e8f6;
  margin-bottom: 22px;
  max-width: 650px;
}
.hero .cta-button {
  margin-top: 6px;
  background: #E8B93A;
  color: #31478A;
  font-weight: 700;
  border-radius: 7px;
  font-size: 1.1rem;
  padding: 10px 28px;
  box-shadow: 0 2px 10px rgba(49,71,138,0.06);
  transition: background 0.17s, color 0.17s;
}
.hero .cta-button:hover,
.hero .cta-button:focus {
  background: #fff;
  color: #31478A;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
/* Spacing only, color set by context */

.cta {
  background: #31478A;
  color: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 3px 18px rgba(49,71,138,0.12);
  margin-bottom: 0;
  padding-top: 44px;
  padding-bottom: 44px;
}
.cta .container, .cta .content-wrapper {
  color: #fff;
}
.cta h2, .cta h1 {
  color: #E8B93A;
  font-size: 2rem;
}
.cta p {
  color: #e3e8f6;
}
.cta-button {
  display: inline-block;
  background: #E8B93A;
  color: #31478A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 7px;
  font-size: 1.1rem;
  margin-top: 12px;
  box-shadow: 0 2px 10px rgba(49,71,138,0.08);
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
}
.cta-button:hover, .cta-button:focus {
  background: #31478A;
  color: #fff;
  box-shadow: 0 4px 16px rgba(49,71,138,0.13);
}

/* CARD STYLES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 -12px 30px -12px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(49,71,138, 0.08);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  flex: 1 1 280px;
  min-width: 270px;
  max-width: calc(33% - 24px);
  transition: box-shadow 0.2s, transform 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.card:hover {
  box-shadow: 0 6px 20px rgba(49,71,138, 0.17);
  transform: translateY(-3px) scale(1.024);
  z-index: 2;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/****************************************
 * TESTIMONIAL, FEATURE & SPECIAL CARDS *
 ****************************************/

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 1.5px 7px rgba(49,71,138,0.09);
  margin-bottom: 20px;
  font-size: 1.1rem;
  margin-top: 18px;
  border-left: 5px solid #31478A;
}
.testimonial-card p {
  color: #203153;
  font-weight: 500;
  margin-bottom: 2px;
}
.testimonial-card span {
  font-size: 1rem;
  font-weight: 600;
  color: #31478A;
  opacity: 0.87;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f1f4fa;
  padding: 18px 16px;
  margin-bottom: 20px;
  border-radius: 10px;
}

/******************
 * FORMATTED LISTS
 ******************/
ul.bullet-list {
  margin-bottom: 18px;
  padding-left: 8px;
}
ul.bullet-list li::before {
  content: '\2022';
  color: #31478A;
  font-weight: bold;
  display: inline-block; 
  width: 1.45em;
  margin-left: -1.3em;
}
ul.bullet-list li {
  margin-bottom: 8px;
  font-size: 1.02rem;
  color: #31478A;
  font-weight: 500;
}

/*********************************
 * GENERAL SECTION SPACING RULES *
 *********************************/
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
section:last-child {
  margin-bottom: 0;
}
@media (max-width: 700px) {
  section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
}

/******************************
 * FOOTER STYLES
 ******************************/
footer {
  background: #25335b;
  color: #fff;
  width: 100%;
  padding: 32px 0 0 0;
  font-size: 0.98rem;
  border-top: 6px solid #E8B93A;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: flex-start;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 12px;
}
footer nav a {
  color: #E8B93A;
  font-weight: 500;
  transition: color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
}
.brand-contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: #e3e8f6;
  margin-bottom: 8px;
}
.brand-contact span img {
  width: 44px;
  height: auto;
  margin-right: 10px;
}
.social-media {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.social-media a img {
  width: 32px; height: 32px;
  filter: grayscale(30%);
  transition: filter 0.18s, transform 0.18s;
}
.social-media a:hover img, .social-media a:focus img {
  filter: grayscale(0%);
  transform: scale(1.08);
}
@media (min-width: 768px) {
  footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
  }
  .brand-contact {
    flex-direction: row;
  }
}

/**********************
 * GENERAL BUTTONS
 **********************/
button, .button {
  background: #31478A;
  color: #fff;
  padding: 10px 26px;
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(49,71,138,0.08);
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.15s;
}
button:hover, button:focus, .button:hover, .button:focus {
  background: #E8B93A;
  color: #31478A;
  box-shadow: 0 4px 20px rgba(49,71,138,0.13);
}

/**********************
 * FORMS (if present)
 **********************/
input, select, textarea {
  border: 1px solid #8EA2C6;
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
  font-size: 1rem;
  margin-bottom: 16px;
  background: #fff;
  color: #203153;
  font-family: 'Roboto', Arial, sans-serif;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #31478A;
  background: #f5f7fa;
}
label {
  font-weight: 500;
  color: #31478A;
}

/******************************************
 * RESPONSIVE FLEX CONTAINERS & SECTIONAL *
 ******************************************/
.features, .card-grid, .section-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .card {
    max-width: calc(50% - 24px);
  }
}
@media (max-width: 600px) {
  .card, .feature-item {
    min-width: 100%;
    max-width: 100%;
  }
}

/**************
 * HIGHLIGHTS *
 **************/
.highlight {
  color: #E8B93A;
  font-weight: bold;
}

/**********************
 * COOKIE CONSENT BAR *
 **********************/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 2000;
  background: #fff;
  color: #203153;
  box-shadow: 0 -2px 24px rgba(49,71,138, 0.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 18px 16px;
  gap: 12px;
  font-size: 1rem;
  transition: transform 0.23s, opacity 0.23s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-content {
  text-align: center;
  margin-bottom: 8px;
}
.cookie-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-button {
  padding: 8px 22px;
  border-radius: 6px;
  background: #31478A;
  color: #fff;
  font-weight: 600;
  border: none;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 1rem;
}
.cookie-button.accept {
  background: #E8B93A;
  color: #31478A;
}
.cookie-button.reject {
  background: #f3f5fa;
  color: #31478A;
}
.cookie-button.settings {
  background: #fff;
  color: #31478A;
  border: 1.5px solid #31478A;
}
.cookie-button:hover, .cookie-button:focus {
  background: #203153;
  color: #E8B93A;
}
.cookie-button.accept:hover, .cookie-button.accept:focus {
  background: #31478A;
  color: #fff;
}

/****************************
 * COOKIE MODAL PREFERENCE  *
 ****************************/
.cookie-modal {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(49,71,138, 0.40);
  z-index: 2100;
  opacity: 1;
  transition: opacity 0.24s;
  pointer-events: auto;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-inner {
  background: #fff;
  color: #203153;
  border-radius: 16px;
  padding: 34px 30px 30px 30px;
  width: 97vw;
  max-width: 410px;
  margin: 110px auto 0 auto;
  box-shadow: 0 10px 44px rgba(49,71,138, 0.22);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #E8B93A;
  color: #31478A;
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: none;
  z-index: 2;
}
.cookie-modal-close:hover,.cookie-modal-close:focus {
  background: #31478A;
  color: #fff;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  font-size: 1.02rem;
  margin-bottom: 11px;
}
.cookie-category label {
  color: #31478A;
  font-weight: 500;
  margin-right: 8px;
}
.cookie-toggle {
  width: 45px;
  height: 25px;
  border-radius: 13px;
  background: #E8B93A;
  position: relative;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-toggle input[type="checkbox"] {
  display: none;
}
.cookie-toggle-slider {
  position: absolute;
  top: 2.5px; left: 2.5px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.16s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 22px;
  background: #31478A;
}
.cookie-category.essential {
  opacity: 0.62;
}
.cookie-category.essential label {
  color: #8EA2C6;
  font-style: italic;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 16px;
}

/*******************************
 * ANIMATIONS/MICRO-INTERACTIONS
 *******************************/
.card, .content-wrapper, .cta, .hero, .testimonial-card, .feature-item {
  transition: box-shadow 0.2s, transform 0.17s, background 0.18s, color 0.18s;
}

/************************************
 * RESPONSIVE MEDIA QUERIES - FLEXBOX
 ************************************/
@media (max-width: 992px) {
  .container {
    max-width: 92vw;
    padding: 0 10px;
  }
  .content-wrapper {
    padding: 24px 8px;
  }
  .footer .brand-contact {
    flex-direction: column;
    gap: 7px;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 15px;
  }
  .hero h1 {
    font-size: 1.38rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .cta h2, .cta h1 {
    font-size: 1.11rem;
  }
  .cta-button {
    font-size: 0.97rem;
    padding: 8px 18px;
  }
  .testimonial-card, .feature-item, .card {
    padding: 16px 10px;
  }
  .cookie-modal-inner {
    padding: 20px 7px 17px 7px;
  }
}

/*************************************
 * ADDITIONAL ENSURED CLASS SELECTORS *
 *************************************/
.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;
}

/* Ensure no overlapping */
.card, .content-wrapper, section, .cta, .testimonial-card, .feature-item {
  margin-bottom: 20px;
  margin-top: 0;
}

/****** ACCESSIBILITY & FOCUS STYLES ******/
a:focus, .cta-button:focus, button:focus, input:focus, select:focus {
  outline: 2px solid #E8B93A;
  outline-offset: 2px;
}

/******************************
 * END OF STYLE.CSS *
 ******************************/
