/**
 * Hero Section Styles
 *
 * @package Avraham_Theme
 */

/* ==========================================================================
   Hero Section Base
   ========================================================================== */

   .hero-section {
    position: relative;
    min-height: 684px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background-color: var(--color-primary);
}

/* Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* object-position: center; */
}

/* Container */
.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    /* align-items: center; */
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-3xl);
    margin: 0 auto;
    padding: 3rem var(--container-padding);
    gap: var(--space-8);
}

/* ==========================================================================
   Hero Content (Right Side in RTL)
   ========================================================================== */

.hero-content {
    flex: 1;
    max-width: 600px;
    padding: 0;
}

/* Small Text */
.hero-small-text {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: var(--space-3);
    opacity: 0.9;
    letter-spacing: 0.02em;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.20);
    padding: 0.5rem 1rem;
}

/* Title */
.hero-title {
    font-size: clamp(1.2rem, 5vw, 3.1rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: var(--space-6);
}

.hero-title span.highlight,
.hero-title strong {
    color: var(--color-secondary);
}

/* Features List */
.hero-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: flex-start;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: var(--space-2);
    color: var(--color-white);
    font-size: var(--text-base);
}

.hero-feature-item .feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-feature-item .feature-icon svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.hero-feature-item .feature-text {
    font-weight: 400;
}

.hero-feature-item .feature-text b,
.hero-feature-item .feature-text strong {
    font-weight: 700;
}

/* CTA Button */
.hero-cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background-color: var(--color-white);
    color: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-base);
    /* flex: 0 0 100%; */
    margin-bottom: 5rem;
}

.hero-cta-button:hover {
    background-color: #F6B38D;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* .hero-cta-button svg {
    transition: transform var(--transition-base);
    transform: scaleX(-1);
} */

.hero-cta-button:hover svg {
    /* transform: scaleX(-1) translateX(-4px); */
    color: white;
    fill: white;
}

/* Google Reviews */
.hero-google-reviews {
    display: inline-flex;
    align-items: center;
    flex-direction: row;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    /* background-color: var(--color-white); */
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    border-radius: 18px;
    border: 1px solid #FFF;
    border-radius: 18px;
    border: 1px solid #FFF;
}

.google-stars-image {
    height: 15px;
    width: auto;
}

.google-stars {
    display: flex;
    flex-direction: row;
    gap: 2px;
}

.google-stars svg {
    width: 16px;
    height: 16px;
}

.google-info {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: var(--space-2);
    color: var(--color-gray-700);
    font-size: var(--text-sm);
    margin-bottom: 0.3rem;
}

.google-rating {
    font-weight: 700;
    color: var(--color-gray-900);
    font-size: var(--text-base);
}

.google-text {
    color: white;
    font-size: var(--text-sm);
}

.google-icon {
    width: 45px;
    height: auto;
}

/* ==========================================================================
   Services Panel (Left Side)
   ========================================================================== */

.hero-services-panel {
    flex-shrink: 0;
    width: 410px;
    background-color: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    max-height: calc(100vh - var(--header-height) - var(--space-16));
    overflow-y: auto;
}

/* Mobile Services Panel - Hidden on desktop, shown on mobile */
.hero-services-panel-mobile {
    display: none;
    width: 100%;
    background-color: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    padding: var(--space-6);
    flex-direction: column;
    gap: var(--space-5);
    margin: 0 auto;
    max-width: var(--container-3xl);
}

/* Panel Title */
.panel-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    padding-bottom: var(--space-4);
    /* border-bottom: 1px solid var(--color-gray-200); */
}

/* Panel Categories */
.panel-categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.panel-category {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.category-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

.category-view-all {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.category-view-all:hover {
    color: var(--color-secondary-dark);
}

.category-view-all svg {
    transition: transform var(--transition-fast);
}

.category-view-all:hover svg {
    transform: translateX(-3px);
}

/* Category Items Grid */
.category-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background-color: var(--color-gray-50);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
    text-align: center;
    background: rgba(231, 202, 186, 0.24);
}

.category-item:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-item .item-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: filter var(--transition-fast);
}

.category-item:hover .item-icon {
    filter: brightness(0) invert(1);
}

.category-item .item-text {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-gray-700);
    line-height: 1.3;
    transition: color var(--transition-fast);
}

.category-item:hover .item-text {
    color: var(--color-white);
}

/* Panel Bottom Links */
.panel-bottom-links {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-gray-200);
}

.bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.bottom-link:hover {
    transform: translateY(-2px);
}

.bottom-link-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    padding: var(--space-2);
    background-color: var(--color-gray-100);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.bottom-link:hover .bottom-link-icon {
    background-color: var(--color-primary);
    filter: brightness(0) invert(1);
}

.bottom-link-text {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-gray-600);
    transition: color var(--transition-fast);
}

.bottom-link:hover .bottom-link-text {
    color: var(--color-primary);
}

/* Panel Contact Button */
.panel-contact-button {
    border-radius: 100px !important;
    background: #153C6D;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.panel-contact-button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.panel-contact-button svg {
    transition: transform var(--transition-fast);
}

.panel-contact-button:hover svg {
    transform: translateX(-3px);
}

/* Quick Actions */
.panel-quick-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: auto;
}

.quick-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-size: var(--text-xs);
    font-weight: 600;
    transition: all var(--transition-base);
}

.quick-action.whatsapp-action {
    background-color: #25D366;
    color: var(--color-white);
}

.quick-action.whatsapp-action:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-action.phone-action {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.quick-action.phone-action:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet Landscape */
@media (max-width: 1200px) {
    .hero-container {
        padding: 3rem var(--space-6);
    }
    
    .hero-services-panel {
        width: 340px;
        padding: var(--space-5);
    }
    
    .hero-content {
        max-width: 500px;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 4vw, 2.75rem);
    }
}

/* Tablet Portrait */
@media (max-width: 992px) {
    .hero-section {
        min-height: 700px;
        position: relative;
    }
    
    .hero-container {
        flex-direction: column;
        padding: calc(var(--header-height) + var(--space-6)) var(--space-6) calc(var(--space-16) + var(--space-8));
        gap: var(--space-6);
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        padding: var(--space-6) 0;
        align-items: center;
    }
    
    .hero-features-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: var(--space-4);
    }
    
    .hero-feature-item {
        flex-direction: column;
        text-align: center;
        gap: var(--space-1);
    }
    
    .hero-feature-item .feature-icon {
        order: 0;
    }
    
    .hero-feature-item .feature-text {
        font-size: var(--text-xs);
    }
    
    .hero-cta-button {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Hide services panel on tablet/mobile */
    .hero-services-panel {
        display: none;
    }
    
    /* Hide mobile services panel on tablet */
    .hero-services-panel-mobile {
        display: none;
    }
    
    /* Google reviews - absolute position at bottom */
    .hero-google-reviews {
        position: absolute;
        bottom: var(--space-6);
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-content {
   
        align-items: center !important;
    }
    
    .hero-section {
        min-height: 82vh;
        /* padding-bottom: var(--space-20); */
    }
    
    .hero-container {
        padding: calc(var(--header-height-mobile) + var(--space-4)) var(--space-4) var(--space-4);
        gap: var(--space-4);
    }
    
    .hero-content {
        padding: var(--space-4) 0;
        align-items: center;
    }
    
    .hero-small-text {
        font-size: var(--text-xs);
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: var(--space-4);
        text-align: center;
    }
    
    .hero-features-list {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: var(--space-3);
        margin-bottom: var(--space-4);
        width: 100%;
    }
    
    .hero-feature-item {
        flex-direction: column;
        text-align: center;
        font-size: 1.1rem;
        gap: var(--space-1);
        /* flex: 1; */
        max-width: 120px;
    }
    
    .hero-feature-item .feature-icon {
        order: 0;
    }
    
    .hero-feature-item .feature-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .hero-feature-item .feature-text {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .hero-cta-button {
        padding: var(--space-3) var(--space-10);
        font-size: var(--text-sm);
        margin-bottom: 0;
        margin-top: 1rem;
    }
    
    /* Google reviews - absolute at bottom */
    .hero-google-reviews {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        flex-wrap: nowrap;
        padding: var(--space-2) var(--space-4);
        gap: var(--space-2);
        /* white-space: nowrap; */
        width: max-content;
    }
    
    .google-icon {
        width: 40px;
        height: 40px;
    }
    
    .google-info {
        font-size: var(--text-xs);
    }
    
    .google-rating {
        font-size: var(--text-sm);
    }
    
    .google-stars svg {
        width: 14px;
        height: 14px;
    }
    
    /* Services Panel - Hidden on mobile */
    .hero-services-panel {
        display: none;
    }
    
    /* Mobile Services Panel - Show on mobile */
    .hero-services-panel-mobile {
        /* background: red; */
        padding: 1rem !important;
        display: flex;
        padding: var(--space-4);
        margin: var(--space-4) auto;
        width: 94%;
        margin-bottom: 1rem;
        box-shadow: unset !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-container {
        padding: 1rem 1rem;
        /* height: 81vh; */
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-features-list {
        gap: unset !important;
    }
    
    .hero-feature-item {
        max-width: 100px;
        width: 100%;
        flex: 0 0 37.3% !important;
        min-width: 7rem;
    }
    
    .hero-feature-item .feature-text {
        font-size: 11px;
        order: 1;
        line-height: 1.5;
    }
    
    .hero-google-reviews {
        padding: var(--space-2) var(--space-4);
        background: #FFFFFF;
    }
    
    .google-text {
        font-size: 14px;
        color: #000;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.hero-services-panel {
    animation: fadeInLeft 0.8s ease-out 0.2s both;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .hero-services-panel {
        animation: none;
    }
    
    .hero-cta-button:hover,
    .category-item:hover,
    .bottom-link:hover,
    .quick-action:hover {
        transform: none;
    }
}

.hero-cta-button:hover svg path {
    color: white;
    fill: white;
}