/* Variables */
:root {
    --primary-color: #0b2e59;
    /* Deep Corporate Blue */
    --primary-light: #184c8e;
    --accent-color: #c99700;
    /* Sophisticated Gold/Mustard */
    --accent-hover: #e0ab0e;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Noto Sans TC', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white !important;
}

.text-gray {
    color: var(--text-muted) !important;
}

.text-small {
    font-size: 0.85rem;
}

.bg-light {
    background-color: var(--bg-light);
}

.dark-bg {
    background-color: var(--primary-color);
    color: white;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.section-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-subtitle.light {
    color: rgba(255, 255, 255, 0.7);
}

/* Typography specifics */
.accent-line {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin-bottom: 30px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-arrow i {
    transition: transform 0.3s ease;
}

.link-arrow:hover {
    color: var(--accent-color);
}

.link-arrow:hover i {
    transform: translateX(5px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    border-radius: 4px;
    /* Slight rounding for professional look */
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border-color: white;
    color: white;
}

.btn-outline.text-dark {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-outline.text-dark:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* Top Bar */
.top-bar {
    background-color: var(--bg-dark);
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info a {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info a:hover {
    color: white;
}

.lang-select {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-select:hover {
    color: white;
}

/* Header */
header {
    background-color: white;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-mark {
    background-color: var(--primary-color);
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-text {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text span {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 2px;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 46, 89, 0.95) 0%, rgba(11, 46, 89, 0.7) 50%, rgba(11, 46, 89, 0.3) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    color: white;
    font-size: 4rem;
    margin-bottom: 25px;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin-bottom: 40px;
}

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

.hero-stats {
    background: white;
    padding: 30px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin-top: 80px;
    border-bottom: 4px solid var(--accent-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background-color: var(--border-color);
}

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

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.about-image {
    position: relative;
}

.about-image img {
    box-shadow: 0 20px 40px rgba(11, 46, 89, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--accent-color);
}

.experience-badge .years {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 10px;
}

.experience-badge .text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.4;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    font-family: var(--font-body);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.service-card .link-arrow {
    font-size: 0.85rem;
}

/* Insights Section */
.header-with-button {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.header-with-button h2 {
    font-size: 2.8rem;
    margin-bottom: 0;
}

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

.insight-card {
    background: white;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.insight-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.insight-img {
    position: relative;
    overflow: hidden;
}

.insight-img img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insight-card:hover .insight-img img {
    transform: scale(1.05);
}

.category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.insight-content {
    padding: 30px;
}

.date {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.insight-content h3 {
    font-size: 1.2rem;
    font-family: var(--font-body);
    margin-bottom: 15px;
}

.insight-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Quote Section */
.quote-section {
    background-color: var(--bg-light);
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

.quote-text {
    font-size: 2rem;
    line-height: 1.6;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.quote-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.quote-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.quote-author div {
    text-align: left;
}

.author-name {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contact form */
.contact-cta {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, #0b2e59 0%, #061933 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-info-block h2 {
    font-size: 3rem;
    color: white;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.contact-form-wrapper {
    background: white;
    padding: 50px;
    border-radius: 4px;
    position: relative;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-color);
}

.corporate-form h3 {
    font-family: var(--font-body);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.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;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group label span {
    color: #ef4444;
    /* red for required */
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: white;
}

.form-group textarea {
    resize: vertical;
}

.btn-block {
    width: 100%;
}

/* Footer Section specific styling */
footer.corporate-footer {
    background-color: var(--bg-dark);
    color: var(--text-muted);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo-mark {
    background-color: var(--accent-color);
}

.footer-brand .logo-text span {
    color: rgba(255, 255, 255, 0.5);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

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

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.legal-links {
    font-size: 0.85rem;
}

.legal-links a {
    color: var(--text-muted);
}

.legal-links a:hover {
    color: white;
}

.separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.2);
}

/* Animations */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

.animate {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive */
@media (max-width: 1024px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding: 30px;
        max-width: 100%;
    }

    .stat-divider {
        display: none;
    }

    .experience-badge {
        bottom: -20px;
        left: 20px;
    }

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

    .header-with-button {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

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

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .nav-links,
    .header-container>.btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 100px 0 60px;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .about-text h2,
    .contact-info-block h2 {
        font-size: 2.2rem;
    }

    .services-grid,
    .insights-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .quote-text {
        font-size: 1.4rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}