/* ==========================================================================
   ABOUT US PAGE STYLES
   ========================================================================== */

/* About Hero Section */
.echo-about-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background-image: url('/wp-content/uploads/2025/09/about-echo-banner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.echo-about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(130, 20, 21, 0.9), rgba(160, 22, 23, 0.8));
    z-index: 1;
}

.echo-about-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.echo-about-main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.echo-about-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    margin: 0;
    opacity: 0.9;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* About Content Section */
.echo-about-content {
    padding: 80px 0;
}

.echo-about-content > div:not(:last-child) {
    margin-bottom: 120px;
}

/* Section Titles */
.echo-section-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0 0 50px 0;
    position: relative;
}

.echo-section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #821415, #a01617);
    border-radius: 2px;
}

/* Company Introduction */
.echo-about-intro-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.echo-intro-highlight {
    font-size: 1.3rem;
    font-weight: 600;
    color: #821415;
    line-height: 1.6;
    margin-bottom: 25px;
}

.echo-intro-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* Statistics Cards */
.echo-about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.echo-stat-card {
    background: #fff;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.echo-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(130, 20, 21, 0.15);
    background: linear-gradient(135deg, #821415, #a01617);
}

.echo-stat-card:hover .echo-stat-number {
    color: white;
}

.echo-stat-card:hover .echo-stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.echo-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #821415;
    margin-bottom: 10px;
}

.echo-stat-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

/* Team Structure */
.echo-about-team {
    margin-top: 150px;
}

.echo-team-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.echo-team-structure {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.echo-team-member {
    background: #fff;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    min-width: 160px;
}

.echo-team-member:hover {
    border-color: #821415;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(130, 20, 21, 0.15);
}

.echo-team-icon {
    color: #821415;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.echo-team-member h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.echo-team-member p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.echo-team-arrow {
    font-size: 1.5rem;
    color: #821415;
    font-weight: bold;
}

/* Why Choose Echo */
.echo-about-why {
    position: relative;
    background-color: #ffffff;
    padding: 80px 0;
    border-radius: 20px;
    overflow: hidden;
}

.echo-about-why::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1000px;
    height: 1000px;
    transform: translate(-50%, -50%);
    background: 
        radial-gradient(circle at center, transparent 50px, #821415 52px, #821415 54px, transparent 56px),
        radial-gradient(circle at center, transparent 110px, rgba(130, 20, 21, 0.6) 112px, rgba(130, 20, 21, 0.6) 114px, transparent 116px),
        radial-gradient(circle at center, transparent 170px, rgba(130, 20, 21, 0.4) 172px, rgba(130, 20, 21, 0.4) 174px, transparent 176px),
        radial-gradient(circle at center, transparent 230px, rgba(130, 20, 21, 0.3) 232px, rgba(130, 20, 21, 0.3) 234px, transparent 236px),
        radial-gradient(circle at center, transparent 290px, rgba(130, 20, 21, 0.2) 292px, rgba(130, 20, 21, 0.2) 294px, transparent 296px),
        radial-gradient(circle at center, transparent 350px, rgba(130, 20, 21, 0.1) 352px, rgba(130, 20, 21, 0.1) 354px, transparent 356px);
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

.echo-about-why > * {
    position: relative;
    z-index: 2;
}

.echo-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.echo-why-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

.echo-why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(130, 20, 21, 0.12);
}

.echo-why-number {
    position: absolute;
    top: -15px;
    left: 30px;
    background: linear-gradient(135deg, #821415, #a01617);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.echo-why-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 25px 0 15px 0;
}

.echo-why-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.echo-about-cta {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 80px 60px;
    border-radius: 20px;
    text-align: center;
    margin-top: 50px;
    box-sizing: border-box; /* 確保padding計算在內 */
    overflow: hidden; /* 防止內容超出 */
}

.echo-cta-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

.echo-cta-content p {
    font-size: 1.2rem;
    color: #666;
    margin: 0 0 40px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.echo-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%; /* 確保寬度100% */
    box-sizing: border-box; /* padding計算在寬度內 */
}

.echo-btn {
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #821415;
    display: inline-block;
}

.echo-btn-primary {
    background: #821415;
    color: white;
}

.echo-btn-primary:hover {
    background: #a01617;
    border-color: #a01617;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(130, 20, 21, 0.3);
    text-decoration: none;
    color: white;
}

.echo-btn-outline {
    background: transparent;
    color: #821415;
	border-left: 2px solid #821415 !important;
}

.echo-btn-outline:hover {
    background: #821415;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(130, 20, 21, 0.3);
    text-decoration: none;
	border-left: 2px solid #821415 !important;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .echo-about-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .echo-about-stats {
        flex-direction: row;
        justify-content: center;
    }
    
    .echo-team-structure {
        justify-content: center;
    }
    
    .echo-team-arrow {
        display: none;
    }
    
    /* 添加平板版CTA修正 */
    .echo-about-cta {
        padding: 60px 40px;
        margin: 40px 15px 0;
    }
}

@media (max-width: 768px) {
    .echo-about-hero {
        height: 40vh;
        min-height: 300px;
        background-attachment: scroll; /* 手機版使用scroll避免性能問題 */
    }
    
    .echo-about-content {
        padding: 60px 0;
    }
    
    .echo-about-content > div:not(:last-child) {
        margin-bottom: 80px;
    }
    
    .echo-why-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .echo-team-structure {
        flex-direction: column;
        gap: 25px;
    }
    
    .echo-about-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .echo-stat-card {
        width: 80%;
        max-width: 300px;
    }
    
    .echo-team-member {
        width: 80%;
        max-width: 280px;
    }
    
    .echo-about-cta {
        padding: 50px 15px; /* 減少padding確保不超出 */
        margin: 50px 10px 0; /* 左右間距 */
        box-sizing: border-box;
        width: calc(100% - 20px); /* 明確設定寬度 */
    }
    
    .echo-cta-content {
        width: 100%; /* 確保內容100%寬度 */
        box-sizing: border-box;
    }
    
    .echo-cta-buttons {
        flex-direction: column;
        align-items: center;
        padding: 0; /* 移除padding */
        gap: 15px; /* 減少gap避免太擠 */
        width: 100%; /* 確保按鈕容器100%寬度 */
        box-sizing: border-box;
    }
    
    .echo-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .echo-about-hero {
        height: 35vh;
        min-height: 280px;
    }
    
    .echo-about-content {
        padding: 40px 0;
    }
    
    .echo-why-card,
    .echo-team-member {
        padding: 25px 20px;
    }
    
    .echo-about-cta {
        padding: 40px 10px; /* 最小padding */
        margin: 40px 5px 0; /* 最小間距 */
        width: calc(100% - 10px); /* 確保不超出視窗 */
        box-sizing: border-box;
    }
    
    .echo-cta-content {
        width: 100%;
        padding: 0; /* 移除額外padding */
        box-sizing: border-box;
    }
    
    .echo-btn {
        width: 100%; /* 按鈕100%寬度 */
        max-width: 250px; /* 減少最大寬度 */
        margin: 0; /* 移除外邊距 */
        box-sizing: border-box;
        padding: 12px 20px; /* 減少按鈕padding */
    }
}
