/* ===== 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;
  box-sizing: border-box;
  vertical-align: baseline;
}
html {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F2F2F7;
  font-size: 16px;
}
body {
  color: #222;
  background: #F2F2F7;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: #234099;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E3B84A;
  outline: none;
}

/* ===== BRAND COLORS & FONTS ===== */
:root {
  --primary: #234099;
  --primary-rgb: 35, 64, 153;
  --secondary: #F2F2F7;
  --accent: #E3B84A;
  --accent-rgb: 227,184,74;
  --danger: #F74A4A;
  --success: #21cd8c;
  --bg: #F2F2F7;
  --white: #fff;
  --black: #222;
  --font-display: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

/* ====== HEADERS & NAVIGATION ====== */
header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(35,64,153,0.06);
  z-index: 100;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 19px 20px 19px 20px;
  gap: 24px;
}
header nav a img {
  height: 40px;
  margin-right: 14px;
}
header nav ul {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
header nav ul li {
  list-style: none;
}
header nav ul li a {
  font-family: var(--font-body);
  font-size: 16px;
  color: #234099;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--primary);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  padding: 11px 26px;
  border-radius: 30px;
  box-shadow: 0 3px 18px rgba(227,184,74,0.08);
  border: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  margin-left: 12px;
  text-shadow: 0 1px 0 #fff5db;
}
.btn-primary:hover, .btn-primary:focus {
  background: #fcc04a;
  color: #1a255e;
  box-shadow: 0 5px 24px rgba(var(--accent-rgb),0.15);
  transform: translateY(-2px) scale(1.04) rotate(-2deg);
}

.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: #222;
  border: none;
  border-radius: 20px;
  font-size: 2rem;
  padding: 8px 14px 4px 14px;
  margin-left: 16px;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(35,64,153,0.08);
  transition: background 0.18s, transform 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--primary);
  background: #ffeecf;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(35,64,153,0.93);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(100vw);
  transition: transform 0.38s cubic-bezier(.77,.03,.33,.93);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: transparent;
  color: var(--accent);
  border: none;
  margin: 18px 0 20px 22px;
  cursor: pointer;
  align-self: flex-start;
  line-height: 1;
  z-index: 2;
  transition: color 0.15s, transform 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fffbe0;
  transform: scale(1.15);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 32px;
  margin-top: 16px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  background: transparent;
  padding: 16px 12px 12px 10px;
  border-radius: 14px;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 2px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(227,184,74,0.22);
  color: #E3B84A;
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 6px 28px rgba(var(--primary-rgb),0.07);
  transition: box-shadow 0.18s;
}
.section:not(:first-of-type) {
  margin-top: 10px;
}

/* Flex utilities */
.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--secondary);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(var(--primary-rgb),0.03),0 0px 11px rgba(232,192,74,0.04);
  padding: 28px 22px;
  transition: box-shadow 0.18s, transform 0.11s;
}
.card:hover {
  box-shadow: 0 8px 36px rgba(var(--accent-rgb),0.16);
  transform: translateY(-3px) scale(1.015) rotate(-1deg);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.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;
  margin: 12px 0;
  background: #fffbe0;
  border-radius: 19px;
  box-shadow: 0 4px 28px rgba(var(--primary-rgb),0.07);
  min-width: 180px;
  flex: 1 1 320px;
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 18px;
  color: #232323;
  line-height: 1.6;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px #fff5db5e;
}
.testimonial-card span {
  margin-left: 12px;
  font-size: 15px;
  color: #576175;
  font-family: var(--font-body);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== TYPOGRAPHY ===== */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.7rem;
  margin-bottom: 10px;
  line-height: 1.10;
  color: var(--primary);
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
h4, .h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
}
.text-section h2, .text-section h3, .text-section h4 {
  margin-top: 12px;
  margin-bottom: 6px;
}
p {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #292929;
  font-family: var(--font-body);
}
strong {
  font-weight: 700 !important;
  color: var(--primary);
  font-family: var(--font-display);
}
.section ul,
.section ol {
  margin: 0 0 10px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section ul li,
.section ol li {
  font-size: 1.02rem;
  color: #232323;
  padding-left: 0.5em;
  position: relative;
  line-height: 1.5;
}
.section ul li img,
.section ol li img {
  height: 28px;
  width: 28px;
  margin-right: 9px;
  vertical-align: middle;
  position: relative;
  top: 3px;
}
.service-benefit {
  color: var(--success);
  font-weight: 500;
  font-size: 0.96em;
  margin-left: 6px;
}
.text-section {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Fun, Playful Animations and Accents! */
.section {
  position: relative;
  overflow: visible;
}
.section::before {
  content: '';
  display: block;
  position: absolute;
  top: -18px;
  left: -18px;
  width: 46px;
  height: 46px;
  border-radius: 60% 40% 58% 40%/40% 50% 60% 50%;
  background: rgba(227,184,74,0.13);
  z-index: 0;
  filter: blur(2px);
  animation: pulseAccent 2.7s infinite alternate;
}
@keyframes pulseAccent {
  0% { opacity: 0.85; transform: scale(1.08) rotate(-2deg); }
  100% { opacity: 0.55; transform: scale(1.22) rotate(7deg); }
}

.section:nth-child(even)::before {
  left: unset; right: -16px;
  top: unset; bottom: -16px;
}

/* ===== BUTTONS & INTERACTION ===== */
button, .btn-primary {
  font-family: var(--font-display); 
  font-weight: 700;
}
button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 9px 24px;
  border-radius: 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.21s, color 0.13s, transform 0.13s;
}
button:hover, button:focus {
  background: var(--accent);
  color: var(--primary);
  outline: none;
  transform: scale(1.04);
  box-shadow: 0 3px 14px rgba(var(--accent-rgb),0.11);
}

/* ====== FOOTER ===== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 38px 0 16px 0;
  margin-top: 60px;
  box-shadow: 0 -5px 30px rgba(35,64,153,0.05);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
footer nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}
footer nav ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
footer nav ul li a, footer nav ul li {
  color: #dde7fa;
  font-size: 15px;
  font-family: var(--font-body);
  padding: 3px 0;
  border-radius: 6px;
  transition: background 0.14s, color 0.14s;
}
footer nav ul li a:hover, footer nav ul li a:focus {
  background: rgba(227,184,74,0.18);
  color: #fffbe6;
}
footer .text-section strong {
  color: #fffbe0;
}
footer .text-section {
  font-size: 14px;
  color: #e6eaff;
}
footer p {
  margin-bottom: 3px;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 12px;
  width: 94vw;
  max-width: 580px;
  z-index: 4000;
  margin: 0 3vw;
  background: #fffbe0;
  border-radius: 18px;
  box-shadow: 0 3px 28px rgba(var(--primary-rgb),0.16);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  font-family: var(--font-body);
  font-size: 1.01rem;
  color: #232323;
  animation: slideUpIn 0.84s cubic-bezier(.67,.04,.29,.98);
}
@keyframes slideUpIn {
  0% { transform: translateY(180px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin-bottom: 0;
  margin-right: 10px;
}
.cookie-banner .btn-primary, .cookie-banner .cookie-btn {
  font-size: 0.96em;
  padding: 9px 18px;
  border-radius: 16px;
  margin: 0 6px;
}
.cookie-banner .cookie-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s, color 0.13s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #E3B84A;
  color: #222;
}

/* Cookie dialog modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(35,64,153,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fffbe0;
  border-radius: 22px;
  box-shadow: 0 6px 38px rgba(var(--primary-rgb),0.19);
  max-width: 440px;
  width: 96vw;
  padding: 34px 28px 22px 28px;
  color: #222;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: zoomInCookieModal 0.38s cubic-bezier(.63,.01,.27,1.11);
  position: relative;
}
@keyframes zoomInCookieModal {
  0% { transform: scale(0.84) rotate(7deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.47rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-weight: 600;
  font-family: var(--font-body);
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}
.cookie-category input[disabled] {
  opacity: 0.6;
}
.cookie-modal .cookie-actions {
  margin-top: 13px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  font-size: 1em;
  padding: 10px 19px;
  border-radius: 16px;
  display: inline-block;
}

.cookie-modal .close-modal {
  position: absolute;
  top: 13px;
  right: 13px;
  background: transparent;
  color: var(--primary);
  font-size: 1.6em;
  border: none;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #E3B84A;
}

/* ======== MEDIA QUERIES (RESPONSIVE) ======== */
@media (max-width: 1024px) {
  header nav ul {
    gap: 11px;
  }
}
@media (max-width: 900px) {
  .container { max-width: 95vw; }
  header nav { padding: 16px 2vw; }
  .section { padding: 30px 8px; }
}
@media (max-width: 810px) {
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer nav { flex-direction: column; gap: 20px; }
}
@media (max-width: 750px) {
  h1, .h1 { font-size: 2.2rem; }
  h2, .h2 { font-size: 1.4rem; }
}
@media (max-width: 768px) {
  header nav ul { display: none !important; }
  .mobile-menu-toggle { display: block; }
  .mobile-menu {
    display: flex;
  }
  .content-grid, .card-container, .card-grid {
    flex-direction: column !important;
    gap: 20px;
    align-items: stretch;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    min-width: 0;
    font-size: 1rem;
  }
  .section {
    padding: 24px 4px;
    margin-bottom: 38px;
  }
  .footer .container, .footer .content-wrapper {
    padding: 0;
    gap: 11px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
@media (max-width: 520px) {
  h1, .h1 { font-size: 1.25rem; }
  h2, .h2 { font-size: 1.0rem; }
  .mobile-menu {
    padding-left: 0;
    padding-right: 0;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    font-size: 0.97rem;
    padding: 13px 7px;
    width: 97vw;
    left: 0;
    margin: 0;
    max-width: 99vw;
  }
  .cookie-modal {
    padding: 13vw 5vw 17vw 5vw;
    max-width: 98vw;
  }
}

/* ====== ADDITIONAL PLAYFUL DYNAMIC EFFECTS ====== */
.card, .testimonial-card, .section {
  transition: box-shadow 0.22s, transform 0.13s !important;
}
.card:hover, .testimonial-card:hover, .section:hover {
  box-shadow: 0 12px 32px rgba(var(--accent-rgb),0.14), 0 2px 35px rgba(var(--primary-rgb),0.08);
  z-index: 2;
  transform: translateY(-4px) scale(1.018) rotate(-1.2deg);
}

/* --- Fun underline for links --- */
a:not(.btn-primary):not(.mobile-nav a):after {
  content: '';
  display: inline-block;
  position: relative;
  left: 0;top: 4px;
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 6px;
  transform: scaleX(0) skew(-18deg);
  transition: transform 0.22s;
}
a:hover:not(.btn-primary):not(.mobile-nav a):after {
  transform: scaleX(0.7) skew(-13deg);
}

/* --- Card playful shadow accent --- */
.card::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -13px; right: 28px;
  width: 30px; height: 12px;
  background: var(--accent);
  border-radius: 30px 10px 8px 21px;
  opacity: 0.12;
  filter: blur(1px);
  z-index: 0;
  pointer-events: none;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 9px;
  background: #e2e9fd;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 6px;
  background-clip: padding-box;
}

/* ===== FUN FONTS FOR PLAYFUL TITLES ===== */
h1, h2, .btn-primary {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* Apply energetic playful circling animation to .btn-primary on hover */
@keyframes btnWiggle {
  0% { transform: rotate(-1.3deg) scale(1.00); }
  13% { transform: rotate(4deg) scale(1.02); }
  25% { transform: rotate(-3deg) scale(1.03); }
  60% { transform: rotate(2deg) scale(1.01); }
  100% { transform: rotate(0) scale(1.0); }
}
.btn-primary:hover, .btn-primary:focus {
  animation: btnWiggle 0.35s 1;
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== UTILITY SPACING CLASSES ===== */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.pb-1 { padding-bottom: 8px !important; }
.pb-2 { padding-bottom: 20px !important; }

/* ===== SPECIAL COMPONENTS ===== */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.service-cards .text-section {
  background: var(--secondary);
  border-radius: 16px;
  box-shadow: 0 1px 16px rgba(var(--accent-rgb),0.07);
  padding: 19px 20px 13px 19px;
  min-width: 200px;
  flex: 1 1 290px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.service-cards .text-section:hover {
  box-shadow: 0 5px 28px rgba(var(--primary-rgb),0.13);
  transform: scale(1.02) rotate(-1deg);
}
.service-cards .text-section h2 span {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  margin-left: 6px;
}

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