  /* Custom styles for Patriot Homes Michigan */

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }

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

  /* Reveal animations */
  .reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger children */
  .reveal-up:nth-child(2) { transition-delay: 0.1s; }
  .reveal-up:nth-child(3) { transition-delay: 0.2s; }
  .reveal-up:nth-child(4) { transition-delay: 0.3s; }

  /* Navbar scroll state */
  #navbar.scrolled {
    background: rgba(254, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  }

  #navbar.scrolled .menu-line {
    background: #374151;
  }

  /* Mobile menu */
  #mobileMenu.open {
    transform: translateX(0);
  }

  #mobileMenu.closed {
    transform: translateX(-100%);
  }

  /* Hamburger animation */
  #menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  #menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  #menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 24px;
  }

  /* Mobile links */
  .mobile-link {
    transition: all 0.3s ease;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #fefcf8;
  }
  ::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
  }

  /* Selection color */
  ::selection {
    background: #fce4e9;
    color: #800020;
  }

  /* Input autofill */
  input:-webkit-autofill,
  textarea:-webkit-autofill,
  select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
  }

  /* Focus visible */
  :focus-visible {
    outline: 2px solid #800020;
    outline-offset: 2px;
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .reveal-up {
      opacity: 1;
      transform: none;
      transition: none;
    }
    html {
      scroll-behavior: auto;
    }
    * {
      transition-duration: 0.01ms !important;
    }
  }

  /* Tablet */
  @media (max-width: 768px) {
    .font-serif.text-5xl,
    .font-serif.text-6xl {
      font-size: 2.75rem;
    }
  }

  /* Small phones */
  @media (max-width: 360px) {
    .max-w-7xl {
      padding-left: 1rem;
      padding-right: 1rem;
    }
  }
