/* ============================================================
   HERO COMPONENT — works across all 6 themes
   Variants: text | banner | video | slider
   ============================================================ */

.hero-section {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* ──────────────────────────────────────────
   TEXT VARIANT
   Full-width block coloured with --primary,
   centred title + subtitle.
   ────────────────────────────────────────── */
.hero-text {
    min-height: var(--hero-h, 380px);
    background: var(--primary, var(--primary-color, #1abc9c));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 32px;
    text-align: center;
}
.hero-text-inner { max-width: 680px; width: 100%; }
.hero-text .hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.hero-text .hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: rgba(255,255,255,.82);
    margin-top: 14px;
    line-height: 1.5;
}

/* ──────────────────────────────────────────
   BANNER VARIANT
   Full-width image with dark overlay + text.
   ────────────────────────────────────────── */
.hero-banner {
    min-height: var(--hero-h, 460px);
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,var(--hero-overlay, 0.38));
}
.hero-banner-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 48px 32px;
    max-width: 720px;
    width: 100%;
}
.hero-banner .hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0;
    text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.hero-banner .hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: rgba(255,255,255,.85);
    margin-top: 14px;
    line-height: 1.5;
}
.hero-banner-empty {
    min-height: var(--hero-h, 460px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #888;
    background: #f3f4f6;
    font-size: 14px;
}

/* ──────────────────────────────────────────
   VIDEO VARIANT
   16:9 YouTube embed + optional caption row.
   ────────────────────────────────────────── */
.hero-video { background: #000; }
.hero-video-wrap {
    position: relative;
    padding-bottom: 42.85%;   /* ~2.33:1 — slightly cinematic */
    height: 0;
    overflow: hidden;
}
.hero-video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
.hero-video-caption {
    padding: 20px 28px;
    background: var(--page-bg, #f5f5f7);
    border-top: 1px solid var(--border-color, #e5e7eb);
}
.hero-video-caption .hero-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin: 0;
}

/* ──────────────────────────────────────────
   SLIDER VARIANT  (placeholder — JS needed)
   ────────────────────────────────────────── */
.hero-slider {
    min-height: var(--hero-h, 460px);
    background: var(--card-bg, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary, #6b7280);
    font-size: 15px;
    font-weight: 600;
}

/* ──────────────────────────────────────────
   Responsive tweaks
   ────────────────────────────────────────── */
@media (max-width: 600px) {
    .hero-text,
    .hero-banner { min-height: 260px; padding: 48px 20px; }
    .hero-video-wrap { padding-bottom: 56.25%; } /* 16:9 on mobile */
}

/* =========================================================================
   WOODMART POLISH LAYER for hero variants
   ========================================================================= */

.hero-section {
    border-radius: 14px;
    margin-bottom: 24px;
    position: relative;
    isolation: isolate;
}

/* ── TEXT variant: gradient background + animated entrance ── */
.hero-text {
    background: linear-gradient(135deg,
        var(--primary, var(--primary-color, #1abc9c)) 0%,
        color-mix(in srgb, var(--primary, var(--primary-color, #1abc9c)) 65%, #000) 100%) !important;
    position: relative;
    overflow: hidden;
}
.hero-text::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 60% at 20% 30%, rgba(255,255,255,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 55% 55% at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero-text-inner {
    position: relative;
    z-index: 1;
    animation: hero-fade-up 0.7s cubic-bezier(0.22,0.61,0.36,1) both;
}
.hero-text .hero-title {
    letter-spacing: -0.025em;
    font-weight: 800;
}
.hero-text .hero-subtitle { margin-top: 16px; }

/* ── BANNER variant: stronger gradient overlay + CTA ── */
.hero-banner {
    border-radius: 14px;
    overflow: hidden;
    background-position: center !important;
}
.hero-banner-overlay {
    background: linear-gradient(135deg,
        rgba(0,0,0,0.65) 0%,
        rgba(0,0,0,0.45) 45%,
        rgba(0,0,0,0.25) 100%) !important;
}
.hero-banner-inner {
    animation: hero-fade-up 0.7s cubic-bezier(0.22,0.61,0.36,1) both;
}
.hero-banner .hero-title { letter-spacing: -0.025em; }
.hero-banner .hero-cta {
    display: inline-block;
    margin-top: 22px;
    padding: 13px 30px;
    background: #fff;
    color: #111;
    border-radius: 100px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.hero-banner .hero-cta:hover {
    background: var(--primary-color, #111);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

/* ── VIDEO variant: refined caption ── */
.hero-video {
    border-radius: 14px;
    overflow: hidden;
}
.hero-video-caption {
    padding: 20px 28px;
    background: var(--surface, #fff);
    border-top: 1px solid rgba(0,0,0,0.06);
}
.hero-video-caption .hero-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.018em;
}

/* ── Entrance animation ── */
@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile refinements ── */
@media (max-width: 768px) {
    .hero-section { border-radius: 10px; margin-bottom: 18px; }
    .hero-text .hero-title,
    .hero-banner .hero-title { font-size: clamp(1.75rem, 6vw, 2.2rem) !important; }
    .hero-banner .hero-cta { padding: 11px 22px; font-size: 12px; }
}
