/* ==== 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 {
  scroll-behavior: smooth;
}
body {
  background: #F7F7F7;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #193552;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border: none;
  outline: none;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ==== BRAND FONTS ==== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:700,800,900&family=Open+Sans:400,600,700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  color: #193552;
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }
p, ul, ol, li, span, div, strong {
  font-family: 'Open Sans', Arial, sans-serif;
}
strong { font-weight: 700; }

/* ==== PLAYFUL DYNAMIC COLORS ==== */
:root {
  --color-primary: #193552; /* Navy Blue */
  --color-secondary: #EF9B1E; /* Orange */
  --color-accent: #F7F7F7; /* Light Gray/Background */
  --color-card-bg: #fff;
  --color-card-shadow: rgba(25,53,82,0.09);
  --color-fun1: #7DE2FC;   /* Soft Cyan */
  --color-fun2: #F7A072;   /* Coral */
  --color-fun3: #F9F871;   /* Lemon */
  --color-fun4: #5DCCB6;   /* Aqua Green */
}

/* ==== CONTAINER ==== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: var(--color-primary);
  box-shadow: 0 10px 24px rgba(25,53,82,0.06);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  color: #fff;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  position: relative;
  padding: 7px 14px;
  border-radius: 24px;
  transition: background-color 0.18s, box-shadow 0.18s, color 0.18s;
}
.main-nav a:not(.btn-primary):hover, 
.main-nav a:not(.btn-primary):focus {
  background: var(--color-fun4);
  color: #193552;
}
.btn-primary {
  background: var(--color-secondary);
  color: #fff;
  border-radius: 32px;
  padding: 10px 32px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  box-shadow: 0 3px 16px 0 rgba(239,155,30,0.13);
  border: none;
  cursor: pointer;
  outline: none;
  transition: background 0.3s, transform 0.15s;
  position: relative;
  z-index: 1;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-fun2);
  color: #193552;
  transform: translateY(-3px) scale(1.05) rotate(-2deg);
  box-shadow: 0 8px 32px 0 rgba(239,155,30,0.11);
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-fun2);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  box-shadow: 0 2px 10px 0 rgba(239, 155, 30, 0.09);
  z-index: 1020;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
}

/* ==== MOBILE MENU ==== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.48,1.65,.41,.96);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 40px;
  box-shadow: 8px 0 40px 0 rgba(25,53,82,0.13);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 16px 24px 10px 0;
  font-size: 2rem;
  background: var(--color-fun1);
  color: var(--color-primary);
  border-radius: 50%;
  padding: 6px 14px;
  cursor: pointer;
  border: none;
  transition: background 0.22s, color 0.22s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 40px;
}
.mobile-nav a {
  font-size: 1.2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  padding: 13px 14px;
  color: var(--color-primary);
  border-radius: 32px 6px 32px 12px;
  background: var(--color-fun3);
  margin: 3px 0;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-fun2);
  color: #fff;
  transform: translateX(10px) scale(1.04);
}

/* ==== MAIN LAYOUT ==== */
main {
  padding-top: 8px;
  padding-bottom: 60px;
}
section {
  background: transparent;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  max-width: 820px;
  margin: 0 auto 24px auto;
  padding: 32px 24px;
  background: var(--color-card-bg);
  border-radius: 28px;
  box-shadow: 0 7px 36px 0 var(--color-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  position: relative;
  transition: box-shadow 0.14s;
}
.content-wrapper:hover {
  box-shadow: 0 14px 52px 0 rgba(25,53,82,0.12);
}
.service-cards, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.service-cards > div, .service-list > div {
  background: var(--color-fun1);
  color: var(--color-primary);
  border-radius: 18px;
  box-shadow: 0 3px 16px 0 rgba(125,226,252,0.07);
  padding: 26px 22px 24px 22px;
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 270px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.17s, transform 0.14s;
  cursor: pointer;
}
.service-cards > div:hover, .service-list > div:hover {
  box-shadow: 0 10px 33px 0 rgba(239,155,30,0.13);
  transform: translateY(-5px) scale(1.033) rotate(-2deg);
  background: var(--color-fun3);
}
.service-cards span, .service-list span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: var(--color-secondary);
  margin-top: 8px;
  font-size: 1.15rem;
  background: var(--color-accent);
  border-radius: 10px;
  padding: 6px 16px;
}

/* ==== FEATURE/ICON LISTS ==== */
ul {
  margin-top: 10px;
}
ul li {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
  font-size: 1.1rem;
  line-height: 1.45;
}
ul li img {
  width: 36px;
  height: 36px;
  background: var(--color-fun3);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 1px 7px 0 rgba(249,248,113,0.09);
}

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

/* ==== TESTIMONIALS ==== */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff6e3;
  border-radius: 22px;
  box-shadow: 0 5px 22px 0 rgba(239,155,30,0.08);
  padding: 20px 25px 22px 25px;
  min-width: 220px;
  max-width: 340px;
  font-size: 1.09rem;
  color: #222;
  margin-bottom: 20px;
  position: relative;
  border-left: 6px solid var(--color-secondary);
  transition: box-shadow 0.16s, border-left 0.18s;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 14px 44px 0 rgba(239,155,30,0.16);
  border-left: 8px solid var(--color-fun2);
}
.testimonial-card p {
  color: #222;
  font-style: italic;
  font-size: 1.08rem;
}
.testimonial-card span {
  display: block;
  font-weight: bold;
  color: var(--color-primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}
.rating-stars {
  color: var(--color-secondary);
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 0.07em;
}

/* ==== CONTENT GRID EXAMPLES ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 15px;
  padding: 20px 22px;
  box-shadow: 0 3px 13px 0 rgba(25,53,82,0.08);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.15s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 7px 22px 0 rgba(25,53,82,0.13);
  transform: translateY(-3px) scale(1.02) 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;
}

.text-section {
  background: var(--color-fun1);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 18px 0;
  font-size: 1.06rem;
  box-shadow: 0 2px 9px 0 rgba(125,226,252,0.08);
}

/* ==== FOOTER ==== */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 40px 0 18px 0;
  border-top-left-radius: 42px;
  border-top-right-radius: 42px;
  box-shadow: 0 -6px 42px 0 rgba(25,53,82,0.13);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
  justify-content: center;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 20px;
  padding: 7px 13px;
  transition: background 0.2s, color 0.2s;
}
.footer-nav a:hover {
  background: var(--color-secondary);
  color: #fff;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  justify-content: center;
}
.footer-brand img {
  width: 53px;
  height: auto;
}
.brand-info {
  font-size: 1rem;
  font-weight: 400;
}
.footer-legal {
  text-align: center;
  color: var(--color-fun3);
  font-size: 0.97rem;
  margin-top: 9px;
  opacity: .71;
}

/* ==== ANIMATIONS ==== */
@keyframes wiggle {
  0%   { transform: rotate(-2deg); }
  17%  { transform: rotate(2deg); }
  34%  { transform: rotate(-1deg); }
  50%  { transform: rotate(3deg); }
  66%  { transform: rotate(-1deg); }
  80%  { transform: rotate(1deg); }
  100% { transform: rotate(-2deg); }
}
.btn-primary, .mobile-menu-toggle {
  animation: wiggle 2.2s infinite cubic-bezier(.41,.91,.62,1.1) alternate-reverse;
  animation-delay: .5s;
}
.btn-primary:hover, .btn-primary:focus {
  animation: none;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 4px solid var(--color-secondary);
  box-shadow: 0 -6px 32px 0 rgba(25,53,82,0.12);
  z-index: 3000;
  padding: 25px 24px 18px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  transition: transform 0.3s cubic-bezier(.56,2.2,.55,1), opacity 0.2s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hidden {
  opacity: 0;
  transform: translateY(140%);
  pointer-events: none;
}
.cookie-banner-message {
  font-size: 1.03rem;
  color: var(--color-primary);
  font-family: 'Open Sans', sans-serif;
  margin-right: 12px;
  flex: 1 1 230px;
}
.cookie-banner-actions {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
}
.cookie-btn {
  border-radius: 23px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  border: none;
  padding: 10px 22px;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.17s;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.reject {
  background: var(--color-fun2);
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: var(--color-fun1);
  color: var(--color-primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.04);
}

/* ==== COOKIE MODAL ==== */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(25,53,82,0.22);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.23s, visibility 0.23s;
}
.cookie-modal.active {
  visibility: visible;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 54px 0 rgba(25,53,82,.23);
  padding: 38px 28px 30px 28px;
  width: 95%;
  max-width: 420px;
  animation: modal-show 0.38s cubic-bezier(.48,1.65,.41,.96);
}
@keyframes modal-show {
  from {transform: scale(.85) translateY(32px); opacity:0;}
  to {transform: scale(1) translateY(0); opacity:1;}
}
.cookie-modal-content h3 {
  font-size: 1.28rem;
  color: var(--color-primary);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 17px;
}
.cookie-modal-content ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 22px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--color-primary);
}
.cookie-category input[type=checkbox] {
  width: 22px;
  height: 22px;
  margin: 0 7px 0 0;
  accent-color: var(--color-secondary);
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--color-fun1);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 1.7rem;
  padding: 3px 16px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1024px) {
  header .container { flex-direction: column; align-items: flex-start; gap: 10px; }
  .main-nav { gap: 15px; }
  .footer-brand { flex-direction: column; gap: 8px; }
  .content-wrapper { padding: 22px 10px; }
  .service-cards > div, .service-list > div { min-width: 160px; padding: 20px 11px 18px 11px; }
}
@media (max-width: 900px) {
  .testimonials, .service-cards, .service-list, .content-grid { gap: 14px; }
}
@media (max-width: 768px) {
  header .container { flex-direction: row; gap: 8px; padding: 12px 0; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .content-wrapper { padding: 14px 6vw; border-radius: 16px;}
  .service-cards, .service-list, .testimonials, .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .service-cards > div, .service-list > div, .testimonial-card {
    min-width: unset; max-width: unset; width: 100%;
  }
  .footer-brand { flex-direction: column; align-items: center; }
  .card-container { flex-direction: column; gap: 15px; }
  .section { padding: 24px 6vw; margin-bottom: 34px; }
  .cookie-banner { flex-direction: column; gap: 10px; padding: 20px 8vw 14px 7vw;}
}
@media (max-width: 500px) {
  header img { height: 37px; }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.11rem; }
  .btn-primary, .cookie-btn { font-size: 0.91rem; padding: 10px 12px; }
  .content-wrapper { padding: 10px 3vw; }
  .section { padding: 20px 2vw; }
  .testimonials, .service-cards, .service-list {
    gap: 8px;
  }
  .testimonial-card, .service-cards > div, .service-list > div {
    padding: 14px 6px 14px 12px;
  }
}

/* ==== DYNAMIC PLAYFUL DECOR ==== */
section {
  position: relative;
}
section:before {
  content: "";
  display: block;
  position: absolute;
  top: -24px;
  left: -18px;
  width: 78px;
  height: 78px;
  background: var(--color-fun3);
  border-radius: 42% 54% 58% 66%/56% 49% 74% 44%;
  opacity: 0.08;
  z-index: 0;
}
section:after {
  content: "";
  display: block;
  position: absolute;
  bottom: -28px;
  right: -18px;
  width: 87px;
  height: 87px;
  background: var(--color-fun4);
  border-radius: 40% 58% 57% 39%/57% 35% 65% 45%;
  opacity: 0.10;
  z-index: 0;
}
.content-wrapper, .footer-brand, .testimonial-card {
  position: relative;
  z-index: 1;
}

/* ==== UTILS ==== */
[hidden] { display: none !important; }
.display-block { display: block !important; }

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

/* ==== END ==== */
