/* =================== 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,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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  line-height: 1.5;
  background: #F1ECE6;
  color: #1A4578;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
ol, ul {
  padding-left: 1.25em;
}
a {
  color: #39967F;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #1A4578;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* =================== TYPOGRAPHY =================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.5rem;
  color: #1A4578;
  margin-bottom: 18px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  color: #39967F;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.375rem;
  color: #1A4578;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.125rem;
  color: #1A4578;
}
h5, h6 {
  font-size: 1rem;
  color: #1A4578;
}
p {
  font-size: 1.125rem;
  color: #2d364c;
  margin-bottom: 18px;
  line-height: 1.7;
}
strong, b {
  color: #1A4578;
}

/* Playful fonts for headlines */
.text-section h1, .text-section h2, .text-section h3 {
  font-family: 'Montserrat', cursive, sans-serif;
}

/* =================== CONTAINER LAYOUTS =================== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.text-section {
  width: 100%;
}

/* =================== SECTIONS, SPACING & LAYOUTS =================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 6px 24px 0 rgba(58, 150, 127, 0.09);
}

.card-container, .card-grid, .features-grid, .habits-grid, .services-cards, .tools-grid, .tips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.card, .feature, .service-card, .tool-item, .habit-card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 18px 0 rgba(58, 150, 127, 0.05);
  padding: 24px 20px;
  min-width: 230px;
  max-width: 350px;
  flex: 1 1 250px;
  transition: transform 0.25s, box-shadow 0.25s;
  font-family: 'Open Sans', Arial, sans-serif;
}
.card:hover, .feature:hover, .service-card:hover, .tool-item:hover, .habit-card:hover {
  transform: translateY(-5px) scale(1.03) rotate(-0.5deg);
  box-shadow: 0 12px 30px 0 rgba(58, 150, 127, 0.18);
  z-index: 2;
}

.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: 16px;
  background: #fffbea;
  color: #1A4578;
  padding: 20px;
  border-radius: 22px;
  box-shadow: 0 2px 12px 0 rgba(58, 150, 127, 0.11);
  margin-bottom: 24px;
  min-width: 240px;
  max-width: 390px;
  border-left: 8px solid #39967F;
}
.testimonial-card p {
  color: #222;
  font-size: 1.05rem;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #39967F;
}

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

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* =================== NAVIGATION =================== */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 12px 20px;
  background: #fff;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 3px 20px 0 rgba(58, 150, 127, 0.06);
  position: relative;
  z-index: 100;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin: 0 0 0 18px;
}
.main-nav li {
  margin-bottom: 0;
}
.main-nav a {
  font-size: 1.1rem;
  color: #000000;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #39967F;
  color: #fff;
}
.logo-link img {
  height: 46px;
  transition: transform 0.18s cubic-bezier(.69,.27,.76,1.74);
}
.logo-link:hover img, .logo-link:focus img {
  transform: rotate(-4deg) scale(1.07);
}
.cta-btn {
  padding: 12px 28px;
  background: #39967F;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  border-radius: 22px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 2px 8px 0 rgba(26,69,120,0.09);
  border: 0 none;
  cursor: pointer;
  transition: background 0.18s, transform 0.2s;
  outline: none;
  position: relative;
}
.cta-btn:after {
  content: '→';
  margin-left: 8px;
  font-size: 1.1em;
  font-weight: 400;
  opacity: .7;
  transition: opacity 0.2s, transform 0.2s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #1A4578;
  color: #fff;
  transform: scale(1.05) rotate(-1deg);
}
.cta-btn:hover:after { opacity: 1; transform: translateX(5px); }

/* =================== MOBILE MENU =================== */
.mobile-menu-toggle {
  display: none;
  background: #39967F;
  color: #fff;
  font-size: 2.3rem;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  right: 22px;
  top: 14px;
  z-index: 150;
  box-shadow: 0 2px 6px #2b836d12;
  transition: background 0.13s, transform 0.15s;
}
.mobile-menu-toggle:active {
  background: #1A4578;
  transform: scale(0.93);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  transform: translateX(100vw);
  transition: transform 0.28s cubic-bezier(.87,-0.09,.37,1.33);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  box-shadow: -8px 0 40px 2px rgba(26,69,120,0.18);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #1A4578;
  font-size: 2.2rem;
  border: none;
  padding: 16px;
  margin-right: 12px;
  margin-top: 18px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #39967F33;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 46px 32px 16px 34px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #1A4578;
  padding: 8px 0;
  font-weight: bold;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #39967F;
  border-bottom: 2px solid #39967F;
}

/* Hide nav on mobile, show hamburger */
@media (max-width: 1030px) {
  .main-nav ul {
    display: none!important;
  }
  .cta-btn {
    display: none!important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 600px) {
  .mobile-menu {
    width: 100vw;
  }
  .mobile-nav { padding-left: 16px; padding-right: 18px; }
}

/* =================== FOOTER =================== */
footer {
  background: #1A4578;
  color: #fff;
  padding: 30px 0 22px 0;
  border-radius: 30px 30px 0 0;
  margin-top: 40px;
  box-shadow: 0 -4px 32px 0 rgba(58,150,127,.16);
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  border-bottom: 2px dotted #39967F;
  padding: 2px 4px;
  transition: color 0.17s, border-bottom 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F1ECE6;
  border-bottom: 2px solid #F1ECE6;
}
footer p {
  opacity: 0.85;
  color: #F1ECE6;
  font-size: 1rem;
  margin-top: 10px;
}

/* =================== LISTS, BUTTONS & FORMS =================== */
ul, ol {
  margin-bottom: 18px;
  padding-left: 24px;
  color: #1a4578;
}
ul li, ol li {
  margin-bottom: 9px;
  font-size: 1rem;
  line-height: 1.6;
}
li a { color: #39967F; text-decoration: underline;}
li a:hover { color: #1A4578; }

button, .button, input[type="submit"] {
  background: #39967F;
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-right: 6px;
  transition: background 0.17s, transform 0.16s;
}
button:hover, .button:hover, input[type="submit"]:hover {
  background: #1A4578;
  transform: scale(1.07) rotate(-1deg);
}

input, textarea, select {
  font-family: inherit;
  font-size: 1.05rem;
  padding: 8px 13px;
  border-radius: 8px;
  border: 1.4px solid #cbe3dc;
  margin-bottom: 16px;
  width: 100%;
  background: #F1ECE6;
  color: #194578;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: #39967F;
  background: #fff;
}

/* =================== PLAYFUL & DYNAMIC EXTRAS =================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 7px 27px rgba(58,150,127, .08);
}
section:nth-child(even) {
  background: #e9f9f4;
}

/* Animated accent dots for playful effect (optional decorative) */
section:before {
  content: "";
  display: block;
  position: absolute;
  left: 38px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #39967F;
  opacity: 0.14;
  animation: floatDot 4s ease-in-out infinite;
  z-index: 0;
}
@keyframes floatDot {
  0%   { transform:translateY(0) scale(.8); opacity:0.14; }
  50%  { transform:translateY(38px) scale(1.03); opacity:.20; }
  100% { transform:translateY(0) scale(.8); opacity:0.14; }
}

/* Features, Cards, Grids */
.feature img, .tool-item img, .habit-card img, .feature img, .tips-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.features-grid, .tools-grid, .habits-grid, .services-cards, .tips-grid {
  justify-content: center;
  gap: 24px;
}

.services-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 28px;
  margin-top: 8px;
}
.service-card {
  background: #e5f8ef;
  border-radius: 18px;
  box-shadow: 0 2px 10px #39967f26;
  color: #1A4578;
  min-width: 220px;
  flex: 1 1 220px;
  padding: 22px 18px;
  margin-bottom: 20px;
  transition: transform 0.20s, box-shadow 0.22s;
}
.service-card:hover {
  background: #fff8ea;
  box-shadow: 0 5px 22px #39967f28;
  transform: scale(1.04) rotate(-1.5deg);
}

.team-highlight {
  background: #fffbea;
  border-left: 8px solid #39967F;
  border-radius: 16px;
  padding: 22px 20px;
  margin-bottom: 18px;
  box-shadow: 0 1px 8px #39967f13;
}

.visual-steps, .quick-guides, .simple-habit-challenges, .tracker-demo {
  background: #e9f9f4;
  border-radius: 16px;
  padding: 20px 18px 16px 18px;
  margin-top: 18px;
  margin-bottom: 10px;
  box-shadow: 0 2px 14px #39967f13;
}
.visual-steps h3, .quick-guides h3, .simple-habit-challenges h3, .external-links h3 {
  margin-bottom: 8px;
  color: #39967F;
  font-size: 1.25rem;
}

.faq-list, .faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
  margin-bottom: 12px;
}
details {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px #39967f0a;
  padding: 16px 16px 6px 16px;
  font-size: 1.07rem;
  transition: box-shadow 0.2s;
}
details[open] {
  box-shadow: 0 2px 14px #39967f12;
}
details summary {
  cursor: pointer;
  color: #39967F;
  font-weight: bold;
  font-size: 1.07rem;
  outline: none;
}
details summary:focus {
  outline: 2px dashed #39967F;
  outline-offset: 2px;
}
details div {
  margin-top: 8px;
}

.external-links {
  margin-top: 14px;
}
.external-links ul {
  list-style: circle inside;
}
.external-links a {
  color: #1A4578;
}

.contact-info-highlight {
  background: #e5f8ef;
  border-radius: 18px;
  padding: 18px 14px;
  font-size: 1.13rem;
  margin: 18px 0 25px 0;
  box-shadow: 0 1px 12px 0 #39967f13;
  color: #194578;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  word-break: break-word;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 20px 0;
}
.contact-details img {
  width: 22px; height: 22px; vertical-align: middle; margin-right: 6px;
  margin-bottom: 4px;
}

.tracker-demo a {
  display: inline-block;
  margin-top: 10px;
  color: #fff;
  background: #39967F;
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: 700;
  transition: background 0.15s, box-shadow 0.15s;
}
.tracker-demo a:hover { background: #1A4578; box-shadow: 0 2px 8px #39967f15; }

/* =================== TESTIMONIAL SLIDER =================== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
}

/* =================== COOKIE CONSENT BANNER & MODAL =================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fffbea;
  color: #1A4578;
  border-top: 5px solid #39967F;
  box-shadow: 0 -4px 24px 0 #1a45781b;
  padding: 24px 18px 20px 18px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  font-size: 1rem;
  animation: banner-in 0.7s cubic-bezier(.78,-0.2,.42,1.36);
}
@keyframes banner-in {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cookie-consent-banner button, .cookie-consent-banner .button {
  background: #39967F;
  color: #fff;
  padding: 10px 22px;
  border-radius: 20px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.17s, transform 0.14s;
  margin: 0 5px;
}
.cookie-consent-banner .reject-btn {
  background: #fff3e9;
  color: #39967F;
  border: 1.4px solid #39967F;
}
.cookie-consent-banner .cookie-settings-btn {
  background: #e5f8ef;
  color: #1A4578;
  border: 1.4px solid #39967F;
}
.cookie-consent-banner button:hover, .cookie-consent-banner .button:hover {
  background: #1A4578;
  color: #fff;
}

/* Modal Cookie Preferences */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  width: 100vw; height: 100vh;
  background: rgba(26, 69, 120, 0.33);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: modal-bounce-in 0.44s cubic-bezier(.74,-0.14,.39,1.2);
}
.cookie-modal-overlay.active {
  display: flex;
}
@keyframes modal-bounce-in {
  0% { transform: scale(0.75) translateY(80px); opacity: 0; }
  60% { transform: scale(1.04) translateY(-10px); opacity: 1; }
 100% { transform: scale(1.0) translateY(0); opacity: 1; }
}
.cookie-modal {
  background: #fffbea;
  color: #1A4578;
  border-radius: 20px;
  box-shadow: 0 10px 50px #1a45784f;
  padding: 34px 28px 28px 28px;
  min-width: 320px; max-width: 96vw;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}
.cookie-modal-close {
  background: transparent;
  color: #1A4578;
  font-size: 2rem;
  border: none;
  position: absolute;
  right: 14px;
  top: 14px;
  cursor: pointer;
  border-radius: 50%;
  padding: 2px 10px;
}
.cookie-modal-close:hover { background: #39967F22; }
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #1A4578;
  font-size: 1.09rem;
}
.cookie-category input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #39967F;
}
.cookie-category.essential input[type="checkbox"] {
  pointer-events: none;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* =================== RESPONSIVE - MOBILE-FIRST =================== */
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding-right: 10px;
    padding-left: 10px;
  }
  .features-grid, .tools-grid, .services-cards, .tips-grid, .habits-grid {
    gap: 14px;
  }
  .card, .feature, .service-card, .tool-item, .habit-card {
    min-width: 170px;
    padding: 16px 9px;
  }
}
@media (max-width: 768px) {
  .main-nav, header nav.main-nav {
    padding: 18px 10px 8px 10px;
  }
  .features-grid, .tools-grid, .services-cards, .tips-grid, .habits-grid, .testimonial-slider {
    flex-direction: column;
    align-items: center;
  }
  .content-grid, .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .card, .feature, .service-card, .tool-item, .habit-card {
    max-width: 99vw;
    min-width: 0;
    width: 100%;
  }
  section {
    padding: 28px 6px;
    border-radius: 16px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.32rem; }
  h3 { font-size: 1.11rem; }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  .testimonial-card {
    max-width: 97vw;
    min-width: 0;
    padding: 14px 8px;
  }
  .team-highlight, .contact-info-highlight, .visual-steps, .quick-guides, .simple-habit-challenges, .tracker-demo {
    padding: 12px 7px;
  }
  .cookie-modal {
    min-width: 90vw; padding: 16px 6px 16px 6px;
  }
}

/* =================== UTILITY =================== */
.mt-0  { margin-top: 0 !important; }
.mb-0  { margin-bottom: 0 !important; }
.mt-8  { margin-top: 8px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-8  { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* =================== TRANSITIONS & INTERACTIONS =================== */
.card, .service-card, .feature, .tool-item, .habit-card, .testimonial-card, .team-highlight, .contact-info-highlight {
  transition: box-shadow 0.18s, transform 0.20s, background 0.14s;
}
.card:active, .feature:active, .team-highlight:active, .testimonial-card:active {
  transform: scale(0.97) rotate(1deg);
  box-shadow: none;
}

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