/* RESET & BASE ------------------------- */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F2F2F2;
  color: #273875;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
  padding: 0;
}
a {
  color: #273875;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #E63527;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
main {
  flex: 1 1 0%;
}
html::-webkit-scrollbar {
  width: 8px;
}
html::-webkit-scrollbar-thumb {
  background-color: #273875;
  border-radius: 5px;
}

/* TYPOGRAPHY ------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.1;
}
h1 {
  font-size: 2.5rem;
  color: #E63527;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  color: #273875;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.35rem;
  color: #E63527;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
}
p, ul li, ol li {
  font-size: 1rem;
  margin-bottom: 10px;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #222256;
}
strong {
  font-weight: 700;
  color: #273875;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* LAYOUT SECTIONS ------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: white;
  border-radius: 28px;
  box-shadow: 0 4px 20px 0 rgba(39,56,117,0.07);
  position: relative;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 28px 10px;
    border-radius: 16px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* CARD & FLEXBOX UTILS ------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #F2F2F2;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(39,56,117,0.10);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 10px 26px -4px #E6352733, 0 2px 12px #27387511;
  transform: translateY(-5px) scale(1.03);
}
.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;
    gap: 16px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* SECTION GRIDS & PLAYFULLY DYNAMIC FEATURE GRIDS ------------------------- */
.feature-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.feature-grid > div, .service-list > div {
  background: #fff9ef;
  border-radius: 20px;
  min-width: 240px;
  flex: 1 1 260px;
  box-shadow: 0 2px 12px 0 rgba(230,53,39,0.08);
  padding: 32px 24px;
  position: relative;
  transition: box-shadow 0.17s, transform .20s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.feature-grid > div:hover, .service-list > div:hover {
  background: #E6352711;
  box-shadow: 0 10px 26px -4px #E6352744, 0 2px 12px #27387522;
  transform: scale(1.028) rotate(-1.5deg);
}
.feature-grid img, .service-list img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  animation: popicon .8s cubic-bezier(.75,-0.3,.73,1.7) alternate infinite;
}
@keyframes popicon {
  0%   { transform: scale(1) rotate(-6deg); }
  45%  { transform: scale(1.12) rotate(5deg); }
  100% { transform: scale(1) rotate(-6deg); }
}
@media (max-width: 920px) {
  .feature-grid, .service-list { gap: 20px; }
  .feature-grid > div, .service-list > div { padding: 22px 10px; min-width: unset; }
}
@media (max-width: 768px) {
  .feature-grid, .service-list {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div, .service-list > div {
    width: 100%;
    min-width: 0;
  }
}

/* TESTIMONIALS ------------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: #fff;
  margin-bottom: 20px;
  border-radius: 16px;
  box-shadow: 0 3px 12px 0 rgba(39,56,117,0.08);
  border-left: 7px solid #E63527;
  position: relative;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #222256;
  font-family: 'Montserrat', Arial,sans-serif;
}
.testimonial-card strong {
  font-size:1rem;
  color:#273875;
  margin-left:auto;
  font-family: 'Montserrat', Arial, sans-serif;
}
@media (max-width: 620px) {
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    padding: 15px;
  }
  .testimonial-card strong {
    margin-left: 0;
  }
}

.case-study {
  background: #273875;
  color: #fff;
  border-radius: 16px;
  padding: 24px 22px;
  margin-top: 16px;
  box-shadow: 0 3px 28px 0 rgba(39,56,117,0.10);
}
.case-study h3 {
  color:#FFD13C;
}
.case-study p { color:white; }

.achievements {
  margin-top: 30px;
}
.achievements h3 {
  color: #E63527;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.guarantees {
  border-left: 5px solid #273875;
  padding-left: 16px;
  font-style: italic;
  color: #273875;
  background: #f1f6fd;
  border-radius: 8px;
  margin-top: 18px;
}

/* BUTTONS & CTAs ------------------------- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: #E63527;
  border-radius: 28px;
  min-width: 190px;
  padding: 15px 32px;
  outline: none;
  border: none;
  box-shadow: 0 3px 12px #E6352733;
  letter-spacing: 0.06em;
  cursor:pointer;
  margin: 16px 0 0 0;
  transition: background 0.21s, box-shadow .21s, transform 0.15s;
  position: relative;
}
.cta-primary:hover,.cta-primary:focus {
  background: #273875;
  color: #FFD13C;
  box-shadow: 0 8px 18px #27387555, 0 3px 12px #E6352733;
  transform: scale(1.045) rotate(-2deg);
}

button, .button {
  font-family: inherit;
  border: none;
  outline: none;
  border-radius: 24px;
  padding: 12px 28px;
  font-size: 1rem;
  background: #273875;
  color: #fff;
  cursor: pointer;
  transition: background .17s, transform .11s;
}
button:hover, .button:hover, button:focus {
  background: #E63527;
  color: #FFD13C;
  transform: scale(1.07);
}

/* HEADER ------------------------- */
header {
  background: #fff;
  box-shadow: 0 3px 16px 0 #27387511;
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
header img {
  height: 48px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  font-weight: 600;
  color: #273875;
  position: relative;
  padding: 7px 2px;
  border-radius: 8px;
  transition: background .13s, color .13s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #E63527;
  background: #FDEBE5;
}

.mobile-menu-toggle {
  display: none;
  background: #FFD13C;
  color: #273875;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 49px;
  height: 49px;
  align-items: center;
  justify-content: center;
  transition: background .13s, color .13s, transform .13s;
  cursor: pointer;
  margin-left: 10px;
  z-index: 220;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E63527;
  color: #fff;
  transform: rotate(-10deg) scale(1.08);
}
@media (max-width: 980px) {
  .main-nav{
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-primary {
    display: none;
  }
}

/* MOBILE MENU ------------------------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: -100vw;
  width: 92vw;
  max-width: 400px;
  height: 100vh;
  background: #fff;
  box-shadow: -3px 0 23px 4px #27387522;
  z-index: 9999;
  padding: 32px 24px 24px 24px;
  transition: transform 0.34s cubic-bezier(0.61,0,0.4,1), right .07s;
  will-change: transform;
  overflow-y: auto;
}
.mobile-menu.open {
  right: 0;
  transform: translateX(0);
}
.mobile-menu {
  transform: translateX(100vw);
}
.mobile-menu-close {
  background: #FFD13C;
  border-radius: 50%;
  color: #E63527;
  font-size: 2rem;
  border: none;
  width: 46px;
  height: 46px;
  align-self: flex-end;
  margin-bottom: 18px;
  transition: background .13s, color .13s, transform .13s;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus{
  background: #E63527;
  color: #fff;
  transform: rotate(9deg) scale(1.11);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  color: #273875;
  font-weight: 600;
  padding: 12px 8px;
  border-radius: 12px;
  transition: background .13s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E6352711;
  color: #E63527;
}
@media (min-width: 981px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* PAGE SECTION MARGINS, LISTS, LINKS ----------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 32px;
  box-shadow: 0 4px 12px 0 #E6352730;
  background: #fff;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 36px;
    padding: 22px 8px;
    border-radius: 16px;
  }
}
ul {
  padding-left: 20px;
  margin-bottom: 12px;
  list-style-type: disc;
}
ul li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #222256;
}
ul li img {
  width: 28px;
  vertical-align: middle;
  margin-right: 7px;
  display: inline-block;
}

/* FOOTER ------------------------- */
footer {
  background: #273875;
  color: #fff;
  margin-top: 60px;
  box-shadow: 0 -2px 18px 0 #E6352715;
}
footer .container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 36px;
  padding-bottom: 28px;
}
.footer-logo img {
  height: 54px;
  margin-bottom: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #FFD13C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 7px 0;
  border-radius: 6px;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #FFD13C;
  color: #273875;
}
.footer-contact {
  font-size: .97rem;
  color: #fff;
  margin-top: 0;
  max-width: 330px;
}
.footer-contact img {
  height: 20px;
  width: 20px;
  margin-right: 6px;
  vertical-align: text-bottom;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-logo {
    margin-bottom: 10px;
  }
}

/* PLAYFUL ANIMATIONS & EFFECTS -------------------------*/
section h2 {
  position: relative;
  z-index: 1;
}
section h2:after {
  content: '';
  display: block;
  height: 7px;
  width: 36px;
  background: #FFD13C;
  border-radius: 8px 8px 19px 19px;
  margin-top: 8px;
  position: relative;
  left: 5px;
}
.cta-primary:after {
  content: '\2728';
  font-size:1.4em;
  position: absolute;
  right: 16px;
  top: 11px;
  animation: sparkle .85s infinite alternate-reverse;
}
@keyframes sparkle {
  0% { opacity: .7; transform: rotate(-8deg) scale(1.23); }
  60% { opacity: 1; transform: rotate(9deg) scale(0.92); }
  100% { opacity: .75; transform: rotate(-5deg) scale(1.11); }
}

/* COOKIE CONSENT BANNER ------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40000;
  background: #fff;
  box-shadow: 0 -6px 32px 0 #27387520;
  padding: 26px 20px;
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 23px;
  align-items: center;
  justify-content: center;
  animation: cookiepop .55s cubic-bezier(.4,1.47,.6,1.03);
}
@keyframes cookiepop {
  from { transform: translateY(90px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner p {
  flex: 1 1 260px;
  color: #273875;
  font-size: 1rem;
  margin: 0;
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-banner button,
.cookie-banner .button {
  padding: 10px 23px;
  border-radius: 18px;
  font-size: 1.01rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  box-shadow: 0 1px 5px #E6352734;
}
.cookie-banner .accept {
  background: #273875;
  color: #FFD13C;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #E63527;
  color: #fff;
  outline: 2px solid #FFD13C;
}
.cookie-banner .reject {
  background: #E63527;
  color: #fff;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #FFD13C;
  color: #273875;
  outline: 2px solid #E63527;
}
.cookie-banner .settings {
  background: transparent;
  color: #273875;
  border: 2px dashed #FFD13C;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #FFD13C;
  color: #E63527;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    padding: 17px 5px 11px 5px;
    gap: 9px;
    border-radius: 9px 9px 0 0;
    font-size: .99rem;
  }
}

/* COOKIE SETTINGS MODAL ------------------------- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(39,56,117, 0.50);
  z-index: 50000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein .30s;
}
@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #273875;
  border-radius: 20px;
  max-width: 430px;
  width: 93vw;
  box-shadow: 0 10px 44px 0 #E6352730;
  padding: 32px 22px 24px 22px;
  position: relative;
  animation: explodein .37s cubic-bezier(.49,2,.54,1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@keyframes explodein {
  from { transform: scale(.82) rotate(-7deg); opacity:0; }
  to   { transform: scale(1) rotate(0deg); opacity:1; }
}
.cookie-modal h3 {
  margin-bottom: 7px;
  color: #E63527;
  font-size: 1.26rem;
}
.cookie-modal .cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.cookie-modal .cookie-category {
  background: #f1f6fd;
  color: #273875;
  border-radius: 11px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  gap: 12px;
  position: relative;
}
.cookie-modal .cookie-category .toggle {
  margin-left: auto;
}
.cookie-category .toggle input[type="checkbox"] {
  display: none;
}
.cookie-category .toggle {
  width: 38px; height: 22px;
  background: #FFD13C;
  border-radius: 13px;
  position: relative;
  cursor: pointer;
}
.cookie-category .toggle:after {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: #E63527;
  border-radius: 50%;
  transition: left .18s, background .14s;
}
.cookie-category .toggle.active:after {
  left: 18px;
  background: #273875;
}
.cookie-category .locked {
  color: #E63527;
  font-size: .97em;
  font-weight: 700;
  margin-left: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: #FFD13C;
  color: #273875;
  border: none;
  border-radius: 40px;
  width: 32px; height: 32px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .14s, color .14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #E63527;
  color: #fff;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal-actions button {
  min-width: 120px;
  padding: 10px 20px;
  border-radius: 16px;
  background: #273875;
  color: #FFD13C;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-actions .cancel {
  background: transparent;
  border: 2px dashed #E63527;
  color: #E63527;
}
.cookie-modal-actions .cancel:hover, .cookie-modal-actions .cancel:focus {
  background: #FFD13C;
  color: #273875;
  border-color: #FFD13C;
}

/* RESPONSIVE AND UTILITY CLASSES ------------- */
@media (max-width: 600px) {
  h1 {
    font-size: 1.65rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  .cta-primary {
    min-width: 120px;
    font-size: .98rem;
    padding: 11px 15px;
  }
}
@media (max-width: 460px) {
  section {
    margin-bottom: 20px;
    padding:10px 2px;
  }
}

/* FORM ELEMENTS (for future) ----------------- */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  background: #F2F2F2;
  border: 1.5px solid #27387544;
  border-radius: 13px;
  padding: 13px 12px;
  margin-bottom: 14px;
  outline: none;
  width: 100%;
  transition: border .16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #E63527;
  background: #fff9ef;
}

/* MISC ----------------------------------------- */
::-webkit-input-placeholder { color: #B0B6C6; }
::-moz-placeholder { color: #B0B6C6; }
:-ms-input-placeholder { color: #B0B6C6; }
::placeholder { color: #B0B6C6; }

/* Spacings for cards/sections */
.card, .feature-grid > div, .service-list > div, .testimonial-card, .case-study {
  margin-bottom: 20px;
}

/* Ensuring no overlap between content cards */
.feature-grid > div, .service-list > div, .card, .testimonial-card {
  margin-right: 0;
  margin-left: 0;
}

/* Professional shadows for hierarchy */
.card, .feature-grid > div, .service-list > div {
  box-shadow: 0 2px 12px 0 rgba(39,56,117,0.10);
}

/* Playful_dymamic visual cues for FAQ or info areas */
.guarantees, .case-study, .cookie-banner, .cookie-modal {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
}

/* Hide unnecessary scroll on body when mobile menu/cookie modal is open (for script, used as .no-scroll) */
.no-scroll {
  overflow: hidden !important;
}
