/*
Theme Name: FenceFresh
Description: Professional fencing services theme for FenceFresh - Custom WordPress theme inspired by modern React design
Author: FenceFresh Team
Version: 1.0.0
License: GPL v2 or later
Text Domain: fencefresh
Tags: business, responsive, one-page, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===== FenceFresh Design System ===== */
:root {
  /* Brand Colors - Nature-inspired professional palette */
  --background: 0 0% 100%;
  --foreground: 214 15% 20%;
  
  --card: 0 0% 100%;
  --card-foreground: 214 15% 20%;
  
  /* Primary - Forest Green (trust, nature, growth) */
  --primary: 140 60% 25%;
  --primary-foreground: 0 0% 98%;
  --primary-light: 140 45% 35%;
  --primary-dark: 140 70% 15%;
  
  /* Secondary - Warm Wood Brown */
  --secondary: 30 25% 85%;
  --secondary-foreground: 140 60% 25%;
  
  /* Accent - Safety Orange for CTAs */
  --accent: 25 95% 55%;
  --accent-foreground: 0 0% 98%;
  --accent-light: 25 90% 65%;
  
  /* Supporting Colors */
  --muted: 140 10% 95%;
  --muted-foreground: 214 15% 45%;
  
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;
  
  --border: 140 15% 90%;
  --input: 140 15% 95%;
  --ring: 140 60% 25%;
  
  /* Design System Tokens */
  --radius: 0.75rem;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-light)));
  --gradient-hero: linear-gradient(135deg, hsl(var(--primary) / 0.9), hsl(var(--primary-dark) / 0.8));
  --gradient-accent: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--accent-light)));
  
  /* Shadows */
  --shadow-sm: 0 2px 4px hsl(var(--primary) / 0.1);
  --shadow-md: 0 4px 12px hsl(var(--primary) / 0.15);
  --shadow-lg: 0 8px 24px hsl(var(--primary) / 0.2);
  --shadow-glow: 0 0 40px hsl(var(--accent) / 0.3);
  
  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dark mode variables */
.dark {
  --background: 140 15% 8%;
  --foreground: 140 5% 95%;
  --card: 140 15% 10%;
  --card-foreground: 140 5% 95%;
  --primary: 140 45% 65%;
  --primary-foreground: 140 15% 8%;
  --primary-light: 140 40% 75%;
  --primary-dark: 140 50% 55%;
  --secondary: 30 15% 15%;
  --secondary-foreground: 140 45% 65%;
  --accent: 25 90% 60%;
  --accent-foreground: 140 15% 8%;
  --accent-light: 25 85% 70%;
  --muted: 140 15% 12%;
  --muted-foreground: 140 5% 65%;
  --destructive: 0 75% 55%;
  --destructive-foreground: 140 5% 95%;
  --border: 140 15% 18%;
  --input: 140 15% 15%;
  --ring: 140 45% 65%;
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

body {
  font-family: var(--font-body);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  font-feature-settings: 'rlig' 1, 'calt' 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

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

/* ===== Utility Classes ===== */
.text-gradient {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-hero {
  background: var(--gradient-hero);
}

.bg-gradient-accent {
  background: var(--gradient-accent);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.transition-smooth {
  transition: var(--transition-smooth);
}

.transition-bounce {
  transition: var(--transition-bounce);
}

.rounded-lg {
  border-radius: var(--radius);
}

/* ===== Layout Styles ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid hsl(var(--border));
  background: hsla(var(--background), 0.95);
  backdrop-filter: blur(8px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: hsl(var(--foreground));
}

.logo-icon {
  height: 2rem;
  width: 2rem;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary-foreground));
  font-weight: bold;
  font-size: 1.125rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: bold;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: hsl(var(--primary));
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--primary));
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.phone-link:hover {
  opacity: 0.8;
}

/* ===== Button Styles ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background: hsl(var(--primary-dark));
}

.btn-accent {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-accent:hover {
  background: hsl(var(--accent-light));
}

.btn-outline {
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background: hsl(var(--muted));
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 6rem 0;
  max-width: 48rem;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.stars {
  display: flex;
  color: hsl(var(--accent));
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: bold;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-accent {
  color: hsl(var(--accent));
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  color: white;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.check-icon {
  color: hsl(var(--accent));
}

/* ===== Services Section ===== */
.services {
  padding: 6rem 0;
  background: hsl(var(--muted) / 0.3);
}

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

.section-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: bold;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 32rem;
  margin: 0 auto;
}

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

.service-card {
  background: hsl(var(--card));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: none;
  transition: var(--transition-smooth);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
}

.service-icon {
  height: 3rem;
  width: 3rem;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: var(--transition-bounce);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-description {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.service-bullet {
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 50%;
  background: hsl(var(--primary));
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-price {
  font-weight: 600;
  color: hsl(var(--primary));
}

/* ===== Footer ===== */
.site-footer {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 4rem 0 2rem;
}

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

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

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

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: hsl(var(--accent));
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

/* ===== Responsive Styles ===== */
@media (max-width: 767px) {
  .main-nav {
    display: none;
  }
  
  .phone-link {
    display: none;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .hero-content {
    padding: 4rem 0;
  }
  
  .services {
    padding: 4rem 0;
  }
}

/* ===== WordPress Specific Styles ===== */
.alignleft {
  float: left;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin: 0 auto 1rem;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-style: italic;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
  margin-top: 0.5rem;
}

.gallery {
  margin-bottom: 1.5rem;
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0 !important;
  border: 0 !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden;
}