/* ===================================================
   Wash Wave Laundromat - Main Stylesheet
   =================================================== */

/* 기본 스타일 초기화 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 상단 네비게이션 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: #0056b3;
    color: white;
    padding: 5px 20px;
    text-align: right;
    font-size: 14px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 로고 이미지와 글씨를 나란히 배치하는 스타일 --- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.logo span {
    font-size: 22px;
    font-weight: bold;
    color: #0056b3;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #0056b3;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-pickup {
    background-color: #ff9800;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-pickup:hover {
    background-color: #e68a00;
    color: white;
}

/* ===== 이미지 캐러셀 (Hero Carousel) ===== */
.carousel {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
}

.carousel-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 56, 120, 0.72) 0%, rgba(0, 86, 179, 0.50) 50%, rgba(0, 40, 100, 0.65) 100%);
}

.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.slide-content h1 {
    font-size: 48px;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    letter-spacing: -0.5px;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 24px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
    max-width: 640px;
}

/* 캐러셀 화살표 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: #fff;
}

.carousel-btn.prev { left: 24px; }
.carousel-btn.next { right: 24px; }

/* 캐러셀 도트 인디케이터 */
.carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: #ff9800;
    border-color: #ff9800;
    transform: scale(1.25);
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.5);
}

/* 정보 섹션 (Info Section) */
.info-section {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: -40px auto 40px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.info-box {
    flex: 1;
    padding: 30px;
    min-width: 300px;
    text-align: center;
    border-right: 1px solid #eee;
}

.info-box:last-child { border-right: none; }
.info-box h3 { color: #0056b3; margin-bottom: 10px; }

/* 특징 (Features) */
.features {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.features h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #0056b3;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* --- Contact & Map 섹션 --- */
.contact-map-section {
    background-color: #3b71ca;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.contact-map-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
}

.contact-form-box { flex: 1; min-width: 300px; color: white; }
.contact-form-box h2 { font-size: 32px; margin-bottom: 20px; }

.customer-toggle { display: flex; gap: 10px; margin-bottom: 20px; }
.customer-toggle button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

.btn-active { background-color: #0b2e59; color: white; }
.btn-inactive { background-color: white; color: #333; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.contact-form textarea { resize: none; height: 100px; }

.contact-form button {
    background-color: #0b2e59;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover { background-color: #051833; }

.map-box {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.map-box iframe { width: 100%; height: 100%; min-height: 400px; border: 0; }

/* --- Footer 섹션 --- */
footer {
    background-color: #0b1e36;
    color: white;
    padding: 60px 20px 20px;
    font-size: 15px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #1f3a5f;
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ff9800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col.brand h3 { font-size: 24px; color: white; margin-bottom: 15px; }
.footer-col p { color: #b0c4de; margin-bottom: 15px; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; color: #b0c4de; display: flex; align-items: center; gap: 10px; }
.footer-col a { color: #b0c4de; transition: color 0.3s; }
.footer-col a:hover { color: #ff9800; }
.footer-bottom { text-align: center; color: #7a8fa8; font-size: 14px; }

/* 모바일 반응형 처리 */
@media (max-width: 768px) {
    .contact-map-container { flex-direction: column; }
    .carousel { height: 380px; }
    .slide-content h1 { font-size: 30px; line-height: 1.2; padding: 0 8px; }
    .slide-content p { font-size: 15px; padding: 0 12px; }
    .carousel-btn { width: 40px; height: 40px; font-size: 16px; }
}

/* 작은 폰 (≤480px) */
@media (max-width: 480px) {
    .carousel { height: 340px; }
    .slide-content h1 { font-size: 22px; }
    .slide-content p { font-size: 13.5px; max-width: 92%; }
    .carousel-btn { width: 34px; height: 34px; font-size: 13px; }
    .carousel-btn.prev { left: 8px; }
    .carousel-btn.next { right: 8px; }
    .logo span { font-size: 17px; }
    .logo img { max-height: 40px !important; }
    .top-bar { font-size: 11.5px; padding: 5px 10px; }
}

/* ===== Mobile hamburger menu (CSS-only, no JS required) ===== */
/* Bullet-proof hide for the toggle checkbox (never visible to users) */
.nav-toggle-checkbox {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
}
.nav-toggle-label {
    display: none;
    cursor: pointer;
    font-size: 30px;
    color: #0056b3;
    user-select: none;
    padding: 4px 12px;
    line-height: 1;
    border-radius: 6px;
}
.nav-toggle-label:hover { background: #f4f9ff; }

@media (max-width: 768px) {
    /* Override page-specific inline media queries with !important */
    header .nav-container {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 10px 18px !important;
    }
    .nav-toggle-label { display: block !important; margin-left: auto; }

    /* Collapse menu by default; expand when ☰ is tapped */
    header .nav-links {
        display: none !important;
        order: 99;
        width: 100%;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px !important;
        padding-top: 8px;
        border-top: 1px solid #eef0f3;
    }
    .nav-toggle-checkbox:checked ~ .nav-links {
        display: flex !important;
    }

    /* Tap-friendly menu items */
    header .nav-links a,
    header .nav-links .nav-coming-soon {
        padding: 12px 14px !important;
        border-radius: 8px !important;
        font-size: 16px !important;
        display: block !important;
    }
    header .nav-links a:hover { background: #f4f9ff; }
}

/* ===== "Coming Soon" disabled nav item (Pickup & Delivery placeholder) ===== */
/* TODO: replace this <span> with a real <a> tag when the app subdomain is live */
.nav-coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af !important;
    cursor: not-allowed;
    font-weight: 500;
    opacity: 0.85;
    user-select: none;
    position: relative;
}
.nav-coming-soon:hover { color: #9ca3af !important; font-weight: 500 !important; }
.nav-coming-soon .soon-badge {
    background: #fef3c7;
    color: #92400e;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 10px;
    border: 1px solid #fde68a;
    line-height: 1.4;
}
