/* 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;
}
 
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #e7ebe8;
  color: #1a2536;
  font-size: 16px;
  min-height: 100vh;
  /* playful dynamic interaction */
  transition: background 0.3s;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 150px !important;
}
a {
  color: #11406a;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 600;
  cursor: pointer;
}
a:hover, a:focus {
  color: #f5a623;
  text-decoration: underline;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 10px;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  appearance: none;
}
strong {
  font-weight: 700;
}

/* FONT IMPORTS & FALLBACKS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0.03em;
  color: #11406a;
  margin-bottom: 12px;
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
h4 { font-size: 1.1rem; }
p, .text-section p, .about-section p, .content-wrapper p {
  color: #24314a;
  font-size: 1.08rem;
  margin-bottom: 14px;
  line-height: 1.6;
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  /* always provide vertical breathing room */
  margin: 0 auto;
  padding: 0;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 20px 0 rgba(17,64,106,0.07);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 13px 0 rgba(245,166,35,0.17);
  padding: 28px 22px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.19s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(17,64,106,0.20);
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
}
.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;
  background: #f8faf7;
  border-radius: 18px;
  box-shadow: 0 1px 8px 0 rgba(17,64,106,0.08);
  margin-bottom: 20px;
  position: relative;
  border-left: 7px solid #f5a623;
  min-height: 90px;
  flex-direction: column;
  transition: box-shadow 0.18s, border-color 0.2s;
}
.testimonial-card p {
  color: #1a2536;
  font-size: 1.08rem;
  font-style: italic;
}
.testimonial-card span {
  color: #11406a;
  font-size: 1.04rem;
  font-weight: 600;
  margin-top: 4px;
}
.testimonial-card:hover {
  box-shadow: 0 4px 28px 0 rgba(245,166,35,0.13);
  border-left-color: #11406a;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 12px;
}

/* HERO SECTIONS */
.hero {
  margin-bottom: 60px;
  padding: 56px 0 36px 0;
  background: #f5a623;
  background-image: repeating-linear-gradient(-28deg, #ffefc0 0, #f5a623 14px, #fff2c9 34px, #f5a623 46px);
  border-radius: 0 0 36px 36px;
  box-shadow: 0 6px 29px 0 rgba(245,166,35,0.09);
  position: relative;
  overflow: hidden;
  /* playful squiggle effect */
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
}
.hero h1 {
  color: #11406a;
  font-size: 2.7rem;
  text-shadow: 1px 4px 0 #ffd86b63;
  font-weight: 900;
}
.hero p {
  color: #1a2536;
  font-size: 1.25rem;
  margin-bottom: 34px;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.07rem;
  background: #11406a;
  color: #fff;
  border-radius: 30px;
  padding: 12px 36px;
  margin-top: 10px;
  box-shadow: 0 4px 20px 0 rgba(17,64,106,0.11);
  border: none;
  outline: none;
  text-align: center;
  letter-spacing: 0.05em;
  transition: background 0.18s, color 0.15s, transform 0.25s, box-shadow 0.22s;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover, .btn-primary:focus {
  background: #f5a623;
  color: #11406a;
  box-shadow: 0 7px 40px 0 rgba(245,166,35,0.18);
  transform: scale(1.07) rotate(-1deg);
  text-decoration: none;
}

/* MAIN NAVIGATION */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 0;
  background: #fff;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 2px 24px 0 rgba(17,64,106,0.06);
  font-family: 'Montserrat', Arial, sans-serif;
  position: relative;
  z-index: 20;
}
.main-nav a {
  font-size: 1.02rem;
  color: #11406a;
  padding: 10px 14px;
  border-radius: 18px;
  transition: background 0.17s, color 0.14s;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.main-nav a:hover, .main-nav a:focus {
  background: #f5a623;
  color: #fff;
}
.main-nav a.btn-primary {
  background: #f5a623;
  color: #fff;
  margin-left: auto;
  padding: 10px 24px;
  font-size: 1.07rem;
  box-shadow: 0 0 0 0;
  border-radius: 30px;
}
.main-nav a.btn-primary:hover, .main-nav a.btn-primary:focus {
  background: #11406a;
  color: #fff;
  box-shadow: 0 4px 22px 0 rgba(17,64,106,0.08);
}
.main-nav img {
  height: 38px;
  margin-right: 15px;
  border-radius: 8px;
}

/* FOOTER */
footer {
  background: #fff;
  box-shadow: 0 -1px 16px 0 rgba(17,64,106,0.05);
  border-radius: 24px 24px 0 0;
  padding: 30px 0 16px 0;
  margin-top: 60px;
  width: 100%;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: center;
  margin-bottom: 14px;
}
.footer-nav a {
  color: #11406a;
  background: #e7ebe8;
  padding: 7px 20px;
  border-radius: 17px;
  font-weight: 700;
  transition: background 0.12s, color 0.15s;
  font-size: 1rem;
}
.footer-nav a:hover {
  background: #f5a623;
  color: #fff;
}
footer p {
  color: #24314a;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  text-align: center;
  margin-top: 12px;
}

/* SECTION STYLES */
.features {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff7ea;
  border-radius: 18px;
  box-shadow: 0 2px 13px 0 rgba(245,166,35,0.08);
}
.features h2 {
  color: #11406a;
}
.features ul {
  margin-bottom: 18px;
  margin-top: 14px;
}
.features li {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #24314a;
  position: relative;
  padding-left: 18px;
}
.features li:before {
  content: '\2022';
  color: #f5a623;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.23em;
}
.features ol {
  margin-bottom: 20px;
}
.features ol li:before {
  content: none;
}
.features .feature-grid,
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 24px;
  justify-content: flex-start;
}
.features .feature-grid > div, .service-grid > div {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 13px 0 rgba(17,64,106,0.07);
  padding: 23px 19px 17px 19px;
  flex: 1 1 225px;
  min-width: 212px;
  max-width: 345px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.14s, box-shadow 0.19s;
}
.features .feature-grid > div:hover, .service-grid > div:hover {
  transform: translateY(-8px) scale(1.04) rotate(2deg);
  box-shadow: 0 7px 36px 0 rgba(245,166,35,0.17);
}
.features .feature-grid img, .service-grid img {
  margin-bottom: 12px;
  height: 48px;
}

.about,
.about-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(17,64,106,0.07);
}
.text-section {
  margin-top: 10px;
  color: #24314a;
  font-size: 1.07rem;
}
.text-section h3 {
  font-size: 1.14rem;
  color: #f5a623;
  margin-bottom: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.text-section ul {
  margin-bottom: 10px;
  margin-top: 0;
}

.services, .services-details {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #f0f8fc;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(17,64,106,0.05);
}
.services h2, .services-details h2 {
  color: #11406a;
  margin-bottom: 24px;
}
.services-details .service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 20px;
}
.services-details .service-grid > div {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 13px 0 rgba(17,64,106,0.07);
  padding: 22px 16px 14px 16px;
  flex: 1 1 225px;
  min-width: 212px;
  max-width: 345px;
  margin-bottom: 18px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.services-details .service-grid > div:hover {
  box-shadow: 0 7px 38px 0 rgba(17,64,106,0.11);
  transform: translateY(-4px) scale(1.02) rotate(-2deg);
}
.services-details h3 {
  font-size: 1.17rem;
  color: #11406a;
}
.services-details strong {
  color: #f5a623;
  font-weight: 800;
  font-size: 1.04rem;
  display: block;
  margin-top: 10px;
}

.contact, .contact-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(17,64,106,0.07);
}
.contact ul, .contact-section ul {
  margin: 20px 0 20px 0;
}
.contact li, .contact-section li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #11406a;
  font-size: 1.12rem;
  margin-bottom: 11px;
}
.contact img, .contact-section img {
  height: 24px;
  width: 24px;
}

.cta {
  margin-bottom: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta .btn-primary {
  font-size: 1.13rem;
  padding: 18px 36px;
  margin-top: 0;
}

/**** BLOG CATEGORY FILTERS ****/
.category-filters {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
}
.category-filters a {
  background: #11406a;
  color: #fff;
  border-radius: 15px;
  padding: 6px 15px;
  font-weight: 700;
  transition: background 0.16s, color 0.15s;
}
.category-filters a:hover {
  background: #f5a623;
  color: #11406a;
}

/* SPECIAL SPACING MANDATES */
/* All cards & sections already have margin-bottom: 20px or 60px as appropriate */
.card-container, .content-grid, .features .feature-grid, .service-grid {
  gap: 24px;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: #11406a;
  background: #fff7ea;
  border-radius: 17px;
  padding: 8px 21px;
  margin-left: 10px;
  z-index: 32;
  position: absolute;
  top: 27px;
  right: 18px;
  box-shadow: 0 2px 10px 0 rgba(245,166,35,0.14);
  border: 2px solid #f5a623;
  transition: background 0.15s, color 0.17s, box-shadow 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #f5a623;
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,35,54,0.97);
  z-index: 9999;
  transform: translateX(100vw);
  transition: transform 0.35s cubic-bezier(.7,.04,.3,1.04);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #fff;
  background: #f5a623;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin: 16px 22px 0 0;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #11406a;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 17px;
  font-size: 1.28rem;
  margin: 65px 0 0 42px;
  width: 70vw;
}
.mobile-nav a {
  color: #fff;
  background: #11406a;
  border-radius: 22px;
  padding: 13px 34px;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.15s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #f5a623;
  color: #11406a;
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    max-width: 100%;
    padding-left: 7px;
    padding-right: 7px;
  }
  .hero {
    padding: 38px 0 20px 0;
    border-radius: 0 0 18px 18px;
    margin-bottom: 35px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .features, .about, .about-section, .services, .services-details, .contact, .contact-section {
    padding: 24px 6px;
    margin-bottom: 32px;
  }
  .features .feature-grid, .service-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .features .feature-grid > div, .service-grid > div {
    max-width: 100%;
    min-width: 0;
  }
  .cta {
    margin-bottom: 25px;
  }
  .mobile-nav {
    font-size: 1.08rem;
    margin: 55px 0 0 20px;
    width: 90vw;
  }
  .testimonial-card {
    padding: 15px;
    gap: 10px;
    font-size: .97rem;
  }
  .footer-nav {
    gap: 8px;
    flex-wrap: wrap;
    font-size: .98rem;
  }
  .section {
    margin-bottom: 32px;
    padding: 20px 6px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.09rem; }
  .card, .features, .about, .about-section, .services, .services-details, .contact, .contact-section {
    padding: 13px 3px;
    border-radius: 11px;
  }
}

/* ANIMATIONS */
.btn-primary, .card, .feature-grid > div, .service-grid > div, .testimonial-card, .mobile-menu, .mobile-menu-toggle {
  will-change: transform, box-shadow;
}
.card, .feature-grid > div, .service-grid > div, .testimonial-card {
  transition: box-shadow 0.23s, transform 0.19s, border-color 0.16s;
}
@keyframes wiggle {
  0% { transform: rotate(-2deg) scale(0.98); }
  20% { transform: rotate(3deg) scale(1.02); }
  40% { transform: rotate(-1deg) scale(1.02); }
  60% { transform: rotate(2deg) scale(0.99); }
  100% { transform: rotate(0deg) scale(1); }
}
.btn-primary:active {
  animation: wiggle 0.16s;
}
/* playful bouncy hover for icon images */
.features img, .service-grid img {
  transition: transform 0.21s;
}
.features img:hover, .service-grid img:hover {
  transform: scale(1.23) rotate(-8deg);
  filter: drop-shadow(1px 3px 3px #f5a62330);
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #1a2536;
  color: #fff;
  z-index: 25000;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 22px 15px 22px 15px;
  box-shadow: 0 -2px 18px 0 rgba(17,64,106,0.12);
  font-size: 1.01rem;
  font-family: 'Open Sans', Arial, sans-serif;
  animation: cookie-slidein 0.8s cubic-bezier(.81,-0.17,.34,1.19);
}
@keyframes cookie-slidein {
  0% { transform: translateY(120px); opacity: 0; }
  80% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner button {
  background: #f5a623;
  color: #11406a;
  border-radius: 22px;
  padding: 9px 28px;
  font-size: 1.03rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  margin: 0 6px;
  transition: background 0.15s, color 0.14s, box-shadow 0.13s;
}
.cookie-banner button:hover {
  background: #fff;
  color: #f5a623;
  box-shadow: 0 2px 9px 0 rgba(245,166,35,0.09);
}

.cookie-banner .cookie-settings-btn {
  background: #11406a;
  color: #fff;
}
.cookie-banner .cookie-settings-btn:hover {
  background: #fff;
  color: #11406a;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  z-index: 25001;
  left: 0; top: 0; right:0; bottom:0;
  width: 100vw;
  height: 100vh;
  background: rgba(17,64,106,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.21s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  color: #11406a;
  width: 98vw;
  max-width: 420px;
  border-radius: 19px;
  box-shadow: 0 8px 48px 0 rgba(17,64,106,0.18);
  padding: 37px 32px 28px 32px;
  position: relative;
  animation: modal-in 0.41s cubic-bezier(.8,.11,.18,.99);
}
@keyframes modal-in {
  0% { transform: scale(0.85) translateY(40px); opacity: 0; }
  85% { opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h2 {
  color: #f5a623;
  font-size: 1.24rem;
  margin-bottom: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 12px;
}
.cookie-modal-content .category {
  margin-bottom: 18px;
  padding: 7px 0 7px 0;
  border-bottom: 1px solid #e7ebe8;
}
.cookie-modal-content .category:last-child {
  border-bottom: 0;
}
.cookie-modal-content .category .toggle-btn {
  margin-left: auto;
}
.cookie-modal-content .close-cookie-modal {
  position: absolute;
  right: 13px; top: 13px;
  background: #f5a623;
  color: #fff;
  border-radius: 50%;
  padding: 0 15px;
  font-size: 1.55rem;
  border: none;
  transition: background 0.13s, color 0.12s;
}
.cookie-modal-content .close-cookie-modal:hover {
  background: #11406a;
  color: #fff;
}
.cookie-modal-content .save-cookie-btn {
  background: #11406a;
  color: #fff;
  padding: 10px 26px;
  border-radius: 18px;
  font-size: 1.07rem;
  font-weight: 700;
  margin-top: 14px;
}
.cookie-modal-content .save-cookie-btn:hover {
  background: #f5a623;
  color: #11406a;
}

/* Cookie Toggle Switches */
.toggle-btn {
  position: relative;
  width: 40px;
  height: 24px;
  display: inline-block;
}
.toggle-btn input[type='checkbox'] {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  background: #e7ebe8;
  border-radius: 12px;
  top: 0; left: 0;
  right: 0; bottom: 0;
  transition: background 0.19s;
}
.toggle-btn input:checked + .toggle-slider {
  background: #f5a623;
}
.toggle-slider:before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
}
.toggle-btn input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

/* ENSURE NO CSS GRID, NO ABSOLUTE FOR CONTENT, ALL FLEXBOX */
/* ----------- END ----------- */