/* 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 {
  scroll-behavior: smooth;
  background: #F2F2F2;
}
body {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: #1B2233;
  background: linear-gradient(135deg, #F2F2F2 0%, #e9edf9 100%);
  min-height: 100vh;
  line-height: 1.6;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
}
a {
  color: #233661;
  text-decoration: none;
  transition: color 0.21s;
}
a:hover, a:focus {
  color: #EAB30D;
  outline: none;
}

/* Brand Fonts */
h1, h2, h3, h4, .cta-primary {
  font-family: 'Merriweather', serif;
}
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #233661;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: #233661;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #233661;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: #233661;
}
p, li, ul, ol, span, dd, dt, dl {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 1rem;
  color: #1B2233;
}
p.subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  color: #475584;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  align-items: flex-start;
}

/* SECTION MARGIN/PADDING */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
section:last-child {
  margin-bottom: 0;
}

/* Feature Grids, Cards, etc. */
.feature-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  justify-content: flex-start;
}
.feature-grid > div, .card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 3px 18px rgba(35,54,97,0.07),0 1.5px 6px rgba(35,54,97,0.03);
  flex: 1 1 280px;
  min-width: 240px;
  margin-bottom: 20px;
  transition: box-shadow 0.23s, transform 0.2s;
  position: relative;
}
.feature-grid > div:hover, .card:hover {
  box-shadow: 0 8px 30px rgba(35,54,97,0.13),0 3px 14px rgba(35,54,97,0.09);
  transform: translateY(-2px) scale(1.012);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tag {
  display: inline-block;
  background: #EAB30D;
  color: #fff;
  border-radius: 12px;
  font-size: 0.88rem;
  padding: 4px 16px;
  margin-top: 10px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.popular-tags {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* CTA Primary Button */
.cta-primary {
  display: inline-block;
  background: linear-gradient(92deg, #EAB30D 0%, #f7c74d 100%);
  color: #233661;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 28px;
  padding: 13px 32px;
  margin: 16px 0 0 0;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(234,179,13,0.12);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.25s, transform 0.18s, color 0.18s, box-shadow 0.25s;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(92deg, #233661 0%, #334c89 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 22px 0 rgba(35,54,97,0.13);
}

/* HEADER NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(35,54,97,0.09);
  position: sticky;
  top: 0;
  z-index: 25;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  min-height: 80px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a:not(.cta-primary) {
  font-size: 1rem;
  padding: 6px 0;
  font-weight: 500;
  transition: color 0.22s, background 0.16s;
}
.main-nav a.active {
  color: #EAB30D;
  border-bottom: 2.5px solid #EAB30D;
}
.main-nav .cta-primary {
  margin-left: 12px;
  box-shadow: 0 2px 6px rgba(234,179,13,0.12);
}
.main-nav a:hover, .main-nav a:focus {
  color: #EAB30D;
}
header img {
  max-height: 52px;
  width: auto;
  margin-right: 12px;
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  background: #F2F2F2;
  color: #233661;
  border: none;
  border-radius: 8px;
  font-size: 2.1rem;
  padding: 6px 14px;
  transition: background 0.18s, color 0.17s;
  cursor: pointer;
  z-index: 205;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #EAB30D;
  color: #fff;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(35, 54, 97, 0.97);
  transform: translateX(-105%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(0.68,0,-0.27,1) 0s, opacity 0.29s ease;
  z-index: 2000;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: #EAB30D;
  border: none;
  font-size: 2.15rem;
  align-self: flex-end;
  margin: 26px 24px 0 0;
  cursor: pointer;
  z-index: 2022;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  padding: 32px 40px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.33rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 12px 10px;
  width: 100%;
  transition: background 0.17s, color 0.17s, transform 0.15s;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #EAB30D;
  color: #233661;
  transform: scale(1.03);
}
.mobile-nav .cta-primary {
  background: #fff;
  color: #233661;
  margin-top: 10px;
  font-weight: 700;
}

/* MAIN STYLES & TYPOGRAPHY */
main {
  min-height: 60vh;
  background: none;
}
ul, ol {
  padding-left: 22px;
  margin-bottom: 14px;
  line-height: 1.9;
}
dt, dd {
  margin-bottom: 8px;
}
dt {
  font-weight: bold;
  margin-top: 12px;
  color: #233661;
}
dl {
  margin-bottom: 20px;
}

/* BUTTONS GENERIC */
button, .button, input[type="submit"] {
  font-family: 'Merriweather', serif;
  font-weight: 600;
  font-size: 1rem;
  background: #EAB30D;
  color: #233661;
  border: none;
  border-radius: 24px;
  padding: 11px 28px;
  margin: 0 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(234,179,13,0.09);
  transition: background 0.22s, color 0.17s, transform 0.17s;
}
button:hover, button:focus, .button:hover, .button:focus {
  background: #233661;
  color: #fff;
  transform: translateY(-1px) scale(1.03);
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #F2F2F2;
  color: #233661;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(35,54,97,0.04);
  font-size: 1.05rem;
  position: relative;
}
.testimonial-card p {
  color: #233661;
  font-weight: 600;
  font-size: 1.05rem;
}
.testimonial-card span {
  color: #7E8BA8;
  font-size: 0.98rem;
  font-style: italic;
  margin-left: 12px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin: 22px 0 0 0;
}
.testimonial-slider .testimonial-card {
  flex: 1 1 330px;
  min-width: 230px;
}

/* FEATURE ITEM */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FOOTER */
footer {
  background: linear-gradient(95deg,#233661 60%, #334c89 100%);
  color: #fff;
  padding: 0;
}
footer .container {
  padding: 0 20px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 42px 0 16px 0;
}
.footer-brand img {
  max-width: 90px;
  margin-bottom: 8px;
}
.footer-nav,
.footer-main-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-nav a,
.footer-main-nav a {
  color: #fff;
  opacity: .94;
  font-size: 0.98rem;
  margin-bottom: 2px;
  transition: color 0.2s, opacity 0.19s;
}
.footer-nav a:hover, .footer-nav a:focus,
.footer-main-nav a:hover, .footer-main-nav a:focus {
  color: #EAB30D;
  opacity: 1;
  text-decoration: underline;
}
.footer-contact p, .footer-contact a {
  color: #fff;
  font-size: 0.99rem;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: #EAB30D;
}
.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(35,54,97,0.14);
  margin: 0 5px;
  transition: background 0.18s, box-shadow 0.17s;
}
.footer-social a:hover, .footer-social a:focus {
  background: #EAB30D;
  box-shadow: 0 4px 14px rgba(234,179,13,0.12);
}
.footer-social img {
  width: 20px; height: 20px;
}
.copyright {
  flex-basis: 100%;
  text-align: left;
  margin-top: 18px;
  font-size: 0.9rem;
  opacity: .8;
}

/* Utility Classes, Spacing, Cards, Grid */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(35,54,97,0.04);
  padding: 24px 22px;
  transition: box-shadow 0.19s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px rgba(35,54,97,0.13);
  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;
}

/* FORM ELEMENTS */
input, textarea, select {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 1rem;
  color: #233661;
  border: 1.5px solid #C7CEDD;
  border-radius: 8px;
  padding: 12px;
  margin-top: 9px;
  background: #fff;
  transition: border 0.23s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #EAB30D;
  outline: none;
}

/* COOKIES CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 5000;
  background: #fffbe7;
  border-top: 2px solid #EAB30D;
  box-shadow: 0 -2px 16px rgba(35,54,97,0.07);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 22px 25px;
  gap: 18px;
  font-size: 0.99rem;
  color: #233661;
  transition: transform 0.23s, opacity 0.22s;
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner button,
.cookie-banner .cta-primary {
  font-size: 1rem;
  padding: 10px 20px;
  background: #233661;
  color: #fff;
  border-radius: 22px;
  border: none;
  margin: 0 5px;
  font-family: 'Merriweather', serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, transform 0.14s;
}
.cookie-banner button.cookie-settings {
  background: #EAB30D;
  color: #233661;
}
.cookie-banner button:hover,
.cookie-banner .cta-primary:hover {
  background: #EAB30D;
  color: #233661;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%) scale(0.97);
  min-width: 325px;
  width: 94vw;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 14px 54px 0 rgba(35,54,97,0.21);
  padding: 26px 25px 18px 25px;
  z-index: 5100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.20s cubic-bezier(0.67,0,0.33,1);
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h3 {
  font-size: 1.14rem;
  margin-bottom: 16px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 11px;
  margin-bottom: 12px;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: #233661;
}
.cookie-modal .cookie-toggle {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #C7CEDD;
  position: relative;
  display: inline-block;
  margin-left: 8px;
  transition: background 0.18s;
}
.cookie-modal .cookie-toggle input {
  display: none;
}
.cookie-modal .slider {
  background: #C7CEDD;
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 11px;
  transition: background 0.18s;
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(35,54,97,0.11);
  transition: transform 0.18s;
}
.cookie-modal .cookie-toggle input:checked + .slider {
  background: #EAB30D;
}
.cookie-modal .cookie-toggle input:checked + .slider:before {
  transform: translateX(18px);
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.cookie-modal .cookie-category.essential {
  opacity: .75;
}
.cookie-modal .cookie-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 22px;
}
.cookie-modal .close-modal {
  background: none;
  border: none;
  color: #233661;
  font-size: 1.25rem;
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
}
.cookie-modal .close-modal:hover {
  color: #EAB30D;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .footer-main-nav,
  .footer-contact,
  .footer-social {
    flex-basis: 100%;
    margin-top: 8px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .feature-grid, .card-container, .testimonial-slider, .content-grid {
    gap: 16px;
  }
  section {
    padding: 30px 10px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .card-container, .testimonial-slider, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .testimonial-slider {
    gap: 14px;
  }
  header .container {
    gap: 16px;
    min-height: 64px;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.56rem;
  }
  h2 {
    font-size: 1.17rem;
  }
  .container {
    padding: 0 7px;
  }
  section {
    padding: 22px 4.5vw;
    margin-bottom: 36px;
  }
  footer .content-wrapper {
    gap: 7px;
    padding: 20px 0 10px 0;
  }
  .testimonial-card {
    padding: 12px 8px;
    font-size: 0.98rem;
  }
}
@media (max-width: 430px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 8px;
    gap: 7px;
  }
  .cookie-modal {
    min-width: unset;
    width: 99vw;
    padding: 16px 5vw 10px 5vw;
  }
}

/* Accessibility Focus Styles */
a:focus, button:focus, .cta-primary:focus, input:focus {
  outline: 2px solid #EAB30D;
  outline-offset: 1px;
}

/* Microinteractions */
.cta-primary, button, .feature-grid > div, .card, .cookie-modal, .cookie-banner, .mobile-menu {
  transition: box-shadow 0.18s, background 0.18s, color 0.14s, transform 0.19s;
}

/* Misc Spacing & Utilities */
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-32 { margin-top: 32px !important; }
.gap-20 { gap: 20px !important; }

/* Visual Hierarchy Ensured with Spacing */
section + section {
  margin-top: 0px;
}

/* Hide visually but keep for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* End of CSS */
