/* --- CSS RESET & BASE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  background: #f5f8fa;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  background: #f5f8fa;
  color: #145278;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
}
img, picture, video {
  max-width: 100%;
  display: block;
}
a {
  color: #145278;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #8AC441;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.3em;
  margin-bottom: 1.5em;
}
li {
  margin-bottom: 0.7em;
}
p {
  margin-bottom: 1.3em;
}

/* --- BRAND FONTS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #145278;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.65rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.25rem;
  color: #207db4;
  margin-bottom: 8px;
}
strong {
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* --- FUN DISPLAY FONTS AND ANIMATED HEADINGS --- */
h1, h2, .btn-primary, .btn-secondary {
  letter-spacing: 0.5px;
  text-shadow: 0 2px 6px rgba(20,82,120,0.04);
  position: relative;
}
h1 span, h2 span {
  color: #8AC441;
  animation: playful-bounce 1.2s infinite alternate ease-in-out;
  display: inline-block;
}
@keyframes playful-bounce {
  to {
    transform: rotate(-4deg) translateY(-6px) scale(1.06);
  }
}

/* --- LAYOUT CONTAINERS --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* --- HEADER & NAV --- */
header {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(20,82,120,0.038);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 99;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 18px 0 10px 0;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 18px;
  color: #145278;
  background: transparent;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  position: relative;
}
.main-nav a.btn-primary,
.main-nav a.btn-primary:visited {
  background: #8AC441;
  color: #fff;
  box-shadow: 0 2px 12px rgba(125,200,55,0.18);
}
.main-nav a.btn-primary:hover,
.main-nav a.btn-primary:focus {
  background: #145278;
  color: #fff;
  box-shadow: 0 2px 16px 0 rgba(20,82,120,0.11);
}
.main-nav a:hover,
.main-nav a:focus {
  background: #eef6e8;
  color: #207db4;
}
.main-nav img {
  height: 36px;
  width: auto;
  padding: 0;
  margin-right: 10px;
}

/* --- MOBILE HEADER --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: #145278;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 8px 12px;
  z-index: 302;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #8AC44122;
  border-radius: 50%;
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  max-width: 100vw;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.68,-0.01,.16,.99);
  z-index: 301;
  box-shadow: -10px 0 32px 0 rgba(20,82,120,0.12);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 54px 32px 24px 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 2rem;
  background: none;
  color: #145278;
  border: none;
  cursor: pointer;
  outline: none;
  z-index: 305;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 8px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #145278;
  font-size: 1.18rem;
  font-weight: 700;
  padding: 12px 0;
  border-radius: 12px;
  background: transparent;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #8AC44122;
  color: #8AC441;
}

@media (max-width: 992px) {
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 880px) {
  .main-nav {
    gap: 4px;
  }
  .main-nav a {
    font-size: 0.98rem;
    padding: 7px 9px;
  }
}
@media (max-width: 770px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 771px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- FLEX SECTION SPACING & COMMON CONTAINERS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 28px rgba(20, 82, 120, 0.05);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 rgba(20,82,120,0.08);
  transition: box-shadow 0.18s, transform 0.16s;
  padding: 28px;
}
.card:hover {
  box-shadow: 0 4px 36px 0 rgba(138,196,65,0.17);
  transform: translateY(-3px) scale(1.025);
}
.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;
  margin-bottom: 16px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fffbe7;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 2px 16px 0 rgba(20,82,120,0.08);
  margin-bottom: 24px;
  min-width: 260px;
  color: #145278;
  font-size: 1.08rem;
  position: relative;
  transition: box-shadow 0.14s, background 0.14s;
}
.testimonial-card blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  margin-bottom: 3px;
  color: #145278;
  background: none;
  quotes: "\201C" "\201D";
}
.testimonial-card blockquote:before,
.testimonial-card blockquote:after {
  color: #8AC441;
  font-size: 2.25rem;
  line-height: 0.1em;
  vertical-align: -0.4em;
}
.testimonial-card blockquote:before {
  content: open-quote;
}
.testimonial-card blockquote:after {
  content: close-quote;
}
.testimonial-card strong {
  color: #8AC441;
}
.testimonial-card:hover {
  background: #f5f8fa;
  box-shadow: 0 4px 25px rgba(20,82,120,0.11);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HERO, CTA, SECTION BACKGROUNDS --- */
.hero, .cta {
  background: #f5f8fa;
  border-radius: 0 0 34px 34px;
  box-shadow: none;
  padding: 50px 0 40px 0;
  margin-bottom: 48px;
}
.hero .btn-primary, .cta .btn-primary {
  margin-top: 15px;
}
.cta {
  text-align: center;
  background: #8ac4410b;
  margin-bottom: 0;
}
.cta h2 {
  color: #207db4;
  font-size: 2rem;
}
.services-overview,
.features,
.team,
.faq,
.pricing-table,
.benefits,
.ratings,
.legal-privacy,
.legal-rodo,
.legal-cookies,
.legal-terms,
.about-us,
.services-detail,
.tips-blog,
.thank-you,
.contact {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(20,82,120,0.038);
}
/* --- Generic Section Padding --- */
section {
  margin-bottom: 32px;
  width: 100%;
}

/* --- LISTS WITH ICONS --- */
ul li img {
  display: inline-block;
  height: 26px;
  width: 26px;
  vertical-align: middle;
  margin-right: 12px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #d1edb0;
  box-shadow: 0 2px 7px 0 rgba(138,196,65,0.11);
}
.features ul, .benefits ul, .ratings ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}
.features ul li, .benefits ul li, .ratings ul li {
  margin-bottom: 15px;
  padding-left: 0;
  font-size: 1.07rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- BUTTONS --- */
.btn-primary,
.btn-secondary {
  display: inline-block;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.09rem;
  padding: 13px 32px;
  border: none;
  border-radius: 28px;
  margin: 8px 0 0 0;
  min-width: 160px;
  text-align: center;
  box-shadow: 0 2px 18px 0 rgba(20,82,120,0.08);
  outline: none;
  transition: background 0.19s, color 0.14s, box-shadow 0.15s, transform 0.18s;
}
.btn-primary {
  background: #8AC441;
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #145278;
  color: #fff;
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 3px 26px 0 rgba(20,82,120,0.13);
}
.btn-secondary {
  background: #fff;
  color: #145278;
  border: 2px solid #8AC441;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #8AC441;
  color: #fff;
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 2px 18px 0 rgba(138,196,65,0.09);
}

/* --- TABLES (Pricing) --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  background: #f5f8fa;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 2px 12px 0 rgba(20,82,120,0.06);
}
thead th {
  background: #8AC441;
  color: #fff;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  padding: 12px 4px;
}
tbody td {
  padding: 13px 4px;
  font-size: 1.03rem;
  border-bottom: 1px solid #e0e7ef;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td {
  background: #eef6e8;
}

/* --- BLOG ARTICLES --- */
.blog-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 21px;
  margin-bottom: 12px;
}
.blog-articles article {
  flex: 1 1 260px;
  background: #f5f8fa;
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(20,82,120,0.06);
  padding: 22px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  transition: transform 0.14s, box-shadow 0.17s;
}
.blog-articles article:hover {
  transform: translateY(-3px) scale(1.013);
  box-shadow: 0 4px 21px rgba(138,196,65,0.12);
}

/* --- CONTACT INFO & FOOTER --- */
footer {
  background: #145278;
  color: #fff;
  padding: 0 0 8px 0;
  font-size: 0.96rem;
  margin-top: 40px;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -2px 22px rgba(20,82,120,.10);
}
footer .container {
  padding-top: 36px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
footer .quick-links {
  flex: 1 1 220px;
  margin-bottom: 12px;
}
footer .quick-links a {
  color: #fff;
  opacity: 0.88;
  font-weight: 600;
  transition: color 0.15s;
}
footer .quick-links a:hover {
  color: #8AC441;
  opacity: 1;
  text-decoration: underline;
}
footer .contact-info {
  flex: 1 1 270px;
  line-height: 1.7;
  color: #fff;
}
footer .contact-info img {
  height: 20px;
  width: 20px;
  vertical-align: middle;
  margin-right: 7px;
}
footer .contact-info a {
  color: #f5f8fa;
  opacity: 0.97;
  font-weight: 700;
  transition: color 0.16s;
}
footer .contact-info a:hover {
  color: #8AC441;
}
footer .social-media {
  flex: 1 1 160px;
  display: flex;
  gap: 16px;
  align-items: center;
}
footer .social-media a img {
  height: 36px;
  width: 36px;
  border-radius: 10px;
  transition: box-shadow 0.18s;
  background: #fff;
  box-shadow: 0 0 5px 0 #8AC44111;
}
footer .social-media a:hover img {
  box-shadow: 0 2px 18px #8ac44130,0 0 5px #fff;
}

/* --- CONTACT PAGE DETAILS --- */
.contact-info ul, .contact-info {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}
.contact-info li {
  margin-bottom: 10px;
  font-size: 1.07rem;
  display: flex;
  align-items: center;
}
.location-map {
  background: #f5f8fa;
  border-radius: 15px;
  padding: 18px 13px;
  margin: 15px 0;
  box-shadow: 0 2px 8px rgba(20,82,120,0.05);
}

/* --- SPECIAL: THANK YOU STYLES --- */
.thank-you {
  text-align: center;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- RESPONSIVE DESIGN RULES --- */
@media (max-width: 1200px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 900px) {
  h1 { font-size: 2.02rem; }
  h2 { font-size: 1.32rem; }
  .content-wrapper { gap: 16px; }
}
@media (max-width: 770px) {
  .about-us, .services-overview, .features, .team, .benefits, .faq, .tips-blog, .contact, .cta, .section, .legal-privacy, .legal-rodo, .legal-cookies, .legal-terms,
  .services-detail, .pricing-table, .ratings, .thank-you {
    padding: 23px 5px;
    margin-bottom: 30px;
    border-radius: 13px;
  }
  .card { padding: 15px; }
  .container { padding: 0 7px; }
  .blog-articles { gap: 11px; }
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 0;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.14rem; }
  h2 { font-size: 1.02rem; }
  .main-nav a, .mobile-nav a { font-size: 1rem; }
  .card,
  .testimonial-card,
  .about-us, .features, .team, .benefits, .faq, .tips-blog, .contact, .cta, .section,
  .pricing-table, .ratings, .legal-privacy, .legal-rodo, .legal-cookies, .legal-terms {
    padding: 11px 2px;
    border-radius: 10px;
  }
  .btn-primary, .btn-secondary {
    font-size: 0.95rem;
    padding: 10px 14px;
    min-width: unset;
  }
}
/* Flex wrap and direction corrections for content layouts */
@media (max-width: 1080px) {
  .content-grid, .card-container {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* --- MICRO-INTERACTIONS & DYNAMIC ANIMATION --- */
.btn-primary, .btn-secondary, .card, .testimonial-card, .blog-articles article {
  transition: box-shadow 0.18s, background 0.17s, color 0.14s, transform 0.13s;
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.97) translateY(3px);
}
.card:active, .blog-articles article:active, .testimonial-card:active {
  transform: scale(0.985);
}

/* --- VISUAL FLAIR: FUN SHAPES/DECOR (example with only ::before) --- */
.about-us h1::before, .features h2::before, .hero h1::before {
  content: '';
  display: inline-block;
  background: #8AC441;
  width: 18px; height: 18px;
  margin-right: 10px;
  margin-bottom: 2px;
  border-radius: 5px 25% 30% 75%;
  box-shadow: 0 0 10px #8ac44133,4px 6px #f5f8fa99;
  vertical-align: middle;
  animation: popColor 1.5s infinite alternate;
}
@keyframes popColor {
  50% { box-shadow: 0 0 16px #8ac4417d, 0 0 24px #fff; }
  100% { box-shadow: 0 0 25px #14527830, 5px 9px #8ac44133; }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
  z-index: 4000;
  background: #145278;
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 28px rgba(20,82,120,.23);
  padding: 24px 20px 20px 32px;
  min-width: 290px;
  max-width: 95vw;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  pointer-events: none;
  transition: opacity 0.28s, transform 0.32s cubic-bezier(.7,0,.25,1.1);
}
.cookie-banner.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.cookie-banner__buttons {
  display: flex;
  flex-direction: row;
  gap: 11px;
  margin-top: 7px;
}
.cookie-banner__buttons .btn-primary,
.cookie-banner__buttons .btn-secondary {
  padding: 8px 23px;
  font-size: 1rem;
  min-width: unset;
  margin: 0 2px 0 0;
}
.cookie-banner__buttons .btn-secondary {
  border: 2px solid #f5f8fa;
  background: transparent;
  color: #fff;
}
.cookie-banner__buttons .btn-secondary:hover {
  background: #8AC441;
  color: #fff;
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 4050;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(20,82,120,0.21);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.22s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal.active {
  display: flex;
}
.cookie-modal__content {
  background: #f5f8fa;
  color: #145278;
  border-radius: 20px;
  box-shadow: 0 4px 44px 0 rgba(20,82,120,0.21);
  padding: 34px 25px 26px 26px;
  max-width: 375px;
  width: 90vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal__close {
  position: absolute; top: 18px; right: 25px;
  font-size: 1.65rem;
  background: none;
  border: none;
  color: #145278;
  cursor: pointer;
}
.cookie-modal__categories {
  display: flex; flex-direction: column; gap: 13px;
}
.cookie-category {
  display: flex; flex-direction: row; align-items: center;
  gap: 11px;
  padding: 9px 0;
  border-bottom: 1px solid #8ac44115;
  font-size: 1.09rem;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category input[type="checkbox"] {
  accent-color: #8AC441;
  width: 18px; height: 18px; margin-right: 6px;
}
.cookie-category .always-on {
  color: #8AC441;
  font-weight: 700;
  margin-left: 7px;
  font-size: 0.98em;
}
.cookie-modal__buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal__buttons .btn-primary,
.cookie-modal__buttons .btn-secondary {
  padding: 8px 24px;
  min-width: unset;
}
@media (max-width: 600px) {
  .cookie-modal__content {
    padding: 16px 4px 12px 7px;
  }
}

/* --- UTILITIES & PRINT --- */
@media print {
  header, nav, footer, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff !important; color: #222 !important; }
}

/* --- FOCUS VISIBLE FOR ACCESSIBILITY --- */
:focus-visible {
  outline: 3px solid #8AC441;
  outline-offset: 2px;
}

/* --- HIDE EXCESSIVE MARGINS ON LAST ELEMENTS --- */
.content-wrapper > :last-child {
  margin-bottom: 0 !important;
}

/* --- FOR DEMO PURPOSE: PREVENT OVERLAPPING (SAFE MARGINS EVERYWHERE) --- */
.section, .card, .testimonial-card, .card-container > *, .feature-item, .content-grid > *, .blog-articles > * {
  margin-bottom: 20px !important;
}
.card-container, .content-grid, .blog-articles {
  gap: 20px !important;
}

/*--- END ---*/
