/* RESET & NORMALIZE */
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;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F1EFE8;
  color: #2C2F35;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #2C2F35;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #7BC6A4;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

/* FONTS */
h1, h2, h3, .logo, .btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 2.2rem;
  color: #2C2F35;
  margin-bottom: 16px;
  line-height: 1.15;
  animation: fadeInDown 0.58s cubic-bezier(0.61, 1, 0.88, 1.1);
}

h2 {
  font-size: 1.5rem;
  color: #2C2F35;
  margin-bottom: 16px;
  line-height: 1.2;
}
h3 {
  font-size: 1.18rem;
  color: #2C2F35;
  margin-bottom: 10px;
}
h4 {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2C2F35;
}
p, li {
  font-size: 1rem;
  color: #434751;
}
strong {
  color: #2C2F35;
  font-weight: 700;
}

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

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 10px rgba(44, 47, 53, 0.08);
}

/* HEADER */
header {
  background: #fff;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1010;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(44,47,53,0.05);
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
.main-navigation {
  display: flex;
  gap: 28px;
  margin-left: 30px;
  align-items: center;
}
.main-navigation a {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2C2F35;
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.18s;
}
.main-navigation a::after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  background: #7BC6A4;
  border-radius: 2px;
  transition: width 0.24s cubic-bezier(0.6,1,0.86,1);
  position: absolute;
  left: 0;
  bottom: -2px;
}
.main-navigation a:hover::after, .main-navigation a:focus::after {
  width: 100%;
}
.btn-primary {
  background: #7BC6A4;
  color: #FFF;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 12px 32px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.12rem;
  box-shadow: 0 3px 12px rgba(123,198,164,0.19);
  margin-left: 24px;
  transition: background 0.20s, transform 0.15s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover, .btn-primary:focus {
  background: #5bb88c;
  transform: translateY(-2px) scale(1.04) rotate(-1.5deg);
  box-shadow: 0 5px 18px 0 rgba(44, 47, 53, 0.15);
  color: #FFF;
}

.mobile-menu-toggle {
  display: none;
  background: #7BC6A4;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  padding: 10px 14px;
  margin-left: 20px;
  box-shadow: 0 2px 6px rgba(123,198,164,0.18);
  transition: background 0.16s, transform 0.17s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #7BC6A4;
}
@media (max-width: 1020px) {
  .main-navigation {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .btn-primary {
    margin-left: 0;
  }
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(44,47,53,0.96);
  z-index: 10000;
  transform: translateX(100vw);
  transition: transform 0.35s cubic-bezier(0.66,0,0.34,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #FFF;
  margin: 28px 28px 0 0;
  border-radius: 50%;
  background: #7BC6A4;
  width: 50px; height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #5bb88c;
}
.mobile-nav {
  margin-top: 30px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}
.mobile-nav a {
  font-size: 1.38rem;
  color: #FFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: none;
  padding: 14px 0;
  border-radius: 10px;
  transition: background 0.15s, color 0.13s;
  min-width: 220px;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #7BC6A4;
  color: #fff;
}

@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}

/* HERO */
.hero {
  background: #7BC6A4;
  color: #fff;
  padding-top: 44px;
  padding-bottom: 60px;
  text-align: center;
  border-radius: 0 0 40px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(44,47,53,0.07);
}
.hero h1 {
  font-size: 2.6rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(44,47,53,0.11);
}
.hero p {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.hero .btn-primary {
  background: #fff;
  color: #7BC6A4;
  margin-top: 15px;
}
.hero .btn-primary:hover, .hero .btn-primary:focus {
  background: #F1EFE8;
  color: #2C2F35;
}

/* FEATURES & CARDS */
.features ul, .features .feature-grid, .features .text-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.features ul > li, .features .feature-grid > div, .post-highlight {
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(123,198,164,0.08), 0 1.5px 4.5px rgba(44,47,53,0.09);
  padding: 24px 18px 18px 18px;
  margin-bottom: 20px;
  min-width: 230px;
  flex: 1 1 250px;
  text-align: center;
  position: relative;
  transition: box-shadow 0.18s, transform 0.16s;
  z-index: 1;
  animation: popInUp 0.8s;
}
.features .feature-grid > div img {
  width: 58px;
  margin-bottom: 10px;
}
.features ul > li:hover, .features .feature-grid > div:hover, .post-highlight:hover {
  box-shadow: 0 10px 24px rgba(123,198,164,0.15), 0 1.5px 6px #64b69017;
  transform: translateY(-3px) scale(1.015) rotate(-1.2deg);
}
@media (max-width: 970px) {
  .features ul, .features .feature-grid, .features .text-section {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
}

/* SECTION SPACING & FLEX LAYOUTS */
.text-section,
.about .text-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.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; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* CARD-LIST DISPLAY (for blog, testimonials, about, etc) */
.post-highlight {
  border-left: 7px solid #7BC6A4;
  text-align: left;
  background: #fffdf8;
  font-size: 1.13rem;
  margin-bottom: 22px;
  animation: popInUp 0.8s;
}

/* NEWSLETTER SIGNUP & CATEGORIES */
.newsletter-signup {
  background: #F1EFE8;
  border-radius: 20px;
  padding: 24px 20px;
  margin-bottom: 24px;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
}
.post-categories {
  margin-top: 10px;
  color: #7BC6A4;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}

/* ABOUT/PROCESS/LEGAL TEXT BLOCKS */
.about {
  background: #fffbe6;
  border-radius: 19px;
  margin-bottom: 60px;
  padding: 38px 22px 30px 22px;
  box-shadow: 0 2px 8px #7bc6a422;
  animation: fadeInUp 0.65s;
}

/* TESTIMONIAL CARDS */
.testimonials .testimonial-card {
  background: #fff;
  color: #2C2F35;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(44,47,53,0.10);
  margin-bottom: 24px;
  padding: 28px 30px;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.18s, transform 0.15s;
  border-left: 7px solid #7BC6A4;
  min-width: 260px;
  max-width: 590px;
  animation: popInUp 0.62s;
}
.testimonials .testimonial-card p {
  color: #2C2F35;
  font-size: 1.07rem;
  font-style: italic;
  margin-bottom: 5px;
}
.testimonials .testimonial-card strong {
  font-weight: 700;
}
.testimonials .testimonial-card img {
  height: 22px;
  width: 22px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 2px;
}
.testimonials .testimonial-card:hover,
.testimonials .testimonial-card:focus {
  box-shadow: 0 10px 38px 0 #7bc6a43b;
  transform: translateY(-4px) scale(1.025) rotate(-0.8deg);
}
@media (max-width: 900px) {
  .testimonials .content-wrapper {
    flex-direction: column;
    gap: 22px;
  }
}

/* CONTACT PAGE */
.contact .text-section {
  background: #F1EFE8;
  padding: 16px 24px;
  border-radius: 16px;
  gap: 15px;
  font-size: 1.048rem;
}
.contact .text-section li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 1rem;
}
.contact .text-section img {
  height: 21px;
  width: 21px;
}

/* FOOTER */
footer {
  background: #2C2F35;
  color: #fff;
  padding: 40px 0 15px 0;
  border-radius: 40px 40px 0 0;
  margin-top: 70px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 15px;
}
.footer-top .logo img {
  height: 37px;
  margin-bottom: 6px;
}
.footer-top nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-top nav a {
  color: #FFF;
  opacity: 0.82;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  transition: opacity 0.13s, color 0.17s;
}
.footer-top nav a:hover,
.footer-top nav a:focus {
  color: #7BC6A4;
  opacity: 1;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 8px;
  font-size: 0.99rem;
}
.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.footer-bottom nav a {
  color: #7BC6A4;
  opacity: 0.83;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-bottom nav a:hover,
.footer-bottom nav a:focus {
  color: #fff;
  opacity: 1;
  text-decoration: underline;
}
.footer-bottom div,
.footer-bottom span {
  color: #ececec;
  opacity: 0.85;
}
.footer-bottom img {
  height: 18px;
  margin-right: 6px;
  vertical-align: text-bottom;
}
@media (max-width: 800px) {
  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
footer small {
  color: #b6b7b8;
  opacity: 0.77;
  margin-left: 2px;
  font-size: 0.93rem;
}

/* COOKIE CONSENT BANNER */
#cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #FFF;
  color: #2C2F35;
  box-shadow: 0 -2px 14px rgba(44,47,53,0.055);
  z-index: 11000;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 22px 20px;
  font-size: 1.02rem;
  border-radius: 18px 18px 0 0;
  animation: fadeInUp 0.6s;
}
#cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
#cookie-banner .btn-cookie {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 21px;
  padding: 8px 22px;
  min-width: 104px;
  font-weight: 700;
  font-size: 1.07rem;
  background: #7BC6A4;
  color: #FFF;
  border: none;
  box-shadow: 0 0.5px 6px 0 #7bc6a433;
  margin-right: 5px;
  transition: background 0.19s, transform 0.14s;
}
#cookie-banner .btn-cookie:focus, #cookie-banner .btn-cookie:hover {
  background: #5bb88c;
  transform: translateY(-1px) scale(1.04);
  color: #FFF;
}
#cookie-banner .btn-cookie.secondary {
  background: #ECEFF8;
  color: #2C2F35;
  font-weight: 600;
}
#cookie-banner .btn-cookie.secondary:focus, #cookie-banner .btn-cookie.secondary:hover {
  background: #e2e0d9;
}

/* Cookie Preferences Modal */
#cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.97);
  width: 98%;
  max-width: 370px;
  background: #fff;
  color: #2C2F35;
  border-radius: 20px;
  box-shadow: 0 10px 46px #2c2f3536;
  z-index: 12000;
  display: none;
  flex-direction: column;
  padding: 26px 28px 19px 28px;
  gap: 17px;
  animation: fadeInPop 0.41s;
}
#cookie-modal.active {
  display: flex !important;
  animation: fadeInPop 0.41s;
}
#cookie-modal h4 { margin-bottom: 11px; }
#cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
#cookie-modal label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
#cookie-modal .cookie-toggle {
  width: 36px; height: 18px;
  appearance: none;
  background: #ECEFF8;
  border-radius: 10px;
  outline: none;
  position: relative;
  transition: background 0.18s;
  vertical-align: middle;
}
#cookie-modal .cookie-toggle:checked {
  background: #7BC6A4;
}
#cookie-modal .cookie-toggle::after {
  content: '';
  position: absolute;
  left: 3px; top: 2.5px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1.5px 6px #7bc6a422;
  transition: left 0.2s;
}
#cookie-modal .cookie-toggle:checked::after {
  left: 19px;
}
#cookie-modal .actions {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 10px;
  justify-content: flex-end;
}
#cookie-modal .btn-cookie-close {
  background: #ECEFF8;
  color: #2C2F35;
  font-weight: 600;
  font-size: 1.01rem;
  border-radius: 16px;
  padding: 7px 18px;
  transition: background 0.14s;
}
#cookie-modal .btn-cookie-close:hover, #cookie-modal .btn-cookie-close:focus {
  background: #e2e0d9;
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(55px); }
  to { opacity: 1; transform: none; }
}
@keyframes popInUp {
  from { opacity: 0; transform: scale(0.93) translateY(42px); }
  to { opacity: 1; transform: scale(1) translateY(0px); }
}
@keyframes fadeInPop {
  from { opacity: 0; transform: scale(0.82); }
  to { opacity: 1; transform: scale(1); }
}

/* Utilities */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.rounded-24 { border-radius: 24px; }

/* MEDIA QUERIES: RESPONSIVE */
@media (max-width: 1020px) {
  header .main-navigation, .footer-top nav {
    gap: 12px;
  }
  .container { padding-left: 15px; padding-right: 15px; }
  .hero h1 { font-size: 2rem; }
  .features ul, .features .feature-grid {
    flex-direction: column;
  }
  .features ul>li, .features .feature-grid>div, .post-highlight {
    min-width: 170px;
  }
}
@media (max-width: 768px) {
  .hero {
    padding-top: 26px;
    padding-bottom: 38px;
    border-radius: 0 0 27px 27px;
  }
  .main-navigation, .footer-top nav {
    gap: 9px;
  }
  .footer-top { flex-direction: column; gap: 12px; align-items: flex-start; }
  .features ul, .features .feature-grid, .content-grid, .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section, .card-container {
    flex-direction: column !important;
    gap: 18px;
  }
  .testimonials .testimonial-card {
    padding: 18px 13px;
    min-width: unset;
    max-width: unset;
  }
  .content-wrapper { gap: 18px; }
  .section { padding: 25px 10px; }
  .about { padding: 18px 10px 15px 10px; }
  .contact .text-section { padding: 10px; }
}

@media (max-width: 520px) {
  .container {
    padding-left: 5px;
    padding-right: 5px;
  }
  header {
     padding: 11px 5px;
  }
  .hero h1 { font-size: 1.42rem; }
}

/* SCROLLBARS (Adds more playful visual feel) */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-thumb {
  background: #7BC6A4;
  border-radius: 6px;
}
::-webkit-scrollbar-track {
  background: #F1EFE8;
}

/* PLAYFUL, DYNAMIC: CUSTOM FUN ACCENTS */
.hero:after {
  content: '';
  position: absolute;
  bottom: -58px; right: -44px;
  width: 110px; height: 110px;
  background: #FFF1B7;
  border-radius: 60% 40% 54% 46% / 42% 51% 49% 58%;
  opacity: 0.32;
  z-index: 0;
  pointer-events: none;
  animation: heroBlob 5s infinite alternate cubic-bezier(.44,2.09,.79,.99);
}
@keyframes heroBlob {
  0% {
    border-radius: 60% 40% 54% 46% / 42% 51% 49% 58%;
    transform: translateX(0) scale(1.03) rotate(6deg);
  }
  100% {
    border-radius: 34% 66% 50% 50% / 59% 49% 51% 41%;
    transform: translateX(-18px) scale(1.09) rotate(-10deg);
  }
}

.features .feature-grid>div:before {
  content: '';
  position: absolute;
  z-index: 0;
  right: -16px; top: -16px;
  width: 45px; height: 45px;
  background: #FFF1B7;
  opacity: 0.16;
  border-radius: 50%;
  animation: floating 3.9s infinite alternate ease-in-out;
}
@keyframes floating {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-13px) scale(1.18) rotate(-12deg); }
}

.features .feature-grid>div { position: relative; overflow: hidden; }

/* FUN ICON PULSE ON HOVER */
.features .feature-grid>div img, .about .text-section img, .testimonial-card img {
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.3,1.3,0.7,1.1);
}
.features .feature-grid>div:hover img, .testimonial-card:hover img {
  transform: scale(1.15) rotate(-5deg);
}

/* BUTTONS - Ensure touch targets on mobile */
.btn-primary, .btn-cookie, .btn-cookie-close {
  min-height: 46px;
  min-width: 120px;
}

/* FOCUS STYLES FOR ACCESSIBILITY */
a:focus, .btn-primary:focus, button:focus, .mobile-menu-close:focus, .btn-cookie:focus {
  outline: 2.5px dashed #7BC6A4;
  outline-offset: 2.5px;
}

/* Hide elements visually (for accessibility toggle, etc.) */
.visually-hidden {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute;
}
