@charset "utf-8";

/* ========================================
   DOKOCREW Homepage - Base
   dokocrew.css 가 참조하는 변수·리셋·공통 껍데기
======================================== */

:root {
    --primary: #ffc20e;
    --primary-dark: #ffa800;
    --dark: #1e1e1e;
    --text: #666666;
    --text-dark: #333333;
    --white: #ffffff;
    --gray-bg: #f8f8f8;
    --gray-light: #eeeeee;
    --transition: all 0.3s ease;
    --font: 'Noto Sans KR', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.6; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; vertical-align: top; }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; }

/* ========================================
   Common Buttons
======================================== */
.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: var(--primary);
    color: var(--dark);
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,194,14,0.3);
}

.btn-outline {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    border: 2px solid var(--white);
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

@media screen and (max-width: 768px) {
    .btn-primary,
    .btn-outline {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* ========================================
   Header
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--white);
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-wrap {
    max-width: 1200px;
    height: 80px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 로고: 심볼 이미지 + 워드마크 텍스트 (가로형 정식 로고가 나오면 이미지 하나로 교체) */
.logo a {
    display: flex;
    align-items: center;
    gap: 9px;
}

.logo img {
    height: 34px;
    width: auto;
}

.logo .wordmark {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    line-height: 1;
}

/* Navigation */
.gnb ul {
    display: flex;
    gap: 50px;
}

.gnb > ul > li {
    position: relative;
}

.gnb > ul > li > a {
    display: block;
    padding: 28px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
}

.gnb > ul > li:hover > a,
.gnb > ul > li.active > a {
    color: var(--primary-dark);
}

.gnb > ul > li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.gnb > ul > li:hover::after,
.gnb > ul > li.active::after {
    transform: scaleX(1);
}

/* Language Switcher */
.lang-switch {
    position: relative;
}

.lang-btn-current {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border: 1px solid var(--gray-light);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text);
    background: var(--white);
}

.lang-btn-current:hover {
    border-color: var(--primary);
}

.lang-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    min-width: 120px;
}

.lang-dropdown.active .lang-options {
    display: block;
}

.lang-options li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
}

.lang-options li a:hover {
    background: var(--gray-bg);
    color: var(--primary-dark);
}

.current-flag {
    display: inline-block;
    width: 20px;
    height: 14px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
}

.flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ========================================
   Section 공통
======================================== */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-gray {
    background: var(--gray-bg);
}

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

.section-subtitle {
    display: inline-block;
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

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

.section-desc {
    font-size: 18px;
    color: var(--text);
    line-height: 1.8;
}

/* ========================================
   CTA
======================================== */
.cta-section {
    padding: 100px 20px;
    background: var(--dark);
    text-align: center;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 30px;
}

.cta-section .cta-btn {
    display: inline-block;
    padding: 18px 60px;
    background: var(--primary);
    color: var(--dark);
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    transition: var(--transition);
}

.cta-section .cta-btn:hover {
    background: var(--white);
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--dark);
    padding: 60px 20px 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info .company {
    font-size: 18px;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 10px;
}

.footer-info .address,
.footer-info .tel {
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
}

.footer-right {
    text-align: right;
}

.footer-terms {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-terms a {
    color: #aaa;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-terms a:hover {
    color: var(--primary);
}

.footer-divider {
    color: #555;
    font-size: 12px;
}

.footer-copyright {
    font-size: 13px;
    color: #666;
}

/* ========================================
   Tawk.to Chat Widget
======================================== */
#tawk-bubble-container,
.tawk-min-container,
.tawk-button,
.tawk-button-circle,
[class*="tawk-min"],
[class*="tawk-bubble"],
[class*="tawk-button"],
[id*="tawk"],
iframe[title="chat widget minimized"],
iframe[title="chat widget"],
div[class*="widget-visible"] > div[style*="bottom"][style*="right"]:not(.chat-helper):not(.tawk-max-container),
body > div[style*="z-index"]:not([class]):not([id]),
body > iframe[style*="bottom"]:not([class]):not([id]) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

iframe[title*="chat widget"][style*="max"],
.tawk-max-container,
iframe.tawk-iframe {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: auto !important;
    height: auto !important;
    position: fixed !important;
    left: auto !important;
}

.tawk-max-container {
    z-index: 99999 !important;
}

.chat-helper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99998;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    cursor: pointer;
    animation: chatHelperFadeIn 0.5s ease 1s forwards;
    opacity: 0;
}

.chat-helper-message {
    background: var(--primary);
    color: var(--dark);
    padding: 12px 18px;
    border-radius: 20px 20px 5px 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 194, 14, 0.4);
    animation: chatHelperBounce 2s ease-in-out infinite;
}

.chat-helper-icon {
    width: 60px;
    height: 60px;
    background: #03A84E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(3, 168, 78, 0.4);
    flex-shrink: 0;
    position: relative;
    z-index: 100000;
}

.chat-helper-icon svg {
    width: 34px;
    height: 34px;
    fill: var(--white);
}

.chat-helper.hidden {
    display: none;
}

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

@keyframes chatHelperBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

/* ========================================
   Responsive
======================================== */
@media screen and (max-width: 1024px) {
    .gnb ul {
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .header-wrap {
        padding: 0 15px;
    }

    .logo img {
        height: 30px;
    }

    .logo .wordmark {
        font-size: 21px;
    }

    .gnb {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        display: none;
    }

    .gnb.active {
        display: block;
    }

    .gnb ul {
        flex-direction: column;
        gap: 0;
    }

    .gnb > ul > li > a {
        padding: 15px 0;
        border-bottom: 1px solid var(--gray-light);
    }

    .gnb > ul > li::after {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* 언어 전환은 모바일에서 햄버거 왼쪽에 고정 */
    .lang-switch {
        display: block;
        position: absolute;
        right: 70px;
        top: 50%;
        transform: translateY(-50%);
    }

    .lang-dropdown {
        position: relative;
    }

    .lang-btn-current {
        padding: 6px 12px;
        font-size: 12px;
    }

    .lang-options {
        right: 0;
        left: auto;
        min-width: 100px;
    }

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

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

    .section-desc {
        font-size: 14px;
        line-height: 1.8;
    }

    .cta-section h2 {
        font-size: 24px;
    }

    .cta-section p {
        font-size: 14px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-right {
        text-align: center;
    }

    .footer-terms {
        justify-content: center;
    }

    .chat-helper {
        bottom: 15px;
        right: 15px;
    }

    .chat-helper-message {
        font-size: 12px;
        padding: 10px 14px;
    }

    .chat-helper-icon {
        width: 54px;
        height: 54px;
    }

    .chat-helper-icon svg {
        width: 30px;
        height: 30px;
    }
}

@media screen and (max-width: 480px) {
    .lang-switch {
        right: 60px;
    }
}

/* ========================================
   Contact Form
   강조색은 DOKOCREW 브랜드(파랑)를 쓴다. dokocrew.css 의 --dokocrew-primary 를 참조한다.
======================================== */
.contact-form-section {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.contact-form-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.form-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.contact-form-wrap .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form-wrap .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form-wrap .form-group.full {
    margin-bottom: 20px;
}

.contact-form-wrap label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-form-wrap input,
.contact-form-wrap select,
.contact-form-wrap textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-dark);
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.contact-form-wrap input:focus,
.contact-form-wrap select:focus,
.contact-form-wrap textarea:focus {
    outline: none;
    border-color: var(--dokocrew-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: #fff;
}

.contact-form-wrap select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.contact-form-wrap textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: center;
    margin-top: 10px;
}

.submit-btn {
    display: inline-block;
    padding: 14px 60px;
    background: var(--dokocrew-primary);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: var(--dokocrew-primary-dark);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-result {
    text-align: center;
    margin-top: 16px;
    font-size: 15px;
    font-weight: 500;
}

.form-result.success { color: #2e7d32; }
.form-result.error { color: #c62828; }

/* 문의 페이지 상단 소개 */
.page-intro {
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 20px 40px;
    text-align: center;
}

.intro-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.intro-desc {
    font-size: 16px;
    color: var(--text);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .contact-form-wrap {
        padding: 30px 20px;
    }

    .contact-form-wrap .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .contact-form-wrap .form-group {
        margin-bottom: 16px;
    }

    .page-intro {
        padding: 110px 20px 30px;
    }

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

    .intro-desc {
        font-size: 14px;
    }
}

/* ========================================
   DOKOCREW 브랜드 보정
   base.css 는 DOKOPANG(노랑) 기준이라, 헤더 강조색만 DOKOCREW(파랑)로 되돌린다.
======================================== */
.gnb > ul > li:hover > a,
.gnb > ul > li.active > a {
    color: var(--dokocrew-primary-dark);
}

.gnb > ul > li::after {
    background: var(--dokocrew-primary);
}

.lang-btn-current:hover {
    border-color: var(--dokocrew-primary);
}

.lang-options li a:hover {
    color: var(--dokocrew-primary-dark);
}

.footer-terms a:hover {
    color: var(--dokocrew-primary);
}

/* 로고가 검은 바탕의 앱 아이콘이라 모서리를 둥글려 배지처럼 쓴다 */
.logo img {
    border-radius: 8px;
}
