/* ============================================
   STEPC About Page Styles
   about.css — 關於我們頁面
   Color: Black + Yellow (#FEE500)
   ============================================ */

/* =============================================
   HERO — Smaller (50vh)
   ============================================= */
.about-hero {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 70% at 50% 0%, rgba(254, 229, 0, 0.16) 0%, transparent 65%),
        radial-gradient(ellipse 45% 55% at 80% 90%, rgba(255, 80, 0, 0.06) 0%, transparent 55%),
        linear-gradient(155deg, #130900 0%, #080808 50%, #0a0000 100%);
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8,8,8,0.3) 0%,
        transparent 40%,
        rgba(8,8,8,0.55) 80%,
        rgba(8,8,8,1) 100%
    );
}

.about-hero-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Floating particles */
.about-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.ap {
    position: absolute;
    border-radius: 50%;
    background: var(--stepc-orange);
    animation: apFloat linear infinite;
}

.ap1 { width:3px; height:3px; left:12%; top:30%; animation-duration:9s;  animation-delay:0s;   opacity:0.35; }
.ap2 { width:2px; height:2px; left:78%; top:20%; animation-duration:11s; animation-delay:1.2s; opacity:0.25; }
.ap3 { width:4px; height:4px; left:88%; top:55%; animation-duration:8s;  animation-delay:2s;   opacity:0.4; }
.ap4 { width:2px; height:2px; left:25%; top:65%; animation-duration:10s; animation-delay:0.6s; opacity:0.3; }
.ap5 { width:3px; height:3px; left:55%; top:45%; animation-duration:12s; animation-delay:3s;   opacity:0.35; }
.ap6 { width:2px; height:2px; left:65%; top:75%; animation-duration:7s;  animation-delay:1.8s; opacity:0.28; }

@keyframes apFloat {
    0%   { transform: translateY(0) scale(1);   opacity: 0;   }
    10%  { opacity: 1; }
    90%  { opacity: 0.7; }
    100% { transform: translateY(-100px) scale(0.5); opacity: 0; }
}

.about-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    padding-top: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-hero-label {
    font-size: 0.7rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--stepc-orange);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.85;
}

.about-hero-title {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    letter-spacing: 6px;
    line-height: 1;
    color: #fff;
    margin: 0 0 0.6rem;
    text-shadow: 0 0 50px rgba(254,229,0,0.25);
}

.about-hero-en {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(0.8rem, 1.8vw, 1.2rem);
    letter-spacing: 8px;
    color: var(--stepc-orange);
    margin: 0 0 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.about-hero-sub {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 3px;
    margin: 0;
}

.about-hero-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(254,229,0,0.3), transparent);
}


/* =============================================
   BRAND STORY SECTION
   ============================================= */
.about-story {
    background: #ffffff;
}

.about-story-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Two-column layout */
.about-story-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

/* Left: Text */
.about-story-text {}

.about-story-lead {
    font-family: 'Noto Serif TC', serif;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 2;
    color: #333333;
    margin-bottom: 1.5rem;
}

.about-story-lead strong {
    color: #B8A000;
    font-weight: 700;
}

.about-story-body-text {
    font-size: 0.95rem;
    line-height: 2;
    color: #666666;
    margin-bottom: 1.2rem;
}

.about-story-body-text:last-of-type {
    margin-bottom: 2rem;
}

/* Story Tags */
.about-story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.story-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #B8A000;
    border: 1px solid rgba(184, 160, 0, 0.3);
    background: rgba(184, 160, 0, 0.07);
    padding: 0.35rem 0.85rem;
    border-radius: 3px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.story-tag:hover {
    background: rgba(184, 160, 0, 0.14);
    border-color: rgba(184, 160, 0, 0.5);
}

/* Right: Image Placeholder */
.about-story-img {
    width: 100%;
}

.about-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
    border: 1px solid rgba(184, 160, 0, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.about-img-placeholder:hover {
    border-color: rgba(184, 160, 0, 0.35);
}

.about-img-inner {
    text-align: center;
    z-index: 1;
}

.about-img-logo {
    display: block;
    font-family: 'Abril Fatface', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 8px;
    color: rgba(0, 0, 0, 0.1);
}

.about-img-logo em {
    color: rgba(184, 160, 0, 0.3);
    font-style: normal;
}

.about-img-sub {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: rgba(0, 0, 0, 0.18);
    margin-top: 0.5rem;
    text-transform: uppercase;
}

/* Corner accents */
.about-img-corner {
    position: absolute;
    width: 28px;
    height: 28px;
}

.about-img-corner--tl {
    top: 12px;
    left: 12px;
    border-top: 2px solid rgba(184, 160, 0, 0.4);
    border-left: 2px solid rgba(184, 160, 0, 0.4);
}

.about-img-corner--br {
    bottom: 12px;
    right: 12px;
    border-bottom: 2px solid rgba(184, 160, 0, 0.4);
    border-right: 2px solid rgba(184, 160, 0, 0.4);
}


/* =============================================
   STATS CARDS
   ============================================= */
.about-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.about-stat-card {
    background: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 2.2rem 1.5rem;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.about-stat-card:hover {
    border-color: rgba(184, 160, 0, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.about-stat-num {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #B8A000;
    line-height: 1;
    margin-bottom: 0.7rem;
    letter-spacing: 2px;
}

.about-stat-label {
    font-size: 0.82rem;
    color: #666666;
    letter-spacing: 2px;
}


/* =============================================
   TEAM SECTION
   ============================================= */
.about-team {
    background: #f5f5f5;
    position: relative;
}

.about-team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.about-team-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 4-column grid */
.about-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    border-color: rgba(184, 160, 0, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Photo circle */
.team-photo {
    margin: 0 auto 1.2rem;
    width: 90px;
    height: 90px;
}

.team-photo-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #e8e8e8;
    border: 2px solid rgba(184, 160, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.2);
    font-size: 2.2rem;
    transition: border-color 0.3s ease;
}

.team-card:hover .team-photo-placeholder {
    border-color: rgba(184, 160, 0, 0.55);
}

.team-name {
    font-family: 'Abril Fatface', serif;
    font-size: 1rem;
    color: #1a1a1a;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
}

.team-role {
    font-size: 0.72rem;
    color: #B8A000;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    opacity: 1;
}

.team-desc {
    font-size: 0.8rem;
    color: #888888;
    line-height: 1.7;
    margin: 0;
}


/* =============================================
   CONTACT FORM SECTION
   ============================================= */
.about-contact {
    background: #ffffff;
    position: relative;
}

.about-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.about-contact-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Contact Card — card on light background */
.contact-card {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--stepc-orange-dark), var(--stepc-orange), var(--stepc-orange-light));
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 2.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--stepc-gray-dark);
    letter-spacing: 1px;
}

.contact-card-icon {
    color: var(--stepc-orange);
    font-size: 1.1rem;
}

/* Form layout */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.contact-form-group {
    position: relative;
    margin-bottom: 1.8rem;
}

.contact-form-group--full {
    grid-column: 1 / -1;
    margin-bottom: 1.8rem;
}

.contact-form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 0.6rem;
}

.required-star {
    color: var(--stepc-orange);
}

/* Underline-style inputs */
.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid #ccc;
    border-radius: 0;
    padding: 0.5rem 0 0.7rem;
    font-size: 0.95rem;
    font-family: 'Noto Sans TC', sans-serif;
    color: #222;
    outline: none;
    transition: border-color 0.3s ease;
    resize: none;
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
    color: #bbb;
    font-size: 0.88rem;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    border-bottom-color: var(--stepc-orange);
}

/* Animated underline */
.form-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--stepc-orange);
    transition: width 0.35s cubic-bezier(0.16,1,0.3,1);
}

.contact-form-group.is-focused .form-underline {
    width: 100%;
}

/* Error state */
.contact-form-group.has-error input,
.contact-form-group.has-error textarea {
    border-bottom-color: #e84040;
}

.contact-form-group.has-error .form-underline {
    background: #e84040;
    width: 100%;
}

/* Submit button */
.contact-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--stepc-orange);
    color: #000;
    border: 2px solid var(--stepc-orange);
    padding: 0.85rem 2.5rem;
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Noto Sans TC', sans-serif;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.contact-submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.contact-submit-btn:hover::before {
    transform: translateX(100%);
}

.contact-submit-btn:hover {
    background: transparent;
    color: var(--stepc-orange);
    box-shadow: 0 0 20px rgba(254, 229, 0, 0.25);
    letter-spacing: 4px;
}

.contact-submit-btn.submitting {
    opacity: 0.7;
    pointer-events: none;
}

.contact-submit-btn.submitted {
    background: #1a1a1a;
    color: #64c896;
    border-color: #64c896;
    pointer-events: none;
    letter-spacing: 1px;
    font-size: 0.82rem;
}

.contact-submit-btn.submitted:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.btn-icon {
    font-size: 0.85rem;
}


/* =============================================
   SOCIAL ICONS ROW
   ============================================= */
.contact-social-row {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.contact-social-label {
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
}

.contact-social-icons {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.contact-social-btn:hover {
    background: var(--stepc-orange);
    border-color: var(--stepc-orange);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(254,229,0,0.3);
}


/* =============================================
   RESPONSIVE — Tablet
   ============================================= */
@media (max-width: 992px) {
    .about-story-body {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-story-img {
        max-width: 520px;
        margin: 0 auto;
    }

    .about-stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .about-team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contact-card {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .about-hero {
        min-height: 320px;
    }

    .about-stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .about-stat-card {
        padding: 1.5rem 1rem;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 600px) {
    .about-hero-title {
        letter-spacing: 3px;
    }

    .about-story-tags {
        gap: 0.5rem;
    }

    .about-stats-row {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }

    .about-team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .team-photo,
    .team-photo-placeholder {
        width: 72px;
        height: 72px;
    }

    .contact-card {
        padding: 2rem 1.4rem;
        border-radius: 12px;
    }

    .contact-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .contact-form-actions {
        justify-content: stretch;
    }
}

@media (max-width: 400px) {
    .about-hero-title {
        font-size: 2.2rem;
    }

    .about-team-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* =============================================
   LIGHT BACKGROUND SECTION HEADER OVERRIDES
   ============================================= */
.about-story .section-header h2,
.about-team .section-header h2,
.about-contact .section-header h2 {
    color: #1a1a1a;
}

.about-story .section-header p,
.about-team .section-header p,
.about-contact .section-header p {
    color: #666666;
}

.about-story .section-header .section-label,
.about-team .section-header .section-label,
.about-contact .section-header .section-label {
    color: #B8A000;
}

.about-story .section-header .section-label::before,
.about-story .section-header .section-label::after,
.about-team .section-header .section-label::before,
.about-team .section-header .section-label::after,
.about-contact .section-header .section-label::before,
.about-contact .section-header .section-label::after {
    background: rgba(184, 160, 0, 0.35);
}
