/* SEO & Navigation Optimization Styles */

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

/* Improved Link Styles for SEO */
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:focus {
  outline: 2px solid #c49b63;
  outline-offset: 2px;
}

/* Better button styles for menu navigation */
.btn[href*="menu"] {
  position: relative;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.btn[href*="menu"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(196, 155, 99, 0.3);
}

.btn[href*="menu"]:active {
  transform: translateY(0);
}

/* Menu anchor smooth transition */
.menu-page {
  scroll-margin-top: 100px;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Preload resources for faster menu loading */
link[rel="prefetch"],
link[rel="preload"] {
  display: none;
}

/* Optimize images for faster loading */
img {
  max-width: 100%;
  height: auto;
}

img[src*="menu"] {
  display: block;
  width: 100%;
}

/* Better semantic HTML readability */
h1, h2, h3, h4, h5, h6 {
  word-spacing: normal;
  line-height: 1.3;
}

/* Skip to main content link (accessibility & SEO) */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #c49b63;
  color: white;
  padding: 8px;
  z-index: 100;
  text-decoration: underline;
}

.skip-to-content:focus {
  top: 0;
}

/* Schema markup friendly structure */
article, section, nav, header, footer {
  display: block;
}

/* Navigation list optimization */
nav ul, nav ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  display: inline-block;
}

/* Fast page transition indicator */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #c49b63 0%, #d4a574 100%);
  animation: slideIn 0.3s ease-out;
  z-index: 999;
}

@keyframes slideIn {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Mobile optimization */
@media (max-width: 768px) {
  html {
    scroll-behavior: auto;
  }

  .menu-page {
    scroll-margin-top: 70px;
  }

  .btn[href*="menu"] {
    display: block;
    margin: 10px 0;
    width: 100%;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
