/*
Theme Name:        Crystal LOA – The Secret Power
Theme URI:         https://theloa.thesecretpower.in
Author:            Pranab Mandal
Author URI:        https://thesecretpower.in
Description:       A premium Bengali landing page WordPress theme for Crystal Healing & Law of Attraction workshops. Built for full Elementor page builder compatibility with backend content management.
Version:           1.0.0
Requires at least: 5.8
Tested up to:      6.7
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       crystal-loa
Tags:              elementor, one-page, landing-page, bengali, workshop, full-width-template

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Tiro+Bangla:ital@0;1&display=swap');
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
    --clr-primary:     #7c3aed;   /* Deep violet */
    --clr-primary-dk:  #5b21b6;
    --clr-primary-lt:  #a78bfa;
    --clr-accent:      #f59e0b;   /* Gold amber */
    --clr-accent-dk:   #d97706;
    --clr-gold:        #fbbf24;
    --clr-dark:        #0f0a1a;
    --clr-dark2:       #1a1030;
    --clr-mid:         #2d1f4e;
    --clr-text:        #e2d9f3;
    --clr-text-muted:  #9d8ec4;
    --clr-white:       #ffffff;
    --clr-success:     #10b981;
    --clr-danger:      #ef4444;

    --font-bengali:    'Hind Siliguri', 'Tiro Bangla', sans-serif;
    --font-heading:    'Tiro Bangla', 'Hind Siliguri', serif;

    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   20px;
    --radius-full: 999px;

    --shadow-card: 0 4px 32px rgba(124, 58, 237, 0.18);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.35);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-bengali);
    background-color: var(--clr-dark);
    color: var(--clr-text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    color: var(--clr-white);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1rem; color: var(--clr-text); }

a {
    color: var(--clr-primary-lt);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--clr-gold); }

img { max-width: 100%; height: auto; display: block; }

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
    max-width: 1100px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.section-pad {
    padding-block: 5rem;
}

.text-center { text-align: center; }
.text-gradient {
    background: linear-gradient(135deg, var(--clr-gold), var(--clr-primary-lt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary,
.elementor-button.btn-primary-el {
    display: inline-block;
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-dk));
    color: var(--clr-dark) !important;
    font-family: var(--font-bengali);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    animation: pulse-btn 2s ease-in-out infinite;
}

.btn-primary:hover,
.elementor-button.btn-primary-el:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6);
    animation: none;
}

@keyframes pulse-btn {
    0%, 100% { box-shadow: 0 4px 20px rgba(245,158,11,0.4); }
    50%       { box-shadow: 0 4px 35px rgba(245,158,11,0.7); }
}

/* =============================================
   SITE HEADER
   ============================================= */
#masthead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 10, 26, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    padding: 0.8rem 0;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-branding img {
    height: 50px;
    width: auto;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    background: radial-gradient(ellipse at 30% 60%, rgba(124, 58, 237, 0.25) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
                var(--clr-dark);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237c3aed' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* =============================================
   PRICE BADGE
   ============================================= */
.price-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dk));
    border: 2px solid var(--clr-gold);
    border-radius: var(--radius-md);
    padding: 1.2rem 2rem;
}

.price-original {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: var(--clr-text-muted);
}

.price-current {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--clr-gold);
}

/* =============================================
   COUNTDOWN TIMER
   ============================================= */
.countdown-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-block: 1.5rem;
}

.countdown-unit {
    text-align: center;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    min-width: 80px;
}

.countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--clr-gold);
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    margin-top: 0.3rem;
}

/* =============================================
   BENEFITS CARDS
   ============================================= */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.benefit-card {
    background: linear-gradient(135deg, rgba(45, 31, 78, 0.8), rgba(26, 16, 48, 0.9));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-gold));
}

.benefit-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: var(--shadow-card);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* =============================================
   WORKSHOP DETAILS
   ============================================= */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.detail-item {
    text-align: center;
    background: rgba(45, 31, 78, 0.5);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.detail-item .icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.detail-item h4 {
    color: var(--clr-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: rgba(45, 31, 78, 0.5);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1.2rem;
    font-size: 4rem;
    color: var(--clr-primary-lt);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    font-size: 0.85rem;
    color: var(--clr-gold);
    font-weight: 600;
    margin-top: 1rem;
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-item {
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: rgba(45, 31, 78, 0.6);
    color: var(--clr-white);
    font-family: var(--font-bengali);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
}

.faq-question:hover { background: rgba(124, 58, 237, 0.3); }

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 1rem 1.5rem;
}

.faq-toggle {
    font-size: 1.2rem;
    transition: transform var(--transition);
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    background: linear-gradient(135deg, var(--clr-primary-dk), var(--clr-dark2));
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '💎';
    position: absolute;
    font-size: 8rem;
    opacity: 0.05;
    top: -1rem;
    right: -1rem;
    pointer-events: none;
}

/* =============================================
   STICKY BOTTOM CTA
   ============================================= */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: linear-gradient(90deg, var(--clr-dark2), var(--clr-primary-dk));
    border-top: 2px solid var(--clr-gold);
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

.sticky-cta-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sticky-cta-price .original {
    text-decoration: line-through;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.sticky-cta-price .current {
    color: var(--clr-gold);
    font-weight: 700;
    font-size: 1.3rem;
}

/* =============================================
   SITE FOOTER
   ============================================= */
#colophon {
    background: var(--clr-dark);
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    padding: 2rem 0;
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

#colophon a { color: var(--clr-primary-lt); }
#colophon p { margin: 0.3rem 0; }

/* =============================================
   NOTIFICATION POPUP
   ============================================= */
.notif-popup {
    position: fixed;
    bottom: 80px;
    left: 20px;
    z-index: 9998;
    background: rgba(45, 31, 78, 0.97);
    border: 1px solid rgba(124, 58, 237, 0.5);
    border-radius: var(--radius-md);
    padding: 0.8rem 1.2rem;
    max-width: 280px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-card);
    transform: translateX(-120%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notif-popup.show { transform: translateX(0); }

.notif-dot {
    width: 10px;
    height: 10px;
    background: var(--clr-success);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--clr-success);
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* =============================================
   ELEMENTOR OVERRIDES
   ============================================= */
.elementor-section {
    font-family: var(--font-bengali);
}

.elementor-widget-heading .elementor-heading-title {
    font-family: var(--font-heading);
}

/* Full-width page */
.page-template-elementor_canvas #masthead,
.page-template-elementor_canvas #colophon,
.page-template-elementor_canvas #page > .sticky-cta {
    display: none;
}

/* Elementor button override */
.elementor-button-wrapper .elementor-button {
    font-family: var(--font-bengali) !important;
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-dk)) !important;
    color: var(--clr-dark) !important;
    border-radius: var(--radius-full) !important;
    font-weight: 700 !important;
    border: none !important;
    animation: pulse-btn 2s ease-in-out infinite;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .benefits-grid   { grid-template-columns: 1fr; }
    .details-grid    { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .cta-section     { padding: 2rem 1.5rem; }
    .sticky-cta      { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
    .details-grid    { grid-template-columns: 1fr; }
    .countdown-unit  { min-width: 65px; padding: 0.75rem 1rem; }
    .countdown-number{ font-size: 2rem; }
}

/* =============================================
   SECTION TITLES
   ============================================= */
.section-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-gold);
    margin-bottom: 0.75rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--clr-text-muted);
    max-width: 600px;
    margin-inline: auto;
}

/* =============================================
   STAR RATING
   ============================================= */
.stars { color: var(--clr-gold); letter-spacing: 0.1em; }

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.about-img {
    border-radius: var(--radius-lg);
    border: 3px solid rgba(124, 58, 237, 0.4);
    box-shadow: var(--shadow-glow);
}

.about-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(45,31,78,0.5);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border-left: 3px solid var(--clr-gold);
}

.about-stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--clr-gold);
    line-height: 1;
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
}
