/* ===================================================================
   Page: SERVICE
   Service-page-specific styles (hero, ticket layout, features)
   =================================================================== */

/* -------------------------------------------------------------------
   1. Hero (Service)
   ------------------------------------------------------------------- */
.hero-service {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

/* Giant background text */
.hero-service__bg-text {
    position: absolute;
    top: calc(var(--header-height) + 40px); left: 0;
    font-family: var(--font-en);
    font-size: clamp(120px, 22vw, 360px);
    font-weight: 200;
    color: var(--color-blue-light);
    line-height: 1;
    z-index: -1;
    white-space: nowrap;
    user-select: none;
    letter-spacing: -0.02em;
}

.hero-service__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-service__content { padding-right: 20px; }
.hero-service__catch {
    display: flex; align-items: center; font-family: var(--font-en); font-size: 14px; font-weight: 500;
    color: var(--color-text-light); letter-spacing: 0.25em; margin-bottom: 32px; text-transform: uppercase;
}
.hero-service__catch::before {
    content: ''; display: inline-block; width: 24px; height: 2px;
    background-color: var(--color-primary); transform: rotate(-45deg); margin-right: 16px;
}

.hero-service__title {
    font-size: clamp(32px, 4vw, 44px); font-weight: 500; line-height: 1.4;
    letter-spacing: 0.05em; color: var(--color-text); margin-bottom: 32px;
}
.hero-service__title span { color: var(--color-primary); }

.hero-service__text { font-size: 16px; color: var(--color-text-light); letter-spacing: 0.1em; line-height: 2; }

.hero-service__image-area { position: relative; height: 500px; }
.hero-service__shape-bg {
    position: absolute; right: -10%; top: -10%; width: 120%; height: 120%;
    background: var(--color-blue-light); border-radius: 50%; z-index: -1; filter: blur(40px); opacity: 0.8;
}
.hero-service__image-wrap {
    width: 100%; height: 100%; border-radius: 120px 24px 120px 24px; overflow: hidden; position: relative;
    box-shadow: 0 30px 60px rgba(25, 62, 101, 0.08); border: 8px solid #fff;
}
.hero-service__image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-service__image-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(43, 112, 214, 0.1), transparent); mix-blend-mode: overlay; }

@media (max-width: 1024px) {
    .hero-service { min-height: auto; padding-top: 140px; padding-bottom: 60px; }
    .hero-service__grid { grid-template-columns: 1fr; gap: 60px; }
    .hero-service__content { padding-right: 0; }
    .hero-service__image-area { height: 400px; width: 90%; margin: 0 auto; }
}
@media (max-width: 768px) {
    .hero-service__title { font-size: 32px; }
    .hero-service__image-area { height: 300px; width: 100%; }
    .hero-service__image-wrap { border-radius: 60px 16px 60px 16px; border-width: 4px; }
}

/* -------------------------------------------------------------------
   2. Service Tickets Layout
   ------------------------------------------------------------------- */
.service-list {
    margin-top: 80px;
}
@media (max-width: 768px) {
    .service-list { margin-top: 40px; }
}

/* Ticket-style container */
.service-ticket {
    display: flex;
    background-color: var(--ticket-bg, #6B7A99);
    border-radius: var(--radius-lg);
    color: #fff;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 80px;
    overflow: hidden;
    /* Tear-line mask */
    -webkit-mask-image: radial-gradient(circle at 80px 0px, transparent 16px, black 16.5px), radial-gradient(circle at 80px 100%, transparent 16px, black 16.5px);
    -webkit-mask-size: 100% 51%;
    -webkit-mask-position: top, bottom;
    -webkit-mask-repeat: no-repeat;
    mask-image: radial-gradient(circle at 80px 0px, transparent 16px, black 16.5px), radial-gradient(circle at 80px 100%, transparent 16px, black 16.5px);
    mask-size: 100% 51%;
    mask-position: top, bottom;
    mask-repeat: no-repeat;
}

/* Left stub */
.ticket-stub {
    width: 80px;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}
.ticket-stub span {
    font-family: var(--font-en); font-size: 14px; letter-spacing: 0.2em;
    writing-mode: vertical-rl; text-orientation: mixed; opacity: 0.7; text-transform: uppercase;
}

/* Right content area */
.ticket-content {
    flex-grow: 1;
    display: flex;
    gap: 56px;
    padding: 40px 48px;
    align-items: center;
}

/* Alternate direction for even items */
.service-ticket:nth-child(even) .ticket-content {
    flex-direction: row-reverse;
}

.ticket-image {
    width: 40%;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.ticket-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
}

.ticket-body {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Content: title & lead */
.ticket-info {
    display: flex;
    flex-direction: column;
}
.ticket-info__cat {
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; font-weight: 500; margin-bottom: 16px; opacity: 0.9;
}
.ticket-info__cat-num {
    font-family: var(--font-en); font-size: 16px; font-weight: 600;
}
.ticket-info__title {
    font-size: clamp(20px, 2.5vw, 28px); font-weight: 500; line-height: 1.5;
    margin-bottom: 24px; letter-spacing: 0.05em;
}
.ticket-info__desc {
    font-size: 14px; line-height: 1.8; opacity: 0.9; margin-bottom: 32px;
}

/* Background large number */
.ticket-bg-num {
    position: absolute;
    bottom: -20px; right: 0;
    font-family: var(--font-en); font-size: 120px; line-height: 0.75; font-weight: 300;
    color: rgba(255, 255, 255, 0.08); letter-spacing: -0.02em; z-index: -1;
    pointer-events: none;
}

/* Feature items (card-style) */
.ticket-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}
.feature-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px 24px;
    transition: var(--transition-smooth);
}
.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}
.feature-item__header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.feature-item__num {
    font-family: var(--font-en); font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, 0.6);
}
.feature-item__title { font-size: 15px; font-weight: 500; letter-spacing: 0.05em; }
.feature-item__desc { font-size: 13px; line-height: 1.6; opacity: 0.8; }

@media (max-width: 1024px) {
    .ticket-content { flex-direction: column !important; padding: 40px; gap: 40px; }
    .ticket-image, .ticket-body { width: 100%; }
    .ticket-image { aspect-ratio: 16 / 9; }
    .ticket-bg-num { display: none; }
}

@media (max-width: 768px) {
    .service-ticket {
        flex-direction: column;
        /* Horizontal tear-line on mobile */
        -webkit-mask-image: radial-gradient(circle at 0px 64px, transparent 16px, black 16.5px), radial-gradient(circle at 100% 64px, transparent 16px, black 16.5px);
        -webkit-mask-size: 51% 100%; -webkit-mask-position: left, right;
        mask-image: radial-gradient(circle at 0px 64px, transparent 16px, black 16.5px), radial-gradient(circle at 100% 64px, transparent 16px, black 16.5px);
        mask-size: 51% 100%; mask-position: left, right;
        margin-bottom: 40px;
    }
    .service-ticket:last-child { margin-bottom: 0; }
    .service-list.section { padding-bottom: 40px; }
    .ticket-stub {
        width: 100%; height: 64px; padding: 0; border-right: none;
        border-bottom: 1px dashed rgba(255,255,255,0.4);
    }
    .ticket-stub span { writing-mode: horizontal-tb; letter-spacing: 0.3em; }
    .ticket-content { padding: 40px 24px; }
    .feature-item { padding: 24px; }
}
