/* ------------------------------------------------------
   CSS RESET & BASELINE
---------------------------------------------------------*/
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;
  background: #F1F1F1;
  color: #222;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ol, ul {
  list-style: none;
}
a {
  background: none;
  text-decoration: none;
  color: #11698E;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1B7C36;
  outline: none;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
}
strong {
  font-weight: 700;
}
/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;700&display=swap');

/* ------------------------------------------------------
   BRAND COLOR PALETTE
---------------------------------------------------------*/
:root {
  --color-primary: #11698E;
  --color-secondary: #F1F1F1;
  --color-white: #FFFFFF;
  --color-accent: #1B7C36;
  --color-grey: #EDF6F9;
  --color-darktext: #16222A;
  --color-lighttext: #FFFFFF;
  --color-shadow: rgba(17, 105, 142, 0.04);
  --color-shadow-lg: rgba(17, 105, 142, 0.09);
  --color-divider: #E5EAF0;
  --gradient-main: linear-gradient(90deg, #11698E 0%, #34A853 100%);
  --gradient-accent: linear-gradient(90deg, #1B7C36 0%, #11698E 100%);
}

/* ------------------------------------------------------
   TYPOGRAPHY & HEADINGS
---------------------------------------------------------*/
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 2rem; /* 32px */
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.5rem; /* 24px */
  line-height: 1.2;
  color: var(--color-darktext);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.125rem; /* 18px */
  line-height: 1.25;
  color: var(--color-primary);
  margin-bottom: 14px;
}
p, .text-section, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem; /* 16px */
  color: var(--color-darktext);
  margin-bottom: 12px;
  line-height: 1.65;
}
.text-section strong {
  color: var(--color-primary);
}

@media (min-width: 600px) {
  h1, .h1 { font-size: 2.5rem; } /* 40px */
  h2, .h2 { font-size: 2rem; }     /* 32px */
  h3, .h3 { font-size: 1.25rem; }  /* 20px */
}
@media (min-width: 1100px) {
  h1, .h1 { font-size: 3rem; } /* 48px */
  h2, .h2 { font-size: 2.25rem; }
}

/* ------------------------------------------------------
   CONTAINER & LAYOUT
---------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 12px 0;
}
.main-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 6px 30px var(--color-shadow);
}
@media (max-width: 900px) {
  .section {
    padding: 32px 10px;
    margin-bottom: 40px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 4px 16px var(--color-shadow-lg);
  padding: 28px 22px;
  min-width: 220px;
  flex: 1 1 270px;
  position: relative;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: 0 8px 28px var(--color-shadow-lg);
  transform: translateY(-3px) scale(1.015);
}
.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) {
  .content-wrapper, .text-image-section, .content-grid { flex-direction: column; gap: 20px; }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px 20px;
  background: #F6FBFF;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px var(--color-shadow);
  max-width: 380px;
  transition: box-shadow .15s, transform .15s;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #11698E;
  font-weight: 700;
  font-size: 16px;
  margin-top: 8px;
}
.testimonial-card p {
  color: #16222A;
  font-size: 1.08rem;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px var(--color-shadow-lg);
  transform: scale(1.03);
}

.benefit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.benefit-list li {
  background: var(--color-grey);
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 18px 18px 16px 18px;
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #16222A;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin: 20px 0 0 0;
}
.feature-box {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 4px 18px var(--color-shadow);
  padding: 28px 18px 22px 18px;
  min-width: 210px;
  max-width: 300px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow .18s, transform .17s;
  margin-bottom: 16px;
}
.feature-box img {
  width: 38px;
  height: 38px;
}
.feature-box:hover {
  box-shadow: 0 8px 32px var(--color-shadow-lg);
  transform: translateY(-4px) scale(1.03);
}

.team-member {
  background: var(--color-white);
  border-radius: 13px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 24px 18px;
  flex: 1 1 250px;
  margin-bottom: 20px;
}
.team-member h3 { color: var(--color-accent); }

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

/* ------------------------------------------------------
   HERO SECTION
---------------------------------------------------------*/
.hero {
  background: var(--gradient-main);
  color: var(--color-lighttext);
  padding: 60px 0 48px 0;
}
.hero .container,
.hero .content-wrapper {
  align-items: center;
}
.hero h1, .hero h2, .hero p {
  color: #000000;
}
.hero .cta-btn {
  margin-top: 24px;
  background: var(--gradient-accent);
  color: var(--color-secondary);
}
@media (max-width: 900px) {
  .hero { padding: 32px 0 28px 0; }
}

/* ------------------------------------------------------
   CTAs & BUTTONS
---------------------------------------------------------*/
.cta-btn {
  display: inline-block;
  background: var(--gradient-main);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 32px;
  border: none;
  border-radius: 26px;
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: box-shadow .18s, background .18s, color .14s, transform .14s;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.cta-btn.primary {
  background: var(--gradient-main);
}
.cta-btn.secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.cta-btn:hover, .cta-btn:focus {
  box-shadow: 0 6px 28px var(--color-shadow-lg);
  background: var(--gradient-accent);
  color: #fff;
  transform: translateY(-2px) scale(1.025);
}

/* ------------------------------------------------------
   HEADER & MAIN NAVIGATION
---------------------------------------------------------*/
header {
  background: var(--color-white);
  box-shadow: 0 1.5px 8px var(--color-shadow);
  left: 0; right: 0;
  position: sticky;
  top: 0;
  z-index: 40;
}
.main-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #16222A;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .18s, color .16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-primary);
  color: #fff;
}

/* Hide hamburger on desktop */
.mobile-menu-toggle {
  display: none;
}

/* ------------------------------------------------------
   MOBILE MENU
---------------------------------------------------------*/
@media (max-width: 980px) {
  .main-nav,
  .cta-btn.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
    font-size: 1.8rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 8px;
    padding: 7px 11px;
    margin-left: 6px;
    z-index: 108;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 2px 7px var(--color-shadow);
    transition: background .13s;
  }
  .mobile-menu-toggle:active,
  .mobile-menu-toggle:focus {
    background: var(--color-accent);
  }
}
/* Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17, 105, 142, 0.96);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.65,.02,.39,.97);
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  margin: 24px 28px 6px 0;
  border-radius: 8px;
  transition: background .14s;
  border: none;
  z-index: 1010;
}
.mobile-menu-close:active,
.mobile-menu-close:focus {
  background: #1B7C36;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
  padding: 30px 36px;
  box-sizing: border-box;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 14px 10px;
  margin-bottom: 2px;
  display: block;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #1B7C36;
  color: #FFF;
}

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


/* ------------------------------------------------------
   FOOTER
---------------------------------------------------------*/
footer {
  background: #17415E;
  color: #fff;
  margin-top: 60px;
  box-shadow: 0 -2px 20px var(--color-shadow);
  padding: 0;
}
footer .container {
  padding: 35px 20px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 12px;
}
.footer-menu a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 7px;
  padding: 6px 9px;
  transition: background .14s, color .13s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: #34A853;
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
}
.footer-contact img {
  display: inline-block;
  width: 18px;
  margin-right: 5px;
  vertical-align: middle;
}
.footer-copyright {
  font-size: 0.93rem;
  opacity: 0.72;
  margin-top: 12px;
  color: #bde6ff;
}

/* ------------------------------------------------------
   UTILITY CLASSES
---------------------------------------------------------*/
.bg-gradient {
  background: var(--gradient-main);
}
.rounded {
  border-radius: 12px;
}
.shadow {
  box-shadow: 0 4px 32px var(--color-shadow-lg);
}
.gap-20 {
  gap: 20px;
}
.text-center {
  text-align: center;
}
@media (min-width: 800px) {
  .footer-menu, .footer-contact{
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  footer .container{
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 22px;
  }
}

/* ------------------------------------------------------
   GENERIC SECTION STYLES
---------------------------------------------------------*/
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: transparent;
  border-radius: 0;
}
section > .container {
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 6px 28px 0 var(--color-shadow);
  padding: 30px 20px;
}
@media (max-width: 767px) {
  section {
    margin-bottom: 38px;
    padding: 28px 0;
  }
  section > .container {
    padding: 18px 7px;
  }
}

/* ------------------------------------------------------
   COMPONENTS (FAQ, RESOURCES, TEXT SECTIONS)
---------------------------------------------------------*/
.faq ul,
.tips ul, .resources ul, .info ul, .values ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  margin: 0 0 12px 0;
}
.faq ul li, .tips ul li, .resources ul li, .info ul li, .values ul li {
  background: #F7FBFD;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 1rem;
  color: #11698E;
  box-shadow: 0 2px 9px var(--color-shadow);
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.highlight-tip, .sleep-routines, .activity-examples, .mental-techniques, .statistics, .user-stories, .infographics {
  background: #E9F7F3;
  border-radius: 8px;
  padding: 13px 16px;
  box-shadow: 0 2px 8px var(--color-shadow);
  font-size: 1.03rem;
  color: #1B7C36;
  margin-top: 8px;
  margin-bottom: 7px;
}

/* ------------------------------------------------------
   FORMS (Contact Section, Thank You)
---------------------------------------------------------*/
.contact-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 13px;
  margin-bottom: 15px;
}
.contact-options .text-section img {
  width: 20px;
  margin-right: 7px;
  vertical-align: middle;
}

/* ------------------------------------------------------
   COOKIE CONSENT BANNER (Fixed Bottom, Modal)
---------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  background: #17415E;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 -2px 16px var(--color-shadow-lg);
  padding: 22px 20px 18px 20px;
  align-items: flex-start;
  width: 100%;
  animation: slideUpBanner .5s cubic-bezier(.7,.09,.47,.96);
}
@keyframes slideUpBanner {
  0% { transform: translateY(120%); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner .cta-btn {
  font-size: 1rem;
  padding: 10px 21px;
  margin: 0 4px 0 0;
  border-radius: 17px;
  letter-spacing: 0.5px;
  border: none;
  background: var(--gradient-main);
  color: #fff;
}
.cookie-banner .cta-btn[aria-pressed="true"] {
  background: #11698E;
  color: #fff;
}
.cookie-banner .cta-btn.secondary {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.cookie-banner .cta-btn:hover, .cookie-banner .cta-btn:focus {
  background: var(--gradient-accent);
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  font-weight: 700;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: var(--color-accent);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17, 105, 142, 0.64);
  z-index: 1111;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .28s;
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #17243B;
  border-radius: 18px;
  box-shadow: 0 8px 40px var(--color-shadow-lg);
  width: 96%;
  max-width: 440px;
  padding: 34px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  text-align: left;
  animation: modalIn .35s cubic-bezier(.65,.02,.39,.97);
}
@keyframes modalIn {
  0% { opacity:0; transform: scale(0.90); }
  100% { opacity:1; transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.45rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 7px;
}
.cookie-modal .cookie-toggle {
  margin-left: auto;
}
.cookie-modal .cta-btn {
  margin-top: 18px;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 17px; top: 18px;
  background: transparent;
  border: none;
  color: #11698E;
  font-size: 1.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background .12s;
}
.cookie-modal .close-modal:focus, .cookie-modal .close-modal:hover {
  background: #f3f8fc;
}

/* Toggle Switch Styling for Cookies */
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  background: #eee;
  border-radius: 10px;
  position: relative;
  outline: none;
  transition: background 0.2s;
}
.cookie-toggle:checked {
  background: var(--color-accent);
}
.cookie-toggle::before {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.17s;
  box-shadow: 0 1px 6px #D1E9FF;
}
.cookie-toggle:checked::before {
  left: 21px;
}

/* ------------------------------------------------------
   RESPONSIVE ADJUSTMENTS
---------------------------------------------------------*/
@media (max-width: 1200px) {
  .container { max-width: 98%; }
}
@media (max-width: 1050px) {
  .feature-grid, .about .content-wrapper, .team .content-wrapper {
    justify-content: flex-start;
  }
}
@media (max-width: 900px) {
  h1, .h1 { font-size: 2.1rem; }
  h2, .h2 { font-size: 1.5rem; }
  .container { padding: 0 8px; }
  .features .container {
    padding: 10px 2px;
  }
  .card, .feature-box, .team-member {
    min-width: 180px;
    padding: 17px 10px;
  }
  .feature-grid { gap: 14px; }
}
@media (max-width: 767px) {
  h1, .h1 { font-size: 1.45rem; }
  h2, .h2 { font-size: 1.13rem; }
  .benefit-list,
  .footer-menu, .footer-contact, .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-box, .team-member, .testimonial-card {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }
  .footer-contact {
    align-items: flex-start;
    font-size: .97rem;
    gap: 3px;
  }
  .cta-btn, .cookie-banner .cta-btn {
    width: 100%;
    text-align: center;
  }
  .cookie-banner {
    padding: 17px 8px 13px 8px;
  }
  .cookie-modal {
    padding: 20px 7px 14px 7px;
  }
  .main-nav {
    display: none !important;
  }
}

/* ------------------------------------------------------
   MISC
---------------------------------------------------------*/
::-webkit-scrollbar { width: 9px; background: #E0EFFB; }
::-webkit-scrollbar-thumb {
  background: #B9DBF4;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #11698E;
}

/* ------------------------------------------------------
   PRINT (optional minimal cleanup)
---------------------------------------------------------*/
@media print {
  header, footer, .cookie-banner, .mobile-menu {
    display: none !important;
  }
}
