/* ===================================
   China Town Market - Stylesheet
   Classic & Elegant Design
   =================================== */

/* CSS Custom Properties */
:root {
    --burgundy: #780000;
    --burgundy-dark: #5a0000;
    --burgundy-light: #9e1b1b;
    --blush: #f5e6e0;
    --blush-light: #faf3f0;
    --blush-dark: #e8d4cc;
    --cream: #fefcfb;
    --charcoal: #2c2c2c;
    --charcoal-light: #4a4a4a;
    --warm-gray: #6b6b6b;
    --gold: #c9a962;
    --gold-light: #d4b87a;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(120, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(120, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(120, 0, 0, 0.15);
    --shadow-float: 0 12px 48px rgba(120, 0, 0, 0.18);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--charcoal);
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::before {
    content: '';
    width: 2rem;
    height: 1px;
    background: var(--burgundy);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--warm-gray);
    max-width: 600px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.text-center .section-label {
    justify-content: center;
}

.text-center .section-label::before {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--burgundy);
    color: white;
}

.btn-primary:hover {
    background: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 252, 251, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(120, 0, 0, 0.08);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--burgundy);
}

.logo-icon {
    display: flex;
    align-items: center;
    color: var(--burgundy);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--charcoal-light);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--burgundy);
    transition: var(--transition);
}

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

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(254, 252, 251, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-bottom: 1px solid rgba(120, 0, 0, 0.08);
    box-shadow: var(--shadow-md);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--charcoal);
}

.mobile-menu a:hover {
    color: var(--burgundy);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--blush-light) 0%, var(--cream) 50%, var(--blush) 100%);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(120, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(201, 169, 98, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 2rem;
}

.badge-line {
    width: 3rem;
    height: 1px;
    background: var(--burgundy);
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-title em {
    color: var(--burgundy);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--warm-gray);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Floating Stat Cards */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--burgundy), var(--burgundy-light));
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card--1 { transform: translateY(0); }
.stat-card--2 { transform: translateY(1rem); }
.stat-card--3 { transform: translateY(-0.5rem); }
.stat-card--4 { transform: translateY(1.5rem); }

.stat-card:hover {
    transform: translateY(-4px) !important;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--blush);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--warm-gray);
    letter-spacing: 0.02em;
}

/* Hero Decorations */
.hero-decor {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.decor-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(120, 0, 0, 0.04) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.decor-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.06) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
}

.decor-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(120, 0, 0, 0.03) 0%, transparent 70%);
    top: 40%;
    right: 5%;
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: 8rem 0;
    background: var(--cream);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.02);
}

.about-image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--burgundy);
    border-radius: 8px;
    z-index: 0;
    opacity: 0.2;
}

.about-seal {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: var(--burgundy);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.seal-year {
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
}

.seal-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1;
}

.about-content {
    padding-left: 1rem;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--warm-gray);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--burgundy);
    flex-shrink: 0;
}

.about-feature span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--charcoal);
}

/* ===================================
   Products Section
   =================================== */
.products {
    padding: 8rem 0;
    background: var(--blush-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(120, 0, 0, 0.6) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-tag {
    background: white;
    color: var(--burgundy);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.product-desc {
    font-size: 0.9375rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

/* ===================================
   Gallery Section
   =================================== */
.gallery {
    padding: 8rem 0;
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 1.5rem;
    margin-top: 4rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item--large {
    grid-column: span 7;
    grid-row: span 2;
}

.gallery-item--large img {
    height: 100%;
    min-height: 500px;
}

.gallery-item:not(.gallery-item--large):not(.gallery-item--wide) {
    grid-column: span 5;
}

.gallery-item:not(.gallery-item--large):not(.gallery-item--wide) img {
    height: 240px;
}

.gallery-item--wide {
    grid-column: span 12;
}

.gallery-item--wide img {
    height: 300px;
}

/* ===================================
   Visit Section
   =================================== */
.visit {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--blush) 0%, var(--blush-light) 100%);
}

.visit-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.visit-content {
    padding-right: 2rem;
}

.visit-text {
    font-size: 1.0625rem;
    color: var(--warm-gray);
    line-height: 1.9;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--warm-gray);
}

.contact-value {
    font-size: 1rem;
    color: var(--charcoal);
    font-weight: 500;
}

.contact-value:hover {
    color: var(--burgundy);
}

.hours-info {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.hours-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--charcoal);
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--blush);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row span {
    font-size: 0.9375rem;
    color: var(--charcoal-light);
}

.hours-row span:last-child {
    font-weight: 500;
    color: var(--charcoal);
}

.visit-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
    min-height: 500px;
}

.map-placeholder {
    height: 100%;
    min-height: 500px;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--charcoal);
    color: white;
    padding: 5rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.25rem;
}

.footer-logo-icon {
    color: var(--blush);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-contact p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-card--1 { animation: float 6s ease-in-out infinite; }
.stat-card--2 { animation: float 6s ease-in-out 1s infinite; }
.stat-card--3 { animation: float 6s ease-in-out 2s infinite; }
.stat-card--4 { animation: float 6s ease-in-out 3s infinite; }

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-stats {
        max-width: 500px;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image img {
        height: 500px;
    }
    
    .about-content {
        padding-left: 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item--large {
        grid-column: span 12;
    }
    
    .gallery-item:not(.gallery-item--large):not(.gallery-item--wide) {
        grid-column: span 6;
    }
    
    .visit-container {
        grid-template-columns: 1fr;
    }
    
    .visit-content {
        padding-right: 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 7rem 0 3rem;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .stat-card {
        transform: translateY(0) !important;
    }
    
    .stat-card:hover {
        transform: translateY(-4px) !important;
    }
    
    .about-seal {
        width: 90px;
        height: 90px;
        bottom: -20px;
        right: -10px;
    }
    
    .seal-year {
        font-size: 0.5rem;
    }
    
    .seal-number {
        font-size: 1.25rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item:not(.gallery-item--large):not(.gallery-item--wide) {
        grid-column: span 12;
    }
    
    .gallery-item--large img {
        min-height: 300px;
    }
    
    .gallery-item--wide img {
        height: 200px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero {
        padding: 6rem 0 2rem;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    
    .about-image img {
        height: 400px;
    }
    
    .visit-map {
        min-height: 300px;
    }
    
    .map-placeholder iframe {
        min-height: 300px;
    }
}
