/* RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #205072;
  background: #fff;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  padding-left: 1.2em;
}
li {
  margin-bottom: 8px;
}
a {
  color: #205072;
  text-decoration: none;
  transition: color 0.18s cubic-bezier(.55,.1,.71,.41);
  font-weight: 600;
}
a:hover, a:focus {
  color: #44B39D;
  text-decoration: underline;
}


/* CONTAINERS & LAYOUTS */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(32, 80, 114, 0.09);
  position: relative;
  transition: transform 0.18s cubic-bezier(.7,.07,.47,1), box-shadow 0.18s cubic-bezier(.7,.07,.47,1);
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 26px rgba(32,80,114,0.13);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  gap: 12px;
}
.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: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(32,80,114,0.10);
  min-width: 260px;
  max-width: 350px;
  margin-right: 16px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(32,80,114,0.17);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F0E5CF;
  border-radius: 18px;
  padding: 28px 24px;
  flex: 1 1 260px;
  min-width: 200px;
  margin-bottom: 20px;
  box-shadow: 0 3px 9px rgba(68,179,157,0.07);
  transition: transform 0.15s, box-shadow 0.15s;
}
.feature-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 7px 24px rgba(44,131,151,0.13);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

/* HERO & TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #205072;
  margin-bottom: 10px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.13;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  line-height: 1.18;
}
h3 {
  font-size: 1.33rem;
  line-height: 1.25;
}
h4 {
  font-size: 1.12rem;
  line-height: 1.28;
}
p, ul, .text-section {
  font-size: 1rem;
  line-height: 1.65;
  color: #205072;
}
.text-section {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stars {
  font-size: 1.2rem;
  color: #FFD600;
  letter-spacing: 2px;
  font-weight: 700;
}
.testimonial-name {
  font-size: 0.98rem;
  color: #44B39D;
  font-weight: 700;
  margin-top: 4px;
}

/***** NAVIGATION HEADER *****/
header {
  background: #205072;
  padding-top: 0.3em;
  padding-bottom: 0.3em;
  box-shadow: 0 2px 8px rgba(44,131,151,0.07);
  position: relative;
  z-index: 10;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.4em 0.2em;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.17s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #44B39D;
  border-bottom: 2px solid #44B39D;
}
header img[alt="Neuronix Balance"] {
  height: 48px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.11rem;
  background: #44B39D;
  color: #fff;
  border: none;
  padding: 0.8em 2em;
  border-radius: 24px;
  margin-left: 24px;
  box-shadow: 0 2px 8px rgba(68,179,157,0.12);
  cursor: pointer;
  transition: background 0.16s, transform 0.13s, box-shadow 0.15s;
  text-shadow: 0 1px 1px rgba(240,229,207,0.11);
}
.btn-primary:hover,
.btn-primary:focus {
  background: #205072;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 5px 24px rgba(32,80,114,0.16);
}

/***** BURGER MENU (MOBILE) *****/
.mobile-menu-toggle {
  display: none;
  background: #44B39D;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 16px;
  transition: background 0.16s, box-shadow 0.15s;
  box-shadow: 0 1px 7px rgba(32,80,114, 0.11);
  z-index: 150;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #205072;
  color: #fff;
  box-shadow: 0 4px 16px rgba(68,179,157,0.18);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 88vw;
  max-width: 365px;
  background: #205072;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.8,.01,.39,.99);
  box-shadow: -4px 0 20px #20507233;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  padding: 32px 20px 0 24px;
  gap: 20px;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.1rem;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 14px;
  transition: color 0.13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #44B39D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 14px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.17rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 0.56em 0;
  border-radius: 8px;
  transition: background 0.16s, color 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #44B39D;
  color: #fff;
}

/***** HERO & CTA SECTION *****/
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
section:first-of-type {
  background: #F0E5CF;
  border-bottom-left-radius: 60px 32px;
  border-bottom-right-radius: 60px 32px;
  box-shadow: 0 8px 32px rgba(68,179,157,0.06);
}
.content-wrapper > h1, .content-wrapper > h2 {
  margin-bottom: 10px;
}

/***** FEATURE LISTS & ICONIC TIPS *****/
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 23px;
}
.tips-list li {
  display: flex;
  align-items: center;
  font-size: 1.07rem;
  gap: 16px;
  background: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 1px 7px rgba(68,179,157,0.08);
  font-weight: 600;
  color: #205072;
  margin-bottom: 0;
  transition: box-shadow 0.14s;
}
.tips-list li:hover {
  box-shadow: 0 3px 22px rgba(32,80,114,0.13);
}
.tips-icon {
  background: #44B39D;
  border-radius: 12px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
}
.tips-icon img {
  width: 28px;
  height: 28px;
}
.benefits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
  list-style-type: disc;
}
.benefits-list li {
  background: #fff;
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 500;
  margin-bottom: 0;
  color: #205072;
}

/***** TESTIMONIAL SLIDER *****/
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
  margin-top: 10px;
}

/***** FORMS & CONTACT DETAILS *****/
.contact-detail, .map-location {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 12px;
  color: #205072;
}
.contact-detail img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.map-location img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/***** FOOTER *****/
footer {
  background: #205072;
  color: #fff;
  padding: 44px 0 22px 0;
  border-top-left-radius: 44px 20px;
  border-top-right-radius: 44px 20px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  transition: color 0.16s;
  text-decoration: underline 0.1em #44B39D00;
  text-decoration-thickness: 2.5px;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #44B39D;
  text-decoration: underline 2.5px #44B39D;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 14px;
  align-items: flex-start;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
}
.footer-contact > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-contact img {
  width: 23px;
  height: 23px;
}
.footer-brand {
  color: #F0E5CF;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .015em;
  margin-top: 10px;
}

/***** RESPONSIVE DESIGN *****/
@media (max-width: 1024px) {
  .container {
    max-width: 92vw;
    padding-left: 13px;
    padding-right: 13px;
  }
  .feature-grid, .testimonial-slider, .card-container, .content-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .feature-item, .testimonial-card {
    min-width: 180px;
    padding: 20px 12px;
  }
  .content-wrapper {
    gap: 22px;
  }
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.4rem; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .footer-contact {
    flex-direction: column;
    gap: 12px;
  }
  .feature-grid, .testimonial-slider, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .section, section {
    margin-bottom: 38px;
    padding: 24px 8px;
  }
  .content-wrapper {
    gap: 19px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .tips-list {
    gap: 12px;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.02rem; }
}
@media (max-width: 500px) {
  header .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  footer .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .testimonial-card, .feature-item {
    padding: 14px 8px;
  }
  .tips-list li {
    padding: 12px 9px;
  }
}

/***** MICRO-INTERACTIONS & TRANSITIONS *****/
button,
.btn-primary,
input[type=submit] {
  transition: background 0.17s, color 0.13s, box-shadow 0.18s, transform 0.13s;
}
li,
.feature-item,
.card,
.testimonial-card {
  transition: background 0.13s, box-shadow 0.14s, transform 0.17s;
}

/***** COOKIE CONSENT BANNER *****/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #205072;
  box-shadow: 0 -3px 16px rgba(32,80,114,0.13);
  padding: 20px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  z-index: 2001;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  font-size: 1.05rem;
  animation: cookieBannerSlideIn 0.55s cubic-bezier(.78,.02,.41,.98);
}
@keyframes cookieBannerSlideIn {
  0% { transform: translateY(100%); opacity: 0; }
  70% { transform: translateY(-10px); opacity: 1; }
  100% { transform: translateY(0%); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.cookie-banner .btn-cookie {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 15px;
  padding: 0.57em 1.65em;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(32,80,114,0.07);
  transition: background 0.16s, color 0.13s, transform 0.11s;
}
.btn-cookie-accept {
  background: #44B39D;
  color: #fff;
}
.btn-cookie-accept:hover,
.btn-cookie-accept:focus {
  background: #205072;
  color: #fff;
  transform: scale(1.04);
}
.btn-cookie-reject {
  background: #fff;
  color: #205072;
  border: 2px solid #44B39D;
}
.btn-cookie-reject:hover,
.btn-cookie-reject:focus {
  background: #F0E5CF;
  color: #205072;
  transform: scale(1.03);
}
.btn-cookie-settings {
  background: #205072;
  color: #fff;
}
.btn-cookie-settings:hover,
.btn-cookie-settings:focus {
  background: #44B39D;
  color: #fff;
  transform: scale(1.04);
}

/***** COOKIE PREFERENCES MODAL *****/
#cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32,80,114,0.25);
  z-index: 2200;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.38s;
}
#cookie-modal-overlay.open {
  display: flex;
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
#cookie-modal {
  background: #fff;
  color: #205072;
  padding: 28px 26px 18px 26px;
  border-radius: 20px;
  box-shadow: 0 4px 28px rgba(32,80,114,0.18);
  min-width: 290px;
  max-width: 93vw;
  animation: modalPopIn 0.45s cubic-bezier(.4,.41,.58,1.29);
}
@keyframes modalPopIn {
  0% { transform: scale(0.87); opacity: 0; }
  80% { transform: scale(1.04); }
  100% { transform: scale(1); opacity: 1; }
}
#cookie-modal h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.cookie-categories {
  margin-top: 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}
.cookie-category-toggle {
  appearance: none;
  width: 34px;
  height: 18px;
  background: #F0E5CF;
  border-radius: 12px;
  position: relative;
  outline: none;
  margin-right: 5px;
  transition: background 0.18s;
  cursor: pointer;
}
.cookie-category-toggle:checked {
  background: #44B39D;
}
.cookie-category-toggle:before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px;
  left: 1px;
  transition: transform 0.18s;
  box-shadow: 0 1px 2px #20507224;
}
.cookie-category-toggle:checked:before {
  transform: translateX(16px);
}
.cookie-category[aria-disabled='true'] {
  opacity: 0.52;
  pointer-events: none;
}
#cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  justify-content: center;
}
#cookie-modal .btn-primary {
  margin: 0 !important;
}
#cookie-modal .btn-cookie-reject {
  font-size: 1rem;
}

/* ENSURE NO OVERLAPPING FOR ALL FLEXBOX LAYOUTS */
.feature-grid > *:not(:last-child),
.card-container > *:not(:last-child),
.content-grid > *:not(:last-child),
.testimonial-slider > *:not(:last-child) {
  margin-right: 0;
  margin-bottom: 20px;
}

/* HIDE MOBILE MENU WHEN NOT OPEN */
.mobile-menu {
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
}

/* UTILITY CLASSES */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* SELECTION COLOR */
::selection {
  background: #44B39D;
  color: #fff;
}

/* FORMS (for future proof) */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 0.6em 0.9em;
  border: 1.5px solid #44B39D;
  border-radius: 8px;
  background: #fff;
  color: #205072;
  margin-bottom: 16px;
  transition: border 0.16s, box-shadow 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #205072;
  box-shadow: 0 1px 8px #44B39D33;
  outline: none;
}
input[type="submit"] {
  background: #44B39D;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 24px;
  font-weight: 700;
  font-size: 1.08rem;
  border: none;
  cursor: pointer;
  transition: background 0.13s, box-shadow 0.11s;
}
input[type="submit"]:hover, input[type="submit"]:focus {
  background: #205072;
}

/* Accessibility */
:focus {
  outline: 2px solid #44B39D !important;
  outline-offset: 2px;
}

/* Hide scroll when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
}
