/* Vendor Canopy visual layer (approved by Neo 12/5/2026). Load after styles.css and hero-svg.css.
   Intent: subtle, a cut above entry level. No button sheen, no extra gold.
   All motion honors prefers-reduced-motion. Scroll reveal only hides content when JS has run. */

/* Canvas grain + faint gold halftone on navy bands */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("/images/grain.svg");
  background-size: 180px 180px;
}

.hero,
.quote-band {
  background-color: var(--color-navy);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255, 173, 0, 0.08), transparent 62%),
    radial-gradient(circle at 1px 1px, rgba(255, 173, 0, 0.11) 0.55px, transparent 0.8px);
  background-size: auto, 9px 9px;
}

/* Canopy-peak dividers with a soft navy drop shadow */
.hero {
  position: relative;
  z-index: 1;
  overflow: visible;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 2.9rem;
  margin-top: -1px;
  background: var(--color-navy);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 5px 8px rgba(8, 31, 65, 0.14));
  pointer-events: none;
  z-index: 2;
}
.quote-band {
  position: relative;
  overflow: visible;
}
.quote-band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 2.4rem;
  margin-bottom: -1px;
  background: var(--color-navy);
  clip-path: polygon(0 100%, 100% 100%, 50% 0);
  filter: drop-shadow(0 4px 7px rgba(8, 31, 65, 0.13));
  pointer-events: none;
  z-index: 2;
}
.quote-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 1.5rem;
  margin-top: -1px;
  background: var(--color-navy);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 4px 6px rgba(8, 31, 65, 0.12));
  pointer-events: none;
}
.site-footer {
  padding-top: calc(var(--space-3xl) + 0.75rem);
}

/* Key-cap buttons: darker lip, soft shadow, press-down. Same colors as before. */
.button {
  position: relative;
  overflow: visible;
  --btn-lip: #C78400;
  --btn-lip-dark: #050E1C;
  background-color: var(--color-sun);
  background-image: none;
  border: 2px solid var(--color-sun);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 3px 0 var(--btn-lip),
    0 5px 8px rgba(8, 31, 65, 0.16);
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    background-color 0.14s ease,
    border-color 0.14s ease,
    color 0.14s ease;
}
.button:hover {
  transform: translateY(-1px);
  background-color: var(--color-white);
  background-image: none;
  border-color: var(--color-navy);
  color: var(--color-navy);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 4px 0 var(--btn-lip-dark),
    0 7px 12px rgba(8, 31, 65, 0.22);
}
.button:active {
  transform: translateY(2px);
  background-color: var(--color-navy);
  background-image: none;
  border-color: var(--color-sun);
  color: var(--color-sun);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 0 var(--btn-lip-dark),
    0 2px 4px rgba(8, 31, 65, 0.20);
}
.form-card .button:hover,
.fallback .button:hover,
.form-card .button:active,
.fallback .button:active {
  border-color: var(--color-navy);
}

/* Product hover lift (desktop pointer only) */
@media (hover: hover) and (pointer: fine) {
  .product figure {
    transition: transform 0.28s ease, box-shadow 0.28s ease;
  }
  .product:hover figure {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(8, 31, 65, 0.12);
  }
}

/* Scroll reveal: content stays visible unless JS ran (html.js) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Hero illustration: entrance and slow flag wave */
.hero-figure svg {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 0 0 3px var(--color-sun);
  overflow: visible;
}
#hero-frame,
#hero-roof,
#hero-valance,
#hero-table,
#hero-banner,
#hero-flag,
#person-6ft {
  transform-box: fill-box;
  animation-fill-mode: both;
}
#hero-flag { transform-origin: 20% 100%; }
#hero-flag-fabric { transform-box: fill-box; transform-origin: 0% 85%; }
#hero-roof { transform-origin: 50% 100%; }
#hero-valance { transform-origin: 50% 0%; }

#hero-frame { animation: vc-rise 0.55s ease 0.05s both; }
#hero-roof { animation: vc-roof 0.62s cubic-bezier(0.2, 0.85, 0.25, 1) 0.18s both; }
#hero-valance { animation: vc-roof 0.5s cubic-bezier(0.2, 0.85, 0.25, 1) 0.34s both; }
#hero-flag { animation: vc-rise 0.55s ease 0.28s both; }
#hero-table { animation: vc-rise 0.5s ease 0.48s both; }
#hero-banner { animation: vc-rise 0.5s ease 0.56s both; }
#person-6ft { animation: vc-rise 0.5s ease 0.62s both; }
#hero-flag-fabric { animation: vc-flag-wave 3.4s ease-in-out 1.1s infinite; }

@keyframes vc-roof {
  from { transform: translateY(-72px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes vc-rise {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes vc-flag-wave {
  0%, 100% { transform: skewX(0deg) rotate(0deg); }
  40% { transform: skewX(-2.6deg) rotate(-0.55deg); }
  70% { transform: skewX(1.1deg) rotate(0.3deg); }
}

/* Phone thumb-zone quote bar.
   Header and in-hero "Request a quote" buttons stay visible on phones, as in v4.
   The bar hides while the in-hero button is on screen (and at the quote form)
   so the fold never shows two CTAs at once. */
.mobile-cta { display: none; }
@media (max-width: 719px) {
  .js .mobile-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: var(--color-navy);
    box-shadow: 0 -4px 14px rgba(8, 31, 65, 0.18);
  }
  .mobile-cta .button { width: 100%; }
  .js body { padding-bottom: 5.25rem; }
  .js.top-cta-in-view .mobile-cta,
  .js body.quote-in-view .mobile-cta { display: none; }
  .js.top-cta-in-view body,
  .js body.quote-in-view { padding-bottom: 0; }
}

/* Tighten "Your artwork, your way": section padding and the facing
   padding of the neighboring sections, about 40% less (4.5rem -> 2.7rem). */
#artwork {
  padding-top: 2.7rem;
  padding-bottom: 2.7rem;
}
#artwork .section-intro {
  margin-bottom: 1.2rem; /* 2rem * 0.6 */
}
#booth-gear {
  padding-bottom: 2.7rem;
}
.section[aria-labelledby="how-title"] {
  padding-top: 2.7rem;
}

/* Cream plates behind the illustrations, tighter table and backdrop crops */
.product img {
  background: var(--color-canvas);
}
.product--tight img {
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: var(--color-canvas);
}

/* Cleanups: short product rule, muted placeholders, anchor offset */
.product {
  border-top: 0;
  position: relative;
}
.product::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3.25rem;
  height: 2px;
  background: var(--color-navy);
}
::placeholder {
  color: #6B7684;
  opacity: 1;
}
#booth-gear,
#how-title {
  scroll-margin-top: calc(var(--header) + 0.5rem);
}
#quote {
  scroll-margin-top: calc(var(--header) + 2.4rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button,
  .button:hover,
  .button:active {
    transition: none;
    transform: none;
  }
  #hero-frame,
  #hero-roof,
  #hero-valance,
  #hero-table,
  #hero-banner,
  #hero-flag,
  #hero-flag-fabric,
  #person-6ft,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .product figure { transition: none; }
  .product:hover figure { transform: none; }
}
