/* ========================================================== */
/* CSS 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,
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;
}

/* Set up HTML5 display-block */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F7F1EA;
  color: #216B3A;
  font-family: 'Roboto', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* ========== TYPOGRAPHY (creative_artistic) ========== */
:root {
  --primary: #216B3A;
  --secondary: #C0DCC1;
  --accent: #F7F1EA;
  --creative-pink: #EB7592;
  --creative-blue: #1D97E0;
  --creative-yellow: #F4C542;
  --creative-orange: #F49742;
  --creative-lavender: #B3A9FF;
  --display-font: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  --body-font: 'Roboto', Arial, sans-serif;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow-md: 0 4px 20px rgba(33,107,58,0.10);
  --shadow-lg: 0 16px 36px rgba(33, 107, 58, 0.16);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  color: var(--primary);
  font-weight: bold;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: var(--creative-pink);
}
h4,h5,h6 {
  font-size: 1.1rem;
  color: var(--creative-blue);
}
p, li, span {
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--primary);
}
strong {
  color: var(--creative-orange);
}

/* Creative artistic type flourishes */
h1, h2 {
  text-shadow: 1px 4px 8px rgba(33,107,58,0.10);
}
h3 {
  font-family: 'Montserrat', cursive, var(--body-font);
  letter-spacing: 0.8px;
}
a {
  transition: color 0.2s cubic-bezier(.66,.16,.18,1.05);
}
a:hover, .cta:hover {
  color: var(--creative-blue);
}

/* ========================================================== */
/* =============== LAYOUT & FLEX SPACING ==================== */
/* ========================================================== */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 40px;
  }
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}
@media (max-width: 900px) {
  .content-wrapper {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
}

.text-section {
  flex: 2 1 350px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ========================================================== */
/* ============== FLEX UTILITIES & PATTERNS ================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 28px 20px;
  flex: 1 1 320px;
  transition: box-shadow 0.26s cubic-bezier(.66,.16,.18,1.05);
  z-index: 1;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) scale(1.02) rotate(-0.5deg);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 30px 32px 26px 32px;
  background: var(--secondary);
  color: #222;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(33, 107, 58, 0.08);
  min-width: 220px;
  flex: 1 1 250px;
  transition: box-shadow .21s cubic-bezier(.66,.16,.18,1.05);
}
.testimonial-card:hover {
  box-shadow: 0 8px 22px rgba(33,107,58, .18);
  background: #fffbe4;
}
.testimonial-card span {
  font-size: 0.98rem;
  font-style: italic;
  color: var(--creative-pink);
}

@media (max-width: 820px) {
  .testimonial-card {
    padding: 20px 14px;
    font-size: 0.98rem;
  }
}

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

/* Typography scaling for sections */
section ul, .text-section ul {
  margin-left: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 10px;
}

section ul li, .text-section ul li {
  position: relative;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
section ul li img, .text-section ul li img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

/* Article styling for blog cards */
article {
  background: var(--accent);
  border-radius: var(--radius-md);
  padding: 22px 18px 18px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  min-width: 160px;
  flex: 1 1 260px;
  transition: box-shadow 0.22s cubic-bezier(.66,.16,.18,1.05);
}
article h3 {
  margin-bottom: 8px;
  color: var(--creative-blue);
}
article a {
  color: var(--creative-pink);
  font-weight: 600;
}
article a:hover { text-decoration: underline; color: var(--creative-blue); }

/* =========== SPACING ============= */
main, footer {
  width: 100%;
}
main>*{
  margin-bottom: 20px;
}
h1, h2, h3, p, ul, li {
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
  }
}
@media (max-width: 600px) {
  .container { padding: 0 8px; }
}

/* ========== BUTTONS, CTA, & INTERACTIVE ======== */
.cta {
  display: inline-block;
  background: linear-gradient(90deg, var(--creative-pink) 24%, var(--creative-blue) 90%);
  color: #fff;
  font-family: var(--display-font);
  font-size: 1.16rem;
  font-weight: 700;
  padding: 13px 34px;
  border-radius: 32px 18px 28px 22px;
  box-shadow: 0 3px 18px rgba(33,107,58,.10);
  transition: 
    background 0.2s cubic-bezier(.66,.16,.18,1.05),
    color 0.12s,
    box-shadow 0.18s;
  margin: 18px 0 0 0;
  letter-spacing: 0.4px;
  border: none;
  cursor: pointer;
  outline: none;
}
.cta:hover, .cta:focus {
  background: linear-gradient(90deg, var(--creative-blue) 12%, var(--creative-yellow) 100%);
  color: var(--primary);
  box-shadow: 0 5px 18px rgba(235,117,146,.16);
}

button,
.button {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 1rem;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 20px 10px 18px 16px;
  padding: 10px 22px;
  transition: background 0.18s, color 0.13s, box-shadow 0.2s;
  box-shadow: 0 1px 6px rgba(33,107,58,.10);
}
button:hover, .button:hover {
  background: var(--creative-blue);
  color: #fff;
}

/* =========== HEADER & NAVIGATION =========== */
header {
  width: 100%;
  background: var(--accent);
  box-shadow: 0 8px 32px rgba(33,107,58,0.04);
  padding: 0;
  z-index: 100;
  position: relative;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-start;
  padding: 12px 0 12px 0;
  font-size: 1.05rem;
  flex-wrap: wrap;
}
.logo img {
  width: 44px;
  height: 44px;
  border-radius: 30% 48% 25% 45% / 35% 42% 50% 43%; /* fun irregular blob */
  margin-right: 8px;
  box-shadow: 0 2px 8px rgba(33,107,58,.07);
  background: #fff;
}
nav a {
  color: var(--primary);
  font-family: var(--display-font);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color 0.15s;
}
nav a.cta {
  margin-left: auto;
}
nav a:hover, nav a:focus {
  color: var(--creative-blue);
  background: var(--secondary);
}
nav a.active {
  background: var(--creative-pink);
  color: #fff;
}

/* Hide mobile nav on desktop by default */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  position: fixed;
  z-index: 5000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 36px rgba(33,107,58,.18);
  transform: translateX(-108vw);
  transition: transform .44s cubic-bezier(.82,-0.16,.24,1.03);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: var(--creative-pink);
  padding: 10px 18px 10px 10px;
  margin-top: 18px;
  align-self: flex-end;
  background: transparent;
  border-radius: var(--radius-sm);
  transition: background 0.16s;
}
.mobile-menu-close:hover {
  background: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100vw;
  margin-top: 16px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: var(--display-font);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 18px 36px 18px 28px;
  border-radius: 0 99px 99px 0 / 0 60px 40px 0;
  transition: background 0.19s, color 0.11s;
}
.mobile-nav a:hover {
  background: var(--secondary);
  color: var(--creative-blue);
}

@media (max-width: 1023px) {
  header nav {
    gap: 7px;
    font-size: 0.99rem;
  }
}
@media (max-width: 900px) {
  header nav a.cta {
    padding: 9px 13px;
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    font-size: 2.2rem;
    background: var(--creative-pink);
    color: #fff;
    border-radius: var(--radius-md);
    width: 52px;
    height: 52px;
    margin: 12px 16px 12px 12px;
    float: right;
    position: absolute;
    top: 0; right: 0;
    z-index: 6000;
    transition: background .19s, color .12s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: var(--creative-blue);
    color: #fffbe4;
  }
}

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

/* =========== FOOTER ========= */
footer {
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  text-align: center;
  padding: 35px 0 14px 0;
  margin-top: 40px;
  box-shadow: 0 -2px 18px rgba(33,107,58,.11);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
}
footer nav a {
  font-family: var(--body-font);
  color: var(--primary);
  font-size: 0.99rem;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.14s;
}
footer nav a:hover {
  color: var(--creative-pink);
  background: var(--accent);
}
footer .text-section {
  color: var(--primary);
  font-size: 0.98rem;
  margin-top: 10px;
  opacity: 0.95;
  font-family: var(--body-font);
}

/* =============== COOKIE BANNER & MODAL =================== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fffbe4;
  color: var(--primary);
  border-top: 2px solid var(--primary);
  box-shadow: 0 -4px 32px rgba(33,107,58,.09);
  z-index: 9000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 18px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.37s cubic-bezier(.66,.16,.18,1.05);
}
#cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
}
#cookie-banner p {
  flex: 2 1 180px;
  margin: 0 0 0 6px;
  font-size: 1.05rem;
}

#cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-btn, .cookie-btn-primary, .cookie-btn-secondary {
  font-family: var(--display-font);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 0.99rem;
  transition: background 0.14s, color 0.12s;
  cursor: pointer;
  margin-top: 0;
}
.cookie-btn-primary {
  background: var(--creative-blue);
  color: #fff;
  border: none;
}
.cookie-btn-primary:hover {
  background: var(--creative-pink);
}
.cookie-btn-secondary {
  background: var(--secondary);
  color: var(--primary);
  border: none;
}
.cookie-btn-secondary:hover {
  background: var(--creative-yellow);
  color: var(--primary);
}

/* Cookie settings modal */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 10050;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,107,58,0.23);
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  animation: fadeIn 0.33s;
}
#cookie-modal.visible {
  display: flex;
}
#cookie-modal .modal-content {
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 44px rgba(33,107,58,.13);
  padding: 32px 28px 20px 28px;
  max-width: 96vw;
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  animation: modalIn 0.29s ease;
}
#cookie-modal h2 {
  margin-bottom: 10px;
  color: var(--creative-pink);
}
#cookie-modal .cookie-modal-section {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}
#cookie-modal label {
  font-size: 1.01rem;
}
#cookie-modal .cookie-toggle {
  width: 44px;
  height: 24px;
  background: var(--secondary);
  border-radius: 14px;
  position: relative;
  flex-shrink: 0;
}
#cookie-modal .cookie-toggle input {
  width: 100%;
  height: 100%;
  opacity: 0;
  position: absolute;
  margin: 0;
  z-index: 2;
}
#cookie-modal .cookie-toggle span {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  background: var(--creative-blue);
  border-radius: 50%;
  transition: left 0.19s cubic-bezier(.66,.16,.18,1.05);
  z-index: 1;
}
#cookie-modal .cookie-toggle input:checked + span {
  left: 22px;
  background: var(--creative-pink);
}
#cookie-modal .cookie-modal-footer {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  width: 100%;
  margin-top: 14px;
}
#cookie-modal .cookie-modal-close {
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  font-weight: 600;
}
#cookie-modal .cookie-modal-close:hover {
  background: var(--creative-yellow);
}
@keyframes fadeIn {
  from { opacity: 0;} to {opacity: 1;}
}
@keyframes modalIn {
  from { transform: scale(0.85) translateY(30px); } to { transform: scale(1) translateY(0); }
}

/* =============== CREATIVE VISUAL FLOURISHES ============== */
.section {
  position: relative;
  overflow: visible;
}
.section:before {
  content: '';
  position: absolute;
  top: -18px;
  left: -18px;
  width: 72px;
  height: 59px;
  background: var(--creative-lavender);
  opacity: 0.14;
  border-radius: 40% 41% 68% 45%/45% 38% 43% 60%;
  z-index: 0;
}
.section:after {
  content: '';
  position: absolute;
  bottom: -22px;
  right: -22px;
  width: 68px;
  height: 51px;
  background: var(--creative-pink);
  opacity: 0.12;
  border-radius: 46% 60% 32% 56%/62% 40% 53% 48%;
  z-index: 0;
}

.card, .testimonial-card, article {
  position: relative;
  z-index: 2;
}
.card:before, .testimonial-card:before, article:before {
  content: '';
  position: absolute;
  top: -10px; left: -10px; width: 40px; height: 40px;
  background: var(--creative-blue);
  opacity: 0.10;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.card:after, .testimonial-card:after, article:after {
  content: '';
  position: absolute;
  bottom: -10px; right: -10px; width: 28px; height: 28px;
  background: var(--creative-pink);
  opacity: 0.10;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

/* =============== RESPONSIVE DESIGN ====================== */
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .testimonial-card, .card, article {
    padding: 14px 9px;
    font-size: 0.97rem;
  }
  .cta {
    font-size: 1rem;
    padding: 9px 16px;
  }
  #cookie-banner p {
    font-size: 0.95rem;
  }
  #cookie-modal .modal-content {
    padding: 16px 7px 12px 8px;
    width: 96vw;
  }
}

@media (min-width: 900px) {
  .content-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* =========== MICRO-INTERACTIONS ============= */
.card, .testimonial-card, .cta, article {
  transition: box-shadow 0.26s cubic-bezier(.66,.16,.18,1.05), transform .18s cubic-bezier(.66,.16,.18,1.05);
}
.card:active, .testimonial-card:active, .cta:active, article:active {
  transform: scale(0.98) rotate(-0.3deg);
}
.card:hover, article:hover {
  box-shadow: 0 8px 26px rgba(33,107,58,.17);
  background: var(--creative-yellow);
}

/* =========== TEXT COLOR FOR TESTIMONIALS ============= */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  color: #232c24;
  background: var(--secondary);
}
.testimonial-card:after {
  background: var(--creative-yellow);
}

/* =========== ACCESSIBILITY UTILS ============= */
:focus {
  outline: 2px dashed var(--creative-blue);
  outline-offset: 2px;
}
[tabindex]:focus {
  outline: 2px solid var(--creative-blue) !important;
}

/* ============== SPECIALS: FORMS (if present) =========== */
form input, form textarea, form select {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--creative-pink);
  padding: 8px 12px;
  margin-bottom: 16px;
  font-size: 1rem;
  font-family: var(--body-font);
  color: var(--primary);
  background: #fff;
  transition: border-color 0.17s;
}
form input:focus, form textarea:focus, form select:focus {
  border-color: var(--creative-blue);
  outline: none;
}

/* ============ MISC UTILS ============== */
::-webkit-scrollbar {
  width: 8px; background: var(--secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--creative-lavender); border-radius: 20px;
}

/* Utility: visually hidden (for a11y) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* END CSS */