/* Huicheng Law Group - Premium Cross-Border Law Firm Website */

:root {
    --navy: #071624;
    --navy-2: #0d2235;
    --ink: #17202a;
    --muted: #65717f;
    --line: #d9dee5;
    --paper: #ffffff;
    --soft: #f4f6f8;
    --gold: #b48a4a;
    --gold-2: #d1b16f;
    --shadow: 0 24px 70px rgba(7, 22, 36, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
}

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

a {
    color: inherit;
}

h1,
h2,
h3,
h4 {
    font-family: "Playfair Display", Georgia, serif;
    color: var(--navy);
    line-height: 1.12;
}

h1 {
    font-size: 4.6rem;
    font-weight: 700;
}

h2 {
    font-size: 3rem;
    font-weight: 650;
}

h3 {
    font-size: 1.45rem;
    font-weight: 650;
}

p {
    color: var(--muted);
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.section {
    padding: 96px 0;
}

.section-label,
.eyebrow,
.credibility-kicker {
    color: var(--gold);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-heading {
    max-width: 820px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-intro,
.lead {
    font-size: 1.08rem;
    color: #445160;
}

.section-heading .section-intro {
    margin-top: 18px;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 72px;
    align-items: start;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(217, 222, 229, 0.8);
    backdrop-filter: blur(16px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 40px rgba(7, 22, 36, 0.08);
}

.nav {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    width: 252px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 26px;
}

.nav-link {
    color: #2d3844;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher {
    display: flex;
    padding: 3px;
    border: 1px solid var(--line);
    background: #fff;
}

.lang-btn {
    border: 0;
    background: transparent;
    color: #344251;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.lang-btn.active {
    background: var(--navy);
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--navy);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 0 64px;
    background:
        linear-gradient(115deg, rgba(7, 22, 36, 0.96), rgba(7, 22, 36, 0.84)),
        radial-gradient(circle at 78% 24%, rgba(180, 138, 74, 0.28), transparent 32%),
        linear-gradient(90deg, var(--navy), var(--navy-2));
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 112px 7% 56px auto;
    width: 42%;
    min-width: 360px;
    border: 1px solid rgba(209, 177, 111, 0.28);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 74px);
}

.hero-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    gap: 64px;
    align-items: end;
    position: relative;
    z-index: 1;
}

.hero h1,
.hero h2,
.hero h3 {
    color: #fff;
}

.hero-copy {
    max-width: 760px;
    color: #d8dee7;
    font-size: 1.18rem;
    margin-top: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 38px;
}

.cta-btn,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: #fff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 750;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cta-btn:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    background: #9e7639;
    border-color: #9e7639;
}

.secondary-link {
    color: #f4e6c8;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid rgba(244, 230, 200, 0.5);
}

.hero-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 30px;
    backdrop-filter: blur(12px);
}

.hero-panel > div + div {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.panel-number {
    display: block;
    color: var(--gold-2);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-panel p {
    color: #d8dee7;
}

/* Credibility */
.credibility {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.credibility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.credibility-item {
    padding: 38px 34px;
    border-right: 1px solid var(--line);
}

.credibility-item:first-child {
    border-left: 1px solid var(--line);
}

.credibility-item h3 {
    margin-bottom: 12px;
}

/* About */
.about {
    background: var(--paper);
}

.about .lead {
    margin-bottom: 18px;
}

/* Network */
.network-section {
    background: var(--soft);
}

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

.network-card,
.service-card,
.credential-item,
.attorney-card,
.contact-form {
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(7, 22, 36, 0.02);
}

.network-card {
    padding: 32px;
}

.network-icon {
    display: inline-block;
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 48px;
}

.network-card h3,
.service-card h3,
.credential-item h3 {
    margin-bottom: 14px;
}

/* Services */
.services {
    background: var(--paper);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card {
    min-height: 280px;
    padding: 28px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(180, 138, 74, 0.65);
    box-shadow: var(--shadow);
}

/* Leadership */
.leadership {
    background: var(--soft);
}

.attorney-card {
    display: grid;
    grid-template-columns: 156px 1fr;
    gap: 28px;
    padding: 30px;
    align-items: start;
}

.attorney-photo {
    width: 156px;
    height: 156px;
    object-fit: cover;
    background: #dfe4ea;
    border: 1px solid var(--line);
}

.role {
    color: var(--gold);
    font-weight: 800;
    margin: 4px 0 14px;
}

/* Credentials */
.credentials {
    background: var(--navy);
}

.credentials h2,
.credentials h3 {
    color: #fff;
}

.credentials .section-intro,
.credentials p {
    color: #c7d0da;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.credential-item {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    padding: 30px;
}

/* Contact */
.contact {
    background: var(--paper);
}

.contact-content {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 70px;
    align-items: start;
}

.contact-list {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.contact-list p {
    color: var(--ink);
    font-weight: 650;
    margin-bottom: 10px;
}

.contact-form {
    padding: 34px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    padding: 16px;
    font: inherit;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid rgba(180, 138, 74, 0.24);
    border-color: var(--gold);
}

.btn-submit {
    width: 100%;
}

/* Footer */
.footer {
    background: #050f19;
    color: #fff;
    padding: 54px 0 26px;
}

.footer-content {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr;
    gap: 44px;
}

.footer-logo {
    width: 252px;
    margin-bottom: 20px;
}

.footer h4 {
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer p {
    color: #aeb8c5;
    margin-bottom: 8px;
}

.footer-bottom {
    width: min(1180px, calc(100% - 48px));
    margin: 38px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
    font-size: 0.88rem;
}

/* Language Classes */
.lang-en {
    display: block;
}

.lang-zh {
    display: none;
}

.lang-switch[data-lang="zh"] .lang-en {
    display: none;
}

.lang-switch[data-lang="zh"] .lang-zh {
    display: block;
}
