/* 기본 리셋 및 변수 설정 */
:root {
    --primary-color: #2E7D32;  /* 의료 그린 */
    --secondary-color: #00ACC1;  /* 신뢰감 있는 청록색 */
    --accent-color: #FF5252;  /* 응급/긴급 빨간색 */
    --success-color: #4CAF50;
    --text-dark: #212121;
    --text-light: #616161;
    --background-light: #F5F5F5;
    --background-white: #FFFFFF;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

/* 헤더 스타일 */
.header {
    background-color: var(--background-white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
}

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

.sub-logo {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-left: 0.5rem;
}

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

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

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

.emergency-phone a {
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 82, 82, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
    }
}

.emergency-phone a:hover {
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* 히어로 섹션 */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 120px 0 80px;
    color: white;
    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 1200 600"><rect fill="%232E7D32" width="1200" height="600"/><path fill="%2300ACC1" opacity="0.3" d="M0 300L50 325C100 350 200 400 300 375C400 350 500 250 600 225C700 200 800 250 900 275C1000 300 1100 300 1150 300L1200 300V600H1150C1100 600 1000 600 900 600C800 600 700 600 600 600C500 600 400 600 300 600C200 600 100 600 50 600H0V300Z"/></svg>');
    background-size: cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.badge-24h {
    font-size: 1.5rem;
    font-weight: 700;
    background-color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.badge-text {
    font-weight: 500;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.feature-icon {
    font-size: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

/* 긴급 안내 배너 */
.emergency-banner {
    background-color: var(--accent-color);
    color: white;
    padding: 1.5rem 0;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: center;
}

.banner-icon {
    font-size: 2rem;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.5;
    }
}

.banner-phone {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s;
}

.banner-phone:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 섹션 공통 스타일 */
section {
    padding: 4rem 0;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 1rem auto;
}

/* 서비스 섹션 */
.services {
    background-color: var(--background-white);
}

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

.service-card {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-list {
    list-style: none;
    text-align: left;
}

.service-list li {
    padding: 0.5rem 0;
    color: var(--text-dark);
}

/* 약사 소개 섹션 */
.pharmacist {
    background-color: var(--background-light);
}

.pharmacist-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.pharmacist-profile {
    text-align: center;
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.profile-image {
    width: 150px;
    height: 150px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.profile-icon {
    font-size: 4rem;
}

.pharmacist-profile h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.profile-title {
    color: var(--text-light);
    font-size: 1rem;
}

.pharmacist-info {
    display: grid;
    gap: 2rem;
}

.info-section {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.info-section h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

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

.info-section li {
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.pharmacist-message {
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    grid-column: 1 / -1;
}

.pharmacist-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
}

/* 건강정보 섹션 */
.health-info {
    background-color: var(--background-white);
}

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

.health-card {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
}

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

.health-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

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

.health-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 자주 찾는 약품 섹션 */
.popular-medicine {
    background-color: var(--background-light);
}

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

.category-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.category-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.category-card ul {
    list-style: none;
}

.category-card li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    border-bottom: 1px solid #eee;
}

.category-card li:last-child {
    border-bottom: none;
}

.medicine-note {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* 연락처/위치 섹션 */
.contact {
    background-color: var(--background-white);
}

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

.contact-info {
    display: grid;
    gap: 2rem;
}

.info-card {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

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

.phone-main {
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.phone-desc {
    color: var(--text-light);
}

.hours-display {
    margin: 1rem 0;
}

.hours-24 {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.hours-badge {
    background-color: var(--success-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.2rem;
}

.hours-text {
    font-size: 1.1rem;
    font-weight: 500;
}

.hours-note {
    color: var(--text-light);
    font-size: 0.9rem;
}

.address {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.landmark {
    color: var(--secondary-color);
    font-size: 1rem;
}

.location-features {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 15px;
}

.location-features h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.location-features ul {
    list-style: none;
    margin-bottom: 2rem;
}

.location-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.map-placeholder {
    background-color: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    border: 2px dashed var(--primary-color);
}

.map-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.map-placeholder p {
    color: var(--text-light);
}

/* 푸터 */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0;
}

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

.footer-info h3,
.footer-contact h3 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-message {
    text-align: center;
    grid-column: 1 / -1;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-message p {
    margin-bottom: 0.5rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .emergency-phone {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pharmacist-content {
        grid-template-columns: 1fr;
    }
    
    .banner-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-grid,
    .health-grid,
    .medicine-categories {
        grid-template-columns: 1fr;
    }
    
    .phone-main {
        font-size: 1.5rem;
    }
}