@charset "utf-8";

/* ========================================
   토스(Toss) 스타일 디자인 시스템
   Rhymix 휴대폰 매입/판매 레이아웃
   ======================================== */

:root {
    /* Toss Color Palette */
    --toss-blue: #3182F6;
    --toss-blue-dark: #1B64DA;
    --toss-blue-light: #E8F3FF;
    --toss-grey-50: #F9FAFB;
    --toss-grey-100: #F2F4F6;
    --toss-grey-200: #E5E8EB;
    --toss-grey-300: #D1D6DB;
    --toss-grey-500: #8B95A1;
    --toss-grey-700: #4E5968;
    --toss-grey-800: #333D4B;
    --toss-grey-900: #191F28;
    --toss-white: #FFFFFF;

    /* Shadows & Radius */
    --toss-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --toss-shadow-md: 0 8px 16px rgba(0, 0, 0, 0.06);
    --toss-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
    --toss-radius-s: 12px;
    --toss-radius-m: 16px;
    --toss-radius-l: 24px;
    --toss-radius-xl: 30px;

    /* Layout */
    --container-max: 1100px;
    --header-height: 86px;
}

/* ========================================
   1. Reset & Base
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* scroll-behavior는 JS에서 처리 */
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Noto Sans KR', sans-serif;
    color: var(--toss-grey-800);
    background-color: var(--toss-grey-100);
    line-height: 1.6;
    letter-spacing: -0.02em;
    -webkit-font-smoothing: antialiased;
}

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

ul, ol {
    list-style: none;
}

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

button {
    font-family: inherit;
}

hr {
    display: none;
}

/* ========================================
   2. Container
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.phone-landing {
    /* overflow 제거 - sticky header 작동을 위해 */
}

/* ========================================
   3. Typography
   ======================================== */
h1, h2, h3, h4 {
    color: var(--toss-grey-900);
    font-weight: 700;
    line-height: 1.3;
}

.section-title {
    font-size: 42px;
    margin-bottom: 16px;
    word-break: keep-all;
}

.section-subtitle {
    font-size: 20px;
    color: var(--toss-grey-700);
    font-weight: 500;
    margin-bottom: 40px;
    word-break: keep-all;
}

/* ========================================
   4. Buttons (Toss Style - 독립 클래스)
   ======================================== */
.toss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    font-size: 20px;
    font-weight: 600;
    border-radius: var(--toss-radius-xl);
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    border: none;
    cursor: pointer;
    line-height: 1.4;
    min-height: 60px;
    text-decoration: none;
}

.toss-btn:active {
    transform: scale(0.96);
}

.toss-btn-primary {
    background-color: var(--toss-blue);
    color: var(--toss-white);
    box-shadow: 0 4px 14px rgba(49, 130, 246, 0.3);
}

.toss-btn-primary:hover {
    background-color: var(--toss-blue-dark);
    color: var(--toss-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 246, 0.4);
}

.toss-btn-secondary {
    background-color: var(--toss-blue-light);
    color: var(--toss-blue);
    box-shadow: 0 2px 8px rgba(49, 130, 246, 0.1);
}

.toss-btn-secondary:hover {
    background-color: #D6E6FD;
    color: var(--toss-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 246, 0.2);
}

.toss-btn-contact {
    background-color: var(--toss-blue);
    color: white;
    padding: 14px 28px;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(49, 130, 246, 0.3);
    min-height: auto;
    border-radius: var(--toss-radius-xl);
}

.toss-btn-contact:hover {
    background-color: var(--toss-blue-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 246, 0.4);
}

.toss-btn-contact svg {
    fill: currentColor;
    margin-right: 6px;
}

/* ========================================
   5. Header
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    height: var(--header-height);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

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

.logo img {
    max-height: 56px;
}

.logo span {
    font-size: 22px;
    font-weight: 800;
    color: var(--toss-grey-900);
}

.logo span::after {
    content: '.';
    color: var(--toss-blue);
}

.main-nav {
    display: flex;
    align-items: center;
}

/* 섹션 바로가기 메뉴 */
.section-nav {
    display: flex;
    gap: 75px;
    margin-right: 40px;
}

.section-nav li a {
    font-size: 20px;
    font-weight: 600;
    color: var(--toss-grey-700);
    transition: color 0.2s;
}

.section-nav li a:hover {
    color: var(--toss-blue);
}

/* Rhymix 메뉴 */
.nav-list {
    display: flex;
    gap: 24px;
}

.nav-item a {
    font-size: 15px;
    font-weight: 500;
    color: var(--toss-grey-700);
    transition: color 0.2s;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--toss-grey-900);
    border-radius: 2px;
    transition: 0.2s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* ========================================
   6. Section Common
   ======================================== */
section {
    padding: 60px 0;
}

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

/* ========================================
   7. Notice Section (공지)
   ======================================== */
.notice-section {
    background-color: var(--toss-blue-light);
    padding: 40px 0;
}

.notice-content {
    background: var(--toss-white);
    border-radius: var(--toss-radius-l);
    padding: 32px;
    box-shadow: var(--toss-shadow-sm);
    font-size: 16px;
    line-height: 1.8;
    color: var(--toss-grey-800);
    word-break: keep-all;
    white-space: pre-line;
}

.notice-content p {
    margin-bottom: 12px;
}

.notice-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   8. Price Section (Hero Style)
   ======================================== */
.price-section {
    background-color: var(--toss-white);
    padding-top: 80px;
    padding-bottom: 60px;
}

.price-update {
    display: inline-block;
    background: var(--toss-grey-100);
    color: var(--toss-grey-700);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
}

.price-image-container {
    margin-top: 40px;
    border-radius: var(--toss-radius-l);
    overflow: hidden;
    box-shadow: var(--toss-shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: white;
    padding: 10px;
}

.price-table-image {
    width: 100%;
    display: block;
    cursor: zoom-in;
    border-radius: var(--toss-radius-m);
    transition: transform 0.3s ease;
}

.price-table-image:hover {
    transform: scale(1.01);
}

/* ========================================
   9. Checklist Section (필수 확인사항)
   ======================================== */
.checklist-section {
    background-color: var(--toss-grey-100);
    padding: 60px 0;
}

.checklist-image {
    border-radius: var(--toss-radius-l);
    overflow: hidden;
    box-shadow: var(--toss-shadow-md);
}

.checklist-image img {
    width: 100%;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.checklist-image img:hover {
    transform: scale(1.01);
}

/* ========================================
   10. Internet Section (인터넷)
   ======================================== */
.internet-section {
    background-color: var(--toss-white);
    padding: 60px 0;
}

.internet-content {
    background: var(--toss-grey-50);
    border-radius: var(--toss-radius-l);
    padding: 40px;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--toss-grey-800);
    word-break: keep-all;
    white-space: normal;
}

.internet-image {
    border-radius: var(--toss-radius-l);
    overflow: hidden;
    box-shadow: var(--toss-shadow-md);
}

.internet-image img {
    width: 100%;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.internet-image img:hover {
    transform: scale(1.01);
}

/* ========================================
   11. Promises Section (핵심 가치)
   ======================================== */
.promises-section {
    background-color: var(--toss-grey-50);
    padding: 60px 0;
}

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

.promise-card {
    background: var(--toss-white);
    border-radius: var(--toss-radius-l);
    padding: 40px 28px;
    text-align: center;
    box-shadow: var(--toss-shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.promise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--toss-shadow-md);
}

.promise-icon {
    width: 70px;
    height: 70px;
    background: var(--toss-blue-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
}

.promise-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--toss-grey-900);
}

.promise-desc {
    font-size: 16px;
    color: var(--toss-grey-700);
    word-break: keep-all;
    line-height: 1.6;
}

/* ========================================
   9. Branches Section
   ======================================== */
.branches-section {
    background-color: var(--toss-white);
    padding: 60px 0;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.branch-card {
    background: var(--toss-white);
    border-radius: var(--toss-radius-l);
    box-shadow: var(--toss-shadow-md);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.branch-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--toss-shadow-lg);
}

.branch-media {
    height: 240px;
    position: relative;
    overflow: hidden;
}

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

.branch-card:hover .branch-media img {
    transform: scale(1.05);
}

.youtube-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.youtube-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.branch-info {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.branch-name {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--toss-grey-900);
}

.branch-desc {
    color: var(--toss-grey-700);
    font-size: 16px;
    margin-bottom: 24px;
    flex-grow: 1;
    line-height: 1.7;
}

.branch-buttons {
    display: flex;
    gap: 12px;
}

.branch-buttons .toss-btn {
    flex: 1;
}

/* ========================================
   9. Main Content
   ======================================== */
.main-content {
    padding: 60px 0;
    background: var(--toss-white);
}

.main-content:empty {
    display: none;
}

/* ========================================
   14. Reviews Section (좌우 스크롤)
   ======================================== */
.reviews-section {
    background-color: var(--toss-grey-50);
    padding: 60px 0;
    overflow: hidden;
}

.reviews-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 -24px;
    padding: 0 24px;
}

.reviews-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0 20px;
}

.reviews-slider::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 340px;
    min-width: 340px;
    background: var(--toss-grey-50);
    border-radius: var(--toss-radius-l);
    padding: 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    background: white;
    box-shadow: var(--toss-shadow-md);
    transform: translateY(-4px);
}

.review-image {
    width: 100%;
    height: 180px;
    border-radius: var(--toss-radius-m);
    overflow: hidden;
    margin-bottom: 20px;
}

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

.review-content {
    flex-grow: 1;
}

.review-stars {
    color: #FFC700;
    font-size: 18px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 16px;
    color: var(--toss-grey-800);
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 20px;
}

.review-meta {
    margin-top: auto;
    border-top: 1px solid var(--toss-grey-200);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.review-author {
    font-weight: 700;
    color: var(--toss-grey-900);
}

.review-date {
    color: var(--toss-grey-500);
}

/* ========================================
   11. Footer
   ======================================== */
.site-footer {
    background-color: var(--toss-grey-900);
    padding: 60px 0 40px;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-logo img {
    max-height: 80px;
}

.footer-consent img {
    max-height: 70px;
    border-radius: 8px;
    transition: transform 0.2s, opacity 0.2s;
}

.footer-consent:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.footer-info-line {
    color: var(--toss-grey-500);
    font-size: 14px;
    line-height: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-info-line span {
    display: block;
}

.footer-cs {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--toss-grey-800);
}

.cs-label {
    font-size: 14px;
    color: var(--toss-grey-500);
    margin-bottom: 8px;
}

.cs-phone {
    font-size: 24px;
    font-weight: 700;
    color: var(--toss-white);
    line-height: 1.2;
}

.cs-hours {
    font-size: 14px;
    color: var(--toss-grey-500);
    margin-top: 8px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--toss-grey-800);
}

.copyright {
    color: var(--toss-grey-500);
    font-size: 13px;
}

/* ========================================
   12. Floating Buttons (Chips Style)
   ======================================== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.floating-branch-btn {
    background: #FEE500;
    width: 90px;
    height: 90px;
    border-radius: var(--toss-radius-m);
    box-shadow: var(--toss-shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-weight: 700;
    font-size: 13px;
    color: #191919;
    transition: all 0.2s ease;
    border: none;
}

.floating-branch-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--toss-shadow-lg);
    background: #F5D900;
    color: #191919;
}

.kakao-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.kakao-icon svg {
    width: 60px;
    height: 60px;
}

.branch-label {
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

/* ========================================
   13. Lightbox
   ======================================== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--toss-radius-s);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

/* ========================================
   14. Scroll Animations
   ======================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.branch-card,
.review-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.branch-card.animate-in,
.review-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   15. Responsive Design
   ======================================== */

/* Tablet (1024px 이하) */
@media (max-width: 1024px) {
    .section-title {
        font-size: 32px;
    }

    .promises-grid {
        grid-template-columns: 1fr;
    }

    .branches-grid {
        grid-template-columns: 1fr;
    }

    .review-card {
        flex: 0 0 300px;
        min-width: 300px;
    }

    .internet-content {
        padding: 28px;
    }
}

/* Tablet Portrait (768px 이하) */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 24px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 17px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 16px;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .section-nav {
        display: none;
    }

    .nav-list {
        display: none;
    }

    .header-contact {
        display: block;
    }

    .header-contact .toss-btn-contact {
        padding: 10px 16px;
        font-size: 14px;
    }

    .header-contact .toss-btn-contact svg {
        width: 14px;
        height: 14px;
    }

    .price-section {
        padding-top: 80px;
    }

    .branch-media {
        height: 200px;
    }

    .branch-info {
        padding: 24px;
    }

    .branch-buttons {
        flex-direction: column;
    }

    .footer-main {
        flex-direction: column;
        gap: 32px;
    }

    .footer-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-info-line {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .footer-info-line span {
        margin-right: 0;
    }

    .footer-logos {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .footer-logo img {
        max-height: 50px;
    }

    .footer-consent img {
        max-height: 50px;
    }

    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }

    .notice-content,
    .internet-content {
        padding: 24px;
    }

    .review-card {
        flex: 0 0 280px;
        min-width: 280px;
        padding: 24px;
    }
}

/* Mobile (480px 이하) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .floating-branch-btn {
        width: 80px;
        height: 80px;
    }

    .kakao-icon {
        width: 54px;
        height: 54px;
    }

    .kakao-icon svg {
        width: 54px;
        height: 54px;
    }

    .review-card {
        padding: 24px;
    }

    .price-image-container {
        padding: 6px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}
