/* =========================================
   JEAN RAO WEBSITE
   Main Stylesheet
   ========================================= */


/* ---------- Base ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #263238;
    background: #ffffff;
    line-height: 1.7;
}

a {
    color: inherit;
}

p {
    margin-top: 0;
    margin-bottom: 1.1rem;
}

h1,
h2,
h3 {
    line-height: 1.25;
}

h1 {
    margin-top: 0;
}

h2 {
    margin-top: 0;
}

h3 {
    margin-top: 0;
}


/* ---------- Header ---------- */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e6e9ec;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.95rem;
    color: #455a64;
}

.nav-links a:hover {
    text-decoration: underline;
}


/* ---------- Hero ---------- */

.hero {
    background: #f3f7fa;
    border-bottom: 1px solid #e5ebef;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 24px 105px;
    text-align: center;
}

.eyebrow,
.section-label {
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow {
    color: #607d8b;
}

.hero h1 {
    margin-bottom: 12px;
    font-size: clamp(2.8rem, 7vw, 5rem);
    letter-spacing: -0.04em;
}

.hero h2 {
    max-width: 700px;
    margin: 0 auto 20px;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    font-weight: 500;
}

.hero-text {
    max-width: 690px;
    margin: 0 auto 20px;
    font-size: 1.15rem;
    color: #546e7a;
}

.language-highlight {
    margin-bottom: 30px;
    font-size: 1rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}


/* ---------- Buttons ---------- */

.button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    background: #263238;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.button:hover {
    opacity: 0.85;
}

.button-light {
    background: #ffffff;
    color: #263238;
    border: 1px solid #cfd8dc;
}


/* ---------- Sections ---------- */

.section {
    padding: 85px 24px;
}

.section-light {
    background: #f7f9fa;
    border-top: 1px solid #edf0f2;
    border-bottom: 1px solid #edf0f2;
}

.section-container {
    max-width: 1120px;
    margin: 0 auto;
}

.section-narrow {
    max-width: 780px;
    margin: 0 auto 50px;
}

.section-label {
    color: #78909c;
}

.section h2,
.section-container > h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    letter-spacing: -0.025em;
}

.section-intro {
    max-width: 720px;
    margin-bottom: 40px;
    color: #607d8b;
}


/* ---------- Services ---------- */

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

.service-card {
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e1e7ea;
    border-radius: 8px;
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.service-card p {
    margin-bottom: 0;
    color: #607d8b;
    font-size: 0.95rem;
}


/* ---------- Values ---------- */

.values-grid {
    max-width: 1120px;
    margin: 0 auto 40px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.value-item {
    padding-top: 25px;
    border-top: 2px solid #cfd8dc;
}

.value-number {
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #90a4ae;
}

.value-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.value-item p {
    margin-bottom: 0;
    color: #607d8b;
    font-size: 0.94rem;
}


/* ---------- Links ---------- */

.center-button {
    margin-top: 35px;
    text-align: center;
}

.text-link {
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}


/* ---------- Bilingual Section ---------- */

.bilingual-section {
    background: #263238;
    color: #ffffff;
}

.bilingual-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 85px 24px;
    text-align: center;
}

.bilingual-content .section-label {
    color: #cfd8dc;
}

.bilingual-content h2 {
    margin-top: 0;
    margin-bottom: 22px;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.bilingual-content p {
    color: #eceff1;
}

.chinese-text {
    font-family: "Microsoft YaHei",
        "Noto Sans CJK SC",
        Arial,
        sans-serif;
}


/* ---------- Contact ---------- */

.contact-section {
    background: #f3f7fa;
    border-bottom: 1px solid #e5ebef;
}

.contact-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 85px 24px;
    text-align: center;
}

.contact-content h2 {
    margin-top: 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.contact-content p {
    color: #607d8b;
}


/* ---------- Credentials ---------- */

.credentials {
    max-width: 800px;
    margin: 0 auto;
    padding: 55px 24px;

    text-align: center;
    font-size: 0.92rem;
    color: #607d8b;
}

.credentials p {
    margin-bottom: 7px;
}

.credentials strong {
    color: #263238;
    font-size: 1rem;
}


/* ---------- Disclosure ---------- */

.disclosure {
    max-width: 900px;
    margin: 0 auto;
    padding: 45px 24px;

    border-top: 1px solid #e5e9ec;

    color: #78909c;
    font-size: 0.82rem;
}

.disclosure h2 {
    font-size: 1rem;
    color: #546e7a;
}

.disclosure p {
    margin-bottom: 10px;
}


/* ---------- Footer ---------- */

.site-footer {
    background: #1f292e;
    color: #cfd8dc;
}

.footer-content {
    max-width: 1120px;
    margin: 0 auto;
    padding: 45px 24px;

    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-content p {
    margin-bottom: 5px;
    font-size: 0.88rem;
}

.footer-content strong {
    color: #ffffff;
}

.footer-bottom {
    padding: 18px 24px;
    border-top: 1px solid #37474f;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    color: #90a4ae;
}


/* ---------- Mobile ---------- */

@media (max-width: 800px) {

    .navbar {
        flex-direction: column;
        gap: 14px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px 18px;
    }

    .hero-content {
        padding: 75px 20px 80px;
    }

    .section {
        padding: 65px 20px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}


@media (max-width: 520px) {

    .nav-links {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        text-align: center;
    }

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

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

    .section-narrow {
        margin-bottom: 35px;
    }
}
