/* NutriMaster App Website Styles */

/* Variables */
:root {
  /* Colors */
  --primary-color: #00B67A;  /* Green for healthy theme */
  --secondary-color: #FF5A5F; /* Vibrant red */
  --accent-color: #FFD700;   /* Gold for achievements */
  --dark-color: #333333;     /* Dark gray for text */
  --light-color: #F9F9F9;    /* Light background */
  --white: #FFFFFF;

  /* Typography */
  --heading-font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --body-font: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-spacing: 60px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.heading {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.h2 {
  font-size: 2.2rem;
  text-transform: lowercase;
  position: relative;
  display: inline-block;
  color: var(--primary-color);
  margin-bottom: 40px;
}

.h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--secondary-color);
}

.h5 {
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--primary-color);
}

.p1 {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: var(--dark-color);
}

.bold-text-2 {
  font-weight: 600;
}

/* Section & Container Styles */
section {
  padding: var(--section-spacing) 0;
  position: relative;
}

section:nth-child(odd) {
  background-color: var(--light-color);
}

.w-container, .container-3 {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

/* Intro Section */
.intro_section {
  background: linear-gradient(135deg, #F9F9F9 0%, #F9FBFB 100%);
  padding: 100px 0 60px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.intro_section .heading {
  color: var(--primary-color);
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.intro-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  filter: blur(8px);
  z-index: 1;
  transform: scale(1.2);
}

.intro_section .w-container {
  position: relative;
  z-index: 2;
}

/* Main Navigation */
.main-nav {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-logo img {
  margin-right: 10px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-family: var(--heading-font);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.nav-link.active {
  font-weight: 700;
  position: relative;
}

.nav-link.active:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* App Store Badges */
.div-block-335 {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.link-block-3,
.link-block-4 {
  transition: transform 0.3s ease;
}

.link-block-3:hover,
.link-block-4:hover {
  transform: translateY(-5px);
}

/* Image Blocks */
.div-block-30 {
  margin: 30px auto;
  max-width: 550px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.div-block-30 img {
  object-fit: contain;
  margin: 0 auto;
}

/* Button Styles */
.button {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--secondary-color);
  color: var(--white);
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: var(--heading-font);
  border: 2px solid var(--secondary-color);
}

.button:hover {
  background-color: transparent;
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 182, 122, 0.2);
}

.w-button {
  cursor: pointer;
}

/* Content Blocks */
.div-block-31 {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.div-block-32 {
  margin-bottom: 20px;
  text-align: center;
}

.div-block-333 {
  margin-top: 40px;
  margin-bottom: 20px;
}

/* Contact Section */
.div-block-24 {
  margin: 30px auto;
  text-align: center;
}

.link-2 {
  color: var(--secondary-color);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-2:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Footer Links */
.div-block-334 {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px auto 20px;
  flex-wrap: wrap;
}

.link-block-2,
.link-block {
  text-decoration: none;
  transition: transform 0.3s ease;
}

.link-block-2:hover,
.link-block:hover {
  transform: translateY(-3px);
}

/* Copyright */
.div-block-25 {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.text-block-15 {
  font-size: 0.9rem;
  color: #777;
}

/* Terms and Privacy Pages */
.terms-page {
  padding: 60px 0;
  background-color: var(--light-color);
  min-height: calc(100vh - 200px);
}

.container-privacy {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.h1-2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.h1-2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.privacy-block {
  margin-bottom: 40px;
  transition: none;
}

/* Ensure all blocks on privacy and terms pages are visible */
body:not(.home) .privacy-block {
  opacity: 1;
  transform: none;
  transition: none;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animated {
  animation: fadeIn 0.6s ease-out forwards;
}

.div-block-30, .div-block-31 {
  opacity: 0;
}

.div-block-30.animated, .div-block-31.animated {
  opacity: 1;
}

.h3-privacy {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.text-block-privacy {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark-color);
}

.text-block-privacy a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.text-block-privacy a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

.text-block-privacy ul, .text-block-privacy ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.text-block-privacy li {
  margin-bottom: 10px;
}

.text-block-privacy br {
  display: block;
  margin-bottom: 8px;
  content: "";
}

.text-block-privacy sup {
  vertical-align: super;
  font-size: smaller;
}

.text-block-privacy strong {
  font-weight: 600;
  color: var(--dark-color);
}

.text-block-privacy p {
  margin-bottom: 15px;
}

.text-block-privacy [href^="mailto"] {
  font-weight: 500;
}

.privacy-highlight {
  background-color: rgba(0, 182, 122, 0.1);
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  margin: 20px 0;
}

.text-block-privacy strong {
  font-weight: 600;
  color: var(--dark-color);
}

.text-block-privacy p {
  margin-bottom: 15px;
}

.text-block-privacy [href^="mailto"] {
  font-weight: 500;
}

.privacy-highlight {
  background-color: rgba(0, 182, 122, 0.1);
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  margin: 20px 0;
}

.terms-footer {
  background-color: var(--white);
  padding: 40px 0 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-link {
  color: var(--dark-color);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .heading {
    font-size: 2.5rem;
  }

  .h2 {
    font-size: 2rem;
  }

  .div-block-334 {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .container-privacy {
    padding: 30px 20px;
  }

  .h1-2 {
    font-size: 2rem;
  }

  .h3-privacy {
    font-size: 1.3rem;
  }

  .heading {
    font-size: 2.2rem;
  }

  .h2 {
    font-size: 1.8rem;
  }

  .p1 {
    font-size: 1rem;
  }

  .div-block-30 img {
    max-width: 90%;
    margin: 0 auto;
    height: auto;
  }

  .intro_section {
    padding: 80px 0 50px;
  }

  section {
    padding: 40px 0;
  }

  .div-block-30 {
    margin: 20px auto;
  }
}

@media (max-width: 479px) {
  .nav-container {
    flex-direction: column;
    gap: 15px;
  }

  .container-privacy {
    padding: 25px 15px;
  }

  .h1-2 {
    font-size: 1.8rem;
  }

  .heading {
    font-size: 1.8rem;
  }

  .h2 {
    font-size: 1.6rem;
  }

  .div-block-335 {
    flex-direction: column;
    align-items: center;
  }

  .button {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
}

/* Print styles */
@media print {
  .main-nav, .terms-footer {
    display: none;
  }

  .terms-page {
    padding: 0;
    background: none;
  }

  .container-privacy {
    box-shadow: none;
    padding: 0;
    max-width: 100%;
  }

  .h1-2:after {
    display: none;
  }

  .text-block-privacy a {
    text-decoration: underline;
    color: var(--dark-color);
  }

  .privacy-highlight {
    border: 1px solid #ccc;
    background: none;
  }
}
