/* Global Design System */
:root {
    /* Color Palette */
    --primary-color: #C49A6C;
    /* Premium Gold/Bronze */
    --primary-dark: #A37B50;
    /* Darker shade for hover */
    --secondary-color: #2C3E50;
    /* Deep Slate/Charcoal */
    --accent-color: #F4EBE2;
    /* Soft Beige Accent */
    --background-color: #FAF9F6;
    /* Off-white/Cream Background */
    --text-color: #4A4A4A;
    /* Soft Black for readable text */
    --light-text: #FFFFFF;

    /* Typography */
    --font-main: 'Noto Sans TC', sans-serif;
    --font-heading: 'Noto Serif TC', serif;
    /* Serif for headings adds authority/elegance */

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;

    /* Shadows & Radius */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 30px;
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.nav-links a {
    margin-left: var(--spacing-md);
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FAF9F6 50%, #F4EBE2 50%);
    position: relative;
    padding-top: 80px;
    padding-bottom: 60px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
    position: relative;
    /* Ensure relative positioning for absolute child */
}



.hero-image {
    flex: 1;
    max-width: 500px;
    position: relative;
    animation: fadeInUp 1.2s ease-out;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    object-fit: cover;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: var(--radius-lg);
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(196, 154, 108, 0.4);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 154, 108, 0.5);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    /* margin-left: var(--spacing-sm); */
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Service Highlights (Cards) */
.services-highlight {
    background-color: white;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: var(--spacing-lg);
}

.card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    display: block;
}

/* Testimonials */
.testimonials {
    background-color: var(--accent-color);
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    box-shadow: var(--shadow-soft);
}

.testimonial-author {
    margin-top: var(--spacing-sm);
    font-weight: 600;
    font-style: normal;
    text-align: right;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 30px;
    text-align: center;
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        text-align: center;
        background: var(--background-color);
        height: auto;
        padding-bottom: 80px;
    }

    .hero .container {
        flex-direction: column-reverse;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn,
    .hero-actions .btn-outline {
        width: 100%;
        margin-left: 0;
        text-align: center;
    }

    .hero-content {
        margin: auto;
        margin-top: 30px;
    }

    .hero-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    nav .container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }

    .nav-links {
        margin-top: 15px;
    }

    .nav-links a {
        margin: 0 10px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* QR Code Utility */
.qr-code {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 1px solid #eee;
    padding: 10px;
    background: white;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.qr-code:hover {
    transform: scale(1.05);
}