/* === CSS 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,main,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0; padding:0; border:0; font:inherit; font-size:100%; vertical-align:baseline; box-sizing:border-box}
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}
body{line-height:1; font-family:'Roboto',Arial,sans-serif; background:#F5F7FB; color:#23274d; min-height:100vh;}
ol,ul{list-style:none}
a{text-decoration:none; color:inherit;}
img{max-width:100%; display:block; border:none;}
button,input,select,textarea{font-family:inherit; font-size:inherit; outline:none; border:none; background:none; color:inherit;}
:root {
  --primary: #344B80;
  --secondary: #F5F7FB;
  --accent: #FFB517;
  --neutral: #ffffff;
  --shadow: 0 4px 18px 0 rgba(82, 111, 204, 0.07);
  --card-radius: 20px;
  --cta-radius: 30px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-top: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--neutral);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 32px 28px;
  position: relative;
  min-width: 240px;
}
.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: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 10px 0 rgba(52,75,128,0.10);
  min-width: 260px;
  max-width: 420px;
  margin-bottom: 20px;
  transition: transform 0.24s cubic-bezier(.68,-0.55,.27,2.05), box-shadow 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 4px 18px 0 rgba(255,181,23,0.21);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === HEADER + NAVIGATION === */
header {
  background: var(--neutral);
  box-shadow: 0 2px 10px 0 rgba(52,75,128,.06);
  position: sticky;
  top: 0;
  z-index:90;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}
header nav img {
  height: 44px; width: auto; margin-right: 10px;
  filter: drop-shadow(0 1px 3px #ffb51725);
}
header nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--primary);
  transition: color 0.2s;
  border-radius: 6px;
  padding: 6px 14px;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: #fff;
}
.btn-primary {
  font-family: var(--font-display);
  color: var(--primary);
  background: var(--accent);
  border-radius: var(--cta-radius);
  font-weight: 800;
  font-size: 18px;
  padding: 12px 34px;
  margin-left: 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.14s;
  box-shadow: 0 2px 10px #ffb51724;
  border: none;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 4px 18px #344B8082;
}
.btn-link {
  font-family: var(--font-display);
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  border-radius: 7px;
  padding: 6px 12px;
  transition: background 0.2s, color 0.2s;
}
.btn-link:hover, .btn-link:focus {
  background: var(--accent);
  color: var(--primary);
  text-decoration: underline;
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  font-size: 2rem;
  border-radius: 14px;
  padding: 8px 16px;
  margin-left: auto;
  cursor: pointer;
  z-index: 120;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px #344b801a;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 4px 24px 0 #344B8035;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.49,1.87,.47,.97);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 28px 28px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--accent);
  color: var(--primary);
  font-size: 2rem;
  border-radius: 30px;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background .2s, color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  font-family: var(--font-display);
}
.mobile-nav a {
  font-size: 20px;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--primary);
  background: var(--secondary);
  margin: 0;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 1100px) {
  header nav {
    gap:11px;
  }
}

@media (max-width: 900px) {
  .container {
    padding-left: 10px; padding-right:10px;
  }
  .content-wrapper { gap:18px; }
  .section { padding:30px 10px; }
}

@media (max-width: 840px) {
  header nav {
    flex-wrap: wrap;
    gap: 8px;
  }
  .section { margin-bottom: 38px;}
}
@media (max-width: 800px) {
  header nav {
    display:none;
  }
  .mobile-menu-toggle {
    display: block;
    position: relative;
    margin: 12px 12px 0 auto;
  }
}

@media (max-width:600px) {
  .section { padding:18px 6px; }
  .container { padding: 0 4px; }
}

/* === TYPOGRAPHY === */
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing:0.5px;
}
h1 {
  font-size: 2.3rem;
  line-height:1.1;
}
h2 {
  font-size: 1.6rem;
}
h3 {
  font-size: 1.18rem;
}
h4, h5 {font-size:1rem;}
.hero-subtext {
  font-size: 1.18rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: #23274d;
  margin-bottom: 16px;
}
p,li,span {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #23274d;
}
nav a, .btn-link, .btn-primary {
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing:0.2px;
}
input[type="search"] {
  font-family:var(--font-body);
  font-size:1rem;
  border-radius: 18px;
  border: 2px solid var(--primary);
  background: var(--neutral);
  padding: 14px 24px;
  margin-top: 6px;
  min-width:180px;
}
input[type="search"]:active, input[type="search"]:focus {
  outline:2px solid var(--accent);
  border-color: var(--accent);
  background:#fffbe7;
}

/* === LISTS === */
ul {
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
ul li{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:1rem;
  padding:6px 0;
}
ul li img {
  width: 26px; height: 26px;
  background: var(--accent);
  border-radius: 30px;
  padding: 2px;
  box-shadow: 0 1px 5px #ffb51728;
  margin-right: 2px;
}
/* For blog/page content */
ol {
  margin-left: 24px;
  margin-bottom: 12px;
}
ol li {
  list-style: decimal;
  margin-bottom: 6px;
  color: #344B80;
  font-size: 1rem;
}

/* === HERO & SECTION SPECIFICS === */
section {
  margin-bottom: 60px;
  padding:0;
}
section .container {
  padding-top:24px; padding-bottom:24px;
}

/* === VISUAL & CARD STYLES === */
.card, .testimonial-card, .feature-item {
  /* already styled by above container definitions */
  position: relative;
}
.card:before {
  /* Fun shape as dynamic element */
  content: "";
  position: absolute;
  top: -24px;
  left: -18px;
  width: 52px;
  height: 52px;
  border-radius: 20px 60% 40% 20px;
  background: var(--accent);
  opacity: 0.17;
  z-index: 0;
  pointer-events: none;
}
.card h3, .feature-item h3, .testimonial-card h3 {
  margin-bottom: 5px;
}
.card p, .feature-item p {
  margin-bottom: 6px;
}

/* === ANIMATIONS === */
@keyframes floatY {
  0% {transform: translateY(0);}
  50% {transform: translateY(-7px);}
  100% {transform: translateY(0);}
}
.card:hover, .feature-item:hover {
  box-shadow: 0 9px 25px #ffb51725;
  transform: scale(1.04) translateY(-3px) rotate(-2deg);
}
li img, .card img, .feature-item img {
  animation: floatY 2.7s cubic-bezier(.63,0,.9,.69) infinite;
  will-change:transform;
}

.btn-primary, .btn-link, .mobile-menu-toggle, .mobile-menu-close {
  transition: all 0.18s cubic-bezier(.75,.11,.45,1.3);
}

/* === CTA & SPECIAL === */
section .btn-primary, section .btn-link {
  margin-top: 8px;
  align-self: flex-start;
}

/* === TESTIMONIALS === */
.testimonial-card {
  background: #fff;
  color: #22294A;
  border-left: 7px solid var(--accent);
  border-radius: 24px;
  box-shadow: 0 2px 10px 0 rgba(52,75,128,0.12);
  min-width:220px; max-width:440px;
  font-size:1.03rem;
}
.testimonial-card p {
  color:#23274d;
  font-family:var(--font-body);
  font-size:1rem;
  font-weight: 500;
}
.testimonial-card span {
  font-family:var(--font-display);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
}

/* === BLOG CATEGORIES and INFO === */
.content-wrapper div span {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.07rem;
  font-weight: 700;
}

/* === FOOTER === */
footer {
  margin-top: 44px;
  background: var(--primary);
  color: #fff;
  padding: 42px 0 18px 0;
  position: relative;
}
footer .container {
  padding-top:0; padding-bottom:0;
}
footer .content-wrapper {
  flex-direction: row;
  gap: 42px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer nav,
footer .content-wrapper > div
{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer img {
  height: 38px;
  width:auto;
  margin-bottom: 10px;
  filter: drop-shadow(0 1px 3px #ffb51785);
}
footer nav a {
  color: #fffbe7;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 5px;
  padding: 3px 10px;
  display: inline-block;
  transition: background .15s, color .15s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
footer .content-wrapper > div:last-child {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
footer .content-wrapper > div:last-child span {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 700;
}
footer .content-wrapper > div:last-child a img {
  height:28px; width: 28px;margin-bottom:0;
  margin-left:5px; padding:3px;
  background: #fff;
  border-radius: 8px;
  box-shadow:0 1px 8px #ffb51725;
  transition:box-shadow .18s;
}
footer .content-wrapper > div:last-child a:hover img {
  box-shadow:0 3px 16px #ffb51733;
}
footer p {
  color:#fff;
  font-family:var(--font-body);
  font-size:0.97rem;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
    padding-bottom: 20px;
  }
}
@media (max-width:600px) {
  footer {padding:21px 0 6px 0;}
  footer .content-wrapper {gap:10px !important;}
}

/* === RESPONSIVE FLEX LAYOUTS === */
@media (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .content-grid, .card-container, .text-image-section {
    flex-direction: column !important;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card, .card {
    min-width: 160px;
    max-width: 100%;
  }
  .section {padding: 12px 0;}
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fffbe7;
  color: var(--primary);
  box-shadow: 0 -2px 12px #ffb51755;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 30px;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 22px 22px 0 0;
  animation: bannerIn 0.45s cubic-bezier(.53,2.01,.57,1) 1;
}
@keyframes bannerIn {
  0% {transform: translateY(120%);opacity:0;}
  100% {transform:translateY(0);opacity:1;}
}
.cookie-banner-text {
  flex: 1 1 auto;
  margin-right: 28px;
}
.cookie-btn-group {
  display: flex;
  gap: 10px;
}
.cookie-btn {
  border: none;
  border-radius: 24px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 8px 26px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #ffb51719;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: #fff;
}
.settings-btn {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--accent);
}
.settings-btn:hover {
  background: var(--accent);
  color: var(--primary);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 12px 10px;
    font-size: .97rem;
  }
  .cookie-banner-text {margin-right: 0;}
}

/* === COOKIE MODAL === */
.cookie-modal-overlay {
  position: fixed;
  z-index: 310;
  left: 0; top: 0; right: 0; bottom: 0;
  background: #344B8099;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  0%{opacity: 0;} 100%{opacity: 1;}
}
.cookie-modal {
  background: #fffbe7;
  color: var(--primary);
  padding: 42px 28px 28px 28px;
  border-radius: 24px;
  min-width: 320px; max-width: 90vw;
  box-shadow: 0 8px 32px #ffb51736;
  font-family: var(--font-body);
  animation: modalIn 0.4s cubic-bezier(.43,1.84,.63,.93);
}
@keyframes modalIn {
  0% {transform:scale(.95) translateY(110px); opacity:0;}
  100% {transform:scale(1) translateY(0); opacity:1;}
}
.cookie-modal h2 {
  margin-bottom: 16px;
  color: var(--primary);
}
.cookie-modal .toggle-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.cookie-modal label {
  font-family: var(--font-display);
  font-size: 1.01rem; font-weight: 700;
}

/* Custom switches */
.cookie-toggle {
  appearance: none;
  width: 46px; height: 24px;
  border-radius: 14px;
  border: 2px solid var(--primary);
  background: #fff;
  position: relative;
  transition: background .21s;
  outline: none;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.cookie-toggle:before {
  content: '';
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute; left: 2px; top: 1px;
  transition: left .2s, background .2s;
}
.cookie-toggle:checked:before {
  left: 22px; background: var(--accent);
}
.cookie-modal .cookie-btn-group {
  margin-top: 24px;
  gap: 16px;
  justify-content: flex-end;
}

/* === ACCESSIBILITY & UTILITY === */
.sr-only { position:absolute!important; width:1px!important; height:1px!important; overflow:hidden!important; clip:rect(1px,1px,1px,1px); white-space:nowrap!important; }

/* === PLAYFUL/DYNAMIC MICROLELEMENTS === */
h1,h2 {
  position: relative;
}
h1:after, h2:after {
  content: '';
  display: block;
  width: 56px;
  height: 8px;
  border-radius: 4px;
  margin-top: 4px;
  background: var(--accent);
  opacity: 0.48;
  animation: floatY 2.8s cubic-bezier(.53,.67,.22,.98) infinite;
}
h2:after {
  width: 38px; height: 7px; margin-top:3px;
}

.btn-primary::after {
  content: ' →';
  font-size: 1.2em;
  color: var(--primary);
  margin-left: 7px;
  vertical-align: middle;
  transition: margin-left .23s cubic-bezier(.53,2.01,.57,1);
}
.btn-primary:hover::after, .btn-primary:focus::after {
  margin-left: 16px;
  color: var(--accent);
}
.btn-link::after {
  content: ' ›';
  color: var(--accent);
  font-weight: 900;
  transition: margin-left .23s;
  margin-left: 3px;
}
.btn-link:hover::after, .btn-link:focus::after {
  margin-left: 10px;
}

/* === FORMS === */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 13px;
  border: 2px solid var(--primary);
  padding: 13px 18px;
  background: #fff;
  color: #23274d;
  transition: border .2s, box-shadow .2s;
  margin-top: 7px;
  margin-bottom: 14px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 1px 10px #ffb51722;
}
/* Button minimum size for touch */
button, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close, .btn-primary, .btn-link {
  min-width: 44px; min-height: 44px;
}

/* === PAGE TRANSITION (OPTIONAL) === */
body {
  transition: background .5s, color .22s;
}

/* === PRINT SUPPORT === */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer {
    display:none !important;
  }
  body {background: #fff; color:#000;}
}

/* === END OF STYLE.CSS === */
