/* ===== 기본 리셋 및 CSS 변수 (Mobile-First) ===== */
:root {
    /* 색상 */
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --primary-yellow: #fcd34d;
    --bg-light-blue: #ebf3ff;
    --bg-light-yellow: #fffbeb;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --white: #ffffff;
    --footer-bg: #333333;

    /* ===== 페이지 레이아웃 (핵심!) ===== */
    --page-max-width: 1400px;           /* 컨텐츠 최대 너비 */
    --page-gutter: 16px;                /* 좌우 최소 여백 (모바일) */

    /* 반응형 크기 변수 (모바일 기본값) */
    --container-padding: 16px;
    --section-padding: 60px;

    /* 반응형 타이포그래피 */
    --font-hero-title: clamp(1.75rem, 5vw, 3rem);
    --font-hero-subtitle: clamp(1rem, 3vw, 1.5rem);
    --font-section-title: clamp(1.5rem, 4vw, 2rem);
    --font-body: clamp(0.875rem, 2vw, 1rem);

    /* 반응형 컴포넌트 크기 - 컨테이너 기준 */
    --card-size: min(280px, 45%);
    --badge-size: min(180px, 30vw);
    --step-size: min(200px, 40%);
    --case-image-size: min(180px, 42%);
    --review-image-size: min(100px, 25%);

    /* 비율 변수 */
    --hero-aspect-ratio: 9 / 16;
    --card-aspect-ratio: 1 / 1;
    --video-aspect-ratio: 16 / 9;

    /* 간격 */
    --gap-sm: clamp(8px, 2vw, 15px);
    --gap-md: clamp(15px, 3vw, 30px);
    --gap-lg: clamp(20px, 4vw, 40px);
}

/* 태블릿 변수 오버라이드 */
@media (min-width: 768px) {
    :root {
        --page-gutter: 40px;            /* 좌우 여백 증가 */
        --container-padding: 30px;
        --section-padding: 80px;
        --hero-aspect-ratio: 16 / 10;
    }
}

/* 데스크탑 변수 오버라이드 */
@media (min-width: 1024px) {
    :root {
        --page-gutter: 60px;            /* 데스크탑 여백 */
        --container-padding: 40px;
        --section-padding: 100px;
        --hero-aspect-ratio: 16 / 9;
    }
}

/* 와이드 스크린 */
@media (min-width: 1600px) {
    :root {
        --page-gutter: 80px;            /* 대형 모니터 여백 */
    }
}

/* ===== 기본 리셋 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: var(--font-body);
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== 페이지 래퍼 (전체 너비 - 배경 꽉 차게) ===== */
.page-wrapper {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    background: var(--white);
    overflow-x: hidden;
}

/* ===== 컨텐츠 제한용 컨테이너 ===== */
.container {
    width: 100%;
    max-width: var(--page-max-width);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* ===== 헤더 (Mobile-First) ===== */
.header {
    position: sticky;  /* fixed → sticky로 변경하여 wrapper 내에서 동작 */
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-banner {
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 8px var(--container-padding);
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    font-weight: 500;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px var(--container-padding);
    max-width: var(--page-max-width);
    margin: 0 auto;
}

.logo {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 800;
    color: var(--text-dark);
}

/* 모바일: 네비게이션 숨김 */
.nav-menu {
    display: none;
    gap: 25px;
}

.nav-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(0.875rem, 3vw, 1.125rem);
    font-weight: 700;
    color: var(--text-dark);
}

.phone-number .phone-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* 태블릿 이상: 네비게이션 표시 */
@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .nav-menu {
        gap: 40px;
    }
}

/* ===== 드롭다운 메뉴 ===== */
.has-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle .arrow {
    font-size: 0.65rem;
    transition: transform 0.3s;
}

.has-dropdown:hover .dropdown-toggle .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
    padding: 8px 0;
    margin-top: 10px;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: background 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
    background: var(--bg-light-blue);
    color: var(--primary-blue);
}

/* ===== 햄버거 메뉴 버튼 ===== */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 태블릿 이상에서 햄버거 숨김 */
@media (min-width: 768px) {
    .hamburger-menu {
        display: none;
    }
}

/* ===== 모바일 메뉴 오버레이 ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1001;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== 모바일 사이드 메뉴 ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
    line-height: 1;
}

.mobile-nav-list {
    padding: 20px 0;
}

.mobile-nav-list > li {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-list > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: background 0.3s;
}

.mobile-nav-list > li > a:hover {
    background: var(--bg-light-blue);
}

.mobile-dropdown-toggle .arrow {
    font-size: 0.65rem;
    transition: transform 0.3s;
}

.mobile-has-dropdown.active .arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9fafb;
}

.mobile-has-dropdown.active .mobile-dropdown-menu {
    max-height: 200px;
}

.mobile-dropdown-menu a {
    display: block;
    padding: 12px 20px 12px 35px;
    font-size: 0.9rem;
    color: var(--text-gray);
    transition: color 0.3s;
}

.mobile-dropdown-menu a:hover {
    color: var(--primary-blue);
}

.mobile-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px;
    padding: 15px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.3s;
}

.mobile-phone-btn:hover {
    background: var(--primary-blue-dark);
}

.mobile-phone-btn svg {
    stroke: currentColor;
}

/* ===== 브레드크럼 ===== */
.breadcrumb {
    background: #f9fafb;
    padding: 15px var(--container-padding);
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-container {
    max-width: var(--page-max-width);
    margin: 0 auto;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--text-gray);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-blue);
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #d1d5db;
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 500;
}

/* ===== FAQ 페이지 전용 스타일 ===== */
.faq-page-section {
    padding-top: 60px;
    padding-bottom: 80px;
}

.faq-page-section .section-header {
    margin-bottom: 40px;
}

.faq-page-section .section-subtitle {
    margin-top: 15px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.faq-page-list {
    max-width: min(95%, 900px);
}

.faq-cta-box {
    text-align: center;
    margin-top: 50px;
    padding: 40px 20px;
    background: var(--bg-light-blue);
    border-radius: 15px;
    max-width: min(90%, 600px);
    margin-left: auto;
    margin-right: auto;
}

.faq-cta-text {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* 네비게이션 활성 상태 */
.nav-menu a.active {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ===== 서비스 페이지 스타일 ===== */
.service-hero {
    background: linear-gradient(135deg, var(--primary-blue), #1e40af);
    padding: 80px var(--container-padding) 60px;
    text-align: center;
    color: var(--white);
}

.service-hero-content {
    max-width: var(--page-max-width);
    margin: 0 auto;
}

.service-hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    margin-bottom: 15px;
}

.service-hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    opacity: 0.9;
}

/* 서비스 상세 */
.service-detail {
    padding: 60px var(--container-padding) 80px;
}

.service-detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.service-intro {
    margin-bottom: 50px;
}

.service-intro h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--text-dark);
    margin-bottom: 20px;
}

.service-intro p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    line-height: 1.8;
    color: var(--text-gray);
}

.service-intro strong {
    color: var(--primary-blue);
}

.service-features {
    margin-bottom: 50px;
}

.service-features h3,
.service-process h3 {
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.feature-item {
    background: var(--bg-light-blue);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.service-process {
    margin-bottom: 50px;
}

.process-list {
    max-width: 600px;
    margin: 0 auto;
}

.process-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.process-number {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.process-text h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.process-text p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.service-cta {
    text-align: center;
    padding: 50px 30px;
    background: var(--bg-light-blue);
    border-radius: 20px;
}

.service-cta-text {
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
}

/* ===== 플로팅 버튼 ===== */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.floating-phone {
    background: var(--primary-blue);
    color: var(--white);
}

.floating-top {
    background: var(--white);
    color: var(--text-dark);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.floating-top.visible {
    opacity: 1;
    visibility: visible;
}

/* 모바일에서 플로팅 버튼 위치 조정 */
@media (max-width: 767px) {
    .floating-buttons {
        bottom: 80px;
        right: 15px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
    }

    .floating-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ===== 모바일 하단 네비 ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid #e5e7eb;
    padding: 8px 0;
    padding-bottom: env(safe-area-inset-bottom, 8px);
    z-index: 998;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    /* 푸터에 하단 네비 높이만큼 패딩 추가 */
    .footer {
        padding-bottom: calc(var(--gap-lg) + 70px);
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--primary-blue);
}

.bottom-nav-item svg {
    stroke: currentColor;
}

.bottom-nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* ===== 공통 섹션 스타일 ===== */
.section {
    padding: var(--section-padding) var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: var(--gap-lg);
    max-width: var(--page-max-width);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.section-title {
    font-size: var(--font-section-title);
    font-weight: 700;
    margin-bottom: var(--gap-sm);
    color: var(--text-dark);
}

.section-subtitle {
    font-size: var(--font-body);
    color: var(--text-gray);
}

.highlight-blue {
    color: var(--primary-blue);
}

/* ===== 섹션1: 히어로 (Mobile-First) ===== */
.section1 {
    position: relative;
    /* 헤더 높이(약 100px)를 제외한 뷰포트 높이 */
    min-height: calc(100vh - 100px);
    min-height: calc(100dvh - 100px); /* 모바일 주소창 고려 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;  /* -1 → 0: overflow:hidden과 함께 사용 시 비디오가 잘리지 않도록 */
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
}

.hero-content {
    text-align: left;
    color: var(--white);
    z-index: 2;
    padding: 0 var(--container-padding);
    padding-bottom: 15%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: var(--page-max-width);
    margin-inline: auto;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: var(--gap-sm);
    color: var(--white);
    font-weight: 600;
}

.hero-title {
    font-size: var(--font-hero-title);
    font-weight: 800;
    line-height: 1.3;
}

.hero-title .highlight {
    color: #87CEEB; /* 연하늘색 (Sky Blue) */
}

.hero-cta-box {
    width: 100%;
    background: var(--primary-blue);
    padding: 12px var(--container-padding) 15px;
    text-align: center;
    color: var(--white);
    z-index: 100;
    position: fixed;
    bottom: 0;
    left: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-cta-box.hidden {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.hero-cta-box-inner {
    max-width: var(--page-max-width);
    margin-inline: auto;
}

.cta-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: 2px;
    color: var(--primary-yellow);
    font-weight: 700;
}

.cta-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}

.cta-tagline-box {
    display: inline-block;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    padding: 0 5px 3px;
}

.cta-tagline {
    font-size: clamp(0.875rem, 3vw, 1.125rem);
    margin: 0;
    font-weight: 500;
}

@media (min-width: 768px) {
    .hero-cta-box {
        padding: 15px var(--container-padding) 18px;
    }

    .cta-tagline-box {
        padding: 0 8px 4px;
    }
}

/* ===== 섹션2: 가치 제안 (Mobile-First) ===== */
.section2 {
    background-image: url('../images/section2/background_image.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.section2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
}

.section2-content {
    position: relative;
    z-index: 1;
    max-width: var(--page-max-width);
    margin: 0 auto;
    text-align: center;
    padding-inline: var(--container-padding);
}

.value-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-md);
    margin-bottom: var(--gap-lg);
}

.badge {
    width: clamp(150px, 28vw, 200px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: linear-gradient(135deg, #87CEEB, #5DADE2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    padding: 15px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.badge:nth-child(2) {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.badge:nth-child(3) {
    background: linear-gradient(135deg, #374151, #1f2937);
    box-shadow: 0 10px 30px rgba(31, 41, 55, 0.3);
}

.badge-sub {
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    opacity: 0.9;
}

.badge-main {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-yellow);
}

.value-description {
    font-size: clamp(1.125rem, 3.5vw, 1.5rem);
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: var(--gap-lg);
}

/* CTA 버튼 */
.cta-button {
    display: inline-block;
    padding: clamp(10px, 2.5vw, 14px) clamp(25px, 6vw, 35px);
    border: 5px solid #dc2626;
    border-radius: 50px;
    font-size: clamp(1.125rem, 3.5vw, 1.375rem);
    font-weight: 700;
    color: #dc2626;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cta-button:hover {
    background: #dc2626;
    color: var(--white);
    animation: blink 0.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        background: #dc2626;
        color: var(--white);
    }
    50% {
        background: var(--white);
        color: #dc2626;
    }
}

/* 태블릿 이상: 뱃지 가로 배열 + 겹침 효과 */
@media (min-width: 768px) {
    .value-badges {
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }

    .value-badges .badge {
        margin-left: -20px;
    }

    .value-badges .badge:first-child {
        margin-left: 0;
    }
}

/* ===== 섹션3: 서비스 프로세스 (Mobile-First) ===== */
.section3 {
    background: var(--bg-light-blue);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-md);
    max-width: var(--page-max-width);
    margin: 0 auto;
    justify-items: center;
    padding-inline: var(--container-padding);
}

.step {
    text-align: center;
}

.step-image {
    width: clamp(120px, 20vw, 200px);
    aspect-ratio: var(--card-aspect-ratio);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: var(--gap-sm);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-label {
    display: inline-block;
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--primary-blue);
    border-radius: 25px;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    font-weight: 600;
    color: var(--primary-blue);
}

.step-arrow {
    display: none;
    font-size: 50px;
    color: var(--primary-blue);
    font-weight: 400;
    align-self: flex-start;
    margin-top: clamp(40px, 8vw, 80px);
}

/* 태블릿 이상: 4열 + 화살표 */
@media (min-width: 768px) {
    .process-steps {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: var(--gap-md);
    }

    .step-arrow {
        display: block;
    }

    .step-label {
        padding: 12px 30px;
    }
}

/* ===== 섹션4: 서비스 종류 (Mobile-First) ===== */
.section4 {
    background: var(--white);
}

.section4 .section-header .section-subtitle {
    margin-top: 10px;
    color: var(--text-dark);
    font-weight: 500;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--gap-md);
    max-width: var(--page-max-width);
    margin: 0 auto;
    justify-items: center;
    padding-inline: var(--container-padding);
}

.service-card {
    text-align: center;
    transition: transform 0.3s;
    width: 100%;
    max-width: clamp(250px, 30vw, 320px);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    width: 100%;
    aspect-ratio: var(--card-aspect-ratio);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: var(--gap-md);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-label {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-blue);
    border-radius: 25px;
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 600;
    color: var(--white);
}

/* ===== 섹션5: Before & After 캐러셀 (Mobile-First) ===== */
.section5 {
    background: var(--white);
    padding-bottom: var(--section-padding);
    overflow: clip;
}

.section5 .section-header {
    text-align: center;
    max-width: var(--page-max-width);
    margin-inline: auto;
}

.section5 .section-subtitle {
    margin-top: 10px;
    color: var(--text-dark);
    font-weight: 500;
}

/* 캐러셀 컨테이너 */
.carousel-container {
    width: 100%;
    max-width: var(--page-max-width);
    margin: 0 auto;
    overflow: hidden;
    padding: 100px 0 120px;
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: clamp(15px, 3vw, 40px);
    transition: transform 0.6s ease;
}

/* 캐러셀 카드 - 줌 효과 */
.carousel-card {
    flex: 0 0 28%;
    min-width: 28%;
    text-align: center;
    background: var(--white);
    display: flex;
    flex-direction: column-reverse;
    transform: scale(0.5);
    opacity: 0.5;
    transition: transform 1.5s ease, opacity 1.5s ease;
    border-radius: 12px;
}

.carousel-card.active {
    transform: scale(1.5);
    opacity: 1;
    z-index: 10;
}

/* 모바일: 1개 보이기 */
@media (max-width: 767px) {
    .carousel-card {
        flex: 0 0 100%;
        min-width: 100%;
        transform: scale(0.85);
    }

    .carousel-card.active {
        transform: scale(1);
    }
}

.card-title {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-top: var(--gap-sm);
}

.card-images {
    display: flex;
    gap: var(--gap-sm);
}

.card-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 모바일: 1개씩 표시 */
@media (max-width: 767px) {
    .carousel-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

/* ===== 섹션6: 고객 후기 (Mobile-First) ===== */
.section6 {
    background: var(--bg-light-yellow);
}

.section6-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.section6-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 600;
    color: var(--text-dark);
}

/* 세로 캐러셀 컨테이너 */
.review-carousel-container {
    max-width: 1100px;
    margin: 0 auto;
    padding-inline: var(--container-padding);
    overflow: hidden;
    /* 2.5행이 보이도록 높이 설정: (카드높이 + row-gap) * 2.5 */
    height: calc((110px + 15px) * 2.5);
}

.review-track {
    display: flex;
    flex-wrap: wrap;
    column-gap: 30px;
    row-gap: 15px;
    transition: transform 0.6s ease;
}

.review-card {
    display: flex;
    gap: var(--gap-md);
    background: var(--white);
    padding: clamp(14px, 2vw, 20px);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    height: 110px;
    width: calc(50% - 15px); /* 2열: 50% - column-gap/2 */
}

.review-image {
    width: clamp(80px, 15vw, 100px);
    aspect-ratio: var(--card-aspect-ratio);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-content {
    flex: 1;
    min-width: 0; /* flexbox 오버플로우 방지 */
    overflow: hidden;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 4px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.review-stars {
    color: #fbbf24;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.review-text {
    font-size: clamp(0.8rem, 2vw, 0.875rem);
    color: var(--text-gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 모바일: 1열 × 3개 보이기, 무한 루프 캐러셀 */
@media (max-width: 767px) {
    .review-carousel-container {
        /* 카드 3개 높이만 보이도록 설정 (카드높이 약 90px + gap 12px) * 3 */
        height: calc((90px + 12px) * 3);
        overflow: hidden;
    }

    .review-track {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .review-card {
        width: 100%;
        min-height: 90px;
        height: auto;
        padding: 15px;
        flex-shrink: 0;
    }

    .review-image {
        width: 60px;
        height: 60px;
    }

    .review-text {
        display: -webkit-box;
        -webkit-line-clamp: 2;
    }
}

/* 태블릿 이상 */
@media (min-width: 768px) {
    .review-carousel-container {
        height: calc((120px + 18px) * 2.5);
    }

    .review-track {
        column-gap: 35px;
        row-gap: 18px;
    }

    .review-card {
        height: 120px;
        width: calc(50% - 17.5px);
    }
}

/* 데스크탑 */
@media (min-width: 1024px) {
    .review-carousel-container {
        height: calc((130px + 20px) * 2.5);
    }

    .review-track {
        column-gap: 40px;
        row-gap: 20px;
    }

    .review-card {
        height: 130px;
        width: calc(50% - 20px);
    }
}

/* ===== 섹션7: FAQ (Mobile-First) ===== */
.section7 {
    background: var(--white);
    padding-bottom: var(--section-padding);
}

.faq-label {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.section7 .section-title {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
}

.faq-list {
    max-width: min(90%, 900px);
    margin: 0 auto var(--gap-md);
    padding-inline: var(--container-padding);
}

.faq-item {
    margin-bottom: var(--gap-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.faq-question:hover {
    background: var(--primary-blue-dark);
}

.faq-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 10px;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f3f4f6;
    border-radius: 0 0 8px 8px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: var(--gap-md) 20px;
}

.faq-answer p {
    color: var(--text-gray);
    font-size: clamp(0.8125rem, 2vw, 0.875rem);
    line-height: 1.8;
}

.faq-more-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 10px 24px;
    border: 2px solid var(--text-dark);
    border-radius: 25px;
    font-size: clamp(0.8125rem, 2vw, 0.875rem);
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s;
}

.faq-more-btn:hover {
    background: var(--text-dark);
    color: var(--white);
}

/* ===== 푸터 (Mobile-First) ===== */
.footer {
    background: var(--footer-bg);
    color: #9ca3af;
    padding: var(--gap-lg) clamp(20px, 15vw, 250px);
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: var(--gap-md);
    margin-bottom: var(--gap-md);
    padding-bottom: var(--gap-md);
    border-bottom: 1px solid #4b5563;
}

.footer-logo {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 800;
    color: var(--white);
}

.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-menu a {
    font-size: clamp(0.75rem, 2vw, 0.8125rem);
    color: #9ca3af;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: var(--white);
}

.footer-middle {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
    text-align: left;
}

/* 태블릿 이상: 푸터 중앙 가로 배열 */
@media (min-width: 768px) {
    .footer-middle {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.company-info p,
.customer-center p {
    font-size: clamp(0.75rem, 2vw, 0.8125rem);
    margin-bottom: 6px;
}

.company-info strong,
.customer-center strong {
    color: var(--white);
}

/* 태블릿 이상: 푸터 상단 */
@media (min-width: 768px) {
    .footer-top {
        align-items: flex-start;
        text-align: left;
    }
}

/* ===== 유틸리티 클래스 ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 터치 디바이스 최적화 */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
    }

    .cta-button:hover {
        animation: none;
        background: transparent;
        color: #dc2626;
    }

    .cta-button:active {
        background: #dc2626;
        color: var(--white);
    }
}

/* ===== 상담/문의 페이지 스타일 ===== */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-blue), #1e40af);
}

/* 상담 절차 섹션 */
.contact-process-section {
    padding: 60px var(--container-padding) 80px;
    background: var(--white);
}

.contact-process-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    justify-items: center;
}

.contact-step {
    text-align: center;
    position: relative;
}

.contact-step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 1;
}

.contact-step-icon {
    width: 100px;
    height: 100px;
    background: var(--bg-light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary-blue);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-step:hover .contact-step-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.contact-step-icon svg {
    stroke: currentColor;
}

.contact-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-step-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.contact-step-arrow {
    display: none;
    font-size: 40px;
    color: var(--primary-blue);
    font-weight: 400;
    align-self: center;
}

/* 태블릿 이상: 4열 + 화살표 */
@media (min-width: 768px) {
    .contact-process-steps {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 20px;
    }

    .contact-step-arrow {
        display: block;
        margin-top: 30px;
    }

    .contact-step-icon {
        width: 90px;
        height: 90px;
    }

    .contact-step-icon svg {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 1024px) {
    .contact-process-steps {
        gap: 30px;
    }

    .contact-step-icon {
        width: 100px;
        height: 100px;
    }

    .contact-step-icon svg {
        width: 48px;
        height: 48px;
    }
}

/* 연락처 정보 섹션 */
.contact-info-section {
    padding: 0 var(--container-padding) 80px;
    background: var(--white);
}

.contact-info-box {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-blue), #1e40af);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.3);
}

.contact-info-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.contact-info-subtitle {
    font-size: clamp(1rem, 3vw, 1.125rem);
    opacity: 0.9;
    margin-bottom: 35px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.15);
    padding: 18px 20px;
    border-radius: 12px;
    justify-content: flex-start;
}

.contact-detail-icon {
    color: var(--primary-yellow);
    flex-shrink: 0;
}

.contact-detail-icon svg {
    stroke: currentColor;
}

.contact-detail-text {
    text-align: left;
}

.contact-detail-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 3px;
}

.contact-detail-value {
    font-size: clamp(1.125rem, 4vw, 1.375rem);
    font-weight: 700;
    color: var(--white);
}

a.contact-detail-value:hover {
    text-decoration: underline;
}

.contact-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--white);
    color: var(--primary-blue);
    border-radius: 50px;
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-cta-button svg {
    stroke: currentColor;
}

.contact-promise {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-promise p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    opacity: 0.9;
}

.contact-promise strong {
    color: var(--primary-yellow);
    font-size: clamp(1.125rem, 3vw, 1.25rem);
}

/* 태블릿 이상 */
@media (min-width: 768px) {
    .contact-info-box {
        padding: 60px 50px;
    }

    .contact-details {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }

    .contact-detail-item {
        flex: 1;
        max-width: 220px;
        flex-direction: column;
        text-align: center;
    }

    .contact-detail-text {
        text-align: center;
    }
}
