/* ============================================================
   WISTERIA WOODS — light theme · maroon & cream
   ============================================================ */

* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #fff;
  color: #2c0814;
  cursor: none;
}

/* logo invert: the supplied logo is white. We display it dark on light bg. */
.invert-logo {
  filter: brightness(0) saturate(100%) invert(11%) sepia(43%) saturate(2920%) hue-rotate(316deg) brightness(85%) contrast(94%);
}

/* === Custom cursor === */
#cursor-dot, #cursor-ring {
  position: fixed; pointer-events: none; z-index: 9999;
  top: 0; left: 0; transform: translate(-50%, -50%);
  transition: transform 0.18s ease, opacity 0.3s ease;
  mix-blend-mode: multiply;
}
#cursor-dot {
  width: 6px; height: 6px;
  background: #5d1326; border-radius: 999px;
}
#cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(93,19,38,0.5);
  border-radius: 999px;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1), width 0.3s, height 0.3s;
}
#cursor-ring.is-active { width: 70px; height: 70px; border-color: #5d1326; }

@media (max-width: 1024px) {
  #cursor-dot, #cursor-ring { display: none; }
  body { cursor: auto; }
}

a, button, .service-tile, .news-card, .package-card, .check, input, textarea { cursor: none; }
@media (max-width: 1024px) {
  a, button, .service-tile, .news-card, .package-card, .check, input, textarea { cursor: auto; }
}

/* === Loader === */
#loader { transition: opacity 0.8s ease, visibility 0.8s ease; }
#loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-logo { animation: pulseLogo 1.6s ease-in-out infinite; }
.loader-bar  { transform-origin: left; animation: loaderBar 2.2s ease-in-out forwards; }
@keyframes pulseLogo { 0%,100%{opacity:1; transform:scale(1)} 50%{opacity:0.55; transform:scale(0.96)} }
@keyframes loaderBar { 0%{transform:scaleX(0)} 100%{transform:scaleX(1)} }

/* === Nav === */
#nav { background: rgba(255,255,255,0); }
#nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 4px 30px rgba(93,19,38,0.06);
}
/* Make logo white over hero, then dark when scrolled */
#nav .logo-img { filter: brightness(0) invert(1); transition: filter 0.5s; }
#nav.scrolled .logo-img {
  filter: brightness(0) saturate(100%) invert(11%) sepia(43%) saturate(2920%) hue-rotate(316deg) brightness(85%) contrast(94%);
}
#nav .nav-link { color: rgba(255,255,255,0.95); transition: color 0.4s; position: relative; }
#nav.scrolled .nav-link { color: #5d1326; }
#nav .nav-link::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
}
#nav .nav-link:hover::after { width: 100%; }

/* nav search shifts color when at top */
#nav .bg-cream-100 { background: rgba(255,255,255,0.18); transition: all 0.4s; }
#nav .bg-cream-100 input { color: #fff; }
#nav .bg-cream-100 input::placeholder { color: rgba(255,255,255,0.7); }
#nav .bg-cream-100 svg { color: #fff; }
#nav.scrolled .bg-cream-100 { background: #f8f3ec; }
#nav.scrolled .bg-cream-100 input { color: #5d1326; }
#nav.scrolled .bg-cream-100 input::placeholder { color: rgba(93,19,38,0.5); }
#nav.scrolled .bg-cream-100 svg { color: #5d1326; }

#nav #menuBtn span { background: #fff; transition: background 0.4s; }
#nav.scrolled #menuBtn span { background: #5d1326; }

.btn-portal {
  display: inline-flex; align-items: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  background: #5d1326;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: all 0.4s;
}
.btn-portal:hover { background: #2c0814; transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(93,19,38,0.5); }

/* === Buttons === */
.btn-primary {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 2rem;
  background: #5d1326;
  color: #fff;
  font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.1em;
  border-radius: 999px;
  transition: all 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, #2c0814, #74182d);
  transform: translateY(101%);
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(93,19,38,0.5); }
.btn-primary.small { padding: 0.7rem 1.5rem; font-size: 0.78rem; }

.btn-outline {
  display: inline-flex; align-items: center;
  padding: 0.85rem 2rem;
  border: 1.5px solid #5d1326;
  color: #5d1326;
  font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.15em;
  border-radius: 999px;
  transition: all 0.5s ease;
}
.btn-outline:hover { background: #5d1326; color: #fff; }

.btn-pill {
  display: inline-flex; align-items: center;
  padding: 0.7rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid #5d1326;
  color: #5d1326;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.15em;
  transition: all 0.4s;
}
.btn-pill.light { border-color: #fff; color: #fff; }
.btn-pill:hover { background: #5d1326; color: #fff; }
.btn-pill.light:hover { background: #fff; color: #5d1326; }

.btn-light {
  display: inline-flex; align-items: center;
  padding: 0.95rem 2.4rem;
  background: #fff; color: #5d1326;
  font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.15em;
  border-radius: 999px;
  transition: all 0.5s ease;
}
.btn-light:hover { background: #2c0814; color: #fff; }

/* === Hero slider === */
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.1);
  transition: opacity 1.4s ease, transform 8s ease;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-slide[data-bg] { background-image: var(--bg); }

.hero-content { animation: heroPop 1.2s ease 0.6s both; }
@keyframes heroPop { from { opacity:0; transform: translateY(30px); } to { opacity:1; transform:translateY(0); } }

.hero-content .dot { display:none; }
.dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.7);
  transition: all 0.4s;
}
.dot.active { background: #fff; width: 28px; border-radius: 999px; }

/* === Reveal animation === */
.reveal { opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(0.2, 0.9, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Stagger reveal for grid items (service tiles, packages, news cards) */
[data-stagger] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2,0.9,0.3,1), transform 0.8s cubic-bezier(0.2,0.9,0.3,1);
}
[data-stagger].is-staggered { opacity: 1; transform: translateY(0); }

/* Safety: if JS is disabled or stagger never fires, still show */
.no-js [data-stagger] { opacity: 1; transform: none; }

/* === Feature strip (3 packages bar under hero) === */
.feature-strip {
  position: relative; overflow: hidden;
  min-height: 280px;
  padding: 3rem 2rem;
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  transition: transform 0.6s;
}
.feature-strip.filled { background: #5d1326; }
.feature-strip.filled::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08), transparent 60%);
}
.feature-strip:hover { transform: translateY(-4px); }

/* === Floating ornaments === */
.floaty       { animation: floaty 6s ease-in-out infinite; }
.floaty-delay { animation: floaty 7s ease-in-out infinite -2.5s; }
@keyframes floaty {
  0%,100% { transform: translateY(0) rotate(-0.4deg); }
  50%     { transform: translateY(-12px) rotate(0.4deg); }
}

/* === Philosophy items === */
.philosophy-item {
  display: flex; align-items: flex-start; gap: 0.9rem;
  color: #5d1326;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(93,19,38,0.12);
  transition: all 0.4s;
}
.philosophy-item:hover { padding-left: 0.5rem; color: #2c0814; }
.philosophy-item .bullet {
  display: inline-block;
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #5d1326;
  margin-top: 0.55rem;
  position: relative;
}
.philosophy-item .bullet::after {
  content: ''; position: absolute; inset: -5px;
  border: 1px solid rgba(93,19,38,0.3);
  border-radius: 999px;
  animation: bulletPulse 2.4s ease-in-out infinite;
}
@keyframes bulletPulse { 0%,100%{transform:scale(1); opacity:0.8} 50%{transform:scale(1.2); opacity:0.3} }

/* === Package cards === */
.package-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(93,19,38,0.08);
  transition: all 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow: 0 10px 40px -20px rgba(93,19,38,0.15);
}
.package-card .img-wrap { aspect-ratio: 4/3; overflow: hidden; }
.package-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.package-card:hover { transform: translateY(-8px); border-color: rgba(93,19,38,0.3); box-shadow: 0 30px 60px -25px rgba(93,19,38,0.25); }
.package-card:hover .img-wrap img { transform: scale(1.08); }

/* === Service tiles (the small icons grid) === */
.service-tile {
  position: relative;
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 24px -8px rgba(93,19,38,0.12);
  transition: all 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.service-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(93,19,38,0.25); }
.service-tile .ico { flex-shrink: 0; }
.service-tile h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: #2c0814;
  margin-bottom: 0.4rem;
}
.service-tile p { font-size: 0.85rem; color: rgba(44,8,20,0.7); line-height: 1.5; }

/* maroon flow band behind tiles for that arrow effect from original */
.services-flow { position: relative; }
.services-flow::before {
  content: ''; position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #5d1326 10%, #5d1326 90%, transparent);
  opacity: 0.18;
  z-index: -1;
}

/* === Banner contact === */
.banner-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.4s;
}
.banner-input::placeholder { color: rgba(255,255,255,0.65); }
.banner-input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,0.15); }

/* === News cards === */
.news-card {
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(93,19,38,0.08);
  transition: all 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.news-card .img-wrap { aspect-ratio: 16/10; overflow: hidden; }
.news-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.news-card:hover { transform: translateY(-6px); border-color: rgba(93,19,38,0.3); box-shadow: 0 30px 60px -25px rgba(93,19,38,0.2); }
.news-card:hover img { transform: scale(1.08); }

/* === Contact section === */
.contact-row {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed rgba(93,19,38,0.1);
  transition: all 0.4s;
}
.contact-row:hover { padding-left: 0.5rem; }
.contact-row .ico {
  flex-shrink: 0;
  height: 40px; width: 40px;
  border-radius: 999px;
  background: #5d1326;
  color: #fff;
  display: grid; place-items: center;
}

.field label {
  display: block;
  font-size: 0.75rem; letter-spacing: 0.05em;
  color: rgba(44,8,20,0.7);
  margin-bottom: 0.4rem;
}
.field input, .field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: #fff;
  border: 1px solid rgba(93,19,38,0.18);
  border-radius: 0.5rem;
  color: #2c0814;
  font-size: 0.95rem;
  transition: all 0.4s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: #5d1326;
  box-shadow: 0 0 0 3px rgba(93,19,38,0.08);
}

.check {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: #5d1326;
}
.check input { accent-color: #5d1326; }

/* === Hours table === */
.hours-table > div {
  display: grid; grid-template-columns: 1fr 80px 80px;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(93,19,38,0.1);
  font-size: 0.95rem;
  color: #2c0814;
  transition: all 0.3s;
}
.hours-table > div:hover { padding-left: 0.5rem; color: #5d1326; }
.hours-table > div span:first-child { font-weight: 500; }
.hours-table > div span { color: rgba(44,8,20,0.7); }

/* === Footer social === */
.social {
  height: 32px; width: 32px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  transition: all 0.4s;
}
.social:hover { background: #fff; color: #5d1326; transform: translateY(-2px); }

/* footer logo also white but on maroon background */
footer img { filter: brightness(0) invert(1); }

/* === parallax === */
.parallax-img { will-change: transform; }
