/* ===================================
   든든재가노인복지센터 스타일시트
   색상 컨셉: 부드러운 블루 + 파스텔 민트 + 따뜻한 옐로우
   =================================== */

/* CSS Variables - 색상 컨셉 */
:root {
    /* 메인 컬러 */
    --primary-blue: #4A90E2;
    --primary-blue-light: #6BA6F2;
    --primary-blue-dark: #3A7BC8;
    
    /* 보조 컬러 */
    --pastel-mint: #A7E3D8;
    --light-purple: #DDE7F6;
    
    /* 포인트 컬러 */
    --warm-yellow: #FFD166;
    --warm-yellow-hover: #FFB84D;
    
    /* 베이스 컬러 */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --gray: #6C757D;
    --dark-gray: #495057;
    --text-dark: #212529;
    
    /* 그라데이션 */
    --bg-gradient: linear-gradient(135deg, #FFFFFF 0%, #F0F6FF 100%);
    --hero-gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-purple) 100%);
    
    /* 폰트 */
    --font-main: 'Noto Sans KR', sans-serif;
    
    /* 그림자 */
    --shadow-soft: 0 4px 20px rgba(74, 144, 226, 0.1);
    --shadow-card: 0 8px 32px rgba(74, 144, 226, 0.15);
    --shadow-button: 0 4px 16px rgba(255, 209, 102, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-gradient);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--warm-yellow);
    color: var(--text-dark);
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    background: var(--warm-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 209, 102, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo h1 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.logo .tagline {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 400;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav a:hover {
    background: var(--pastel-mint);
    color: var(--primary-blue-dark);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: var(--hero-gradient);
    color: var(--white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero Content Right - Simple Design */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.main-service-highlight {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 400px;
}

.service-icon-large {
    margin-bottom: 1rem;
}

.service-icon-large i {
    font-size: 4rem;
    color: var(--warm-yellow);
    animation: gentle-bounce 3s ease-in-out infinite;
}

.service-info h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.service-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.professional-care {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    width: 100%;
    max-width: 400px;
}

.care-icon i {
    font-size: 2.5rem;
    color: var(--warm-yellow);
}

.care-info h4 {
    color: var(--white);
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
}

.care-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Services Section */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card.featured {
    background: linear-gradient(135deg, var(--pastel-mint) 0%, var(--light-purple) 100%);
    border: 2px solid var(--primary-blue);
    transform: scale(1.02);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.25);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.service-card.featured .service-icon {
    background: var(--white);
    color: var(--primary-blue);
}

.service-card h3 {
    color: var(--primary-blue-dark);
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-features span {
    background: var(--light-gray);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.service-card.featured .service-features span {
    background: rgba(255, 255, 255, 0.8);
}

/* Stories Section */
.stories {
    background: var(--light-gray);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.story-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.story-image i {
    font-size: 3rem;
    color: var(--primary-blue);
}

.story-card h3 {
    color: var(--primary-blue-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.story-tag {
    display: inline-block;
    background: var(--pastel-mint);
    color: var(--primary-blue-dark);
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 1rem;
}

.testimonials {
    text-align: center;
    margin-top: 4rem;
}

.testimonials h3 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

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

.testimonial {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--warm-yellow);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial cite {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Guide Section */
.guide {
    background: var(--white);
}

.guide-content {
    display: grid;
    gap: 3rem;
}

.guide-section h3 {
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 15px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--primary-blue-dark);
    margin-bottom: 0.5rem;
}

.cost-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.cost-item {
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cost-item.government-support {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
}

.cost-item.self-payment {
    background: linear-gradient(135deg, var(--warm-yellow) 0%, #FFA500 100%);
    color: var(--text-dark);
}

.cost-item h4 {
    color: inherit;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.support-rate,
.payment-rate {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    display: block;
}

.cost-item span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.cost-description {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    text-align: center;
    border-left: 4px solid var(--primary-blue);
}

.cost-description p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cost-description strong {
    color: var(--primary-blue-dark);
}

.service-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.area {
    background: var(--pastel-mint);
    color: var(--primary-blue-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
}

.center-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.info-item {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-blue);
}

.info-item strong {
    display: block;
    color: var(--primary-blue-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-item p {
    margin-bottom: 0;
    line-height: 1.5;
}

/* Experts Section */
.experts {
    background: var(--light-gray);
}

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

.expert-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-5px);
}

.expert-image {
    margin-bottom: 1.5rem;
}

.expert-image i {
    font-size: 4rem;
    color: var(--primary-blue);
}

.expert-card h3 {
    color: var(--primary-blue-dark);
    margin-bottom: 0.5rem;
}

.expert-title {
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.expert-skills {
    list-style: none;
}

.expert-skills li {
    background: var(--light-purple);
    margin: 0.5rem 0;
    padding: 0.8rem;
    border-radius: 10px;
    color: var(--primary-blue-dark);
}

/* Contact Section */
.contact {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 15px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.contact-details h3 {
    color: var(--primary-blue-dark);
    margin-bottom: 0.5rem;
}

.contact-details p {
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.contact-details p a {
    color: var(--primary-blue);
    font-weight: 600;
}

.contact-details span {
    color: var(--gray);
    font-size: 0.9rem;
}

.contact-form {
    background: var(--light-purple);
    padding: 2rem;
    border-radius: 20px;
}

.contact-form h3 {
    color: var(--primary-blue-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-blue-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    background: var(--white);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--primary-blue-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-info h3 {
    color: var(--warm-yellow);
    margin-bottom: 1rem;
}

.footer-contact {
    margin-top: 1rem;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
}

.footer-contact i {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.footer-services h4 {
    color: var(--warm-yellow);
    margin-bottom: 1rem;
}

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

.footer-services li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* Fixed Call Button */
.fixed-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.fixed-call-btn a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--warm-yellow);
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-button);
    font-weight: 600;
    transition: all 0.3s ease;
}

.fixed-call-btn a:hover {
    background: var(--warm-yellow-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 209, 102, 0.5);
}

.fixed-call-btn i {
    font-size: 1.2rem;
}

/* Animations */
@keyframes gentle-bounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text h2 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .fixed-call-btn {
        bottom: 15px;
        right: 15px;
    }
    
    .fixed-call-btn a {
        padding: 0.8rem 1.2rem;
    }
    
    .fixed-call-btn span {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .services-grid,
    .stories-grid,
    .experts-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

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

/* Focus States */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .fixed-call-btn {
        display: none;
    }
    
    .hero {
        background: var(--white);
        color: var(--text-dark);
    }
    
    * {
        background: var(--white) !important;
        color: var(--text-dark) !important;
        box-shadow: none !important;
    }
}