/* 넘버원줄눈 전용 스타일시트 - 건설업 전문 디자인 */

/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #fafafa;
    overflow-x: hidden;
}

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

/* 헤더 - 건설업 전문 스타일 */
.header {
    background: linear-gradient(135deg, #1a2332 0%, #2d4a66 50%, #1a2332 100%);
    color: white;
    padding: 12px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(26, 35, 50, 0.3);
    border-bottom: 3px solid #ff6b35;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    color: white;
    text-decoration: none;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.nav-menu {
    display: flex;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #f39c12;
}

.nav-contact {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-contact span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.nav-contact a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.nav-contact a:hover {
    color: #f39c12;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* 기본 wrapper 스타일 */
#wrapper {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

#container_wr {
    min-height: calc(100vh - 200px);
}

/* 메인 히어로 섹션 - 줄눈시공 전문 */
.hero {
    background:
        linear-gradient(135deg, rgba(26, 35, 50, 0.92) 0%, rgba(45, 74, 102, 0.88) 50%, rgba(26, 35, 50, 0.92) 100%),
        url('../images/joint-bg.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 150px 0 120px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.15) 0%, transparent 50%);
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 107, 53, 0.9);
    color: white;
    padding: 8px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 25px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    line-height: 1.1;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle-line {
    font-size: 1.8rem;
    font-weight: 300;
    color: #ffcc80;
    display: block;
    margin-top: 15px;
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 45px;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-subtitle strong {
    color: #ffcc80;
    font-weight: 700;
}

.hero-highlight {
    display: block;
    font-size: 1.1rem;
    color: #ff6b35;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 20px;
    border-radius: 20px;
    margin-top: 15px;
    font-weight: 600;
    text-shadow: none;
}

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

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    font-size: 2rem;
    color: #f39c12;
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item span {
    font-weight: 600;
    font-size: 1.1rem;
}

.hero-cta {
    margin-top: 40px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
    color: white;
    padding: 20px 45px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.6);
    color: white;
    background: linear-gradient(135deg, #e55a2b 0%, #d67c1e 50%, #e55a2b 100%);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #3498db;
    color: white;
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.3rem;
}

/* 공통 섹션 스타일 */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #1a2332;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 6px;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #ff6b35);
    margin: 25px auto 0;
    border-radius: 3px;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 6px;
    background: #2d4a66;
    border-radius: 3px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

/* 실시간 상담 배너 */
.consultation-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
    color: white;
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

.consultation-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><path fill="rgba(255,255,255,0.1)" d="M0,100 Q300,50 600,100 T1200,100 L1200,200 L0,200 Z"/><circle fill="rgba(255,255,255,0.1)" cx="100" cy="50" r="20"/><circle fill="rgba(255,255,255,0.1)" cx="1100" cy="150" r="15"/></svg>');
    background-size: cover;
}

.consultation-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.consultation-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.consultation-info .highlight {
    color: #ffeb3b;
    background: rgba(26, 35, 50, 0.8);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 1.6rem;
}

.consultation-info p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.consultation-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(26, 35, 50, 0.9);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: consultationPulse 2s infinite;
}

.consultation-btn:hover {
    transform: scale(1.05);
    background: rgba(26, 35, 50, 1);
    color: white;
    box-shadow: 0 8px 25px rgba(26, 35, 50, 0.5);
}

.consultation-btn i {
    font-size: 1.2rem;
    animation: phoneShake 1s infinite;
}

@keyframes consultationPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

@keyframes phoneShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* 서비스 섹션 */
.services {
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 45px 35px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    transition: left 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
}

.service-card:hover::before {
    left: 0;
}

.service-icon {
    margin-bottom: 25px;
}

.service-icon i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 4px rgba(255, 107, 53, 0.3));
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* 갤러리 섹션 */
.gallery-section {
    background: white;
}

.gallery-wrapper {
    margin-top: 50px;
}

.gallery-more {
    text-align: center;
    margin-top: 40px;
}

/* 약속 섹션 */
.promise {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.promise .section-title {
    color: white;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.promise-item {
    background: rgba(255,255,255,0.1);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.promise-icon i {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 20px;
}

.promise-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.promise-item p {
    opacity: 0.9;
    line-height: 1.6;
}

/* 후기 섹션 */
.reviews {
    background-color: #f8f9fa;
}

.reviews-wrapper {
    margin-top: 50px;
}

.reviews-more {
    text-align: center;
    margin-top: 40px;
}

/* 문의 섹션 */
.inquiry {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.inquiry .section-title {
    color: white;
}

.inquiry .section-subtitle {
    color: rgba(255,255,255,0.8);
}

.inquiry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-icon {
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 2rem;
    color: #f39c12;
    background: rgba(243, 156, 18, 0.2);
    padding: 15px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-details p {
    opacity: 0.9;
    margin-bottom: 5px;
}

.contact-details a {
    color: #f39c12;
    text-decoration: none;
    font-weight: 500;
}

.contact-details span {
    font-size: 0.9rem;
    opacity: 0.7;
}

.inquiry-form {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.inquiry-form h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* 플로팅 통화 버튼 */
.floating-call {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.float-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
    color: white;
    padding: 18px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
    transition: all 0.3s ease;
    animation: callPulse 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.float-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.7);
    color: white;
}

.float-btn i {
    animation: phoneRing 1.5s infinite;
}

@keyframes callPulse {
    0% {
        box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 35px rgba(255, 107, 53, 0.8);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
        transform: scale(1);
    }
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* 푸터 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #f39c12;
}

.footer-info p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-contact i {
    color: #f39c12;
    width: 20px;
}

.footer-menu h4,
.footer-service h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #f39c12;
}

.footer-menu ul,
.footer-service ul {
    list-style: none;
}

.footer-menu li,
.footer-service li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #f39c12;
}

.footer-service li {
    color: rgba(255,255,255,0.8);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
}

.footer-bottom p {
    margin-bottom: 5px;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* 그누보드 기본 스타일 오버라이드 */
.latest_wr {
    margin-bottom: 30px;
}

.latest_wr .tbl_head01 th {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.latest_wr .tbl_wrap {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .inquiry-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-brand h1 {
        font-size: 1.4rem;
    }

    .nav-contact {
        flex-direction: column;
        gap: 10px;
        font-size: 0.8rem;
    }

    .consultation-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .consultation-info h3 {
        font-size: 1.4rem;
    }

    .consultation-btn {
        font-size: 1.1rem;
        padding: 12px 25px;
    }

    .hero {
        padding: 80px 0;
    }

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

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

    .hero-features {
        flex-direction: column;
        gap: 20px;
    }

    .feature-item {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

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

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

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

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

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

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

    .float-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

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

    .btn-primary {
        padding: 15px 30px;
        font-size: 1rem;
    }

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

    .service-card,
    .promise-item {
        padding: 30px 20px;
    }
}