/* =====================
  RESET, BASE & FONTS
====================== */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #f8f9fc;
  color: #223978;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #223978;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #56A57C;
}

ul, ol {
  padding-left: 1.3em;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: #223978;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 18px;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 1.32rem;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

p {
  font-size: 1.06rem;
  margin-bottom: 13px;
}

strong {
  font-weight: 700;
}

/* Vibrant and Artistic Touches */
:root {
  --color-primary: #223978;
  --color-secondary: #56A57C;
  --color-accent: #F2F2F2;
  --color-highlight: #ffd166;
  --color-extra: #9327f6;
  --color-card-bg: #fff;
  --color-decorative: #e5515e;
}

body {
  background: linear-gradient(120deg, #f5f6fa 94%, var(--color-accent) 100%);
  min-height: 100vh;
}

/* ===========
  CONTAINERS & SECTIONS
============= */
.container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===========
  HEADER & MAIN NAV
============= */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 13px 0 rgba(34, 57, 120, 0.07), 0 1.5px 0 0 var(--color-secondary) inset;
  position: sticky;
  top: 0;
  z-index: 9200;
  transition: box-shadow 0.25s;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  justify-content: flex-start;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}
.main-nav img {
  height: 42px;
  margin-right: 16px;
  flex-shrink: 0;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.075rem;
  color: var(--color-primary);
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 6px;
  padding: 8px 14px;
  transition: background 0.19s, color 0.19s;
}
.main-nav a:hover:not(.cta-primary),
.main-nav a:focus:not(.cta-primary) {
  background: var(--color-secondary);
  color: #fff;
}

.cta-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--color-extra);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 22px;
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(146,39,246,0.09);
  transition: background 0.23s, box-shadow 0.23s, transform 0.13s;
  border: none;
  cursor: pointer;
  position: relative;
  outline: none;
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--color-decorative);
  color: #fff !important;
  transform: translateY(-2px) scale(1.025) rotate(-1.5deg);
  box-shadow: 0 5px 24px rgba(146,39,246,0.13);
}

/* ===========
  MOBILE NAVIGATION
============= */
.mobile-menu-toggle {
  display: none;
  background: var(--color-extra);
  color: #fff;
  font-size: 2rem;
  padding: 4px 13px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 14px;
  right: 20px;
  z-index: 9999;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-decorative);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(34,57,120,0.7);
  z-index: 9980;
  transform: translateX(100%);
  transition: transform 0.43s cubic-bezier(.68,-0.55,.27,1.55);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--color-extra);
  color: white;
  border: none;
  font-size: 2.2rem;
  padding: 8px 20px 4px 20px;
  border-radius: 16px;
  margin: 18px 20px 0 0;
  align-self: flex-end;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10011;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-decorative);
}

.mobile-nav {
  width: 100%;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 10px 32px rgba(34,57,120,0.13);
  padding: 38px 30px 40px 34px;
  max-width: 92vw;
}
.mobile-nav a {
  font-size: 1.34rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  padding: 12px 0 12px 10px;
  width: 100%;
  border-radius: 7px;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
  display: block;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 18px;
  }
  .main-nav a {
    font-size: 1rem;
    padding: 7px 10px;
  }
}
@media (max-width: 850px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===========
  HERO & CTA
============= */
main .section:first-of-type {
  background: linear-gradient(100deg, #f2f2f2 45%, #FFDEF8 100%);
  box-shadow: 0 6px 30px -16px var(--color-primary, #223978);
  border-radius: 30px;
  margin-bottom: 60px;
}
.text-section h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1.2px;
  color: var(--color-extra);
  line-height: 1.17;
  margin-bottom: 12px;
  text-shadow: 1px 10px 24px #c7b6e8, 0 2px 0 #fff;
}
.text-section p {
  font-size: 1.17rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #223978;
  max-width: 570px;
  margin-bottom: 13px;
}


/* ===========
  FEATURE GRID, CARDS
============= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.feature {
  background: var(--color-card-bg);
  border-radius: 22px;
  box-shadow: 0 4px 22px -10px rgba(34,57,120,0.19), 0 1.5px 0 0 #ffd166 inset;
  padding: 26px 22px 22px 22px;
  max-width: 310px;
  min-width: 230px;
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border-left: 5px solid var(--color-extra);
  transition: box-shadow 0.22s, transform 0.18s;
}
.feature:hover,
.feature:focus-within {
  box-shadow: 0 10px 34px -10px var(--color-decorative, #e5515e), 0 2px 9px rgba(86,165,124,0.10);
  transform: translateY(-3px) scale(1.021) rotate(-1deg);
}
.feature img {
  height: 40px;
  width: 40px;
  margin-bottom: 3px;
  margin-top: 2px;
}
.feature h3 {
  color: var(--color-secondary);
  font-size: 1.19rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.feature p {
  font-family: 'Open Sans', Arial,sans-serif;
  font-size: 1.04rem;
  color: #38417a;
}

ul {
  margin-top: 10px;
  margin-bottom: 8px;
}
ul li {
  font-size: 1.07rem;
  color: #223978;
  padding-left: 0.4em;
  position: relative;
  list-style-type: disc;
}
ul li::marker {
  color: var(--color-secondary);
}

/* Card & content layouts */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border-radius: 20px;
  box-shadow: 0 2px 16px -8px #778abb;
  padding: 26px 28px 22px 23px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.19s, transform 0.17s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 40px -5px var(--color-extra, #9327f6), 0 4px 12px #dbe2fd;
  transform: translateY(-3px) scale(1.018) rotate(-1.5deg);
}
.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;
  margin-bottom: 20px;
}
.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;
}

/* ===========
  TESTIMONIALS
============= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 24px;
  background: #fff;
  border: 2.5px solid var(--color-highlight);
  box-shadow: 0 3px 16px -8px rgba(86, 165, 124,0.10), 0 0.5px 0 0 var(--color-secondary) inset;
  flex-wrap: wrap;
  min-height: 80px;
}
.testimonial-card p {
  margin-bottom: 2px;
  font-size: 1.1rem;
  color: #26275f;
}
.testimonial-card strong {
  color: var(--color-extra);
}
.testimonial-card img {
  display: inline-block;
  width: 22px;
  height: 22px;
}

/* High-contrast, readable text */
.testimonial-card,
.testimonial-card p,
.testimonial-card strong {
  color: #222851;
  background: #fff;
}

/* ===========
  FOOTER
============= */
footer {
  background: #223978;
  color: #fff;
  padding: 42px 0 0 0;
  margin-top: 50px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 5px 13px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--color-secondary);
  color: #223978;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  margin-bottom: 19px;
  font-size: 1rem;
}
.footer-contact p {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.footer-contact img {
  width: 18px;
  height: 18px;
}
footer p {
  color: #d4deeb;
  text-align: center;
  margin-top: 24px;
  font-size: 0.92em;
}

/* ===========
  BUTTONS & LINKS
============= */
button, .cta-primary {
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  outline: none;
  border: none;
  transition: background 0.2s, box-shadow 0.17s, transform 0.13s;
}
button:active, .cta-primary:active {
  transform: scale(0.97);
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fffbe9;
  color: #223978;
  padding: 20px 20px 23px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 30px -10px #ffbe55, 0 1.5px 0 0 var(--color-highlight) inset;
  border-top: 2px solid var(--color-highlight);
  z-index: 21500;
  gap: 18px;
  font-size: 1.02rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(.34,1.56,.42,.93);
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner .cookie-btn {
  background: var(--color-secondary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 13px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  box-shadow: 0 2px 6px #d7eddf;
  transition: background 0.18s, color 0.18s, transform 0.13s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--color-extra);
  color: #fff;
  transform: scale(1.07);
}
.cookie-banner .reject-btn {
  background: var(--color-decorative);
}
.cookie-banner .settings-btn {
  background: var(--color-highlight);
  color: #223978;
  font-weight: 600;
}
.cookie-banner .settings-btn:hover,
.cookie-banner .settings-btn:focus {
  background: var(--color-extra);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,57,120,0.68);
  backdrop-filter: blur(3.5px);
  z-index: 21800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(.34,1.56,.42,.93);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 26px;
  width: 95vw;
  max-width: 430px;
  padding: 38px 32px 30px 32px;
  box-shadow: 0 4px 38px -7px var(--color-extra, #9327f6);
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.37rem;
  color: var(--color-extra);
  margin-bottom: 4px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 7px;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 36px;
  height: 19px;
  border-radius: 11px;
  background: #d9d9d9;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 0.2s;
}
.cookie-modal .cookie-toggle:checked {
  background: var(--color-secondary);
}
.cookie-modal .cookie-toggle:before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px #bbb;
  transition: left 0.22s;
}
.cookie-modal .cookie-toggle:checked:before {
  left: 19px;
}
.cookie-modal .category-label {
  font-weight: 700;
  color: var(--color-primary);
}
.cookie-modal .essential {
  opacity: 0.62;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.9rem;
  color: var(--color-extra);
  cursor: pointer;
  border-radius: 10px;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  background: #e0dbfc;
}
.cookie-modal .cookie-save-btn {
  background: var(--color-secondary);
  color: #fff;
  border-radius: 14px;
  padding: 10px 25px;
  margin-top: 13px;
  align-self: flex-end;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background 0.20s, color 0.16s, transform 0.13s;
}
.cookie-modal .cookie-save-btn:hover,
.cookie-modal .cookie-save-btn:focus {
  background: var(--color-extra);
  color: #fff;
  transform: scale(1.06);
}

/* ===========
  DECORATIVE ARTISTIC STYLES
============= */
.feature, .testimonial-card, .card {
  /* Colorful accent squiggle or brush for "creative" look */
}
.feature::after {
  content: '';
  display: block;
  position: absolute;
  right: -24px;
  bottom: -22px;
  width: 60px;
  height: 37px;
  background: url('../assets/decor-scribble.svg') no-repeat center/contain;
  opacity: 0.10;
  pointer-events: none;
}

.section {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 1.5px 0 0 var(--color-secondary) inset, 0 1.5px 14px #eae7fa;
}
main .section:nth-child(even) {
  background: #f5faf9;
}
main .section:nth-child(odd) {
  background: #fff;
}
/* Artistic underlining for h2 */
h2 {
  position: relative;
  display: inline-block;
}
h2::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: -7px;
  height: 6px;
  width: 44%;
  border-radius: 8px;
  background: var(--color-highlight);
  opacity: 0.43;
  z-index: 2;
}

/* Fun font/funky appearance for accent, highlight creative-artistic */
.cta-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.1em;
  box-shadow: 0 3px 20px -3px #9327f660, 0 4px 18px -5px #fdb9ee90;
  background-image: linear-gradient(110deg, var(--color-extra) 73%, var(--color-decorative) 100%);
}
.cta-primary:before {
  content: '';
  position: absolute;
  left: -13px;
  top: 0;
  width: 13px;
  height: 100%;
  border-radius: 12px;
  background: var(--color-highlight);
  opacity: 0.35;
  z-index: 1;
}
.cta-primary:active {
  box-shadow: 0 1.5px 4px #9327f688, 0 2px 8px #fdb9ee33;
}

/* Microinteractions */
.card, .feature, .testimonial-card {
  transition: box-shadow 0.23s, transform 0.17s;
}
.card:hover, .feature:hover, .testimonial-card:hover {
  transform: translateY(-5px) scale(1.014);
  box-shadow: 0 12px 40px -8px var(--color-decorative), 0 5px 18px #8296d440;
}

/* ===========
  RESPONSIVE DESIGN
============= */
@media (max-width: 1060px) {
  .container { max-width: 99vw; padding: 0 7vw; }
  .feature-grid { gap: 22px; }
}
@media (max-width: 980px) {
  .container { padding: 0 15px; }
  .feature-grid { gap: 18px; }
}
@media (max-width: 850px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .main-nav { display: none; }
  .section { padding: 35px 10px; }
  .feature-grid { gap: 14px; }
}
@media (max-width: 760px) {
  .container { padding: 0 6px; }
  .section { padding: 30px 3px; }
  .feature-grid { flex-direction: column; gap: 16px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; }
  .footer-nav { flex-direction: column; gap: 10px; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1rem; }
  .feature, .card { min-width: 100%; padding: 13px 8px 16px 12px; }
  .footer-contact { font-size: 0.9rem; }
}

/* ===========
  MISC HELPERS
============= */
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  top: auto;
  overflow: hidden;
}

/* ===========
  ARTISTIC ELEMENTS (Decorative Only, not for content)
============= */
.feature::before {
  content: '';
  display: block;
  position: absolute;
  top: -18px;
  left: -20px;
  width: 54px;
  height: 18px;
  background: url('../assets/decor-brush.svg') no-repeat center/contain;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

/* END CSS */
