:root {
  --forest-green-dark: #1e3a2e;
  --forest-green: #2d5a3d;
  --forest-green-light: #4a7c59;
  --cream: #f5f2e8;
  --cream-dark: #e8e0d0;
  --warm-white: #fefdfb;
  --text-dark: #2c3e35;
  --text-medium: #5a6b5d;
  --accent-gold: #d4af37;
  --shadow: rgba(30, 58, 46, 0.1);
  --shadow-medium: rgba(30, 58, 46, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--warm-white);
  overflow-x: hidden;
}

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

header {
  background: transparent;
  color: var(--warm-white);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

header.scrolled {
  background: rgba(30, 58, 46, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px var(--shadow);
}

/* Semi-transparent header for pages without hero sections */
.no-hero-page header {
  background: rgba(30, 58, 46, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px var(--shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.nav-left {
  display: flex;
  justify-content: flex-end;
  flex: 1;
  padding-right: 4rem;
}

.nav-left ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo-img {
  height: 80px;
  width: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-right {
  display: flex;
  justify-content: flex-start;
  flex: 1;
  padding-left: 4rem;
}

.nav-right ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-left a, .nav-right a {
  color: var(--warm-white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.nav-left a:hover, .nav-right a:hover,
.nav-left a.active, .nav-right a.active {
  background-color: rgba(245, 242, 232, 0.15);
  color: var(--warm-white);
  border-color: rgba(245, 242, 232, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

header.scrolled .nav-left a, 
header.scrolled .nav-right a {
  text-shadow: none;
  border-color: rgba(245, 242, 232, 0.1);
}

header.scrolled .nav-left a:hover,
header.scrolled .nav-right a:hover,
header.scrolled .nav-left a.active,
header.scrolled .nav-right a.active {
  background-color: var(--cream-dark);
  color: var(--forest-green-dark);
  border-color: var(--cream);
}

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

.mobile-nav {
  display: none;
}

.hero {
  background: var(--forest-green-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--warm-white);
  min-height: 100vh;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Hero background overlay with vignette effect */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at center, transparent 20%, rgba(30, 58, 46, 0.12) 40%, rgba(30, 58, 46, 0.45) 70%, rgba(30, 58, 46, 0.75) 100%);
  z-index: 1;
}

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

/* Hero image positioning */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Farm photo backgrounds for other hero sections without images - add your images here */
.hero.gallery-hero {
  background-image: url('images/hero.webp'); /* Uses main hero image */
}

.hero.trees-hero {
  background-image: url('images/hero.webp'); /* Uses main hero image */
}

.hero.about-hero {
  background-image: url('images/hero.webp'); /* Uses main hero image */
}

.hero.video-hero {
  background-image: url('images/hero.webp'); /* Uses main hero image */
}

/* Additional background image classes for farm photos */
.farm-background {
  background: var(--forest-green-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.farm-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at center, transparent 20%, rgba(30, 58, 46, 0.1) 40%, rgba(30, 58, 46, 0.4) 70%, rgba(30, 58, 46, 0.7) 100%);
  z-index: 1;
}

.farm-background .container {
  position: relative;
  z-index: 2;
}

/* Specific farm photo backgrounds */
.farm-trees-background {
  background-image: url('images/farm-trees.jpg'); /* Rows of Christmas trees */
}

.farm-family-background {
  background-image: url('images/farm-family.jpg'); /* Family working together */
}

.farm-cutting-background {
  background-image: url('images/farm-cutting.jpg'); /* Customers cutting trees */
}

.farm-vintage-background {
  background-image: url('images/farm-vintage.jpg'); /* Historical farm photos */
}

.farm-wreaths-background {
  background-image: url('images/farm-wreaths.jpg'); /* Wreath making or displays */
}

.hero-content {
  position: relative;
  z-index: 3;
  animation: fadeInUp 1s ease-out;
  width: 100%;
  margin-top: 70px;
  padding: 1rem 3rem 0.3rem;
  backdrop-filter: blur(2px);
  background: rgba(30, 58, 46, 0.15);
  border-radius: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

.hero .subtitle {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: var(--cream);
  font-style: italic;
}

.hero .description {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--text-dark);
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
  background: #e6c547;
}

section {
  padding: 5rem 0;
  animation: fadeIn 0.8s ease-out;
}

section:nth-child(even) {
  background-color: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.8rem;
  color: var(--forest-green-dark);
  margin-bottom: 1rem;
  position: relative;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-medium);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Add backdrop filter to sections with background images */
.farm-background .section-header,
.farm-background .container > * {
  backdrop-filter: blur(1px);
}

.farm-background .section-header h2,
.farm-background .section-header p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.features-grid, .trees-grid, .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-card, .tree-card, .gallery-item {
  background: rgba(254, 253, 251, 0.95);
  backdrop-filter: blur(3px);
  border-radius: 15px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 5px 25px var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card::before, .tree-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--forest-green), var(--accent-gold));
}

.feature-card:hover, .tree-card:hover, .gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 35px var(--shadow-medium);
}

.feature-icon, .tree-icon {
  font-size: 3rem;
  color: var(--forest-green);
  margin-bottom: 1.5rem;
  display: block;
}

.feature-card h3, .tree-card h3 {
  font-size: 1.6rem;
  color: var(--forest-green-dark);
  margin-bottom: 1rem;
}

.feature-card p, .tree-card p {
  font-size: 1.1rem;
  color: var(--text-medium);
  line-height: 1.6;
}

.tree-card .price {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-top: 1rem;
}

.about-content, .history-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.about-text h3, .history-text h3 {
  font-size: 2rem;
  color: var(--forest-green-dark);
  margin-bottom: 1.5rem;
}

.about-text p, .history-text p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  color: var(--text-medium);
  line-height: 1.7;
}

.family-highlight {
  background: var(--cream);
  padding: 2rem;
  border-radius: 10px;
  border-left: 4px solid var(--accent-gold);
  margin: 2rem 0;
}

.contact-info {
  background: var(--forest-green-dark);
  color: var(--cream);
  padding: 4rem 0;
  text-align: center;
}

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

.contact-item h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--accent-gold);
}

.contact-item p, .contact-item a {
  font-size: 1.1rem;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--accent-gold);
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  margin: 2rem 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

footer {
  background: var(--forest-green-dark);
  color: var(--cream);
  text-align: center;
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p, .footer-section a {
  color: var(--cream-dark);
  text-decoration: none;
  line-height: 1.6;
}

.footer-section a:hover {
  color: var(--accent-gold);
}

.social-icons {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.social-icon {
  width: 24px;
  height: 24px;
  opacity: 0.8;
  transition: all 0.3s ease;
  filter: brightness(0) invert(1);
}

.social-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
  filter: brightness(0) invert(1) sepia(1) saturate(1) hue-rotate(33deg);
}

.copyright {
  border-top: 1px solid var(--forest-green);
  padding-top: 2rem;
  color: var(--cream-dark);
}

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

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

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--warm-white);
    padding: 0.5rem;
    border-radius: 5px;
    backdrop-filter: blur(10px);
  }
  
  .nav-left, .nav-right {
    display: none;
  }
  
  .mobile-nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 58, 46, 0.95);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 2px 10px var(--shadow);
    backdrop-filter: blur(10px);
  }
  
  .mobile-nav.active {
    display: flex !important;
  }
  
  .mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .mobile-nav a {
    color: var(--warm-white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
  }
  
  .mobile-nav a:hover, .mobile-nav a.active {
    background-color: var(--forest-green-light);
  }
  
  .logo {
    position: static;
    transform: none;
  }
  
  .logo-img {
    height: 50px;
    width: 50px;
  }
  
  .header-content {
    justify-content: center;
    padding: 0.5rem 0;
  }
  
  header {
    padding: 0.5rem 0;
  }
  
  .hero {
    min-height: 100vh;
  }
  
  .hero-content {
    margin-top: 60px;
    padding: 1rem 1.5rem 1.5rem;
    max-width: 95%;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .description {
    font-size: 1.1rem;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  .features-grid, .trees-grid {
    grid-template-columns: 1fr;
  }
  
  .about-content, .history-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .header-content {
    flex-wrap: wrap;
  }
  
  .logo h1 {
    font-size: 1.8rem;
  }
  
  
  body {
    font-size: 16px;
  }
  
  /* Mobile Footer Optimizations */
  footer .footer-content {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
    text-align: center;
    padding: 0 1rem;
  }
  
  footer .footer-section {
    padding: 0 0.5rem;
  }
  
  footer .footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  footer .footer-section p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
  }
  
  footer .social-icons {
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  footer .social-icon {
    width: 28px !important;
    height: 28px !important;
  }
  
  footer .copyright {
    padding-top: 1.5rem;
    text-align: center;
  }
  
  footer .copyright p {
    font-size: 0.85rem;
  }
}