/* =============================================================
   polish.css — focused visual and UX overrides
   Ownership:
   - accent treatments, motion feel, focus ring polish
   - cosmetic refinements that should not redefine component architecture
   Do not move shared nav/button/CTA system behavior into this file.
   ============================================================= */

.btn-primary,
.btn-outline,
.form-submit {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 400;
  letter-spacing: 0.14em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary:focus-visible,
.btn-outline:focus-visible,
.form-submit:focus-visible,
.nav-toggle:focus-visible,
.nav-more-btn:focus-visible,
.filter-btn:focus-visible {
  outline: 2px solid rgba(184, 151, 90, 0.9);
  outline-offset: 2px;
}

.gallery-item:focus-visible {
  outline: 2px solid rgba(184, 151, 90, 0.95);
  outline-offset: 2px;
}

.gallery-filter-status {
  text-align: center;
  color: var(--stone);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  margin: 0 0 14px;
}

.hero-subtitle,
.hero-sub {
  max-width: min(var(--hero-sub-max), 100%);
}

/* Editorial copy rhythm — stacked intros, centered sections */
.section-intro + .section-intro {
  margin-top: clamp(1.12em, 2.4vw, 1.45em);
}
.section-center .section-title + .divider-gold {
  margin-top: var(--section-title-divider-mt);
  margin-bottom: var(--section-title-divider-mb);
}
.inner-section.text-center .section-intro:first-of-type,
.inner-section-alt.text-center .section-intro:first-of-type {
  margin-top: var(--section-intro-mt);
}

.mobile-call-btn {
  padding-bottom: max(13px, env(safe-area-inset-bottom));
}

.fallback-message {
  text-align: center;
  color: var(--stone);
  border: 1px solid var(--warm-border);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  margin: 0 auto;
}

.fallback-message--gallery {
  max-width: 560px;
  padding: 60px 20px;
}

.fallback-message--availability {
  max-width: min(44ch, calc(100vw - 32px));
  padding: clamp(24px, 4vw, 32px) clamp(20px, 4vw, 28px);
  border-radius: 16px;
  border-color: rgba(184, 151, 90, 0.14);
  background: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink-mid);
}

.inquiry-context {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(184, 151, 90, 0.32);
  background: rgba(184, 151, 90, 0.08);
  color: var(--ink-mid);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.6;
}

.footer-links li.footer-spacer {
  margin-top: 16px;
}

.footer-conversion-rail {
  max-width: 1120px;
  margin: 0 auto clamp(28px, 4vw, 40px);
  padding: clamp(22px, 3vw, 28px) clamp(24px, 4vw, 32px);
  border: 1px solid rgba(184, 151, 90, 0.18);
  background: linear-gradient(145deg, rgba(22, 18, 16, 0.72), rgba(30, 24, 20, 0.68));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 24px);
  box-shadow: 0 8px 28px rgba(12, 10, 9, 0.12);
}

.footer-conversion-copy {
  margin: 0;
  max-width: 52ch;
  color: rgba(250, 247, 242, 0.82);
  font-size: 0.76rem;
  line-height: 1.72;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.footer-conversion-actions {
  display: flex;
  gap: var(--cta-group-gap);
  flex-wrap: wrap;
}

.lead-float-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1300;
  background: var(--ink);
  color: var(--ivory);
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 16px;
  box-shadow: 0 12px 28px rgba(28, 25, 22, 0.28);
}

.lead-float-btn[hidden] {
  display: none;
}

.lead-float-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* Default; pricing header overrides in pricing-availability.css */
.cal-updated {
  margin-top: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}

.cal-next-open {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(184, 151, 90, 0.16);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 0 0 20px;
  box-shadow: 0 4px 20px rgba(28, 25, 22, 0.04);
}

.cal-next-open-title {
  margin: 0 0 10px;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

.cal-next-open-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cal-next-open-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(184, 151, 90, 0.18);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  padding: 9px 14px;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.cal-next-open-chip:hover {
  border-color: rgba(184, 151, 90, 0.32);
  background: #fff;
  box-shadow: 0 4px 14px rgba(28, 25, 22, 0.05);
}

.cal-next-open-chip span {
  color: var(--stone);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 24px;
}

.cal-filter-btn {
  border: 1px solid rgba(184, 151, 90, 0.2);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(107, 98, 89, 0.95);
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 2px 10px rgba(28, 25, 22, 0.03);
}

.cal-filter-btn:hover {
  background: #fff;
  border-color: rgba(184, 151, 90, 0.32);
  color: var(--ink);
}

.cal-filter-btn.active {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
  box-shadow: 0 4px 14px rgba(28, 25, 22, 0.08);
}

.cal-year {
  margin: 0;
}

.cal-year-title {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: none;
  color: rgba(28, 25, 22, 0.5);
}

.cal-year-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 24px);
}

.cal-card-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 151, 90, 0.42);
  padding-bottom: 2px;
  transition: color 0.22s ease, border-color 0.22s ease;
}

.cal-card-cta:hover {
  color: var(--ink);
  border-bottom-color: rgba(28, 25, 22, 0.35);
}

@media (max-width: 768px) {
  .footer-conversion-rail {
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(20px, 4vw, 24px) clamp(18px, 4vw, 22px);
    border-radius: 12px;
    border-color: rgba(184, 151, 90, 0.14);
    background: linear-gradient(155deg, rgba(20, 17, 15, 0.62), rgba(26, 21, 18, 0.55));
    box-shadow: 0 4px 22px rgba(8, 7, 6, 0.07);
  }

  .footer-conversion-copy {
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    color: rgba(250, 247, 242, 0.78);
  }

  .footer-conversion-actions {
    width: 100%;
  }

  .footer-conversion-actions .btn-primary,
  .footer-conversion-actions .btn-outline {
    width: 100%;
    text-align: center;
  }

  .lead-float-btn {
    display: none;
  }

  .mobile-call-btn {
    position: fixed;
    right: 14px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 1300;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--ivory);
    font-size: var(--type-ui-2xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(28, 25, 22, 0.24);
  }

  .mobile-call-btn svg {
    width: 16px;
    height: 16px;
  }

  .cal-year-grid {
    grid-template-columns: 1fr;
  }

  .cal-next-open {
    padding: 16px 18px;
  }

  .cal-next-open-chip {
    width: 100%;
    justify-content: space-between;
  }

  .statement,
  .testimonials,
  .pre-cta-proof,
  .cta-band {
    scroll-margin-top: 88px;
  }

  .gallery-filter-status {
    margin-top: -4px;
    margin-bottom: 12px;
    font-size: 0.64rem;
  }
}

/* ── Audit: scroll reveal — keep in sync with site.css / components.css ── */
.reveal {
  transition: opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1), transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta-band .cta-band-content,
.statement .statement-inner {
  transition: opacity 0.45s ease;
}

/* Primary CTA: elevated hover — more substantial than outline/ghost */
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(28, 25, 22, 0.16);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
  transition-duration: 0.08s;
}

/* Outline + ghost: flat hover — shimmer only, no lift */
.btn-outline:hover,
.btn-ghost:hover {
  transform: none;
}

/* ── Luxury motion (transform / opacity / letter-spacing / width — compositor-friendly) ── */
@media (prefers-reduced-motion: no-preference) {
  :root {
    --ease-luxury: cubic-bezier(0.22, 1, 0.32, 1);
  }

  .nav-logo {
    transition:
      color var(--ease),
      text-shadow var(--ease),
      letter-spacing 0.55s var(--ease-luxury);
  }
  .nav-logo:hover {
    letter-spacing: 0.19em;
  }
  nav.scrolled .nav-logo:hover {
    letter-spacing: 0.155em;
  }

  .nav-links a::after {
    transition: width 0.48s var(--ease-luxury);
  }

  .footer-brand-name {
    transition: color var(--ease), letter-spacing 0.55s var(--ease-luxury);
  }
  .footer-brand-name:hover {
    letter-spacing: 0.2em;
  }

  .footer-conversion-rail {
    transition: transform 0.45s var(--ease-luxury), box-shadow 0.45s var(--ease-luxury);
  }
  .footer-conversion-rail:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(12, 10, 9, 0.18);
  }

  /* Gold rule eases to full width just after the section begins to reveal */
  .reveal .divider-gold:not(.divider-gold--hero) {
    transform-origin: center;
  }
  .reveal:not(.visible) .divider-gold:not(.divider-gold--hero) {
    transform: scaleX(0.88);
  }
  .reveal.visible .divider-gold:not(.divider-gold--hero) {
    transform: scaleX(1);
    transition: transform 0.65s var(--ease-luxury);
    transition-delay: 0.08s;
  }

  .btn-outline:hover {
    box-shadow: 0 4px 18px rgba(28, 25, 22, 0.08);
  }
}
