/* ========================================
   Garrett's Country Greenhouse
   Premium Dark Luxury — Terracotta & Sand
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
  background: #C9A84C33;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C9A84C55;
}

/* --- Selection --- */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #E8D5BC;
}

/* --- Navbar Transition --- */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .font-serif,
#navbar.scrolled span {
  color: #E8D5BC !important;
}

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

/* --- Hero Parallax Subtle --- */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg {
    will-change: transform;
  }
}

/* --- Gold Accent Line Animation --- */
.gold-line {
  position: relative;
  overflow: hidden;
}

.gold-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C9A84C, transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.gold-line:hover::after {
  transform: translateX(0);
}

/* --- Card Hover Glow --- */
.card-glow:hover {
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.08);
}

/* --- Image Reveal --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
}

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

/* --- Utility --- */
.text-shadow {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* --- Loading State for Images --- */
img {
  background-color: #242019;
}

/* --- Smooth transitions for all interactive elements --- */
button, a, input, textarea, select {
  transition: all 0.3s ease;
}

/* --- Form Focus States --- */
input:focus, textarea:focus {
  background-color: #1A1A1A;
}

/* --- Print Styles --- */
@media print {
  #navbar, #mobile-menu, footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}
