/* ============================================
   마스터가죽세탁전문점 - 모바일 전용 스타일시트
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brown-900: #1C0F08;
    --brown-800: #2C1810;
    --brown-700: #3C2415;
    --brown-600: #5C3D2E;
    --brown-500: #7A5C4F;
    --tan: #C4956A;
    --tan-light: #D4A574;
    --gold: #B08D57;
    --cream: #F8F3EE;
    --cream-dark: #EDE5DC;
    --white: #FFFFFF;
    --text: #2C2C2C;
    --text-light: #6B6B6B;
    --text-muted: #A0A0A0;
    --border: #E8E0D8;
    --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    max-width: 100vw;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: var(--font); }

/* ============================================
   Header / Navigation
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.35s ease, box-shadow 0.35s ease;
    background: transparent;
}

header.scrolled {
    background: rgba(44, 24, 16, 0.97);
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px 8px;
}

.logo a { display: flex; align-items: center; }

.logo-ko {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.main-nav {
    margin-top: 6px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
}

.main-nav ul li a {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 8px;
    border-radius: 6px;
    transition: all 0.25s;
    white-space: nowrap;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #fff;
    background: rgba(255,255,255,0.13);
}

.gallery-dropdown { position: relative; }
.gallery-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    padding: 6px 0;
    min-width: 140px;
    z-index: 100;
}
.gallery-dropdown.active .gallery-dropdown-menu { display: block; }
.gallery-dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--text) !important;
}
.gallery-dropdown-menu li a:hover {
    background: var(--cream) !important;
    color: var(--brown-700) !important;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-image-section {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-section.subpage-hero {
    height: 42vh;
    height: 42dvh;
    min-height: 280px;
}

.hero-main-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-image-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(28, 15, 8, 0.55) 0%,
        rgba(44, 24, 16, 0.40) 40%,
        rgba(28, 15, 8, 0.65) 100%
    );
    z-index: 1;
}

.hero-text-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    width: 100%;
}

.hero-title-main {
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.25);
    line-height: 1.25;
    word-break: keep-all;
}

.hero-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.4);
    margin: 0 auto 16px;
}

.hero-subtitle {
    font-size: 15px;
    font-weight: 300;
    color: rgba(255,255,255,0.88);
    line-height: 1.8;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.hero-tag {
    padding: 6px 14px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: floatUp 2s ease-in-out infinite;
}

.hero-scroll-indicator span {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-scroll-indicator .scroll-line {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}

@keyframes floatUp {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ============================================
   Section Shared Styles
   ============================================ */
.section-padding {
    padding: 60px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
}

.section-header .en-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--tan);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.section-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--brown-700);
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.section-header .line {
    width: 40px;
    height: 2px;
    background: var(--tan);
    margin: 16px auto 0;
    border-radius: 1px;
}

/* ============================================
   인트로 문구
   ============================================ */
.intro-quote-section {
    padding: 56px 24px;
    text-align: center;
    background: var(--white);
}

.intro-quote {
    font-size: 20px;
    font-weight: 300;
    color: var(--brown-700);
    line-height: 1.85;
    letter-spacing: -0.3px;
    word-break: keep-all;
}

.intro-quote-en {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-style: italic;
    margin-top: 16px;
}

/* ============================================
   서비스 아이콘 그리드 (메인)
   ============================================ */
.service-grid-section {
    padding: 10px 16px 50px;
    background: var(--white);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.service-card {
    background: var(--cream);
    border-radius: 16px;
    padding: 24px 10px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:active {
    transform: scale(0.97);
}

.service-card .s-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    background: var(--brown-700);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card .s-icon svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

.service-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--brown-700);
    margin-bottom: 4px;
}

.service-card p {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ============================================
   풀와이드 배너 섹션 (메인)
   ============================================ */
.full-banner {
    position: relative;
    display: block;
    width: 100%;
    min-height: 340px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

.full-banner .banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.full-banner:active .banner-bg {
    transform: scale(1.03);
}

.full-banner .banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44,24,16,0.7) 0%, rgba(28,15,8,0.5) 100%);
}

.full-banner .banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 340px;
    padding: 40px 24px;
}

.full-banner .banner-en {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
}

.full-banner .banner-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.full-banner .banner-line {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.4);
    margin: 0 auto 18px;
}

.full-banner .banner-desc {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.85;
    color: rgba(255,255,255,0.88);
    word-break: keep-all;
}

.full-banner .banner-arrow {
    margin-top: 20px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-banner .banner-arrow svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* ============================================
   세탁 과정 (Process)
   ============================================ */
.process-section {
    padding: 60px 20px;
    background: var(--cream);
}

.process-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.process-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--white);
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 2px 12px rgba(60,36,21,0.06);
}

.process-item .step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--brown-700);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
}

.process-item .step-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--brown-700);
    margin-bottom: 4px;
}

.process-item .step-text p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.55;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 56px 24px;
    background: var(--brown-700);
    text-align: center;
}

.cta-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.35;
    word-break: keep-all;
}

.cta-section p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 28px;
    word-break: keep-all;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--tan);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
}

.cta-btn:active {
    transform: scale(0.97);
    background: var(--tan-light);
}

.cta-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* ============================================
   Map Section
   ============================================ */
.map-section {
    padding: 50px 20px 60px;
    background: var(--white);
}

.map-section .map-info {
    margin-bottom: 20px;
}

.map-section .map-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--brown-700);
    margin-bottom: 12px;
}

.map-section .map-title .en {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-left: 8px;
    vertical-align: middle;
}

.map-section .map-contact p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(60,36,21,0.1);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: none;
}

/* ============================================
   서브페이지 - 공통 컨텐츠
   ============================================ */
.page-body {
    padding: 50px 20px 60px;
    background: var(--white);
}

.page-title-block {
    text-align: center;
    margin-bottom: 40px;
}

.page-title-block .ko {
    font-size: 30px;
    font-weight: 300;
    color: var(--brown-700);
    letter-spacing: 6px;
    margin-bottom: 6px;
}

.page-title-block .en {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.page-title-block .vline {
    width: 1px;
    height: 50px;
    background: var(--tan);
    margin: 0 auto;
}

/* ============================================
   회사소개 (About)
   ============================================ */
.about-text-block {
    text-align: center;
    margin-bottom: 40px;
}

.about-text-block .highlight {
    font-size: 22px;
    font-weight: 700;
    color: var(--brown-700);
    display: block;
    margin-bottom: 18px;
}

.about-text-block .desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.9;
    word-break: keep-all;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

.value-card {
    background: var(--cream);
    border-radius: 16px;
    padding: 28px 16px;
    text-align: center;
    transition: transform 0.25s;
}

.value-card:active {
    transform: scale(0.97);
}

.value-card .v-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 14px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(60,36,21,0.08);
}

.value-card .v-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--brown-700);
}

.value-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--brown-700);
    margin-bottom: 6px;
}

.value-card p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.55;
}

.info-table {
    background: var(--cream);
    border-radius: 16px;
    overflow: hidden;
}

.info-row {
    display: flex;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child { border-bottom: none; }

.info-row .label {
    flex-shrink: 0;
    width: 80px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brown-700);
}

.info-row .value {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ============================================
   서비스안내 (Service Info)
   ============================================ */
.service-intro-text {
    text-align: center;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 36px;
    word-break: keep-all;
}

.service-detail-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.svc-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.svc-card:active {
    box-shadow: 0 4px 20px rgba(60,36,21,0.12);
}

.svc-card-head {
    background: var(--brown-700);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.svc-card-head .svc-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.svc-card-head .svc-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.svc-card-head .svc-title {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
}

.svc-card-head .svc-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

.svc-card-body {
    padding: 22px 20px;
}

.svc-card-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    word-break: keep-all;
}

.svc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.svc-tag {
    padding: 5px 13px;
    background: var(--cream);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--brown-700);
}

/* ============================================
   하단 고정 버튼
   ============================================ */
.mobile-contact-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 999;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.1);
}

.mobile-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 15px 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--font);
}

.mobile-btn svg { flex-shrink: 0; }

.mobile-btn-call {
    background: var(--brown-700);
    color: #fff;
}
.mobile-btn-call:active { background: var(--brown-600); }

.mobile-btn-sms {
    background: var(--tan);
    color: #fff;
}
.mobile-btn-sms:active { background: var(--tan-light); }

.mobile-btn-share {
    background: var(--cream-dark);
    color: var(--brown-700);
}
.mobile-btn-share:active { background: var(--cream); }

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--brown-900);
    color: rgba(255,255,255,0.55);
    padding: 40px 20px 100px;
}

.footer-info h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.footer-info p {
    font-size: 13px;
    line-height: 1.85;
}

.footer-copyright {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 11px;
    color: rgba(255,255,255,0.3);
}

.footer-admin-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.admin-link-btn {
    padding: 7px 14px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    border-radius: 6px;
    font-size: 12px;
    transition: background 0.2s;
}
.admin-link-btn:active { background: rgba(255,255,255,0.15); }

.footer-login-btn, .footer-logout-btn {
    padding: 7px 14px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.footer-login-btn { background: var(--tan); color: #fff; }
.footer-logout-btn { background: #c0392b; color: #fff; }

.footer-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-user-info span { color: rgba(255,255,255,0.6); font-size: 12px; }

/* ============================================
   로그인 모달
   ============================================ */
.login-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 20px;
}

.login-modal-content {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 20px;
    width: 100%;
    max-width: 360px;
    position: relative;
    box-shadow: 0 16px 50px rgba(0,0,0,0.25);
}

.login-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.login-modal-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--brown-700);
    margin-bottom: 22px;
}

.login-modal-content .form-group { margin-bottom: 16px; }

.login-modal-content label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.login-modal-content input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font);
    transition: border-color 0.25s;
    -webkit-appearance: none;
}

.login-modal-content input:focus {
    outline: none;
    border-color: var(--tan);
    box-shadow: 0 0 0 3px rgba(196,149,106,0.12);
}

.login-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--brown-700);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    font-family: var(--font);
    transition: background 0.2s;
}
.login-submit-btn:active { background: var(--brown-600); }

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 8px;
}

/* ============================================
   스크롤 애니메이션
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   기존 페이지 호환 (갤러리/게시판 등)
   ============================================ */
.page-content {
    padding: 40px 0;
}

.container {
    padding: 0 20px;
}

.content-section {
    max-width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
}

.gallery-image-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.gallery-image-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.board-list { padding: 0 16px; }
.board-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

/* 통계 섹션 호환 */
.statistics-section { padding: 50px 20px; background: var(--cream); }
.stat-item { text-align: center; margin-bottom: 20px; }
.stat-value .count { font-size: 36px; font-weight: 800; color: var(--brown-700); display: block; }
.stat-label { font-size: 14px; color: var(--text-light); }

/* map-section 호환 */
.map-container { max-width: 100%; }
.map-info-top { margin-bottom: 16px; }
.map-title { font-size: 22px; font-weight: 700; color: var(--brown-700); margin-bottom: 10px; }
.map-title .map-title-en { font-size: 11px; color: var(--text-muted); letter-spacing: 2px; margin-left: 6px; }
.map-contact p { font-size: 14px; color: var(--text-light); line-height: 1.8; }
.map-iframe { width: 100%; height: 280px; border: none; display: block; }
