/* ============================================
   HANGZHOU DAVIS SILK CO., LTD. - Official Website
   Custom Styles
   ============================================ */

:root {
    --primary: #8B4513;
    --primary-dark: #6B3410;
    --gold: #C9A96E;
    --gold-light: #E8D5B7;
    --dark: #1a1a1a;
    --darker: #0d0d0d;
    --light: #f8f5f0;
}

/* Base */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
    background-color: #fff;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(26, 26, 26, 0.95) !important;
    border-bottom: 2px solid var(--gold);
    transition: all 0.3s ease;
}

.navbar-brand {
    color: var(--gold) !important;
    letter-spacing: 1px;
    font-size: 1.05rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: 
        linear-gradient(135deg, rgba(20, 10, 30, 0.88), rgba(139, 69, 19, 0.45)),
        url('../images/silk-hero.jpg') center/cover no-repeat;
    background-color: #1a0a2e;
    color: #fff;
    position: relative;
}

.hero-section h1 {
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.35rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--gold-light);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.bg-dark .section-title,
.bg-darker .section-title {
    color: #fff;
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: var(--gold);
    margin-bottom: 1rem;
}

/* About Section */
.about-image-wrapper {
    overflow: hidden;
    border-radius: 0.5rem;
}

.image-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.6);
}

.feature-card {
    border-radius: 0.5rem;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--gold);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    display: block;
}

/* Products Section */
.product-card {
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: default;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

.product-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.product-card .card-title {
    font-weight: 600;
    color: var(--dark);
}

.product-card .card-text {
    color: #666;
    font-size: 0.95rem;
}

/* Market Section */
.market-item {
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.market-item:hover {
    background-color: var(--light);
    transform: translateY(-3px);
}

.market-icon {
    font-size: 2rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-icon {
    font-size: 1.5rem;
    color: var(--gold);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.contact-info a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--gold) !important;
}

#contactForm .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

#contactForm .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#contactForm .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 169, 110, 0.25);
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--gold));
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--gold));
}

.btn-outline-light:hover {
    background-color: var(--gold);
    border-color: var(--gold);
}

/* Footer */
.bg-darker {
    background-color: var(--darker);
}

footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--gold);
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-top:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}
