/* ============================================================
   pages/services.css — 所有服務頁共用樣式
   創巢數位 Nest Digital | 版本 1.0
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   通用 Eyebrow Label
   ══════════════════════════════════════════════════════════ */
.svc-label {
    font-family: var(--f-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(var(--c-cyan-rgb), 0.65);
    margin: 0 0 var(--sp-sm);
}

/* ══════════════════════════════════════════════════════════
   Hero
   ══════════════════════════════════════════════════════════ */
.svc-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--sp-lg) + 56px) var(--sec-px) var(--sp-lg);
    position: relative;
    min-height: 80vh;
    text-align: center;
}

.svc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 65% 70% at 50% 40%,
        rgba(var(--c-blue-rgb), 0.10) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.svc-hero__inner {
    max-width: 760px;
    margin: 0 auto;
}

.svc-hero__eyebrow {
    font-family: var(--f-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(var(--c-cyan-rgb), 0.72);
    margin: 0 0 var(--sp-md);
    padding-top: 0.6em;
    border-top: 1px solid rgba(var(--c-yellow-rgb), 0.45);
    display: inline-block;
}

.svc-hero__title {
    font-family: var(--f-serif-cjk);
    font-size: clamp(2rem, 5.5vw, 4rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: var(--c-stellar);
    margin: 0 0 var(--sp-sm);
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 1),
        2px 2px 3px rgba(0, 0, 0, 0.85),
        0 0 12px rgba(0, 0, 0, 1),
        0 0 24px rgba(0, 0, 0, 0.5);
}

.svc-hero__subtitle {
    font-family: var(--f-fang-cjk);
    font-size: clamp(0.9375rem, 2.2vw, 1.125rem);
    line-height: 1.75;
    color: rgba(var(--c-stellar-rgb), 0.70);
    margin: 0 0 var(--sp-md);
}

.svc-hero__divider {
    width: clamp(160px, 20vw, 240px);
    height: 1px;
    margin: 0 auto var(--sp-md);
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--c-cyan-rgb), 0.25) 25%,
        rgba(var(--c-cyan-rgb), 0.70) 50%,
        rgba(var(--c-cyan-rgb), 0.25) 75%,
        transparent 100%
    );
    box-shadow: 0 0 10px rgba(var(--c-cyan-rgb), 0.25);
}

.svc-hero__lead {
    font-family: var(--f-sans);
    font-size: clamp(0.875rem, 2vw, 1.0625rem);
    font-weight: 300;
    line-height: 2;
    letter-spacing: 0.02em;
    color: rgba(var(--c-stellar-rgb), 0.80);
    margin: 0 0 var(--sp-md);
    text-align: left;
}

.svc-hero__lead strong {
    color: var(--c-stellar);
    font-weight: 700;
}

.svc-hero__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: var(--sp-md);
}

/* ══════════════════════════════════════════════════════════
   Sections
   ══════════════════════════════════════════════════════════ */
.svc-section {
    padding: var(--sp-m2) var(--sec-px);
}

.svc-section__inner {
    max-width: 800px;
    margin: 0 auto;
}

.svc-section-title {
    font-family: var(--f-serif-cjk);
    font-size: clamp(1.4rem, 3.5vw, 2.25rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: var(--c-stellar);
    margin: 0 0 var(--sp-md);
}

/* ══════════════════════════════════════════════════════════
   Body Text
   ══════════════════════════════════════════════════════════ */
.svc-body {
    font-family: var(--f-sans);
    color: rgba(var(--c-stellar-rgb), 0.80);
    line-height: 2;
}

.svc-body p {
    margin: 0 0 1.5em;
}

.svc-body p:last-child {
    margin-bottom: 0;
}

.svc-body strong {
    color: var(--c-stellar);
    font-weight: 700;
}

/* ══════════════════════════════════════════════════════════
   List
   ══════════════════════════════════════════════════════════ */
.svc-list {
    list-style: none;
    margin: 0 0 var(--sp-md);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.svc-list__item {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    font-family: var(--f-sans);
    color: rgba(var(--c-stellar-rgb), 0.80);
    line-height: 1.7;
}

.svc-list__item::before {
    content: '—';
    color: rgba(var(--c-cyan-rgb), 0.65);
    flex-shrink: 0;
    font-family: var(--f-mono);
}

/* ══════════════════════════════════════════════════════════
   Note
   ══════════════════════════════════════════════════════════ */
.svc-note {
    font-family: var(--f-sans);
    font-size: var(--fs-sm);
    color: rgba(var(--c-stellar-rgb), 0.45);
    border-left: 2px solid rgba(var(--c-cyan-rgb), 0.25);
    padding-left: 1em;
    line-height: 1.7;
    margin: var(--sp-sm) 0 0;
}

/* ══════════════════════════════════════════════════════════
   Pricing
   ══════════════════════════════════════════════════════════ */
.svc-pricing {
    padding: var(--sp-m2) var(--sec-px);
}

.svc-pricing__inner {
    max-width: 800px;
    margin: 0 auto;
}

.svc-pricing__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid rgba(var(--c-stellar-rgb), 0.08);
    margin: 0 0 var(--sp-sm);
}

.svc-pricing__table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-family: var(--f-sans);
    font-size: 0.9rem;
}

.svc-pricing__table thead tr {
    background: rgba(var(--c-blue-rgb), 0.08);
}

.svc-pricing__table th {
    font-family: var(--f-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(var(--c-cyan-rgb), 0.75);
    padding: 0.85em 1.1em;
    text-align: left;
    border-bottom: 1px solid rgba(var(--c-stellar-rgb), 0.08);
    white-space: nowrap;
    background: rgba(var(--c-blue-rgb), 0.08);
}

.svc-pricing__table td {
    padding: 0.85em 1.1em;
    font-family: var(--f-sans);
    color: rgba(var(--c-stellar-rgb), 0.82);
    border-bottom: 1px solid rgba(var(--c-stellar-rgb), 0.06);
    vertical-align: middle;
}

.svc-pricing__table tr:last-child td {
    border-bottom: none;
}

.svc-pricing__table td:first-child {
    color: var(--c-stellar);
    font-weight: 500;
}

.svc-pricing__price {
    font-family: var(--f-serif-cjk);
    color: var(--c-yellow);
    font-size: 1.5rem;
    font-weight: 500;
    white-space: nowrap;
}

.svc-pricing__note {
    font-family: var(--f-sans);
    font-size: var(--fs-sm);
    color: rgba(var(--c-stellar-rgb), 0.45);
    margin: var(--sp-sm) 0 0;
    line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════════════════ */
.svc-faq {
    padding: var(--sp-m2) var(--sec-px);
    border-top: 1px solid rgba(var(--c-stellar-rgb), 0.06);
}

.svc-faq__inner {
    max-width: 800px;
    margin: 0 auto;
}

.svc-faq__title {
    font-family: var(--f-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(var(--c-cyan-rgb), 0.65);
    margin: 0 0 var(--sp-md);
}

.svc-faq__list {
    display: flex;
    flex-direction: column;
}

.svc-faq__item {
    border-bottom: 1px solid rgba(var(--c-stellar-rgb), 0.06);
    padding: var(--sp-md) 0;
}

.svc-faq__item:last-child {
    border-bottom: none;
}

.svc-faq__q {
    font-family: var(--f-serif-cjk);
    color: var(--c-stellar);
    font-weight: 500;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    line-height: 1.4;
    margin: 0 0 0.6em;
}

.svc-faq__a {
    font-family: var(--f-sans);
    color: rgba(var(--c-stellar-rgb), 0.72);
    line-height: 1.9;
    font-size: var(--fs-base);
    margin: 0;
}

.svc-faq__a a {
    color: var(--c-cyan);
    text-decoration: none;
    transition: color var(--t-base);
}

.svc-faq__a a:hover {
    color: rgba(var(--c-cyan-rgb), 0.80);
    text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════
   Final CTA
   ══════════════════════════════════════════════════════════ */
.svc-final-cta {
    padding: var(--sp-m2) var(--sec-px) var(--sp-w1);
    text-align: center;
}

.svc-final-cta__inner {
    max-width: 600px;
    margin: 0 auto;
}

.svc-final-cta__divider {
    width: clamp(200px, 25vw, 320px);
    height: 1px;
    margin: 0 auto var(--sp-lg);
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--c-blue-rgb), 0.30) 25%,
        rgba(var(--c-blue-rgb), 0.75) 50%,
        rgba(var(--c-blue-rgb), 0.30) 75%,
        transparent 100%
    );
    box-shadow: 0 0 12px rgba(var(--c-blue-rgb), 0.30);
}

.svc-final-cta__title {
    font-family: var(--f-serif-cjk);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--c-stellar);
    margin: 0 0 0.35em;
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 1),
        2px 2px 3px rgba(0, 0, 0, 0.85),
        0 0 12px rgba(0, 0, 0, 1),
        0 0 24px rgba(0, 0, 0, 0.5);
}

.svc-final-cta__en {
    font-family: var(--f-display-en);
    font-size: clamp(0.9rem, 2vw, 1.125rem);
    letter-spacing: 0.04em;
    color: rgba(var(--c-cyan-rgb), 0.65);
    margin: 0 0 var(--sp-md);
}

.svc-final-cta__sub {
    font-family: var(--f-sans);
    font-size: var(--fs-sm);
    color: rgba(var(--c-stellar-rgb), 0.45);
    margin: var(--sp-sm) 0 0;
    line-height: 1.7;
}

.svc-final-cta__sub a {
    color: var(--c-cyan);
    text-decoration: none;
    transition: color var(--t-base);
}

.svc-final-cta__sub a:hover {
    color: rgba(var(--c-cyan-rgb), 0.80);
    text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════
   Service Grid Cards (services.html overview)
   ══════════════════════════════════════════════════════════ */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-md);
    margin-top: var(--sp-lg);
}

.svc-card {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
    padding: var(--sp-md);
    border: 1px solid rgba(var(--c-stellar-rgb), 0.08);
    border-radius: var(--radius-lg);
    background: rgba(var(--c-blue-rgb), 0.06);
    text-decoration: none;
    transition: border-color var(--t-base), background var(--t-base), transform var(--t-base);
}

.svc-card:hover {
    border-color: rgba(var(--c-cyan-rgb), 0.35);
    background: rgba(var(--c-blue-rgb), 0.10);
    transform: translateY(-2px);
}

.svc-card__label {
    font-family: var(--f-mono);
    font-size: var(--fs-xs);
    color: rgba(var(--c-cyan-rgb), 0.55);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.svc-card__title {
    font-family: var(--f-serif-cjk);
    color: var(--c-stellar);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
}

.svc-card__desc {
    font-family: var(--f-sans);
    font-size: var(--fs-sm);
    color: rgba(var(--c-stellar-rgb), 0.60);
    line-height: 1.6;
    flex: 1;
    margin: 0;
}

.svc-card__arrow {
    font-family: var(--f-mono);
    color: rgba(var(--c-cyan-rgb), 0.55);
    align-self: flex-end;
    transition: transform var(--t-base), color var(--t-base);
}

.svc-card:hover .svc-card__arrow {
    transform: translateX(4px);
    color: var(--c-cyan);
}

/* ══════════════════════════════════════════════════════════
   Referral Stat Cards (ads.html)
   ══════════════════════════════════════════════════════════ */
.svc-refer-cards {
    display: flex;
    gap: var(--sp-md);
    justify-content: center;
    margin: var(--sp-lg) 0 var(--sp-sm);
    flex-wrap: wrap;
}

.svc-refer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--sp-md) var(--sp-sm);
    border: 1px solid rgba(var(--c-cyan-rgb), 0.18);
    border-radius: var(--radius-lg);
    background: rgba(var(--c-blue-rgb), 0.06);
    min-width: 160px;
    flex: 1;
    max-width: 220px;
    text-align: center;
}

.svc-refer-card__num {
    font-family: var(--f-mono);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 500;
    color: var(--c-cyan);
    margin: 0 0 0.4em;
    text-shadow: 0 0 20px rgba(var(--c-cyan-rgb), 0.30);
}

.svc-refer-card__label {
    font-family: var(--f-sans);
    font-size: var(--fs-sm);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(var(--c-stellar-rgb), 0.58);
    margin: 0;
}

/* ══════════════════════════════════════════════════════════
   Email Capture Form (booking.html)
   ══════════════════════════════════════════════════════════ */
.svc-email-form {
    display: flex;
    gap: var(--sp-sm);
    margin-top: var(--sp-md);
    flex-wrap: wrap;
    justify-content: center;
}

.svc-email-input {
    flex: 1;
    min-width: 240px;
    padding: 0.75em 1.1em;
    border: 1px solid rgba(var(--c-stellar-rgb), 0.15);
    border-radius: 10px;
    background: rgba(var(--c-stellar-rgb), 0.04);
    font-family: var(--f-sans);
    font-size: var(--fs-base);
    color: var(--c-stellar);
    outline: none;
    transition: border-color var(--t-base);
}

.svc-email-input::placeholder {
    color: rgba(var(--c-stellar-rgb), 0.30);
}

.svc-email-input:focus {
    border-color: rgba(var(--c-cyan-rgb), 0.45);
}

.svc-email-success {
    display: none;
    font-family: var(--f-sans);
    font-size: var(--fs-base);
    color: var(--c-cyan);
    border: 1px solid rgba(var(--c-cyan-rgb), 0.30);
    border-radius: 10px;
    padding: 0.75em 1.5em;
    margin-top: var(--sp-sm);
    width: 100%;
}

/* ══════════════════════════════════════════════════════════
   Mobile Breakpoint
   ══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .svc-hero {
        min-height: unset;
        padding: calc(var(--sp-md) + 56px) var(--sp-sm) var(--sp-lg);
    }

    .svc-section,
    .svc-pricing,
    .svc-faq,
    .svc-final-cta {
        padding-left: var(--sp-sm);
        padding-right: var(--sp-sm);
    }

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

    .svc-refer-cards {
        flex-direction: column;
        align-items: center;
    }

    .svc-refer-card {
        max-width: 100%;
        width: 100%;
    }

    .svc-email-form {
        flex-direction: column;
    }

    .svc-email-input {
        min-width: unset;
        width: 100%;
    }
}
