/* ============================================
   향촌흑염소 - Main Stylesheet
   Design Concept: Modern Vitality & Transparent Trust
   Color: White & Wood base + Deep Green accent
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #1B5E20;
  --color-primary-dark: #0D3B13;
  --color-primary-light: #2E7D32;
  --color-accent: #C8A96E;
  --color-accent-light: #D4BC8B;
  --color-wood: #8D6E4C;
  --color-wood-light: #F5EDE0;
  --color-bg: #FFFFFF;
  --color-bg-warm: #FAFAF5;
  --color-bg-dark: #1A1A1A;
  --color-bg-section: #F7F4EF;
  --color-text: #2D2D2D;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-text-white: #FFFFFF;
  --color-border: #E8E3DA;
  --color-red: #C62828;
  --font-heading: 'Noto Serif KR', serif;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  word-break: keep-all;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol { list-style: none; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 6px 16px;
  background: rgba(27, 94, 32, 0.08);
  border-radius: 20px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-text);
  margin-bottom: 16px;
  word-break: keep-all;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-text-light);
  max-width: 640px;
  line-height: 1.8;
}

.section-subtitle.center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
}
.btn-white:hover {
  background: var(--color-bg-warm);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--color-wood);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 44px;
  font-size: 1.125rem;
  border-radius: var(--radius-md);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.header-logo img {
  height: 40px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.header-nav a:hover::after,
.header-nav a.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

.header-phone svg {
  width: 20px;
  height: 20px;
}

.header-cta .btn {
  padding: 10px 24px;
  font-size: 0.875rem;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
  border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 12px 24px;
}

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

.mobile-nav .mobile-phone {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   HERO SECTION (Slider)
   ============================================ */
.hero {
  position: relative;
  height: 68vh;
  min-height: 480px;
  max-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg-dark);
}

/* Hero Slider */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroSlideZoom 8s ease forwards;
}

.hero-slide.active img {
  animation: heroSlideZoom 8s ease forwards;
}

@keyframes heroSlideZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* Slider Dots */
.hero-slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.hero-dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.2);
}

.hero-dot:hover {
  border-color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(27, 94, 32, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  padding-top: var(--header-height);
}

.hero-content--right {
  display: flex;
  justify-content: flex-end;
}

.hero-content--right .hero-text {
  text-align: right;
}

.hero-content--right .hero-buttons {
  justify-content: flex-end;
}

.hero-content--right .hero-badge {
  margin-left: auto;
}

.hero-text {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  color: var(--color-accent-light);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  color: #fff;
  line-height: 1.25;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.4s both;
  word-break: keep-all;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 540px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  animation: fadeInUp 1s ease 1.2s both;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  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; }
}

/* ============================================
   TRUST SECTION (매출 증명)
   ============================================ */
.trust-section {
  background: var(--color-bg-warm);
}

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

.trust-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.trust-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Antigravity Frame Effect */
.antigravity-frame {
  position: relative;
  animation: antigravityFloat 6s ease-in-out infinite;
}

.antigravity-frame::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--radius-lg) + 6px);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent), var(--color-primary-light), var(--color-accent-light));
  background-size: 300% 300%;
  animation: antigravityBorder 4s ease infinite;
  z-index: -1;
}

.antigravity-frame::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: calc(var(--radius-lg) + 16px);
  background: linear-gradient(135deg, rgba(27,94,32,0.25), rgba(200,169,110,0.2), rgba(46,125,50,0.15));
  background-size: 300% 300%;
  animation: antigravityBorder 6s ease infinite reverse;
  z-index: -2;
  filter: blur(12px);
}

@keyframes antigravityFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes antigravityBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.trust-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* ============================================
   MENU SECTION
   ============================================ */
.menu-section {
  background: var(--color-bg);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.menu-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.menu-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-image img {
  transform: scale(1.05);
}

.menu-card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
}

.menu-card-body {
  padding: 24px;
}

.menu-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.menu-card-desc {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ============================================
   PHILOSOPHY SECTION (브랜드 철학)
   ============================================ */
.philosophy-section {
  background: var(--color-primary-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.philosophy-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,169,110,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}

.philosophy-item {
  text-align: center;
  padding: 32px 20px;
}

.philosophy-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.philosophy-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--color-accent);
}

.philosophy-item h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-accent-light);
}

.philosophy-item p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

/* ============================================
   LOGISTICS SECTION (물류 시스템)
   ============================================ */
.logistics-section {
  background: var(--color-bg-section);
}

.logistics-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.logistics-step {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  transition: transform var(--transition);
}

.logistics-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.logistics-step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: rgba(27, 94, 32, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logistics-step-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--color-primary);
}

.logistics-step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.logistics-step p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.logistics-arrow {
  font-size: 1.5rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.logistics-highlight {
  margin-top: 48px;
  padding: 40px;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  color: #fff;
  text-align: center;
}

.logistics-highlight h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.logistics-highlight p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   MEDIA SECTION (미디어 & 소셜 프루프)
   ============================================ */
.media-section {
  background: var(--color-bg);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.media-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.media-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.media-card:hover .media-card-play {
  background: var(--color-primary);
}

.media-card:hover .media-card-play svg {
  fill: #fff;
}

.media-card-play svg {
  width: 24px;
  height: 24px;
  fill: var(--color-primary);
  margin-left: 3px;
}

.media-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
}

.media-card-source {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* ============================================
   FRANCHISE SECTION (가맹 안내)
   ============================================ */
.franchise-section {
  background: var(--color-bg-section);
}

.franchise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.franchise-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.franchise-card h3 {
  font-size: 1.375rem;
  margin-bottom: 24px;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.franchise-card h3 svg {
  width: 28px;
  height: 28px;
  fill: var(--color-primary);
}

.franchise-table {
  width: 100%;
  border-collapse: collapse;
}

.franchise-table tr {
  border-bottom: 1px solid var(--color-border);
}

.franchise-table tr:last-child {
  border-bottom: none;
}

.franchise-table th,
.franchise-table td {
  padding: 14px 8px;
  text-align: left;
  font-size: 0.9375rem;
}

.franchise-table th {
  font-weight: 600;
  color: var(--color-text);
  width: 40%;
}

.franchise-table td {
  color: var(--color-text-light);
}

.franchise-table .highlight-row td {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.franchise-benefits {
  display: grid;
  gap: 20px;
}

.franchise-benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.franchise-benefit-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(27, 94, 32, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.franchise-benefit-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--color-primary);
}

.franchise-benefit h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.franchise-benefit p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.franchise-cta {
  text-align: center;
  margin-top: 48px;
  padding: 48px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: var(--radius-lg);
  color: #fff;
}

.franchise-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.franchise-cta p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.franchise-cta .btn-white {
  font-size: 1.05rem;
  padding: 16px 40px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent-light);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  fill: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.8);
}

/* ============================================
   FLOATING QUICK MENU
   ============================================ */
.floating-menu {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.floating-btn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.floating-btn.phone-btn {
  background: var(--color-primary);
}

.floating-btn.top-btn {
  background: var(--color-accent);
}

.floating-btn .tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-bg-dark);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.floating-btn:hover .tooltip {
  opacity: 1;
}

/* ============================================
   VIDEO MODAL
   ============================================ */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 1.5rem;
  transition: background var(--transition);
}

.video-modal-close:hover {
  background: rgba(255,255,255,0.3);
}

/* ============================================
   PRIVACY POPUP (개인정보 동의)
   ============================================ */
.privacy-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.privacy-popup-overlay.active {
  display: flex;
}

.privacy-popup {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.privacy-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--color-border);
}

.privacy-popup-header h3 {
  font-size: 1.25rem;
}

.privacy-popup-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--color-text-light);
  transition: background var(--transition);
}

.privacy-popup-close:hover {
  background: var(--color-bg-section);
}

.privacy-popup-body {
  padding: 28px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.privacy-popup-body h4 {
  font-size: 1rem;
  color: var(--color-text);
  margin: 20px 0 8px;
}

.privacy-popup-body h4:first-child {
  margin-top: 0;
}

.privacy-popup-body ul {
  list-style: disc;
  padding-left: 20px;
  margin: 8px 0;
}

.privacy-popup-body ul li {
  margin-bottom: 4px;
}

.privacy-popup-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.privacy-popup-footer label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 500;
}

.privacy-popup-footer input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

/* ============================================
   FRANCHISE INQUIRY PAGE
   ============================================ */
.inquiry-page {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  min-height: 100vh;
  background: var(--color-bg-section);
}

.inquiry-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.inquiry-header {
  text-align: center;
  margin-bottom: 48px;
}

.inquiry-header h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 12px;
}

.inquiry-header p {
  color: var(--color-text-light);
  font-size: 1rem;
}

.inquiry-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-group label .required {
  color: var(--color-red);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.form-control::placeholder {
  color: var(--color-text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.privacy-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  background: var(--color-bg-section);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.privacy-agree input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.privacy-agree-text {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.privacy-agree-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.privacy-agree-link:hover {
  color: var(--color-primary-dark);
}

.form-submit-btn {
  width: 100%;
  padding: 18px;
  font-size: 1.1rem;
}

.form-notice {
  text-align: center;
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Form success/error messages */
.form-message {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.9375rem;
  display: none;
}

.form-message.success {
  background: rgba(27, 94, 32, 0.08);
  color: var(--color-primary);
  border: 1px solid rgba(27, 94, 32, 0.2);
  display: block;
}

.form-message.error {
  background: rgba(198, 40, 40, 0.08);
  color: var(--color-red);
  border: 1px solid rgba(198, 40, 40, 0.2);
  display: block;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }

  .header-cta .btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .franchise-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .section {
    padding: 64px 0;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    height: 60vh;
    min-height: 400px;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-content--right {
    justify-content: center;
  }

  .hero-content--right .hero-text {
    text-align: center;
  }

  .hero-content--right .hero-buttons {
    justify-content: center;
    flex-direction: column;
  }

  .hero-content--right .hero-badge {
    margin-left: 0;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .antigravity-frame {
    animation: none;
  }

  .antigravity-frame::before {
    inset: -4px;
  }

  .antigravity-frame::after {
    inset: -10px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .logistics-flow {
    flex-direction: column;
  }

  .logistics-arrow {
    transform: rotate(90deg);
  }

  .logistics-step {
    max-width: 100%;
    width: 100%;
  }

  .trust-stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .franchise-card {
    padding: 28px 20px;
  }

  .inquiry-form {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .floating-menu {
    right: 12px;
    bottom: 16px;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
  }

  .floating-btn .tooltip {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .privacy-popup {
    max-height: 90vh;
    margin: 16px;
  }

  .privacy-popup-header {
    padding: 20px;
  }

  .privacy-popup-body {
    padding: 20px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .header-logo {
    font-size: 1.125rem;
  }

  .hero {
    height: 55vh;
    min-height: 360px;
  }

  .stat-card {
    padding: 20px 16px;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}

/* Print */
@media print {
  .site-header, .floating-menu, .mobile-toggle, .mobile-nav {
    display: none !important;
  }

  .hero {
    min-height: auto;
    background: none;
    color: var(--color-text);
  }

  .hero-overlay, .hero-bg {
    display: none;
  }

  .section {
    padding: 40px 0;
    break-inside: avoid;
  }
}
