/* ═══════════════════════════════════════════
   Watsonville Home Elegance — Custom Styles
   ═══════════════════════════════════════════ */

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

body {
  overflow-x: hidden;
}

::selection {
  background: #C4724E;
  color: #FDFBF7;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
  background: #C4724E;
  border-radius: 3px;
}

/* ── Header ── */
#header {
  background: rgba(253, 251, 247, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#header.scrolled {
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(44, 40, 37, 0.06);
}

/* ── Nav links ── */
.nav-link {
  position: relative;
}

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

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

.nav-link:hover {
  color: #C4724E !important;
}

/* ── Mobile menu button ── */
#menuBtn {
  position: relative;
}

.hamburger-line {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .top-line {
  transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .mid-line {
  opacity: 0;
  transform: scaleX(0);
}

#menuBtn.active .bot-line {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 6px;
}

/* ── Mobile menu ── */
.mobile-link {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

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

/* ── Hero ── */
.hero-deco-line {
  margin-bottom: 2rem;
}

.hero-greeting {
  opacity: 0;
  transform: translateY(16px);
}

.hero-headline {
  opacity: 0;
  transform: translateY(24px);
}

.hero-sub {
  opacity: 0;
  transform: translateY(16px);
}

.hero-cta {
  opacity: 0;
  transform: translateY(16px);
}

.hero-scroll {
  opacity: 0;
  transition: opacity 1s ease 1.5s;
}

/* ── Buttons ── */
.btn-primary {
  box-shadow: 0 4px 20px rgba(196, 114, 78, 0.25);
  transition: box-shadow 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(196, 114, 78, 0.35);
  transform: translateY(-1px);
}

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

.btn-secondary {
  transition: box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  box-shadow: 0 4px 16px rgba(196, 114, 78, 0.12);
  transform: translateY(-1px);
}

/* ── Scroll indicator ── */
@keyframes scroll {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

.scroll-line {
  animation: scroll 2s ease-in-out infinite;
}

/* ── Pillar cards ── */
.pillar-card {
  padding: 2rem 1rem;
  border-radius: 2px;
  transition: transform 0.4s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
}

/* ── Product cards ── */
.product-card {
  border-radius: 2px;
  overflow: hidden;
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
}

.product-img {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 40, 37, 0.15) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  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.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ── Form inputs ── */
.form-input {
  background: transparent;
}

.form-input:focus {
  border-bottom-color: #C4724E !important;
}

.form-input::placeholder {
  color: rgba(107, 100, 96, 0.4);
}

/* ── Map / image aspect ratios ── */
img {
  max-width: 100%;
  height: auto;
}

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Focus visible ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #C4724E;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Print ── */
@media print {
  #header, .hero-scroll, .btn-primary, .btn-secondary { display: none; }
  body { background: white; color: black; }
}
