/* ============================================================
   ORIENTAL SINO TOP LIMITED — style.css
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:            #09090F;
    --bg-card:       #13131F;
    --bg-surface:    #1A1A2E;
    --gold:          #C9A84C;
    --gold-light:    #E8C97A;
    --gold-dim:      rgba(201,168,76,0.15);
    --gold-border:   rgba(201,168,76,0.2);
    --text:          #F0EDE4;
    --text-sub:      #9B9B9B;
    --text-muted:    #5A5A6E;
    --border-dim:    rgba(255,255,255,0.07);
    --font:          'Inter', 'Noto Sans TC', sans-serif;
    --max-w:         1200px;
    --nav-h:         72px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 6px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
    border: none;
}

.btn-gold {
    background: var(--gold);
    color: #09090F;
}
.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    color: #09090F;
}

.btn-lg { padding: 14px 32px; font-size: 1.19rem; }

/* ── Navbar ── */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
    background: rgba(9,9,15,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--gold-border);
}

.nav-inner {
    display: flex;
    align-items: center;
    height: var(--nav-h);
    gap: 40px;
}

.logo { flex-shrink: 0; line-height: 0; }

.nav-links {
    display: flex;
    gap: 32px;
    margin-left: auto;
}

.nav-links a {
    font-size: 1rem;
    color: var(--text-sub);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta { margin-left: 0; }

.lang-switch {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid var(--border-dim);
    padding: 4px 10px;
    border-radius: 4px;
    transition: color 0.2s, border-color 0.2s;
}
.lang-switch:hover { color: var(--gold); border-color: rgba(201,168,76,0.5); }

/* hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* mobile nav */
.mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 32px 24px 40px;
    background: rgba(9,9,15,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-dim);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.1rem; color: var(--text); }

/* ── Hero ── */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#globe-canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 0;
}

.hero-bg-fallback {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 45%, rgba(18,28,60,0.7) 0%, transparent 65%),
        radial-gradient(ellipse 50% 80% at 85% 50%, rgba(30,20,8,0.4) 0%, transparent 60%),
        linear-gradient(160deg, #09090F 0%, #0d1225 50%, #09090F 100%);
    z-index: 0;
}

/* Fallback hidden by default; shown via media query on mobile */
.hero-bg-fallback { display: none; }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 0 24px;
    margin-left: max(24px, calc((100vw - var(--max-w)) / 2));
    /* text readability over globe */
    filter: drop-shadow(0 2px 24px rgba(9,9,15,0.8));
}

.hero-eyebrow {
    font-size: 1.05rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

.hero-content h1 {
    font-size: clamp(2.08rem, 3.8vw, 3.27rem);
    font-weight: 700;
    line-height: 1.28;
    margin-bottom: 20px;
}

.hero-content h1 em {
    font-style: normal;
    color: var(--gold);
}

.hero-sub {
    font-size: 1.16rem;
    color: var(--text-sub);
    margin-bottom: 36px;
    max-width: 460px;
    line-height: 1.75;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Partners Bar ── */
.partners-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 3;
    background: rgba(9,9,15,0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-dim);
    padding: 12px 0 14px;
    overflow: hidden;
}

.partners-label {
    font-size: 0.81rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 10px;
}

.marquee-wrap { overflow: hidden; }

.marquee-inner {
    display: flex;
    align-items: center;
    gap: 52px;
    width: max-content;
    animation: marquee 32s linear infinite;
    padding: 0 26px;
}
.marquee-inner:hover { animation-play-state: paused; }

.partner-name {
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(240,237,228,0.45);
    text-decoration: none;
    transition: color 0.25s;
}
.partner-name:hover { color: var(--gold); }

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-25%); }
}

/* ── Section Shared ── */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-card); }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 { font-size: 0.86rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

.section-label {
    display: block;
    font-size: clamp(1.9rem, 3.33vw, 2.61rem);
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
    color: inherit;
    margin-bottom: 12px;
}

/* ── Service Cards ── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 36px 28px;
    border: 1px solid var(--border-dim);
    border-top: 2px solid var(--gold);
    transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(201,168,76,0.1);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--gold);
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 {
    font-size: 1.31rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card p {
    font-size: 1.04rem;
    color: var(--text-sub);
    line-height: 1.75;
    margin-bottom: 20px;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card-tags span {
    font-size: 0.83rem;
    padding: 3px 10px;
    border-radius: 99px;
    background: var(--gold-dim);
    color: var(--gold-light);
    border: 1px solid var(--gold-border);
}

/* ── Locations ── */
.locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.location-badge {
    display: inline-block;
    font-size: 0.83rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    padding: 3px 12px;
    border-radius: 99px;
    margin-bottom: 16px;
}

.location-main h3 {
    font-size: 2.26rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.location-main address {
    font-size: 1.04rem;
    color: var(--text-sub);
    line-height: 1.9;
    margin-bottom: 36px;
}

.reach-label {
    font-size: 0.83rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.reach-cities { display: flex; flex-wrap: wrap; gap: 10px; }
.city-chip {
    padding: 6px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-dim);
    border-radius: 8px;
    font-size: 1.01rem;
    color: var(--text-sub);
}

.location-visual { display: flex; align-items: center; justify-content: center; }

.map-globe {
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    border: 1px solid rgba(201,168,76,0.15);
    overflow: hidden;
    flex-shrink: 0;
}
.map-globe img { width: 100%; height: auto; display: block; }

@keyframes loc-ping {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%       { opacity: 0.15; transform: scale(1.45); }
}
@keyframes loc-ping2 {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50%       { opacity: 0.05; transform: scale(1.7); }
}
.loc-ping  { animation: loc-ping  2.2s ease-in-out infinite; transform-origin: 212px 168px; }
.loc-ping-2 { animation: loc-ping2 2.2s ease-in-out infinite 0.35s; transform-origin: 212px 168px; }

/* ── About ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text .section-label {
    font-size: clamp(1.9rem, 3.33vw, 2.61rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 12px;
}

.about-text h2 {
    font-size: 0.86rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-sub);
    line-height: 1.85;
    margin-bottom: 16px;
}

.about-stats { display: flex; flex-direction: column; gap: 20px; }

.stat-item {
    padding: 24px 28px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-dim);
    border-left: 3px solid var(--gold);
    transition: border-left-color 0.2s, box-shadow 0.2s;
}
.stat-item:hover {
    border-left-color: var(--gold-light);
    box-shadow: -2px 0 16px rgba(201,168,76,0.12);
}

.stat-row { display: flex; align-items: baseline; gap: 2px; margin-bottom: 6px; }

.stat-num  { font-size: 3.09rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-suffix { font-size: 1.55rem; font-weight: 700; color: var(--gold-light); }

.stat-item p { font-size: 0.98rem; color: var(--text-sub); margin: 0; }

/* ── Contact ── */
.contact-inner {
    text-align: center;
    max-width: 540px;
    margin: 0 auto;
}

.contact-inner h2 {
    font-size: 0.86rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.contact-sub {
    color: var(--text-sub);
    font-size: 1.13rem;
    margin-bottom: 36px;
    line-height: 1.7;
}

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border-dim);
    background: var(--bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.6fr;
    gap: 48px;
    padding: 64px 24px 48px;
}

.footer-brand p {
    font-size: 1.01rem;
    color: var(--text-muted);
    margin-top: 16px;
    line-height: 1.75;
    max-width: 260px;
}

.footer-heading {
    font-size: 0.83rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
    font-size: 1.04rem;
    color: var(--text-sub);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

.footer-contact address {
    font-size: 0.98rem;
    color: var(--text-sub);
    line-height: 1.85;
}
.footer-contact a {
    display: inline-block;
    margin-top: 14px;
    font-size: 1.04rem;
    color: var(--gold);
    transition: color 0.2s;
}
.footer-contact a:hover { color: var(--gold-light); }

.footer-bottom {
    border-top: 1px solid var(--border-dim);
    padding: 20px 24px;
    text-align: center;
}
.footer-bottom p { font-size: 0.93rem; color: var(--text-muted); }

/* ── Scroll-reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .locations-grid { gap: 40px; }
    .about-grid { gap: 48px; }
}

@media (max-width: 900px) {
    .cards-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .locations-grid { grid-template-columns: 1fr; }
    .location-visual { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    :root { --nav-h: 56px; }

    .nav-links, .nav-cta { display: none; }
    .menu-toggle { display: flex; }

    .nav-inner { gap: 8px; padding: 0 8px; }
    .logo img { height: 28px; width: auto; }
    .lang-switch { margin-left: auto; }
    .menu-toggle { margin-left: 0; }

    #globe-canvas { display: none; }
    .hero-bg-fallback { display: block; }

    .hero-content {
        margin-left: 0;
        padding: 0 24px;
        text-align: center;
        filter: none;
    }
    .hero-actions { justify-content: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }

    .cards-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
}
