/* ═══════════════════════════════════════════════════════════════
   SHREEJI JEWELLERS — DESIGN SYSTEM
   Modern Luxury Boutique · Deep Maroon on Ivory
   Shared across all public pages. Loaded via <link>, cached by the browser.
═══════════════════════════════════════════════════════════════ */

:root {
    /* ── Surfaces ── */
    --bg-primary:   #FAF7F2;
    --bg-secondary: #F5F0E8;
    --bg-card:      #FFFFFF;

    /* ── Text ── */
    --text-primary:   #2C2620;
    --text-secondary: #5C5147;
    --text-muted:     #8B7E75;
    --text-on-accent: #FFFFFF;

    /* ── Accent (premium maroon) ── */
    --accent-primary: #7A1F2B;
    --accent-light:   #A94454;
    --accent-dark:    #4A0F1A;
    --accent-gradient: linear-gradient(135deg, #A94454 0%, #7A1F2B 50%, #4A0F1A 100%);

    /* ── Champagne gold — sparingly, premium touches only ── */
    --gold-highlight: #D4AF37;

    /* ── Borders / Shadows ── */
    --border-subtle: rgba(122, 31, 43, 0.15);
    --border-medium: rgba(122, 31, 43, 0.30);
    --shadow-soft:   0 4px 20px rgba(122, 31, 43, 0.08);
    --shadow-hover:  0 8px 30px rgba(122, 31, 43, 0.15);
    --shadow-deep:   0 20px 50px rgba(44, 38, 32, 0.12);

    /* ── Typography ── */
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans:  'Poppins', system-ui, -apple-system, sans-serif;

    /* ── Shape / Motion ── */
    --radius-card: 12px;
    --radius-btn:  8px;
    --ease: 0.3s ease-out;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: 0.02em;
    font-weight: 400;
}
p { line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent-light); color: var(--text-primary); }
::-webkit-scrollbar       { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* ═══ Reveal-on-scroll — shared IntersectionObserver hook ═══ */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal       { transform: translateY(26px); }
.reveal-left  { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }

/* ═══ Section header pattern ═══ */
.section-label {
    display: block;
    font-size: .72rem; font-weight: 600;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: .75rem;
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 4.5vw, 2.85rem);
    color: var(--text-primary);
    font-weight: 400;
}
.section-title .accent { color: var(--accent-primary); }
.section-sub {
    font-size: clamp(.9rem, 1.6vw, 1rem);
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 560px;
}
.divider {
    width: 48px; height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin: 1.1rem 0;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* ═══ Buttons ═══ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-family: var(--font-sans); font-size: .82rem; font-weight: 500;
    letter-spacing: .03em;
    padding: .9rem 2rem; min-height: 44px;
    border-radius: var(--radius-btn);
    border: none;
    transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease), opacity var(--ease);
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent-gradient);
    background-size: 200%; background-position: 0%;
    color: var(--text-on-accent);
    box-shadow: var(--shadow-soft);
}
.btn-primary:hover  { transform: translateY(-2px); box-shadow: var(--shadow-hover); background-position: 100%; }
.btn-primary:active { transform: translateY(0) scale(.98); }

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}
.btn-outline:hover { border-color: var(--accent-primary); background: rgba(183,110,121,.06); transform: translateY(-2px); }

.btn-ghost-light {
    background: rgba(255,255,255,.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,.4);
    backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }

/* ═══ Cards ═══ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--accent-light); }

/* ═══ Live pulse dot (SSE/polling status indicator) ═══ */
.live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34,197,94,.5);
    animation: live-pulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); }
    50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* ═══ Badges ═══ */
.badge-accent {
    display: inline-block;
    font-size: .68rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent-dark);
    background: rgba(183,110,121,.08);
    border: 1px solid var(--border-subtle);
    padding: .3rem .8rem;
    border-radius: 50px;
}

/* ═══ Image frame — rose-gold border reveal on hover ═══ */
.img-frame {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-deep);
}
.img-frame::after {
    content: '';
    position: absolute; inset: 0;
    border: 2px solid var(--accent-light);
    border-radius: var(--radius-card);
    opacity: 0;
    transition: opacity var(--ease);
    pointer-events: none;
}
.img-frame:hover::after { opacity: 1; }
.img-frame img { transition: transform .6s var(--ease); }
.img-frame:hover img { transform: scale(1.04); }

/* ═══ Utility ═══ */
.text-muted { color: var(--text-muted); }
.container  { max-width: 1240px; margin: 0 auto; padding-left: clamp(1.25rem, 5vw, 3rem); padding-right: clamp(1.25rem, 5vw, 3rem); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
