/* Custom CSS for Timber Top Tree & Landscaping */

:root {
  --primary-green: #2d5016;
  --secondary-green: #4a7c59;
  --accent-green: #6b8e23;
  --light-green: #8fbc8f;
  --earth-brown: #8b4513;
  --earth-tan: #d2b48c;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --gray-light: #f8f9fa;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* Typography */
body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

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

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-green);
  margin: 15px auto 0;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #fafafa;
  margin-bottom: 2rem;
}

/* Navigation */
.navbar {
  background: rgba(45, 80, 22, 0.95) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  background: var(--primary-green) !important;
  padding: 0.5rem 0;
}

.navbar-brand img {
  transition: all 0.3s ease;
  height: 80;
}

.navbar-nav .nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--light-green) !important;
}

/* Flash Messages */
.flash-messages {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  width: 90%;
  max-width: 500px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(45, 80, 22, 0.7), rgba(74, 124, 89, 0.7)),
    url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-light);
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 80, 22, 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: 132px;
}

.hero-title {
  font-size: 5.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--light-green);
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons .btn {
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.feature-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 25px;
  margin: 0 10px 10px 0;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.feature-badge i {
  margin-right: 5px;
}

/* About Section */
.about-section {
  padding: 100px 0;
}

.about-content {
  padding-right: 2rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat h4 {
  color: var(--accent-green);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat p {
  color: #666;
  font-size: 0.9rem;
}

.about-image img {
  border-radius: 15px;
}

/* Services Section */
.services-section {
  padding: 100px 0;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border-top: 4px solid var(--accent-green);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
  font-size: 3rem;
  color: var(--accent-green);
  margin-bottom: 1.5rem;
}

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

.service-features {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.service-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 20px;
}

.service-features li:before {
  content: "✓";
  color: var(--accent-green);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.service-features li:last-child {
  border-bottom: none;
}

/* Gallery Section */
.gallery-section {
  padding: 100px 0;
}

.gallery-filters .btn {
  border-radius: 25px;
  margin: 0 5px 15px 0;
}

.gallery-filters .btn.active {
  background-color: var(--accent-green);
  border-color: var(--accent-green);
  color: white;
}

.gallery-item {
  transition: all 0.3s ease;
}

.gallery-item.hidden {
  display: none;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform 0.3s ease;
}

.gallery-card:hover {
  transform: scale(1.05);
}

.gallery-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(45, 80, 22, 0.9));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h5 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.gallery-overlay p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/***********************************/
/********* Contact Section *********/
/***********************************/

.contact-section {
  padding: 100px 0;
  background: var(--primary-green) !important;
}

.contact-info {
  padding-right: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-icon {
  background: var(--accent-green);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-form-container {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  flex: 1;
  margin-bottom: 1rem;
}

.form-group.full-width {
  flex: none;
  width: 100%;
}

.contact-form .form-label {
  color: var(--light-green);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.contact-form .form-control,
.contact-form .form-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 8px;
  padding: 12px 15px;
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--light-green);
  box-shadow: 0 0 0 0.2rem rgba(143, 188, 143, 0.25);
  color: white;
  outline: none;
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form .form-select option {
  background: var(--primary-green);
  color: white;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--accent-green);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  background: var(--light-green);
}

.success-message {
  background: var(--accent-green);
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.error-message {
  background: #f44336;
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Footer */
.footer {
  background: var(--accent-green) !important;
}

/* Buttons */
.btn-success {
  background-color: var(--accent-green);
  border-color: var(--accent-green);
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background-color: var(--secondary-green);
  border-color: var(--secondary-green);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(107, 142, 35, 0.4);
}

.btn-outline-success {
  color: var(--accent-green);
  border-color: var(--accent-green);
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: 500;
}

.btn-outline-success:hover {
  background-color: var(--accent-green);
  border-color: var(--accent-green);
}

.btn-outline-light {
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-stats {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .about-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .contact-info {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  .feature-badge {
    display: block;
    margin: 10px 0;
  }

  .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(45, 80, 22, 0.9));
    color: white;
    padding: 1rem; /* Reduced padding for mobile */
    transform: translateY(
      0
    ); /* Always visible - override the translateY(100%) */
    transition: none; /* Remove transition on mobile */
  }

  /* Optional: Make the overlay slightly smaller on mobile */
  .gallery-overlay h5 {
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 1rem; /* Slightly smaller on mobile */
  }

  .gallery-overlay p {
    margin: 0;
    font-size: 0.8rem; /* Smaller description text */
    opacity: 0.9;
  }

  /* Remove hover effects on mobile since they don't work well */
  .gallery-card:hover {
    transform: none; /* Disable the scale effect on mobile */
  }

  .hero-content {
    margin: 120 0 0 0;
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 0;
  }

  .navbar-brand img {
    height: 2.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .contact-form-container {
    padding: 1.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-green);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-green);
}
