/* =====================
   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 {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: #0A1630;
  background: #F2F7FB;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background-color: #F2F7FB;
  line-height: 1.5;
  font-size: 16px;
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
  border: none;
  background: none;
  color: inherit;
}

a {
  color: #EC9C39;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #FFB763;
}

/* =====================
   BRAND FONTS
   ===================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #22395D;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
}

p, ul, li, blockquote {
  font-size: 1rem;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: #22395D;
}

blockquote {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #22395D;
  margin-bottom: 8px;
}

strong {
  font-weight: 700;
}

/* =====================
   LAYOUT CONTAINERS
   ===================== */

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-section {
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #F2F7FB;
  border-radius: 22px;
  box-shadow: 0 4px 28px 0 rgba(34, 57, 93, 0.05);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.features-grid,
.articles-list,
.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}

.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(34, 57, 93, 0.10), 0 0 0 2px #22395D0d;
  background-color: #fff;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.22s;
}
.card:hover {
  box-shadow: 0 6px 32px 0 #EC9C3980, 0 0 0 2.5px #22395D22;
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 6px 32px 0 rgba(34,57,93,0.07);
  border-left: 5px solid #EC9C39;
  min-width: 0;
}
.testimonial-card blockquote {
  color: #22395D;
  font-size: 1.07rem;
}
.testimonial-card span {
  color: #22395D;
  opacity: .85;
  font-weight: 600;
  font-size: 0.98em;
}

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

.articles-list > div {
  flex: 1 1 265px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 14px 0 rgba(34, 57, 93, 0.11);
  margin-bottom: 0px;
  padding: 18px 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 5px solid #22395DEE;
  transition: border-color 0.2s;
}
.articles-list > div:hover {
  border-left: 5px solid #EC9C39;
  box-shadow: 0 6px 28px 0 #EC9C3911;
}

/* ===========
   HEADER
   =========== */
header {
  background: linear-gradient(90deg, #22395D 72%, #EC9C39 140%);
  box-shadow: 0 4px 18px 0 rgba(34,57,93,0.061);
  padding: 0;
  position: relative;
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
header img {
  height: 42px;
  width: auto;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: #F2F7FB;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 3px;
  position: relative;
  transition: color .18s;
}
header nav a:hover, header nav a:focus {
  color: #EC9C39;
}

.btn-primary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 12px 28px;
  border-radius: 7px;
  font-size: 1.1rem;
  background: #EC9C39;
  color: #fff;
  font-weight: 600;
  letter-spacing: .03em;
  border: none;
  box-shadow: 0 2px 12px 0 #EC9C3944;
  cursor: pointer;
  transition: box-shadow 0.16s, background 0.139s, color 0.139s;;
  margin-left: 12px;
  outline: none;
  position: relative;
  z-index: 1;
  display: inline-block;
  vertical-align: middle;
}
.btn-primary:hover, .btn-primary:focus {
  background: #ffb563;
  color: #22395D;
  box-shadow: 0 4px 18px 0 #EC9C3999;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: #F2F7FB;
  background: transparent;
  border: none;
  margin-left: 18px;
  cursor: pointer;
  transition: color .13s;
  z-index: 30;
}
.mobile-menu-toggle:focus {
  color: #EC9C39;
}

/* ==========================
   MOBILE MENU + NAVIGATION
   ========================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 100%;
  width: 100vw;
  background: #22395D;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 30px 20px 20px 20px;
  transform: translateX(100vw);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.36,0.54,0.6,1), opacity 0.21s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #EC9C39;
  padding: 6px;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 18px;
  outline: none;
  transition: color .13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 18px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.17rem;
  letter-spacing: 0.05em;
  padding: 12px 0;
  border-bottom: 1px solid #22395d66;
  transition: color 0.13s;
  width: 100%;
  text-align: left;
  outline: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #EC9C39;
}

/* ===================
   HERO, CARDS, ETC.
   =================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 28px;
  box-shadow: 0 2px 18px 0 rgba(34,57,93,0.045);
  background: #fff;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section a.btn-primary {
  margin-top: 26px;
}

.features-grid > div {
  flex: 1 1 230px;
  background: #F2F7FB;
  border-radius: 18px;
  box-shadow: 0 1.5px 5px 0 rgba(34,57,93,0.06);
  border-left: 5px solid #EC9C39;
  padding: 24px 20px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: box-shadow 0.18s, border-color 0.16s;
}
.features-grid > div:hover {
  box-shadow: 0 8px 32px 0 #EC9C3919;
  border-left: 5px solid #22395D;
}
.features-grid img {
  height: 38px;
  width: 38px;
  filter: drop-shadow(0 0 2px #EC9C39) drop-shadow(0 0 6px #EC9C390F);
}

/* Line between sections */
section:not(:last-child) {
  border-bottom: 2px solid #F2F7FB;
}

ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section ul li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: #22395D;
  font-size: 1rem;
}
.section ul li img {
  width: 21px;
  height: 21px;
  margin-right: 4px;
}

/* ================
   FOOTER STYLES
   ================ */
footer {
  background: #22395D;
  margin-top: 40px;
  padding: 34px 0 16px 0;
}
footer .container {
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 2px 8px;
  transition: color 0.12s;
}
footer nav a:hover, footer nav a:focus {
  color: #EC9C39;
}
footer p {
  color: #F2F7FB;
  font-size: 0.95em;
  opacity: 0.78;
  margin-top: 3px;
}

/* ================
   COOKIE BANNER
   ================ */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1000;
  background: #22395D;
  color: #fff;
  padding: 25px 14px 17px 14px;
  box-shadow: 0 -4px 22px 0 rgba(34,57,93,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transition: transform 0.22s, opacity 0.22s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner button, .cookie-banner .btn-cookie {
  padding: 9px 18px;
  border-radius: 7px;
  background: #EC9C39;
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .13s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #ffb563;
  color: #22395D;
}
.cookie-banner .btn-cookie-outline {
  background: transparent;
  border: 1.5px solid #EC9C39;
  color: #EC9C39;
}
.cookie-banner .btn-cookie-outline:hover, .cookie-banner .btn-cookie-outline:focus {
  background: #EC9C39;
  color: #fff;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1101;
  min-width: 325px;
  max-width: 96vw;
  width: 440px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 32px 0 #22395D1F;
  padding: 32px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: opacity 0.25s, transform 0.25s cubic-bezier(0.36,0.54,0.6,1);
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}
.cookie-modal h2 {
  font-size: 1.32rem;
  color: #22395D;
  margin-bottom: 9px;
}
.cookie-modal .cookie-close-modal {
  background: transparent;
  border: none;
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 1.6rem;
  color: #EC9C39;
  cursor: pointer;
  z-index: 2;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: #F2F7FB;
  border-radius: 9px;
  padding: 10px 14px;
  margin-bottom: 5px;
}
.cookie-modal .category-label {
  font-weight: 600;
  color: #22395D;
  flex: 1 1;
  font-size: 1rem;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  margin: 0;
  width: 38px;
  height: 22px;
  background: #EC9C39;
  border-radius: 100px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal .cookie-toggle:checked {
  background: #22395D;
}
.cookie-modal .cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.19s;
}
.cookie-modal .cookie-toggle:checked::before {
  left: 19px;
  background: #EC9C39;
}

.cookie-modal .cookie-category.disabled label, .cookie-modal .cookie-category.disabled .category-label {
  color: #bbb;
  opacity: 0.74;
  cursor: default;
}

.cookie-modal .cookie-modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-modal .btn-cookie {
  padding: 8px 22px;
  border-radius: 6px;
  background: #EC9C39;
  color: #fff;
  font-family: 'Montserrat';
  font-weight: 600;
  border: none;
  transition: background 0.15s, color 0.13s;
}
.cookie-modal .btn-cookie-outline {
  background: transparent;
  border: 1.5px solid #EC9C39;
  color: #EC9C39;
}
.cookie-modal .btn-cookie-outline:hover {
  background: #EC9C39;
  color: #fff;
}

/* Overlay for modal */
.cookie-modal-bg {
  display: none;
}
.cookie-modal-bg.hide {
    display: none;
}

/* ========
   FORMS
   ======== */
input, textarea, select {
  display: block;
  width: 100%;
  padding: 12px 13px;
  border-radius: 6px;
  background: #F2F7FB;
  border: 1.5px solid #22395D26;
  color: #22395D;
  font-size: 1rem;
  margin-bottom: 18px;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #EC9C39;
  background: #fff;
}
label {
  display: block;
  font-size: 1rem;
  color: #22395D;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  margin-bottom: 7px;
}

/* =========
   UTILITY
   ========= */
.mt-2 {margin-top: 16px;}
.mt-3 {margin-top: 24px;}
.mb-3 {margin-bottom: 24px;}

/* ==========
   RESPONSIVE
   =========== */
@media (max-width: 1060px) {
  .container {
    max-width: 93vw;
  }
  .features-grid > div,
  .articles-list > div {
    flex: 1 1 310px;
  }
  .card {
    padding: 22px 10px;
  }
}
@media (max-width: 900px) {
  .features-grid,
  .articles-list,
  .card-container {
    gap: 16px;
  }
  .features-grid > div,
  .articles-list > div {
    flex: 1 1 100%;
    min-width: 180px;
  }
}
@media (max-width: 768px) {
  html { font-size: 95%; }
  header .container {
    flex-direction: row;
    min-height: 62px;
    gap: 10px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .section, section {
    padding: 30px 6vw;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 40px;
  }
  .container {
    padding: 0 5vw;
    max-width: 99vw;
  }
  .features-grid,
  .articles-list,
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card,
  .features-grid > div,
  .articles-list > div,
  .card {
    border-radius: 15px;
    padding: 17px 10px;
  }
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .btn-primary {
    margin-left: 0;
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }
}
@media (max-width: 540px) {
  html {font-size: 89%;}
  .section {
    padding: 19px 2vw 27px 2vw;
    margin-bottom: 21px;
  }
  .container {
    padding: 1px 2vw;
  }
  header img {
    height: 34px;
  }
  h1 {
    font-size: 1.65rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .cookie-modal {
    min-width: unset;
    width: 97vw;
    max-width: 99vw;
    padding: 18px 8vw 22px 8vw;
  }
}

/* =============
   NEON EFFECTS
   ============= */
.btn-primary, .cookie-banner button, .cookie-modal .btn-cookie {
  box-shadow: 0 0 0 rgba(236,156,57,0.01), 0 0 10px #ec9c3950 inset;
  position: relative;
}
.btn-primary:after {
  content: '';
  position: absolute;
  left: 7px; right: 7px; bottom: 5px;
  height: 2.5px;
  border-radius: 3px;
  background: #fff4cc79;
  filter: blur(2.5px);
  pointer-events: none;
  opacity: 0.5;
}
.btn-primary:hover:after, .btn-primary:focus:after {
  opacity: .92;
  background: #ec9c3987;
}
.features-grid > div:hover {
  box-shadow: 0 2px 22px 0 #EC9C398C;
  border-left: 5px solid #EC9C39;
}
.articles-list > div:hover {
  box-shadow: 0 3px 18px 1px #EC9C3941;
}

/* NEON underline for h2 */
h2::after {
  content: '';
  display: block;
  margin: 8px 0 0 0;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  background: #EC9C39;
  box-shadow: 0 0 8px #EC9C3972;
}

/* ===================
   SCROLLBAR MODERN
   =================== */
::-webkit-scrollbar {
  width: 0.71em;
  background: #22395D09;
}
::-webkit-scrollbar-thumb {
  background: #EC9C39;
  border-radius: 8px;
}

/* ===================
   FOCUS STATES
   =================== */
:focus {
  outline: 2px solid #EC9C39;
  outline-offset: 2px;
}

/* ===================
   TRANSITIONS ETC.
   =================== */
* {
  transition: background-color 0.13s, border-color 0.13s, box-shadow 0.16s, color 0.14s;
}

/* ===================
   VISUAL SEPARATORS
   =================== */
hr {
  border: none;
  border-top: 2px solid #F2F7FB;
  margin: 18px 0;
}

/* ===================
   Z-INDEX SECURING
   =================== */
header,
.mobile-menu,
.cookie-banner,
.cookie-modal,
.cookie-modal-bg {
  z-index: 9999;
}

/* ===================
   SCREEN READER ONLY
   =================== */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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