/* RESET & BASELINE */
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, b, u, i, center,
dl, dt, dd, menu, 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, 
main, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F5F7FA;
  color: #003366;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #003366;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
a:hover, a:focus {
  color: #FFD900;
  text-decoration: underline;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  font-size: 16px;
}
img {
  max-width: 100%;
  display: inline-block;
}
hr {
  border: none;
  border-top: 1.5px dashed #FFD900;
  margin: 32px 0;
}
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

/* TYPOGRAPHY */
h1, .h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2.375rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: #003366;
}
h2, .h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #003366;
}
h3, .h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #003366;
}
h4, .h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
p, .text-section {
  font-size: 16px;
  margin-bottom: 12px;
  color: #22324C;
}
strong {
  font-weight: 700;
}

/* LAYOUT SECTIONS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 20px 0 rgba(0,51,102,0.08);
}

/* HERO SECTIONS */
.hero {
  background: #FFD900;
  background: linear-gradient(96deg, #FFD900 50%, #FFE255 90%);
  border-radius: 0 0 44px 44px;
  box-shadow: 0 2px 20px 0 rgba(255, 217, 0, 0.10);
  padding: 50px 0 36px 0;
  margin-bottom: 48px;
}
.hero .container {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 220px;
}
.hero h1 {
  color: #003366;
  font-size: 2.5rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.hero p {
  font-size: 1.2rem;
  color: #003366;
  margin-bottom: 20px;
}

/* NAVIGATION & HEADER */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 6px 18px 0 rgba(0,51,102,0.07);
  position: sticky;
  top: 0;
  z-index: 92;
  min-height: 70px;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 14px 0 12px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 17px;
}
nav a {
  padding: 7px 18px;
  border-radius: 18px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  color: #003366;
  position: relative;
}
nav a:hover, nav a:focus {
  color: #FFD900;
  background: rgba(0,56,114,0.045);
  text-decoration: none;
}
nav a.cta {
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 24px;
  padding: 10px 32px;
  margin-left: 8px;
  font-size: 1.05em;
  box-shadow: 0 2px 8px 0 rgba(0,51,102,0.06);
}
nav a.primary {
  background: #003366;
  color: #FFD900;
  border: 2px solid #FFD900;
}
nav a.primary:hover, nav a.primary:focus {
  background: #FFD900;
  color: #003366;
  box-shadow: 0 2px 16px #FFD90044;
}
nav a.secondary {
  background: #FFD900;
  color: #003366;
  border: 2px solid #003366;
}
nav a.secondary:hover, nav a.secondary:focus {
  background: #003366;
  color: #FFD900;
  box-shadow: 0 3px 16px #00336622;
}
nav img {
  height: 38px;
  width: auto;
  margin-right: 12px;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFD900;
  font-size: 2.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  position: absolute;
  right: 18px;
  top: 14px;
  z-index: 100;
  border-radius: 10px;
  padding: 2px 10px 0 10px;
  transition: background 0.13s;
}
.mobile-menu-toggle:focus {
  background: #ffe97a35;
  outline: none;
}
.mobile-menu {
  display: none; /* Controlled by JS */
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 110;
  background: #FFD900;
  transform: translateX(-110vw);
  transition: transform 0.32s cubic-bezier(.75,-0.12,.24,1.15);
  box-shadow: 0 0 52px 0 #FFD90079;
  padding-top: 40px;
}
.mobile-menu.open {
  display: block;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 14px;
  right: 24px;
  background: #003366;
  border: none;
  color: #FFD900;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: background 0.15s, color 0.12s;
  z-index: 120;
}
.mobile-menu-close:hover {
  background: #FFD900;
  color: #003366;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 34px;
  align-items: center;
  margin-top: 60px;
}
.mobile-nav a {
  font-size: 1.4rem;
  color: #003366;
  font-weight: 700;
  padding: 16px 0;
  width: 85vw;
  border-bottom: 1.5px dashed #FFD90044;
  border-radius: 0;
  text-align: left;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFE255;
  color: #003366;
}

/* == MAIN CONTENT SPACING & STRUCTURAL CLASSES == */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 #00336613;
  margin-bottom: 20px;
  padding: 26px 22px;
  position: relative;
  transition: box-shadow .2s, transform .18s;
}
.card:hover {
  box-shadow: 0 6px 40px 0 #0033662a;
  transform: translateY(-3px) scale(1.02) rotate(-0.5deg);
}
.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: flex-start;
  gap: 12px;
  background: #FCFCFD;
  border-radius: 22px;
  box-shadow: 0 4px 22px 0 #0033660c;
  padding: 20px;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 470px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #194077;
  transition: box-shadow 0.18s, transform .16s;
}
.testimonial-card strong {
  color: #003366;
  font-size: 1em;
  letter-spacing: .5px;
  font-weight: 700;
}
.testimonial-card:hover {
  box-shadow: 0 6px 38px #FFD90018;
  transform: scale(1.03) rotate(1deg);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFE255;
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 1.5px 8px 0 #FFD90033;
  margin-bottom: 20px;
}

/* == SPECIAL GRIDS == */
.feature-grid, .case-grid, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div, .case-grid > div, .blog-list > div {
  flex: 1 1 240px;
  min-width: 220px;
  background: #FFFDEB;
  border-radius: 18px;
  box-shadow: 0 2px 24px #ffd90018;
  padding: 24px 18px 20px 18px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.15s;
  text-align: left;
  position: relative;
}
.feature-grid > div:hover, .case-grid > div:hover, .blog-list > div:hover {
  box-shadow: 0 6px 32px #00336621;
  transform: rotate(-2deg) scale(1.024);
}
.feature-grid img, .case-grid img, .blog-list img {
  width: 44px;
  margin-bottom: 14px;
}

.logo-bar {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 38px 0 18px 0;
}
.logo-bar img {
  height: 40px;
  width: auto;
  filter: grayscale(40%);
  opacity: 0.7;
  transition: filter 0.18s, opacity 0.18s;
}
.logo-bar img:hover { opacity: 1; filter: none; }

.category-filters {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02em;
}
.category-filters a {
  background: #FFD900;
  color: #003366;
  border-radius: 16px;
  padding: 7px 20px;
  margin-right: 8px;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
}
.category-filters a:hover, .category-filters a:focus {
  background: #003366;
  color: #FFD900;
  text-decoration: none;
}

.newsletter-signup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: #FFFDEB;
  border-radius: 22px;
  padding: 18px 30px;
  box-shadow: 0 3px 18px #FFD90022;
}
.newsletter-signup p {
  font-size: 1.1em;
  margin: 0;
}

/* == INPUTS & FORMS */
input[type="search"] {
  width: 100%;
  max-width: 360px;
  padding: 10px 19px;
  font-size: 17px;
  border-radius: 16px;
  border: 2px solid #FFD900;
  outline: none;
  transition: border .15s;
  margin-top: 18px;
  margin-bottom: 10px;
  background: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #003366;
}
input[type="search"]:focus {
  border-color: #003366;
  background: #fffbe5;
}

/* == CTAS & BUTTONS == */
.cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1em;
  border: none;
  border-radius: 32px;
  padding: 13px 36px;
  margin-top: 18px;
  margin-bottom: 12px;
  cursor: pointer;
  background: #FFD900;
  color: #003366;
  box-shadow: 0 2px 18px 0 #FFD90033, 0 1px 2px #EFD90010;
  transition: background 0.18s, color 0.18s, box-shadow 0.19s, transform 0.13s;
  outline: none;
}
.cta.primary {
  background: #003366;
  color: #FFD900;
  border: 2.5px solid #FFD900;
}
.cta.primary:hover, .cta.primary:focus {
  background: #FFD900;
  color: #003366;
  box-shadow: 0 4px 18px 0 #FFD90050;
  text-decoration: none;
  transform: scale(1.04) rotate(-1deg);
}
.cta.secondary {
  background: #FFD900;
  color: #003366;
  border: 2.5px solid #003366;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #003366;
  color: #FFD900;
  box-shadow: 0 3px 18px #00336632;
  font-weight: 800;
  transform: scale(1.05) rotate(2deg);
}
button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  outline: none;
}

/* == FOOTER == */
footer {
  background: #003366;
  color: #FFD900;
  padding: 38px 0 20px 0;
  border-radius: 44px 44px 0 0;
  box-shadow: 0 -3px 24px #00336612;
  margin-top: 36px;
}
footer nav {
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
footer nav a {
  color: #FFD900;
  font-weight: 500;
  font-size: 1.05em;
  transition: text-decoration 0.12s, color 0.12s;
  border-radius: 12px;
  padding: 4px 14px;
}
footer nav a:hover, footer nav a:focus {
  color: #003366;
  background: #FFD900;
}
footer .text-section {
  font-size: 0.98em;
  color: #FFD900;
}

/* == COOKIE CONSENT BANNER == */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #FFD900;
  color: #003366;
  box-shadow: 0 -4px 36px #FFD90060;
  z-index: 1001;
  padding: 25px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  animation: cookie-slidein 0.8s cubic-bezier(.67,0,.41,1.04) 1;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
}
@keyframes cookie-slidein {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 18px;
  margin-top: 7px;
}
.cookie-consent-banner button {
  border-radius: 20px;
  font-size: 1em;
  padding: 8px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin: 0;
  border: none;
  cursor: pointer;
  background: #003366;
  color: #FFD900;
  transition: background 0.14s, color 0.14s;
}
.cookie-consent-banner button.accept {
  background: #003366;
  color: #FFD900;
}
.cookie-consent-banner button.accept:hover {
  background: #12b560;
  color: #FFD900;
}
.cookie-consent-banner button.reject {
  background: #FF4053;
  color: #fff;
}
.cookie-consent-banner button.reject:hover {
  background: #bb0531;
}
.cookie-consent-banner button.settings {
  background: #FFD900;
  color: #003366;
  border: 2px solid #003366;
}
.cookie-consent-banner button.settings:hover {
  background: #003366;
  color: #FFD900;
}

/* == COOKIE MODAL == */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 51, 102, 0.43);
  z-index: 1102;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein 0.3s ease;
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fffbe5;
  border-radius: 22px;
  padding: 34px 26px 28px 26px;
  box-shadow: 0 8px 46px #00336638;
  width: 98%;
  max-width: 415px;
  color: #003366;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-popin 0.22s cubic-bezier(.6,-0.24,.43,1.46);
}
@keyframes modal-popin {
  from { transform: scale(0.86); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 12px;
  font-size: 1.4em;
  color: #003366;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-preferences-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-preferences-list label, .cookie-preferences-list p {
  font-size: 1.09em;
  color: #003366;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-modal .btn-block-modal {
  display: flex;
  gap: 13px;
  margin-top: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-modal button {
  border-radius: 18px;
  padding: 8px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  font-weight: 600;
  border: none;
  background: #003366;
  color: #FFD900;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal button.accept {
  background: #003366;
  color: #FFD900;
}
.cookie-modal button.accept:hover { background: #FFD900; color: #003366; }
.cookie-modal button.cancel {
  background: #FFD900;
  color: #003366;
  border: 2px solid #003366;
}
.cookie-modal button.cancel:hover {
  background: #fff;
  color: #003366;
}
.cookie-switch {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
}
.cookie-switch input[type=checkbox] {
  appearance: none;
  width: 30px; height: 18px;
  background: #FFD900;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.15s;
  margin-right: 7px;
}
.cookie-switch input[type=checkbox]:checked {
  background: #003366;
}
.cookie-switch input[type=checkbox]::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #00336624;
  transition: left 0.14s;
}
.cookie-switch input[type=checkbox]:checked::after {
  left: 15px;
}
.cookie-modal .category-note {
  font-size: .97em;
  color: #194077;
  margin-bottom: 8px;
}

/* == ANIMATED ELEMENTS (subtle) == */
@keyframes playful-bounce {
  0%, 100% { transform: translateY(0); }
  12% { transform: translateY(-14px) scale(1.05); }
  20% { transform: translateY(5px) scale(1.02); }
  28% { transform: translateY(-4px); }
  60% { transform: translateY(-7px); }
  86% { transform: translateY(2px); }
}
.feature-grid > div, .case-grid > div, .blog-list > div {
  animation: playful-bounce 4s infinite cubic-bezier(.6,-0.1,.5,1.23);
  animation-delay: 0.1s;
}
.card, .testimonial-card {
  animation: playful-bounce 6s infinite alternate cubic-bezier(.67,.01,.4,1.4);
  animation-delay: .25s;
}

/* == VISUAL TWEAKS == */
h1, h2, h3, h4 {
  letter-spacing: -0.6px;
}
section > .container > .content-wrapper {
  margin: 0 auto;
  max-width: 950px;
}
.text-section ul,
.text-section ol {
  margin-top: 10px;
  margin-bottom: 10px;
}
.text-section ul li img {
  margin-right: 9px;
  vertical-align: middle; width: 22px; height: 22px;
}
.text-section a {
  font-weight: 600;
  color: #003366;
  text-decoration: underline;
  transition: color .14s;
}
.text-section a:hover { color: #FFD900; }

/* == RESPONSIVE DESIGN == */
@media (max-width: 992px) {
  .feature-grid, .case-grid, .blog-list, .logo-bar, .content-grid, .card-container {
    gap: 16px;
  }
  nav {
    gap: 14px;
    font-size: 99%;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: none;
    padding: 0 7px;
  }
  .hero {
    border-radius: 0 0 28px 28px;
    padding: 38px 0 20px 0;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .case-grid, .blog-list {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid > div, .case-grid > div, .blog-list > div {
    min-width: 0;
    width: 97%;
    margin: 0 auto 18px auto;
    padding: 19px 12px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .newsletter-signup {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    padding: 14px 7px;
  }
  .logo-bar {
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    min-width: 0;
    max-width: none;
    font-size: 99%;
    width: 100%;
  }
}
@media (max-width: 520px) {
  h1, .h1 { font-size: 1.35rem; }
  h2, .h2 { font-size: 1.09rem; }
  .container, .section { padding-left: 3.5px; padding-right: 3.5px; }
  .cookie-modal { padding: 18px 7px 14px 7px; }
}

/* Spacing for embedded .section in main (match pattern) */
main > section {
  margin-bottom: 60px;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
main > section:last-child {
  margin-bottom: 0;
}

/* == UTILITY CLASSES & ANIMATIONS == */
.hide { display: none !important; }
.show { display: block !important; }
.flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

::-webkit-input-placeholder { color: #003366aa; font-size: 0.96em; }
::-moz-placeholder { color: #003366aa; font-size: 0.96em; }
:-ms-input-placeholder { color: #003366aa; font-size: 0.96em; }
::placeholder { color: #003366aa; font-size: 0.96em; }

/* Remove absolute positioning for content — allowed for decorations only */
.card, .card-content, .testimonial-card, .feature-grid > div, .case-grid > div, .blog-list > div {
  position: relative;
}
