/* CSS RESET & NORMALIZE */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; font-family: 'Roboto', Arial, sans-serif; }
body { background: #F7F9FB; color: #172647; font-weight: 400; line-height: 1.6; }
img { max-width: 100%; display: block; height: auto; }
a { color: #1D6FB2; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #F3B42C; }
ul { list-style: none; }
strong { font-weight: 700; }

/* BRAND FONTS */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@700&family=Roboto:wght@400;500;700&display=swap');
h1, h2, h3, h4 { font-family: 'Baloo 2', cursive; color: #1D6FB2; margin-bottom: 16px; font-weight: 700; }
h1 { font-size: 2.5rem; margin-bottom: 24px; line-height: 1.15; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px 0 rgba(29,111,178,.06);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

/* ELECTRIC COLORFUL DESIGN ACCENTS */
.cta-primary, .cta-secondary, .mobile-menu-toggle, .cookie-banner button {
  font-family: 'Baloo 2', cursive;
  letter-spacing: 0.05em;
  font-size: 1.13rem;
  font-weight: 700;
  border: none;
  outline: none;
  border-radius: 32px;
  cursor: pointer;
  padding: 15px 36px;
  background: #1D6FB2;
  color: #fff;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.14s;
  box-shadow: 0 2px 16px 0 rgba(29,111,178, 0.10);
  display: inline-block;
  margin-top: 12px;
}
.cta-secondary {
  background: #F3B42C;
  color: #1D6FB2;
  box-shadow: 0 2px 16px 0 rgba(243,180,44, 0.10);
}
.cta-primary:hover, .cta-secondary:hover, .cookie-banner button:hover {
  background: #F3B42C;
  color: #1D6FB2;
  transform: translateY(-2px) scale(1.03);
}
.cta-secondary:hover {
  background: #1D6FB2;
  color: #fff;
}

/* HEADER + MAIN NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(29,111,178, 0.1);
  position: relative;
  z-index: 20;
}
header > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 12px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Baloo 2', cursive;
  color: #1D6FB2;
  font-size: 1rem;
  font-weight: 700;
  background: none;
  padding: 10px 8px;
  border-radius: 9px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F3B42C;
  color: #fff;
}

header img {
  height: 48px;
  width: auto;
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .cta-primary { display: none !important; }
  header > .container { flex-direction: row; }
}
@media (max-width: 560px) {
  header img { height: 38px; }
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 16px;
  top: 26px;
  padding: 8px 16px;
  background: #1D6FB2;
  color: #fff;
  font-size: 2rem;
  z-index: 102;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(29,111,178,.07);
}
@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }
}
.mobile-menu {
  position: fixed;
  z-index: 110;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #fff;
  box-shadow: 0 0 0 120vw rgba(29,111,178,0.10);
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.60,0.18,0.62,1.12), box-shadow 0.16s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #1D6FB2;
  font-size: 2rem;
  margin-bottom: 14px;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 120;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #F3B42C; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Baloo 2', cursive;
  color: #1D6FB2;
  background: #F7F9FB;
  border-radius: 12px;
  padding: 17px 10px;
  font-size: 1.17rem;
  font-weight: 700;
  transition: background 0.18s, color 0.18s, transform 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F3B42C;
  color: #fff;
  transform: scale(1.05);
}

/* Hide mobile menu by default */
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle { display: none; }
}

/* GENERAL SECTIONS & WRAPPERS */
section {
  margin-bottom: 60px;
  width: 100%;
  position: relative;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 14px 0 rgba(29,111,178,.09);
  position: relative;
  padding: 28px 24px 24px 24px;
}

.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;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  color: #28303d;
}
.text-section ul,
.text-section ol {
  margin: 0 0 10px 18px;
  padding-left: 12px;
  color: #1D6FB2;
  font-weight: 500;
  font-size: 1rem;
  list-style: disc inside;
}
.text-section ul li,
.text-section ol li {
  margin-bottom: 4px;
  color: #25578B;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 12px;
}
.feature-grid > div {
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 210px;
  background: #F7F9FB;
  border-radius: 18px;
  padding: 22px 16px 18px 16px;
  box-shadow: 0 2px 14px 0 rgba(243,180,44,.08);
  transition: box-shadow 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 18px 0 rgba(29,111,178,.14);
}

@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
}

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

/* TESTIMONIALS */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-top: 8px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 26px 24px 22px 24px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(243,180,44,.18);
  min-width: 220px;
  max-width: 340px;
  flex: 1 1 250px;
  color: #222c43;
  font-size: 1.09rem;
  position: relative;
  z-index: 0;
}
.testimonial-card p {
  color: #172647;
  font-weight: 500;
  text-align: center;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: #1D6FB2;
}
@media (max-width: 900px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 19px;
  }
}

/* PRODUCT GRID */
.product-grid { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 12px; }
.product-grid ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 330px;
}
.product-grid ul li {
  background: #F7F9FB;
  border-radius: 14px;
  box-shadow: 0 1px 8px 0 rgba(29,111,178,.07);
  padding: 22px 18px;
  margin-bottom: 12px;
}
.product-grid ul li h3, .product-grid ul li h4 {
  font-size: 1.15rem;
  color: #1D6FB2;
  font-family: 'Baloo 2', cursive;
}
.product-grid ul li a {
  margin-top: 10px;
  display: inline-block;
  font-weight: 600;
  color: #F3B42C;
  background: none;
  border: 2px solid #F3B42C;
  border-radius: 12px;
  padding: 8px 18px;
  transition: background 0.18s, color 0.18s;
}
.product-grid ul li a:hover, .product-grid ul li a:focus {
  background: #F3B42C;
  color: #fff;
}
.product-grid .sorting-options, .product-grid .filter-tags {
  margin-top: 22px;
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.product-grid .sorting-options span, .product-grid .filter-tags span {
  background: #1D6FB2;
  color: #fff;
  border-radius: 9px;
  padding: 7px 16px;
  font-weight: 700;
  font-family: 'Baloo 2', cursive;
  font-size: 1.01rem;
}

@media (max-width: 900px) {
 .product-grid { flex-direction: column; gap: 18px; }
 .product-grid ul { width: 100%; }
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  align-items: stretch;
}
.category-grid li {
  flex: 1 1 220px;
  background: #1D6FB2;
  border-radius: 16px;
  text-align: center;
  transition: box-shadow 0.18s, background 0.22s;
  box-shadow: 0 1px 10px 0 rgba(243,180,44, .09);
  min-width: 170px;
  margin-bottom: 12px;
}
.category-grid li a {
  color: #fff;
  font-family: 'Baloo 2', cursive;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  align-items: center;
  font-weight: 700;
  gap: 10px;
  font-size: 1.1rem;
}
.category-grid li a img {
  height: 42px;
}
.category-grid li:hover, .category-grid li:focus-within {
  background: #F3B42C;
  box-shadow: 0 8px 24px 0 rgba(29,111,178,0.11);
}
.category-grid li:hover a, .category-grid li:focus-within a {
  color: #1D6FB2;
}
@media (max-width: 700px) {
  .category-grid { flex-direction: column; gap: 16px; }
}

/* BLOG LIST */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 10px;
}
.blog-list li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(243,180,44,.08);
  padding: 22px 20px 16px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-list li h3 {
  color: #1D6FB2;
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.blog-list li a {
  margin-top: 6px;
  color: #F3B42C;
  font-weight: 700;
  transition: color 0.18s;
}
.blog-list li a:hover, .blog-list li a:focus { color: #1D6FB2; }

.categories-filter {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.categories-filter span {
  background: #F3B42C;
  color: #fff;
  border-radius: 8px;
  padding: 7px 16px;
  font-family: 'Baloo 2', cursive;
  font-size: 1.01rem;
}
.newsletter {
  margin-top: 30px;
}

/* CTA BANNER */
.cta-banner {
  background: #F3B42C;
  color: #fff !important;
  box-shadow: 0 6px 24px 0 rgba(243,180,44,0.16);
  border-radius: 24px;
  text-align: center;
  align-items: center;
}
.cta-banner h2, .cta-banner p {
  color: #fff !important;
}
.cta-banner .cta-primary, .cta-banner .cta-secondary {
  background: #fff;
  color: #1D6FB2;
  margin-top: 16px;
  font-size: 1.16rem;
}
.cta-banner .cta-secondary:hover {
  background: #1D6FB2;
  color: #fff;
}

/* CONTACT DETAILS */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
  margin-top: 14px;
}
.contact-details div, .contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-details img {
  width: 22px;
  height: 22px;
}
@media (max-width: 700px) {
  .contact-details { font-size: 0.97rem; }
}
.trust-signals {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 14px;
  font-size: 1rem;
}
.trust-signals span {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F7F9FB;
  border-radius: 10px;
  padding: 5px 15px;
  color: #1D6FB2;
  font-weight: 600;
}
.trust-signals img {
  width: 20px; height: 20px;
}

/* FOOTER */
footer {
  background: #1D6FB2;
  color: #fff;
  width: 100%;
  padding-top: 36px;
  padding-bottom: 20px;
  font-size: 1rem;
}
footer > .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}
footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: 'Baloo 2', cursive;
}
footer .footer-nav a {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 9px;
  padding: 6px 11px;
  transition: background 0.2s;
}
footer .footer-nav a:hover, footer .footer-nav a:focus {
  background: #F3B42C;
  color: #1D6FB2;
}
footer img { height: 40px; margin-bottom: 10px; }
.brand-tagline {
  color: #F3B42C;
  font-family: 'Baloo 2', cursive;
  font-size: 1.04rem;
  margin-top: 10px;
  letter-spacing: 0.04em;
  font-weight: 700;
}
@media (max-width: 1000px) {
  footer > .container { flex-direction: column; gap: 18px; align-items: flex-start; }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #1D6FB2;
  color: #fff;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  z-index: 900;
  box-shadow: 0 -1px 16px 0 rgba(29,111,178,.13);
  justify-content: space-between;
  font-size: 1.07rem;
  animation: cookie-slide-in 0.7s cubic-bezier(.34,1.24,.64,1) 1;
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-banner-text {
  flex: 2 1 300px;
  min-width: 190px;
  margin-bottom: 8px;
}
.cookie-banner button {
  margin: 0 7px;
  padding: 10px 22px;
  background: #F3B42C;
  color: #1D6FB2;
  border-radius: 18px;
  font-family: 'Baloo 2', cursive;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #fff;
  color: #1D6FB2;
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: #1D6FB2;
  border: 2px solid #F3B42C;
}
.cookie-banner .cookie-settings-btn:hover {
  background: #F3B42C;
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  z-index: 2000;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(1.03);
  background: #fff;
  color: #1D6FB2;
  border-radius: 20px;
  box-shadow: 0 12px 36px 0 rgba(29,111,178,.23);
  padding: 36px 30px 28px 30px;
  min-width: 320px;
  max-width: 98vw;
  width: 410px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookie-modal-in 0.37s cubic-bezier(.46,1.2,.68,1) 1;
}
@keyframes cookie-modal-in {
 from { transform: translate(-50%,100%) scale(0.98); opacity: 0; }
 to { transform: translate(-50%,-50%) scale(1.03); opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Baloo 2', cursive;
  color: #1D6FB2;
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.06rem;
}
.cookie-modal li input[type='checkbox'] {
  accent-color: #F3B42C;
  width: 20px; height: 20px;
}
.cookie-modal .essential {
  font-weight: 700;
  color: #888;
}
.cookie-modal .modal-actions {
  margin-top: 14px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 14px;
  border: none;
  background: #1D6FB2;
  color: #fff;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  transition: background 0.17s;
}
.cookie-modal .modal-actions button:last-child {
  background: #F3B42C;
  color: #1D6FB2;
}
.cookie-modal .modal-actions button:hover {
  opacity: 0.9;
}
@media (max-width: 500px) {
  .cookie-modal { padding: 20px 7vw; min-width: unset; width: 95vw; }
}

/* UTILITIES, MICRO-INTERACTIONS & EFFECTS */
.shadow-pop {
  animation: shadow-pop 1.2s cubic-bezier(.34,1.2,.6,1.12) 1;
}
@keyframes shadow-pop {
  0% { box-shadow: none; }
  50% { box-shadow: 0 6px 32px 0 rgba(29,111,178,0.14); }
  100% { box-shadow: 0 2px 14px 0 rgba(29,111,178,.09); }
}

.fade-in {
  animation: fadein 0.85s cubic-bezier(.2,1.4,.8,1) 1;
}
@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* SPACING RULES & FLEXBOX GAPS */
.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;
}

/* Mobile adjustments for approachability & space */
@media (max-width: 600px) {
  .content-wrapper, .card, .product-grid ul li, .blog-list li {
    padding: 22px 7vw !important;
  }
  .section {
    padding-left: 6vw;
    padding-right: 6vw;
  }
}

/* Misc: List & Form Styles */
ul, ol {
  margin: 12px 0 18px 22px;
  color: #1D6FB2;
  font-size: 1.03rem;
}
li { margin-bottom: 4px; }
::placeholder { color: #B5C3D1; opacity: 1; }
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.05rem;
  border-radius: 10px;
  border: 1.5px solid #B5C3D1;
  padding: 12px 14px;
  outline: none;
  margin-top: 6px;
  margin-bottom: 12px;
  width: 100%;
  background: #F7F9FB;
  color: #293152;
  transition: border 0.17s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #1D6FB2;
}
button:focus, a:focus { outline: 2px solid #F3B42C; outline-offset:2px; }

/* Animations for focus & hover underline */
a, button { transition: background 0.19s, color 0.19s, box-shadow 0.16s, transform 0.11s; }
a:focus { box-shadow: 0 2px 10px 0 rgba(29,111,178,.07); }

/* Hide JS elements by default – to be shown by script */
.cookie-modal, .cookie-banner { display: none; }

/* Utility Classes */
.d-block { display: block !important; }
.hide { display: none !important; }

/* Accessibility: High Contrast for testimonials text */
.testimonial-card, .product-grid ul li, .feature-grid > div, .blog-list li {
  color: #1A2535;
  background: #fff;
}
/* Special: accent blockquote effect for testimonials */
.testimonial-card:before {
  content: '“';
  color: #F3B42C;
  font-size: 2.8rem;
  font-family: 'Baloo 2',cursive;
  position: absolute;
  top: 14px; left: 20px;
  opacity: 0.17;
  z-index: 1;
}

/* Vibrant animated border on hover for cards */
.card:hover,
.product-grid ul li:hover,
.category-grid li:hover,
.feature-grid > div:hover,
.blog-list li:hover {
  box-shadow: 0 8px 28px 0 rgba(243,180,44,.22), 0 0 0 2px #1D6FB2 !important;
  transform: translateY(-3px) scale(1.01);
  z-index: 2;
}

/* Newsletter input (for blog CTA) */
.newsletter-signup {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 22px;
  align-items: center;
}
.newsletter-signup input {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 14px;
  border: 1.5px solid #B5C3D1;
  background: #fff;
  color: #293152;
  padding: 11px 17px;
}
.newsletter-signup button {
  padding: 12px 27px;
  background: #1D6FB2;
  color: #fff;
  border-radius: 14px;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.newsletter-signup button:hover { background: #F3B42C; color: #1D6FB2; }

@media (max-width:430px) {
  .newsletter-signup { flex-direction: column; gap: 7px; width: 100%; }
  .newsletter-signup input, .newsletter-signup button { width: 100%; }
}

/* END OF STYLES */
