/*
Theme Name: BestiBest Child
Theme URI: https://bestibest.com
Description: Premium dark-mode child theme for BestiBest — a luxury tech boutique. Built on Astra. Cinematic, glassmorphism, mobile-first.
Author: BestiBest
Author URI: https://bestibest.com
Template: astra
Version: 1.0.0
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: bestibest-child
*/

:root {
    /* Main Palette */
    --primary-bg: #121212;
    --accent-gold: #F5A623;
    --text-main: #F5F5F7;
    --text-muted: #A1A1A6;
    --urgent-red: #D70015;

    /* Effects */
    --gold-glow: 0 0 15px rgba(245, 166, 35, 0.4);
    --glass-blur: blur(12px) saturate(180%);
    --glass-bg: rgba(18, 18, 18, 0.75);

    /* Layout */
    --container-width: 1200px;
    --border-radius: 12px;
}

* { box-sizing: border-box; }

html, body { direction: ltr; text-align: left; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--text-main); }

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: opacity 0.2s ease;
}
a:hover { opacity: 0.85; }

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Buttons ===== */
.bb-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent-gold);
    color: #121212;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 16px;
    text-align: center;
    line-height: 1.2;
}
.bb-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--gold-glow);
    color: #121212;
    opacity: 1;
}
.bb-btn--ghost {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}
.bb-btn--ghost:hover { color: var(--accent-gold); }

/* ===== Header (sticky / glass) ===== */
.site-header,
header.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: padding 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled,
header.site-header.is-scrolled {
    background: rgba(18, 18, 18, 0.92);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ===== Hero ===== */
.bb-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(245, 166, 35, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 80%, rgba(215, 0, 21, 0.06) 0%, transparent 55%),
        var(--primary-bg);
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}
.bb-hero__inner { max-width: 900px; position: relative; z-index: 2; }
.bb-hero__title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin: 0 0 24px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}
.bb-hero__title span { color: var(--accent-gold); }
.bb-hero__subtitle {
    color: var(--text-muted);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    margin: 0 auto 40px;
    max-width: 620px;
    line-height: 1.55;
}

/* ===== Section ===== */
.bb-section { padding: 96px 0; }
.bb-section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin: 0 0 16px;
}
.bb-section__subtitle {
    text-align: center;
    color: var(--text-muted);
    margin: 0 auto 64px;
    max-width: 600px;
}

/* ===== Featured Products grid ===== */
.bb-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.bb-product {
    display: block;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
}
.bb-product:hover {
    transform: translateY(-6px);
    box-shadow: var(--gold-glow);
    color: var(--text-main);
    opacity: 1;
}
.bb-product__image {
    aspect-ratio: 4/3;
    background: #1a1a1a;
    overflow: hidden;
}
.bb-product__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.bb-product:hover .bb-product__image img { transform: scale(1.05); }
.bb-product__body { padding: 24px; }
.bb-product__title { font-size: 1.1rem; margin: 0 0 8px; }
.bb-product__price { color: var(--accent-gold); font-weight: 600; font-size: 1.25rem; }

/* ===== Trust Bar ===== */
.bb-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bb-trust__item { text-align: center; color: var(--text-muted); }
.bb-trust__icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
    display: block;
    line-height: 1;
}

/* ===== Social Proof / Reviews ===== */
.bb-reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.bb-review {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 32px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.bb-review__stars { color: var(--accent-gold); margin-bottom: 12px; letter-spacing: 2px; }
.bb-review p { color: var(--text-main); line-height: 1.6; }
.bb-review__author { color: var(--text-muted); margin-top: 16px; font-size: 0.9rem; }

/* ===== Bottom CTA ===== */
.bb-cta-bottom {
    text-align: center;
    padding: 120px 24px;
    background:
        linear-gradient(135deg, rgba(245, 166, 35, 0.08), rgba(215, 0, 21, 0.04)),
        var(--primary-bg);
    border-radius: var(--border-radius);
    margin: 64px auto;
    max-width: var(--container-width);
    border: 1px solid rgba(245, 166, 35, 0.12);
}

/* ===== Fade-in (scroll animations) ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ===== Mobile ===== */
@media (max-width: 900px) {
    .bb-products { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .bb-reviews { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .bb-products { grid-template-columns: 1fr; }
    .bb-trust { grid-template-columns: 1fr; gap: 32px; }
    .bb-section { padding: 64px 0; }
    .bb-cta-bottom { padding: 80px 24px; margin: 32px 16px; }
}
