:root {
    --primary-color: #2C2C2C; /* Ink Black */
    --secondary-color: #A69080; /* Muted Bronze/Warm Taupe */
    --accent-color: #D4C5B0; /* Light Beige */
    --bg-color: #FDFDFB; /* Warm White/Rice Paper */
    --surface-color: #FFFFFF;
    --text-color: #4A4A4A;
    --light-text: #888888;
    --font-heading: 'Noto Serif TC', serif;
    --font-body: 'Lato', sans-serif;
    --transition: all 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .logo {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
}

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

ul {
    list-style: none;
}

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

.section {
    padding: 6rem 0;
}

.line-divider {
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 1.5rem auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(253, 253, 251, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.03);
    padding: 1.2rem 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 80px;
    width: auto;
}

/* Inline logo in text */
.inline-logo {
    height: 1.4em;
    width: auto;
    vertical-align: middle;
    margin: 0 0.1em;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
}

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

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

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: #EBEBE6; /* Fallback */
    /* Minimalist abstract background suggestion */
    background: radial-gradient(circle at 50% 50%, #F5F5F0 0%, #E0E0D8 100%);
    overflow: hidden;
}

.hero::before {
    content: ''; /* Decorative circle */
    position: absolute;
    width: 60vh;
    height: 60vh;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-content {
    z-index: 2;
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
    text-indent: 0.2em; /* visual balance for letter spacing */
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    letter-spacing: 0.1em;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--light-text);
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--primary-color);
    color: var(--surface-color);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    border: 1px solid var(--primary-color);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* About Section */
.about-section {
    background-color: var(--surface-color);
    text-align: center;
}

.section-header h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 300;
    line-height: 2;
}

.legal-text strong {
    font-weight: 600;
    color: var(--primary-color);
}

.certificate-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.cert-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.cert-link:hover {
    background-color: var(--secondary-color);
    color: var(--surface-color);
}

/* Products Section */
.products-section {
    background-color: var(--bg-color);
    text-align: center;
}

.subtitle {
    font-size: 1rem;
    color: var(--secondary-color);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: -1rem;
    margin-bottom: 3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.product-card {
    background-color: var(--surface-color);
    padding: 0;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: left;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: var(--accent-color);
}

.card-image {
    background-color: #F0F0ED;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

.card-info {
    padding: 2rem;
}

.card-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-info p {
    font-size: 0.95rem;
    color: var(--light-text);
}

.disclaimer {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #BBB;
    font-style: italic;
}

/* Contact Section */
.contact-section {
    text-align: center;
    background-color: var(--surface-color);
}

.contact-content {
    font-size: 1.2rem;
}

.email-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    border-bottom: 1px solid transparent;
}

.email-link:hover {
    border-bottom: 1px solid var(--secondary-color);
}

/* Footer */
.footer {
    background-color: #1A1A1A;
    color: #FFFFFF;
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-brand {
    margin-bottom: 3rem;
}

.footer-logo {
    height: 120px;
    width: auto;
    margin-bottom: 0.5rem;
    filter: brightness(0) invert(1);
}

.footer-inline-logo {
    height: 2.6em;
    width: auto;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-brand p {
    color: #666;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.footer-legal p {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 0; /* Reset to top of screen */
        background-color: var(--bg-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Center items vertically */
        width: 100%; /* Full width */
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999; /* Ensure it's above other content but below navbar z-index */
        padding-top: 60px; /* Space for the navbar height */
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
        z-index: 1001; /* Ensure burger is above the menu */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .certificate-links {
        flex-direction: column;
        gap: 1rem;
    }

    .email-link {
        font-size: 1.5rem;
    }
}
