/*
  Nutrivibe - Custom Stylesheet
  Author: WebLite Demo
*/

/* --------------------------------------------------------------
  # Variables & Base
-------------------------------------------------------------- */
:root {
  --color-bg: #FCFCFA;
  --color-sage-green: #A7C7A0;
  --color-natural-beige: #F6EFE7;
  --color-peach: #F5B78B;
  --color-text: #2F2F2F;
  --color-text-light: #5f5f5f;
  --color-border: #E5E5E5;
  --color-white: #FFFFFF;

  --font-heading: 'Rubik', sans-serif;
  --font-body: 'Assistant', sans-serif;
  --font-quote: 'Suez One', serif;

  --border-radius: 12px;
  --transition: all 0.3s ease-in-out;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

a {
  color: var(--color-sage-green);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 30px auto;
  text-align: center;
}

/* --------------------------------------------------------------
  # Buttons
-------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-sage-green);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: transparent;
  border-color: var(--color-sage-green);
  color: var(--color-sage-green);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-natural-beige);
  border-color: var(--color-natural-beige);
  color: var(--color-text);
}

/* --------------------------------------------------------------
  # Accessibility
-------------------------------------------------------------- */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-sage-green);
  color: white;
  padding: 10px;
  z-index: 9999;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 0;
}

/* --------------------------------------------------------------
  # Header
-------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  background-color: rgba(252, 252, 250, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  padding: 10px 0;
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--color-text);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.main-nav a {
  color: var(--color-text-light);
  font-size: 1rem;
  padding: 5px 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-sage-green);
  transition: width 0.3s;
}

.main-nav a:hover::after, .main-nav a.active::after {
  width: 100%;
}

.mobile-menu-toggle, .mobile-menu {
  display: none;
}

/* --------------------------------------------------------------
  # Main Content & Sections
-------------------------------------------------------------- */
main {
  padding-top: 80px; /* Header height */
}

section {
  padding: 80px 0;
}

/* Hero Section */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: url('../img/hero-bg.webp') no-repeat center center/cover;
  color: var(--color-white);
  text-align: center;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(47, 47, 47, 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  color: var(--color-white);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-content .subtitle {
  color: var(--color-white);
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.hero-buttons .btn-primary {
  background-color: var(--color-peach);
  border-color: var(--color-peach);
}
.hero-buttons .btn-primary:hover {
  background-color: transparent;
  color: var(--color-white);
}
.hero-buttons .btn-secondary {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}
.hero-buttons .btn-secondary:hover {
  background-color: rgba(255,255,255,0.1);
}

/* Demo Banners */
.demo-banner {
  padding: 20px 0;
  text-align: center;
}
.demo-banner-peach {
  background-color: rgba(245, 183, 139, 0.2);
}
.demo-banner-light {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.demo-banner p {
  margin: 0;
  font-size: 1rem;
}

/* Philosophy Section */
.philosophy-section {
  background-color: var(--color-natural-beige);
}
.philosophy-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.philosophy-quote {
  font-family: var(--font-quote);
  font-size: 2rem;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 40px;
  position: relative;
  padding: 0 20px;
}
.philosophy-quote::before {
  content: '“';
  font-size: 6rem;
  color: var(--color-peach);
  position: absolute;
  top: -30px;
  right: -10px;
  opacity: 0.3;
  z-index: 0;
}
.philosophy-text .section-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}
.service-card {
  background: var(--color-white);
  padding: 30px;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background-color: rgba(167, 199, 160, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-sage-green);
}
.service-card h3 {
  margin-bottom: 10px;
}
.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* About Section */
.about-section {
  background-color: var(--color-natural-beige);
}
.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}
.about-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.about-text .section-title {
  text-align: right;
  margin-bottom: 20px;
}
.about-text p {
  margin-bottom: 20px;
}

/* Myths Section */
.myths-section {
  background-color: var(--color-bg);
}
.myths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  perspective: 1000px;
}
.myth-card {
  background-color: transparent;
  height: 250px;
  cursor: pointer;
}
.myth-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.myth-card.flipped .myth-card-inner {
  transform: rotateY(180deg);
}
.myth-card-front, .myth-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
}
.myth-card-front {
  background-color: var(--color-white);
}
.myth-card-front p {
  color: var(--color-sage-green);
  font-size: 0.9rem;
  margin-top: 10px;
}
.myth-card-back {
  background-color: var(--color-sage-green);
  color: var(--color-white);
  transform: rotateY(180deg);
}
.myth-card-back h3, .myth-card-back p {
  color: var(--color-white);
}

/* Stories Section */
.story-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  background: var(--color-white);
  padding: 50px;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
}
.story-highlight img {
  border-radius: var(--border-radius);
}
.story-highlight-text h3 {
  font-family: var(--font-quote);
  font-size: 1.6rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* A Day In My Plate Section */
.day-plate-section {
  background-color: rgba(167, 199, 160, 0.05); /* Very light sage green */
}
.plate-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 60px;
}
.plate-timeline::before {
  content: '';
  position: absolute;
  top: 30px; /* Vertically center with the icon */
  right: 5%;
  left: 5%;
  height: 2px;
  background-color: var(--color-border);
  z-index: 0;
}
.plate-item {
  flex: 1;
  text-align: center;
  padding: 0 15px;
  position: relative;
}
.plate-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 2px solid var(--color-sage-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  z-index: 1;
  position: relative;
}
.plate-icon i {
  font-size: 1.5rem;
  color: var(--color-sage-green);
}
.plate-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--color-text);
}
.plate-item p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  max-width: 220px;
  margin: 0 auto;
}

/* Program Section */
.program-section {
  background-color: var(--color-sage-green);
  color: var(--color-white);
  text-align: center;
}
.program-section .section-title, .program-section .subtitle {
  color: var(--color-white);
}
.program-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin: 50px 0;
}
.step {
  flex: 1;
}
.step-number {
  width: 50px;
  height: 50px;
  border: 2px solid var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
}
.step h3 {
  color: var(--color-white);
  margin-bottom: 10px;
}
.step p {
  opacity: 0.9;
  font-size: 0.95rem;
}
.step-arrow {
  font-size: 2rem;
  margin-top: 50px;
  color: rgba(255,255,255,0.5);
}
.program-section .btn-primary {
  background-color: var(--color-white);
  color: var(--color-sage-green);
}
.program-section .btn-primary:hover {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--color-bg);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.testimonial-card {
  background-color: var(--color-natural-beige);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
}
.testimonial-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  object-fit: cover;
  border: 3px solid var(--color-white);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}
.testimonial-card blockquote p {
  font-family: var(--font-quote);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}
.testimonial-card blockquote p::before {
  content: '“';
  font-size: 3rem;
  color: var(--color-peach);
  position: absolute;
  top: -10px;
  right: -20px;
  opacity: 0.5;
}
.testimonial-card cite {
  font-style: normal;
  font-weight: bold;
  color: var(--color-text-light);
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.blog-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.blog-card a {
  color: var(--color-text);
}
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}
.blog-card:hover img {
  transform: scale(1.05);
}
.blog-content {
  padding: 25px;
}
.blog-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.blog-content p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 15px;
}
.read-more {
  font-weight: bold;
  color: var(--color-sage-green);
}

/* Contact Section */
.contact-section {
  background-color: rgba(167, 199, 160, 0.1);
}
.contact-section .section-title, .contact-section .subtitle {
  text-align: center;
}
.contact-form {
  max-width: 700px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group-full {
  grid-column: 1 / -1;
}
.contact-form label {
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none;
  border-color: var(--color-sage-green);
  box-shadow: 0 0 0 2px rgba(167, 199, 160, 0.3);
}
.contact-form button {
  grid-column: 1 / -1;
  width: auto;
  justify-self: center;
}
.form-success-message {
  text-align: center;
  margin-top: 20px;
  padding: 15px;
  background-color: var(--color-sage-green);
  color: var(--color-white);
  border-radius: var(--border-radius);
}

/* --------------------------------------------------------------
  # Footer
-------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-natural-beige);
  padding: 60px 0 20px;
  color: var(--color-text-light);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h3, .footer-col h4 {
  color: var(--color-text);
  margin-bottom: 20px;
}
.footer-col p {
  margin-bottom: 10px;
}
.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background-color: var(--color-white);
  color: var(--color-sage-green);
  margin-left: 10px;
}
.social-links a:hover {
  background-color: var(--color-sage-green);
  color: var(--color-white);
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--color-text-light);
}
.footer-contact p {
  display: flex;
  align-items: center;
}
.footer-contact i {
  margin-left: 10px;
  color: var(--color-peach);
}
.footer-contact a {
  color: var(--color-text-light);
}
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
.credit a {
  font-weight: bold;
}

/* --------------------------------------------------------------
  # Responsive
-------------------------------------------------------------- */
@media (max-width: 992px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }
  .section-title { font-size: 2rem; }

  .main-nav, .header-actions .btn { display: none; }
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
  }
  .icon-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 1px;
    position: absolute;
    transition: all 0.3s;
  }
  .icon-bar:nth-child(1) { top: 0; }
  .icon-bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
  .icon-bar:nth-child(3) { bottom: 0; }
  
  .mobile-menu-toggle.active .icon-bar:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
  .mobile-menu-toggle.active .icon-bar:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle.active .icon-bar:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

  .mobile-menu {
    display: block;
    position: fixed;
    top: 71px; /* Header height */
    right: -100%;
    width: 100%;
    height: calc(100vh - 71px);
    background: var(--color-bg);
    padding: 40px 20px;
    transition: right 0.4s ease-in-out;
    z-index: 999;
    overflow-y: auto;
  }
  .mobile-menu.active {
    right: 0;
  }
  .mobile-menu ul { list-style: none; }
  .mobile-menu li { margin-bottom: 20px; }
  .mobile-menu a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--color-text);
  }

  .about-content, .myths-grid, .testimonials-grid, .blog-grid, .footer-grid, .story-highlight {
    grid-template-columns: 1fr;
  }
  .about-image { order: -1; }
  .about-text .section-title { text-align: center; }
  .program-steps { flex-direction: column; align-items: center; gap: 30px; }
  .step-arrow { display: none; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .philosophy-quote { font-size: 1.6rem; }
  .story-highlight { padding: 30px; }
  .story-highlight-text h3 { font-size: 1.4rem; }
  .plate-timeline {
    flex-direction: column;
    gap: 40px;
  }
  .plate-timeline::before { display: none; } /* Hide line on mobile */


}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .contact-form { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  body { font-size: 16px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .section-title { font-size: 1.7rem; }
  .hero-buttons { flex-direction: column; }
}