/* Custom Styles for Four Elements Plumbing */

:root {
  --navy: #1a2744;
  --navy-light: #243352;
  --gold: #c8952e;
  --gold-light: #d4a84b;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
}

/* Font Imports */
.font-cormorant {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-lato {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

::-webkit-scrollbar-track {
  background: var(--stone-100);
}

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

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

/* Navbar Styles */
#navbar {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(26, 39, 68, 0.1);
}

#navbar.scrolled .nav-link {
  color: var(--navy);
}

#navbar.scrolled .nav-link:hover {
  color: var(--gold);
}

/* Service Card Animations */
.service-card {
  transform: translateY(0);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(26, 39, 68, 0.15);
}

/* Mobile Menu */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-link {
  position: relative;
  padding-left: 0;
}

.mobile-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.mobile-link:hover::before {
  width: 20px;
}

/* Input Focus Styles */
input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(200, 149, 46, 0.1) !important;
}

/* Button Hover Effects */
button,
a {
  transition: all 0.3s ease;
}

/* Image Hover Zoom */
.relative.overflow-hidden img {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.relative.overflow-hidden:hover img {
  transform: scale(1.05);
}

/* Section Divider */
.section-divider {
  position: relative;
}

.section-divider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
}

/* Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .font-cormorant.text-5xl,
  .font-cormorant.text-6xl,
  .font-cormorant.text-7xl {
    line-height: 1.1;
  }
}

/* Print Styles */
@media print {
  #navbar,
  #mobile-menu {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}
