/* CSS Custom Properties */
:root {
    --primary: 220 100% 50%; /* #007bff */
    --primary-dark: 220 100% 40%; /* #0056b3 */
    --secondary: 145 60% 45%; /* #28a745 */
    --danger: 355 70% 54%; /* #dc3545 */
    --warning: 45 100% 51%; /* #ffc107 */
    --info: 195 100% 50%; /* #17a2b8 */
    --purple: 262 52% 47%; /* #6f42c1 */
    --background: 210 11% 98%; /* #f8f9fa */
    --surface: 0 0% 100%; /* #ffffff */
    --text: 210 11% 15%; /* #212529 */
    --text-muted: 210 8% 46%; /* #6c757d */
    --border: 210 14% 83%; /* #dee2e6 */
    --shadow: 210 10% 23% / 0.15; /* rgba(0,0,0,0.15) */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: hsl(var(--text));
    background-color: hsl(var(--surface));
}

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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: white;
}

.btn-primary:hover {
    background-color: hsl(var(--primary-dark));
}

.btn-secondary {
    background-color: hsl(var(--text-muted));
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: hsl(var(--primary));
    border: 2px solid hsl(var(--primary));
}

.btn-outline:hover {
    background-color: hsl(var(--primary));
    color: white;
}

/* Cookie Consent Styles */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--text));
    color: white;
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

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

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsla(var(--text) / 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background-color: hsl(var(--surface));
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-category {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
}

.cookie-category label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    margin-bottom: 8px;
}

.cookie-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Header Styles */
.header {
    background-color: hsl(var(--surface));
    box-shadow: 0 2px 10px hsla(var(--shadow));
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: hsl(var(--text));
    font-weight: 700;
    font-size: 24px;
}

.nav-brand svg {
    color: hsl(var(--primary));
}

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

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

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

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: hsl(var(--text));
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--primary) / 0.1) 100%);
    padding: 100px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: hsl(var(--text));
}

.hero-content p {
    font-size: 1.2rem;
    color: hsl(var(--text-muted));
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    text-align: center;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: hsl(var(--background));
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: hsl(var(--text));
}

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

.service-card {
    background-color: hsl(var(--surface));
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px hsla(var(--shadow));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px hsla(var(--shadow));
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: hsl(var(--text));
}

.service-card p {
    color: hsl(var(--text-muted));
    line-height: 1.6;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: hsl(var(--text));
}

.about-text p {
    font-size: 1.1rem;
    color: hsl(var(--text-muted));
    margin-bottom: 40px;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 20px;
    border: 2px solid hsl(var(--border));
    border-radius: 12px;
}

.stat h3 {
    font-size: 2rem;
    color: hsl(var(--primary));
    margin-bottom: 5px;
}

.stat p {
    color: hsl(var(--text-muted));
    font-weight: 500;
}

/* Reviews Section */
.reviews {
    padding: 100px 0;
    background-color: hsl(var(--background));
}

.reviews h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: hsl(var(--text));
}

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

.review-card {
    background-color: hsl(var(--surface));
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px hsla(var(--shadow));
}

.review-stars {
    color: hsl(var(--warning));
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-card p {
    color: hsl(var(--text-muted));
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.review-author {
    font-weight: 600;
    color: hsl(var(--text));
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-dark)) 100%);
    color: white;
}

.newsletter-content {
    text-align: center;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px hsla(var(--surface) / 0.3);
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: hsl(var(--text));
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background-color: hsl(var(--background));
    border-radius: 12px;
}

.contact-icon {
    color: hsl(var(--primary));
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: hsl(var(--text));
}

.contact-item p {
    color: hsl(var(--text-muted));
}

/* Footer */
.footer {
    background-color: hsl(var(--text));
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid hsla(var(--surface) / 0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .services, .about, .reviews, .contact {
        padding: 60px 0;
    }
    
    .newsletter {
        padding: 50px 0;
    }
    
    .services h2, .about-text h2, .reviews h2, .contact h2, .newsletter h2 {
        font-size: 2rem;
    }
    
    .service-card, .review-card {
        padding: 25px 20px;
    }
    
    .contact-item {
        padding: 20px;
    }
}
