/* =========================
   COLOUR & TYPOGRAPHY SYSTEM
   Traditional Chinese–aligned palette (no pure black/white)
   ========================= */

:root {
    /* Core palette – warm, auspicious, conservative */
    --hc-deep-maroon: #7A0019;     /* Brand / headings / accents */
    --hc-deep-green: #0F3B2E;      /* Secondary brand tone */
    --hc-warm-bg: #F5F0E6;         /* Main page background (no pure white) */
    --hc-panel: #FBF8F2;           /* Cards / hero background */
    --hc-gold: #CFA349;            /* Highlights, key labels */
    --hc-charcoal-soft: #3B3333;   /* Main text (not pure black) */
    --hc-muted: #766E6B;           /* Secondary text */
    --hc-border: #E0D7C8;          /* Dividers */
    --hc-link: #7A0019;            /* Links / CTAs */

    /* Reuse old names where referenced in layout */
    --hc-black: var(--hc-charcoal-soft);
    --hc-darkblue: var(--hc-deep-green);
    --hc-slate: var(--hc-muted);
    --hc-lightgrey: var(--hc-warm-bg);
    --hc-white: var(--hc-panel);
    --hc-accent: var(--hc-deep-maroon);
}

/* Global reset */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--hc-warm-bg);
    color: var(--hc-charcoal-soft);
    font-size: 16px;
    line-height: 1.7;
}

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

a {
    color: var(--hc-link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    font-family: 'IBM Plex Serif', Georgia, "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: -0.4px;
    margin-top: 0;
    color: var(--hc-charcoal-soft);
}

/* Layout container */

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

/* =========================
   BILINGUAL LANGUAGE TOGGLE
   ========================= */

/* By default, show English (body has class lang-en initially) */

.lang {
    display: none;
}

body.lang-en .lang-en {
    display: inline;
}

body.lang-zh .lang-zh {
    display: inline;
}

/* When the element is block-level bilingual, we still use .lang, but layout remains fine */

.lang-block {
    display: block;
}

/* Language switcher */

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.lang-switch button {
    border: 1px solid var(--hc-border);
    background: transparent;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--hc-muted);
}

.lang-switch button.active {
    background: var(--hc-deep-maroon);
    color: #fffaf2;
    border-color: var(--hc-deep-maroon);
}

/* =========================
   HEADER & NAVIGATION
   ========================= */

.site-header {
    background: #FDF7F0;
    border-bottom: 1px solid var(--hc-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 32px;
}

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

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: 1px solid var(--hc-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--hc-deep-maroon);
    background: #FFF8EC;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-name {
    font-size: 14px;
    font-weight: 600;
}

.logo-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--hc-muted);
}

/* Image logo override */
.logo-image {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 4px;
    background: #FFF8EC;
}

/* Nav */

.nav {
    display: flex;
    gap: 22px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav a {
    color: var(--hc-muted);
    font-weight: 500;
}

.nav a:hover {
    color: var(--hc-deep-maroon);
}

/* =========================
   HERO
   ========================= */

.hero {
    background: var(--hc-panel);
    border-bottom: 1px solid var(--hc-border);
    padding: 72px 0 64px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: 40px;
    font-weight: 700;
    color: var(--hc-deep-maroon);
    line-height: 1.3;
    max-width: 680px;
}

.hero p {
    font-size: 18px;
    font-weight: 500;
    color: #4A2F2A;
    max-width: 640px;
    margin-top: 14px;
}

.hero-actions {
    margin-top: 24px;
}

.hero-disclaimer {
    margin-top: 10px;
    font-size: 13px;
    color: var(--hc-deep-maroon);
}

/* Hero right column: credentials + visual asset */

.hero-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-main,
.hero .container {
    position: relative;
    z-index: 2;
}

/* Asset placeholder (hero image) */

.hero-media {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--hc-border);
    background: #EDE1CF;
    position: relative;
    z-index: 0;
    inset: 0;
}

.hero-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    opacity: 0.95;
}

/* Credential card */

.credential-card {
    background: #FFF8EE;
    border: 1px solid var(--hc-border);
    padding: 18px 20px 16px;
}

.credential-card h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.credential-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credential-card li {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 5px 0;
    border-bottom: 1px solid #F1E3D2;
}

.credential-card li:last-child {
    border-bottom: none;
}

.credential-card .label {
    color: var(--hc-muted);
    margin-right: 16px;
}

/* =========================
   BUTTONS
   ========================= */

.btn-primary {
    display: inline-block;
    background: var(--hc-deep-maroon);
    color: #FFF9F3;
    padding: 12px 22px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    letter-spacing: 1px;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #5e0013;
    text-decoration: none;
}

/* =========================
   SECTIONS
   ========================= */

.section {
    padding: 64px 0;
}

.section-alt {
    background: #FFF9F3;
    border-top: 1px solid var(--hc-border);
    border-bottom: 1px solid var(--hc-border);
}

.section-header {
    max-width: 720px;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 26px;
    margin-bottom: 8px;
}

.section-header p {
    margin: 0;
    color: var(--hc-muted);
}

/* =========================
   GRID & CARDS
   ========================= */

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

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.card {
    background: var(--hc-panel);
    border: 1px solid var(--hc-border);
    padding: 22px 22px 20px;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.card p {
    font-size: 14px;
    color: var(--hc-muted);
}

/* Key lists */

.key-list {
    font-size: 14px;
    padding-left: 18px;
    color: var(--hc-muted);
}

.key-list li {
    margin-bottom: 6px;
}

/* Capabilities specific */

.cap-grid {
    margin-top: 20px;
}

/* =========================
   VISUAL ASSET PLACEHOLDERS (other sections)
   ========================= */

/* Example horizontal strip for logos / fund visuals */

.asset-strip {
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: 6px;
    border: 1px dashed var(--hc-border);
    background: #FFF2E0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.asset-strip img {
    max-height: 40px;
    width: auto;
}

/* Optional large banner image per section */
/* === Section banner: responsive full-width image === */

.section-banner {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
}

.section-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;   /* ensures entire image is visible */
    max-height: 60vh;      /* prevents oversized banners on big screens */
}

/* =========================
   CONTACT
   ========================= */

.contact-grid {
    align-items: flex-start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-row label {
    font-size: 14px;
    font-weight: 500;
}

.required {
    color: #b3261e;
    margin-left: 2px;
}

input[type="text"],
input[type="email"],
select,
textarea {
    border-radius: 3px;
    border: 1px solid var(--hc-border);
    padding: 10px 10px;
    font-size: 14px;
    font-family: inherit;
    background: #FFFCF7;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--hc-deep-maroon);
}

textarea {
    resize: vertical;
}

/* Honeypot row hidden from users but visible to bots */

.hp-row {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

.form-note {
    margin-top: 8px;
    font-size: 12px;
    color: var(--hc-muted);
}

.disclaimer-small {
    font-size: 13px;
    color: var(--hc-muted);
}

/* =========================
   FOOTER
   ========================= */

.footer {
    background: #3A241B;
    color: #F7EDE3;
    padding: 36px 0;
    font-size: 13px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}

.footer-brand {
    font-weight: 600;
}

.footer-copy {
    margin-top: 6px;
    color: #E2D5C8;
}

.footer-legal {
    max-width: 520px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 52px 0;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 52px 0 44px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .footer-inner {
        flex-direction: column;
    }
}
