/* --- CSS 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;
}

html { 
  font-size: 16px;
  scroll-behavior: smooth;
  background: #fff;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.02em;
}

img {
  max-width: 100%;
  display: block;
  border: 0;
}
a {
  color: #174F79;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFB800;
  outline: none;
}

ul, ol {
  margin: 0 0 1em 1.2em;
}
li {
  margin-bottom: 0.5em;
}

button,
input[type="button"],
input[type="submit"] {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus {
  outline: 2px solid #FFB800;
  outline-offset: 2px;
}

/* --- BRAND FONTS ------------------------ */
h1, h2, h3, h4, .cta-btn {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-weight: 800;
}
h1 {
  font-size: 2.3rem;
  color: #174F79;
  margin-bottom: 18px;
  line-height: 1.13;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 1.7rem;
  color: #174F79;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 1.2rem;
  color: #FFB800;
  margin-bottom: 10px;
}

section p, .section p, .feature-item p {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 0.8em;
  color: #222;
}

strong, b {
  color: #174F79;
  font-weight: 700;
}

/* --- SPACING/LAYOUT PATTERNS ------------ */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 24px 0 rgba(23,79,121,0.14);
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s cubic-bezier(.55,.06,.68,.19), box-shadow 0.17s;
}
.card:hover {
  transform: translateY(-4px) scale(1.018) rotate(-1deg);
  box-shadow: 0 14px 38px rgba(23,79,121,0.17);
}

.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: #CFE7FA;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px 0 rgba(23,79,121,0.11);
  font-size: 1.08rem;
  color: #1b2432;
  min-width: 250px;
}

.testimonial-card p {
  color: #174F79;
  font-size: 1.1rem;
  flex: 1 1 auto;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card strong {
  color: #FFB800;
  font-weight: 800;
}

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

/* --- PLAYFUL DYNAMIC DECOR ----------- */
.hero {
  background: #CFE7FA;
  border-radius: 0 0 32px 32px;
  position: relative;
  overflow: hidden;
  padding-top: 36px;
  padding-bottom: 54px;
  margin-bottom: 40px;
  animation: heroFadeIn 1s cubic-bezier(.45,1.7,.91,.65) 0.1s both;
}

@keyframes heroFadeIn {
  0% {opacity:0;transform:translateY(48px) scale(.97)}
  100% {opacity:1;transform:none}
}

.hero::after {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #FFB800;
  opacity: 0.23;
  z-index: 0;
}
.hero .content-wrapper {
  position: relative;
  z-index: 2;
  align-items: flex-start;
}

.cta {
  background: #174F79;
  color: #fff;
  border-radius: 30px;
  padding: 32px 20px;
  margin-bottom: 50px;
  box-shadow: 0 10px 40px rgba(23,79,121,.07);
  text-align: center;
  position: relative;
}
.cta h2 {
  color: #fff;
}
.cta p {
  color: #fff;
}

.cta-btn {
  background: #FFB800;
  color: #174F79;
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.16rem;
  padding: 14px 34px;
  border-radius: 24px 14px 27px 14px;
  margin-top: 24px;
  margin-bottom: 0;
  box-shadow: 0 2px 10px 0 rgba(255,184,0,0.19);
  letter-spacing: 0.03em;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  border: 3px solid #fff;
  display: inline-block;
  position: relative;
  animation: popBtn .5s cubic-bezier(.65,.28,.77,1.57) 1 both;
}
@keyframes popBtn {
  0%   {transform: scale(0.86);}
  100% {transform: scale(1);}
}
.cta-btn:hover, .cta-btn:focus {
  background: #174F79;
  color: #fff;
  border-color: #FFB800;
  transform: translateY(-2px) scale(1.05) rotate(-2deg);
}

.main-nav .cta-btn {
  margin-left: 18px;
  margin-top: 0;
}

/* --- NAVIGATION ------------------------ */
header {
  background: #fff;
  padding: 0 0;
  box-shadow: 0 2px 18px 0 rgba(23,79,121,0.06);
  z-index: 1040;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 12px 20px;
  gap: 14px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  padding: 7px 0px;
  color: #174F79;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  transition: color 0.16s;
  border-radius: 7px;
}
.main-nav a:hover, .main-nav a:focus {
  color: #FFB800;
  background: #CFE7FA;
}

/* --- BURGER MENU (mobile) -------------- */
.mobile-menu-toggle {
  background: #FFB800;
  color: #174F79;
  border-radius: 50%;
  font-size: 2.0rem;
  padding: 7px 16px;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 9px 0 rgba(255,184,0,0.09);
  z-index: 1101;
  transition: background .19s, color .19s, transform .14s;
}
.mobile-menu-toggle:active {
  transform: scale(.93);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  background: #174F79;
  color: #fff;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding-top: 35px;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .36s cubic-bezier(.54,1.6,.46,1), opacity .22s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: #FFB800;
  color: #174F79;
  font-size: 2.1rem;
  border-radius: 14px;
  align-self: flex-end;
  margin: 10px 18px 6px 0;
  padding: 3px 14px 2px 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px 0 rgba(255,184,0,0.09);
  transition: background .17s, color .17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #fff;
  color: #FFB800;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 40px;
  gap: 22px;
  padding-left: 40px;
}
.mobile-nav a {
  background: none;
  color: #fff;
  font-size: 1.25rem;
  padding: 10px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 8px;
  transition: background .18s, color .16s;
  min-width: 189px;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFB800;
  color: #174F79;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- FEATURES LIST --------------------- */
.features ul, .services ul, .about ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
}
.features ul li, .about ul li, .services ul li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.13rem;
  background: #fff;
  border-radius: 13px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px 0 rgba(23,79,121,0.06);
  transition: box-shadow 0.17s, transform 0.18s;
  color: #174F79;
}
.features ul li img, .about ul li img, .services ul li img {
  width: 32px;
  height: 32px;
}
.features ul li:hover, .about ul li:hover, .services ul li:hover {
  box-shadow: 0 7px 22px 0 rgba(23,79,121,0.13);
  transform: translateY(-2px) scale(1.02) rotate(-1deg);
}

/* --- BLOG ----------- */
.articles {
  background: #CFE7FA;
}
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
  justify-content: flex-start;
}
.blog-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(23,79,121, 0.09);
  flex: 1 1 300px;
  min-width: 270px;
  max-width: 340px;
  padding: 22px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  transition: transform .19s, box-shadow .17s;
}
.blog-card h3 {
  color: #174F79;
  font-size: 1.18rem;
  margin-bottom: 7px;
}
.blog-card p {
  font-size: 1rem;
  color: #1b2432;
}
.blog-card a {
  margin-top: auto;
  color: #FFB800;
  font-weight: 800;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: text-decoration 0.16s;
}
.blog-card a:hover {
  text-decoration: underline wavy #FFB800 2px;
}
.blog-card:hover {
  transform: translateY(-4px) scale(1.025) rotate(-1deg);
  box-shadow: 0 9px 28px 0 rgba(23,79,121,0.19);
}

.categories-search {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.categories {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
}
.categories span {
  font-weight: 700;
  color: #174F79;
  margin-right: 8px;
}
.categories a {
  background: #fff;
  color: #174F79;
  border-radius: 8px;
  padding: 5px 13px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.16s, color 0.16s;
}
.categories a:hover, .categories a:focus {
  background: #FFB800;
  color: #174F79;
}
.search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 7px;
  padding: 4px 11px;
  box-shadow: 0 1px 3px 0 rgba(23,79,121, 0.07);
}
.search input {
  border: none;
  font-size: 1rem;
  background: transparent;
  outline: none;
  color: #174F79;
  font-family: 'Roboto', Arial, sans-serif;
  padding: 4px 0;
}
.search img {
  width: 22px;
  height: 22px;
}

/* --- CONTACT PAGE --- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 18px 0 20px 0;
}
.contact-details div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #174F79;
  font-weight: 500;
  font-size: 1.07rem;
  background: #fff;
  padding: 6px 14px;
  border-radius: 11px;
  box-shadow: 0 2px 6px 0 rgba(23,79,121,.09);
}
.map {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  margin-top: 14px;
  background: #CFE7FA;
  border-radius: 13px;
  padding: 18px;
}
.map img {
  width: 68px;
  height: auto;
}

/* --- SUCCESS PAGE --- */
.success {
  background: #CFE7FA;
  border-radius: 24px;
  padding: 40px 20px;
  margin: 0 auto 60px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  animation: heroFadeIn .65s both;
  box-shadow: 0 4px 24px 0 rgba(23,79,121, 0.12);
}
.success ul {
  margin: 0 0 0 1.2em;
}

/* --- LEGAL / SIMPLE PAGES  --- */
.legal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(23,79,121,0.08);
  padding: 40px 24px;
  margin: 40px 0 60px 0;
  color: #174F79;
}
.legal h1, .legal h2 {
  color: #174F79;
}

/* --- FOOTER -------------------- */
footer {
  background: #174F79;
  color: #fff;
  padding: 36px 0 0 0;
  box-shadow: 0 -2px 18px 0 rgba(23,79,121, 0.08);
  margin-top: 60px;
  font-size: 1.03rem;
}
footer .container {
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 12px;
}
.footer-menu {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-menu a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  transition: color .17s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #FFB800;
  text-decoration: underline;
}
footer .contact-info {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
footer .contact-info div {
  display: flex;
  align-items: center;
  gap: 8px;
}
footer .contact-info a {
  color: #FFB800;
  transition: color .14s;
}
footer .contact-info a:hover {
  color: #fff;
}
.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}
.social-links a img {
  width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px 0 rgba(255,184,0, 0.19); transition: background .17s; }
.social-links a:hover img {
  background: #FFB800;
}

/* --- COOKIE CONSENT BANNER -------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #174F79;
  color: #fff;
  z-index: 3000;
  padding: 24px 18px;
  box-shadow: 0 -5px 20px 0 rgba(23,79,121,0.14);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 90px;
  font-size: 1rem;
  animation: bannerIn .48s cubic-bezier(.72,.04,.38,.86) 0.22s both;
}
@keyframes bannerIn {
  0% {transform:translateY(100%) scale(0.95);opacity:0;}
  100% {transform:none;opacity:1;}
}
.cookie-banner .cookie-text {
  flex: 2 1 340px;
  min-width: 170px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  border-radius: 15px;
  padding: 13px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: #FFB800;
  color: #174F79;
  border: none;
  transition: background .15s, color .12s, transform .13s;
  margin: 0;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #fff;
  color: #FFB800;
  transform: translateY(-2px) scale(1.03);
}
.cookie-banner .btn-reject {
  background: #fff;
  color: #174F79;
  border: 2px solid #FFB800;
}
.cookie-banner .btn-reject:hover, .cookie-banner .btn-reject:focus {
  background: #FFB800;
  color: #174F79;
}
.cookie-banner .btn-settings {
  background: #174F79;
  color: #FFB800;
  border: 2px solid #FFB800;
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: #FFB800;
  color: #174F79;
}

/* COOKIE MODAL OVERLAY */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,33,52, 0.76);
  z-index: 3100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s cubic-bezier(.42,1.7,.7,.73);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  color: #174F79;
  border-radius: 20px;
  padding: 40px 22px 28px 22px;
  min-width: 310px;
  max-width: 99vw;
  max-width: 480px;
  box-shadow: 0 8px 32px rgba(23,79,121, 0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalShow .41s cubic-bezier(.53,1.6,.56,1) 0.13s both;
}
@keyframes modalShow {
  0% {transform: scale(.86) translateY(110px);opacity:0;}
  100% {transform: none; opacity: 1;}
}
.cookie-modal-content h2 {
  color: #174F79;
  margin-bottom: 5px;
}
.cookie-modal-content .cookie-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.cookie-modal-content .cat-name {
  font-weight: 700; font-size: 1rem;
}
.cookie-modal-content .cat-toggle {
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #CFE7FA;
  padding: 5px 18px;
  border-radius: 10px;
  border: none;
  color: #174F79;
  font-weight: 700;
  transition: background .14s, color .12s;
}
.cookie-modal-content .cat-toggle.active {
  background: #FFB800;
  color: #174F79;
}
.cookie-modal-content .cookie-modal-actions {
  margin-top: 16px;
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-modal-content .cookie-modal-close {
  position: absolute;
  top: 13px; right: 16px;
  background: transparent;
  font-size: 1.55rem;
  color: #174F79;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s;
}
.cookie-modal-content .cookie-modal-close:hover, .cookie-modal-content .cookie-modal-close:focus {
  background: #CFE7FA;
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
.card, .testimonial-card, .blog-card, .cta-btn, .features ul li, .about ul li{
  transition: transform .18s cubic-bezier(.61,1.13,.37,1), box-shadow .17s cubic-bezier(.65,.23,.67,1);
}

/* --- RESPONSIVE ADAPTATION ------------- */
@media (max-width: 1300px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  .content-wrapper, .features ul, .services ul, .about ul, .footer-menu {
    gap: 16px;
  }
  .card-container {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  .container {
    padding: 0 10px;
  }
  .section, .hero, .cta, .legal, .success {
    padding: 28px 6px;
  }
  .blog-grid {
    flex-direction: column;
    gap: 14px;
  }
  .content-wrapper, .feature-item { gap: 12px; }
  .card, .testimonial-card, .blog-card {
    padding: 16px 9px;
    min-width: 0;
  }
  .contact-details {
    gap: 9px;
  }
  .footer-menu, .social-links {
    gap: 11px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .content-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .section, .hero, .cta {
    margin-bottom: 36px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    font-size: .97rem;
    padding: 19px 7px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 8px;
  }
  .cookie-modal-content {
    padding: 26px 8px 18px 11px;
    min-width: 0;
  }
}
@media (max-width: 500px) {
  .card, .testimonial-card, .blog-card {
    padding: 9px 4px;
    font-size: .96rem;
  }
  .cookie-modal-content {
    min-width: 0;
    max-width: 93vw;
    padding: 17px 4px 8px 7px;
  }
}
