/* --- CSS RESET & BASE -------------------------------------- */
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;
}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{
  display:block;
}
body {
  line-height: 1.6;
  background: #F9F9F9;
  min-height: 100vh;
  color: #142B41;
  font-family: 'Open Sans', Arial, sans-serif;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.18s, border-color 0.18s;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}
:focus {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}

/* ---- BRAND FONTS -------------------------------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background-color: #F9F9F9;
  color: #142B41;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.18;
}
h1 {
  font-size: 2.375rem; /* 38px */
  color: #094061;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.625rem; /* 26px */
  color: #094061;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  color: #D4AF37;
  margin-bottom: 14px;
}
h4, h5, h6 {
  color: #142B41;
  font-weight: bold;
}
p, li, ul, blockquote {
  font-size: 1rem;
  color: #142B41;
}
.subtitle {
  color: #31AFFF;
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 22px;
  letter-spacing: 0.5px;
}

/* ---- LAYOUT -------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 22px 0 rgba(9,64,97,0.09);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.hero {
  background: linear-gradient(105deg, #ffefb4 0%, #D4AF37 100%);
  color: #fff;
  min-height: 260px;
  margin-bottom: 60px;
  padding-top: 60px;
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  position: relative;
  border-radius: 0 0 54px 0;
  box-shadow: 0 12px 36px -10px rgba(10,40,100,0.13);
}
.hero .container {
  display: flex;
  align-items: center;
  height: 100%;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

/* ---- MAIN NAVIGATION ----------------------------------------- */
header {
  position: relative;
  z-index: 501;
  background: #fff;
  box-shadow: 0 3px 12px -3px rgba(9,64,97,0.05);
}
.main-nav {
  padding: 16px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  gap: 20px;
}
.main-nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  margin-left: 32px;
}
.main-nav li a {
  color: #094061;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.22s;
}
.main-nav li a:hover, .main-nav li a:focus {
  background: #31AFFF22;
  color: #31AFFF;
}
.main-nav img {
  height: 40px;
  width: auto;
}
.cta-primary {
  background: #31AFFF;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  padding: 12px 26px;
  border-radius: 32px;
  font-size: 1.125rem;
  box-shadow: 0 4px 20px -2px #31afff44;
  transition: background 0.24s, transform 0.16s, box-shadow 0.14s;
  border: 2px solid #31AFFF;
  margin-left: 32px;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: #094061;
  color: #D4AF37;
  border-color: #094061;
  box-shadow: 0 6px 22px -4px #09406130;
  transform: translateY(-2px) scale(1.04);
}
.cta-secondary {
  background: #F9F9F9;
  color: #31AFFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  padding: 11px 22px;
  border-radius: 28px;
  font-size: 1rem;
  border: 2px solid #31AFFF;
  margin-top: 8px;
  display: inline-block;
  transition: background 0.17s, color 0.14s, border 0.15s, transform 0.14s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #31AFFF;
  color: #fff;
  border-color: #31AFFF;
  transform: scale(1.04) translateY(-1px);
}

/* ---- MOBILE MENU ---------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: #31AFFF;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  height: 48px;
  width: 48px;
  position: absolute;
  right: 18px;
  top: 16px;
  z-index: 700;
  box-shadow: 0 2px 6px #31afff2b;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #D4AF37;
  color: #094061;
}
.mobile-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #094061;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.54,.04,.27,1.67);
  box-shadow: 0 4px 32px -8px #09406177;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #D4AF37;
  color: #094061;
  font-size: 2.125rem;
  border-radius: 50%;
  position: absolute;
  top: 18px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  box-shadow: 0 4px 12px -3px #D4AF3711;
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ffffff;
  color: #094061;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 86px;
  padding: 16px 30px;
}
.mobile-nav a {
  color: #D4AF37;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 10px 0;
  border-radius: 10px;
  transition: background 0.17s, color 0.16s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #31AFFF33;
  color: #fff;
}

/* --- Hide desktop nav on mobile, show mobile menu toggle ---- */
@media (max-width: 1024px) {
  .main-nav ul, .main-nav .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ---- COOKIE CONSENT BANNER ----------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #094061;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 24px;
  font-size: 1rem;
  z-index: 9998;
  box-shadow: 0 -2px 18px -3px #09406130;
}
.cookie-banner p {
  color: #fff;
  flex: 1;
  padding-right: 18px;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  border-radius: 22px;
  font-size: 1rem;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.18s, color 0.13s, border-color 0.13s;
  box-shadow: 0 2px 8px #31afff10;
  border: 2px solid #31AFFF;
  background: #fff;
  color: #094061;
}
.cookie-btn.accept {
  background: #31AFFF;
  color: #fff;
  border-color: #31AFFF;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #D4AF37;
  color: #094061;
  border-color: #D4AF37;
}
.cookie-btn.reject {
  background: #F04444;
  color: #fff;
  border-color: #F04444;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #C02B2B;
  border-color: #C02B2B;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #31AFFF;
  border-color: #31AFFF;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #31AFFF22;
  color: #094061;
}

/* --- Cookie modal popup ------------------------------------- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.32);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: #094061;
  border-radius: 24px;
  max-width: 410px;
  width: 90%;
  padding: 36px 26px 24px 26px;
  box-shadow: 0 8px 40px -8px #09406155;
  z-index: 10000;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalFadeIn 0.4s cubic-bezier(.6,-0.25,.6,1.28);
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h4 {
  font-size: 1.175rem;
  font-weight: bold;
  color: #094061;
  margin-bottom: 6px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #F9F9F9;
  border-radius: 10px;
  padding: 8px 12px;
}
.cookie-modal .cookie-category label {
  font-weight: 600;
  margin-bottom: 0;
  font-size: 1rem;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  margin-top: 5px;
  accent-color: #31AFFF;
}
.cookie-modal .category-essential label {
  color: #D4AF37;
}
.cookie-modal .cookie-modal-actions {
  display: flex; flex-direction: row; gap: 16px; margin-top: 20px;
  justify-content: flex-end;
}

/* ---- FLEXBOX LAYOUT CLASSES ---------------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
}
.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;
  background: #F9F9F9;
  border-radius: 18px;
  box-shadow: 0 2px 12px -4px #31afff18;
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px -4px #31AFFF15;
  padding: 28px 22px;
  min-width: 220px;
  flex: 1 1 240px;
  max-width: 320px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 22px -5px #09406131;
  transform: translateY(-2px) scale(1.04);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}

/* ---- ARTICLE LIST & FILTER BAR ----------------------------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.filter-bar label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.filter-bar select {
  border-radius: 10px;
  padding: 8px 18px;
  border: 2px solid #31AFFF;
  font-size: 1rem;
  background: #F9F9F9;
  color: #094061;
  font-weight: 700;
  transition: border 0.15s;
}
.filter-bar select:focus {
  border-color: #D4AF37;
}
.article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 16px;
}
.article-list article {
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 340px;
  background: #fff;
  border-radius: 18px;
  padding: 28px 18px;
  box-shadow: 0 2px 10px -4px #31AFFF12;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.18s, transform 0.14s;
  margin-bottom: 20px;
}
.article-list article:hover, .article-list article:focus-within {
  box-shadow: 0 6px 22px -5px #31AFFF33;
  transform: scale(1.035);
}
.article-list article img {
  width: 48px;
  height: 48px;
}
.article-meta {
  color: #31AFFF;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 4px;
}

/* ---- TEXT/BODY SECTIONS -------------------------------------------- */
.text-section {
  background: #F9F9F9;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 2px 7px #31afff0b;
  margin-bottom: 18px;
}
.text-section ul {
  padding-left: 21px;
  margin-bottom: 8px;
  list-style: disc inside;
}
.text-section li {
  margin-bottom: 7px;
}
.factsheet {
  background: #E4F3FC;
  color: #094061;
  border-radius: 14px;
  padding: 18px 18px 12px 18px;
  box-shadow: 0 2px 14px -4px #31AFFF18;
  margin-top: 22px;
}
.factsheet h3 {
  color: #31AFFF;
  margin-bottom: 6px;
}
.factsheet ul {
  padding-left: 22px;
}
.factsheet li {
  margin-bottom: 7px;
}

/* ---- FOOTER ------------------------------------------------ */
footer {
  background: #094061;
  color: #fff;
  padding: 0;
  margin-top: 67px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  gap: 32px;
  padding: 46px 20px;
  min-height: 150px;
}
.footer-main a {
  color: #D4AF37;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-main a:hover,
.footer-main a:focus {
  color: #31AFFF;
}
.footer-main img {
  height: 36px;
  margin-bottom: 18px;
}
.footer-main ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  font-size: 1rem;
}
.contact-block p {
  color: #D4AF37;
  font-weight: 600;
}
.contact-block img {
  display: inline-block;
  width: 22px; height:22px;
  margin-right: 10px;
  vertical-align: middle;
}

/* ---- TESTIMONIALS ------------------------------------------ */
.testimonial-card {
  background: #fff;
  box-shadow: 0 3px 22px #09406111;
  border-radius: 18px;
  font-size: 1.13rem;
  color: #094061;
  font-weight: 600;
  margin-bottom: 20px;
  align-items: flex-start;
}
.testimonial-card blockquote {
  font-size: 1.13rem;
  color: #094061;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  flex: 1;
  margin-bottom: 0;
}
.testimonial-card cite {
  color: #31AFFF;
  font-style: normal;
  font-size: 1rem;
  font-weight: 800;
  margin-left: 20px;
}

/* ---- RESPONSIVE DESIGN ------------------------------------- */
@media (max-width: 1024px) {
  .feature-grid, .article-list, .card-container, .content-grid {
    gap: 16px;
    justify-content: flex-start;
  }
  .card, .feature-item, .article-list article {
    max-width: 100%;
    min-width: 160px;
  }
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 36px 12px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding: 0 12px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.6rem !important;
  }
  h2 {
    font-size: 1.26rem !important;
  }
  h3 {
    font-size: 1.07rem !important;
  }
  section {
    padding: 22px 8px;
    margin-bottom: 40px;
    border-radius: 18px;
  }
  .hero {
    padding-top: 34px;
    padding-bottom: 36px;
    border-radius: 0 0 32px 0;
    min-height: 176px;
  }
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 26px 8px;
  }
  .testimonials {
    gap: 10px;
  }
  .feature-grid, .article-list, .card-container, .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .feature-item, .card {
    min-width: unset;
    max-width: unset;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}

/* ---- VISUAL DECORATIONS & HIGH ENERGY ---------------------- */
section, .feature-item, .card, .testimonial-card, .factsheet, .article-list article {
  box-shadow: 0 2px 22px 0 #31AFFF1C;
  border-radius: 18px;
}
.feature-item img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0px 2px 7px #31AFFF30);
}
.feature-item h3 {
  color: #31AFFF;
}
article h3, .article-list h3 {
  color: #31AFFF;
}
.factsheet h3 {
  color: #31AFFF;
}
blockquote {
  border-left: 6px solid #31AFFF;
  padding-left: 15px;
  margin-bottom: 8px;
}

/* ---- MICRO-INTERACTIONS & TRANSITIONS ---------------------- */
a, .cta-primary, .cta-secondary, button, .feature-item, .article-list article, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.18s, color 0.15s, border-color 0.16s, transform 0.18s, box-shadow 0.18s;
}

/* ---- OVERRIDES FOR ACCENT/ACCESSIBILITY -------------------- */
strong {
  color: #D4AF37;
  font-weight: 800;
}
a:hover, a:focus {
  color: #D4AF37;
}

/* ---- UTILITIES --------------------------------------------- */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.gap-20 { gap: 20px; }
.bg-primary { background: #094061 !important; color: #fff !important; }
.bg-accent { background: #D4AF37 !important; color: #094061 !important; }
.bg-secondary { background: #F9F9F9 !important; color: #094061; }
.text-accent { color: #D4AF37 !important; }
.text-primary { color: #094061 !important; }
.text-secondary { color: #31AFFF !important; }

/* ---- TYPO HIERARCHY ----------------------------------------- */
.display-1 { font-family: 'Montserrat',sans-serif; font-weight: 900; font-size: 2.75rem; letter-spacing: -1.2px; }
.display-2 { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 2rem; }
.lead    { font-size: 1.13rem; font-weight: 600; color: #31AFFF; }

/* ---- REMOVE OUTLINE FROM NON-FOCUSABLE ON CLICK ------------ */
:active { outline: none; }

/* ---- Print safe -------------------------------------------- */
@media print {
  header,.mobile-menu,.cookie-banner,footer {display:none!important}
  body,section,.container,.content-wrapper{box-shadow:none!important;background:#fff!important;color:#000!important;}
}
