/* DIY Treehouse Plans - Main CSS */

:root {
  /* Primary Color Palette - 5 colors plus light/dark shades */
  --primary-green: #2d5a27;
  --primary-green-light: #4a8b3f;
  --primary-green-dark: #1a3319;
  
  --secondary-brown: #8b4513;
  --secondary-brown-light: #a0522d;
  --secondary-brown-dark: #5d2f0c;
  
  --accent-orange: #ff8c00;
  --accent-orange-light: #ffa500;
  --accent-orange-dark: #cc7000;
  
  --natural-beige: #f5e6d3;
  --natural-beige-light: #faf2e8;
  --natural-beige-dark: #e6d2b8;
  
  --sky-blue: #87ceeb;
  --sky-blue-light: #b8dff0;
  --sky-blue-dark: #5fa8c7;
  
  /* Additional colors */
  --white: #ffffff;
  --black: #000000;
  --gray-light: #f8f9fa;
  --gray-medium: #6c757d;
  --gray-dark: #343a40;
  
  /* Typography */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: Georgia, 'Times New Roman', serif;
  
  /* Conservative font sizes */
  --font-base: 16px;
  --font-small: 14px;
  --font-large: 18px;
  --font-xl: 20px;
  --font-2xl: 24px;
  --font-3xl: 28px;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

html {
  font-size: var(--font-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--gray-dark);
  background-color: var(--white);
  margin: 0;
  padding: 0;
}

/* Typography - Conservative sizes */
h1 {
  font-size: var(--font-3xl);
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

h2 {
  font-size: var(--font-2xl);
  font-weight: 600;
  color: var(--primary-green-dark);
  margin-bottom: 0.8rem;
}

h3 {
  font-size: var(--font-xl);
  font-weight: 600;
  color: var(--secondary-brown);
  margin-bottom: 0.6rem;
}

h4, h5, h6 {
  font-size: var(--font-large);
  font-weight: 500;
  color: var(--secondary-brown-dark);
  margin-bottom: 0.5rem;
}

p {
  font-size: var(--font-base);
  margin-bottom: 1rem;
  color: var(--gray-dark);
}

/* Header & Navigation */
.navbar {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: var(--font-large);
  font-weight: 700;
  color: var(--white) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-orange) !important;
  background-color: rgba(255,255,255,0.1);
  border-radius: 4px;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(rgba(45,90,39,0.7), rgba(26,51,25,0.7)), 
              var(--natural-beige);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--accent-orange);
  border-radius: 50%;
  top: 10%;
  right: 10%;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  color: var(--white);
  font-size: var(--font-3xl);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--natural-beige-light);
  font-size: var(--font-xl);
  margin-bottom: 1.5rem;
}

.hero-desc {
  color: var(--white);
  font-size: var(--font-base);
  margin-bottom: 2rem;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(45deg, var(--accent-orange), var(--accent-orange-dark));
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(45deg, var(--accent-orange-dark), var(--accent-orange));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,140,0,0.3);
}

.btn-secondary {
  background: linear-gradient(45deg, var(--secondary-brown), var(--secondary-brown-dark));
  border: none;
  color: var(--white);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: linear-gradient(45deg, var(--secondary-brown-dark), var(--secondary-brown));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139,69,19,0.3);
}

/* Section Styling */
.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--gray-light);
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-green);
}

.section-subtitle {
  text-align: center;
  color: var(--gray-medium);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.section-desc {
  text-align: center;
  color: var(--gray-dark);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--natural-beige);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.service-price {
  font-size: var(--font-2xl);
  font-weight: 700;
  color: var(--accent-orange);
  margin: 1rem 0;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  text-align: center;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--primary-green-light);
}

.team-name {
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--gray-medium);
  font-style: italic;
}

/* Testimonials Slider */
.testimonials-slider {
  background: linear-gradient(135deg, var(--natural-beige), var(--natural-beige-light));
  padding: 3rem 0;
  border-radius: 12px;
  margin: 2rem 0;
}

.testimonial-item {
  text-align: center;
  padding: 2rem;
}

.testimonial-text {
  font-size: var(--font-large);
  font-style: italic;
  color: var(--gray-dark);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-green);
}

/* FAQ Section */
.faq-item {
  background: var(--white);
  border: 1px solid var(--natural-beige);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1rem 1.5rem;
  background: var(--natural-beige-light);
  margin: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: var(--natural-beige);
}

.faq-answer {
  padding: 1rem 1.5rem;
  color: var(--gray-dark);
  border-top: 1px solid var(--natural-beige);
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-top: 2rem;
}

.form-control {
  border: 2px solid var(--natural-beige);
  border-radius: 8px;
  padding: 12px 15px;
  font-size: var(--font-base);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.2rem rgba(45,90,39,0.25);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-title {
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-excerpt {
  color: var(--gray-dark);
  line-height: 1.6;
}

/* Footer */
.footer {
  background-color: #87ceeb;
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

.footer a {
  color: var(--natural-beige-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
}

/* Breadcrumbs */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
}

.breadcrumb-item img {
  height: 20px;
  width: auto;
}

/* Price Plans */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.price-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid var(--natural-beige);
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-color: var(--primary-green);
}

.price-amount {
  font-size: var(--font-3xl);
  font-weight: 700;
  color: var(--accent-orange);
  margin: 1rem 0;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.price-features li {
  padding: 0.5rem 0;
  color: var(--gray-dark);
  border-bottom: 1px solid var(--natural-beige);
}

.price-features li:last-child {
  border-bottom: none;
}

/* Utilities */
.text-primary {
  color: var(--primary-green) !important;
}

.text-secondary {
  color: var(--secondary-brown) !important;
}

.text-accent {
  color: var(--accent-orange) !important;
}

.bg-primary {
  background-color: var(--primary-green) !important;
}

.bg-secondary {
  background-color: var(--secondary-brown) !important;
}

.bg-accent {
  background-color: var(--accent-orange) !important;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Basic responsiveness */
@media (max-width: 768px) {
  .hero-title {
    font-size: var(--font-2xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-large);
  }
  
  .services-grid,
  .features-grid,
  .team-grid,
  .price-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
}
