/* RESET & BASE STYLES -------------------------------- */
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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #22386c;
  background: #FFFFFF;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: #22386C; text-decoration: none; transition: color 0.18s; }
a:hover, a:focus { color: #FFD249; outline: none; }

/* BRAND COLORS & FONTS ------------------------------- */
:root {
  --color-primary: #22386C;
  --color-secondary: #FFFFFF;
  --color-accent: #FFD249;
  --color-text: #22386C;
  --color-bg: #FFFFFF;
  --color-bg-secondary: #F5F8FD;
  --color-error: #EA3546;
  --color-success: #4AE54A;
  --shadow: 0 8px 32px rgba(34, 56, 108, 0.06), 0 1.5px 4px rgba(34,56,108,.07);
  --radius: 18px;
  --transition: 0.22s cubic-bezier(0.46,0.03,0.52,0.96);
}

@media (max-width:768px){
  html { font-size: 15px; }
}

@media (max-width:500px){
  html { font-size:14px; }
}


/* TYPOGRAPHY ----------------------------------------- */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 2.75rem;
  letter-spacing: -0.01em;
  color: #22386C;
  margin-bottom: 20px;
  line-height: 1.13;
  text-shadow: 0 2px 0 #FFD24999;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #22386C;
  margin-bottom: 16px;
  line-height: 1.18;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #22386C;
  margin-bottom: 8px;
  line-height: 1.22;
}
h4, .h4 { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
p, ul, ol {
  font-size: 1rem;
  color: #263357;
  margin-bottom: 18px;
}
strong { font-weight: 700; color: #22386C; }
li { margin-bottom: 9px; }
ul, ol { padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid #DEE5F1; margin: 32px 0; }

/* BUTTONS -------------------------------------------- */
.btn-primary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.10rem;
  border: none;
  border-radius: var(--radius);
  padding: 15px 36px;
  box-shadow: 0 2px 12px 0 rgba(255,210,73,.14);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-top: 12px;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #FFDC6A;
  color: #22386C;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 6px 24px rgba(255,210,73,0.26);
}
.btn-secondary {
  background: var(--color-primary);
  color: var(--color-accent);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  box-shadow: var(--shadow);
  transition: background var(--transition), color var(--transition);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #22386cda;
  color: var(--color-accent);
  outline: none;
}

/* CONTAINER UTILS ------------------------------------ */
.container {
  max-width: 1200px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
}
.content-wrapper { width: 100%; max-width: 900px; margin: 0 auto; }

/* HEADER & NAVIGATION -------------------------------- */
header {
  position: relative;
  background: var(--color-secondary);
  box-shadow: 0 4px 10px rgba(34,56,108,0.04);
  z-index: 120;
  border-bottom: 2px solid #FFD24926;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 16px 0;
}
header nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.06rem;
  padding: 6px 8px;
  color: var(--color-primary);
  position: relative;
  transition: color var(--transition);
}
header nav a:not(.btn-primary):hover,
header nav a:not(.btn-primary):focus {
  color: var(--color-accent);
}
header .btn-primary {
  margin-left: 10px;
  margin-top: 0;
}
.header-flex img { height: 50px; width: auto; }

/* MOBILE MENU ---------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 15px;
  z-index: 3002;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #22386c;
  color: var(--color-accent);
  z-index: 3001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.42s cubic-bezier(.85,-0.03,.18,1.3);
  padding: 0 0 0 0;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--color-accent);
  margin: 22px 0 0 18px;
  cursor: pointer;
  align-self: flex-start;
  z-index: 3003;
  transition: color .2s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover { color: #FFFFFF; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 30px;
  padding-left: 32px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #FFD249;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding: 8px 0;
  width: 100%;
  transition: color .18s, background .18s;
  border-radius: var(--radius);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ffd24917;
  color: #FFFFFF;
}
@media (max-width:1000px){
  header nav { display: none; }
  .mobile-menu-toggle { display: inline-block; }
}
@media (max-width:1000px){
  .header-flex { gap: 8px; }
  .header-flex img { height: 38px; }
}
@media (min-width:1001px){
  .mobile-menu { display:none!important; }
  .mobile-menu-toggle { display:none!important; }
}

/* HERO SECTION & GENERAL SECTIONS -------------------- */
section.hero {
  padding: 40px 0 48px 0;
  margin-bottom: 60px;
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 6px 30px rgba(34, 56, 108, 0.04);
  position: relative;
  overflow: hidden;
}
.hero h1, .hero h2, .hero p { color: var(--color-accent); text-shadow: 0 1px 0 #22386c;
}
.hero .btn-primary {
  background: #FFD249;
  color: #22386C;
  box-shadow: 0 1.5px 4px rgba(34,56,108,0.12);
}
.hero .btn-primary:hover, .hero .btn-primary:focus {
  background: #fff3b1;
  color: #22386C;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-secondary);
  border-radius: 18px;
  position: relative;
}
section:last-child { margin-bottom: 0; }
@media (max-width:700px){
  section { padding: 32px 5px; }
}

/* SECTION HEADER SPACING */
section h2 {
  margin-bottom: 18px;
}

/* CARD, FEATURE, PROJECTS FLEX LAYOUTS --------------- */
.features-grid, .projects-grid, .blog-post-list, .testimonial-slider, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}
.projects-grid { gap: 24px; }
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.card-container { gap: 24px; }
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  padding: 28px 24px;
}

/* FEATURE ITEM --------------------------------------- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(34,56,108,.08);
  padding: 24px 22px 18px 22px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 270px;
  transition: box-shadow .18s, transform .17s;
  margin-bottom: 20px;
}
.feature-item img { height: 50px; width: 50px; }
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 8px 32px #FFD249aa;
  transform: translateY(-3px) scale(1.033);
}

/* TEXT-IMAGE & FLEX PATTERNS ------------------------- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px){
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* TESTIMONIALS --------------------------------------- */
.testimonials {
  background: #fff;
  border-radius: 24px;
  margin-bottom: 60px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 26px 20px 22px;
  background: #F5F8FD;
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 #22386c11;
  min-width: 280px;
  flex: 1 1 290px;
  max-width: 370px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .19s, transform .17s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px #FFD24988;
  transform: translateY(-3px) scale(1.022);
}
.testimonial-card p {
  color: #22386C;
  font-size: 1.08rem;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.testimonial-person span {
  color: #6A758A;
  font-size: 1rem;
  font-weight: 600;
}
.client-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.client-logos img {
  height: 36px; width: auto;
  filter: drop-shadow(0 1px 3px #22386c22); 
  background: #fff; border-radius: 9px; padding:4px;
}

/* CARDS & CASE STUDY, BLOG PREVIEW ------------------- */
.case-study-card, .blog-preview {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 8px 0 #FFD24933, 0 2px 12px 0 #22386c0a;
  padding: 22px 20px 18px 20px;
  flex: 1 1 270px;
  min-width: 260px;
  margin-bottom: 20px;
  transition: box-shadow .19s, transform .18s;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.case-study-card:hover, .blog-preview:hover {
  box-shadow: 0 8px 26px #FFD24960;
  transform: translateY(-2px) scale(1.015);
}
.blog-preview h3 { margin-bottom: 10px; color: #22386C; }
.blog-preview a {
  color: #22386C;
  font-weight: bold;
  border-bottom: 1.5px solid #FFD249;
  padding-bottom:1px;
  font-size: 1.06em;
  transition: color .17s, border-color .17s;
}
.blog-preview a:hover {
  color: #FFD249;
  border-color: #22386C;
}

/* CATEGORIES FILTER (BLOG) */
.categories-filter {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #22386c;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.categories-filter a {
  color: #22386C;
  background: #FFD24942;
  border-radius: 10px;
  padding: 3px 13px;
  font-size: 1em;
  font-weight: 600;
  transition: background .16s, color .16s;
}
.categories-filter a:hover {
  background: #FFD249;
  color: #22386C;
}

/* FOOTER --------------------------------------------- */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  width: 100%;
  padding-top: 38px; padding-bottom: 0;
  margin-top: 80px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 28px;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1.5px solid #FFD24933;
  padding-bottom: 18px;
}
.footer-logo img { height: 60px; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 140px;
  font-size: 1.02em;
}
.footer-links a {
  color: #FFD249;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.16s;
}
.footer-links a:hover, .footer-links a:focus { color: #FFFFFF; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.99rem;
  max-width: 320px;
  color: #FFFACD;
  background-color: #DEE5F1;
}
.footer-contact img { height: 16px; width: 16px; margin-right: 7px; vertical-align: middle; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  font-size: 1rem;
  color: #FFD249;
}
.footer-bottom a {
  color: #FFD249;
  font-weight: 600;
  margin-left: 18px;
  transition: color .18s;
}
.footer-bottom a:hover, .footer-bottom a:focus { color: #FFFFFF; }
@media (max-width: 900px){
  .footer-main { flex-direction: column; gap:18px; align-items: flex-start; }
}
@media (max-width: 600px){
  .footer-contact, .footer-links { font-size: 0.97rem; }
  .footer-main { padding-bottom: 8px; }
}

/* SPACING UTILITIES ---------------------------------- */
.mt-2 { margin-top:16px; }
.mt-3 { margin-top:24px; }
.mb-2 { margin-bottom:16px; }
.mb-3 { margin-bottom:24px; }
.pt-3 { padding-top:24px; }
.pb-3 { padding-bottom:24px; }

/* SPECIAL LAYOUTS ------------------------------------ */
.team-bio, .team-skills {
  margin-bottom: 32px;
  padding: 22px 20px 18px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 8px 0 #FFD24933, 0 2px 8px 0 #22386c14;
}
.team-skills ul { margin-bottom: 10px; }
.contact-information {
  background: #F5F8FD;
  border-radius: 16px;
  padding: 18px 19px;
  margin-bottom: 22px;
  box-shadow: 0 0.5px 5px #22386c0c;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contact-information p { margin-bottom: 0; display: flex; align-items: center; gap: 9px; }
.next-steps {
  background: #fff;
  border-radius: 15px;
  padding: 18px 18px 12px 21px;
  box-shadow: 0 1px 10px #FFD24926;
  margin-top: 22px;
  margin-bottom: 18px;
}
.next-steps ul { margin-left: 1.5em; margin-bottom: 12px; }
.results-summary ul {
  list-style-type: disc;
  padding-left: 1.6em;
  margin-bottom: 0;
  color: #22386C;
  font-size: 1.07em;
}

/* CONFIRMATION PAGE ---------------------------------- */
section.confirmation {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 18px #FFD24924, 0 2px 6px #22386c08;
  margin-top: 48px;
}
section.confirmation h1 {
  color: #FFD249;
  text-shadow: 0 2px 6px #22386c33;
}

/* RESPONSIVE FLEX MEDIA QUERIES ---------------------- */
@media (max-width: 900px){
  .features-grid, .projects-grid, .blog-post-list, .testimonial-slider, .card-container, .content-grid {
    gap: 16px;
  }
  .feature-item, .case-study-card, .blog-preview, .testimonial-card {
    min-width: 180px;
    max-width: 100%;
    flex-basis: 100%;
  }
}
@media (max-width: 650px){
  .container { padding-left: 7px; padding-right: 7px; }
}
@media (max-width: 520px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.35rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* TRANSITIONS & MICRO-INTERACTIONS ------------------- */
.card, .feature-item, .case-study-card, .testimonial-card, .blog-preview {
  will-change: transform, box-shadow;
}
.btn-primary, .btn-secondary {
  transition: background .14s, color .14s, box-shadow .18s, transform .17s;
}

/* COOKIE CONSENT BANNER ------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: #22386c;
  color: #FFD249;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.06rem;
  z-index: 4000;
  box-shadow: 0 -1.5px 18px #22386c30;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 34px;
  justify-content: space-between;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .34s cubic-bezier(.7,-0.21,.28,1.09), opacity .21s;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-text {
  flex: 1 1 148px;
  color: #FFD249;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  background: #FFD249;
  color: #22386C;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 24px;
  cursor: pointer;
  font-size: 1.01rem;
  transition: background .15s, color .16s, box-shadow .17s;
  box-shadow: 0 2px 8px #FFD24922;
}
.cookie-btn.settings {
  background: transparent;
  color: #FFD249;
  border: 1.6px solid #FFD249;
  box-shadow: none;
}
.cookie-btn:hover, .cookie-btn:focus { background: #FFF581; color: #22386C; outline: none; }
.cookie-btn.settings:hover, .cookie-btn.settings:focus { background: #FFD249; color: #22386C; }

@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 15px; padding: 13px 7px; border-radius: 0; }
  .cookie-banner-actions { gap: 7px; }
}


/* COOKIE MODAL --------------------------------------- */
.cookie-modal-overlay {
  position: fixed;
  left:0; top:0; width:100%; height:100%;
  z-index: 4100;
  background: rgba(34,56,108,0.66);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .24s;
}
.cookie-modal-overlay.active {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  color: #22386C;
  border-radius: 22px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 26px #FFD24933;
  padding: 36px 24px 28px 24px;
  position: relative;
  transition: transform .3s, opacity .2s;
}
.cookie-modal h2 {
  color: #22386C;
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 16px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-toggle {
  width: 38px;
  height: 20px;
  border-radius: 10px;
  background: #FFD24944;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-modal .cookie-toggle input { display: none; }
.cookie-modal .cookie-toggle span {
  display: block;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #FFD249;
  position: absolute;
  left: 1px; top: 1px;
  transition: left .22s;
}
.cookie-modal .cookie-toggle input:checked + span {
  left: 19px;
  background: #4AE54A;
}
.cookie-modal .cookie-buttons {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.cookie-modal .cookie-btn:last-child { margin-right:0; }
.cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 19px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #22386C;
  cursor: pointer;
  transition: color .18s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus { color: #FFD249; }

@media (max-width:500px){ .cookie-modal { max-width:97vw; padding:20px 7px; } }

/* ACCENT HIGHLIGHT EFFECTS --------------------------- */
h1, .h1, h2, h3, .btn-primary {
  position: relative;
}
h1::after, h2::after, h3::after {
  content: '';
  display: block;
  width: 48px; height: 4px;
  background: #FFD249;
  border-radius: 3px;
  margin-top: 9px;
}
h2::after { width: 32px; height: 3px; }
h3::after { width: 21px; height: 3px; }

.hero h1::after, .hero h2::after, .hero h3::after { background: #fff; }

/* Z-INDEX RULES -------------------------------------- */
header, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay, .cookie-modal { z-index: 4000; }

/* OVERRIDE FOR WHITE BACKGROUNDS --------------------- */
.hero, section.hero, section.confirmation { background: var(--color-primary); color: #FFD249; }
section.hero h1, section.hero h2, section.hero h3, section.hero p { color: #FFD249; }

/* ACCESSIBILITY FOCUS VISIBLE ------------------------ */
:focus { outline: 2px solid #FFD249; outline-offset:2px; z-index:11; }

/* GENERIC ANIMATION (for micro-interactions) --------- */
@keyframes shine-in {
  from { filter: brightness(.94) grayscale(40%) scale(0.94); opacity: 0.8; }
  to { filter: brightness(1) grayscale(0%) scale(1); opacity: 1; }
}
.feature-item,
.card,
.case-study-card,
.testimonial-card,
.blog-preview {
  animation: shine-in 0.7s cubic-bezier(.8,-0.03,.15,1.3);
}

/* --- END --- */
