/* Desert Medicinals — shared brand CSS (load on every page after the Tailwind CDN). */

/* Global scale-up — the whole page reads larger/more confident */
:root { font-size: 17.5px; }
@media (max-width: 640px) { :root { font-size: 16px; } }
body { background: #F8F2E8; color: #3E2C1C; overflow-x: hidden; }

/* ── 1 · Subtle animated background (motion slower than reading speed) ── */
.bg-mesh { position: fixed; inset: -25%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 38% at 18% 20%, rgba(214,162,60,.22), transparent 62%),
    radial-gradient(36% 40% at 84% 28%, rgba(184,92,56,.18), transparent 62%),
    radial-gradient(46% 46% at 62% 88%, rgba(124,138,99,.18), transparent 62%);
  filter: blur(8px); animation: drift 36s ease-in-out infinite alternate; }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(2%,-2%,0) scale(1.06); } 100% { transform: translate3d(-2%,2%,0) scale(1.03); } }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ── 5 · Strong typographic contrast ── */
.hero-h1 { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(3rem, 7.4vw, 6.6rem); line-height: .96; letter-spacing: -.026em; }
.h-section { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.02em; }

/* ── 4 · Depth layers ── */
.card { box-shadow: 0 1px 2px rgba(62,44,28,.04), 0 20px 44px -20px rgba(62,44,28,.24); transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease; will-change: transform; }
.card:hover { transform: translateY(-7px); box-shadow: 0 1px 2px rgba(62,44,28,.05), 0 36px 64px -24px rgba(62,44,28,.34); }
.glass { background: rgba(248,242,232,.72); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1); }

/* ── 2 · Intentional micro-interactions ── */
.btn { position: relative; transition: transform .2s ease, box-shadow .28s ease, filter .25s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(184,92,56,.55); filter: saturate(1.07); }
.btn:active { transform: translateY(0); }
.btn-ghost { transition: background .2s ease, transform .2s ease; }
.btn-ghost:hover { transform: translateY(-2px); }
.tinfloat { animation: float 7.5s ease-in-out infinite; transition: transform .6s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.tinfloat:nth-child(2) { animation-delay: -3.75s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

/* ── 3 · Progressive reveal (slide + fade, staggered via JS) ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Pueblo stepped-band motif divider */
.stepband { height: 16px; background:
  repeating-linear-gradient(90deg, #B85C38 0 26px, transparent 26px 31px),
  repeating-linear-gradient(90deg, transparent 0 13px, #D6A23C 13px 39px, transparent 39px 52px);
  opacity: .42; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }

/* Scroll indicator */
.scrollcue { width: 26px; height: 42px; border: 2px solid rgba(94,70,50,.38); border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; }
.scrollcue span { width: 4px; height: 8px; border-radius: 2px; background: #9E4A2C; animation: cue 1.9s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(9px); } 100% { opacity: 0; } }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-plus { transform: rotate(45deg); }
.faq-plus { transition: transform .2s ease; }
a { transition: color .18s ease; }

/* ── Modal / popup (shared by product modals + offer popups) ── */
.dm-modal-backdrop { background: rgba(40,28,16,.55); backdrop-filter: blur(3px); }
.dm-pop { animation: popIn .28s cubic-bezier(.2,.8,.2,1); }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* Carousel */
.dm-track { scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; }
.dm-track::-webkit-scrollbar { display: none; }
.dm-slide { scroll-snap-align: center; }

@media (prefers-reduced-motion: reduce) { .bg-mesh, .tinfloat, .scrollcue span, .dm-pop { animation: none; } }
