/* Taylor's Tree Service - Main Stylesheet */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* Color Variables */
:root {
  --primary-orange: #FF6600;
  --primary-dark: #000000;
  --secondary-dark: #2d2d2d;
  --accent-green: #22c55e;
  --light-gray: #f8f9fa;
  --gray: #6b7280;
}

/* Utility Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1.125rem;
}

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

.btn-primary:hover {
  background: #ff7722;
  transform: scale(1.05);
}

.btn-secondary {
  background: white;
  color: var(--primary-dark);
}

.btn-secondary:hover {
  background: #f8f9fa;
  transform: scale(1.05);
}

/* Navigation */
.navbar {
  background: var(--primary-dark);
  color: white;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 100px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-orange);
}

@media (min-width: 769px) {
  .nav-cta {
    display: none;
  }
}

.nav-cta:hover {
  background: #ff7722;
  transform: scale(1.05);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.75rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  background: var(--secondary-dark);
  border-top: 1px solid #444;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  padding: 1rem;
}

.mobile-nav li {
  margin-bottom: 0.5rem;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary-orange);
  background: var(--primary-dark);
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  margin-top: 180px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 48rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Trust Badges */
.trust-badges {
  background: var(--primary-dark);
  color: white;
  padding: 2rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trust-item svg {
  color: var(--primary-orange);
  margin-bottom: 1rem;
}

/* Services Grid */
.services-section {
  padding: 4rem 0;
  background: var(--light-gray);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.25rem;
  color: var(--gray);
}

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

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-top: 4px solid var(--primary-orange);
  transition: box-shadow 0.3s;
}

.service-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.service-card svg {
  color: var(--primary-orange);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.service-card p {
  color: var(--gray);
  margin-bottom: 1rem;
}

.service-card a {
  color: var(--primary-orange);
  font-weight: 600;
  text-decoration: none;
}

.service-card a:hover {
  color: #ff7722;
}

/* CTA Sections */
.cta-section {
  background: var(--primary-orange);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: white;
  padding: 3rem 0 1rem;
}

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

.footer h3 {
  color: var(--primary-orange);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer ul {
  list-style: none;
}

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

.footer a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--primary-orange);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-orange);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
}

.chat-button {
  background: var(--primary-orange);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.chat-button:hover {
  background: #ff7722;
  transform: scale(1.1);
}

.chat-window {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  flex-direction: column;
}

.chat-window.active {
  display: flex;
}

.chat-header {
  background: var(--primary-orange);
  color: white;
  padding: 1rem;
  border-radius: 0.5rem 0.5rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.5rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #f8f9fa;
}

.chat-input-area {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 0.5rem;
}

.chat-input-area input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
}

.chat-input-area button {
  background: var(--primary-orange);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .chat-window {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .chat-widget,
  .cta-section {
    display: none;
  }
}