/*
Theme Name: Tree Service
Description: Modern asymmetrical WordPress theme for Issa Tree Service with bento grid layouts and dynamic visual hierarchies
Version: 1.0
Author: Custom Theme
*/

/* CSS Variables */
:root {
  --primary-color: #2d5016;
  --secondary-color: #6b8e23;
  --accent-color: #8fbc8f;
  --dark-color: #1a1a1a;
  --light-color: #ffffff;
  --text-color: #333333;
  --text-light: #666666;
  --border-color: #e5e5e5;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-color);
  background: var(--light-color);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  border-bottom: 1px solid rgba(45,80,22,0.1);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  transform: rotate(-2deg);
  position: relative;
}

.site-logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: skew(-12deg);
}

/* Navigation */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-navigation a {
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
}

.main-navigation a:hover {
  color: var(--primary-color);
  background: rgba(45,80,22,0.1);
  transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  height: 100vh;
  background: linear-gradient(135deg, rgba(45,80,22,0.8), rgba(107,142,35,0.7)),
              url('assets/hero-section.jpg') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  color: var(--light-color);
  max-width: 800px;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  transform: translateX(-20px);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: 2rem;
  opacity: 0.9;
  transform: translateX(20px);
}

.hero-cta {
  display: inline-block;
  background: var(--accent-color);
  color: var(--dark-color);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  transform: translateY(20px);
  box-shadow: var(--shadow);
}

.hero-cta:hover {
  background: var(--secondary-color);
  color: var(--light-color);
  transform: translateY(18px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

/* Geometric Shapes */
.hero-shape {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.hero-shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

.hero-shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation: float 4s ease-in-out infinite reverse;
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background: var(--light-color);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.bento-item {
  background: var(--light-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.bento-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.bento-item:hover::before {
  transform: scaleX(1);
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.faq-timeline {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.faq-timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
}

.faq-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 4rem;
}

.faq-item::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border-radius: 50%;
  border: 3px solid var(--light-color);
}

.faq-question {
  background: var(--light-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
}

.faq-question:hover {
  transform: translateX(5px);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(255,255,255,0.9);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.faq-answer.active {
  max-height: 200px;
  padding: 1rem 1.5rem;
}

/* Latest Posts Section */
.latest-posts-section {
  padding: 5rem 0;
  background: var(--light-color);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-color);
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.post-card {
  background: var(--light-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.post-card:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: var(--shadow-hover);
}

.post-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.post-card:hover .post-thumbnail {
  transform: scale(1.1);
}

.post-content {
  padding: 1.5rem;
}

.post-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.post-excerpt {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

.post-date {
  background: var(--accent-color);
  color: var(--dark-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 500;
}

/* Single Post Styles */
.single-hero {
  height: 60vh;
  background: linear-gradient(135deg, rgba(45,80,22,0.8), rgba(107,142,35,0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 80px;
}

.single-hero-content {
  text-align: center;
  color: var(--light-color);
  max-width: 800px;
  padding: 2rem;
  transform: translateY(-20px);
}

.post-category {
  display: inline-block;
  background: var(--accent-color);
  color: var(--dark-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transform: rotate(-2deg);
}

.single-content {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 2rem;
  line-height: 1.8;
  font-size: 1.1rem;
}

.sidebar {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-top: 2rem;
}

.sidebar-posts {
  display: grid;
  gap: 1rem;
}

.sidebar-post {
  background: var(--light-color);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.sidebar-post:hover {
  transform: translateX(5px);
}

/* Footer */
.site-footer {
  background: var(--dark-color);
  color: var(--light-color);
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  color: rgba(255,255,255,0.7);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-navigation {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--light-color);
    transition: left 0.3s ease;
    padding: 2rem;
    box-shadow: var(--shadow);
  }

  .main-navigation.active {
    left: 0;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .masonry-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .faq-timeline::before {
    left: 1rem;
  }

  .faq-item {
    padding-left: 2.5rem;
  }

  .faq-item::before {
    left: 0.5rem;
  }

  .header-container,
  .hero-content,
  .single-content {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 80vh;
  }

  .section-title {
    font-size: 2rem;
  }

  .post-card {
    margin-bottom: 1rem;
  }
}