  *, *::before, *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    overflow-x: hidden;
  }

  ::selection {
    background: #B86B4A;
    color: #F5EDE4;
  }

  /* Hero image animation */
  @keyframes heroImage {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
  }

  .animate-hero-image {
    animation: heroImage 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }

  /* Hero elements stagger */
  .hero-elem {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }

  .hero-elem:nth-child(1) { animation-delay: 0.5s; }
  .hero-elem:nth-child(2) { animation-delay: 0.7s; }
  .hero-elem:nth-child(3) { animation-delay: 0.9s; }
  .hero-elem:nth-child(4) { animation-delay: 1.1s; }

  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Scroll indicator */
  .scroll-indicator {
    opacity: 0;
    animation: fadeIn 1s 1.8s forwards;
  }

  @keyframes fadeIn {
    to { opacity: 1; }
  }

  @keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
  }

  .animate-scroll-line {
    animation: scrollLine 1.8s ease-in-out infinite;
  }

  /* Reveal on scroll */
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }

  /* Service card hover */
  .service-card {
    transition: background-color 0.4s ease;
  }

  .service-card:hover {
    background-color: #FAF5F0;
  }

  /* Nav scroll state */
  nav.scrolled #nav-logo {
    color: #3D2B1F !important;
  }

  nav.scrolled .nav-link {
    color: rgba(61, 43, 31, 0.7) !important;
  }

  nav.scrolled .nav-link:hover {
    color: #3D2B1F !important;
  }

  nav.scrolled a[href="tel:18608924699"] {
    border-color: rgba(61, 43, 31, 0.3);
    color: #3D2B1F !important;
  }

  /* Mobile menu */
  #mobile-menu.open {
    opacity: 1;
    pointer-events: all;
  }

  #mobile-menu.open .mobile-link {
    animation: fadeUp 0.5s forwards;
  }

  #mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
  #mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.15s; }
  #mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.2s; }
  #mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.25s; }
  #mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.3s; }

  /* Hamburger animation */
  #menu-btn.active #line1 {
    transform: translateY(5px) rotate(45deg);
  }

  #menu-btn.active #line2 {
    opacity: 0;
  }

  #menu-btn.active #line3 {
    transform: translateY(-5px) rotate(-45deg);
  }

  /* Custom select arrow */
  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B86B4A' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
  }

  /* Smooth focus outlines */
  input:focus, textarea:focus, select:focus {
    outline: none;
  }

  /* Subtle grain texture overlay for hero */
  #hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
  }

  #hero > * {
    position: relative;
    z-index: 2;
  }

  /* Selection for testimonial section */
  blockquote::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(184, 107, 74, 0.4);
    margin: 0 auto 2rem;
  }

  /* Reduce motion for accessibility */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }

    html {
      scroll-behavior: auto;
    }

    .reveal {
      opacity: 1;
      transform: none;
    }

    .animate-hero-image {
      animation: none;
      transform: scale(1);
    }
  }

  /* Wide screen adjustments */
  @media (min-width: 1920px) {
    .max-w-7xl {
      max-width: 80rem;
    }
  }
