/* ================================================
   지구스카이 - 화성스카이차 전문 홈페이지
   리뉴얼 디자인 | 오렌지 + 블랙 테마
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;900&display=swap');

/* ── 변수 ── */
:root {
    --orange:      #FF6200;
    --orange-dark: #CC4E00;
    --orange-glow: rgba(255, 98, 0, 0.35);
    --black:       #0D0D0D;
    --black-soft:  #1A1A1A;
    --black-card:  #222222;
    --gray-dark:   #333333;
    --gray-mid:    #666666;
    --gray-light:  #AAAAAA;
    --white:       #FFFFFF;
    --off-white:   #F5F5F5;
    --font-head:   'Noto Sans KR', -apple-system, sans-serif;
    --font-body:   'Noto Sans KR', -apple-system, sans-serif;
    --radius:      10px;
    --transition:  0.3s ease;
}

/* ── 리셋 ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--white);
    background: var(--black);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

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

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

/* ── 헤더 ── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 98, 0, 0.2);
    transition: transform var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1;
    color: var(--white);
}

.logo h1 a { color: var(--white); }
.logo h1 a span { color: var(--orange); }

.tagline {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--gray-light);
    margin-top: 3px;
    text-transform: uppercase;
}

/* 네비게이션 */
.nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
}

.nav a {
    color: var(--gray-light);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width var(--transition);
    border-radius: 2px;
}

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

.nav a:hover::after {
    width: 60%;
}

.contact-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
}

.contact-bar .phone-cta {
    background: var(--orange);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: background var(--transition), box-shadow var(--transition);
}

.contact-bar .phone-cta:hover {
    background: var(--orange-dark);
    box-shadow: 0 4px 18px var(--orange-glow);
    color: var(--white);
}

/* 모바일 메뉴 토글 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ── 히어로 슬라이더 ── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background: var(--black-soft);
}

/* 사진 없을 때 대체 배경 (z-index 0 = 맨 아래) */
.hero-slide:nth-child(1) .slide-bg { background: linear-gradient(135deg, #1a0a00 0%, #3d1500 50%, #0d0d0d 100%); }
.hero-slide:nth-child(2) .slide-bg { background: linear-gradient(135deg, #0d0d0d 0%, #2a1000 50%, #1a0500 100%); }
.hero-slide:nth-child(3) .slide-bg { background: linear-gradient(135deg, #1a0800 0%, #0d0d0d 50%, #331200 100%); }

.slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* 실제 사진 (slide-bg 위) */
.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
    z-index: 1;
}

/* 어두운 오버레이 (사진 위) */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to right,
        rgba(13,13,13,0.82) 0%,
        rgba(13,13,13,0.45) 55%,
        rgba(13,13,13,0.15) 100%
    );
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding: 0 24px;
    z-index: 10;
}

.hero-content .container {
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.hero-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(36px, 5.5vw, 72px);
    font-weight: 900;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: 0px;
    word-break: keep-all;
}

.hero-title em {
    font-style: normal;
    color: var(--orange);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,0.75);
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--orange-dark);
    box-shadow: 0 8px 28px var(--orange-glow);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--black-card);
    color: var(--white);
    border: 1px solid var(--gray-dark);
}

.btn-dark:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.kakao-qr-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.kakao-qr-mini {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    border: 2px solid #FEE500;
    flex-shrink: 0;
}

.kakao-qr-wrap span {
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    line-height: 1.5;
}

/* 슬라이더 컨트롤 */
.slider-dots {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    padding: 0;
}

.slider-dot.active {
    background: var(--orange);
    width: 28px;
    border-radius: 4px;
}

.slider-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
    pointer-events: none;
    z-index: 20;
}

.slider-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: var(--white);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all var(--transition);
    backdrop-filter: blur(6px);
}

.slider-arrow:hover {
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 0 20px var(--orange-glow);
}

/* ── 숫자 통계 ── */
.stats-bar {
    background: var(--orange);
    padding: 0;
}

.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.stat-item:last-child { border-right: none; }

.stat-number {
    font-family: var(--font-head);
    font-size: 36px;
    color: var(--white);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
}

/* ── 섹션 공통 ── */
section {
    padding: 80px 0;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 15px;
    color: var(--gray-light);
    max-width: 560px;
    line-height: 1.8;
}

.section-head {
    margin-bottom: 56px;
}

.section-head.center {
    text-align: center;
}

.section-head.center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* ── 서비스 섹션 ── */
.services {
    background: var(--black-soft);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--black-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    border-color: rgba(255, 98, 0, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,98,0,0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 98, 0, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 24px;
    transition: background var(--transition);
}

.service-card:hover .service-icon {
    background: rgba(255, 98, 0, 0.25);
}

.service-card h3 {
    font-family: var(--font-head);
    font-size: 20px;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 13px;
    color: var(--gray-light);
    line-height: 1.9;
}

/* ── 특징 섹션 ── */
.features {
    background: var(--black);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.features-visual {
    position: relative;
}

.features-visual-inner {
    background: var(--black-card);
    border: 1px solid rgba(255,98,0,0.2);
    border-radius: 16px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.features-visual-inner::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: var(--orange);
    opacity: 0.06;
    border-radius: 50%;
}

.big-number {
    font-family: var(--font-head);
    font-size: 100px;
    color: var(--orange);
    line-height: 1;
    opacity: 0.3;
    display: block;
}

.big-text {
    font-family: var(--font-head);
    font-size: 32px;
    letter-spacing: 3px;
    color: var(--white);
    margin-top: -24px;
    margin-bottom: 24px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--black-card);
    border-radius: var(--radius);
    border-left: 3px solid var(--orange);
    transition: all var(--transition);
}

.feature-item:hover {
    background: rgba(255,98,0,0.06);
}

.feature-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.feature-item p {
    font-size: 13px;
    color: var(--gray-light);
    line-height: 1.7;
}

/* ── 갤러리 섹션 ── */
.gallery-preview {
    background: var(--black-soft);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--black-card);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,13,13,0.9) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

/* 갤러리 아이템 자리표시자 */
.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--gray-dark);
    width: 100%;
    height: 100%;
    background: var(--black-card);
}

/* ── 지역 서비스 ── */
.service-areas {
    background: var(--black);
}

.areas-wrapper {
    background: var(--black-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 48px;
}

.areas-section {
    margin-bottom: 36px;
}

.areas-section:last-child { margin-bottom: 0; }

.areas-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,98,0,0.2);
}

.areas-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.areas-list a {
    display: inline-block;
    padding: 7px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: var(--gray-light);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}

.areas-list a:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--orange-glow);
}

/* ── 연락처 CTA ── */
.contact-cta {
    background: var(--black-soft);
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,98,0,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.contact-cta-inner {
    background: linear-gradient(135deg, var(--orange) 0%, #cc4e00 100%);
    border-radius: 20px;
    padding: 64px 56px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.contact-cta-inner::after {
    content: '☎';
    position: absolute;
    right: 56px;
    bottom: -20px;
    font-size: 180px;
    opacity: 0.08;
    line-height: 1;
}

.cta-text h2 {
    font-family: var(--font-head);
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-text p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
}

.cta-phone {
    text-align: right;
    flex-shrink: 0;
}

.cta-phone-number {
    font-family: var(--font-head);
    font-size: clamp(28px, 4vw, 44px);
    color: var(--white);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.contact-method {
    background: var(--black-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition);
}

.contact-method:hover {
    border-color: rgba(255,98,0,0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.contact-method .cm-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.contact-method h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.contact-method p {
    font-size: 13px;
    color: var(--gray-light);
}

.contact-method .phone-number {
    font-family: var(--font-head);
    font-size: 22px;
    color: var(--orange);
    letter-spacing: 1px;
}

.contact-method .link {
    display: inline-block;
    margin-top: 10px;
    padding: 7px 20px;
    background: var(--orange);
    border-radius: 6px;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    transition: all var(--transition);
}

.contact-method .link:hover {
    background: var(--orange-dark);
    box-shadow: 0 4px 14px var(--orange-glow);
}

/* ── 푸터 ── */
.footer {
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 64px 0 28px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 28px;
}

.footer-brand h3 {
    font-family: var(--font-head);
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 4px;
}

.footer-brand h3 span { color: var(--orange); }

.footer-brand .tagline {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--gray-mid);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--gray-mid);
    line-height: 1.8;
}

.footer-brand .footer-phone {
    font-family: var(--font-head);
    font-size: 22px;
    color: var(--orange);
    letter-spacing: 1px;
    margin-top: 16px;
    display: block;
}

.footer h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer ul li a {
    font-size: 13px;
    color: var(--gray-mid);
    transition: color var(--transition);
}

.footer ul li a:hover {
    color: var(--orange);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--gray-mid);
}

/* ── 스크린 리더 ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* ── 폼 ── */
form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 500px;
    margin: 0 auto;
}

input,
textarea,
select {
    padding: 12px 16px;
    background: var(--black-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--white);
    transition: border-color var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-glow);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input::placeholder,
textarea::placeholder {
    color: var(--gray-mid);
}

/* ── 인쇄 ── */
@media print {
    .header, .footer, .contact-cta { display: none; }
    body { color: #000; background: #fff; }
}
