/* homepage-glow.css
   Carries the diya ritual's warm gold aesthetic into the rest of the
   homepage (services strip, section headlines, product cards) so the
   page doesn't drop from rich/dark straight into a plain white/navy
   template look. Loaded sitewide (like lighting-ritual.css) since the
   product-card color fixes apply anywhere product cards appear, but
   the services-strip and headline treatments only fire on the classes
   added to index.php, so no other page changes appearance.
*/

/* ---- Services strip: swap the green stock-leaf photo background
   (removed from index.php) for a warm cream glow + gold hairline,
   which also drops one more image request from every homepage visit. */
.service-glow {
    background: radial-gradient(ellipse at 50% 0%, #fff8ea 0%, #faf8f3 65%);
    position: relative;
}
.service-glow::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d8a13c, #8d6700, #d8a13c, transparent);
}
.service-glow .icon i {
    background: linear-gradient(145deg, #d8a13c, #8d6700);
}

/* ---- Section headlines (Featured / Latest / Popular Products): a
   gold divider + the ritual's own typefaces, so these read as the
   same brand as the ritual rather than a generic template heading. */
.headline-rich h2 {
    font-family: 'Playfair Display', serif;
    color: #2c2113;
    letter-spacing: .5px;
}
.headline-rich h3 {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    color: #8a7355;
}
.headline-rich::after {
    content: "";
    display: block;
    width: 70px;
    height: 2px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, #8d6700, transparent);
}

/* ---- Latest Products band: warm cream instead of flat template gray. */
.bg-gray {
    background: #f7f5f1 !important;
}

/* ---- Product cards & controls: unify leftover template navy
   (#0d1452) and the mismatched orange add-to-cart button with the
   site's real gold brand. Sitewide, since these same product cards
   render on category and related-product listings too. */
.product .text h4 {
    color: #8d6700;
}
.product .text p a {
    background: linear-gradient(120deg, #b9924a, #8d6700);
    border-radius: 20px;
}
.product .out-of-stock .inner {
    background: #2c2113;
}
.product .owl-controls .owl-prev:hover,
.product .owl-controls .owl-next:hover {
    background: #2c2113;
}
.product .item {
    border-color: #ecdfc4;
}
.item:hover {
    box-shadow: 0 0 14px 3px rgba(141, 103, 0, .22);
}
.welcome p.button a {
    background: #8d6700;
}
.welcome p.button a:hover {
    background: #fff;
    color: #8d6700;
}

/* The Add to Cart buttons on the homepage / category / search listings
   used to carry an inline style hardcoding a mismatched orange
   (#e7a340) that overrode the site's own .form_add_to_cart rule above
   (already the correct gold). That inline style has been removed from
   the PHP templates; this just adds back a hover state for it. */
.form_add_to_cart:hover {
    background-color: #2c2113 !important;
}

/* ---- Newsletter band: dark/gold/animated like the ritual, since this
   section has no product photos to protect. Replaces the admin-photo
   background (one less large image downloaded on every homepage visit)
   with a CSS gradient + slow twinkling sparkle. */
.newsletter-glow {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 40%, #3a2a14 0%, #150f0a 70%);
    position: relative;
    overflow: hidden;
}
.newsletter-glow .eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #d8a13c;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}
.newsletter-glow .single {
    position: relative;
    z-index: 3;
}
.newsletter-glow .single h2 {
    color: #f4ead2;
}
.newsletter-glow .single .form-control {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(244, 234, 210, .35);
    color: #f4ead2;
    border-radius: 20px 0 0 20px;
}
.newsletter-glow .single .form-control::placeholder {
    color: #cbb995;
}
.newsletter-glow .single .btn {
    background: linear-gradient(120deg, #b9924a, #8d6700);
    border-radius: 0 20px 20px 0;
}
.newsletter-glow .glow-spark {
    position: absolute;
    border-radius: 50%;
    background: #ffe9ae;
    box-shadow: 0 0 6px 2px rgba(255, 222, 150, .8);
    animation: glow-twinkle 2.4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes glow-twinkle {
    0%, 100% { opacity: .15; transform: scale(.6); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* ---- Footer: one continuous warm band instead of a light-gray strip
   sitting flush against the (already correctly gold) copyright bar. */
.footer-links {
    background: linear-gradient(180deg, #241a10, #150f0a);
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, #d8a13c, transparent) 1;
}
.policy-links li a {
    color: #cbb995;
}
.policy-links li a:hover {
    color: #d8a13c;
}
.footer-bottom {
    background: linear-gradient(120deg, #6b4d00, #8d6700);
    position: relative;
    overflow: hidden;
}
.footer-bottom::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% -20%, rgba(255, 255, 255, .25), transparent 60%);
    pointer-events: none;
}

/* ---- Scroll-to-top: gold, replacing the leftover template navy. */
.scrollup i {
    background: linear-gradient(145deg, #d8a13c, #8d6700);
    border-color: #8d6700;
}

/* ---- Hero: a faint always-on sparkle (separate from the richer
   per-category glow below), so the homepage feels a little alive even
   before anyone touches the nav. Kept deliberately subtle so it never
   competes with the slider's own text/photos. */
.hero-ambient {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}
.hero-ambient .amb-spark {
    position: absolute;
    border-radius: 50%;
    background: #ffe9ae;
    box-shadow: 0 0 5px 2px rgba(255, 222, 150, .5);
    animation: glow-twinkle-faint 3.6s ease-in-out infinite;
}
@keyframes glow-twinkle-faint {
    0%, 100% { opacity: .05; transform: scale(.5); }
    50% { opacity: .35; transform: scale(1); }
}

/* ---- Hero: per-category hover glow (Fragrance on Flame / Foam on
   Flora / Finesse of Fortune), matching the nav-glow preview. Sits
   above the slide photo/overlay, below nothing (pointer-events:none
   throughout, so it never blocks the slider or its controls). */
.hero-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    opacity: 0;
    transition: opacity .7s ease;
    pointer-events: none;
}
.hero-layer.active {
    opacity: 1;
}

.hero-layer-flame {
    background: radial-gradient(circle at 50% 82%, rgba(255, 170, 60, .5) 0%, rgba(180, 90, 10, .22) 34%, transparent 62%);
}
.hero-diya-row {
    position: absolute;
    bottom: 4%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8vw;
}
.hero-diya-unit {
    position: relative;
    width: 60px;
}
.hero-diya-unit svg {
    width: 60px;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4));
}
.hero-diya-flame {
    position: absolute;
    left: 50%;
    bottom: 78%;
    width: 5px;
    height: 13px;
    transform: translateX(-50%);
    border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
    background: radial-gradient(circle, #ffedc0, #ffab3d 55%, #b5510a 100%);
    box-shadow: 0 0 14px 5px rgba(255, 150, 40, .7);
    animation: hero-flicker 1.3s ease-in-out infinite alternate;
}
@keyframes hero-flicker {
    0% { transform: translateX(-50%) scaleY(1) rotate(-1deg); opacity: .85; }
    50% { transform: translateX(-50%) scaleY(1.2) rotate(1deg); opacity: 1; }
    100% { transform: translateX(-50%) scaleY(.9) rotate(-2deg); opacity: .78; }
}
.hero-fume {
    position: absolute;
    left: 50%;
    bottom: 92%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 220, 205, .35), rgba(230, 220, 205, 0) 70%);
    animation: hero-fume-rise 4.5s ease-out infinite;
}
@keyframes hero-fume-rise {
    0% { transform: translate(0, 0) scale(.5); opacity: 0; }
    15% { opacity: .5; }
    100% { transform: translate(var(--fdrift, 14px), -130px) scale(2.2); opacity: 0; }
}
.hero-ember {
    position: absolute;
    bottom: 6%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ffb35c;
    box-shadow: 0 0 6px 2px rgba(255, 150, 50, .8);
    animation: hero-ember-rise 3.2s ease-in infinite;
}
@keyframes hero-ember-rise {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(-160px) translateX(var(--edrift, 10px)); opacity: 0; }
}

.hero-layer-flora {
    background: radial-gradient(circle at 50% 45%, rgba(198, 224, 180, .28) 0%, rgba(226, 214, 178, .18) 40%, transparent 66%);
}
.hero-bubble {
    position: absolute;
    bottom: -8%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5);
    background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, .55) 26%, rgba(223, 240, 220, .28) 58%, rgba(223, 240, 220, .1) 100%);
    box-shadow: inset -2px -2px 5px rgba(255, 255, 255, .35), inset 2px 2px 6px rgba(255, 255, 255, .75), 0 0 8px rgba(255, 255, 255, .5);
    animation: hero-bubble-rise linear infinite;
}
@keyframes hero-bubble-rise {
    0% { transform: translate(0, 0); opacity: 0; }
    8% { opacity: .85; }
    50% { transform: translate(var(--bdrift, 18px), -160px); }
    92% { opacity: .55; }
    100% { transform: translate(calc(var(--bdrift, 18px) * -1), -320px); opacity: 0; }
}

.hero-layer-fortune {
    background:
        radial-gradient(circle at 38% 42%, rgba(216, 161, 60, .42) 0%, transparent 46%),
        radial-gradient(circle at 64% 60%, rgba(199, 205, 214, .36) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(141, 103, 0, .16) 0%, transparent 70%);
}
.hero-fspark {
    position: absolute;
    border-radius: 50%;
    animation: hero-twinkle ease-in-out infinite;
}
.hero-fspark.gold {
    background: #ffe9ae;
    box-shadow: 0 0 8px 2px rgba(255, 222, 150, .9);
}
.hero-fspark.silver {
    background: #f2f5f9;
    box-shadow: 0 0 8px 2px rgba(210, 220, 235, .9);
}
@keyframes hero-twinkle {
    0%, 100% { opacity: .12; transform: scale(.65); }
    50% { opacity: 1; transform: scale(1.2); }
}
.hero-sweep {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 36%;
    left: -40%;
    background: linear-gradient(100deg, transparent, rgba(255, 224, 150, .14), rgba(230, 235, 245, .2), transparent);
    animation: hero-sweep 4.2s ease-in-out infinite;
}
@keyframes hero-sweep {
    0% { left: -40%; }
    100% { left: 120%; }
}

/* ---- Header chrome (top bar / logo+search+account row / main nav):
   dark and gold sitewide, matching the footer - this is header.php, so
   it's on every page, not just the homepage. The uploaded logo is gold
   linework on a transparent background, so it actually reads better on
   dark than it did on the previous flat white bar. */
.top {
    background: linear-gradient(120deg, #6b4d00, #8d6700);
}

.header {
    background: linear-gradient(180deg, #1c130c, #150f0a);
    box-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.header .search-area .form-control {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(244, 234, 210, .3);
    color: #f4ead2;
}
.header .search-area .form-control::placeholder {
    color: #9c8b6d;
}
.header .search-area .form-control:focus {
    border-color: #d8a13c;
}
.header .search-area button {
    background: linear-gradient(120deg, #b9924a, #8d6700);
}
.header .search-area button:hover {
    background: #2c2113;
}
.header .right ul li {
    color: #d8c9a8;
}
.header .right ul li a {
    color: #d8c9a8;
}
.header .right ul li a:hover {
    color: #d8a13c;
}

.nav,
.menu-container {
    background: linear-gradient(180deg, #241a10, #1c130c);
}
.menu > ul > li:hover {
    background: linear-gradient(120deg, #b9924a, #8d6700);
}
.menu > ul > li > ul {
    background: #1c130c;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
}
.menu > ul > li > ul > li {
    border-bottom: 1px solid rgba(244, 234, 210, .08);
}
.menu > ul > li > ul > li a {
    color: #d8c9a8;
}
.menu > ul > li > ul > li a:hover {
    background: #8d6700;
    color: #fff;
}

/* ---- Mascot hero: replaces the old photo slider. The hero-ambient /
   hero-layer nav-hover glow (Fragrance on Flame / Foam on Flora /
   Finesse of Fortune) still renders underneath at z-index 4/5; she and
   the message panel sit above it at z-index 6, so hovering a nav
   category still lights up the background behind her exactly as before. */
.mascot-hero {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    background: radial-gradient(ellipse at 50% 30%, #3a2a14 0%, #150f0a 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 40px 24px;
}
.angel-wrap {
    position: relative;
    z-index: 6;
    width: 280px;
    flex: 0 0 auto;
    animation: angelFloat 5s ease-in-out infinite;
    filter: drop-shadow(0 10px 24px rgba(0,0,0,.45));
}
@keyframes angelFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
}
.angel-svg { display: block; width: 100%; height: auto; overflow: visible; }
.angel-ai-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    position: relative;
    z-index: 2;
}
.angel-wrap.ai-image {
    position: relative;
}
.angel-wrap.ai-image::before {
    content: '';
    position: absolute;
    inset: -12%;
    z-index: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,233,174,0.38) 0%, rgba(255,233,174,0) 70%);
    animation: auraPulse 3.6s ease-in-out infinite;
    pointer-events: none;
}
.angel-aura {
    transform-origin: 200px 230px;
    animation: auraPulse 3.6s ease-in-out infinite;
}
@keyframes auraPulse {
    0%, 100% { opacity: .45; transform: scale(1); }
    50% { opacity: .7; transform: scale(1.04); }
}
.drape-l, .drape-r { transform-origin: 200px 168px; }
.drape-l { animation: drapeFlutterL 4.6s ease-in-out infinite; }
.drape-r { animation: drapeFlutterR 4.6s ease-in-out infinite; }
@keyframes drapeFlutterL {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(-2.5deg) translateY(-3px); }
}
@keyframes drapeFlutterR {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(2.5deg) translateY(-3px); }
}
.robe-hem {
    transform-origin: 200px 200px;
    animation: hemSway 5s ease-in-out infinite;
}
@keyframes hemSway {
    0%, 100% { transform: skewX(0deg); }
    50% { transform: skewX(1.4deg); }
}
.angel-spark {
    animation: angelTwinkle 2.4s ease-in-out infinite;
    transform-origin: center;
}
@keyframes angelTwinkle {
    0%, 100% { opacity: .2; transform: scale(.7); }
    50% { opacity: 1; transform: scale(1.15); }
}
.diya-flame {
    transform-origin: 58px 228px;
    animation: diyaFlicker 1.6s ease-in-out infinite;
}
@keyframes diyaFlicker {
    0%, 100% { transform: scaleY(1) rotate(0deg); opacity: 1; }
    30% { transform: scaleY(1.08) rotate(-2deg); opacity: .92; }
    60% { transform: scaleY(0.94) rotate(2deg); opacity: 1; }
}

.hero-copy {
    position: relative;
    z-index: 6;
    flex: 1 1 320px;
    max-width: 420px;
    color: #f4ead2;
    text-align: left;
    padding: 12px 8px;
}
.hero-copy .eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #d8a13c;
    margin-bottom: 10px;
    font-weight: 600;
}
.speech-bubble {
    position: relative;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(216,161,60,.35);
    border-radius: 18px;
    padding: 20px 22px;
    min-height: 120px;
}
.speech-bubble::before {
    content: "";
    position: absolute; left: -14px; top: 38px;
    width: 0; height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 14px solid rgba(216,161,60,.35);
}
.speech-bubble::after {
    content: "";
    position: absolute; left: -12.5px; top: 39px;
    width: 0; height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-right: 12px solid #201509;
}
.hero-copy .msg { display: none; animation: msgFadeIn .6s ease; }
.hero-copy .msg.active { display: block; }
@keyframes msgFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-copy .msg h2 { font-size: 21px; margin: 0 0 8px; color: #f4ead2; font-family: 'Playfair Display', serif; }
.hero-copy .msg p { font-size: 13.5px; line-height: 1.6; color: #d8c9a8; margin: 0; }

.hero-dots { display: flex; gap: 8px; margin-top: 16px; }
.hero-dots span {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(216,201,168,.3);
    cursor: pointer;
    transition: background .3s;
    display: inline-block;
}
.hero-dots span.active { background: #d8a13c; }

.hero-copy .hero-cta {
    display: inline-block;
    margin-top: 18px;
    padding: 11px 26px;
    border-radius: 22px;
    background: linear-gradient(120deg, #b9924a, #8d6700);
    color: #fff;
    font-size: 12.5px;
    letter-spacing: .5px;
    text-decoration: none;
    font-weight: 600;
}
.hero-copy .hero-cta:hover { background: #2c2113; color: #fff; }

@media (max-width: 760px) {
    .mascot-hero { flex-direction: column; padding: 30px 20px; min-height: auto; }
    .angel-wrap { width: 200px; }
    .hero-copy { text-align: center; max-width: 100%; }
    .speech-bubble::before, .speech-bubble::after { display: none; }
}
