/* ==========================================================
   Home page: "Heritage Ivory & Gold" theme (scoped to .home-premium)
   Arch frames, glass cards, lotus-geometry backdrop, gold accents.
   ========================================================== */

:root {
    --hp-gold: #c9a25c;
    --hp-gold-deep: #9a6f2a;
    --hp-gold-soft: #efdcb0;
    --hp-maroon: #5a2412;
    --hp-maroon-mid: #7b3019;
    --hp-ivory: #fffaf1;
    --hp-ink: #3b2a1d;
}

/* ---------- Backdrop: soft gold glows + sacred lotus lattice ---------- */
.home-premium {
    position: relative;
    isolation: isolate;
    overflow-x: clip;
}

.home-premium::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .09;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='none' stroke='%239a6f2a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M60 60 V28 H84 M60 60 H92 V84 M60 60 V92 H36 M60 60 H28 V36'/%3E%3C/svg%3E");
    background-size: 120px 120px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 60%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 60%, transparent 100%);
}

.home-premium::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60vw 40vw at 0% 0%, rgba(201,162,92,.20), transparent 70%),
        radial-gradient(50vw 40vw at 100% 100%, rgba(123,48,25,.10), transparent 70%);
}

/* ---------- Arch-framed images ---------- */
.home-premium .media-image {
    position: relative;
    padding: 10px;
    background: linear-gradient(180deg, #fffdf7 0%, #f3e3c0 100%);
    border: 1px solid var(--hp-gold);
    border-radius: 999px 999px 26px 26px / 260px 260px 26px 26px;
    box-shadow: 0 24px 44px rgba(70,35,12,.16), inset 0 0 0 3px rgba(255,255,255,.6);
    overflow: hidden;
    transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease;
}

.home-premium .media-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 999px 999px 18px 18px / 240px 240px 18px 18px;
    transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .6s ease;
}

.home-premium .media-image:hover {
    transform: translateY(-6px);
    box-shadow: 0 34px 60px rgba(70,35,12,.24), 0 0 0 4px rgba(201,162,92,.35);
}
.home-premium .media-image:hover img {
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.03);
}

/* ---------- Glass cards with gold top bar ---------- */
.home-premium .card {
    position: relative;
    overflow: hidden;
    background: rgba(255,253,247,.78);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border: 1px solid rgba(201,162,92,.35);
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(80,40,15,.09), inset 0 1px 0 rgba(255,255,255,.9);
    transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}

.home-premium .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hp-gold-deep), var(--hp-gold), #f6e2a8, var(--hp-gold), var(--hp-gold-deep));
    background-size: 200% 100%;
    animation: hpGoldFlow 6s linear infinite;
}

@keyframes hpGoldFlow {
    from { background-position: 0% 50%; }
    to   { background-position: 200% 50%; }
}

/* Side images in split layouts: fill the full frame height (no empty cream area) */
.home-premium .split-12 > .media-image {
    min-height: 200px;
}
.home-premium .split-12 > .media-image img {
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: cover;
    object-position: top center;
}

/* Equal-height cards: push the button to the bottom */
.home-premium .card {
    display: flex;
    flex-direction: column;
}
.home-premium .card > .read-more-btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Images inside cards: full-bleed top, normal radius (no arch, avoids mismatch) */
.home-premium .card .media-image {
    padding: 0;
    background: none;
    border: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: none;
    transform: none;
}
.home-premium .card .media-image img {
    border-radius: 0;
}
.home-premium .card .media-image::before,
.home-premium .card .media-image::after {
    display: none;
}
.home-premium .card:hover .media-image img {
    transform: scale(1.04);
}

.home-premium .card:hover {
    transform: translateY(-6px);
    border-color: var(--hp-gold);
    box-shadow: 0 30px 50px rgba(80,40,15,.16), 0 0 0 4px rgba(201,162,92,.12);
}

.home-premium .u-highlight-card {
    background: linear-gradient(135deg, rgba(255,246,226,.95), rgba(255,253,248,.9) 60%, rgba(251,236,205,.95));
}

/* ---------- Headings: ornament + maroon ---------- */
.home-premium h3 {
    color: var(--hp-maroon);
    letter-spacing: .2px;
}
/* ॐ goes in ::before so it does not clash with site.css's h3::after underline */
.home-premium h3::before {
    content: "卐";
    display: inline-block;
    margin-right: 8px;
    font-size: .95em;
    color: var(--hp-gold-deep);
    text-shadow: 0 0 12px rgba(201,162,92,.55);
    animation: hpGlow 3.2s ease-in-out infinite;
}
.home-premium .slide-caption h3::before { content: none; }

@keyframes hpGlow {
    0%, 100% { text-shadow: 0 0 6px rgba(201,162,92,.25); opacity: .85; }
    50%      { text-shadow: 0 0 16px rgba(201,162,92,.75); opacity: 1; }
}

/* ---------- Page hero: maroon arch panel ---------- */
.home-premium .page-hero {
    position: relative;
    overflow: hidden;
    margin: 0px 0 8px;
    padding: 56px 0 44px;
    border-radius: 0 0 36px 36px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,214,153,.28), transparent 55%),
        linear-gradient(160deg, #3d160f 0%, var(--hp-maroon) 50%, var(--hp-maroon-mid) 100%);
    box-shadow: 0 26px 50px rgba(61,22,15,.26);
    color: #fff1d8;
    text-align: center;
}
/* Photo heroes (.u-p-0 with .u-hero-bg-default) keep their own image banner */
.home-premium .page-hero.u-p-0 {
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
}
.home-premium .page-hero.u-p-0::before { display: none; }
.home-premium .u-hero-bg-default {
    border-radius: 0 0 36px 36px;
    overflow: hidden;
    box-shadow: 0 26px 50px rgba(61,22,15,.22);
}

.home-premium .page-hero::before {
    content: "ॐ";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(140px, 26vw, 320px);
    color: rgba(255,214,153,.07);
    line-height: 1;
    pointer-events: none;
}
.home-premium .page-hero h2 {
    position: relative;
    color: #ffe2ae;
    text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.home-premium .page-hero p {
    position: relative;
    color: #f7dfbb;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Slider: arched gold frame ---------- */
.home-premium .slider {
    border: 2px solid var(--hp-gold);
    border-radius: 28px;
    box-shadow: 0 0 0 6px var(--hp-ivory), 0 0 0 7px rgba(201,162,92,.45), 0 30px 60px rgba(60,25,10,.26);
}
.home-premium .slide-caption {
    background: linear-gradient(90deg, rgba(61,22,15,.92), rgba(90,36,18,.5));
    border: 1px solid rgba(255,214,153,.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.home-premium .slide-caption h3 { color: #ffe2ae; }

/* ---------- Buttons: pill with gold sheen ---------- */
.home-premium .read-more-btn {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.home-premium .read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(123,48,25,.28);
}

/* Heading underline: centered under section titles */
.home-premium .section h2::after,
.home-premium .section h3::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .home-premium *,
    .home-premium *::before,
    .home-premium *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 920px) {
    .home-premium::before { background-size: 90px 90px; }
    .home-premium .page-hero { padding: 36px 0 30px; border-radius: 0 0 24px 24px; }
    .home-premium .slider { border-radius: 20px; }
    .home-premium .media-image { border-radius: 999px 999px 18px 18px / 180px 180px 18px 18px; }
    .home-premium .media-image img { border-radius: 999px 999px 12px 12px / 170px 170px 12px 12px; }
}

/* ==========================================================
   Footer: temple-maroon with gold lotus lattice (site-wide)
   ========================================================== */
.footer {
    position: relative;
    margin-top: 40px;
    color: #f0dcc0;
    background-color: #2a0f08;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='none' stroke='%23e7c27d20' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' opacity='.5' d='M60 60 V28 H84 M60 60 H92 V84 M60 60 V92 H36 M60 60 H28 V36'/%3E%3C/svg%3E"),
        radial-gradient(90% 120% at 50% -20%, rgba(255,205,130,.22), transparent 60%),
        linear-gradient(170deg, #3d160f 0%, #5a2412 55%, #2a0f08 100%);
    background-size: 120px 120px, auto, auto;
    border-top: 0;
    box-shadow: none;
}

.footer-topline {
    height: 4px;
    background: linear-gradient(90deg, transparent, #c9a25c 20%, #fff0c4 50%, #c9a25c 80%, transparent);
}

.footer-main { padding: 56px 0 36px; }
.footer-grid { gap: 40px; }

.footer h4 {
    color: #ffe2ae;
    font-size: 1.1rem;
    letter-spacing: .03em;
    padding-bottom: 10px;
}

.footer p,
.footer li,
.footer a {
    color: #ead3b1;
}

.footer ul {
    list-style: none;
    padding-left: 0;
}
.footer li {
    margin-bottom: 9px;
}
.footer li::before {
    content: "✦";
    color: #c9a25c;
    font-size: .6rem;
    margin-right: 9px;
    vertical-align: middle;
}

/* Links: gold underline that slides in on hover */
.footer a {
    margin-left: 0;
    padding: 2px 0;
    border-radius: 0;
    background-image: linear-gradient(#e7c27d, #e7c27d);
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .35s ease, color .25s ease;
}
.footer a:hover {
    color: #ffe2ae;
    background-color: transparent;
    background-size: 100% 1px;
}

.footer-col::before {
    background: linear-gradient(180deg, transparent, rgba(231,194,125,.5), transparent);
    width: 1px;
}

/* Social chips */
.footer .footer-youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-image: none;
}
.footer .footer-youtube-link svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    padding: 5px;
    box-sizing: content-box;
    border-radius: 50%;
    border: 1px solid rgba(231,194,125,.55);
    background: rgba(231,194,125,.08);
    transition: transform .3s ease, background-color .3s ease;
}
.footer .footer-youtube-link:hover svg {
    transform: translateY(-2px) rotate(-6deg);
    background: rgba(231,194,125,.22);
}

/* Bottom bar */
.copyright {
    background: rgba(0,0,0,.28);
    border-top: 1px solid rgba(231,194,125,.28);
    color: #d6b98f;
    font-size: .88rem;
    padding: 18px 0;
}
.copyright a {
    color: #ffe2ae;
}

@media (max-width: 920px) {
    .footer-main { padding: 40px 0 26px; }
    .footer-grid { gap: 28px; }
}
