/* ============================================
   익산S한의원 - 프리미엄 디자인
   ============================================ */

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

:root {
    --color-bg: #FAFAF8;
    --color-text: #1A1A1A;
    --color-primary: #A0826D;
    --color-secondary: #F5F3F0;
    --color-white: #FFFFFF;
    --color-naver: #03C75A;
    --color-kakao: #FEE500;
    --font-serif: 'Noto Serif KR', serif;
    --font-sans: 'Noto Sans KR', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(160, 130, 109, 0.1);
}

.nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
    padding: 0 24px;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 0.5px;
}

.nav-logo em {
    font-style: italic;
    font-weight: 300;
}

.nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 32px 24px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-menu li {
    border-bottom: 1px solid rgba(160, 130, 109, 0.08);
}

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-link {
    display: block;
    padding: 18px 8px;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text);
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.nav-link:active {
    color: var(--color-primary);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 1.5px;
    background: var(--color-text);
    transition: var(--transition);
}

/* ============================================
   Quick Contact - Bottom Fixed
   ============================================ */
.quick-contact {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    background: var(--color-white);
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(160, 130, 109, 0.12);
}

.quick-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    gap: 6px;
    text-decoration: none;
    transition: var(--transition);
    border-right: 1px solid rgba(160, 130, 109, 0.08);
}

.quick-btn:last-child {
    border-right: none;
}

.quick-btn:active {
    background: var(--color-secondary);
    transform: scale(0.96);
}

.quick-btn svg {
    width: 24px;
    height: 24px;
}

.quick-btn span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.quick-phone {
    color: var(--color-primary);
}

.quick-naver {
    color: var(--color-naver);
}

.quick-kakao {
    color: #3C1E1E;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #A0826D 0%, #FAFAF8 100%);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(26, 26, 26, 0.15) 0%, 
        rgba(160, 130, 109, 0.25) 50%,
        rgba(250, 250, 248, 0.3) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-bottom: 120px;
    width: 100%;
}

.hero-title {
    font-size: 26px;
    font-weight: 200;
    letter-spacing: 4px;
    color: var(--color-white);
    text-shadow: 0 2px 32px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    padding: 0 32px;
}

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

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 16px;
    opacity: 0.8;
}

.section-title {
    font-size: 32px;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.4;
    letter-spacing: -0.5px;
}

/* ============================================
   About Section
   ============================================ */
.about {
    background: var(--color-white);
    padding-bottom: 100px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 72px;
    max-width: 480px;
    margin: 0 auto;
}

.doctor-info {
    text-align: center;
}

.doctor-name {
    font-size: 26px;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 32px;
    letter-spacing: -0.3px;
}

.doctor-profile p {
    font-size: 15px;
    line-height: 2.2;
    color: #666;
    margin-bottom: 4px;
    font-weight: 300;
}

.clinic-hours {
    text-align: center;
}

.hours-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 32px;
    letter-spacing: -0.3px;
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    background: var(--color-secondary);
    border-radius: 16px;
    transition: var(--transition);
}

.hours-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.2px;
}

.hours-time {
    font-size: 15px;
    color: #888;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* ============================================
   Accident Section
   ============================================ */
.accident {
    background: var(--color-secondary);
    padding-bottom: 100px;
}

.accident-description {
    font-size: 15px;
    line-height: 2;
    text-align: center;
    color: #666;
    margin-bottom: 56px;
    padding: 0 16px;
    font-weight: 300;
}

.treatment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 80px;
}

.treatment-item {
    padding: 32px 28px;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.treatment-item:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.treatment-item h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 14px;
    letter-spacing: -0.2px;
}

.treatment-item p {
    font-size: 14px;
    line-height: 1.9;
    color: #888;
    font-weight: 300;
}

/* ============================================
   Space Gallery
   ============================================ */
.space-gallery {
    margin-top: 80px;
}

.gallery-title {
    font-size: 28px;
    font-weight: 400;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.space-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.space-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.space-item:active {
    transform: scale(0.98);
}

.space-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.space-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: var(--color-white);
    padding: 24px 16px 16px;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.5px;
}

/* ============================================
   Diet Section
   ============================================ */
.diet {
    background: var(--color-white);
    padding-bottom: 100px;
}

.diet-description {
    font-size: 15px;
    line-height: 2;
    text-align: center;
    color: #666;
    margin-bottom: 56px;
    padding: 0 16px;
    font-weight: 300;
}

/* ============================================
   Diet Gallery
   ============================================ */
.diet-gallery {
    margin-top: 80px;
}

.diet-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.diet-image-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.diet-image-item:active {
    transform: scale(0.97);
}

.diet-image-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background: var(--color-secondary);
    padding-bottom: 120px;
}

.contact-info-centered {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-item {
    text-align: center;
}

.info-title {
    font-size: 17px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.info-text {
    font-size: 15px;
    line-height: 2;
    color: #666;
    font-weight: 300;
}

.contact-cta {
    margin-top: 48px;
    text-align: center;
}

.cta-text {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 28px;
    color: var(--color-text);
    letter-spacing: 0.2px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: block;
    width: 100%;
    padding: 18px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.3px;
}

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

.btn-primary:active {
    background: #8A6D5A;
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:active {
    background: var(--color-secondary);
    transform: scale(0.98);
}

.btn-kakao {
    background: var(--color-kakao);
    color: #3C1E1E;
    box-shadow: var(--shadow-sm);
}

.btn-kakao:active {
    background: #F5DC00;
    transform: scale(0.98);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-text);
    color: var(--color-white);
    text-align: center;
    padding: 56px 24px;
    padding-bottom: 120px;
}

.footer-text {
    font-size: 13px;
    opacity: 0.6;
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Floating CTA (숨김)
   ============================================ */
.floating-cta {
    display: none;
}
