/* ==========================================================================
   Global Variables & Base Setup
   ========================================================================== */
:root {
    --bg-dark: #071e29;
    --bg-darker: #05141c;
    --bg-teal: #14495c;
    --bg-light: #F8F5F0;
    --bg-yellow: #fbfcfa;
    --bg-navy: #091c28;

    --color-gold: #dcb365;
    --color-gold-hover: #e8c680;
    --color-gold-dark: #b58f4a;
    
    --text-white: #ffffff;
    --text-muted: #9ab4c2;
    --text-dark: #1A1A1A;
    --text-dark-muted: #555555;
    
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);

    --font-sans: 'Inter', 'Noto Sans TC', sans-serif;
    --font-serif: 'Noto Serif TC', serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* ==========================================================================
   Typography & Reusable Buttons
   ========================================================================== */
.btn-primary {
    display: inline-block;
    text-align: center;
    background-color: var(--color-gold);
    color: #111;
    border: none;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.btn-primary:hover {
    background-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 179, 101, 0.3);
}

.btn-primary.large {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn-outline {
    display: inline-block;
    text-align: center;
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 400;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

/* Universal Section Headings */
.section-heading-center {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-heading-center.light-text {
    color: #fff;
}

.section-heading-center.light-text .sect-title {
    color: #fff;
}

.sect-subtitle {
    font-size: 0.8rem;
    color: #3b8e96;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 500;
}

.sect-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.sect-divider-center {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b8e96 0%, var(--color-gold) 100%);
    margin-bottom: 24px;
}

.sect-desc {
    color: var(--text-dark-muted);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 600px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* ==========================================================================
   Section 1: Hero & Navbar
   ========================================================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 60px;
    background: linear-gradient(to bottom, rgba(5, 20, 28, 0.8), transparent);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    user-select: none;
    color: white;
}

/* Logo Image Styles */
.main-logo-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0px 8px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav {
    display: flex;
    gap: 40px;
    margin-right: auto;
    margin-left: 100px;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-white);
    opacity: 0.8;
    transition: opacity 0.2s;
    letter-spacing: 1px;
}

.nav a:hover { opacity: 1; }

.main-content {
    background: radial-gradient(circle at 75% 50%, var(--bg-teal), var(--bg-dark), var(--bg-darker));
    color: var(--text-white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 180px 80px 80px; 
    position: relative;
}

.main-content .bg-dots {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

.hero-section {
    position: relative;
    z-index: 2;
    padding-top: 40px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--color-gold);
    border: 1px solid var(--color-gold-dark);
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 40px;
}

.label-dot { width: 4px; height: 4px; background-color: var(--color-gold); border-radius: 50%; }

.hero-title {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 500;
    letter-spacing: 4px;
}

.title-line-1 { color: var(--text-white); }
.title-line-2 { color: var(--color-gold); }

.hero-subtitle {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.2rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 90%;
    margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 20px; margin-bottom: 80px; }

.stats-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-serif); font-size: 2.5rem; color: var(--color-gold); line-height: 1; margin-bottom: 8px; font-weight: 500; }
.stat-number .plus { font-size: 1.5rem; }
.jci-font { font-family: serif; font-weight: 400; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 1px; }

/* Business Units Glass Container (Hero Right) */
.business-section {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 32px;
    width: 100%;
}

.glass-header { margin-bottom: 24px; }
.glass-subtitle { font-size: 0.75rem; color: var(--color-gold); letter-spacing: 2px; margin-bottom: 8px; }
.glass-title { font-size: 1.2rem; font-weight: 600; letter-spacing: 2px; }

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.unit-card-sm {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.unit-card-sm .card-icon {
    font-size: 1.4rem;
    background: rgba(255,255,255,0.05);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unit-card-sm h3 { font-size: 0.85rem; font-weight: 500; }
.unit-card-sm p { font-size: 0.65rem; color: var(--text-muted); margin-top:2px; }

.glass-footer {
    background-color: var(--color-gold);
    border-radius: 6px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #111;
}

.revenue-number { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; line-height: 1; }
.revenue-number span { font-size: 1rem; }
.revenue-text { font-size: 0.85rem; font-weight: 600; line-height: 1.4; letter-spacing: 1px; }

/* ==========================================================================
   Section 2: About Us
   ========================================================================== */
.about-wrapper { background-color: var(--bg-light); padding: 100px 80px; }
.about-content { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }

.about-banner-container { position: relative; width: 100%; }
.about-banner {
    background: linear-gradient(135deg, #164654 0%, #0c2d3a 100%);
    border-radius: 4px;
    padding: 80px 40px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 40px rgba(12, 45, 58, 0.2);
}
.banner-year { font-family: var(--font-serif); font-size: 10rem; line-height: 1; color: rgba(255, 255, 255, 0.08); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); font-weight: 900; }
.banner-stats { display: flex; gap: 40px; position: relative; z-index: 2; margin-top: 60px; }
.banner-stats .stat-group { text-align: center; }
.banner-stats .num { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 600; color: white; line-height: 1; margin-bottom: 8px;}
.banner-stats .num .plus, .banner-stats .num .unit { font-size: 1.2rem; font-weight: normal; }
.banner-stats .desc { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); letter-spacing: 1px; }

.jci-badge { position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; background-color: #0b1c24; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; box-shadow: 0 10px 20px rgba(0,0,0,0.3); border: 3px solid rgba(255,255,255,0.08); z-index: 5; }
.jci-badge .jci-title { color: var(--color-gold); font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; }
.jci-badge .jci-sub { color: var(--color-gold); font-size: 0.65rem; text-align: center; line-height: 1.4; opacity: 0.8; }

.about-right { padding-top: 20px; }
.about-label { font-size: 0.85rem; color: #3b8e96; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 16px; font-weight: 500; }
.about-title { font-family: var(--font-serif); font-size: 2.8rem; color: #1A1A1A; line-height: 1.3; margin-bottom: 24px; font-weight: 700; letter-spacing: 2px; }
.about-divider { width: 60px; height: 3px; background: linear-gradient(90deg, #3b8e96 0%, var(--color-gold) 100%); margin-bottom: 32px; }
.about-desc { color: #555; font-size: 1rem; line-height: 1.8; margin-bottom: 40px; font-weight: 400; }

.feature-cards { display: flex; flex-direction: column; gap: 16px; }
.feature-card { background-color: white; border-radius: 8px; padding: 24px 32px; display: flex; align-items: center; gap: 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.03); border-left: 4px solid transparent; transition: all 0.3s ease; }
.feature-card:hover { transform: translateX(5px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); border-left: 4px solid #3b8e96; }
.f-icon { font-size: 2rem; flex-shrink: 0; }
.f-text h4 { font-size: 1.1rem; color: #1A1A1A; margin-bottom: 6px; font-weight: 600; }
.f-text p { font-size: 0.9rem; color: #666; line-height: 1.5; }


/* ==========================================================================
   Section 3: Business Details
   ========================================================================== */
.biz-details-wrapper {
    background-color: #fff;
    padding: 100px 80px;
}

.biz-details-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.biz-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 32px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.biz-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transform: translateY(-5px);
    border-color: #e5f0f2;
}

.bi-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    display: flex;
}

.bi-title {
    font-size: 1.2rem;
    color: #1A1A1A;
    margin-bottom: 12px;
    font-weight: 700;
}

.bi-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.bi-link {
    color: #3b8e96;
    font-size: 0.9rem;
    font-weight: 600;
    align-self: flex-start;
    transition: color 0.3s ease;
}

.bi-link:hover { color: var(--color-gold-dark); }
.bi-link.disable-link { color: #ccc; cursor: default; }

/* ==========================================================================
   Section 4: Ecosystem
   ========================================================================== */
.eco-wrapper {
    background-color: var(--bg-navy);
    padding: 100px 80px;
    position: relative;
    overflow: hidden;
}

.eco-bg {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: 
      radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 4px),
      radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 3px),
      radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 4px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
}

.eco-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.eco-orbits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
    justify-items: center;
}

.orbit-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    width: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s;
}

.orbit-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.2);
}

.o-icon { font-size: 2.5rem; margin-bottom: 12px; }
.o-text { color: #fff; font-size: 0.95rem; font-weight: 500; letter-spacing: 1px; }

.eco-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.es-item { text-align: center; }
.es-item .val { font-family: var(--font-serif); font-size: 2.8rem; color: var(--color-gold); font-weight: 600; line-height: 1.2;}
.es-item .txt { color: var(--text-muted); font-size: 0.9rem; letter-spacing: 1px; }

/* ==========================================================================
   Section 5: Timeline
   ========================================================================== */
.timeline-wrapper {
    background-color: var(--bg-yellow);
    padding: 100px 80px;
    position: relative;
}

.timeline-container {
    max-width: 1200px;
    margin: 40px auto 0;
    position: relative;
    padding-bottom: 40px;
}

.tl-line {
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0,0,0,0.1);
}

.tl-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.tl-row.alt-row { margin-top: 60px; }

.tl-item {
    position: relative;
    padding-top: 30px;
    text-align: center;
}

.tl-dot {
    width: 16px;
    height: 16px;
    background: var(--color-gold);
    border-radius: 50%;
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px rgba(220,179,101,0.2);
}

.tl-year { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; color: #164654; margin-bottom: 16px; }
.tl-txt { color: #555; font-size: 0.9rem; line-height: 1.6; }

/* ==========================================================================
   Section 6: Specialty Centers
   ========================================================================== */
.specialty-wrapper {
    background: #fff;
    padding: 100px 80px;
}

.specialty-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sp-card {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    background: #fafafa;
}

.sp-card:hover { background: #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.06); transform: translateY(-4px); }
.sp-icon { font-size: 2.5rem; margin-bottom: 16px; }
.sp-name { font-size: 1.1rem; color: #1a1a1a; font-weight: 600; margin-bottom: 4px; }
.sp-sub { font-size: 0.75rem; color: #999; text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================================================
   Section 7: Certification Strip
   ========================================================================== */
.cert-wrapper {
    background: #fdfdfd;
    border-top: 1px solid #efefef;
    padding: 50px 80px;
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
}

.cert-left { max-width: 300px; }
.cert-title { font-size: 1.25rem; font-family: var(--font-serif); color: #1a1a1a; margin-bottom: 8px;}
.cert-desc { font-size: 0.85rem; color: #777;}

.cert-right { display: flex; gap: 30px; }
.cert-badge { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.c-circ { width: 64px; height: 64px; border-radius: 50%; border: 1px solid #e0e0e0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.cert-badge span { font-size: 0.8rem; font-weight: 500; color: #444; }

/* ==========================================================================
   Section 8: Footer & Contact
   ========================================================================== */
.footer-wrapper {
    background: var(--bg-darker);
    padding: 80px 80px 40px;
    color: #fff;
}

.footer-top {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    margin-bottom: 60px;
}

.contact-info .c-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.c-ico { font-size: 1.5rem; }
.c-txt { font-size: 0.95rem; line-height: 1.5; color: rgba(255,255,255,0.8); }
.c-txt strong { color: #fff; font-size: 1.05rem; }

.contact-form {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 40px;
    border-radius: 8px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; margin-bottom: 8px; color: rgba(255,255,255,0.7); }
.form-group label span { color: var(--color-gold); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 16px;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #3b8e96;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0px 6px;
    border-radius: 4px;
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
}

.brand-logo-footer {
    height: 75px;
    width: auto;
    object-fit: contain;
    display: block;
}

.f-links { display: flex; gap: 24px; }
.f-links a { font-size: 0.85rem; color: rgba(255,255,255,0.6); transition: 0.3s; }
.f-links a:hover { color: #fff; }


/* ==========================================================================
   Responsive Logic
   ========================================================================== */
@media (max-width: 1200px) {
    .main-content, .about-content, .biz-details-grid, .eco-orbits, .cert-wrapper, .footer-top {
        grid-template-columns: 1fr;
    }
    .biz-details-grid, .specialty-grid { grid-template-columns: repeat(2, 1fr); }
    .eco-orbits { grid-template-columns: repeat(2, 1fr); }
    .tl-row { grid-template-columns: repeat(2, 1fr); gap: 40px; margin-bottom: 40px; }
    .cert-wrapper { flex-direction: column; text-align: center; gap: 40px; }
    .cert-left { max-width: 100%; }
    
    .timeline-wrapper, .specialty-wrapper, .eco-wrapper, .biz-details-wrapper, .about-wrapper {
        padding: 60px 40px;
    }
    .main-content {
        padding: 140px 40px 60px;
    }
}

@media (max-width: 768px) {
    .header { 
        flex-direction: row; 
        padding: 16px 20px; 
    }
    .brand-logo {
        height: 38px;
    }
    .header > .btn-primary {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .nav { margin: 0; display: none; }
    
    .main-content {
        padding: 220px 20px 40px;
    }
    .hero-title { font-size: 3rem; }
    
    .hero-actions {
        flex-direction: column;
        gap: 16px;
    }
    .hero-actions > button, .hero-actions > a {
        width: 100%;
        box-sizing: border-box;
    }
    
    .stats-container, .biz-details-grid, .specialty-grid, .eco-orbits { grid-template-columns: 1fr; gap: 20px; }
    .tl-row { grid-template-columns: 1fr; }
    .tl-line { display: none; }
    
    .eco-stats { flex-direction: column; gap: 30px; }
    .form-row { grid-template-columns: 1fr; }
    
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    
    .timeline-wrapper, .specialty-wrapper, .eco-wrapper, .biz-details-wrapper, .about-wrapper, .footer-wrapper, .cert-wrapper {
        padding: 40px 20px;
    }
}