/* RESET & BASE STYLES */
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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F8FC;
  color: #2C3E50;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
}
a {
  color: #3CB371;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #029688;
  text-decoration: underline;
}
ul, ol {
  margin-bottom: 20px;
  margin-left: 24px;
}
li {
  margin-bottom: 12px;
  font-size: 16px;
}
strong {
  font-weight: bold;
}

/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:700,900&family=Roboto:400,500,700&display=swap');
h1, .hero h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: #2C3E50;
  margin-bottom: 20px;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #2C3E50;
  margin-bottom: 18px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #2C3E50;
  margin-bottom: 12px;
}
p, .footer-tagline {
  font-size: 17px;
  color: #2C3E50;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 16px;
}
.text-section ul {
  padding-left: 24px;
}
.text-section li {
  font-size: 16px;
}

/* PLAYFUL_DYNAMIC COLORS & DECORATION */
:root {
  --brand-primary: #2C3E50;
  --brand-secondary: #7AC49C;
  --brand-accent: #F6F8FC;
  --brand-highlight: #FEBC59;
  --brand-pink: #FF69B4;
  --brand-blue: #4DA1FF;
  --brand-violet: #A373ED;
  --text-base: #2C3E50;
  --playful-shadow: 0 4px 16px 0 rgba(122, 196, 156, 0.11);
  --playful-radius: 18px;
}

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 0;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* SECTION SPACING (MANDATORY) */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  position: relative;
}

/* FLEXBOX MANDATORY CONTAINERS */
.feature-grid, .service-cards, .case-study-grid, .blog-list, .footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  width: 100%;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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: 8px;
  padding: 20px;
  background: #fff;
  border-radius: var(--playful-radius);
  box-shadow: 0 2px 14px 0 rgba(44,62,80,0.08), var(--playful-shadow);
  margin-bottom: 22px;
  min-width: 260px;
  max-width: 380px;
  border: 2.5px solid var(--brand-secondary);
  transition: transform 0.22s cubic-bezier(.7,.3,.2,.9);
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-4px) scale(1.018) rotate(-1.5deg);
  box-shadow: 0 8px 28px 0 rgba(122,196,156,0.12), 0 2px 24px 0 #ffe9e8;
}

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

/* HEADER & NAVIGATION */
header {
  background: #fff;
  padding: 0;
  box-shadow: 0 2px 12px 0 rgba(122,196,156,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo img {
  height: 46px;
  width: auto;
  margin-right: 10px;
  transition: transform 0.25s;
}
.logo:hover img {
  transform: scale(1.07) rotate(-2.5deg);
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-base);
  padding: 8px 0 4px 0;
  transition: color 0.18s, border-bottom 0.18s;
  border-bottom: 2.5px solid transparent;
  border-radius: 0 0 7px 7px;
}
.main-nav a:hover, .main-nav a:focus, .main-nav a.active {
  color: var(--brand-secondary);
  border-bottom: 2.5px solid var(--brand-pink);
  background: rgba(254, 188, 89, 0.05);
}
.cta.primary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--brand-secondary);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  border: none;
  padding: 12px 30px;
  border-radius: 32px 8px 32px 8px;
  box-shadow: 0 4px 16px 0 rgba(254,188,89,0.09);
  cursor: pointer;
  margin-left: 26px;
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
  letter-spacing: 0.7px;
  display: inline-block;
}
.cta.primary:hover, .cta.primary:focus {
  background: #4DA1FF;
  color: #fff;
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 8px 24px 0 rgba(254,105,180,0.09);
}
.cta {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--brand-highlight);
  color: #2C3E50;
  font-weight: 700;
  font-size: 17px;
  border: none;
  padding: 9.5px 24px;
  border-radius: 22px 8px 22px 8px;
  cursor: pointer;
  box-shadow: 0 2px 9px 0 rgba(254,105,180,0.06);
  margin-top: 12px;
  display: inline-block;
  transition: background 0.2s, color 0.2s, transform 0.19s;
}
.cta:hover, .cta:focus {
  background: var(--brand-pink);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

/* BURGER MENU (MOBILE NAVIGATION) */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--brand-secondary);
  cursor: pointer;
  display: none;
  z-index: 102;
  margin-left: 18px;
  transition: color 0.2s, transform 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--brand-pink);
  transform: scale(1.12) rotate(6deg);
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(254,188,89,0.96);
  box-shadow: 0 2px 22px 0 rgba(122,196,156,0.13);
  z-index: 999;
  transform: translateX(100vw);
  transition: transform 0.37s cubic-bezier(.85,-0.01,0,.95);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--brand-primary);
  position: absolute;
  right: 24px;
  top: 18px;
  z-index: 1001;
  cursor: pointer;
  transition: color 0.18s, transform 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-pink);
  transform: scale(1.12) rotate(-6deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 70px;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-primary);
  background: #fff6e7;
  width: 90%;
  text-align: center;
  border-radius: 16px 4px 16px 4px;
  padding: 13px 0;
  box-shadow: 0 2px 14px 0 rgba(254,188,89,0.10);
  transition: background 0.16s, color 0.16s, transform 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-pink);
  color: #fff;
  transform: scale(1.045);
}

/* HERO SECTION */
.hero {
  background: linear-gradient(93deg,#fef8d9 10%, #e9fdf3 66%);
  padding: 58px 20px 70px 20px;
  border-radius: 0 0 46px 46px;
  margin-bottom: 64px;
  position: relative;
  box-shadow: 0 4px 40px 0 rgba(122,196,156,0.10), 0 8px 40px 0 #fae5e3;
  overflow-x: hidden;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 24px;
  max-width: 700px;
}
.hero .cta.primary {
  margin-top: 18px;
}

/* STYLED CARDS & GRIDS */
.feature-card, .service-card, .blog-post-teaser {
  background: #fff;
  border-radius: var(--playful-radius);
  box-shadow: 0 2px 14px 0 rgba(44,62,80,0.08), var(--playful-shadow);
  padding: 30px 23px 27px 23px;
  max-width: 320px;
  min-width: 230px;
  min-height: 180px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  position: relative;
  border: 2.3px solid var(--brand-highlight);
  transition: box-shadow 0.23s, transform 0.19s;
  font-family: 'Roboto', Arial, sans-serif;
}
.feature-card:hover, .service-card:hover, .blog-post-teaser:hover {
  box-shadow: 0 6px 28px 0 rgba(164,115,237,0.10), 0 2px 24px 0 #ffe9e8;
  transform: translateY(-7px) scale(1.037) rotate(-1.2deg);
}
.feature-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #f0faf7;
}
.service-card .price {
  color: var(--brand-pink);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.8px;
  margin-top: 8px;
  margin-bottom: 0;
}

/* BLOG LIST & TEASER */
.blog-list {
  gap: 24px;
  margin-bottom: 20px;
}
.blog-post-teaser h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.blog-post-teaser p {
  color: var(--brand-primary);
  font-size: 15.5px;
}
.blog-post-teaser .cta {
  margin-top: 12px;
  background: var(--brand-violet);
  color: #fff;
}
.blog-post-teaser .cta:hover {
  background: var(--brand-blue);
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
}
.blog-filters strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: var(--brand-secondary);
  margin-right: 10px;
}
.blog-filters a {
  font-size: 15px;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: 12px;
  background: #f3f3f3;
  color: var(--brand-primary);
  transition: background 0.17s, color 0.17s;
}
.blog-filters a:hover {
  background: var(--brand-pink);
  color: #fff;
}

/* FAQ ACCORDION */
.faq-accordion h3 {
  cursor: pointer;
  padding: 11px 0;
  margin-bottom: 0;
  color: var(--brand-secondary);
  font-weight: 700;
  border-bottom: 1.5px dashed var(--brand-pink);
  transition: color 0.16s;
}
.faq-accordion h3:hover, .faq-accordion h3.active {
  color: var(--brand-pink);
}
.faq-accordion p {
  display: block;
  font-size: 17px;
  margin-left: 4px;
  margin-bottom: 16px;
  transition: max-height 0.26s cubic-bezier(.7,.3,.2,.9);
}

/* FOOTER */
footer {
  background: #fff;
  border-top: 3.2px solid var(--brand-secondary);
  padding: 0;
}
footer .container {
  padding: 40px 20px 28px 20px;
}
footer .content-wrapper {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 38px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 225px;
}
.footer-brand img {
  width: 120px;
  height: auto;
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 16px;
  font-weight: 500;
  color: var(--brand-primary);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 180px;
}
.footer-nav a {
  font-size: 15px;
  color: var(--brand-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.footer-social {
  display: flex;
  gap: 18px;
  margin-top: 6px;
}
.footer-social img {
  width: 32px;
  height: 32px;
  filter: grayscale(0.32) brightness(1.08);
  transition: filter 0.14s, transform 0.13s;
}
.footer-social a:hover img {
  filter: drop-shadow(0 2px 6px #a373ed55) saturate(1.4);
  transform: scale(1.08) rotate(-8deg);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 15px;
  color: var(--brand-primary);
  font-family: 'Roboto', Arial, sans-serif;
  min-width: 210px;
}
.footer-contact a {
  color: var(--brand-pink);
  font-weight: bold;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fffbe7;
  border-top: 2.4px solid var(--brand-secondary);
  box-shadow: 0 -2px 22px 0 rgba(254,105,180,0.07);
  padding: 24px 15px 18px 15px;
  z-index: 2001;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.36s, opacity 0.26s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner p {
  font-size: 16px;
  color: var(--brand-primary);
  flex: 1 1 0%;
  margin-bottom: 0;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 19px;
  border-radius: 18px 6px 18px 6px;
  border: none;
  background: var(--brand-violet);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 9px 0 rgba(164,115,237,0.08);
  transition: background 0.15s, color 0.15s, transform 0.13s;
}
.cookie-btn.accept {
  background: var(--brand-secondary);
}
.cookie-btn.reject {
  background: var(--brand-pink);
}
.cookie-btn.settings {
  background: var(--brand-blue);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--brand-highlight);
  color: #2C3E50;
  transform: scale(1.08);
}

/* COOKIE MODAL POPUP */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44,62,80,0.28);
  z-index: 2002;
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 24px 12px 24px 12px;
  box-shadow: 0 6px 32px 0 rgba(164,115,237,0.13);
  max-width: 400px;
  width: 90%;
  padding: 34px 22px 23px 22px;
  position: relative;
  animation: cookieModalFadeIn 0.38s cubic-bezier(.7, .3, .2, .9);
}
@keyframes cookieModalFadeIn {
  from {
    transform: translateY(60px) scale(0.87) rotate(-2deg);
    opacity:0;
  }
  to {
    transform: translateY(0) scale(1) rotate(0);
    opacity:1;
  }
}
.cookie-modal .modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--brand-secondary);
}
.cookie-modal .modal-section {
  margin-bottom: 15px;
}
.cookie-modal label {
  font-size: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  display: flex;
  align-items: center;
  gap: 11px;
}
.cookie-modal-toggle {
  width: 40px;
  height:24px;
  appearance: none;
  background: #eee;
  border-radius: 18px;
  position: relative;
  outline: none;
  transition: background 0.15s;
}
.cookie-modal-toggle:checked {
  background: var(--brand-secondary);
}
.cookie-modal-toggle:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 19px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px 0 #ececec;
  transition: transform 0.15s;
}
.cookie-modal-toggle:checked:before {
  transform: translateX(15px);
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--brand-pink);
  position: absolute;
  right: 14px;
  top: 13px;
  cursor: pointer;
  transition: color 0.14s, transform 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--brand-secondary);
  transform: scale(1.11) rotate(6deg);
}
.cookie-modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  justify-content: flex-end;
}

/* ANIMATION CLASSES (Energetic) */
@keyframes playfulBounce {
  0%{ transform:scale(1); }
  30%{ transform:scale(1.09) rotate(-1deg); }
  60%{ transform:scale(0.97) rotate(1deg); }
  100%{ transform:scale(1); }
}
.cta.primary:active, .cta:active {
  animation: playfulBounce 0.33s;
}
.logo:active img, .footer-social a:active img {
  animation: playfulBounce 0.35s;
}

/* UTILITY CLASSES */
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* MEDIA QUERIES FOR RESPONSIVENESS */
@media (max-width: 1020px) {
  .footer .content-wrapper {
    flex-wrap: wrap;
    gap: 24px;
  }
  .feature-grid, .service-cards, .case-study-grid, .blog-list {
    gap:18px;
  }
}
@media (max-width: 900px) {
  .footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 820px) {
  .main-nav, .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    gap: 0;
  }
  .feature-grid, .service-cards, .case-study-grid, .blog-list {
    flex-direction: column;
    align-items: stretch;
    gap: 23px;
  }
  .footer-brand, .footer-contact, .footer-nav {
    min-width: 0px;
  }
}
@media (max-width: 768px) {
  section {
    padding: 33px 7px;
    margin-bottom: 40px;
  }
  .footer .container {
    padding: 30px 8px 22px 8px;
  }
  .footer .content-wrapper {
    gap: 18px;
  }
  .hero {
    padding: 38px 10px 44px 10px;
    margin-bottom: 36px;
    border-radius: 0 0 36px 36px;
  }
  .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.07rem; }
  .feature-card, .service-card, .blog-post-teaser, .testimonial-card {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
  .footer-nav, .footer-brand, .footer-contact {
    min-width: 0;
    width: 100%;
    align-items: flex-start;
  }
  .footer-social img { width:27px; height:27px; }
  .content-wrapper {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap:16px;
  }
  .testimonial-card {
    padding: 13px 10px;
  }
}
@media (max-width: 560px) {
  .hero h1, h1 {
    font-size: 1.16rem;
  }
  h2 {
    font-size: 1rem;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 20px;
    padding: 18px 6px 13px 6px;
    font-size: 15px;
  }
  .cookie-actions {
    gap: 7px;
  }
}

/* VISUAL HIERARCHY & SPACING */
section, .feature-grid, .case-study-grid, .service-cards, .card-container, .content-grid, .text-image-section {
  margin-bottom: 0;
}
section + section {
  margin-top: 0;
  margin-bottom: 0;
}

/* ENSURE NO ELEMENT OVERLAPS: SPACING BETWEEN CARDS & SECTIONS */
.feature-card:not(:last-child), .service-card:not(:last-child), .testimonial-card:not(:last-child), .blog-post-teaser:not(:last-child) {
  margin-bottom: 20px;
}

/* TESTIMONIALS: STRONG CONTRAST & READABILITY */
.testimonial-card {
  background: #fff;
  color: var(--brand-primary);
  border-left: 5px solid var(--brand-pink);
  box-shadow: 0 2px 14px 0 #ffe9e8, 0 4px 16px 0 rgba(122,196,156,0.08);
}
.testimonial-card span,
.testimonial-card p {
  color: var(--brand-primary) !important;
}

/* NEWSLETTER & CUSTOM FORM */
.newsletter-benefits ul {
  list-style: disc;
  padding-left: 24px;
}

/* ACCESSIBILITY FOCUS */
a:focus-visible, .cta:focus-visible, .cookie-btn:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible, .cookie-modal-close:focus-visible {
  outline: 2.5px dashed var(--brand-blue);
  outline-offset: 2.5px;
  background: #e9fdf3;
  border-radius: 7px !important;
}

/* FORMS (for future expansion) */
input, textarea, select, button {
  font-family: 'Roboto', Arial, sans-serif;
}

/* Hide JS-only elements by default (as fallback) */
.cookie-banner,
.cookie-modal-overlay {
  display: none;
}

/* SHOW JS-only elements when JS triggers them */
body.cookie-banner-active .cookie-banner {
  display: flex;
}
body.cookie-modal-active .cookie-modal-overlay {
  display: flex;
}

/* Print styles */
@media print {
  header, nav, .cookie-banner, .cookie-modal-overlay, footer {
    display: none !important;
  }
  section, .container {
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
  }
}
