/* Custom styles for Rod's Lawn Care & Property */

:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

.font-crimson {
  font-family: 'Crimson Text', serif;
}

.font-inter {
  font-family: 'Inter', sans-serif;
}

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

/* Button hover effects */
button, .btn {
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: fit-content;
}

/* Form styling */
input:focus, textarea:focus, select:focus {
  outline: none;
  ring: 2px;
  ring-color: var(--emerald-500);
  border-color: var(--emerald-500);
}

/* Mobile menu transitions */
.mobile-menu {
  transition: all 0.3s ease;
}

/* Hover animations for cards */
.hover\:shadow-xl {
  transition: box-shadow 0.3s ease;
}

/* Image hover effects */
img {
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.02);
}

/* Cookie banner styling */
#cookie-banner {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive text sizing */
@media (max-width: 768px) {
  .text-5xl {
    font-size: 2.5rem;
  }
  
  .text-4xl {
    font-size: 2rem;
  }
}

/* Ensure proper button sizing on mobile */
@media (max-width: 640px) {
  .flex-col button,
  .flex-col a {
    width: 100%;
    text-align: center;
  }
}

/* Navigation active states */
nav a.border-b-2 {
  position: relative;
}

/* Gradient overlays for better text contrast */
.bg-gradient-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  z-index: 1;
}

/* Ensure text is above overlay */
.bg-gradient-overlay > * {
  position: relative;
  z-index: 2;
}

/* Contact form validation styles */
input:invalid {
  border-color: #ef4444;
}

input:valid {
  border-color: #22c55e;
}

/* Gallery image grid responsive */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Testimonial cards */
.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Service card spacing */
.service-card {
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.service-card .content {
  flex: 1;
}

/* Logo responsiveness */
.logo {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

/* Pricing highlights */
.price-highlight {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animation for success messages */
.success-animation {
  animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -15px, 0);
  }
  70% {
    transform: translate3d(0, -7px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

/* Ensure proper contrast on all backgrounds */
.text-contrast-light {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.text-contrast-dark {
  color: var(--slate-800);
}

/* Button minimum dimensions */
button, .btn, a.btn {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
}

/* Prevent text wrapping in navigation */
nav a {
  white-space: nowrap;
}

/* Responsive spacing adjustments */
@media (max-width: 768px) {
  .py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .py-16 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* Focus states for accessibility */
button:focus, a:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--emerald-500);
  outline-offset: 2px;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Success modal */
.modal-enter {
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}