/* =====================================================
   SERVICE PAGE - Clean Professional Design v2
===================================================== */

/* Service Hero */
.service-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: var(--gray-900);
    overflow: hidden;
}

.service-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.service-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.service-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.85), rgba(17, 24, 39, 0.7));
}

.service-hero__content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 24px 100px;
    text-align: center;
}

.service-hero__badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(43, 104, 159, 0.2);
    color: var(--accent-300);
    border: 1px solid rgba(43, 104, 159, 0.4);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.service-hero__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 16px;
}

.service-hero__title em {
    font-style: normal;
    color: var(--accent-400);
}

.service-hero__desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =====================================================
   SERVICE SECTIONS
===================================================== */
.service-section {
    padding: 100px 0;
}

.service-section:nth-child(even) {
    background: var(--gray-50);
}

.service-section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Layout: Image Left */
.service-section--img-left .service-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Layout: Image Right */
.service-section--img-right .service-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-section--img-right .service-section__content {
    order: -1;
}

/* Section Content */
.service-section__badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-50);
    color: var(--accent-600);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.service-section__title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.35;
    margin-bottom: 16px;
}

.service-section__desc {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Feature Tags */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray-700);
    transition: all 0.2s;
}

.feature-tag i {
    color: var(--gray-400);
    font-size: 14px;
}

.feature-tag:hover {
    border-color: var(--accent-300);
    background: var(--accent-50);
}

.feature-tag:hover i {
    color: var(--accent-600);
}

/* Section Image */
.service-section__image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--gray-100);
    aspect-ratio: 4/3;
}

.service-section__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.service-section__image:hover img {
    transform: scale(1.03);
}

.service-section__image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.service-section__image-overlay h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.service-section__image-overlay p {
    font-size: 13px;
    opacity: 0.8;
}

/* =====================================================
   TECH SPECS
===================================================== */
.tech-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.tech-spec {
    text-align: center;
    padding: 20px 16px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    transition: border-color 0.2s;
}

.tech-spec:hover {
    border-color: var(--accent-300);
}

.tech-spec__value {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.tech-spec:first-child .tech-spec__value {
    color: var(--accent-600);
}

.tech-spec__label {
    font-size: 13px;
    color: var(--gray-500);
}

/* =====================================================
   IMAGE GRID (2x2)
===================================================== */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.image-grid__item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-100);
    aspect-ratio: 1;
}

.image-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.image-grid__item:hover img {
    transform: scale(1.05);
}

.image-grid__label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
}

/* =====================================================
   CENTERED SECTION (MRO)
===================================================== */
.service-section--centered {
    text-align: center;
}

.service-section--centered .service-section__header {
    max-width: 700px;
    margin: 0 auto 48px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.showcase-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--gray-100);
}

.showcase-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-main__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
}

.showcase-main__overlay h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.showcase-main__overlay p {
    font-size: 14px;
    opacity: 0.8;
}

.showcase-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.showcase-sidebar__item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-100);
    flex: 1;
}

.showcase-sidebar__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-sidebar__label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    border-radius: 5px;
}

/* =====================================================
   FULL WIDTH DARK SECTION (Evacuation)
===================================================== */
.service-section--dark {
    background: var(--gray-900);
    position: relative;
    overflow: hidden;
}

.service-section--dark .service-section__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.service-section--dark .service-section__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.service-section--dark .service-section__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 28, 45, 0.9), rgba(30, 58, 95, 0.85));
    z-index: 1;
}

.service-section--dark .service-section__container {
    position: relative;
    z-index: 1;
}

.service-section--dark .service-section__badge {
    background: rgba(43, 104, 159, 0.2);
    color: var(--accent-300);
}

.service-section--dark .service-section__title {
    color: #fff;
}

.service-section--dark .service-section__desc {
    color: rgba(255, 255, 255, 0.7);
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.demo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.demo-item:hover {
    border-color: rgba(43, 104, 159, 0.5);
    transform: translateY(-4px);
}

.demo-item--featured {
    transform: scale(1.05);
    border-color: var(--accent-500);
}

.demo-item--featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.demo-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.demo-item__label {
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

/* =====================================================
   ANALYTICS SECTION
===================================================== */
.analytics-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.analytics-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s;
}

.analytics-card:hover {
    border-color: var(--accent-300);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.analytics-card__icon {
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gray-500);
    margin-bottom: 12px;
    transition: all 0.2s;
}

.analytics-card:hover .analytics-card__icon {
    background: var(--accent-50);
    color: var(--accent-600);
}

.analytics-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.analytics-card__desc {
    font-size: 13px;
    color: var(--gray-500);
}

/* Visual Stack */
.visual-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.visual-stack__item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-100);
}

.visual-stack__item img {
    width: 100%;
    object-fit: cover;
}

.visual-stack__item--lg img {
    aspect-ratio: 16/9;
}

.visual-stack__item--md img {
    aspect-ratio: 16/7;
}

.visual-stack__item--sm img {
    aspect-ratio: 16/5;
}

.visual-stack__label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
}

/* =====================================================
   SPLIT SECTION (Firefighting)
===================================================== */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.split-image {
    border-radius: 16px;
    overflow: hidden;
    background: var(--gray-100);
}

.split-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 48px;
}

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

.strip-item__image {
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-100);
    margin-bottom: 12px;
}

.strip-item__image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.strip-item__label {
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 500;
}

/* =====================================================
   CTA SECTION
===================================================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent-600), var(--accent-700));
}

.cta-section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.cta-section__title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 12px;
}

.cta-section__desc {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.cta-section__visual img {
    max-width: 300px;
    border-radius: 12px;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
    .service-section--img-left .service-section__grid,
    .service-section--img-right .service-section__grid,
    .split-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-section--img-right .service-section__content {
        order: 0;
    }
    
    /* 모바일에서 모든 섹션: 콘텐츠(텍스트)가 이미지보다 먼저 표시 */
    .service-section--img-left .service-section__grid,
    .service-section--img-right .service-section__grid {
        display: flex;
        flex-direction: column;
    }
    
    .service-section--img-left .service-section__content,
    .service-section--img-right .service-section__content {
        order: -1;
    }
    
    .service-section--img-left .visual-stack,
    .service-section--img-left .image-grid,
    .service-section--img-left .service-section__image {
        order: 1;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .demo-item--featured {
        transform: none;
    }
    
    .demo-item--featured:hover {
        transform: translateY(-4px);
    }
    
    .strip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-section__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-section__visual {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Service Hero Mobile */
    .service-hero {
        min-height: 50vh;
    }
    
    .service-hero__content {
        padding: 100px 16px 60px;
    }
    
    .service-hero__badge {
        font-size: 11px;
        padding: 6px 14px;
    }
    
    .service-hero__title {
        font-size: 24px;
        line-height: 1.35;
    }
    
    .service-hero__desc {
        font-size: 14px;
    }
    
    .service-hero__desc br {
        display: none;
    }
    
    /* Service Sections Mobile */
    .service-section {
        padding: 60px 0;
    }
    
    .service-section__container {
        padding: 0 16px;
    }
    
    .service-section__badge {
        font-size: 10px;
        padding: 5px 12px;
    }
    
    .service-section__title {
        font-size: 22px;
    }
    
    .service-section__desc {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    /* Feature Tags Mobile */
    .feature-tags {
        gap: 8px;
    }
    
    .feature-tag {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .feature-tag i {
        font-size: 12px;
    }
    
    /* Image Grid Mobile */
    .image-grid {
        gap: 8px;
    }
    
    .image-grid__label {
        font-size: 11px;
        padding: 4px 8px;
        bottom: 8px;
        left: 8px;
    }
    
    /* Tech Specs Mobile */
    .tech-specs {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .tech-spec {
        padding: 14px 8px;
    }
    
    .tech-spec__value {
        font-size: 16px;
    }
    
    .tech-spec__label {
        font-size: 11px;
    }
    
    /* Showcase Mobile */
    .showcase-main__overlay {
        padding: 20px;
    }
    
    .showcase-main__overlay h4 {
        font-size: 16px;
    }
    
    .showcase-main__overlay p {
        font-size: 13px;
    }
    
    .showcase-sidebar {
        flex-direction: row;
        gap: 8px;
    }
    
    .showcase-sidebar__label {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    /* Demo Grid Mobile */
    .demo-grid {
        max-width: 100%;
        gap: 12px;
    }
    
    .demo-item__label {
        padding: 12px;
        font-size: 13px;
    }
    
    /* Strip Grid Mobile */
    .strip-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .strip-item__label {
        font-size: 12px;
    }
    
    /* Analytics Cards Mobile */
    .analytics-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .analytics-card {
        flex-direction: row;
        text-align: left;
        padding: 16px;
        gap: 14px;
    }
    
    .analytics-card__icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 0;
    }
    
    /* Visual Stack Mobile */
    .visual-stack {
        gap: 12px;
    }
    
    .visual-stack__label {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    /* CTA Section Mobile */
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-section__container {
        padding: 0 16px;
    }
    
    .cta-section__title {
        font-size: 22px;
    }
    
    .cta-section__desc {
        font-size: 14px;
    }
    
    .cta-section__desc br {
        display: none;
    }
}

@media (max-width: 480px) {
    .service-hero__title {
        font-size: 22px;
    }
    
    .service-section__title {
        font-size: 20px;
    }
    
    .feature-tags {
        flex-direction: column;
    }
    
    .feature-tag {
        width: 100%;
        justify-content: center;
    }
    
    .image-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .tech-specs {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .strip-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cta-section__title {
        font-size: 20px;
    }
}
