/* ---------------------------------------------------
   CSS RESET / NORMALIZE (BROWSER CONSISTENCY)
--------------------------------------------------- */
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: #F8F9FB;
  color: #14213D;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  border: 0;
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ---------------------------------------------------
   BRAND VARIABLES & BASE TYPOGRAPHY
--------------------------------------------------- */
:root {
  --brand-primary: #14213D;
  --brand-secondary: #FCA311;
  --brand-accent: #E5E5E5;
  --brand-bg: #F8F9FB;
  --brand-dark-blue: #14213D;
  --brand-light-blue: #304366;
  --brand-gray: #E5E5E5;
  --brand-light-gray: #F2F4F8;
  --shadow-card: 0 2px 8px rgba(20,33,61,0.10);
  --radius-card: 12px;
  --radius-button: 6px;
  --transition: 0.2s cubic-bezier(0.43,0.13,0.23,0.96);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}
body {
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 16px;
  background: var(--brand-bg);
  color: var(--brand-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--brand-primary);
}
h1 { font-size: 2.7rem; line-height: 1.12; letter-spacing: -1px; }
h2 { font-size: 2rem; line-height: 1.2; margin-top: 16px; }
h3 { font-size: 1.3rem; font-weight: 600; color: var(--brand-light-blue); }
h4, h5, h6 { font-size: 1rem; }

p, li, span, a {
  font-size: 16px;
  line-height: 1.6;
  color: var(--brand-primary);
}
.subheadline {
  font-size: 1.15rem;
  color: var(--brand-light-blue);
  margin-bottom: 20px;
}

strong {
  font-weight: 600;
  color: var(--brand-dark-blue);
}

/* -------------------------
   GLOBAL LAYOUT WRAPPERS
------------------------- */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
}
.text-section {
  max-width: 780px;
  margin: 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.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;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 16px;
}

/* ---------------------------
   NAVIGATION & HEADER STYLES
--------------------------- */
header {
  padding: 0;
  background: #fff;
  box-shadow: 0 1px 12px 0 rgba(20,33,61,0.07);
  position: sticky;
  width: 100%;
  z-index: 90;
  top: 0;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: flex-start;
  padding: 14px 0;
}
.main-nav > a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
  color: var(--brand-dark-blue);
  background: none;
  position: relative;
}
.main-nav > a:hover,
.main-nav > a:focus {
  background: var(--brand-accent);
  color: var(--brand-primary);
}
.main-nav > a.cta-button {
  margin-left: auto;
}
.main-nav img {
  width: 60px;
  margin-right: 10px;
  vertical-align: middle;
}

/* -------------------
   CTA BUTTONS
------------------- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius-button);
  background: var(--brand-secondary);
  color: var(--brand-dark-blue);
  padding: 13px 32px;
  font-size: 17px;
  box-shadow: 0 2px 8px rgba(252,163,17,0.09);
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition), transform 0.13s;
  min-width: 160px;
  margin-top: 18px;
}
.cta-button:hover, .cta-button:focus {
  background: #ffd17b;
  color: var(--brand-dark-blue);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 18px rgba(252,163,17,0.13);
}

/* -------------------
   HERO & SECTION TOPS
------------------- */
main > section {
  margin-bottom: 60px;
  padding: 40px 0;
}
main > section .container {
  width: 100%;
}

/* -------------------
   FLEX CARDS & FEATURE BLOCKS
------------------- */
/* Features: home page */
section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  width: 100%;
  margin-top: 24px;
  margin-bottom: 10px;
}
section ul > li {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 305px;
  padding: 24px 20px 19px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid #f1f3f9;
}
section ul > li:hover {
  box-shadow: 0 6px 16px rgba(20,33,61,0.13);
  transform: translateY(-3px) scale(1.02);
}
section ul > li img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
}

/* Overview cards, module accordions, datagrid etc.  */
.datagrid, .accordion-list, .opportunities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.datagrid li, .accordion-list li, .opportunities-list li {
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 24px;
  gap: 10px;
  border: 1px solid #f1f3f9;
  transition: box-shadow var(--transition), transform var(--transition);
}
.datagrid li:hover, .accordion-list li:hover, .opportunities-list li:hover {
  box-shadow: 0 5px 16px rgba(20,33,61,0.10);
  transform: translateY(-2px) scale(1.015);
}
.datagrid li img {
  width: 31px;
  margin-bottom: 9px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.team-member {
  flex: 1 1 240px;
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.team-member img {
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
}

.highlight-cards, .stat-grid, .chart-grid, .faq-block {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 17px;
  margin-bottom: 10px;
}
.highlight-cards > div, .stat-grid > div, .chart-grid, .faq-block > div {
  flex: 1 1 230px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 220px;
  border: 1px solid #f1f3f9;
}

.timeline, .infographic, .newsfeed, .polls, .leaderboard {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 18px 18px 18px 26px;
  margin-bottom: 20px;
  gap: 7px;
  margin-top: 16px;
  min-width: 220px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
}

/***********************
 TESTIMONIALS
***********************/
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  max-width: 560px;
  border-left: 6px solid var(--brand-secondary);
  margin-top: 8px;
  transition: box-shadow var(--transition);
}
.testimonial-card p {
  font-size: 1.15rem;
  color: var(--brand-primary);
  font-family: var(--font-display), Arial, sans-serif;
  margin-bottom: 5px;
}
.testimonial-card span {
  color: var(--brand-light-blue);
  font-size: 0.97em;
  font-family: var(--font-body);
  align-self: flex-end;
  margin-left: auto;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(20,33,61,0.13);
}

/***********************
 FOOTER
***********************/
footer {
  background: var(--brand-primary);
  color: #fff;
  padding: 0 0 0 0;
  margin-top: 70px;
}
footer p {
  color: white;
}
footer .container {
  padding: 0 18px;
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 36px 0 28px 0;
}
footer section {
  min-width: 220px;
  flex: 1 1 210px;
}
footer h3 {
  color: var(--brand-secondary);
  font-family: var(--font-display);
  font-size: 1.09rem;
  margin-bottom: 10px;
}
footer a {
  color: #f1f1f1;
  transition: color var(--transition);
}
footer a:hover, footer a:focus {
  color: var(--brand-secondary);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 15px;
}
footer .social {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
footer .social span {
  margin-bottom: 4px;
  font-size: 1em;
  color: #e2e2e2;
}
footer .social a img {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-right: 9px;
  filter: grayscale(100%) brightness(1.19);
  transition: filter var(--transition);
}
footer .social a:hover img, footer .social a:focus img {
  filter: grayscale(0%) brightness(1.6);
}

/***********************
  MOBILE NAVIGATION
***********************/
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 14px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--brand-primary);
  z-index: 120;
  cursor: pointer;
  opacity: 0.94;
  transition: color var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--brand-secondary);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20,33,61,0.90);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.77,0,.18,1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
body.mobile-menu-open .mobile-menu {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 26px 24px 0 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  cursor: pointer;
  z-index: 30;
  transition: color var(--transition);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--brand-secondary);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 47px 0 0 29px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.18rem;
  font-family: var(--font-display);
  padding: 14px 0;
  margin-right: auto;
  border-radius: 5px;
  width: 88vw;
  max-width: 370px;
  transition: background var(--transition), color var(--transition);
  text-align: left;
  letter-spacing: 0.02em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}

/***********************
  COOKIE BANNER & MODAL
***********************/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid var(--brand-secondary);
  box-shadow: 0 -4px 18px 0 rgba(20,33,61,0.085);
  padding: 24px 15px 24px 15px;
  z-index: 3105;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1rem;
  color: var(--brand-dark-blue);
  animation: slideUp 0.41s cubic-bezier(.82,.01,.19,1);
}
@keyframes slideUp {
  from { transform: translateY(110%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 14px;
}
.cookie-banner button, .cookie-banner .cookie-btn {
  border-radius: var(--radius-button);
  padding: 10px 22px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-accept {
  background: var(--brand-secondary);
  color: var(--brand-dark-blue);
  box-shadow: 0 2px 8px rgba(252,163,17,0.07);
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #ffd17b;
  color: var(--brand-dark-blue);
}
.cookie-reject {
  background: var(--brand-gray);
  color: var(--brand-dark-blue);
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #d6dbe3;
}
.cookie-settings {
  background: transparent;
  color: var(--brand-dark-blue);
  text-decoration: underline;
  font-weight: 600;
  box-shadow: none;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #ececec;
}

/* Cookie settings modal (hidden by default) */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  z-index: 3400;
  background: rgba(20,33,61,0.63);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.19s;
}
body.cookie-modal-open .cookie-modal-overlay {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 36px 25px 28px 26px;
  max-width: 400px;
  width: 95vw;
  box-shadow: 0 14px 32px rgba(20,33,61,0.21);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: fadeInScale 0.36s cubic-bezier(.82,.01,.19,1);
}
@keyframes fadeInScale {
  from { opacity:0; transform: scale(0.92); }
  to { opacity:1; transform: scale(1); }
}
.cookie-modal h3 {
  font-size: 1.3rem;
  color: var(--brand-dark-blue);
  margin-bottom: 8px;
}
.cookie-modal label {
  font-size: 1rem;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
.cookie-modal input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-secondary);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 17px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 8px; right: 9px;
  background: none;
  color: var(--brand-dark-blue);
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
}
.cookie-modal .category-essential {
  font-weight: 600;
}

/***********************
  SPACING ADJUSTMENTS
***********************/
ul, ol {
  padding-left: 21px;
  margin-bottom: 8px;
}
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 0;
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}

/***********************
  NEWSFEED, POLLS, ETC.
***********************/
.polls, .newsfeed, .leaderboard, .faq-block {
  margin-bottom: 19px;
}
.leaderboard ol {
  padding-left: 8px;
}
.leaderboard li {
  margin-bottom: 5px;
}

/***********************
  MISC FORMS & LINKS
***********************/
a {
  transition: color var(--transition), background var(--transition), text-decoration var(--transition);
}
a:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/***********************
  UTILITY CLASSES
***********************/
.hide {
  display: none !important;
}

/***********************
  RESPONSIVE DESIGN (MOBILE-FIRST)
***********************/
@media (max-width:1100px) {
  .container { max-width: 920px; }
  .content-wrapper { gap: 18px; }
}
@media (max-width:870px) {
  .container { max-width: 97vw; }
  .team-grid, .card-container, .content-grid, .stat-grid, .highlight-cards { gap: 14px; }
}
@media (max-width:768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .container { padding: 0 7px; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .content-wrapper, .text-section { max-width: 98vw; }
  .footer .content-wrapper { flex-direction: column; gap: 19px; }
  .card, .feature-item, .stat-grid > div, .highlight-cards > div, .chart-grid, .faq-block > div,
  .team-member, .testimonial-card, .datagrid li, .accordion-list li, .opportunities-list li, .timeline, .infographic, .newsfeed, .polls, .leaderboard {
    min-width: unset;
    max-width: 98vw;
    flex: 1 1 90vw;
    padding: 14px;
    margin-bottom: 14px;
  }
  .team-grid, .card-container, .content-grid, .stat-grid, .highlight-cards, .faq-block {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card { max-width: 100vw; }
  .section, main > section { padding: 22px 0; }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer .content-wrapper { padding: 22px 0 16px 0; }
}
@media (max-width:520px) {
  h1 { font-size: 1.34rem; }
  h2 { font-size: 1.13rem; }
  .section, main > section { padding: 12px 0; }
  .mobile-nav { margin: 32px 0 0 14px; gap: 13px; }
  .mobile-nav a { font-size: 1rem; padding: 10px 0; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 15px; font-size: 0.97rem; }
  .cookie-banner .cookie-buttons { gap: 9px; flex-wrap: wrap; }
  .cookie-modal { padding: 18px 6px 18px 10px; }
  footer .content-wrapper { gap: 11px; }
}

/***********************
  TRANSITIONS & HOVER MICRO-INTERACTIONS
***********************/
.card, .feature-item, .timeline, .infographic, .newsfeed, .polls, .leaderboard, .testimonials, .testimonial-card, .team-member {
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .feature-item:hover, .timeline:hover, .infographic:hover, .newsfeed:hover, .polls:hover, .leaderboard:hover, .testimonial-card:hover, .team-member:hover {
  box-shadow: 0 8px 32px rgba(20,33,61,0.13);
  transform: translateY(-3px) scale(1.018);
}

/***********************
  COLOR ACCESSIBILITY FOR TESTIMONIALS/REVIEW SECTIONS
***********************/
.testimonial-card {
  background: #fff;
  color: var(--brand-dark-blue);
  border-left: 6px solid var(--brand-secondary);
}
.testimonial-card p, .testimonial-card span { color: var(--brand-dark-blue); }

/***********************
  OVERRIDE/EXPLICIT NO-GRID
***********************/
/* NEVER use display:grid, grid-template-columns etc. */
/* All container layouts use flexbox only! */

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