/* ==========================================================================
   High-End Flooring Brand Visual Identity System
   Theme: Natural Luxury & Craftsmanship (自然奢華與匠心工藝)
   ========================================================================== */

/* 1. Design Tokens & Custom Properties */
:root {
    /* Harmonious Color Palette */
    --color-bg-base: #FCF9F5;       /* Warm Alabaster Cream */
    --color-bg-white: #FFFFFF;      /* Clean White */
    --color-bg-card: #FFFFFF;
    --color-text-main: #1D1714;     /* Deep Timber Charcoal */
    --color-text-muted: #6E625D;    /* Warm Earth Grey */
    --color-text-light: #9B8E88;    /* Muted Bark */
    --color-accent-gold: #C5A059;   /* Brushed Champagne Gold */
    --color-accent-gold-dark: #A98443;
    --color-accent-dark: #2C221E;   /* Deep Espresso Ebony */
    --color-accent-bronze: #4D3C34; /* Burnt Umber */
    
    /* Semantic Colors */
    --border-color-soft: #ECE7E1;   /* Soft Ivory Border */
    --border-color-medium: #DFD9D0;
    --shadow-premium: 0 10px 30px rgba(44, 34, 30, 0.04), 0 1px 3px rgba(44, 34, 30, 0.02);
    --shadow-hover: 0 20px 45px rgba(44, 34, 30, 0.08), 0 4px 12px rgba(197, 160, 89, 0.04);
    
    /* Layout & Spacing */
    --max-width: 1280px;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
}

/* 2. Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--color-accent-dark);
    font-weight: 600;
    line-height: 1.25;
}

p {
    color: var(--color-text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--color-border-color-medium);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-gold);
}

/* 3. Reusable Layout Components */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background-color: var(--color-accent-dark);
    color: var(--color-bg-base);
}

.section-dark h2, .section-dark h3 {
    color: var(--color-bg-white);
}

.section-dark p {
    color: var(--color-text-light);
}

/* Section Titles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-gold);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1.05rem;
}

/* Beautiful Elegant Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-accent-dark);
    color: var(--color-bg-white);
    border: 1px solid var(--color-accent-dark);
}

.btn-primary:hover {
    background-color: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(197, 160, 89, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent-dark);
    border: 1px solid var(--color-accent-dark);
}

.btn-secondary:hover {
    background-color: var(--color-accent-dark);
    color: var(--color-bg-white);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--color-accent-gold);
    color: var(--color-bg-white);
    border: 1px solid var(--color-accent-gold);
}

.btn-gold:hover {
    background-color: var(--color-accent-gold-dark);
    border-color: var(--color-accent-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.15);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--color-bg-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
    border-color: var(--color-bg-white);
    background-color: rgba(255, 255, 255, 0.05);
}

/* 4. Global Navigation Header */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    background-color: rgba(252, 249, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(239, 236, 232, 0.5);
    transition: var(--transition-smooth);
}

.header-nav.scrolled {
    height: 70px;
    background-color: rgba(252, 249, 245, 0.95);
    box-shadow: 0 4px 20px rgba(44, 34, 30, 0.04);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-light);
    display: block;
    margin-top: -3px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-main);
    letter-spacing: 0.5px;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-accent-gold);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--color-accent-gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .active {
    color: var(--color-accent-gold);
}

.nav-links .active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-accent-dark);
    transition: var(--transition-smooth);
}

/* 5. Stunning Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--color-accent-dark);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    transform: scale(1.05);
    animation: zoomParallax 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(29, 23, 20, 0.9) 30%, rgba(29, 23, 20, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 750px;
    color: var(--color-bg-white);
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 25px;
    color: var(--color-bg-white);
}

.hero-title span {
    color: var(--color-accent-gold);
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

@keyframes zoomParallax {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* 6. Grid Systems & Info Cards (About/Factory) */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Factory / Strength Section */
.image-collage {
    position: relative;
    height: 480px;
}

.collage-img-1 {
    position: absolute;
    width: 80%;
    height: 380px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow-premium);
    top: 0;
    left: 0;
    border: 1px solid var(--border-color-soft);
}

.collage-img-2 {
    position: absolute;
    width: 55%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    bottom: 0;
    right: 0;
    border: 4px solid var(--color-bg-white);
}

.strength-list {
    margin-top: 30px;
    list-style: none;
}

.strength-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.strength-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent-gold);
    flex-shrink: 0;
    margin-top: 3px;
}

.strength-text h4 {
    font-size: 1.15rem;
    margin-bottom: 5px;
}

/* 7. Product Catalog Showcase Cards */
.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 45px;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color-medium);
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--color-text-muted);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-bg-white);
    box-shadow: 0 4px 15px rgba(44, 34, 30, 0.08);
}

.product-card {
    background-color: var(--color-bg-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(239, 236, 232, 0.6);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent-gold);
}

.product-img-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
    background-color: #eee;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-accent-gold);
    color: var(--color-bg-white);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-meta {
    font-size: 0.8rem;
    color: var(--color-accent-gold);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--color-accent-dark);
}

.product-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.product-specifications {
    border-top: 1px solid var(--border-color-soft);
    padding-top: 15px;
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.product-spec-item strong {
    color: var(--color-accent-dark);
}

.product-action {
    display: block;
    text-align: center;
    background-color: var(--color-bg-base);
    border-top: 1px solid var(--border-color-soft);
    padding: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    transition: var(--transition-fast);
}

.product-card:hover .product-action {
    background-color: var(--color-accent-gold);
    color: var(--color-bg-white);
}

/* 8. SEO Dynamic Blog Listing Grid */
.blog-card {
    background-color: var(--color-bg-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(239, 236, 232, 0.6);
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.blog-img-wrapper {
    height: 220px;
    overflow: hidden;
    background-color: #eee;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
    display: block;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-title a:hover {
    color: var(--color-accent-gold);
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-link:hover {
    color: var(--color-accent-dark);
}

/* 9. Premium Inquiry Lead Forms */
.contact-wrapper {
    background-color: var(--color-bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color-soft);
    display: grid;
    grid-template-columns: 2fr 3fr;
    overflow: hidden;
}

.contact-info-panel {
    background-color: var(--color-accent-dark);
    color: var(--color-bg-base);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.contact-info-panel::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.08) 0%, transparent 70%);
    top: -50px;
    right: -50px;
}

.contact-info-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--color-bg-white);
    margin-bottom: 15px;
}

.contact-details {
    list-style: none;
    margin: 40px 0;
}

.contact-detail-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-detail-item h5 {
    color: var(--color-accent-gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
    font-family: 'Inter', sans-serif;
}

.contact-detail-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.contact-form-panel {
    padding: 50px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    margin-bottom: 6px;
}

.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color-medium);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    transition: var(--transition-fast);
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--color-accent-gold);
    background-color: var(--color-bg-white);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.form-status {
    padding: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: none;
}

.form-status.success {
    display: block;
    background-color: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid #2E7D32;
}

.form-status.error {
    display: block;
    background-color: #FFEBEE;
    color: #C62828;
    border-left: 4px solid #C62828;
}

/* 10. Reusable Elegant Footer */
.footer {
    background-color: #171210;
    color: rgba(255,255,255,0.6);
    padding: 80px 0 30px 0;
    border-top: 4px solid var(--color-accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-column h4 {
    color: var(--color-bg-white);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

.footer-about h2 {
    color: var(--color-bg-white);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--color-accent-gold);
    padding-left: 5px;
}

.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.4);
}

.footer-copyright a:hover {
    color: var(--color-accent-gold);
}

/* 11. Custom Interactive Product Detail Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background-color: rgba(29, 23, 20, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--color-bg-white);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(29, 23, 20, 0.05);
    color: var(--color-text-main);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background-color: var(--color-accent-gold);
    color: var(--color-bg-white);
}

.modal-img-wrapper {
    background-color: #eee;
    height: 100%;
    min-height: 400px;
}

.modal-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 45px;
}

.modal-category {
    font-size: 0.8rem;
    color: var(--color-accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--color-accent-dark);
}

.modal-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.modal-specs-table tr {
    border-bottom: 1px solid var(--border-color-soft);
}

.modal-specs-table td {
    padding: 10px 0;
    font-size: 0.9rem;
}

.modal-specs-table td.spec-name {
    font-weight: 600;
    color: var(--color-accent-dark);
    width: 40%;
}

.modal-specs-table td.spec-val {
    color: var(--color-text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-content {
        grid-template-columns: 1fr;
    }
    .modal-img-wrapper {
        height: 300px;
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .contact-info-panel {
        padding: 40px;
    }
    .contact-form-panel {
        padding: 40px;
    }
    .nav-links {
        display: none; /* In production mobile menu toggles */
    }
    .hamburger {
        display: flex;
    }
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .grid-4, .grid-3 {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 0 20px;
    }
}
