@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  --dark: #1a1a1a;
  --dark-2: #0a0a0a;
  --gold: #c0152b;
  --gold-light: #d9304a;
  --cream: #f8f5f5;
  --white: #ffffff;
  --text: #2d2d2d;
  --text-muted: #6b7280;
  --border: #e8e0e0;
  --nav-height: 120px;
  --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans KR', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }

h1, h2, h3, h4, h5 { font-family: 'Cormorant Garamond', serif; line-height: 1.2; }

.section-label { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: block; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; color: var(--dark); margin-bottom: 1rem; }
.section-title.light { color: var(--white); }
.section-subtitle { font-size: 0.95rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 3rem; }
.section-subtitle.light { color: rgba(255,255,255,0.55); }
.text-center { text-align: center; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); z-index: 1000; transition: var(--transition); }
.nav.scrolled { background: var(--dark-2); box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; width: 100%; display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo { text-decoration: none; display: inline-flex; align-items: center; }
/* 네비게이션(다크 배경)용 로고: 밝기+대비 보정으로 텍스트 선명하게 */
.logo-img { height: 140px; width: auto; display: block; filter: brightness(3) contrast(1.4) saturate(1.8); }

.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.875rem; font-weight: 400; letter-spacing: 0.05em; transition: var(--transition); }
.nav-links a:hover { color: var(--gold); }
.nav-links .btn-nav { background: var(--gold); color: var(--dark); padding: 0.5rem 1.25rem; border-radius: 2px; font-weight: 500; }
.nav-links .btn-nav:hover { background: var(--gold-light); color: var(--dark); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; background: none; border: none; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--white); transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--dark-2); padding: 1.5rem 2rem; z-index: 999; flex-direction: column; gap: 0; border-top: 1px solid rgba(255,255,255,0.1); }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); transition: var(--transition); }
.mobile-menu a:hover { color: var(--gold); padding-left: 0.5rem; }

/* HERO */
.hero { height: 100vh; min-height: 600px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-image: url('../images/hero.jpg'); background-size: cover; background-position: center; background-attachment: fixed; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(8,0,0,0.87) 0%, rgba(20,5,5,0.62) 50%, rgba(8,0,0,0.84) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; color: var(--white); padding: 2rem; max-width: 800px; }
.hero-badge { display: inline-block; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(192,21,43,0.5); padding: 0.35rem 1.25rem; margin-bottom: 1.75rem; }
.hero-title { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 300; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-title strong { font-weight: 600; color: var(--gold); }
.hero-desc { font-size: clamp(1rem, 2vw, 1.15rem); color: rgba(255,255,255,0.75); margin-bottom: 2.5rem; font-weight: 300; letter-spacing: 0.02em; line-height: 1.8; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.5); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, transparent, var(--gold)); animation: scrollLine 2s ease infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* BUTTONS */
.btn { display: inline-block; padding: 0.9rem 2.5rem; font-size: 0.85rem; letter-spacing: 0.12em; text-decoration: none; text-transform: uppercase; font-weight: 500; transition: var(--transition); cursor: pointer; border: none; font-family: 'Noto Sans KR', sans-serif; }
.btn-primary { background: var(--gold); color: var(--dark); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,169,110,0.35); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.45); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-2); transform: translateY(-2px); }

/* SECTIONS */
section { padding: 6rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }

/* ABOUT */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-label { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: block; }
.about-title { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 600; color: var(--dark); margin-bottom: 1.5rem; }
.about-desc { color: var(--text-muted); line-height: 1.9; margin-bottom: 1.5rem; font-size: 0.95rem; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border); }
.stat-item { text-align: center; padding: 2rem 1rem; border-right: 1px solid var(--border); position: relative; }
.stat-item:last-child { border-right: none; }
.stat-item::before { content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: 30px; height: 2px; background: var(--gold); }
.stat-number { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 600; color: var(--dark); display: block; line-height: 1; }
.stat-suffix { font-size: 1.2rem; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.05em; margin-top: 0.5rem; display: block; }

/* SERVICES */
.services { background: var(--cream); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card { background: var(--white); padding: 2.5rem 2rem; transition: var(--transition); position: relative; overflow: hidden; cursor: default; }
.service-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: var(--gold); transition: width 0.4s ease; }
.service-card:hover::after { width: 100%; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(28,43,58,0.1); }
.service-icon { width: 56px; height: 56px; background: var(--cream); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; transition: var(--transition); }
.service-card:hover .service-icon { background: var(--gold); }
.service-icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.5; transition: var(--transition); }
.service-card:hover .service-icon svg { stroke: var(--white); }
.service-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: var(--dark); margin-bottom: 0.75rem; }
.service-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; }

/* PROCESS */
.process { background: var(--dark); color: var(--white); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin-top: 2rem; }
.process-line { position: absolute; top: 32px; left: 12.5%; right: 12.5%; height: 1px; background: linear-gradient(to right, transparent, rgba(201,169,110,0.4), rgba(201,169,110,0.4), transparent); }
.process-item { text-align: center; padding: 0 1.5rem 2rem; }
.process-number { width: 64px; height: 64px; border: 1px solid rgba(201,169,110,0.6); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--gold); background: var(--dark); position: relative; z-index: 1; }
.process-title { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; color: var(--white); margin-bottom: 0.75rem; }
.process-desc { font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.8; }

/* GALLERY PREVIEW */
.gallery-preview { background: var(--white); }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 280px 280px; gap: 1rem; margin-bottom: 3rem; }
.gallery-item { position: relative; overflow: hidden; background: var(--cream); cursor: pointer; }
.gallery-item:first-child { grid-row: 1 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay { position: absolute; inset: 0; background: rgba(28,43,58,0.5); opacity: 0; transition: var(--transition); display: flex; align-items: center; justify-content: center; color: var(--white); font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; letter-spacing: 0.1em; }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; background: linear-gradient(135deg, #ede9e3, #d8d3cc); color: var(--text-muted); }
.gallery-placeholder svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1; opacity: 0.4; }
.gallery-placeholder span { font-size: 0.75rem; letter-spacing: 0.1em; opacity: 0.6; }

/* CONTACT */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-info-item { display: flex; gap: 1.25rem; margin-bottom: 2rem; align-items: flex-start; }
.contact-icon { width: 44px; height: 44px; background: var(--dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.contact-info-label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.25rem; display: block; }
.contact-info-value { color: var(--dark); font-size: 0.95rem; line-height: 1.7; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select { padding: 0.9rem 1rem; border: 1px solid var(--border); background: var(--white); font-family: 'Noto Sans KR', sans-serif; font-size: 0.9rem; color: var(--text); transition: var(--transition); outline: none; resize: vertical; -webkit-appearance: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold); }

/* FOOTER */
.footer { background: var(--dark-2); color: rgba(255,255,255,0.6); padding: 4rem 2rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 2rem; }
.footer-brand .logo { margin-bottom: 1.25rem; display: inline-block; }
.footer-brand .logo-img { height: 160px; filter: brightness(3) contrast(1.4) saturate(1.8); }
.footer-brand p { font-size: 0.875rem; line-height: 1.9; color: rgba(255,255,255,0.45); }
.footer-title { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; display: block; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.875rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact p { font-size: 0.875rem; line-height: 1.9; color: rgba(255,255,255,0.45); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 0.5rem; }

/* PAGE HERO */
.page-hero { height: 40vh; min-height: 280px; background: var(--dark); display: flex; align-items: center; justify-content: center; padding-top: var(--nav-height); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(192,21,43,0.1) 0%, transparent 60%); }
.page-hero-content { position: relative; z-index: 2; text-align: center; color: var(--white); }
.page-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; margin-bottom: 1rem; }
.breadcrumb { font-size: 0.8rem; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; }
.breadcrumb span { color: var(--gold); }

/* MAP */
.contact-map { margin-top: 3rem; border: 1px solid var(--border); overflow: hidden; }
.contact-map iframe { display: block; width: 100%; height: 380px; filter: grayscale(20%); }

/* GALLERY PAGE */
.gallery-section { padding: 5rem 2rem; background: var(--white); }
.gallery-filter { display: flex; gap: 0.75rem; justify-content: center; margin-bottom: 3rem; flex-wrap: wrap; }
.filter-btn { padding: 0.5rem 1.5rem; border: 1px solid var(--border); background: transparent; cursor: pointer; font-size: 0.82rem; font-family: 'Noto Sans KR', sans-serif; color: var(--text-muted); transition: var(--transition); letter-spacing: 0.05em; }
.filter-btn.active, .filter-btn:hover { background: var(--dark); color: var(--gold); border-color: var(--dark); }
.gallery-masonry { columns: 3; column-gap: 1rem; max-width: 1200px; margin: 0 auto; }
.gallery-masonry-item { break-inside: avoid; margin-bottom: 1rem; position: relative; overflow: hidden; cursor: pointer; }
.gallery-masonry-item img { width: 100%; display: block; transition: transform 0.4s ease; }
.gallery-masonry-item:hover img { transform: scale(1.03); }
.gallery-masonry-overlay { position: absolute; inset: 0; background: rgba(28,43,58,0.6); opacity: 0; transition: var(--transition); display: flex; align-items: flex-end; padding: 1.25rem; }
.gallery-masonry-item:hover .gallery-masonry-overlay { opacity: 1; }
.gallery-masonry-caption { color: var(--white); font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; }
.gallery-empty { text-align: center; padding: 5rem 2rem; color: var(--text-muted); }
.gallery-empty svg { width: 48px; height: 48px; stroke: currentColor; fill: none; stroke-width: 1; opacity: 0.3; margin: 0 auto 1rem; display: block; }
.gallery-empty p { font-size: 0.9rem; }
.gallery-load-more { text-align: center; margin-top: 3rem; }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 10000; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-img-wrap { max-width: 90vw; max-height: 90vh; }
.lightbox-img-wrap img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 1.5rem; right: 2rem; color: rgba(255,255,255,0.7); font-size: 2.5rem; cursor: pointer; background: none; border: none; line-height: 1; transition: var(--transition); }
.lightbox-close:hover { color: var(--gold); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.08); border: none; color: var(--white); font-size: 1.5rem; padding: 1rem; cursor: pointer; transition: var(--transition); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(201,169,110,0.3); }

/* ADMIN */
.admin-body { background: #f0f2f5; font-family: 'Noto Sans KR', sans-serif; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--dark); flex-shrink: 0; display: flex; flex-direction: column; }
.admin-sidebar-header { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-nav { padding: 1rem 0; flex: 1; }
.admin-nav-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.5rem; color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.875rem; transition: var(--transition); border-left: 3px solid transparent; }
.admin-nav-item:hover, .admin-nav-item.active { background: rgba(201,169,110,0.08); color: var(--gold); border-left-color: var(--gold); }
.admin-nav-item svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; flex-shrink: 0; }
.admin-main { flex: 1; padding: 2rem; overflow-y: auto; }
.admin-header { background: var(--white); padding: 1rem 1.5rem; margin-bottom: 2rem; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.admin-page-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--dark); font-weight: 600; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.admin-stat-card { background: var(--white); padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); border-left: 4px solid var(--gold); }
.admin-stat-value { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; color: var(--dark); line-height: 1; display: block; }
.admin-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; display: block; }
.admin-card { background: var(--white); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.admin-card-title { font-size: 0.95rem; font-weight: 500; color: var(--dark); margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.upload-zone { border: 2px dashed var(--border); padding: 3rem 2rem; text-align: center; cursor: pointer; transition: var(--transition); border-radius: 4px; }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--gold); background: rgba(201,169,110,0.04); }
.upload-zone svg { width: 40px; height: 40px; stroke: var(--text-muted); fill: none; stroke-width: 1; margin: 0 auto 1rem; display: block; opacity: 0.5; }
.upload-zone p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.upload-zone small { font-size: 0.78rem; color: var(--border); }
.admin-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.admin-gallery-item { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--cream); border-radius: 2px; }
.admin-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.admin-gallery-actions { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); opacity: 0; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.admin-gallery-item:hover .admin-gallery-actions { opacity: 1; }
.admin-btn { padding: 0.35rem 0.75rem; border: none; cursor: pointer; font-size: 0.75rem; font-family: 'Noto Sans KR', sans-serif; border-radius: 2px; }
.admin-btn-delete { background: rgba(220,38,38,0.9); color: white; }
.admin-btn-edit { background: rgba(255,255,255,0.9); color: var(--dark); }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.admin-form-group label { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.05em; }
.admin-form-group input, .admin-form-group select, .admin-form-group textarea { padding: 0.7rem 0.9rem; border: 1px solid var(--border); font-family: 'Noto Sans KR', sans-serif; font-size: 0.875rem; outline: none; }
.admin-form-group input:focus, .admin-form-group select:focus { border-color: var(--gold); }
.admin-upload-preview { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; margin-top: 1rem; }
.preview-item { aspect-ratio: 1; background: var(--cream); overflow: hidden; position: relative; }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }

/* LOGIN */
.login-page { min-height: 100vh; background: var(--dark); display: flex; align-items: center; justify-content: center; font-family: 'Noto Sans KR', sans-serif; }
.login-box { background: var(--white); padding: 3rem; width: 100%; max-width: 400px; }
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--text-muted); text-align: center; margin-bottom: 2rem; font-weight: 400; letter-spacing: 0.1em; }
.login-error { background: rgba(220,38,38,0.08); color: #dc2626; padding: 0.75rem 1rem; font-size: 0.85rem; margin-bottom: 1rem; display: none; }
.login-error.show { display: block; }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(25px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in:nth-child(6) { transition-delay: 0.5s; }

/* TOAST */
.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--dark); color: var(--white); padding: 1rem 1.5rem; font-size: 0.875rem; z-index: 9999; transform: translateY(100px); opacity: 0; transition: var(--transition); border-left: 3px solid var(--gold); }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }

/* RESPONSIVE */
/* ===== REPRESENTATIVE SECTION ===== */
.rep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }

/* 모바일에서 br 숨기기 */
@media (max-width: 768px) { .br-desktop { display: none; } }
@media (min-width: 769px) { .br-desktop { display: inline; } }

/* ===== TABLET (max 1024px) ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .gallery-masonry { columns: 2; }
  .admin-gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .rep-grid { gap: 3rem; }
}

/* ===== MOBILE (max 768px) ===== */
@media (max-width: 768px) {
  /* Nav */
  :root { --nav-height: 70px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .logo-img { height: 58px; }

  /* Hero */
  .hero-bg { background-attachment: scroll; } /* iOS fixed bg 버그 방지 */
  .hero-content { padding: 1.25rem; }
  .hero-badge { font-size: 0.65rem; letter-spacing: 0.15em; padding: 0.3rem 0.9rem; margin-bottom: 1.25rem; }
  .hero-title { font-size: clamp(2rem, 9vw, 3.2rem); margin-bottom: 1rem; }
  .hero-desc { font-size: 0.9rem; margin-bottom: 2rem; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 0.75rem; }
  .hero-buttons .btn { width: 100%; max-width: 280px; text-align: center; }

  /* Sections */
  section { padding: 3.5rem 1.25rem; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .about-title { font-size: clamp(1.75rem, 6vw, 2.4rem); }

  /* Representative */
  .rep-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .rep-grid > div:first-child { max-width: 360px; margin: 0 auto; width: 100%; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 2rem 1.5rem; }

  /* Process */
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-line { display: none; }
  .process-item { padding: 0 1rem 2rem; }

  /* Gallery preview */
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 220px 220px 220px; }
  .gallery-grid .gallery-item:first-child { grid-row: auto; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-map iframe { height: 280px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand .logo-img { height: 80px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }

  /* Gallery page */
  .gallery-masonry { columns: 2; }
  .gallery-filter { gap: 0.5rem; }
  .filter-btn { padding: 0.4rem 1rem; font-size: 0.78rem; }

  /* Admin */
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
  .admin-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-form-row { grid-template-columns: 1fr; }
  .admin-main { padding: 1rem; }
}

/* ===== SMALL MOBILE (max 480px) ===== */
@media (max-width: 480px) {
  /* Nav */
  :root { --nav-height: 64px; }
  .logo-img { height: 50px; }

  /* Hero */
  .hero-title { font-size: clamp(1.8rem, 9vw, 2.8rem); }
  .hero-desc { font-size: 0.85rem; line-height: 1.7; }

  /* About */
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .stat-number { font-size: 1.8rem; }

  /* Process */
  .process-grid { grid-template-columns: 1fr; }
  .process-number { width: 52px; height: 52px; font-size: 1.2rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand .logo-img { height: 64px; }

  /* Gallery */
  .gallery-masonry { columns: 1; }
  .gallery-grid { grid-template-rows: 200px 200px 200px; }

  /* Admin */
  .admin-stats { grid-template-columns: 1fr; }

  /* Buttons */
  .btn { padding: 0.8rem 1.75rem; font-size: 0.82rem; }

  /* Section */
  section { padding: 3rem 1rem; }
}
