/* ============================================================
   La Petals — Design System Styles
   ============================================================ */

/* Design tokens */
:root {
    --gold: #D4AF37;
    --emerald: #0e651a;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FAF6EE;
    background-image: radial-gradient(rgba(212, 175, 55, 0.06) 1px, transparent 1px);
    background-size: 26px 26px;
    font-family: 'Lora', serif;
}

/* Film-grain overlay for a crafted, non-template feel */
.grain::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: .35;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.hairline {
    border-color: rgba(212, 175, 55, .25);
}

.eyebrow {
    font-size: 10px;
    letter-spacing: .35em;
    text-transform: uppercase;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.gold-rule {
    width: 56px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.num-outline {
    font-family: 'Playfair Display', serif;
    color: transparent;
    -webkit-text-stroke: 1px rgba(212, 175, 55, .4);
}

/* Shimmer headline */
.shimmer {
    background: linear-gradient(100deg, #D4AF37 20%, #F9F3C9 40%, #D4AF37 60%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

/* Slow spin for decorative lotus ring */
@keyframes spinSlow {
    to { transform: rotate(360deg); }
}

.spin-slow  { animation: spinSlow 40s linear infinite; }
.spin-slower { animation: spinSlow 70s linear infinite reverse; }

/* Marquee */
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.marquee-track { animation: marquee 38s linear infinite; }

/* Arch image — the signature Ayurvedic-premium shape */
.arch { border-radius: 999px 999px 12px 12px; }

/* Link underline sweep */
.link-sweep { position: relative; }

.link-sweep::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.link-sweep:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* Concern pills */
.pill {
    border: 1px solid rgba(11, 43, 38, .25);
    transition: all .35s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.pill:hover,
.pill:focus-visible {
    background: var(--emerald);
    color: #F3E5AB;
    border-color: var(--emerald);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(11, 43, 38, .5);
}

/* Catalog index rows */
.cat-row { transition: step-end ease, color .35s ease; }

.cat-row:hover              { background: var(--emerald); }
.cat-row:hover .cat-name    { color: #F3E5AB; }
.cat-row:hover .cat-desc    { color: rgba(250, 246, 238, .65); }
.cat-row:hover .cat-arrow   { color: var(--gold); transform: translateX(6px); }

.cat-arrow { transition: transform .35s ease, color .35s ease; }

/* Accordion */
details summary::-webkit-details-marker { display: none; }
details .plus { transition: transform .3s ease; }
details[open] .plus { transform: rotate(45deg); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
