/**
 * Hero Section Component
 * Main hero banner for homepage and landing pages
 * 
 * @package Digidaad_Theme
 * @since 2.6.0
 */

/* ============================================
 * HERO SECTION
 * ============================================ */
.sv-hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    background: var(--sv-color-warm);
    overflow: hidden;
}

@media (min-width: 768px) {
    .sv-hero {
        min-height: auto;
    }
}

.sv-hero__inner {
    display: grid;
    gap: var(--sv-space-8);
    align-items: center;
    position: relative;
    z-index: 2;
    padding: var(--sv-space-6) 0;
}

@media (min-width: 768px) {
    .sv-hero__inner {
        grid-template-columns: 1fr 1fr;
        padding: var(--sv-space-8) 0;
    }
}

/* ============================================
 * HERO CONTENT
 * ============================================ */
.sv-hero__content {
    max-width: 560px;
}

.sv-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sv-space-2);
    background: var(--sv-color-accent);
    color: var(--sv-color-white);
    font-size: var(--sv-font-size-xs);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: var(--sv-radius-full);
    margin-bottom: var(--sv-space-6);
}

.sv-hero__badge svg {
    width: 14px;
    height: 14px;
}

.sv-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--sv-color-gray-900);
    margin-bottom: var(--sv-space-6);
}

.sv-hero__title-highlight {
    color: var(--sv-color-accent);
}

.sv-hero__subtitle {
    font-size: var(--sv-font-size-lg);
    color: var(--sv-color-gray-600);
    line-height: 1.7;
    margin-bottom: var(--sv-space-8);
    max-width: 480px;
}

@media (min-width: 768px) {
    .sv-hero__subtitle {
        font-size: var(--sv-font-size-xl);
    }
}

/* CTA Buttons */
.sv-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sv-space-4);
    margin-bottom: var(--sv-space-8);
}

/* Reviews Badge */
.sv-hero__reviews {
    display: flex;
    align-items: center;
    gap: var(--sv-space-3);
}

.sv-hero__reviews-stars {
    display: flex;
    gap: 2px;
    color: var(--sv-color-star);
}

.sv-hero__reviews-stars svg {
    width: 18px;
    height: 18px;
    fill: var(--sv-color-star);
}

.sv-hero__reviews-text {
    font-size: var(--sv-font-size-sm);
    color: var(--sv-color-gray-600);
}

.sv-hero__reviews-text strong {
    color: var(--sv-color-gray-900);
}

/* ============================================
 * HERO VISUAL (Right side)
 * ============================================ */
.sv-hero__visual {
    position: relative;
}

.sv-hero__image {
    border-radius: var(--sv-radius-2xl);
    overflow: hidden;
    box-shadow: var(--sv-shadow-xl);
}

.sv-hero__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Video Container */
.sv-hero__video-container {
    position: relative;
    border-radius: var(--sv-radius-2xl);
    overflow: hidden;
    box-shadow: var(--sv-shadow-xl);
}

.sv-hero__video {
    width: 100%;
    height: auto;
    display: block;
}

.sv-hero__video-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.sv-hero__video-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all var(--sv-transition);
    border: none;
}

.sv-hero__video-dot.active {
    background: var(--sv-color-white);
    width: 24px;
    border-radius: 4px;
}

/* Eco Badge */
.sv-hero__eco-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--sv-color-accent);
    color: var(--sv-color-white);
    padding: var(--sv-space-3) var(--sv-space-4);
    border-radius: var(--sv-radius-lg);
    font-size: var(--sv-font-size-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--sv-space-2);
    z-index: 10;
}

.sv-hero__eco-badge svg { 
    width: 18px; 
    height: 18px; 
}

/* Float Badge */
.sv-hero__float-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--sv-color-white);
    padding: var(--sv-space-4);
    border-radius: var(--sv-radius-xl);
    box-shadow: var(--sv-shadow-lg);
    display: none;
    align-items: center;
    gap: var(--sv-space-3);
    z-index: 10;
}

@media (min-width: 768px) { 
    .sv-hero__float-badge { 
        display: flex; 
    } 
}

.sv-hero__float-icon {
    width: 48px;
    height: 48px;
    background: var(--sv-color-accent-light);
    border-radius: var(--sv-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sv-color-accent);
}

.sv-hero__float-icon svg { 
    width: 24px; 
    height: 24px; 
}

.sv-hero__float-text strong { 
    display: block; 
    font-size: var(--sv-font-size-lg); 
    font-weight: 700; 
    color: var(--sv-color-gray-900); 
}

.sv-hero__float-text span { 
    font-size: var(--sv-font-size-sm); 
    color: var(--sv-color-gray-500); 
}

/* ============================================
 * HERO VARIANTS
 * ============================================ */

/* Centered Hero */
.sv-hero--centered {
    text-align: center;
}

.sv-hero--centered .sv-hero__inner {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.sv-hero--centered .sv-hero__content {
    max-width: none;
}

.sv-hero--centered .sv-hero__subtitle {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sv-hero--centered .sv-hero__cta {
    justify-content: center;
}

.sv-hero--centered .sv-hero__reviews {
    justify-content: center;
}

/* Dark Hero */
.sv-hero--dark {
    background: var(--sv-color-gray-900);
}

.sv-hero--dark .sv-hero__title {
    color: var(--sv-color-white);
}

.sv-hero--dark .sv-hero__subtitle {
    color: var(--sv-color-gray-400);
}

.sv-hero--dark .sv-hero__reviews-text {
    color: var(--sv-color-gray-400);
}

.sv-hero--dark .sv-hero__reviews-text strong {
    color: var(--sv-color-white);
}

/* Compact Hero (for category pages) */
.sv-hero--compact {
    min-height: auto;
    padding: var(--sv-space-10) 0;
}

.sv-hero--compact .sv-hero__inner {
    padding: 0;
}

.sv-hero--compact .sv-hero__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: var(--sv-space-4);
}

.sv-hero--compact .sv-hero__subtitle {
    font-size: var(--sv-font-size-base);
    margin-bottom: var(--sv-space-6);
}

/* ============================================
 * BACKGROUND DECORATION
 * ============================================ */
.sv-hero__bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.05;
    pointer-events: none;
}

.sv-hero__bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, var(--sv-color-accent-lighter) 100%);
    opacity: 0.5;
    pointer-events: none;
}
