/*
Theme Name: Samsah Theme
Description: A modular WordPress theme for Samar & Sahar aluminum and glass company with separate manageable sections
Author: Manus AI
Version: 1.0
Text Domain: samsah-theme
*/

body {
    font-family: 'Kufam', sans-serif;
    background-color: #f8f8f8;
    direction: rtl;
    line-height: 1.6;
}

/* Hero section with background image and gradient overlay */
.hero-section-with-image {
    background-image: linear-gradient(to bottom, rgba(111, 63, 157, 0.7), rgba(139, 92, 246, 0.7)),
                      url('https://placehold.co/1920x600/6F3F9D/FFFFFF?text=Replace+with+your+hero_image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
}

/* Map container for responsive iframe */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 0.75rem;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero-section-with-image {
        min-height: 400px;
        padding: 3rem 0;
    }
    
    .hero-section-with-image h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .hero-section-with-image p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile navigation improvements */
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Mobile form improvements */
    .max-w-xl {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    /* Mobile grid improvements */
    .grid {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section-with-image h1 {
        font-size: 2rem !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Mobile project cards */
    .bg-purple-600 {
        height: 200px !important;
    }
    
    /* Mobile benefit cards */
    .bg-white.p-6 {
        padding: 1rem;
    }
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
input:focus,
textarea:focus,
button:focus {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero-section-with-image {
        background: #6F3F9D;
        color: white;
    }
    
    nav, .map-container, #ideaOutput, #errorMessage {
        display: none;
    }
    #image-lightbox-modal {
    height: 100vh;
    width: 100vw;
}

#image-lightbox-modal > div {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
}
}

