:root {
    --primary: #0056b3;
    --primary-light: #3385ff;
    --secondary: #212529;
    --accent: #00d2ff;
    --success: #28a745;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.container.narrow {
    max-width: 800px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.section-title.central {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title span {
    color: var(--primary);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--secondary);
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #f0f0f0;
}

.btn-phone {
    background: var(--secondary);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

#header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 0.8rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem; /* 훨씬 더 크게 조정 */
    font-weight: 800;
    letter-spacing: -1px;
    color: white; 
    text-shadow: 0 2px 15px rgba(0,0,0,0.5); /* 글자가 튀어나와 보이게 그림자 추가 */
}

#header.scrolled .logo {
    color: var(--secondary);
    text-shadow: none;
}

.logo span {
    color: var(--accent); /* 119를 더 밝고 눈에 띄는 색으로 */
    font-weight: 900;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary);
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 5s ease;
}

.hero:hover .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
}

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

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 5px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--accent);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Stats */
.stats {
    padding: 4rem 0;
    background: var(--secondary);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-item sub {
    font-size: 1rem;
    bottom: 0;
}

/* About Section */
.about {
    padding: 100px 0;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 900;
}

.glass-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
}

.doc-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.doc-item .icon {
    font-size: 2rem;
    background: #f0f7ff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.doc-item h4 {
    margin-bottom: 0.25rem;
}

.doc-item p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.note {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Process Section */
.process {
    padding: 100px 0;
}

.gray-bg {
    background-color: var(--bg-light);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.step-item {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    flex: 1;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.step-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.step-num {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    background: #edf5ff;
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
}

.step-item h4 {
    margin-bottom: 1rem;
}

.step-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.step-arrow {
    font-size: 2rem;
    color: #ddd;
    font-weight: 300;
}

/* Quote Form */
.quote-form {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.form-header {
    margin-bottom: 3rem;
}

.central {
    text-align: center;
}

.glass-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
}

.form-checkbox {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Footer */
#footer {
    background: var(--secondary);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 50px;
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.footer-info h3 span {
    color: var(--accent);
}

.footer-info p {
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.contact-details p {
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 1;
}

.footer-links h4,
.footer-business h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--accent);
}

.footer-business p {
    font-size: 0.875rem;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

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

/* Modal Styles */
.link-privacy {
    color: var(--primary);
    text-decoration: underline;
    font-size: 0.8rem;
    margin-left: 5px;
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--secondary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-muted);
}

.modal-body {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.7;
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.privacy-table th, .privacy-table td {
    padding: 12px;
    border: 1px solid #eee;
    text-align: left;
}

.privacy-table th {
    background: #f8f9fa;
    width: 30%;
    font-weight: 600;
}

.privacy-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.modal-footer {
    margin-top: 2rem;
    text-align: right;
}

.modal-ok {
    min-width: 100px;
}

/* Animations */
.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

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

/* Responsive */
@media (max-width: 992px) {
    .container { padding: 0 1.5rem; }
    .hero h1 { font-size: 3rem; }
    .process-steps { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); margin: 0.5rem 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-info { grid-column: span 2; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .header-cta { display: block; } /* 전화 버튼 노출 */
    .btn-phone { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
    .mobile-menu-btn { display: block; background: none; border: none; }
    .hero h1 { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr; }
    .modal-content { padding: 1.5rem; }
}
