/* ------------------- 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;
}

*, *:before, *:after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #e8eaf6;
  color: #23395d;
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: #ffb300;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #23395d;
  text-decoration: underline;
}

ul, ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
li {
  margin-bottom: 12px;
}

/* ------------------- BRAND FONTS & COLORS ------------------- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #23395d;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #ffb300;
  font-weight: 600;
}
h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

strong, b {
  font-weight: 600;
}

p {
  font-size: 1rem;
  color: #384f7c;
  margin-bottom: 16px;
}

em, i {
  font-style: italic;
}

.text-center {
  text-align: center;
}

/* Fun Playful Font for headings */
.hero h1, .cta-bg h1, .cta-bg h2 {
  font-family: 'Montserrat', 'Comic Sans MS', cursive, Arial, sans-serif;
}

/* ------------------- CONTAINER, LAYOUT & SPACING ------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 18px rgba(44,68,129,0.09);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  flex: 1 1 300px;
  margin-bottom: 20px;
  position: relative;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(44,68,129,0.11);
  padding: 24px 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  transform: translateY(-6px) scale(1.02) rotate(-1deg);
  box-shadow: 0 8px 32px rgba(255,179,0,0.16);
}

.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: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 18px rgba(35, 57, 93, 0.09);
  border-left: 6px solid #ffb300;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 420px;
  margin-right: 20px;
  font-size: 1.075rem;
  position: relative;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(255,179,0,0.16);
  border-left-color: #23395d;
}
.testimonial-author {
  font-size: 1rem;
  color: #23395d;
  font-style: italic;
  opacity: 0.84;
}

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

.feature-grid, .solution-grid, .blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.feature, .blog-post {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(35,57,93,0.08);
  padding: 28px 22px 24px 22px;
  margin-bottom: 20px;
  min-width: 200px;
  transition: box-shadow 0.18s, transform 0.15s;
  border-top: 5px solid #ffb300;
}
.feature:hover, .blog-post:hover {
  box-shadow: 0 8px 28px rgba(255,179,0,0.15);
  transform: translateY(-5px) scale(1.025) rotate(1deg);
  border-top-color: #1562cf;
}
.feature img {
  height: 48px;
  margin-bottom: 10px;
}

.service-overview ul {
  margin-top: 8px;
  margin-bottom: 16px;
}

.cta-bg {
  background: #ffb300;
  color: #23395d;
  border-radius: 24px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 4px 30px 0 rgba(255,179,0,0.12);
}
.cta-bg .cta-button {
  background: #23395d;
  color: #fff;
  border-radius: 36px;
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
}
.client-logos img {
  height: 48px;
  padding: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(35,57,93,0.05);
  transition: transform 0.2s;
}
.client-logos img:hover {
  transform: scale(1.12) rotate(-3deg);
}

.blog-grid {
  margin-bottom: 24px;
}
.blog-categories {
  margin-top: 28px;
}
.blog-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.blog-categories li {
  background: #e8eaf6;
  color: #23395d;
  padding: 6px 20px;
  border-radius: 32px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 0;
  transition: background 0.18s, color 0.18s;
}
.blog-categories li:hover {
  background: #ffb300;
  color: #23395d;
}

/* ------------------- HEADER & NAVIGATION ------------------- */
header {
  width: 100%;
  background: #23395d;
  box-shadow: 0 3px 14px 0 rgba(44,68,129,0.09);
}
.flex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px 0;
  gap: 28px;
}
.logo-link img {
  height: 56px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 500;
  position: relative;
  padding: 8px 14px;
  border-radius: 25px;
  transition: background 0.19s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #ffb300;
  color: #23395d;
  text-decoration: none;
}
.cta-button {
  padding: 12px 32px;
  background: #ffb300;
  color: #23395d;
  border: none;
  border-radius: 38px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px rgba(255,179,0,0.10);
  margin-left: 20px;
  cursor: pointer;
  transition: background 0.22s, color 0.18s, box-shadow 0.18s, transform 0.13s;
  position: relative;
  z-index: 1;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: #1562cf;
  color: #fff;
  box-shadow: 0 8px 36px #ffb30044;
  transform: scale(1.05) rotate(-2deg);
}

.mobile-menu-toggle {
  display: none;
  background: #ffb300;
  color: #23395d;
  border: none;
  padding: 11px 18px;
  border-radius: 24px;
  font-size: 2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  margin-left: 16px;
  box-shadow: 0 2px 16px #ffb3002b;
  transition: background 0.15s, color 0.2s;
  z-index: 1102;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #23395d;
  color: #ffb300;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #23395de6;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.75,.04,.1,1.01);
  overflow-y: auto;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #ffb300;
  font-size: 2.2rem;
  font-weight: 800;
  padding: 24px 24px 8px 0;
  margin-right: 20px;
  align-self: flex-end;
  cursor: pointer;
  z-index: 1200;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 50px 0 0 30px;
  gap: 24px;
  width: 100vw;
  max-width: 98vw;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  padding: 14px 28px;
  margin-bottom: 6px;
  border-radius: 34px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ffb300;
  color: #23395d;
  text-decoration: none;
}

@media (max-width: 1020px) {
  .flex-header {
    gap: 14px;
    min-height: 72px;
  }
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-button {
    margin-left: 8px;
  }
}
@media (max-width: 540px) {
  .flex-header {
    flex-direction: row;
    align-items: center;
    gap: 2px;
  }
  .logo-link img {
    height: 42px;
  }
  .cta-button {
    padding: 11px 14px;
    font-size: 0.97rem;
  }
  .mobile-menu-close {
    font-size: 2rem;
    padding: 17px 10px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ------------------- HERO SECTION ------------------- */
.hero {
  background: #ffb300;
  color: #23395d;
  border-radius: 28px;
  box-shadow: 0 4px 26px 0 rgba(255,179,0,0.12);
  padding: 48px 0 36px 0;
  margin-bottom: 40px;
  min-height: 230px;
  position: relative;
  overflow: hidden;
  animation: fade-in-hero 0.85s cubic-bezier(.88, .29, .4, 1.11);
}
@keyframes fade-in-hero {
  0% { opacity:0; transform: scale(0.98) translateY(22px); }
  100% { opacity:1; transform: scale(1) translateY(0); }
}
.hero .content-wrapper {
  align-items: center;
  justify-content: center;
}
.hero h1 {
  font-size: 2.4rem;
  color: #23395d;
  background: none;
}
.hero p {
  color: #23395d;
  font-size: 1.22rem;
  margin-bottom: 18px;
}
.hero .cta-button {
  background: #23395d;
  color: #fff;
  margin-top: 14px;
}

@media (max-width: 820px) {
  .hero {
    padding: 34px 0 13px 0;
    border-radius: 20px;
  }
  .section, .cta-bg {
    padding: 24px 8px;
  }
}
@media (max-width: 600px) {
  .hero {
    min-height: 140px;
    padding: 17px 0 7px 0;
    border-radius: 10px;
  }
  .card, .feature, .blog-post {
    min-width: unset;
    padding: 16px 8px 14px 8px;
    border-radius: 14px;
  }
}

/* ------------------- FOOTER ------------------- */
footer {
  background: #23395d;
  color: #fff;
  padding: 32px 0 15px 0;
  margin-top: 64px;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-flex > div {
  flex: 1 1 240px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  margin-top: 14px;
}
.footer-nav a {
  color: #ffb300;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  padding: 6px 0;
}
.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}
footer img {
  height: 38px;
  margin-bottom: 8px;
}
footer p, footer a {
  color: #fff;
  font-size: 1rem;
}
footer p img {
  height: 20px;
  margin-right: 7px;
  vertical-align: middle;
}

@media (max-width: 800px) {
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-nav {
    align-items: flex-start;
  }
}

/* ------------------- UTILITIES & DECORATIVE ------------------- */
.text-center { text-align: center; }
.bg-accent { background: #ffb300; }

/* Fun squiggle underline for playful feel */
h2, .feature h3, .section h2:not(:first-child) {
  position: relative;
}
h2:after, .feature h3:after {
  content: '';
  display: block;
  width: 58px;
  height: 10px;
  background: url('data:image/svg+xml;utf8,<svg width="58" height="8" xmlns="http://www.w3.org/2000/svg"><path d="M2 7c10-8 26 8 38-5 9-9 12 5 16 5" stroke="%23ffb300" stroke-width="3" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: left bottom;
  margin-top: -10px;
  margin-bottom: 10px;
  margin-left: 0;
}

/* ------------------- ANIMATIONS & MICRO-INTERACTIONS ------------------- */
.card, .feature, .testimonial-card, .blog-post, .cta-button {
  transition: box-shadow 0.2s, transform 0.15s, border-top-color 0.15s, border-left-color 0.15s, background 0.15s;
}
.card:hover, .feature:hover, .testimonial-card:hover, .blog-post:hover {
  box-shadow: 0 10px 40px #e8eaf6cc, 0 5px 20px #ffb30018;
  transform: translateY(-5px) scale(1.03) rotate(-2deg);
}

.cta-button:active { transform: scale(0.96); }

/* Swiping/Scrolling testimonials */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-color: #ffb300 #e8eaf6;
}

/* Hide scroll bar for testimonials on touch/mobile */
.testimonial-slider::-webkit-scrollbar {
  display: none;
}

/* ===================== CRITICAL FLEXBOX PATTERNS ===================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===================== RESPONSIVE FLEXBOX/COLUMN BREAKS ===================== */
@media (max-width: 1024px) {
  .feature-grid, .solution-grid, .blog-grid, .card-container, .testimonial-slider {
    flex-direction: row;
    gap: 15px;
  }
}
@media (max-width: 768px) {
  .feature, .blog-post, .card {
    flex: 1 1 84vw;
    min-width: 180px;
    max-width: 98vw;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid, .solution-grid, .blog-grid, .card-container,
  .testimonial-slider, .client-logos {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .footer-flex {
    gap: 18px;
  }
  .testimonial-card {
    max-width: 98vw;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .feature, .blog-post, .card, .testimonial-card {
    padding: 12px 6px 12px 8px;
    min-width: unset;
    border-radius: 12px;
  }
  .section, .cta-bg {
    border-radius: 8px;
    margin-bottom: 24px;
    padding: 19px 4px;
  }
  .client-logos img {
    height: 33px;
  }
  .feature h3:after, h2:after {
    margin-bottom: 2px;
    height: 6px;
    width: 29px;
  }
}

/* ===================== COOKIE CONSENT BANNER ===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40000;
  background: #fff;
  color: #23395d;
  box-shadow: 0 -2px 24px #23395d22;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 24px 16px 14px 16px;
  border-radius: 18px 18px 0 0;
  transition: transform 0.4s cubic-bezier(.42, .24, .21, 1.03), opacity 0.25s;
  font-size: 1.05rem;
  max-width: 98vw;
  margin: 0 auto;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  padding: 10px 24px;
  border-radius: 28px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  margin-right: 4px;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.14s;
}
.cookie-banner .cookie-accept {
  background: #ffb300;
  color: #23395d;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: #fff4cc;
  color: #23395d;
}
.cookie-banner .cookie-reject {
  background: #e8eaf6;
  color: #23395d;
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #d0d4ea;
  color: #1562cf;
}
.cookie-banner .cookie-settings {
  background: #fff;
  color: #ffb300;
  border: 1.5px solid #ffb300;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #ffb300;
  color: #fff;
}

/* Cookie Preferences Modal popup */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 42000;
  background: rgba(35,57,93,0.88);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-dialog {
  background: #fff;
  color: #23395d;
  padding: 32px 28px 30px 28px;
  border-radius: 24px;
  box-shadow: 0 7px 40px 0 #ffb30029, 0 2px 14px #23395d22;
  max-width: 94vw;
  min-width: 300px;
  min-height: 220px;
}
.cookie-modal-dialog h2 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #ffb300;
  width: 19px;
  height: 19px;
}
.cookie-essential {
  opacity: 0.66;
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}

@media (max-width: 420px) {
  .cookie-modal-dialog {
    padding: 14px 8px 16px 8px;
    border-radius: 14px;
  }
  .cookie-modal-actions {
    gap: 6px;
  }
  .cookie-category {
    font-size: 1rem;
    gap: 7px;
  }
}

@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    font-size: 0.98rem;
    padding: 10px 4px 10px 4px;
    border-radius: 10px 10px 0 0;
  }
}

/* ===================== EXTRAS & ACCESSIBILITY ===================== */
:focus-visible {
  outline: 2.3px dashed #1562cf;
  outline-offset: 2.5px;
}
::-webkit-input-placeholder, ::placeholder {
  color: #b6bccc;
  opacity: 0.84;
}

/* ================ END OF CSS ================ */