/* --- DESIGN SYSTEM (Warm Professional) --- */
:root {
    /* Palette derived from Logo & Request */
    --brand-navy: #112e40;
    /* Deep Navy from Logo */
    --brand-accent: #c69c6d;
    /* Warm Bronze/Sand for friendliness */

    --bg-body: #fdfcf8;
    /* Warm Alabaster (Not stark white) */
    --bg-offset: #f4f1ea;
    /* Warm Cream/Beige */
    --bg-card: #ffffff;

    --primary-text: #112e40;
    --secondary-text: #5e6d7a;
    /* Slate Grey */

    --glass: rgba(253, 252, 248, 0.9);
    --glass-border: rgba(17, 46, 64, 0.05);

    --shadow-soft: 0 10px 30px rgba(17, 46, 64, 0.06);
    --shadow-hover: 0 20px 50px rgba(17, 46, 64, 0.12);

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'DM Sans', sans-serif;
    /* Friendlier sans-serif */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    --radius-soft: 12px;
    /* Softer corners for friendliness */
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--primary-text);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--brand-navy);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 20px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--brand-navy);
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    line-height: 0.9;
}

.logo span {
    font-size: 0.5em;
    letter-spacing: 2px;
    font-family: var(--font-sans);
    color: var(--brand-accent);
    margin-top: 5px;
}

.nav-menu {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-item {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-text);
    cursor: pointer;
}

.nav-item:hover {
    color: var(--brand-accent);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--brand-navy);
    transition: all 0.3s ease-in-out;
}

@media (max-width: 1024px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 85px;
        /* Height of nav bar */
        gap: 0;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
        font-size: 1.2rem;
    }

    .nav-menu .btn-primary {
        margin-top: 20px;
    }
}

.btn-primary {
    background-color: var(--brand-navy);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    /* Pill shape is friendlier */
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(17, 46, 64, 0.2);
}

.btn-primary:hover {
    background-color: var(--brand-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(198, 156, 109, 0.4);
}

/* --- HERO SECTION (Warm Light) --- */
header,
.page-header {
    min-height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 130px;
}

.page-header {
    min-height: 50vh;
    /* Shorter header for subpages */
}

.hero-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    /* Warm Interior Image */
    background: url('images/WeChat-Image_20230911121301-1.png') center/cover;
    z-index: -1;
    /* Fade gradient to blend with body color */
    mask-image: linear-gradient(to right, transparent, black 20%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%);
}

.hero-content {
    width: 55%;
    padding-right: 40px;
}

h1 {
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 25px;
    color: var(--brand-navy);
}

h1 span {
    color: var(--brand-accent);
    font-style: italic;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--secondary-text);
    max-width: 520px;
    margin-bottom: 45px;
}


/* --- HERO ALIGNMENT FIXES (Global Split-Hero) --- */
@media (min-width: 1025px) {
    header.split-hero .container {
        display: flex;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    header.split-hero .hero-content {
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        width: 55%;
        /* Ensure width constraint is kept */
        align-self: center;
        /* Let container center it vertically */
    }
}

/* --- FEATURES (Friendly Cards) --- */
.features-section,
.section-pad {
    padding: 100px 0;
    background-color: var(--bg-offset);
}

.section-pad {
    background-color: var(--bg-body);
    /* Default to white for regular sections */
}

.section-pad.alt-bg {
    background-color: var(--bg-offset);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 45px 35px;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(198, 156, 109, 0.15);
    /* Light accent bg */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-accent);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-family: var(--font-sans);
    /* Cleaner look for subheads */
    font-weight: 700;
}

/* --- PRODUCT SHOWCASE --- */
.showcase {
    padding: 120px 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.showcase-img-wrapper {
    position: relative;
}

.showcase-img {
    width: 100%;
    height: 600px;
    border-radius: var(--radius-soft);
    object-fit: cover;
    /* Warm flooring image */
    content: url('https://images.unsplash.com/photo-1581858726768-758a0301908f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80');
}

.badge-floating {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-soft);
    max-width: 250px;
}

.list-item {
    padding: 25px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.list-item:hover {
    border-color: var(--brand-navy);
    padding-left: 10px;
}

.list-item h3 {
    font-family: var(--font-sans);
    font-size: 1.3rem;
    color: var(--secondary-text);
    transition: var(--transition);
}

.list-item:hover h3 {
    color: var(--brand-navy);
}

/* --- FOOTER --- */
footer {
    background-color: var(--brand-navy);
    color: #fff;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
    font-size: 0.95rem;
}

.f-col h4 {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.f-col ul li {
    margin-bottom: 12px;
}

.f-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.f-col a:hover {
    color: var(--brand-accent);
}

/* --- FORMS --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--brand-navy);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    .hero-bg {
        width: 100%;
        opacity: 0.1;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .hero-content {
        width: 100%;
        text-align: center;
    }

    .hero-desc {
        margin: 0 auto 40px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- NEW PRODUCT CARD STYLES --- */
.product-category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-category-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.category-image-container {
    height: 240px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
}

.category-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-category-card:hover .category-image-container img {
    transform: scale(1.05);
}

.category-text-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-text-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: 600;
}

.category-text-content p {
    color: var(--secondary-text, #555);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 0;
}