  /* Rooted in Rising - Main Stylesheet
   A harmonious fusion of refined elegance and nurturing warmth */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700&family=Cormorant+Garamond:ital,wght@1,400;1,500&display=swap');

/* CSS Variables for Brand Colors */
:root {
  /* Primary Colors */
  --champagne: #f7f1e3;
  --warm-ivory: #f8f4e3;
  
  /* Secondary Colors */
  --gentle-blush: #e6e6fa; /* Changed from pink to lavender */
  --muted-sage: #d1d9ce;
  
  /* Accent Color */
  --brushed-gold: #d4af37;
  
  /* Background */
  --cream: #fcf9f2;
  
  /* Text Colors */
  --text-dark: #333333;
  --text-medium: #666666;
  --text-light: #999999;
  
  /* Font Families */
  --serif: 'Playfair Display', serif;
  --sans-serif: 'Lato', sans-serif;
  --script: 'Cormorant Garamond', serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans-serif);
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Global Link Styles */
a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--brushed-gold);
}

a:visited {
  color: var(--text-dark); /* Ensures visited links stay the same color */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.accent-text {
  font-family: var(--script);
  font-style: italic;
  color: var(--text-medium);
}

.hero .accent-text {
  color: var(--text-dark);
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 5rem 0;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: all 0.3s ease;
}

header.header-scrolled {
  background-color: rgba(252, 249, 242, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  transition: padding 0.3s ease;
}

header.header-scrolled .header-container {
  padding: 0.5rem 0;
}

.logo {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.logo img {
  height: 80px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

header.header-scrolled .logo {
  transform: scale(0.9);
  transform-origin: left center;
}

.logo-text {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-left: 0.5rem;
  color: var(--text-dark);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
}

nav ul li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -3px;
  left: 0;
  background-color: var(--brushed-gold);
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: var(--brushed-gold);
}

nav ul li a:hover:after {
  width: 100%;
}

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

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--warm-ivory);
  position: relative;
  overflow: hidden;
}

/* Video Backgrounds */
.video-background {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1; /* Increased from 0.8 to make video stronger */
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(247, 241, 227, 0.8) 30%, rgba(247, 241, 227, 0.6) 60%, rgba(247, 241, 227, 0.4) 100%);
  z-index: 0;
}

/* Image and Video Containers */
.video-container, .image-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 300px;
  margin: 2rem 0;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.fixed-background-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 500px;
  margin: 2rem 0;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.fixed-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.fixed-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(247, 241, 227, 0.8) 30%, rgba(247, 241, 227, 0.6) 60%, rgba(247, 241, 227, 0.4) 100%);
  z-index: 1;
}

/* Add content on top of the fixed background */
.philosophy-content {
  position: relative;
  z-index: 2;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.philosophy-card {
  background-color: white;
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.philosophy-card:nth-child(1) {
  grid-column: span 4;
  transform: translateY(15px);
}

.philosophy-card:nth-child(2) {
  grid-column: span 4;
  transform: translateY(-20px);
}

.philosophy-card:nth-child(3) {
  grid-column: span 4;
  transform: translateY(10px);
}

.philosophy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.philosophy-image {
  object-position: center;
}

.cta-image {
  object-position: center;
}

.video-text-overlay, .image-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  padding: 2rem;
}

.video-text-overlay h3, .image-text-overlay h3 {
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-text-overlay p, .image-text-overlay p {
  max-width: 600px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Video Play Button */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.video-play-btn i {
  font-size: 1.5rem;
  color: var(--brushed-gold);
}

.video-play-btn:hover {
  background-color: white;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Video Loading States */
.video-container.video-loaded {
  opacity: 1;
}

.video-container.video-error,
.video-container.video-fallback {
  background-color: var(--gentle-blush);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container.video-error::before,
.video-container.video-fallback::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--gentle-blush);
  opacity: 0.7;
}

.hero-content {
  max-width: 600px;
  z-index: 10;
  position: relative;
  background-color: rgba(252, 249, 242, 0.8);
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Ensure all content sections have higher z-index than dividers */
.section-header, 
.testimonial, 
.testimonial-content,
.testimonial-slider,
.testimonial-controls,
.testimonial-author,
.services-intro,
.shop-intro,
.products-grid,
.about-content,
.about-text,
.services-grid,
.cta-content,
.video-text-overlay {
  position: relative;
  z-index: 5; /* Ensure content appears above dividers */
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50%;
  background-size: cover;
  background-position: center;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: transparent;
  border: 1px solid var(--brushed-gold);
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--brushed-gold);
  color: white;
}

.btn-primary {
  background-color: var(--brushed-gold);
  color: white;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--text-dark);
}

/* About Section */
.about {
  background-color: var(--champagne);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  left: -100px;
  bottom: -100px;
  width: 300px;
  height: 300px;
  background-color: var(--brushed-gold);
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  height: 500px;
  background-size: cover;
  background-position: center;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
  background-color: var(--cream);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background-color: var(--gentle-blush);
  border-radius: 50%;
  opacity: 0.5;
  z-index: 0;
}

.services-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.service-card {
  background-color: white;
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--brushed-gold);
  margin-bottom: 1rem;
}

.service-title {
  margin-bottom: 1rem;
}

/* Shop Section */
.shop {
  background-color: var(--gentle-blush);
  position: relative;
  overflow: hidden;
}

.shop::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to right, var(--muted-sage) 0%, transparent 70%);
  opacity: 0.3;
  z-index: 0;
}

.shop-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
  position: relative;
  z-index: 1;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.product-card {
  background-color: white;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 250px;
  background-size: cover;
  background-position: center;
}

.product-details {
  padding: 1.5rem;
}

.product-title {
  margin-bottom: 0.5rem;
}

.product-price {
  color: var(--brushed-gold);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Contact Section */
.contact {
  background-color: var(--muted-sage);
}

.contact-container {
  display: flex;
  gap: 4rem;
}

.contact-info {
  flex: 1;
}

.contact-form {
  flex: 2;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--text-light);
  border-radius: 3px;
  font-family: var(--sans-serif);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--brushed-gold);
}

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

/* Footer */
footer {
  background-color: var(--text-dark);
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-logo {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: white;
}

.footer-links h4 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

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

.footer-links ul li a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--brushed-gold);
}

/* Footer Contact Links */
.footer-contact a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--brushed-gold);
}

.footer-contact a:visited {
  color: var(--text-light);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links 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: white;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background-color: var(--brushed-gold);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: 0.9rem;
}

.disclaimer {
  text-align: center;
  padding-top: 1rem;
  margin-top: 1rem;
  color: var(--text-light);
  font-size: 0.8rem;
}

/* Decorative Nature Elements */
/* Leaf 1 - Simple curved leaf */
.leaf-decoration-1 {
  position: absolute;
  width: 40px;
  height: 60px;
  background-color: var(--muted-sage);
  border-radius: 50% 50% 50% 0;
  transform: rotate(45deg);
  opacity: 0.4;
  z-index: 1;
}

/* Leaf 2 - Maple leaf style */
.leaf-decoration-2 {
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: var(--gentle-blush);
  clip-path: polygon(
    50% 0%, 
    80% 30%, 
    100% 50%, 
    80% 70%, 
    50% 100%, 
    20% 70%, 
    0% 50%, 
    20% 30%
  );
  opacity: 0.4;
  z-index: 1;
}

/* Branch - Curved branch */
.branch-decoration {
  position: absolute;
  width: 120px;
  height: 5px;
  background-color: var(--brushed-gold);
  border-radius: 5px;
  opacity: 0.3;
  z-index: 1;
  transform-origin: left center;
}

/* Add leaf to hero section */
.hero::after {
  content: '';
  position: absolute;
  bottom: 50px;
  right: 50px;
  width: 80px;
  height: 80px;
  background-color: var(--muted-sage);
  clip-path: polygon(
    50% 0%, 
    80% 30%, 
    100% 50%, 
    80% 70%, 
    50% 100%, 
    20% 70%, 
    0% 50%, 
    20% 30%
  );
  opacity: 0.3;
  z-index: 1;
  animation: float 8s ease-in-out infinite;
}

/* Add branch to about section */
.about::after {
  content: '';
  position: absolute;
  top: 100px;
  right: 100px;
  width: 150px;
  height: 5px;
  background-color: var(--brushed-gold);
  border-radius: 5px;
  opacity: 0.3;
  z-index: 1;
  transform: rotate(-30deg);
}

/* Add second branch to about section */
.about::before {
  content: '';
  position: absolute;
  top: 120px;
  right: 120px;
  width: 80px;
  height: 3px;
  background-color: var(--brushed-gold);
  border-radius: 5px;
  opacity: 0.3;
  z-index: 1;
  transform: rotate(20deg);
}

/* Add leaf to services section */
.services::after {
  content: '';
  position: absolute;
  bottom: 150px;
  left: 80px;
  width: 60px;
  height: 90px;
  background-color: var(--gentle-blush);
  border-radius: 50% 50% 50% 0;
  transform: rotate(120deg);
  opacity: 0.4;
  z-index: 1;
  animation: sway 6s ease-in-out infinite;
}

/* Add second leaf to services section */
.services-intro::before {
  content: '';
  position: absolute;
  top: -30px;
  right: 100px;
  width: 40px;
  height: 60px;
  background-color: var(--muted-sage);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-30deg);
  opacity: 0.3;
  z-index: 1;
}

/* Add branch to shop section */
.shop::before {
  content: '';
  position: absolute;
  top: 80px;
  left: 50px;
  width: 120px;
  height: 4px;
  background-color: var(--brushed-gold);
  border-radius: 5px;
  opacity: 0.3;
  z-index: 1;
  transform: rotate(25deg);
}

/* Add leaf cluster to shop section */
.shop-intro::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: 60px;
  width: 50px;
  height: 50px;
  background-color: var(--muted-sage);
  clip-path: polygon(
    50% 0%, 
    80% 30%, 
    100% 50%, 
    80% 70%, 
    50% 100%, 
    20% 70%, 
    0% 50%, 
    20% 30%
  );
  opacity: 0.3;
  z-index: 1;
  transform: rotate(15deg);
}

/* Add leaf to footer */
footer::before {
  content: '';
  position: absolute;
  top: 80px;
  right: 10%;
  width: 70px;
  height: 70px;
  background-color: var(--brushed-gold);
  clip-path: polygon(
    50% 0%, 
    80% 30%, 
    100% 50%, 
    80% 70%, 
    50% 100%, 
    20% 70%, 
    0% 50%, 
    20% 30%
  );
  opacity: 0.1;
  z-index: 1;
}

/* Leaf animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

@keyframes sway {
  0%, 100% {
    transform: rotate(120deg);
  }
  50% {
    transform: rotate(130deg);
  }
}

/* Animations and Transitions */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .about-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .about-image {
    width: 100%;
  }
  
  .contact-container {
    flex-direction: column;
  }
  
  .video-container {
    height: 250px;
  }
  
  .services-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-image {
    width: 100%;
    opacity: 0.2;
  }
  
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  
  nav ul {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .mobile-menu-open nav ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--cream);
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  .mobile-menu-open nav ul li {
    margin: 0;
    padding: 0.8rem 2rem;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .services-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Testimonial Carousel Styles */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial.active {
    display: block;
    opacity: 1;
}

.testimonial-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

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

.testimonial-prev,
.testimonial-next {
    background: var(--champagne);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--brushed-gold);
    color: white;
}

.testimonial-prev i,
.testimonial-next i {
    font-size: 1.2rem;
}
