/* ============================================================
   660 Stone Rd — custom styles
   (Everything Tailwind utilities don't express cleanly.)
============================================================ */

::selection {
  background: #9a8465;
  color: #fff;
}

/* ------------------------------------------------------------
   Navigation: transparent over hero → solid after scroll
------------------------------------------------------------ */
#site-nav.is-scrolled {
  background: rgba(253, 253, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e4e2dd;
}

#site-nav.is-scrolled .nav-link {
  color: #1c1e21;
}

#site-nav.is-scrolled .nav-cta {
  border-color: #1c1e21;
  color: #1c1e21;
}

#site-nav.is-scrolled .nav-cta:hover {
  background: #1c1e21;
  color: #fff;
}

/* Hamburger */
.menu-bar,
.menu-bar::before,
.menu-bar::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s ease, opacity 0.25s ease;
}
.menu-bar::before { transform: translateY(-7px); }
.menu-bar::after  { transform: translateY(7px); }

#menu-toggle[aria-expanded="true"] .menu-bar { background: transparent; }
#menu-toggle[aria-expanded="true"] .menu-bar::before { transform: rotate(45deg); }
#menu-toggle[aria-expanded="true"] .menu-bar::after  { transform: rotate(-45deg); }
#menu-toggle[aria-expanded="true"] { color: #fff; }

/* Mobile overlay menu */
.mobile-menu {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu .mobile-link {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.mobile-menu.is-open .mobile-link {
  opacity: 1;
  transform: none;
}
.mobile-menu.is-open .mobile-link:nth-child(1) { transition-delay: 0.10s; }
.mobile-menu.is-open .mobile-link:nth-child(2) { transition-delay: 0.16s; }
.mobile-menu.is-open .mobile-link:nth-child(3) { transition-delay: 0.22s; }
.mobile-menu.is-open .mobile-link:nth-child(4) { transition-delay: 0.28s; }

/* ------------------------------------------------------------
   Hero entrance + scroll cue
------------------------------------------------------------ */
.hero-reveal {
  opacity: 0;
  transform: translateY(26px);
  animation: heroUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes heroUp {
  to { opacity: 1; transform: none; }
}

.scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  position: relative;
}
.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateY(-100%);
  animation: scrollCue 2.4s ease-in-out infinite;
}
@keyframes scrollCue {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ------------------------------------------------------------
   Scroll-triggered reveals (activated by js/main.js)
------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   Property summary detail grid
------------------------------------------------------------ */
.detail-cell {
  border-right: 1px solid #e4e2dd;
  border-bottom: 1px solid #e4e2dd;
  padding: 2.25rem 1.5rem;
  transition: background 0.4s ease;
}
.detail-cell:hover {
  background: #f6f5f2;
}
.detail-icon {
  width: 26px;
  height: 26px;
  color: #9a8465;
}
.detail-label {
  margin-top: 1.5rem;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #8b9099;
}
.detail-value {
  margin-top: 0.4rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 300;
  color: #1c1e21;
  line-height: 1.1;
}
.detail-unit {
  font-size: 0.95rem;
  color: #8b9099;
}

/* ------------------------------------------------------------
   Gallery
------------------------------------------------------------ */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #e4e2dd;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-item:hover img {
  transform: scale(1.045);
}
.gallery-item figcaption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.1rem;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 30, 33, 0.45), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.gallery-item:hover figcaption { opacity: 1; transform: none; }
.gallery-item:hover::after     { opacity: 1; }
.gallery-item figcaption       { z-index: 1; }

/* ------------------------------------------------------------
   Lightbox
------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 21, 23, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-stage {
  max-width: min(1100px, 88vw);
}
.lightbox-stage img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  display: block;
}
.lightbox-btn {
  position: absolute;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.6rem;
  line-height: 1;
  padding: 1rem;
  transition: color 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
}
.lightbox-btn:hover { color: #fff; }
.lightbox-close { top: 1.25rem; right: 1.5rem; font-size: 2.2rem; }
.lightbox-prev  { left: 1rem;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------
   Two-column typeset description
------------------------------------------------------------ */
.prose-columns p + p {
  margin-top: 1.4em;
}
@media (min-width: 768px) {
  .prose-columns {
    column-count: 2;
    column-gap: 3.5rem;
    column-rule: 1px solid #e4e2dd;
  }
  .prose-columns p {
    break-inside: avoid;
  }
}
.dropcap {
  float: left;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 4.2rem;
  line-height: 0.82;
  padding-right: 0.6rem;
  padding-top: 0.35rem;
  color: #9a8465;
}

.feature-li {
  position: relative;
  padding-left: 1.4rem;
}
.feature-li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 1px;
  background: #9a8465;
}

/* ------------------------------------------------------------
   Agent card + inquiry form
------------------------------------------------------------ */
.contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  color: #1c1e21;
  transition: color 0.3s ease;
}
.contact-row:hover { color: #9a8465; }

.field label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #8b9099;
  margin-bottom: 0.5rem;
}
.field input,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #e4e2dd;
  background: transparent;
  padding: 0.45rem 0 0.6rem;
  font-size: 0.9rem;
  font-weight: 300;
  color: #1c1e21;
  transition: border-color 0.3s ease;
  border-radius: 0;
  resize: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #b9bcc2;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: #1c1e21;
}
.field.has-error input,
.field.has-error textarea {
  border-bottom-color: #b3543e;
}
.field-error {
  display: none;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: #b3543e;
}
.field.has-error .field-error {
  display: block;
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible {
  outline: 1.5px solid #9a8465;
  outline-offset: 3px;
}

/* ------------------------------------------------------------
   Reduced motion
------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .hero-reveal,
  .reveal {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
  .scroll-line::after {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
