/* home.css – the cinematic home page (/). Always dark (the gold logo needs it). An arched-glass greenhouse made
   of gradients (no big images, so it shows fast on 4G), slow parallax, drifting smoke / pollen (home.js),
   a logo reveal and two doors: Retail and Wholesale. prefers-reduced-motion switches every animation off. */
:root { --door-h: 300px; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--tph-black); }
body.home {
  color: #EDE6D8; font-family: "Montserrat", system-ui, sans-serif; line-height: 1.5;
  min-height: 100vh; overflow-x: hidden; display: flex; flex-direction: column;
}

/* ---------- The scene ---------- */
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.layer { position: absolute; inset: -6%; will-change: transform; }
.arches {
  /* Arched glass panes: repeating arches + a warm glow behind them */
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(215, 180, 114, .22), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 2px), rgba(215, 180, 114, .09) calc(12.5% - 2px) 12.5%),
    radial-gradient(ellipse 120% 70% at 50% 100%, #14100a 0%, transparent 60%),
    linear-gradient(180deg, #11140f 0%, #0d100c 45%, #0b0d10 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 55%, transparent 100%);
}
.arches::before {
  /* The big arch frame */
  content: ''; position: absolute; left: 50%; top: 4%; width: min(1100px, 130vw); height: 120%;
  transform: translateX(-50%); border: 2px solid rgba(215, 180, 114, .18); border-bottom: 0;
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
  box-shadow: inset 0 0 120px rgba(177, 140, 82, .08), 0 0 80px rgba(177, 140, 82, .05);
}
.rays {
  background:
    conic-gradient(from 200deg at 50% -10%, transparent 0deg, rgba(243, 221, 162, .07) 12deg, transparent 24deg,
      rgba(243, 221, 162, .05) 40deg, transparent 52deg, rgba(243, 221, 162, .06) 70deg, transparent 84deg);
  animation: rays 18s ease-in-out infinite alternate;
}
@keyframes rays { from { opacity: .6; transform: rotate(-2deg); } to { opacity: 1; transform: rotate(2deg); } }
.leaves {
  /* Soft green foliage shapes along the bottom (blurred ellipses) */
  background:
    radial-gradient(ellipse 18% 26% at 6% 100%, rgba(52, 78, 40, .55), transparent 70%),
    radial-gradient(ellipse 14% 20% at 22% 104%, rgba(64, 92, 46, .45), transparent 70%),
    radial-gradient(ellipse 16% 24% at 80% 102%, rgba(52, 78, 40, .5), transparent 70%),
    radial-gradient(ellipse 12% 18% at 96% 98%, rgba(70, 98, 50, .4), transparent 70%);
  filter: blur(6px);
}
.motes { inset: 0; width: 100%; height: 100%; }
.vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 70% at 50% 40%, transparent 50%, rgba(0, 0, 0, .65) 100%); }

/* ---------- Content ---------- */
.home-main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 16px 24px; text-align: center; }
.home-hero { margin: 3vh 0 4vh; }
.home-logo {
  width: min(300px, 72vw); height: auto; display: block; margin: 0 auto;
  filter: drop-shadow(0 0 28px rgba(215, 180, 114, .25));
  animation: reveal 1.8s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(10px) drop-shadow(0 0 0 rgba(215, 180, 114, 0)); }
  to { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 0 28px rgba(215, 180, 114, .25)); }
}
.home-tag { margin: 10px 0 0; color: #b9ad97; letter-spacing: .06em; animation: fadeup 1.2s .9s both; }
.script { font-family: var(--tph-font-script); font-size: 1.6em; color: var(--tph-gold-300); letter-spacing: 0; vertical-align: -.1em; }
@keyframes fadeup { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.doors { display: grid; gap: 18px; grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
@media (min-width: 640px) { .doors { grid-template-columns: 1fr 1fr; gap: 26px; } }
.door {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px;
  min-height: var(--door-h); padding: 28px 18px 26px; color: inherit; text-decoration: none; isolation: isolate;
  border: 1px solid rgba(215, 180, 114, .35); border-radius: 50% 50% 18px 18px / 36% 36% 18px 18px;
  background: linear-gradient(180deg, rgba(243, 221, 162, .07), rgba(11, 13, 16, .55) 55%), rgba(11, 13, 16, .35);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), border-color .4s, box-shadow .5s;
  animation: fadeup 1.1s both;
}
.door-retail { animation-delay: 1.1s; }
.door-wholesale { animation-delay: 1.3s; }
.door-arch {
  position: absolute; inset: 10px 10px auto; height: 62%; z-index: -1; border-radius: inherit;
  border: 1px solid rgba(215, 180, 114, .14);
  background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(215, 180, 114, .14), transparent 70%);
  transition: background .5s;
}
a.door:hover, a.door:focus-visible { transform: translateY(-6px); border-color: var(--tph-gold-300); box-shadow: 0 18px 50px rgba(177, 140, 82, .18); outline: none; }
a.door:hover .door-arch, a.door:focus-visible .door-arch { background: radial-gradient(ellipse 70% 90% at 50% 100%, rgba(243, 221, 162, .28), transparent 72%); }
a.door:focus-visible { box-shadow: 0 0 0 3px rgba(243, 221, 162, .55); }
.door-kicker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #a89c86; }
.door-name {
  font-family: var(--tph-font-display); font-size: clamp(30px, 6vw, 40px); font-weight: 600; letter-spacing: .08em;
  background: var(--tph-gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.door-line { color: #d6cdbb; }
.door-cta {
  margin-top: 12px; padding: 10px 22px; min-height: 44px; display: inline-flex; align-items: center;
  border-radius: 999px; background: var(--tph-gold-500); color: #160f05; font-weight: 600;
}

.home-note { max-width: 560px; margin: 28px auto 0; color: #a89c86; font-size: 14px; animation: fadeup 1s 1.5s both; }
.home-foot { position: relative; z-index: 1; text-align: center; color: #7f7565; font-size: 12.5px; padding: 18px 16px max(18px, env(safe-area-inset-bottom)); }

/* No motion for people who ask for less */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motes { display: none; }
}
