/* assets/theme-light.css - Light + vibrant ashram theme for public-facing pages.
   Scoped to body.theme-light so it never touches the booking/admin dashboards,
   which keep the original neutral light theme from style.css. Load AFTER style.css. */

body.theme-light {
    --saffron: #FF6A1A;
    --saffron-hover: #E85A0C;
    --saffron-light: #FFEEE0;
    --magenta: #D6206F;
    --magenta-light: #FCE4EF;
    --teal: #00A99D;
    --teal-light: #DFF7F5;
    --ink: #FFFDF9;
    --ink-panel: #FFFFFF;
    --ink-panel-2: #FFF6EC;
    --ink-border: #F1E1CF;
    --ink-text: #2B2016;
    --ink-text-muted: #7C6C5C;

    background-color: var(--ink);
    color: var(--ink-text);
}

/* Sacred geometry line-work background: overlapping circles + triangles (yantra motif) */
body.theme-light.sacred-pattern-bg {
    background-color: var(--ink);
    background-image:
        radial-gradient(circle at 50% 50%, rgba(255,106,26,0.06) 0, transparent 55%),
        repeating-linear-gradient(45deg, rgba(255,106,26,0.03) 0 1px, transparent 1px 46px),
        repeating-linear-gradient(-45deg, rgba(214,32,111,0.025) 0 1px, transparent 1px 46px);
}

body.theme-light header {
    background-color: rgba(255, 253, 249, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ink-border);
}

body.theme-light .logo-text { color: var(--saffron); letter-spacing: 1px; }
body.theme-light .nav-link { color: var(--ink-text); }
body.theme-light .nav-link:hover, body.theme-light .nav-link.active { color: var(--saffron); background-color: var(--saffron-light); }

body.theme-light .btn-primary {
    background-color: var(--saffron);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(255, 106, 26, 0.3);
}
body.theme-light .btn-primary:hover { background-color: var(--saffron-hover); box-shadow: 0 6px 22px rgba(255, 106, 26, 0.4); }

body.theme-light .btn-outline { color: var(--saffron); border-color: var(--saffron); }
body.theme-light .btn-outline:hover { background-color: var(--saffron-light); }

body.theme-light .mobile-nav-toggle { color: var(--saffron); }
body.theme-light .nav-actions { background-color: var(--ink-panel); border-left: 1px solid var(--ink-border); }

/* Language toggle */
.lang-toggle {
    display: inline-flex;
    border: 1px solid var(--ink-border, #ddd);
    border-radius: 20px;
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 600;
}
.lang-toggle a {
    padding: 6px 12px;
    text-decoration: none;
    color: inherit;
    opacity: 0.6;
}
.lang-toggle a.active { opacity: 1; background-color: var(--saffron-light); color: var(--saffron); }

/* ---- Page header banner (used by inner pages) ---- */
body.theme-light .page-banner {
    position: relative;
    padding: 90px 20px 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--ink-border);
    overflow: hidden;
}
body.theme-light .page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(214,32,111,0.08) 0%, transparent 70%);
    pointer-events: none;
}
body.theme-light .page-banner h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--ink-text);
    position: relative;
}
body.theme-light .page-banner h1 .accent { color: var(--saffron); }
body.theme-light .page-banner p {
    color: var(--ink-text-muted);
    max-width: 640px;
    margin: 14px auto 0 auto;
    font-size: 1.05rem;
    position: relative;
}

body.theme-light .home-section { color: var(--ink-text); }
body.theme-light .section-title h2 { color: var(--ink-text); }
body.theme-light .section-title::after { background: linear-gradient(90deg, var(--saffron), var(--magenta)); }
body.theme-light .section-subtitle { color: var(--ink-text-muted); }

body.theme-light .benefit-card,
body.theme-light .offering-card,
body.theme-light .step-content,
body.theme-light .gallery-card,
body.theme-light .service-card,
body.theme-light .contact-panel {
    background-color: var(--ink-panel);
    border: 1px solid var(--ink-border);
    box-shadow: 0 10px 26px rgba(43, 32, 22, 0.08);
}
body.theme-light .benefit-card:hover,
body.theme-light .offering-card:hover,
body.theme-light .service-card:hover {
    border-color: var(--saffron);
    box-shadow: 0 18px 40px rgba(255, 106, 26, 0.16);
}

/* Vibrant rotation on icon wrappers so cards don't read as monochrome */
body.theme-light .benefit-icon-wrapper {
    background-color: var(--saffron-light);
    color: var(--saffron);
}
body.theme-light .benefits-grid .benefit-card:nth-child(3n+2) .benefit-icon-wrapper,
body.theme-light .service-card:nth-child(3n+2) .benefit-icon-wrapper {
    background-color: var(--magenta-light);
    color: var(--magenta);
}
body.theme-light .benefits-grid .benefit-card:nth-child(3n+3) .benefit-icon-wrapper,
body.theme-light .service-card:nth-child(3n+3) .benefit-icon-wrapper {
    background-color: var(--teal-light);
    color: var(--teal);
}

body.theme-light .benefit-card h3, body.theme-light .step-content h3, body.theme-light .service-card h3 { color: var(--saffron); }
body.theme-light .benefit-card p, body.theme-light .step-content p, body.theme-light .service-card p { color: var(--ink-text-muted); }

body.theme-light #benefits,
body.theme-light #catalog,
body.theme-light .home-section-alt {
    background-color: var(--ink-panel-2);
    border-top: 1px solid var(--ink-border);
    border-bottom: 1px solid var(--ink-border);
}

body.theme-light .vidhi-timeline::before { background: linear-gradient(180deg, var(--saffron), var(--magenta)); }
body.theme-light .step-number {
    background: linear-gradient(135deg, var(--saffron), var(--magenta));
    color: #ffffff;
    border-color: var(--ink);
    box-shadow: 0 4px 14px rgba(255,106,26,0.3);
}

body.theme-light .home-hero,
body.theme-light .page-banner {
    background-image:
        linear-gradient(135deg, rgba(255,253,249,0.94) 45%, rgba(255,238,224,0.9) 100%),
        var(--hero-img, none);
    background-size: cover;
    background-position: center;
}
body.theme-light .hero-text h1 { color: var(--ink-text); }
body.theme-light .hero-text h1 span { color: var(--saffron); }
body.theme-light .hero-text p { color: var(--ink-text-muted); }
body.theme-light .hero-graphic img {
    border-color: #ffffff;
    box-shadow: 0 20px 50px rgba(255,106,26,0.3);
}

/* ---- Swamiji timeline ---- */
body.theme-light .swamiji-portrait {
    border-radius: var(--radius-lg);
    border: 4px solid #ffffff;
    box-shadow: 0 18px 40px rgba(214,32,111,0.2);
    width: 100%;
}
body.theme-light .swamiji-quote {
    border-left: 3px solid var(--magenta);
    padding-left: 20px;
    font-style: italic;
    color: var(--ink-text-muted);
    margin: 20px 0;
}

/* ---- Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.gallery-card {
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4 / 3;
}
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-card:hover img { transform: scale(1.08); }
.gallery-card .gallery-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 10px 14px;
    font-size: 0.85rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
    color: #fff;
}
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20,12,8,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 30px;
}
.gallery-lightbox.active { display: flex; }
.gallery-lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.gallery-lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}
.gallery-note {
    text-align: center;
    color: var(--ink-text-muted, #888);
    font-size: 0.85rem;
    margin-bottom: 30px;
    font-style: italic;
}

/* ---- Contact page ---- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; }
}
.contact-panel {
    padding: 30px;
    border-radius: var(--radius-lg, 16px);
}
.contact-info-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.contact-info-row i { color: var(--saffron, #FF6A1A); width: 20px; margin-top: 3px; }

body.theme-light .input-control {
    background-color: var(--ink-panel-2);
    border-color: var(--ink-border);
    color: var(--ink-text);
}
body.theme-light .input-control:focus {
    border-color: var(--saffron);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px var(--saffron-light);
}
body.theme-light label { color: var(--ink-text); }

/* ---- Footer: deep vibrant plum for grounding contrast against the light theme ---- */
body.theme-light footer.home-footer {
    background-color: #3E0F3B;
    border-top: 5px solid;
    border-image: linear-gradient(90deg, var(--saffron), var(--magenta)) 1;
}
body.theme-light .footer-col h4::after { background-color: var(--saffron); }
body.theme-light .footer-col ul li a:hover, body.theme-light .footer-bottom a { color: var(--saffron); }

/* Placeholder image badge (Gallery / until real photography supplied) */
.placeholder-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 9px;
    border-radius: 12px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================================================== */
/* HIGH-END 3D VISUAL SYSTEM                                          */
/* Tilt-on-hover cards, scroll-reveal depth, parallax hero.           */
/* Driven by assets/effects-3d.js. Degrades to flat/static instantly  */
/* for prefers-reduced-motion and for browsers without JS.            */
/* ================================================================== */

body.theme-light .home-section,
body.theme-light .page-banner {
    perspective: 1600px;
}

/* Scroll-reveal: elements start slightly sunken/rotated and rise into place */
.reveal-3d {
    opacity: 0;
    transform: translateY(36px) rotateX(-6deg);
    transform-origin: bottom center;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal-3d.in-view {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}
@media (prefers-reduced-motion: reduce) {
    .reveal-3d { opacity: 1; transform: none; transition: none; }
}

/* Tilt-on-hover: mouse-tracked perspective tilt with a moving vibrant sheen */
.tilt-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    will-change: transform;
}
.tilt-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 106, 26, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}
.tilt-3d:hover::before,
.tilt-3d.tilting::before {
    opacity: 1;
}
.tilt-3d:hover,
.tilt-3d.tilting {
    box-shadow: 0 25px 50px rgba(43, 32, 22, 0.16), 0 0 0 1px rgba(255, 106, 26, 0.3);
}
@media (prefers-reduced-motion: reduce) {
    .tilt-3d { transform: none !important; }
}

/* Hero: 3D rotating yantra emblem with parallax drift */
body.theme-light .hero-graphic {
    perspective: 1200px;
}
body.theme-light .hero-graphic img {
    animation: float3d 7s ease-in-out infinite;
    transform-style: preserve-3d;
    will-change: transform;
}
@keyframes float3d {
    0%   { transform: translateY(0) rotateY(0deg) rotateX(0deg); }
    25%  { transform: translateY(-8px) rotateY(6deg) rotateX(2deg); }
    50%  { transform: translateY(-14px) rotateY(0deg) rotateX(0deg); }
    75%  { transform: translateY(-8px) rotateY(-6deg) rotateX(-2deg); }
    100% { transform: translateY(0) rotateY(0deg) rotateX(0deg); }
}
@media (prefers-reduced-motion: reduce) {
    body.theme-light .hero-graphic img { animation: none; }
}

/* Page banner parallax layer */
body.theme-light .page-banner,
body.theme-light .home-hero {
    background-attachment: fixed;
}
@media (max-width: 900px) {
    /* iOS Safari handles fixed backgrounds poorly on mobile; fall back to scroll */
    body.theme-light .page-banner,
    body.theme-light .home-hero {
        background-attachment: scroll;
    }
}

/* Depth-elevated panels: layered shadow for a "floating slab" feel */
body.theme-light .benefit-card,
body.theme-light .offering-card,
body.theme-light .gallery-card,
body.theme-light .service-card,
body.theme-light .contact-panel,
body.theme-light .step-content {
    box-shadow: 0 2px 4px rgba(43,32,22,0.06), 0 12px 30px rgba(43,32,22,0.1);
}

/* Swamiji portrait gets a subtle 3D tilt too */
body.theme-light .swamiji-portrait {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
body.theme-light .swamiji-portrait:hover {
    transform: rotateY(6deg) rotateX(2deg) scale(1.02);
}
