/* ==========================================================================
   Royal Panshop - Master Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  /* Colors */
  --color-primary: #1F4B36; /* Deep Emerald Green */
  --color-primary-light: #2A6348;
  --color-secondary: #D4AF37; /* Metallic Gold */
  --color-secondary-dark: #B5952F;
  --color-accent: #C21807; /* Red accent for urgency/highlights */
  --color-bg: #F9F8F4; /* Off-white / Cream */
  --color-surface: #FFFFFF;
  --color-text-main: #333333;
  --color-text-light: #666666;
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Utilities */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #fff;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-container img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

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

.nav-links a {
  font-weight: 500;
  color: var(--color-text-main);
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-secondary);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

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

/* Mobile Menu */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--color-surface);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: 0.4s ease-in-out;
    box-shadow: var(--shadow-md);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links a {
    font-size: 1.5rem;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee-container {
  background-color: var(--color-primary);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
}

.marquee-content {
  display: flex;
  animation: marquee 20s linear infinite;
  gap: 50px;
}

.marquee-item {
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.9rem;
  gap: 15px;
}

.marquee-highlight {
  color: var(--color-secondary);
  font-weight: 700;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(31,75,54,0.9) 0%, rgba(31,75,54,0.6) 50%, rgba(31,75,54,0.1) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  color: #fff;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  animation: fadeInUp 1.2s ease;
}

.hero-btns {
  display: flex;
  gap: 15px;
  animation: fadeInUp 1.4s ease;
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
  background-color: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  color: #fff;
}

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

@media (max-width: 768px) {
  .hero {
    height: 500px;
    text-align: center;
  }
  .hero-overlay {
    background: rgba(31,75,54,0.75);
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-btns {
    justify-content: center;
  }
}

/* ==========================================================================
   Sections General
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--color-secondary);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

/* ==========================================================================
   Health Benefits Grid
   ========================================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-card {
  background: var(--color-surface);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--color-secondary);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  background-color: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--color-primary);
  font-size: 2rem;
  transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
  background-color: var(--color-primary);
  color: #fff;
}

.benefit-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.benefit-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ==========================================================================
   Products Section / Shop Page
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.product-img-wrap {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--color-accent);
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.product-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.product-desc {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* ==========================================================================
   About Us Section (Homepage)
   ========================================================================== */
.about-section {
  background-color: var(--color-surface);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
}

.about-text p {
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-img::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 10px solid var(--color-secondary);
  border-radius: var(--radius-lg);
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
}

@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  background-color: var(--color-bg);
  background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%231f4b36" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

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

.faq-item {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-primary);
  transition: var(--transition);
}

.faq-question:hover {
  background-color: rgba(31,75,54,0.03);
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--color-secondary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background-color: var(--color-surface);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 25px 25px;
}

.faq-answer p {
  color: var(--color-text-light);
  border-top: 1px solid #eee;
  padding-top: 20px;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: var(--color-surface);
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-info-block {
  margin-bottom: 30px;
}

.contact-info-block h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-secondary-dark);
}

.contact-info-block p {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(31,75,54,0.1);
}

textarea.form-control {
  height: 150px;
  resize: vertical;
}

@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 30px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--color-primary);
  color: #fff;
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-about h3 {
  color: var(--color-secondary);
  font-size: 2rem;
  margin-bottom: 20px;
}

.footer-about p {
  color: rgba(255,255,255,0.8);
  max-width: 400px;
}

.footer-links h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-family: var(--font-body);
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.8);
}

.footer-links ul li a:hover {
  color: var(--color-secondary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Page Headers */
.page-header {
  background-color: var(--color-primary);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  background-image: linear-gradient(rgba(31,75,54,0.9), rgba(31,75,54,0.9)), url('images/hero.png');
  background-size: cover;
  background-position: center;
}

.page-title {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  color: var(--color-secondary);
}
