/* Color Scheme */
:root {
  --primary: #3a7d44;
  --primary-light: #58d68d;
  --primary-dark: #2c5e33;
  --secondary: #f5a623;
  --secondary-light: #f8c471;
  --secondary-dark: #e69500;
  --light: #f8f4e9;
  --light-alt: #fff9f0;
  --dark: #333;
  --dark-alt: #444;
  --text: #555;
  --white: #fff;
  --gray: #eee;
  --dark-gray: #777;
  --overlay: rgba(0,0,0,0.5);
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--light);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--dark);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}

/* Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.main-header.scrolled {
  padding: 0.5rem 5%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.logo img {
  height: 40px;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
}

.main-nav ul li a {
  font-weight: 500;
  transition: all 0.3s;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav ul li a:hover {
  color: var(--primary);
}

.main-nav ul li.active a {
  color: var(--primary);
  font-weight: 600;
}

.main-nav ul li.active a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 3px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.search-box {
  display: flex;
  align-items: center;
  position: relative;
}

.search-box input {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--gray);
  border-radius: 50px;
  outline: none;
  width: 200px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.search-box input:focus {
  border-color: var(--primary);
  width: 220px;
}

.search-box button {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  transition: transform 0.3s;
}

.search-box button:hover {
  transform: scale(1.1);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  transition: transform 0.3s;
}

.mobile-menu-btn:hover {
  transform: scale(1.1);
}

/* Hero Section */
.remedy-hero {
  text-align: center;
  padding: 6rem 0 4rem;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(97, 106, 98, 0.8)), url('images/remedy-bg.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  margin-bottom: 3rem;
  position: relative;
}

.remedy-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.remedy-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Intro Section */
.remedy-intro {
  padding: 4rem 0;
  background-color: var(--white);
}

.intro-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.intro-content img {
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.intro-content h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.intro-content p {
  margin-bottom: 1rem;
}

/* Categories Section */
.remedy-categories {
  padding: 4rem 0;
  background-color: #f5f9f5;
}

.remedy-categories h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
  font-size: 2rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category-card {
  position: relative;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--white);
  transition: all 0.3s ease;
}

.category-card:hover .category-overlay {
  padding-bottom: 2rem;
}

.category-overlay h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.category-overlay p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.category-overlay i {
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.category-card:hover .category-overlay i {
  opacity: 1;
}

/* Remedy List Section */
.remedy-list {
  padding: 4rem 0;
}

.remedy-list h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.section-desc {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-light);
}

.remedy-items {
  display: grid;
  gap: 3rem;
}

.remedy-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.remedy-item:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.remedy-image {
  height: 100%;
  position: relative;
}

.remedy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.time-servings {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: flex;
  gap: 1rem;
}

.time-servings span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
}

.remedy-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.remedy-header {
  margin-bottom: 1rem;
}

.remedy-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.benefits span {
  background-color: #e8f5e9;
  color: var(--primary-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.remedy-desc {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.remedy-details {
  display: none;
  margin-top: 1.5rem;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.remedy-details h4 {
  margin-bottom: 0.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remedy-details ul, .remedy-details ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.remedy-details li {
  margin-bottom: 0.5rem;
}

.tips {
  background-color: #f5f9f5;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.view-button {
  background: var(--primary);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.view-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Active state for expanded remedy */
.remedy-item.active {
  grid-template-columns: 1fr;
}

.remedy-item.active .remedy-details {
  display: block;
}

.remedy-item.active .remedy-image {
  height: 300px;
}

.remedy-item.active .view-button i {
  transform: rotate(180deg);
}

/* Tips Section */
.remedy-tips {
  padding: 4rem 0;
  background-color: var(--white);
}

.remedy-tips h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tip-card {
  background-color: var(--light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.tip-card:hover {
  transform: translateY(-5px);
}

.tip-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.tip-card h3 {
  padding: 1rem 1rem 0;
  color: var(--primary);
}

.tip-card p {
  padding: 0 1rem 1rem;
  color: var(--text-light);
}

/* Footer */
.main-footer {
  background: linear-gradient(to right, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 5rem 5% 2rem;
  position: relative;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('images/wave-top-dark.png') repeat-x;
  background-size: contain;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section {
  padding: 0 1rem;
}

.footer-section.about .logo {
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-section.about .logo img {
  filter: brightness(0) invert(1);
}

.footer-section.about p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
  line-height: 1.7;
}

.social-icons {
  display: flex;
  gap: 1.2rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

.footer-section h3 {
  color: var(--secondary-light);
  margin-bottom: 1.8rem;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-light);
}

.footer-section.links ul li {
  margin-bottom: 1rem;
}

.footer-section.links ul li a {
  display: block;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.footer-section.links ul li a:hover {
  opacity: 1;
  color: var(--secondary-light);
  padding-left: 0.5rem;
}

.footer-section.contact ul li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  opacity: 0.8;
}

.footer-section.contact ul li i {
  color: var(--secondary-light);
  font-size: 1.1rem;
}

.newsletter-form {
  display: flex;
  margin-top: 1.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 5px 0 0 5px;
  font-size: 0.9rem;
  outline: none;
}

.newsletter-form button {
  padding: 0 1.5rem;
  background-color: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--secondary-dark);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--white);
  opacity: 0.7;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary-light);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Responsive Design */





/* ============================================================
   TRUE DESKTOP SITE MODE (NO SCALING)
   ============================================================ */



/* /* Navigation now using master root styles.css */
