/* Green Hammer Homes - Custom Styles */

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease-out 0.2s forwards;
}
.animate-fade-up-delay-1 {
  animation: fadeUp 0.8s ease-out 0.4s forwards;
}
.animate-fade-up-delay-2 {
  animation: fadeUp 0.8s ease-out 0.6s forwards;
}
.animate-fade-up-delay-3 {
  animation: fadeUp 0.8s ease-out 0.8s forwards;
}
.animate-scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}

/* Navbar scrolled state */
.nav-scrolled {
  background-color: rgba(26, 26, 26, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Logo styling */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 55px;
  width: auto;
  margin: -10px 0;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
  border: 1px solid rgba(44, 55, 32, 0.28);
  border-radius: 4px;
  background: linear-gradient(135deg, #78ab3f 0%, #6f9e3f 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.brand-badge:hover {
  background: linear-gradient(135deg, #80b747 0%, #739f42 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.brand-badge > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.brand-badge span:first-child {
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

.brand-badge span:last-child {
  color: rgba(32, 37, 49, 0.72);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.36em;
  padding-left: 0.18rem;
  white-space: nowrap;
}

.brand-badge img {
  flex-shrink: 0;
  width: 3.7rem;
  height: 3.7rem;
}

@media (max-width: 640px) {
  .brand-badge {
    gap: 0.55rem;
    padding: 0.45rem 0.65rem;
  }

  .brand-badge span:first-child {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .brand-badge span:last-child {
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    padding-left: 0.12rem;
  }

  .brand-badge img {
    width: 2.9rem;
    height: 2.9rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background-color: #73A24E;
  color: #ffffff;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid #73A24E;
  outline-offset: 2px;
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.1) inset !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f3;
}

::-webkit-scrollbar-thumb {
  background: #73A24E;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5c8a3d;
}

/* Page transition */
body {
  opacity: 0;
  animation: pageLoad 0.5s ease-out forwards;
}

@keyframes pageLoad {
  to { opacity: 1; }
}

/* Interior page hero */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #2d2d2d;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #f5f5f3, transparent);
}

/* Portfolio filter tabs */
.filter-tab {
  transition: all 0.3s ease;
}

.filter-tab.active {
  color: #73A24E;
  border-bottom-color: #73A24E;
}

/* Portfolio items */
.portfolio-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item.hidden-item {
  opacity: 0;
  transform: scale(0.95);
  position: absolute;
  pointer-events: none;
}

/* Before/After slider (remodels page) */
.ba-slider {
  position: relative;
  overflow: hidden;
}
