/* ============================================
   High Top Chimney — Custom Styles
   ============================================ */

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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection Color */
::selection {
  background: rgba(20, 184, 166, 0.3);
  color: #0f172a;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal-delay="1"] {
  transition-delay: 0.1s;
}

.reveal[data-reveal-delay="2"] {
  transition-delay: 0.2s;
}

.reveal[data-reveal-delay="3"] {
  transition-delay: 0.3s;
}

.reveal[data-reveal-delay="4"] {
  transition-delay: 0.4s;
}

/* Hidden state — only applied via JS */
.reveal-hidden {
  opacity: 0;
  transform: translateY(24px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal-hidden {
    opacity: 1;
    transform: translateY(0);
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 4px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .font-display.font-bold.text-slate-900 {
  color: #0f172a;
}

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

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

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ============================================
   Hero
   ============================================ */
#hero {
  position: relative;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, white, transparent);
  pointer-events: none;
}

/* ============================================
   Buttons & Interactive Elements
   ============================================ */
button, a {
  touch-action: manipulation;
}

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline x1='6' y1='9' x2='12' y2='15' l1='18' y2='9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ============================================
   Testimonial Cards
   ============================================ */
.reveal:nth-child(1) .bg-white { transition-delay: 0s; }
.reveal:nth-child(2) .bg-white { transition-delay: 0.1s; }
.reveal:nth-child(3) .bg-white { transition-delay: 0.2s; }

/* ============================================
   Form Focus States
   ============================================ */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.25rem;
  }
  
  #hero h1 br {
    display: none;
  }
}

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