/* Elegant Luxury Styles for Rabbani Phone Website */

/* High-end Color Palette */
:root {
    --gold: #d4af37;
    --gold-light: #f4eed6;
    --gold-dark: #b08a1a;
    --black: #000000;
    --white: #ffffff;
    --light-gray: #f8f8f8;
    --dark-gray: #333333;
}

/* Luxurious Section Backgrounds */

/* Subtle Luxury Gradient Background */
.luxury-gradient {
    background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%) !important;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

/* Marble Background Effect */
.marble-bg {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.marble-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 25%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 25%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 25%),
        linear-gradient(45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.02) 75%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 10px 10px;
    transform: rotate(10deg);
    opacity: 0.3;
    z-index: 0;
}

/* Gold Accent Background */
.gold-accent {
    background-color: var(--white);
    position: relative;
}

.gold-accent::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, var(--gold) 48%, var(--gold) 52%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, var(--gold) 48%, var(--gold) 52%, transparent 52%);
    background-size: 30px 30px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* Subtle Geometric Pattern */
.geometric-pattern {
    background-color: var(--white);
    position: relative;
}

.geometric-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(30deg, var(--gold-light) 12%, transparent 12.5%, transparent 87%, var(--gold-light) 87.5%, var(--gold-light)),
        linear-gradient(150deg, var(--gold-light) 12%, transparent 12.5%, transparent 87%, var(--gold-light) 87.5%, var(--gold-light)),
        linear-gradient(30deg, var(--gold-light) 12%, transparent 12.5%, transparent 87%, var(--gold-light) 87.5%, var(--gold-light)),
        linear-gradient(150deg, var(--gold-light) 12%, transparent 12.5%, transparent 87%, var(--gold-light) 87.5%, var(--gold-light));
    background-size: 80px 140px;
    opacity: 0.05;
    z-index: 0;
}

/* Enhanced UI Elements */

/* Luxury Cards */
.luxury-card {
    background-color: var(--white);
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.luxury-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.luxury-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.luxury-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Gold Button */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
    color: var(--black);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-gold:hover::before {
    left: 100%;
}

/* Gold Text Accents */
.gold-text {
    color: var(--gold);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.text-with-line {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.text-with-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Elegant Dividers */
.elegant-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 30px 0;
    position: relative;
}

.elegant-divider::before {
    content: '◆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--white);
    padding: 0 15px;
    color: var(--gold);
    font-size: 12px;
}

/* Ensure content stays above patterns */
.container {
    position: relative;
    z-index: 2;
}

/* Section Title Enhancement */
.elegant-title {
    position: relative;
    text-align: center;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.elegant-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: translateX(-50%);
}

/* Subtle box shadow for sections */
.section-shadow {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

/* Gold border accents */
.gold-border {
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* FAQ Styles */
.faq-section {
    padding: 60px 0;
}

.faq-container .faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-header {
    padding: 20px 25px;
    background: rgba(212, 175, 55, 0.05);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-header:hover {
    background: rgba(212, 175, 55, 0.1);
}

.faq-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--dark-color);
}

.faq-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.faq-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: white;
}

.faq-item.active .faq-content {
    padding: 20px 25px;
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content p, .faq-content ol, .faq-content ul {
    margin-bottom: 15px;
    line-height: 1.6;
}

.faq-content ol li, .faq-content ul li {
    margin-bottom: 8px;
}

/* Enhanced Search Styles */
.search-container {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Product Filters */
.product-filters {
    padding: 20px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 10px;
}

.product-filters .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.product-filters .form-select {
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.product-filters .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

#filterResults {
    font-size: 14px;
    font-style: italic;
}

/* Enhanced Testimonials */
.testimonial-section {
    padding: 60px 0;
}

.trust-stats .stat-item {
    text-align: center;
    padding: 20px 15px;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.testimonial-item-enhanced {
    padding: 20px;
    margin-bottom: 20px;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.customer-details h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.customer-details small {
    font-size: 0.85rem;
}

.rating {
    display: flex;
    gap: 2px;
}

.rating i {
    font-size: 14px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.6;
    color: #444;
}

.purchase-info {
    padding: 8px 12px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 6px;
    border-left: 3px solid var(--gold);
}

.purchase-info small {
    color: var(--dark-color);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .faq-header {
        padding: 15px 20px;
    }
    
    .faq-header h5 {
        font-size: 1rem;
    }
    
    .faq-content {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-content {
        padding: 15px 20px;
    }
    
    .product-filters {
        padding: 15px;
    }
    
    .product-filters .row {
        margin: 0;
    }
    
    .product-filters .col-md-3 {
        padding: 5px;
    }
    
    .testimonial-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .customer-info {
        width: 100%;
    }
    
    .rating {
        align-self: flex-end;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .trust-stats .col-6 {
        margin-bottom: 15px;
    }
}

/* Calculator Specific Styles */
.calculator-form .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.calculator-form .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.result-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.result-item:last-child {
    border-bottom: none;
}

.calculator-results .alert {
    border-left: 4px solid var(--gold);
    background-color: rgba(212, 175, 55, 0.05);
}

.info-item {
    text-align: center;
    padding: 20px;
}

.info-item h5 {
    color: var(--gold);
    margin-bottom: 15px;
}

/* Hero Buttons Responsive */
@media (max-width: 768px) {
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        margin: 0 !important;
        width: 100%;
    }
}

/* Enhanced Search Styles */
.search-container {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Product Filters */
.product-filters {
    padding: 20px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 10px;
}

.product-filters .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.product-filters .form-select {
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.product-filters .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

#filterResults {
    font-size: 14px;
    font-style: italic;
}
