:root {
    --primary: hsl(220, 100%, 25%);
    --primary-light: hsl(220, 100%, 35%);
    --accent: hsl(45, 100%, 50%);
    --accent-glow: hsla(45, 100%, 50%, 0.3);
    --text-dark: #0f172a;
    --text-gray: #475569;
    --text-light: #ffffff;
    --bg-light: #f1f5f9;
    --font: 'Noto Sans KR', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
    letter-spacing: -0.02em;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

.hero-text-layer > * {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-text-layer .status-badge { animation-delay: 0.2s; }
.hero-text-layer h1 { animation-delay: 0.4s; }
.hero-text-layer .hero-info { animation-delay: 0.6s; }
.hero-text-layer .hero-metrics { animation-delay: 0.8s; }
.hero-text-layer .hero-btns { animation-delay: 1s; }

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

/* Header */
.header {
    background: #ffffff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 26px; font-weight: 900; letter-spacing: -0.05em; flex-shrink: 0; }
.logo span { color: var(--primary); }
.header-call-btn { flex-shrink: 1; min-width: 0; }
.cta-btn { 
    background: var(--primary); 
    color: white; 
    padding: 14px 28px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 800; 
    font-size: 15px; 
    white-space: nowrap; 
    transition: var(--transition); 
    display: inline-block;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.cta-btn:hover { 
    background: var(--primary-light); 
    transform: translateY(-2px); 
    box-shadow: 0 10px 15px -3px rgba(0, 51, 153, 0.3); 
}
.cta-btn span { font-weight: 700; opacity: 0.9; }

/* Hero Section */
.hero-master {
    position: relative;
    height: 80vh;
    min-height: 700px;
    background: #000;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-overlay-solid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 51, 153, 0.8) 0%, rgba(0, 51, 153, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.hero-text-layer {
    position: relative;
    z-index: 5;
    max-width: 700px;
    color: white;
}

.status-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 24px;
}

h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 900; line-height: 1.15; margin-bottom: 24px; letter-spacing: -0.04em; }
.highlight { color: var(--accent); }

.hero-info { font-size: 20px; opacity: 0.95; margin-bottom: 48px; }

.hero-metrics { display: flex; gap: 40px; margin-bottom: 48px; }
.metric strong { display: block; font-size: 34px; font-weight: 900; color: var(--accent); }
.metric span { font-size: 14px; opacity: 0.8; font-weight: 600; }

.hero-btns { display: flex; gap: 20px; }
.btn-tel { padding: 22px 40px; background: var(--accent); color: var(--primary); text-decoration: none; font-weight: 900; font-size: 19px; border-radius: 12px; }
.btn-form { padding: 22px 40px; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); color: white; text-decoration: none; font-weight: 800; font-size: 19px; border-radius: 12px; }

/* Services */
.services-v2 { padding: 120px 0; background: var(--bg-light); }
.title-v2 { text-align: center; margin-bottom: 80px; }
.title-v2 h2 { font-size: 40px; font-weight: 900; letter-spacing: -0.04em; }

.service-v2-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.v2-card { 
    background: #ffffff; 
    border-radius: 24px; 
    overflow: hidden; 
    border: 1px solid rgba(0,0,0,0.05); 
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.v2-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.v2-card-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.v2-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.v2-card:hover .v2-card-img img { transform: scale(1.05); }
.v2-card-body { padding: 40px; }
.v2-card-body h3 { font-size: 26px; font-weight: 800; margin-bottom: 12px; color: var(--primary); }

/* Gallery Section */
.gallery-section { padding: 120px 0; background: #ffffff; }
.sub-title { display: block; color: var(--primary); font-weight: 900; font-size: 14px; margin-bottom: 12px; opacity: 0.7; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.gallery-item { width: 100%; }
.gallery-box { 
    display: flex; 
    gap: 10px; 
    background: #f8fafc; 
    padding: 15px; 
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
}
.img-wrapper { 
    position: relative; 
    flex: 1; 
    aspect-ratio: 1; 
    border-radius: 12px; 
    overflow: hidden; 
}
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.tag { 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    padding: 4px 10px; 
    font-size: 10px; 
    font-weight: 900; 
    color: white; 
    border-radius: 4px;
    backdrop-filter: blur(4px);
}
.before .tag { background: rgba(220, 38, 38, 0.8); }
.after .tag { background: rgba(22, 163, 74, 0.8); }

.gallery-desc {
    margin-top: 15px;
    text-align: center;
    padding: 0 5px;
}

.gallery-desc h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.04em;
    margin-bottom: 4px;
}

.gallery-desc p {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
    opacity: 0.8;
}


/* FAQ Section */
.faq-section { padding: 80px 0; background: #ffffff; border-top: 1px solid #eee; }
.faq-grid { max-width: 900px; margin: 0 auto; }
.faq-item { margin-bottom: 30px; border-bottom: 1px solid #f0f0f0; padding-bottom: 20px; }
.faq-item h4 { font-size: 20px; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.faq-item p { font-size: 16px; color: var(--text-gray); }

/* Consultation */
.consult-v2 { padding: 100px 0; background: var(--primary); color: white; }
.consult-v2-inner { display: flex; gap: 80px; align-items: center; }
.consult-v2-text { flex: 1; }
.consult-v2-text h2 { font-size: 48px; font-weight: 900; margin-bottom: 24px; }
.consult-v2-text p { font-size: 20px; opacity: 0.9; line-height: 1.5; }

.consult-v2-form-box { flex: 1.2; background: #ffffff; padding: 50px; border-radius: 32px; }
.form-row { display: flex; gap: 15px; margin-bottom: 15px; }
.consult-v2-form-box input, .consult-v2-form-box textarea { width: 100%; padding: 18px; border: 1px solid #e0e0e0; border-radius: 12px; font-size: 16px; background: #fafafa; color: #000; }
.consult-v2-form-box textarea { height: 120px; margin-bottom: 20px; }
.v2-submit-btn { width: 100%; padding: 22px; background: var(--primary); color: white; border: none; border-radius: 12px; font-weight: 900; font-size: 20px; cursor: pointer; transition: background 0.3s; }

/* Footer */
.footer-v2 { padding: 80px 0; border-top: 1px solid #eee; }
.footer-v2-top { display: flex; justify-content: space-between; align-items: center; }
.v2-f-logo { font-size: 24px; font-weight: 900; }
.v2-f-contact { font-size: 15px; color: var(--text-gray); }
.v2-f-copy { text-align: center; margin-top: 40px; font-size: 13px; color: #999; }

/* Mobile and Tablet Layouts */
@media (max-width: 992px) {
    .hero-master { height: auto; padding: 120px 0 80px; }
    .hero-bg-layer img { object-position: 70% top; }
    .hero-overlay-solid { background: linear-gradient(0deg, rgba(0, 51, 153, 0.9) 0%, rgba(0, 51, 153, 0.7) 100%); }
    .hero-text-layer { text-align: center; margin: 0 auto; padding: 0 10px; }
    .hero-metrics { justify-content: center; flex-wrap: wrap; gap: 20px; }
    .hero-btns { flex-direction: column; align-items: center; }
    .btn-tel, .btn-form { width: 100%; max-width: 400px; text-align: center; }
    .service-v2-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; gap: 24px; }
    .consult-v2-inner { flex-direction: column; text-align: center; }
    .form-row { flex-direction: column; gap: 15px; }
    .title-v2 h2 { font-size: 32px; }
    .consult-v2-text h2 { font-size: 36px; }
}

@media (max-width: 768px) {
    .header { padding: 15px 0; }
    .logo { font-size: 22px; }
    .cta-btn { padding: 10px 18px; font-size: 13px; }
    h1 { font-size: 36px; line-height: 1.2; }
    .hero-info { font-size: 18px; margin-bottom: 30px; }
    .metric strong { font-size: 28px; }
    .v2-card-body { padding: 25px; }
    .consult-v2-form-box { padding: 30px 20px; }
}

@media (max-width: 480px) {
    .logo { font-size: 18px; }
    .cta-btn { padding: 8px 14px; font-size: 12px; }
    .cta-btn span { display: none; } 
    h1 { font-size: 28px; letter-spacing: -0.02em; }
    .hero-info { font-size: 16px; margin-bottom: 24px; }
    .status-badge { font-size: 12px; padding: 4px 12px; margin-bottom: 15px; }
    .v2-submit-btn { font-size: 18px; padding: 18px; }
    .hero-metrics { gap: 10px; }
    .metric strong { font-size: 24px; }
    .metric span { font-size: 12px; }
}

/* Fixed Bar */
.v2-fixed-bar { display: none; position: fixed; bottom: 0; width: 100%; background: var(--primary); padding: 20px; z-index: 1001; text-align: center; }
.v2-fixed-bar a { color: white; text-decoration: none; display: flex; flex-direction: column; }
.v2-fixed-bar strong { font-size: 24px; font-weight: 900; }
@media (max-width: 768px) { .v2-fixed-bar { display: block; } body { padding-bottom: 90px; } }
