/* ============================================
   Millstone Country Store — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(224, 122, 95, 0.3);
  color: #f6f7f8;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #11161a;
}
::-webkit-scrollbar-thumb {
  background: #36454F;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6b7480;
}

/* --- Navigation --- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #e07a5f;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link::after {
  left: auto;
  right: 0;
}

.nav-link:hover::after {
  left: 0;
  right: auto;
}

/* --- CTA Button --- */
.btn-coral {
  background: linear-gradient(135deg, #e07a5f 0%, #d46548 100%);
  color: #f6f7f8;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-coral::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d46548 0%, #c25037 100%);
  transition: left 0.3s ease;
  z-index: 0;
}

.btn-coral:hover::before {
  left: 0;
}

.btn-coral span,
.btn-coral svg {
  position: relative;
  z-index: 1;
}

.btn-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(224, 122, 95, 0.3);
}

.btn-coral:active {
  transform: translateY(0);
}

/* --- Hero --- */
.hero-bg {
  will-change: transform;
}

.hero-overlay {
  background:
    linear-gradient(to bottom,
      rgba(17, 22, 26, 0.6) 0%,
      rgba(17, 22, 26, 0.3) 40%,
      rgba(17, 22, 26, 0.5) 70%,
      rgba(17, 22, 26, 0.95) 100%
    );
}

/* --- Mobile Menu --- */
.mobile-link {
  font-family: 'Playfair Display', Georgia, serif;
}

#mobile-menu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

#mobile-menu.close {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* --- Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
  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-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* --- Menu Item Hover --- */
ul li {
  transition: transform 0.2s ease;
}

ul li:hover {
  transform: translateX(4px);
}

/* --- Form Styles --- */
input:focus,
select:focus,
textarea:focus {
  background: rgba(44, 56, 64, 0.6);
}

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='%23969da7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* --- Back to Top --- */
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(224, 122, 95, 0.4);
}

/* --- Image Hover --- */
.group:hover img {
  transform: scale(1.05);
}

/* --- Decorative Divider --- */
.font-serif em {
  font-style: italic;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-badge {
    font-size: 0.65rem;
  }

  h1 {
    line-height: 1.1;
  }
}

/* --- Print --- */
@media print {
  nav, #back-to-top, .btn-coral {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
