/* ==============================
   Heritage Kitchens — Custom CSS
   Dark/Light Premium Craftsman Theme
   ============================== */

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

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0F0F0F; }
::-webkit-scrollbar-thumb { background: #D4A853; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #F0C060; }

/* Nav links */
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #606060;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.dark .nav-link { color: #A8A8A8; }
.nav-link:hover,
.nav-link.active { color: #D4A853; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: #D4A853;
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-link.active::after,
.nav-link:hover::after { transform: scaleX(1); }

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: #404040;
  border-radius: 0.5rem;
  transition: all 0.2s;
}
.dark .mobile-nav-link { color: #C8C8C8; }
.mobile-nav-link:hover { background: #F5F5F5; color: #D4A853; }
.dark .mobile-nav-link:hover { background: #1A1A1A; color: #D4A853; }

/* Gold gradient text */
.gold-text {
  background: linear-gradient(135deg, #D4A853, #F0C060, #D4A853);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Section reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero gradient overlay */
.hero-overlay {
  background: linear-gradient(
    to right,
    rgba(8, 8, 8, 0.92) 0%,
    rgba(8, 8, 8, 0.75) 50%,
    rgba(8, 8, 8, 0.3) 100%
  );
}

/* Gold divider */
.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #D4A853, #F0C060);
  border-radius: 2px;
}

/* Before/After Slider */
.ba-container {
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
  border-radius: 0.75rem;
  user-select: none;
}
.ba-after {
  position: absolute;
  inset: 0;
  transition: none;
}
.ba-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  background: #D4A853;
  transform: translateX(-50%);
  z-index: 10;
}
.ba-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #D4A853;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.5);
}
.ba-label {
  position: absolute;
  bottom: 12px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Service cards */
.service-card {
  border: 1px solid #E8E8E8;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  background: white;
}
.dark .service-card {
  border-color: #2A2A2A;
  background: #141414;
}
.service-card:hover {
  border-color: #D4A853;
  box-shadow: 0 20px 60px rgba(212, 168, 83, 0.1);
  transform: translateY(-4px);
}

/* Testimonial cards */
.testimonial-card {
  background: white;
  border: 1px solid #E8E8E8;
  border-radius: 1rem;
  padding: 1.75rem;
  transition: all 0.3s;
}
.dark .testimonial-card {
  background: #141414;
  border-color: #2A2A2A;
}
.testimonial-card:hover {
  border-color: #D4A853;
  box-shadow: 0 10px 40px rgba(212,168,83,0.08);
}

/* Stats bar */
.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #D4A853;
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-top: 0.25rem;
}

/* Gallery grid item */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  aspect-ratio: 4/3;
  background: #1A1A1A;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid #E8E8E8;
}
.dark .faq-item { border-color: #2A2A2A; }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  color: #1A1A1A;
  gap: 1rem;
}
.dark .faq-question { color: #F0EDE8; }
.faq-question:hover { color: #D4A853; }

/* Form inputs */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid #E8E8E8;
  border-radius: 0.5rem;
  background: white;
  color: #1A1A1A;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.dark .form-input {
  border-color: #2A2A2A;
  background: #141414;
  color: #F0EDE8;
}
.form-input:focus {
  border-color: #D4A853;
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}
.form-input::placeholder { color: #888; }

/* Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #D4A853;
  color: #0A0A0A;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.btn-gold:hover {
  background: #F0C060;
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.35);
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: white;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.2s;
  font-size: 0.95rem;
}
.btn-outline:hover {
  border-color: #D4A853;
  color: #D4A853;
}

/* Trust badge */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #D4A853;
}

/* Section label */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #D4A853;
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: #D4A853;
}

/* Page hero (non-home) */
.page-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
  text-align: center;
}

/* County pills */
.county-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: #F5F5F5;
  color: #404040;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #E8E8E8;
  transition: all 0.2s;
}
.dark .county-pill {
  background: #1A1A1A;
  color: #C8C8C8;
  border-color: #2A2A2A;
}
.county-pill:hover {
  background: rgba(212,168,83,0.1);
  border-color: #D4A853;
  color: #D4A853;
}

/* Process step */
.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.process-num {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(212,168,83,0.15);
  border: 2px solid #D4A853;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #D4A853;
}

/* Light mode background section variants */
.section-light { background: #FAFAF8; }
.section-dark-alt { background: #0F0F0F; }
.dark .section-light { background: #111111; }

/* Image with border accent */
.img-accent {
  position: relative;
}
.img-accent::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid #D4A853;
  border-radius: 1rem;
  opacity: 0.3;
  pointer-events: none;
}
