/**
 * Shenzhen SourceX International Trade Co. Ltd
 * Custom Styles
 */

/* ============================================
   General Styles
   ============================================ */
:root {
    --primary-green: #4CAF50;
    --dark-green: #2E7D32;
    --light-green: #A5D6A7;
    --white: #FFFFFF;
    --dark-gray: #333333;
    --light-gray: #F5F5F5;
    
    /* Legacy mappings for compatibility */
    --primary-color: #4CAF50;
    --primary-light: #A5D6A7;
    --primary-dark: #2E7D32;
    --secondary-color: #6c757d;
    --success-color: #4CAF50;
    --dark-color: #333333;
    --light-bg: #F5F5F5;
    --accent-color: #A5D6A7;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--dark-gray);
    background-color: var(--white);
}

main {
    flex: 1;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Hero Background Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(65, 65, 65, 0.92) 0%, rgba(61, 66, 61, 0.88) 100%);
    z-index: 1;
}

/* Slider Controls */
.hero-slider-prev,
.hero-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(90, 90, 90, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.hero-slider-prev {
    left: 20px;
}

.hero-slider-next {
    right: 20px;
}

/* Slider Indicators */
.hero-slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-slider-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-slider-indicators button.active,
.hero-slider-indicators button:hover {
    background: white;
    border-color: white;
}

.hero-section .container {
    position: relative;
    z-index: 5;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* ============================================
   Product Cards
   ============================================ */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.product-card .card-img-wrapper {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: var(--light-bg);
}

.product-card .card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-card .card-text {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.product-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-card .badge-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--success-color);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(165, 214, 167, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--dark-green);
}

.service-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* ============================================
   Why Choose Us
   ============================================ */
.why-choose-section {
    background: var(--dark-color);
    color: white;
}

.feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(165, 214, 167, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--light-green);
}

.feature-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ============================================
   About Page Styles
   ============================================ */
.about-hero {
    background: linear-gradient(135deg, #2C5530 0%, #1a3d1f 100%);
    color: white;
    padding: 4rem 0;
}

.mission-vision-card {
    padding: 2rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.mission-vision-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.mission-vision-card.mission .icon {
    background: rgba(165, 214, 167, 0.3);
    color: var(--dark-green);
}

.mission-vision-card.vision .icon {
    background: rgba(165, 214, 167, 0.3);
    color: var(--dark-green);
}

/* ============================================
   Product Detail Page
   ============================================ */
.product-gallery {
    border-radius: 12px;
    overflow: hidden;
    background: var(--light-bg);
}

.product-gallery .main-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.product-info .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-info .quote-badge {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.contact-options .contact-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s ease;
}

.contact-options .contact-option:hover {
    background: var(--light-bg);
}

.contact-options .contact-option.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.contact-options .contact-option.whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
}

/* ============================================
   Contact Page
   ============================================ */
.contact-info-card {
    padding: 1.5rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.contact-info-card .icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(165, 214, 167, 0.3);
    color: var(--dark-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.whatsapp-cta {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

/* ============================================
   Forms
   ============================================ */
.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.2);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--dark-green);
    border-color: var(--dark-green);
}

.btn-success {
    background: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background: #157347;
    border-color: #146c43;
}

/* ============================================
   Category Filter
   ============================================ */
.category-filter .btn {
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
}

.category-filter .btn-outline-primary:hover,
.category-filter .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb-section {
    background: var(--light-bg);
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* ============================================
   Utilities
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-light-blue {
    background-color: rgba(165, 214, 167, 0.15);
}

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
