/* ===========================================
   SILVER OAK PROPERTIES - Custom Styles
   Theme overrides and custom components
   =========================================== */

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

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid #2E7D32;
  outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
  background: #5A6B7A;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4A5A69;
}

/* Hero section adjustments */
.hero-section {
  min-height: 100vh;
}

@media (max-width: 1024px) {
  .hero-section {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }
}

/* Form focus animations */
input:focus,
textarea:focus {
  transform: translateY(-1px);
}

/* Button hover effects */
button[type="submit"],
.btn-phone {
  transition: all 0.2s ease;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(46, 125, 50, 0.3);
}

/* Card hover effects */
.hover\:shadow-xl:hover {
  transform: translateY(-4px);
}

/* Testimonial cards */
@media (max-width: 768px) {
  .grid.md\:grid-cols-3 > div {
    margin-bottom: 1rem;
  }
}

/* Phone number link styling */
a[href^="tel:"] {
  white-space: nowrap;
}

/* Checkbox styling */
input[type="checkbox"] {
  accent-color: #2E7D32;
}

/* Loading state for form submission */
.form-loading {
  position: relative;
  pointer-events: none;
}

.form-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animation for hero content */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section h1,
.hero-section p,
.hero-section ul,
.hero-section a {
  animation: fadeInUp 0.6s ease-out forwards;
}

.hero-section h1 { animation-delay: 0.1s; }
.hero-section p { animation-delay: 0.2s; }
.hero-section ul { animation-delay: 0.3s; }
.hero-section > div > div > a { animation-delay: 0.4s; }

/* Form card animation */
.hero-section form {
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
  opacity: 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.75rem !important;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Print styles */
@media print {
  .hero-section,
  footer,
  form {
    display: none;
  }

  body {
    font-size: 12pt;
    color: black;
  }
}
