:root {
    --primary: #1B2430;
    --primary-light: #2C3A4E;
    --accent: #A37B43;
    --accent-hover: #8C6531;
    --bg: #FAF8F5;
    --card-bg: #FFFFFF;
    --text: #2D3142;
    --text-muted: #5C6170;
    --border: #E4DFD5;
}

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

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

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Navigation Header */
header {
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 1.4rem;
    font-weight: 700;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: #E0E0E0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

.burger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
}

/* Custom Grid Background Pattern */
.bg-pattern {
    background-image: radial-gradient(var(--border) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Main Layout Elements */
main {
    min-height: 80vh;
}

section {
    padding: 80px 20px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: var(--accent-hover);
}

.btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(27, 36, 48, 0.9), rgba(27, 36, 48, 0.95)), url('images/hero.jpg') center/cover no-repeat;
    color: white;
    padding: 120px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    color: #D1D5DB;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Statistics Grid */
.stats {
    background-color: var(--primary-light);
    color: white;
    padding: 40px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

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

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-card-body {
    padding: 25px;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: var(--primary);
}

/* Feature Section (Asymmetric layout) */
.feature-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.feature-img {
    flex: 1 1 450px;
}

.feature-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-content {
    flex: 1 1 450px;
}

.feature-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.feature-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.price-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}

.price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(163, 123, 67, 0.15);
    transform: scale(1.03);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent);
    color: white;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: bold;
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
}

/* Lead Capture Form */
.form-section {
    background-color: var(--primary);
    color: white;
}

.form-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background-color: var(--primary-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(0,0,0,0.15);
    color: white;
}

.form-group input:focus, .form-group textarea:focus {
    outline: 2px solid var(--accent);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
}

.checkbox-group input {
    width: auto;
    margin-top: 4px;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #D1D5DB;
}

.checkbox-group a {
    color: var(--accent);
    text-decoration: underline;
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding: 10px 20px 20px;
    max-height: 500px;
}

/* Trust Layer */
.trust-layer {
    background-color: #F1EDE4;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.trust-col h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.trust-col a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: #9CA3AF;
    padding: 40px 20px;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: #9CA3AF;
    text-decoration: none;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1160px;
    margin: 0 auto;
}

.cookie-banner p {
    flex: 1 1 500px;
    font-size: 0.9rem;
}

.cookie-banner a {
    color: var(--accent);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-cookie-accept {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 4px;
}

.btn-cookie-decline {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01s !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }

    .burger {
        display: block;
    }

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

    .trust-container {
        grid-template-columns: 1fr;
    }
}