/* --- CSS RESET & 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,main,section,article,aside,footer,header,nav,figure,figcaption,hr {
  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 {
  line-height: 1.6;
  background: #E4EDF7;
  color: #202B36;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #2247A5;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #DB9000;
  outline: none;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 24px;
}
th, td {
  border: 1px solid #BFD1EC;
  padding: 12px 16px;
  text-align: left;
}
th {
  background: #F5F9FC;
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #2247A5;
}

/* --- FONT IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600;700&display=swap');

/* --- COLOR VARIABLES (fallbacks) --- */
:root {
  --primary: #2247A5;
  --secondary: #E4EDF7;
  --background: #ffffff;
  --accent: #DB9000;
  --accent-alt: #FFAB2E;
  --dark: #202B36;
  --muted: #7A869A;
  --border: #BFD1EC;
  --shadow: rgba(34,71,165,0.07);
}

/* --- GENERAL LAYOUT --- */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 3px 20px var(--shadow);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

/* --- TYPOGRAPHY --- */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 12px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark);
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}
p, ul, ol, li, table {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--dark);
}
.subheadline {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 400;
}
strong {
  font-weight: bold;
  color: var(--primary);
}
blockquote {
  border-left: 6px solid var(--primary);
  background: #F5F9FC;
  margin: 20px 0;
  padding: 16px 24px 16px 32px;
  font-style: italic;
  color: var(--dark);
  border-radius: 10px;
}

/* --- NAVIGATION --- */
header {
  background: var(--background);
  box-shadow: 0 3px 16px var(--shadow);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  min-height: 70px;
  padding: 16px;margin-bottom:0;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  color: var(--primary);
  position: relative;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  outline: none;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}
.cta-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.6em 1.5em;
  font-size: 1.05rem;
  letter-spacing: 0.07em;
  box-shadow: 0 5px 18px var(--shadow);
  text-transform: uppercase;
  border: 0;
  transition: background 0.2s, transform 0.16s;
  cursor: pointer;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

/* Hamburger and Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  margin-left: 10px;
  transition: background 0.2s, box-shadow 0.16s;
  z-index: 120;
}
.mobile-menu-toggle:focus {
  background: var(--accent);
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 9px 32px var(--shadow);
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.5,1.8,.4,.8);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 0 48px 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: none;
  color: var(--primary);
  margin: 18px 24px 0 0;
  border: none;
  cursor: pointer;
  padding: 2px 10px;
  border-radius: 9px;
  font-weight: bold;
  transition: background 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--secondary);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-top: 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  color: var(--primary);
  padding: 14px 30px;
  border-radius: 12px;
  transition: background 0.18s, color 0.18s;
  font-weight: 700;
  letter-spacing: 0.08em;
  width: 80%;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}

@media (max-width: 1024px) {
  header .container nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (max-width: 1024px) {
  .mobile-menu {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- SECTIONS, GRIDS, CARDS --- */
.features-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.features-grid > div, .feature-item {
  flex: 1 1 220px;
  min-width: 220px;
  background: var(--secondary);
  padding: 24px 20px 30px;
  border-radius: 20px;
  box-shadow: 0 2px 11px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
}
.features-grid > div img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}
.features-grid h3 {
  margin-bottom: 4px;
  font-size: 1.15rem;
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.features-grid p {
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--dark);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 14px var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-width: 330px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.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: #FFF;
  border-radius: 14px;
  box-shadow: 0 2px 11px var(--shadow);
  margin-bottom: 20px;
  border-left: 6px solid var(--accent);
}
.testimonial-card p {
  color: #1c2333;
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 0;
}
.testimonial-card strong {
  margin-left: auto;
  font-size: 1rem;
  color: var(--primary);
}

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

.blog-post {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 6px var(--shadow);
  margin-bottom: 20px;
  padding: 22px 20px 22px 24px;
  border-left: 6px solid var(--primary);
  position: relative;
  transition: box-shadow 0.16s;
}
.blog-post:hover, .blog-post:focus-within {
  box-shadow: 0 6px 32px rgba(34,71,165,0.12);
}
.featured-article {
  background: var(--accent);
  color: #fff;
  border-radius: 18px;
  padding: 26px 22px;
  margin: 28px 0 0 0;
  box-shadow: 0 3px 16px var(--shadow);
}
.featured-article h3 {
  color: #fff;
}
.featured-article a {
  color: #fff!important;
  text-decoration: underline;
}

/* --- TABLES --- */
table {
  margin-bottom: 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 7px var(--shadow);
}
th, td {
  border: 1px solid var(--border);
}

/* --- LISTS & UL --- */
ul {
  margin-bottom: 14px;
}
ul li {
  padding-left: 0;
  margin-bottom: 7px;
}

/* --- FORMS (for future forms) --- */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px;
  background: #fff;
  margin-bottom: 18px;
  width: 100%;
  transition: border 0.17s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  outline: none;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 34px 0 15px 0;
  margin-top: 60px;
}
footer p {
  color: white;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom:0;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin-bottom: 6px;
}
footer nav a, footer ul li a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 4px;
  border-radius: 6px;
  transition: background 0.12s;
}
footer nav a:hover, footer ul li a:hover,footer nav a:focus,footer ul li a:focus{
  background: var(--accent);
  color: #fff;
}
footer ul {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}
footer .tagline {
  margin-top: 16px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #202B36;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 28px 20px 28px;
  box-shadow: 0 -6px 24px rgba(20,30,49,0.14);
  z-index: 9999;
  animation: cookieBannerIn 0.5s cubic-bezier(.47,1.74,.57,.81);
}
@keyframes cookieBannerIn {
  from {transform: translateY(100%); opacity:0;}
  to   {transform: translateY(0); opacity:1;}
}
.cookie-banner p {
  font-size: 1rem;
  color: #fff;
  margin: 0 0 8px 0;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner .cookie-btn {
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  padding: 0.6em 1.4em;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  transition: background 0.18s, transform 0.13s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--primary);
  color: #fff;
  transform: scale(1.02);
}
.cookie-banner .cookie-btn.secondary {
  background: #BFD1EC;
  color: var(--primary);
}
.cookie-banner .cookie-btn.secondary:hover,.cookie-banner .cookie-btn.secondary:focus {
  background: var(--accent);
  color: #fff;
}

/* Cookie settings modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(32,43,54,0.55);
  z-index: 10028;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 44px rgba(34,71,165,0.13);
  min-width: 310px;
  max-width: 92vw;
  padding: 30px 22px 24px 32px;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalIn 0.32s cubic-bezier(.27,1.34,.56,.98);
}
@keyframes modalIn {
  from {transform: scale(.9) translateY(30px); opacity:.4;}
  to   {transform: scale(1) translateY(0); opacity:1;}
}
.cookie-modal h3 {
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.13rem;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}
.cookie-modal label {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
.cookie-modal input[type=checkbox] {
  accent-color: var(--primary);
  width: 20px;
  height: 20px;
}
.cookie-modal .cookie-modal-buttons {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  padding: 8px 22px;
  font-weight: 700;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
}
.cookie-modal .cookie-btn.secondary {
  background: #BFD1EC;
  color: var(--primary);
}
.cookie-modal .cookie-btn:focus, .cookie-modal .cookie-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* --- GEOMETRIC STRUCTURED: SHAPES / DECORATIVE --- */
/* Add geometric accents below headings or as pseudo-elements on cards */
.section h2::after, .content-wrapper h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 6px;
  border-radius: 5px;
  margin-top: 5px;
  background: var(--accent);
}
.features-grid > div::before, .card::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 3px 12px 3px 12px;
  position: absolute;
  left: -12px;
  top: -12px;
  z-index: 2;
  opacity: 0.13;
  transition: opacity 0.2s;
}
.features-grid > div:hover::before, .card:hover::before {
  opacity: 0.25;
}
.blog-post::after {
  content: '';
  position: absolute;
  right: 24px;
  bottom: 16px;
  width: 32px;
  height: 7px;
  background: var(--accent);
  border-radius: 3px;
  opacity: 0.09;
  z-index: 0;
}

/* --- SPACING & RESPONSIVE --- */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 992px) {
  .features-grid,
  .card-container,
  .content-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.25rem; }
  .section { padding: 20px 6px; }
  .features-grid, .card-container, .content-grid, .footer .container {
    flex-direction: column;
    gap: 14px;
  }
  .content-wrapper, .card {
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .features-grid > div, .card {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 500px) {
  .section { padding: 8px 2px; }
  .container { padding: 0 2px; }
  .cookie-banner { padding: 16px 2px; }
  .cookie-modal { min-width: 88vw; padding: 16px 6px 14px 12px; }
}

/* --- MICRO-INTERACTIONS & TRANSITIONS --- */
.section,
.card,
.features-grid > div,
.testimonial-card,
.featured-article,
.blog-post,
.cta-primary,
.cookie-btn, .cookie-modal, .mobile-menu {
  transition: box-shadow 0.18s, background 0.18s, transform 0.22s;
}
.card:hover, .features-grid > div:hover, .cta-primary:focus {
  box-shadow: 0 8px 28px rgba(34,71,165,0.12);
  transform: translateY(-2px) scale(1.01);
}

/* --- ACCESSIBILITY & FOCUS --- */
a:focus, button:focus, input:focus, .cta-primary:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- UTILITIES & OVERRIDES --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left  { text-align: left; }

/* --- Hide reappearing items visually (like cookie modal when closed) --- */
[hidden] {
  display: none !important;
}
