/* ========================================
   SinkDoctor - Common Styles
   모든 페이지에 공통으로 적용되는 스타일
   ======================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #10b981;
}

/* Contact Button */
.contact-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.3rem;
    margin-left: 0.5rem;
}

.lang-btn {
    padding: 0.3rem 0.7rem;
    border: 1.5px solid #10b981;
    background: white;
    color: #10b981;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lang-btn:hover,
.lang-btn.active {
    background: #10b981;
    color: white;
}

/* Common Button Styles */
.btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #10b981;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #10b981;
    transform: translateY(-3px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 2.5rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2.5fr 1fr 1.3fr 1fr 2.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    /* width를 명시적으로 auto로 설정하여 grid가 제어하도록 함 */
    width: auto;
    min-width: 0;
}

.footer-section h3 {
    margin-bottom: 0.8rem;
    color: #10b981;
    font-size: 1.1rem;
}

/* Footer Section Types */
.footer-section-large {
    /* 1번(로고+회사정보), 5번(연락처) 섹션 - 넓은 영역 */
}

.footer-section-small {
    /* 2번(회사), 3번(제품&서비스), 4번(고객지원) 섹션 - 좁은 영역 */
}

.footer-section-small h3 {
    font-size: 1rem;
}

.footer-section-small p,
.footer-section-small a {
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-logo {
    margin-bottom: 0.6rem;
}

.footer-logo img {
    height: 55px;
    width: auto;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    line-height: 1.6;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    color: #888;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.3rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 968px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .lang-switcher {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .logo img {
        height: 50px;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    footer {
        padding: 2rem 1.5rem 1rem;
    }
}

