/* ==========================================================================
   You And I Creation — design layer
   Loaded after Tailwind; replaces the earlier stacked readability patches.
   ========================================================================== */

:root {
  --ink: #100B09;
  --surface: #181210;
  --surface-2: #1E1714;
  --card: #221B17;
  --line: rgba(229, 193, 88, 0.14);
  --line-strong: rgba(229, 193, 88, 0.38);
  --gold: #D4AF37;
  --gold-soft: #E5C158;
  --heading: #FBF4E6;
  --body: rgba(232, 211, 167, 0.66);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- No shadows anywhere --------------------------------------------------- */
*, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }

:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

body { background: var(--surface); }

/* --- Header ---------------------------------------------------------------- */
/* Solid header: a backdrop blur over the playing hero video re-rendered every frame */
.site-header { background: rgba(16, 11, 9, 0.96); }
#mobileMenu { background: rgba(16, 11, 9, 0.96); }
.nav-link { position: relative; transition: color .25s var(--ease); }

/* --- Buttons: subtle hover, no lift --------------------------------------- */
button, a { transition-property: color, background-color, border-color; transition-duration: .25s; transition-timing-function: var(--ease); }
button:active { transform: none; }

.btn-gold {
  background: var(--gold);
  color: #120D0B;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .8rem 1.25rem;
  border-radius: .75rem;
  border: 1px solid var(--gold);
}
.hero-cta .btn-gold, .hero-cta .btn-ghost { border-radius: 9999px; padding: 1rem 2rem; }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

.btn-ghost {
  background: transparent;
  color: #F7E9CE;
  font-weight: 600;
  letter-spacing: .14em;
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold-soft); background: rgba(229, 193, 88, .06); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--gold-soft);
  border: 1px solid var(--line-strong);
  border-radius: .75rem;
  font-size: .75rem;
  font-weight: 600;
  padding: .7rem 1rem;
}
.btn-outline:hover { background: var(--gold); color: #120D0B; border-color: var(--gold); }

.icon-btn {
  width: 2.25rem; height: 2.25rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: .6rem;
  border: 1px solid var(--line-strong);
  color: #E8D3A7;
  background: transparent;
  font-size: .95rem;
}
.icon-btn:hover { border-color: var(--gold-soft); color: #fff; }

/* "View Entire Catalog" link */
#tab-home .catalog-link-highlight {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 9999px;
  color: var(--gold-soft);
  font-size: .72rem; font-weight: 600; letter-spacing: .16em;
  white-space: nowrap;
}
#tab-home .catalog-link-highlight > * { margin: 0 !important; }
#tab-home .catalog-link-highlight:hover { background: var(--gold); color: #120D0B; border-color: var(--gold); }
#tab-home .catalog-link-highlight i { transition: transform .3s var(--ease); }
#tab-home .catalog-link-highlight:hover i { transform: translateX(3px); }

/* --- Hero: full viewport (minus header), video background ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  transform-origin: 50% 0%;
  will-change: transform;
  height: calc(100vh - 5rem);
  height: calc(100svh - 5rem);
  min-height: 560px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}
@media (min-width: 1024px) {
  .hero { height: calc(100vh - 6rem); height: calc(100svh - 6rem); min-height: 620px; max-height: 1100px; }
}
.hero-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; contain: strict; }
/* Off screen: skip painting the video layer */
.hero-media.is-offscreen { visibility: hidden; }
.hero-media img, .hero-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-video { opacity: 0; transition: opacity .9s var(--ease); }
.hero-media.is-playing .hero-video { opacity: 1; }
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(16,11,9,.88) 0%, rgba(16,11,9,.62) 42%, rgba(16,11,9,.18) 75%, rgba(16,11,9,.1) 100%),
    linear-gradient(0deg, rgba(16,11,9,.7) 0%, rgba(16,11,9,0) 35%);
}
@media (max-width: 767px) {
  .hero-scrim { background: linear-gradient(0deg, rgba(16,11,9,.92) 0%, rgba(16,11,9,.6) 55%, rgba(16,11,9,.35) 100%); }
  .hero { align-items: flex-end; padding-bottom: 3.5rem; }
}
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-content { max-width: 40rem; }
/* Sized against viewport height too, so the whole block fits above the fold */
.hero-title { line-height: 1.02; font-size: clamp(2.6rem, min(6.4vw, 10vh), 6.25rem); }
.hero-mask { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.08em; }
.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(.7rem, 1vw, .8rem);
  font-weight: 600;
  letter-spacing: .32em;
  color: var(--gold-soft);
  margin-bottom: clamp(.75rem, 2.2vh, 1.5rem);
}
.hero-copy { color: rgba(247, 233, 206, .8); font-size: clamp(.95rem, 1.2vw, 1.1rem); line-height: 1.75; font-weight: 300; }

/* --- Section typography ---------------------------------------------------- */
#customerView h2.font-serif { letter-spacing: -.01em; }

/* --- Cards ----------------------------------------------------------------- */
.glass-card {
  background: var(--card);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid var(--line);
}
.glass-card-hover { transition: border-color .35s var(--ease); }
.glass-card-hover:hover { border-color: var(--line-strong); }
.glass-card img { transition: transform 1s var(--ease) !important; }
.glass-card.group:hover img { transform: scale(1.03); }

/* Card headings vs card body copy: body is smaller and dimmer than headings */
#customerView .glass-card h3 { color: var(--heading); }
#customerView .glass-card p,
#customerView .product-description {
  font-size: 13px !important;
  line-height: 1.65 !important;
  color: var(--body) !important;
  font-weight: 400 !important;
}
@media (min-width: 1024px) {
  #customerView .glass-card p,
  #customerView .product-description { font-size: 11px !important; line-height: 1.7 !important; }
}

/* Service card links */
#tab-home .glass-card button { color: var(--gold-soft); }
#tab-home .glass-card button:hover { color: #fff; text-decoration: none; }

/* --- Product cards --------------------------------------------------------- */
.product-card { min-width: 0; transition: border-color .35s var(--ease); }
/* Large catalogues (200+ items): skip layout/paint for cards far off screen */
#productsCatalogGrid .product-card { content-visibility: auto; contain-intrinsic-size: auto 560px; }
.product-card:hover { border-color: var(--line-strong); }
.product-media { aspect-ratio: 4 / 3.4; background: #1A1411; border-bottom: 1px solid var(--line); }
.product-media img { transition: transform 1s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-stock {
  background: rgba(16, 11, 9, .85);
  color: var(--gold-soft);
  font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 9999px; border: 1px solid var(--line);
}
.product-title {
  font-size: 1.15rem; line-height: 1.25; font-weight: 600;
  overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.product-description {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.product-price {
  font-size: 1.45rem; line-height: 1.1; font-weight: 700;
  color: var(--gold-soft);
  font-variant-numeric: lining-nums;
}
.product-unit { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(232, 211, 167, .5); }
.product-learn-more { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); padding-top: .25rem; }
.product-learn-more:hover { color: #fff; }
.qty-label { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(232, 211, 167, .55); }
.product-card .btn-gold { padding: .7rem 1rem; }

/* --- Category / project filter pills -------------------------------------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* --- Motion safety -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* --- Fabric background (assets/cloth.js) -------------------------------- */
#clothBg {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
#clothBg.is-ready { opacity: 1; }

/* --- Footer bar: currency seal + discreet admin key --------------------- */
.footer-bar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(229, 193, 88, .1);
}
.footer-copy { text-align: center; color: rgba(232, 211, 167, .4); font-size: 11px; letter-spacing: .04em; }
.footer-currency { display: inline-flex; align-items: center; gap: .7rem; justify-self: start; color: rgba(232, 211, 167, .6); }
.footer-currency-seal {
  width: 2.1rem; height: 2.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(229, 193, 88, .45);
  outline: 1px solid rgba(229, 193, 88, .15);
  outline-offset: 3px;
  color: var(--gold-soft);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-weight: 700;
}
.footer-currency-text { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.footer-admin {
  justify-self: end;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .9rem .45rem .45rem;
  border-radius: 9999px;
  border: 1px solid rgba(229, 193, 88, .14);
  color: rgba(232, 211, 167, .45);
  font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.footer-admin-icon {
  width: 1.6rem; height: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  background: rgba(229, 193, 88, .08);
  color: var(--gold-soft);
  font-size: .65rem;
}
.footer-admin-icon i { transition: transform .5s var(--ease); }
.footer-admin:hover { color: var(--gold-soft); border-color: rgba(229, 193, 88, .45); }
.footer-admin:hover .footer-admin-icon i { transform: rotate(-35deg); }
@media (max-width: 767px) {
  .footer-bar-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-currency, .footer-admin { justify-self: center; }
  .footer-copy { order: 3; }
}
