/* Gold Exchange Theme Common CSS - Based on docs/example */
/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables */
:root {
    --gold-primary: #d4af37;
    --gold-dark: #b8941f;
    --gold-light: #e6c55a;

    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --text-white: #fff;

    --border-light: #eee;
    --border-default: #ddd;
    --border-dark: #ccc;

    --bg-white: #fff;
    --bg-dark: #333;
    --bg-light: #f8f9fa;
    --bg-input: #f1f5f9;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);

    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-xl: 25px;
    --radius-full: 50%;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Typography */
body {
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', 'Pretendard', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--gold-primary);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.75em; }
h4 { font-size: 1.5em; }
h5 { font-size: 1.25em; }
h6 { font-size: 1em; }

/* Container */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 40px;
}

.btn-primary {
    background: var(--gold-primary);
    color: var(--text-white);
    border-color: var(--gold-primary);
}

.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-default);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: var(--text-white);
}

/* Form Elements */
input[type="text"]:not(.search-input),
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    font-size: 14px;
    font-family: inherit;
    transition: all var(--transition-normal);
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--gold-primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-secondary);
}

tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

/* Lists */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.25rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold-primary); }

.bg-white { background: var(--bg-white); }
.bg-light { background: var(--bg-light); }
.bg-gold { background: var(--gold-primary); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }

.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-5 { margin: 1.25rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-5 { padding-bottom: 1.25rem; }

.border-radius-sm { border-radius: var(--radius-sm); }
.border-radius-md { border-radius: var(--radius-md); }
.border-radius-lg { border-radius: var(--radius-lg); }
.border-radius-xl { border-radius: var(--radius-xl); }
.border-radius-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Responsive Utilities */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }

    .text-md-center { text-align: center; }
    .text-md-left { text-align: left; }
    .text-md-right { text-align: right; }

    .justify-md-center { justify-content: center; }
    .justify-md-between { justify-content: space-between; }
    .justify-md-start { justify-content: flex-start; }
    .justify-md-end { justify-content: flex-end; }
}

@media (max-width: 480px) {
    .d-sm-none { display: none !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }

    .text-sm-center { text-align: center; }
    .text-sm-left { text-align: left; }
    .text-sm-right { text-align: right; }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

.slide-down {
    animation: slideDown 0.5s ease-out;
}

/* Hover Effects */
.hover-lift {
    transition: transform var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.hover-scale {
    transition: transform var(--transition-normal);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-gold {
    transition: color var(--transition-normal);
}

.hover-gold:hover {
    color: var(--gold-primary);
}

/* Footer Styles */
.footer {
    background: #2c2c2c;
    color: white;
    padding: 60px 40px 30px;
}

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

.footer-company-name {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 60px;
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 50px;
}

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

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    /* margin-bottom: 20px; */
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
    color: white;
}

.footer-info {
    line-height: 1.8;
    font-size: 14px;
    color: #ccc;
}

.footer-info p {
    margin: 5px 0;
}

.footer-phone {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.footer-hours {
    margin-top: 10px;
}

.footer-notice {
    color: #999;
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
}

/* Footer Accordion Styles */
.footer-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    justify-content: center;
    transition: all var(--transition-normal);
}

.footer-accordion-header:hover {
    color: var(--gold-primary);
}

.footer-accordion-icon {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-normal);
}

.footer-accordion-content {
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

/* Desktop - accordion always open */
@media (min-width: 769px) {
    .footer-accordion-header {
        cursor: default;
        pointer-events: none;
    }

    .footer-accordion-icon {
        display: none;
    }

    .footer-accordion-content {
        max-height: none !important;
    }
}

/* Footer Responsive Styles */
@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 20px;
    }

    .footer-company-name {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: left;
        margin-bottom: 0;
    }

    .footer-section {
        border-bottom: 1px solid #444;
        padding-bottom: 15px;
    }

    .footer-section:last-child {
        border-bottom: none;
    }

    .footer-accordion-header {
        justify-content: space-between;
        padding: 15px 0;
        margin-bottom: 0;
        border-bottom: none !important;
    }

    .footer-accordion-content {
        max-height: 0;
        padding: 0;
        margin-top: 0;
    }

    .footer-accordion-content.active {
        max-height: 500px;
        padding: 10px 0 20px 0;
    }

    .footer-accordion-header.active .footer-accordion-icon {
        transform: rotate(180deg);
    }

    .footer-phone {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .footer-section h3 {
        font-size: 16px;
    }

    .footer-info {
        font-size: 13px;
    }

    .footer-phone {
        font-size: 18px;
    }

    .footer-accordion-content.active {
        max-height: 400px;
    }
}

/* 퀵 버튼 (플로팅) */
.quick-buttons {
    position: fixed;
    right: 20px;
    bottom: 30px;

    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-btn {
    width: 60px;
    height: 60px;
    background: #2d2d2d;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.quick-btn:hover {
    background: #404040;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.quick-icon {
    width: 24px;
    height: 24px;
    color: white;
}

.quick-text {
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* 퀵 버튼 모바일 반응형 */
@media (max-width: 768px) {
    .quick-buttons {
        right: 15px;
        gap: 10px;
    }

    .quick-btn {
        width: 50px;
        height: 50px;
    }

    .quick-icon {
        width: 20px;
        height: 20px;
    }

    .quick-text {
        font-size: 9px;
    }
}