/* 충남스틸 - 삼성 서비스센터 스타일 */
:root {
    --primary-blue: #1428A0;
    --secondary-blue: #2C5AA0;
    --light-blue: #E8F0FE;
    --text-primary: #1D1D1F;
    --text-secondary: #666666;
    --border-color: #E5E5E7;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    
    /* Semantic colors */
    --success-bg: #d4edda;
    --success-text: #155724;
    --success-color: #28a745;
    --success-light-bg: #f0fff4;
    --danger-bg: #f8d7da;
    --danger-text: #721c24;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', '맑은 고딕', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Samsung Header */
.samsung-header {
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.1);
    height: 64px;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    flex-shrink: 0;
}

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

.logo-text-main {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    letter-spacing: -0.5px;
}

/* Navigation */
.main-nav {
    flex: 1;
    margin: 0 60px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 48px;
    justify-content: center;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 64px;
    transition: all 0.2s ease;
    position: relative;
}

.main-nav a:hover {
    color: #000;
    font-weight: 600;
}

.main-nav a.active {
    color: #000;
    font-weight: 600;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #000;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #000;
    transition: opacity 0.2s ease;
    position: relative;
}

.icon-btn:hover {
    opacity: 0.7;
}

.icon-btn svg {
    width: 24px;
    height: 24px;
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #FF6900;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

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

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-top: 64px;
    background-color: var(--bg-light);
}

/* Hero Section */
.hero-section {
    background-color: var(--light-blue);
    padding: 60px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 40, 160, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--light-blue);
}

.btn-large {
    padding: 16px 40px;
    font-size: 17px;
}

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

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-header h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Service Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--primary-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.service-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Footer */
footer {
    background-color: #1A1A1A;
    color: white;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-company p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.company-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 4px 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
    margin-top: 12px;
}

.footer-label:first-child {
    margin-top: 0;
}

.footer-value {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    font-weight: 500;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 4px 0;
}

/* Info Section */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.info-card {
    padding: 30px;
}

.info-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.info-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.info-card p {
    font-size: 16px;
    line-height: 1.6;
}

.phone-number {
    font-size: 28px !important;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .header-container {
        padding: 0 20px;
    }
    
    .main-nav ul {
        gap: 24px;
    }
}

@media (max-width: 1150px) {
    .main-nav ul {
        gap: 22px;
    }
    
    .main-nav a {
        font-size: 14px;
        padding: 8px 14px;
    }
}

@media (max-width: 1100px) and (min-width: 1051px) {
    .main-nav ul {
        gap: 16px;
    }
    
    .main-nav a {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .logo-text-main {
        font-size: 22px;
    }
    
    .header-icons {
        gap: 10px;
    }
}

/* 작은 태블릿 / 큰 모바일 - 모바일 메뉴로 전환 */
@media (max-width: 1050px) {
    .header-icons .icon-btn:not(.mobile-menu-btn) {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 64px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 64px);
        background-color: white;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        margin: 0;
        z-index: 999;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }
    
    .main-nav a {
        width: 100%;
        padding: 16px 20px;
        line-height: 1.5;
        border-bottom: 1px solid #f0f0f0;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .main-nav a.active::after {
        display: none;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Global Search Form */
.global-search-form {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    padding: 15px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 300px;
    z-index: 999;
}

.global-search-form.active {
    display: block;
}

.global-search-form form {
    display: flex;
    gap: 10px;
}

.global-search-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.global-search-form button {
    padding: 8px 15px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.global-search-form button:hover {
    background-color: var(--secondary-blue);
}