/* Semapho Sangjo - Main Stylesheet */

/* 1. Design System & Variables */
:root {
  /* Colors - Light Theme & Sunlight (v4.0) */
  /* Primary Colors */
  --color-black: #1a1a1a; /* Main Text */
  --color-white: #ffffff; /* Main Background */

  /* Gray Scale */
  --color-gray-50: #f9f9f9;
  --color-gray-100: #f0f0f0;
  --color-gray-200: #e9ecef; /* Border */
  --color-gray-300: #e0e0e0;
  --color-gray-400: #ddd;
  --color-gray-500: #ccc;
  --color-gray-600: #999;
  --color-gray-700: #777;
  --color-gray-800: #666;
  --color-gray-900: #555;
  --color-dark-gray: #343a40; /* Footer/Dark Sections */
  --color-light-gray: #f8f9fa; /* Section Backgrounds */

  /* Text Colors */
  --color-text: #333333; /* Body Text */
  --color-text-muted: #6c757d; /* Muted Text */
  --color-text-light: #999999;
  --color-text-lighter: #cccccc;

  /* Accent Colors */
  --color-sunlight: #fdb813; /* Warm Sunlight (Primary Accent) */
  --color-sunlight-dark: #b8860b; /* Darker Gold */
  --color-sunlight-light: #ffd700;
  --color-sunlight-glow: rgba(253, 184, 19, 0.3); /* Glow Effect */
  --color-sunlight-bg: rgba(253, 184, 19, 0.05); /* Background tint */
  --color-sunlight-bg-light: rgba(
    253,
    184,
    19,
    0.1
  ); /* Light background tint */
  --color-sunlight-border: rgba(253, 184, 19, 0.2); /* Border tint */
  --color-sunlight-shadow: rgba(253, 184, 19, 0.4); /* Shadow tint */
  --color-sunlight-shadow-light: rgba(
    253,
    184,
    19,
    0.15
  ); /* Light shadow tint */

  /* Semantic Colors */
  --color-error: #e74c3c;
  --color-danger: #ff5252;
  --color-success: #28a745;
  --color-info: #17a2b8;
  --color-warning: #ffc107;

  /* Opacity Values */
  --opacity-overlay-light: rgba(255, 255, 255, 0.95);
  --opacity-overlay-medium: rgba(255, 255, 255, 0.85);
  --opacity-overlay-soft: rgba(255, 255, 255, 0.7);
  --opacity-overlay-very-soft: rgba(255, 255, 255, 0.3);
  --opacity-overlay-white-light: rgba(255, 255, 255, 0.1);
  --opacity-overlay-white-medium: rgba(255, 255, 255, 0.8);
  --opacity-shadow-light: rgba(0, 0, 0, 0.05);
  --opacity-shadow-medium: rgba(0, 0, 0, 0.08);
  --opacity-shadow-strong: rgba(0, 0, 0, 0.1);
  --opacity-shadow-stronger: rgba(0, 0, 0, 0.12);
  --opacity-shadow-strongest: rgba(0, 0, 0, 0.15);
  --opacity-text-shadow: rgba(0, 0, 0, 0.3);
  --opacity-overlay-dark: rgba(0, 0, 0, 0.5);
  --opacity-overlay-darker: rgba(0, 0, 0, 0.8);

  /* Legacy Aliases (for backward compatibility) */
  --color-gray: var(--color-gray-700);
  --color-gold: var(--color-sunlight-dark);
  --color-blue-dark: var(--color-dark-gray);

  /* Gradients */
  --gradient-sunlight: linear-gradient(135deg, #ffd700 0%, #fdb813 100%);
  --gradient-sunlight-hover: linear-gradient(135deg, #fdb813 0%, #ffa500 100%);

  /* Border */
  --color-border: var(--color-gray-200); /* Light Border */
  --color-border-light: var(--color-gray-100);
  --color-border-dark: var(--color-gray-400);

  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px; /* 완전한 원형 */

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.12);
  --shadow-2xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  --shadow-sunlight: 0 4px 15px rgba(253, 184, 19, 0.3);

  /* Typography */
  --font-serif: "Noto Serif KR", serif;
  --font-sans: "Noto Sans KR", sans-serif;

  /* Font Sizes (Modular Scale) */
  --font-size-xs: 12px; /* 0.75rem */
  --font-size-sm: 14px; /* 0.875rem */
  --font-size-base: 16px; /* 1rem */
  --font-size-lg: 18px; /* 1.125rem */
  --font-size-xl: 20px; /* 1.25rem */
  --font-size-2xl: 24px; /* 1.5rem */
  --font-size-3xl: 30px; /* 1.875rem */
  --font-size-4xl: 36px; /* 2.25rem */
  --font-size-5xl: 42px; /* 2.625rem */
  --font-size-6xl: 48px; /* 3rem */

  /* Line Heights */
  --line-height-tight: 1.2; /* 제목용 */
  --line-height-normal: 1.5; /* 본문용 */
  --line-height-relaxed: 1.6; /* 본문 (여유) */
  --line-height-loose: 1.8; /* 인용문용 */

  /* Letter Spacing */
  --letter-spacing-tighter: -0.5px;
  --letter-spacing-tight: -0.25px;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.5px;
  --letter-spacing-wider: 1px;
  --letter-spacing-widest: 2px; /* 대문자용 */

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing Scale (8px base grid) */
  --spacing-xs: 4px; /* 0.5 * 8 */
  --spacing-sm: 8px; /* 1 * 8 */
  --spacing-md: 16px; /* 2 * 8 */
  --spacing-lg: 24px; /* 3 * 8 */
  --spacing-xl: 32px; /* 4 * 8 */
  --spacing-2xl: 40px; /* 5 * 8 */
  --spacing-3xl: 48px; /* 6 * 8 */
  --spacing-4xl: 64px; /* 8 * 8 */
  --spacing-5xl: 80px; /* 10 * 8 */
  --spacing-6xl: 96px; /* 12 * 8 */
  --spacing-7xl: 120px; /* 15 * 8 */

  /* Layout Spacing */
  --container-width: 1200px;
  --header-height: var(--spacing-5xl); /* 80px */
  --section-spacing: var(--spacing-7xl); /* 120px */

  /* Transitions */
  --transition-fast: all 150ms ease;
  --transition-base: all 300ms ease;
  --transition-slow: all 500ms ease;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tab UI Styles */
.tabs-container {
  margin-bottom: var(--spacing-2xl);
}

.tabs-nav {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--spacing-2xl);
  flex-wrap: wrap;
}

.tab-btn {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: var(--transition-base);
  font-family: var(--font-serif);
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: var(--color-sunlight);
  background-color: var(--color-sunlight-bg);
}

.tab-btn.active {
  color: var(--color-sunlight);
  font-weight: 700;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-sunlight);
}

/* PC에서 탭 버튼 개선 */
@media (min-width: 992px) {
  .tab-btn {
    padding: var(--spacing-lg) calc(var(--spacing-xl) + var(--spacing-xs));
    font-size: 19px;
  }

  .tab-btn:hover {
    transform: translateY(-2px);
  }
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sticky product tabs (replaces sub-nav) */
.tabs-nav--sticky {
  position: sticky;
  top: var(--header-height);
  background: var(--color-white);
  z-index: 99;
  padding: var(--spacing-sm) 0;
  box-shadow: 0 2px 10px var(--opacity-shadow-light);
  margin-left: calc(-1 * var(--spacing-xl));
  margin-right: calc(-1 * var(--spacing-xl));
  padding-left: var(--spacing-xl);
  padding-right: var(--spacing-xl);
}

/* Responsive Tabs */
@media (max-width: 768px) {
  /* Scroll hint: fade on right edge */
  .tabs-nav--sticky {
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    padding-right: calc(var(--spacing-xl) + 20px);
  }
  /* Remove mask when scrolled to end (JS adds this class) */
  .tabs-nav--sticky.scrolled-end {
    -webkit-mask-image: linear-gradient(to left, black 85%, transparent 100%);
    mask-image: linear-gradient(to left, black 85%, transparent 100%);
  }
  .tabs-nav--sticky.scrolled-middle {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 85%, transparent 100%);
  }

  .tabs-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    gap: 6px;
    border-bottom: none;
  }
  .tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    text-align: center;
    padding: 8px 14px;
    font-size: 13px;
  }

  .tab-btn.active {
    background: var(--color-sunlight);
    color: var(--color-white);
    border-color: var(--color-sunlight);
  }

  .tab-btn.active::after {
    display: none;
  }

  .tab-btn.active {
    background-color: var(--color-sunlight);
    color: white;
    border-color: var(--color-sunlight);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  background-color: var(--color-white);
  word-break: keep-all;
}

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

a:hover {
  color: var(--color-sunlight-dark);
}

ul,
ol {
  list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  color: var(--color-black);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* 3. Typography Utilities */
.text-serif {
  font-family: var(--font-serif);
}
.text-sans {
  font-family: var(--font-sans);
}
.text-primary {
  color: var(--color-sunlight-dark) !important;
}
.text-gold {
  color: var(--color-sunlight-dark) !important;
}
.bg-primary {
  background: var(--gradient-sunlight) !important;
}
.bg-dark {
  background-color: var(--color-dark-gray) !important;
}
.text-white {
  color: var(--color-white) !important;
}
.text-muted {
  color: var(--color-text-muted) !important;
}

/* 4. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-base);
}

.btn-primary {
  background: var(--gradient-sunlight);
  color: var(--color-black);
  border: none;
  font-weight: var(--font-weight-bold);
  box-shadow: var(--shadow-sunlight);
}

.btn-primary:hover {
  background: var(--gradient-sunlight-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-sunlight-shadow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-sunlight-dark);
  border: 1px solid var(--color-sunlight);
}

.btn-secondary:hover {
  background: var(--gradient-sunlight);
  color: var(--color-black);
  border-color: transparent;
}

/* 5. Header */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--opacity-overlay-light);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 20px var(--opacity-shadow-light);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-serif);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
}

.nav-menu {
  display: flex;
  gap: var(--spacing-2xl);
}

.nav-link {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-sunlight);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  color: var(--color-sunlight-dark);
  font-weight: 700;
}

.mobile-menu-btn {
  display: none;
  font-size: var(--font-size-2xl);
  cursor: pointer;
}

/* 6. Footer */
.footer {
  background-color: var(--color-black);
  color: var(--opacity-overlay-soft);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  font-size: var(--font-size-sm);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-logo {
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-lg);
}

.footer-info p {
  margin-bottom: var(--spacing-md);
}

.footer-bottom {
  border-top: 1px solid var(--opacity-overlay-white-light);
  padding-top: var(--spacing-lg);
  text-align: center;
}

/* 7. Floating CTA */
.floating-cta {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  z-index: 900;
}

.cta-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-2xl);
  box-shadow: 0 4px 12px var(--opacity-shadow-strongest);
  transition: transform 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-5px);
}

.cta-call {
  background: var(--gradient-sunlight);
  color: var(--color-black);
}
.cta-chat {
  background-color: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-border);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none; /* Mobile menu implementation needed */
  }
  .mobile-menu-btn {
    display: block;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* 8. Hero Section — "정성스러운 섬김" (minimal with subtle background) */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: #FAFAF8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-black);
  overflow: hidden;
  padding: var(--header-height) var(--spacing-md) 2rem;
}

/* Background image — subtle, covers full hero area */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../assets/images/hero_offering_pure.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 0 var(--spacing-xl);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-lg);
  letter-spacing: var(--letter-spacing-widest);
}

.hero-title {
  font-size: clamp(2rem, 6vw, var(--font-size-6xl));
  margin-bottom: var(--spacing-lg);
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-black);
}

.hero-title .text-gold,
.hero-title em {
  color: var(--color-sunlight);
  font-style: normal;
}

.hero-desc {
  font-size: 1rem;
  margin-bottom: var(--spacing-xl);
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: 0;
}

/* Desktop hero adjustments */
@media (min-width: 769px) {
  .hero {
    min-height: 90vh;
  }
  .hero::before {
    background-size: cover;
    background-position: center center;
    opacity: 0.18;
  }
  .hero-title {
    font-size: var(--font-size-6xl);
  }
  .hero-desc {
    font-size: var(--font-size-lg);
  }
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--color-black);
  border: 1px solid var(--color-black);
}

.btn-outline-dark:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

/* 9. Sections Common */
.section {
  padding: var(--section-spacing) 0;
}

.section-header {
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-md);
  color: var(--color-black);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
}

.bg-light {
  background-color: var(--color-light-gray);
}

/* 10. Scripture Section */
.scripture-section {
  background-color: var(--color-white);
  padding: var(--spacing-6xl) 0;
  background-image: url("../assets/images/scripture_bg.png");
  background-size: cover;
  background-position: center;
  position: relative;
}

.scripture-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(
    --opacity-overlay-medium
  ); /* Light overlay to ensure text readability */
}

.scripture-box {
  position: relative;
  z-index: 1;
}

.scripture-text {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-loose);
  color: var(--color-black);
  margin-bottom: var(--spacing-lg);
  font-style: italic;
}

.scripture-cite {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
}

/* 11. Service Cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.service-card {
  background: var(--color-white);
  padding: var(--spacing-2xl) var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  text-align: center;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--opacity-shadow-light);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--opacity-shadow-strong);
  border-color: var(--color-sunlight-glow);
}

.service-card.featured {
  border: 2px solid var(--color-sunlight);
  box-shadow: 0 15px 35px var(--color-sunlight-shadow-light);
}

.service-card .badge {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  background: var(--gradient-sunlight);
  color: var(--color-black);
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--font-size-xs);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.card-icon {
  font-size: 40px;
  color: var(--color-sunlight-dark);
  margin-bottom: var(--spacing-lg);
}

.service-card h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-md);
  color: var(--color-black);
}

.service-card .price {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  margin-bottom: var(--spacing-md);
}

.service-card .desc {
  color: var(--color-text-muted);
  margin-bottom: calc(var(--spacing-xl) + var(--spacing-xs));
  font-size: var(--font-size-base);
}

.btn-text {
  color: var(--color-sunlight-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.btn-text:hover {
  gap: var(--spacing-md);
  color: var(--color-black);
}

/* 12. Promise Section */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.promise-item {
  text-align: center;
  padding: var(--spacing-lg);
}

.icon-box {
  width: var(--spacing-5xl);
  height: var(--spacing-5xl);
  background-color: var(--color-sunlight-bg-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  color: var(--color-sunlight-dark);
  font-size: 32px;
  border: none;
}

.promise-item h4 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-md);
  color: var(--color-black);
}

.promise-item p {
  color: var(--color-text-muted);
}

/* Responsive Adjustments - Update */
@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .section-title {
    font-size: 28px;
  }
}

/* About Page Styles */

/* Page Header */
.page-header {
  position: relative;
  height: 300px;
  background-image: url("../assets/images/hero_sincerity.png"); /* Fallback: Lily with gloves */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--opacity-overlay-dark);
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: var(--font-size-5xl);
  margin-bottom: 10px;
  color: var(--color-white);
}

.page-subtitle {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  color: var(--color-white);
}

/* Layout Utilities */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

/* Grid System */
[class*="col-"] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-lg-0 {
  margin-bottom: 0 !important;
}

@media (min-width: 992px) {
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

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

.text-small {
  font-size: 0.875rem;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.rounded {
  border-radius: 0.5rem !important;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem var(--opacity-shadow-light) !important;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}

.col-lg-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}

@media (min-width: 992px) {
  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

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

/* About Content */
.about-image img {
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px var(--opacity-shadow-strong);
}

.about-text {
  padding-left: 40px;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.value-item {
  background: var(--color-white);
  padding: 40px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 5px 15px var(--opacity-shadow-light);
}

.value-icon {
  font-size: var(--font-size-6xl);
  color: var(--color-gold);
  margin-bottom: 20px;
}

.value-item h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

/* CEO Greeting */
.ceo-greeting {
  display: flex;
  gap: 50px;
  align-items: center;
}

.ceo-image {
  flex: 0 0 300px;
}

.placeholder-img {
  width: 100%;
  height: 400px;
  background-color: var(--color-gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-800);
  border-radius: var(--radius-md);
}

.ceo-message {
  flex: 1;
}

.signature {
  margin-top: 30px;
  font-size: var(--font-size-xl);
  text-align: right;
}

/* Responsive for About */
@media (max-width: 768px) {
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .about-text {
    padding-left: 0;
    padding-top: 30px;
  }

  .ceo-greeting {
    flex-direction: column;
  }

  .ceo-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
  }
}

/* Services Page Styles */

/* Sub Navigation */
.sub-nav {
  position: sticky;
  top: var(--header-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  z-index: 900;
  box-shadow: 0 2px 10px var(--opacity-shadow-light);
}

.sub-nav-list {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.sub-nav-list a {
  display: block;
  padding: 20px 0;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
}

.sub-nav-list a.active,
.sub-nav-list a:hover {
  color: var(--color-sunlight);
}

.sub-nav-list a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-sunlight);
}

/* Product Items */
.product-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  position: relative;
}

.product-item:hover {
  box-shadow: 0 10px 30px var(--color-sunlight-glow);
  border-color: var(--color-sunlight);
}

.product-item.featured {
  border: 2px solid var(--color-sunlight);
}

.product-header {
  padding: 30px;
  background-color: var(--color-light-gray);
  border-bottom: 1px solid var(--color-border);
}

.product-item.featured .product-header {
  background-color: var(--color-sunlight-bg);
}

.product-header h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  color: var(--color-black);
}

.price-tag {
  color: var(--color-sunlight);
  font-weight: 700;
}

/* New Component Grid Layout (Image Cards) */
.component-section {
  width: 100%;
  background-color: var(--color-light-gray);
  padding: 60px 0;
  margin-top: 40px;
  border-top: 1px solid var(--color-border);
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

/* PC에서 구성품 그리드 최적화 */
@media (min-width: 992px) {
  .component-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
}

@media (min-width: 1200px) {
  .component-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }
}

.component-group-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
  border-left: 4px solid var(--color-sunlight);
}

.component-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--opacity-shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
}

.component-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--color-sunlight-glow);
  border-color: var(--color-sunlight);
}

.component-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background-color: var(--color-gray-100);
}

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

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

.component-info {
  padding: 20px;
}

.component-info h4 {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--color-black);
}

.component-info .detail {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: 12px;
  min-height: 22px;
}

.component-info .price {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-black);
}

.component-info .price.highlight {
  color: var(--color-sunlight);
}

/* Premium Membership Card Update */
.membership-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
  color: white;
  padding: 30px;
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px var(--opacity-shadow-strongest);
  border: none;
}

.membership-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    var(--color-sunlight-shadow-light) 0%,
    transparent 70%
  );
  transform: rotate(45deg);
}

.membership-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-xl);
  color: var(--color-sunlight);
  margin-bottom: 10px;
  position: relative;
}

.membership-desc {
  font-size: var(--font-size-base);
  margin-bottom: 20px;
  opacity: 0.9;
  position: relative;
}

.membership-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 15px;
  position: relative;
}

/* Policy Box Update */
.policy-box {
  background-color: var(--color-light-gray);
  padding: 25px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-left-width: 4px;
}

.policy-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.policy-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-sunlight);
}

.product-desc {
  color: var(--color-text-muted);
}

.product-body {
  padding: 30px;
}

.product-features ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.product-features i {
  color: var(--color-sunlight);
  margin-top: 5px;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background-color: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 50px;
}

.timeline-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background-color: var(--color-white);
  border: 2px solid var(--color-sunlight);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-sunlight);
  z-index: 1;
}

.timeline-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--color-sunlight);
}

.timeline-content p {
  margin-bottom: 15px;
  font-weight: 500;
  color: var(--color-text);
}

.timeline-list {
  list-style: disc;
  padding-left: 20px;
  color: var(--color-text-muted);
}

.timeline-list li {
  margin-bottom: 5px;
}

/* Pricing Note */
.pricing-note {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.note-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-lg);
  font-weight: 500;
}

.note-item i {
  color: var(--color-sunlight);
}

.additional-costs {
  background-color: var(--color-light-gray);
  padding: 30px;
  border-radius: var(--radius-md);
  max-width: 800px;
  margin: 0 auto;
}

.additional-costs h3 {
  font-size: var(--font-size-xl);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border-dark);
  padding-bottom: 10px;
}

.additional-costs ul {
  list-style: none;
}

.additional-costs li {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

/* PC 레이아웃 개선 */
@media (min-width: 992px) {
  .product-detail-section {
    padding: 50px 0;
  }

  .product-detail-section .row {
    align-items: flex-start;
  }

  .guideline-card {
    position: sticky;
    top: calc(var(--header-height) + 60px);
  }

  .section-header {
    margin-bottom: 80px;
  }
}

/* Responsive for Services */
@media (max-width: 768px) {
  .sub-nav-list {
    gap: 20px;
    font-size: var(--font-size-sm);
  }

  .product-header h3 {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .timeline::before {
    left: 19px;
  }

  .timeline-icon {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-sm);
  }

  .timeline-item {
    padding-left: 60px;
  }

  .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Gallery Page Styles */

/* Gallery Masonry */
.gallery-masonry {
  columns: 4 250px;
  column-gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.gallery-masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: var(--spacing-md);
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background-color: var(--color-gray-100);
  display: block;
}

.gallery-masonry .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

/* Hover overlay with zoom icon */
.gallery-masonry .gallery-item::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0);
  color: rgba(255, 255, 255, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: var(--radius-md);
}

.gallery-masonry .gallery-item:hover::after {
  background-color: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.95);
}

.gallery-masonry .gallery-item:hover img {
  transform: scale(1.03);
}

/* Responsive: 3 columns tablet */
@media (min-width: 768px) and (max-width: 1199px) {
  .gallery-masonry {
    columns: 3 200px;
  }
}

/* Responsive: 2 columns mobile */
@media (max-width: 767px) {
  .gallery-masonry {
    columns: 2 150px;
    column-gap: 10px;
  }

  .gallery-masonry .gallery-item {
    margin-bottom: 10px;
  }
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--opacity-overlay-darker);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--font-size-2xl);
  color: var(--color-black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  z-index: 10000;
}

.lightbox-close:hover {
  background-color: var(--color-white);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--font-size-3xl);
  color: var(--color-black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  z-index: 10000;
}

.lightbox-nav:hover {
  background-color: var(--color-white);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: var(--spacing-lg);
}

.lightbox-next {
  right: var(--spacing-lg);
}

.lightbox-counter {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--color-white);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
}

/* Lightbox 애니메이션 */
.lightbox-content {
  animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background: var(--color-white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: 0 5px 20px var(--opacity-shadow-light);
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.review-date {
  color: var(--color-gray);
  font-size: var(--font-size-sm);
}

.review-title {
  font-size: var(--font-size-lg);
  margin-bottom: 15px;
  line-height: 1.4;
}

.review-content {
  color: var(--color-gray-900);
  margin-bottom: 20px;
  font-size: 15px;
}

.review-author {
  font-weight: 500;
  color: var(--color-black);
  text-align: right;
}

/* Contact Page Styles */

.contact-info-col {
  padding-right: 50px;
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.info-item .icon {
  width: 50px;
  height: 50px;
  background-color: var(--color-sunlight-glow);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sunlight);
  font-size: var(--font-size-xl);
  flex-shrink: 0;
  border: 1px solid var(--color-sunlight-border);
}

.info-item h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 5px;
  color: var(--color-black);
}

.info-item .highlight {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-sunlight);
}

/* Contact Form */
.contact-form-box {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px var(--opacity-shadow-light);
  border: 1px solid var(--color-border);
}

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

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
  color: var(--color-black);
}

.required {
  color: var(--color-error);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  transition: border-color 0.3s ease;
  background-color: var(--color-white);
  color: var(--color-black);
}

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

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input {
  width: auto;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: var(--font-size-sm);
}

.btn-block {
  width: 100%;
}

/* Map Placeholder */
.map-container {
  width: 100%;
  height: 400px;
  background-color: var(--color-gray-300);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-700);
  font-size: var(--font-size-lg);
}

.map-placeholder i {
  font-size: var(--font-size-6xl);
  margin-bottom: 20px;
}

/* Responsive for Contact */
@media (max-width: 768px) {
  .contact-info-col {
    padding-right: 15px;
    margin-bottom: 50px;
  }

  .contact-form-box {
    padding: 20px;
  }
}

/* Animations */
.fade-up-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Accessibility: respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-up-init,
  .fade-up-init.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Staggered delays for hero elements */
.hero-title.visible {
  transition-delay: 0.1s;
}
.hero-desc.visible {
  transition-delay: 0.2s;
}
.hero-buttons.visible {
  transition-delay: 0.3s;
}

/* Scripture Box Style */
.scripture-box {
  background-color: var(--color-light-gray);
  padding: 60px 40px;
  border-radius: var(--radius-md);
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
}

.scripture-text {
  font-size: 22px;
  line-height: 1.8;
  color: var(--color-black);
  margin-bottom: 30px;
  font-style: italic;
}

/* Quote Box Style */
.quote-box {
  border-left: 4px solid var(--color-gold);
  padding-left: 20px;
  margin-top: 30px;
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  color: var(--color-blue-dark);
  font-weight: 700;
}

/* Detailed Service Specs */
.product-detail-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.product-detail-header {
  margin-bottom: 30px;
}

.product-detail-header h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-black);
  margin-bottom: 10px;
  border-left: 4px solid var(--color-gold);
  padding-left: 15px;
}

/* Pricing Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.spec-table th,
.spec-table td {
  padding: 15px;
  border-bottom: 1px solid var(--color-border-light);
  text-align: left;
}

.spec-table th {
  background-color: var(--color-gray-50);
  font-weight: 600;
  width: 25%;
  color: var(--color-black);
}

.spec-table td {
  color: var(--color-gray);
}

.spec-price {
  font-weight: 700;
  color: var(--color-blue-dark);
}

/* Discount Badge */
.discount-badge {
  background-color: var(--color-danger);
  color: white;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: 10px;
}

/* Option Cards */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* PC에서 옵션 그리드 최적화 */
@media (min-width: 992px) {
  .option-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

.option-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  padding: 20px;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
}

.option-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--opacity-shadow-light);
}

.option-title {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-black);
}

.option-price {
  color: var(--color-gold);
  font-weight: 700;
}

/* Policy Box */
.policy-box {
  background-color: var(--color-light-gray);
  padding: 25px;
  border-radius: var(--radius-md);
  margin-top: 40px;
}

.policy-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.policy-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--color-gray-800);
}

.policy-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-gold);
}

/* Membership Card */
.membership-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
  color: white;
  padding: 30px;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  text-align: center;
}

.membership-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.membership-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 20px 0;
}

.membership-desc {
  color: var(--opacity-overlay-white-medium);
  margin-bottom: 20px;
}

/* Service Detail Cards */
.price-card {
  background: var(--color-white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px var(--opacity-shadow-medium);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--opacity-shadow-stronger);
}

.price-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-sunlight);
}

/* PC에서 가격 카드 개선 */
@media (min-width: 992px) {
  .price-card {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

.price-header {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.price-badge {
  display: inline-block;
  background: var(--gradient-sunlight);
  color: var(--color-black);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 15px;
}

.price-amount {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.original-price {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-bottom: 5px;
}

.final-price {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--color-black);
  line-height: 1;
}

/* PC에서 가격 표시 개선 */
@media (min-width: 992px) {
  .final-price {
    font-size: var(--font-size-5xl);
  }

  .original-price {
    font-size: var(--font-size-xl);
  }

  .price-amount {
    margin-bottom: 15px;
  }
}

.discount-info {
  color: var(--color-error);
  font-weight: 700;
  font-size: var(--font-size-sm);
  margin-top: 5px;
}

.guideline-card {
  background: var(--color-light-gray);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.guideline-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-black);
}

.guideline-title i {
  color: var(--color-sunlight-dark);
}

.guideline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guideline-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.5;
}

.guideline-list li::before {
  content: "\f00c"; /* FontAwesome check */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--color-sunlight);
  font-size: var(--font-size-xs);
}

/* Gallery Filters */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--color-gray-300);
  background-color: var(--color-white);
  color: var(--color-gray-600);
  border-radius: 20px;
  cursor: pointer;
  font-size: 15px;
  transition: var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

/* Load More Button */
.gallery-load-more button {
  padding: 10px 40px;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition-base);
}

.gallery-load-more button:hover {
  background-color: var(--color-black);
  color: var(--color-white);
  transform: translateY(-2px);
}


        /* ── 기독교 장례 페이지 전용 스타일 ── */

        /* 4번의 예배 타임라인 */
        .worship-timeline {
            position: relative;
            padding: 0;
            list-style: none;
            margin: 0;
        }

        .worship-timeline::before {
            content: '';
            position: absolute;
            left: 36px;
            top: 0;
            bottom: 0;
            width: 2px;
            background: linear-gradient(to bottom, var(--color-sunlight), var(--color-sunlight-dark));
            opacity: 0.4;
        }

        .worship-item {
            display: flex;
            gap: var(--spacing-xl);
            margin-bottom: var(--spacing-3xl);
            position: relative;
        }

        .worship-item:last-child {
            margin-bottom: 0;
        }

        .worship-step {
            flex-shrink: 0;
            width: 72px;
            height: 72px;
            border-radius: 50%;
            background: var(--gradient-sunlight);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 16px var(--color-sunlight-shadow);
            position: relative;
            z-index: 1;
        }

        .worship-step i {
            font-size: 22px;
            color: var(--color-white);
            margin-bottom: 2px;
        }

        .worship-step-num {
            font-size: 10px;
            font-weight: var(--font-weight-bold);
            color: rgba(255,255,255,0.85);
            letter-spacing: 0.5px;
        }

        .worship-body {
            flex: 1;
            padding-top: 8px;
        }

        .worship-card {
            background: var(--color-white);
            border: 1px solid var(--color-border);
            border-left: 4px solid var(--color-sunlight);
            border-radius: var(--radius-lg);
            padding: var(--spacing-xl) var(--spacing-2xl);
            box-shadow: 0 4px 20px var(--opacity-shadow-light);
            transition: transform 0.25s ease, box-shadow 0.25s ease;
        }

        .worship-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 32px var(--opacity-shadow-strong);
        }

        .worship-card h3 {
            font-family: var(--font-serif);
            font-size: var(--font-size-xl);
            color: var(--color-black);
            margin-bottom: var(--spacing-sm);
        }

        .worship-card p {
            color: var(--color-text);
            line-height: var(--line-height-relaxed);
            margin-bottom: 0;
        }

        .worship-card .worship-sub {
            margin-top: var(--spacing-md);
            padding-top: var(--spacing-md);
            border-top: 1px dashed var(--color-border);
        }

        .worship-card .worship-sub-item {
            display: flex;
            gap: var(--spacing-sm);
            align-items: flex-start;
            margin-bottom: var(--spacing-sm);
            font-size: var(--font-size-sm);
            color: var(--color-text-muted);
        }

        .worship-card .worship-sub-item:last-child {
            margin-bottom: 0;
        }

        .worship-card .worship-sub-item i {
            color: var(--color-sunlight-dark);
            margin-top: 2px;
            flex-shrink: 0;
        }

        /* 기독교 장례의 의미 — 3-card grid */
        .meaning-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: var(--spacing-xl);
        }

        .meaning-card {
            background: var(--color-white);
            border-radius: var(--radius-xl);
            padding: var(--spacing-3xl) var(--spacing-xl);
            text-align: center;
            box-shadow: 0 8px 28px var(--opacity-shadow-light);
            border-top: 4px solid var(--color-sunlight);
            transition: transform 0.25s ease, box-shadow 0.25s ease;
        }

        .meaning-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 40px var(--opacity-shadow-strong);
        }

        .meaning-icon {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: var(--color-sunlight-bg-light);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto var(--spacing-lg);
        }

        .meaning-icon i {
            font-size: 26px;
            color: var(--color-sunlight-dark);
        }

        .meaning-card h3 {
            font-family: var(--font-serif);
            font-size: var(--font-size-xl);
            color: var(--color-black);
            margin-bottom: var(--spacing-md);
        }

        .meaning-card p {
            color: var(--color-text-muted);
            line-height: var(--line-height-relaxed);
            font-size: var(--font-size-base);
        }

        /* 소개 intro box */
        .intro-box {
            max-width: 760px;
            margin: 0 auto;
            background: var(--color-sunlight-bg);
            border: 1px solid var(--color-sunlight-border);
            border-radius: var(--radius-xl);
            padding: var(--spacing-3xl) var(--spacing-2xl);
            text-align: center;
        }

        .intro-box .intro-icon {
            font-size: 48px;
            color: var(--color-sunlight-dark);
            margin-bottom: var(--spacing-lg);
        }

        .intro-box h2 {
            font-family: var(--font-serif);
            font-size: var(--font-size-3xl);
            color: var(--color-black);
            margin-bottom: var(--spacing-lg);
        }

        .intro-box p {
            font-size: var(--font-size-lg);
            line-height: var(--line-height-relaxed);
            color: var(--color-text);
        }

        /* CTA 섹션 */
        .funeral-cta-section {
            background: var(--color-dark-gray);
            padding: var(--spacing-7xl) 0;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .funeral-cta-section::before {
            content: '';
            position: absolute;
            top: -60px;
            left: 50%;
            transform: translateX(-50%);
            width: 300px;
            height: 300px;
            border-radius: 50%;
            background: radial-gradient(circle, var(--color-sunlight-glow) 0%, transparent 70%);
            pointer-events: none;
        }

        .funeral-cta-section h2 {
            font-family: var(--font-serif);
            font-size: var(--font-size-4xl);
            color: var(--color-white);
            margin-bottom: var(--spacing-lg);
        }

        .funeral-cta-section p {
            font-size: var(--font-size-lg);
            color: rgba(255,255,255,0.75);
            max-width: 560px;
            margin: 0 auto var(--spacing-2xl);
            line-height: var(--line-height-relaxed);
        }

        .funeral-cta-section .cta-phone {
            display: inline-flex;
            align-items: center;
            gap: var(--spacing-md);
            background: var(--gradient-sunlight);
            color: var(--color-black);
            font-size: var(--font-size-xl);
            font-weight: var(--font-weight-bold);
            padding: var(--spacing-lg) var(--spacing-3xl);
            border-radius: var(--radius-full);
            text-decoration: none;
            box-shadow: 0 6px 24px var(--color-sunlight-shadow);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .funeral-cta-section .cta-phone:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 32px var(--color-sunlight-shadow);
            background: var(--gradient-sunlight-hover);
        }

        /* 반응형 */
        @media (max-width: 768px) {
            .worship-timeline::before {
                left: 28px;
            }
            .worship-step {
                width: 56px;
                height: 56px;
            }
            .worship-step i {
                font-size: 18px;
            }
            .worship-card {
                padding: var(--spacing-lg);
            }
            .intro-box {
                padding: var(--spacing-2xl) var(--spacing-lg);
            }
            .funeral-cta-section h2 {
                font-size: var(--font-size-3xl);
            }
        }

/* ── 모바일 UI 개선 (2026-04-16) ── */

/* 모바일 헤더 축소 */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    .header {
        height: 60px;
        padding: 0 var(--spacing-md);
    }
    .header .logo {
        font-size: 1.2rem;
    }
    .header-cta span {
        font-size: 0.85rem;
    }
}

/* 갤러리 필터 가로 스크롤 */
@media (max-width: 768px) {
    .gallery-filters {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }
    .gallery-filters::-webkit-scrollbar {
        display: none;
    }
    .gallery-filters .filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

/* 히어로 텍스트 모바일 최적화 */
@media (max-width: 768px) {
    .hero {
        padding-top: var(--header-height);
        padding-bottom: 6rem;
    }
    .hero-desc {
        font-size: 15px;
        line-height: 1.7;
    }
    .hero-desc br {
        display: none;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    /* 모바일: 메일 CTA 숨기고 문의페이지 링크로 대체 */
    .floating-cta .cta-chat {
        display: none;
    }
}

/* 히어로~콘텐츠 여백 축소 */
@media (max-width: 768px) {
    .page-header + .section,
    .page-header + section,
    .hero + .section,
    .hero + section {
        padding-top: var(--spacing-xl);
    }
    .section {
        padding-top: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }
}

/* 푸터 하단 CTA 겹침 방지 */
@media (max-width: 768px) {
    .footer {
        padding-bottom: 100px;
    }
    .footer-bottom {
        padding-bottom: var(--spacing-lg);
    }
}

/* ═══════════════════════════════════════════════════════════════════
 * design-improvements-v2 (2026-04-20)
 * Critical + High 이슈 수정
 * ═══════════════════════════════════════════════════════════════════ */

/* B1. Promise 2x2 그리드 (모바일) */
@media (max-width: 768px) {
    .promise-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.25rem;
    }
    .promise-item {
        padding: 1.5rem 0.75rem;
    }
    .promise-item .icon-box {
        width: 56px;
        height: 56px;
        font-size: 24px;
        margin-bottom: 1rem;
    }
    .promise-item h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .promise-item p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* B2. 히어로 높이 조정 — 콘텐츠 진입 유도 */
.hero {
    min-height: 85vh !important;
    min-height: 85svh !important;
}
@media (max-width: 768px) {
    .hero {
        min-height: 75vh !important;
        min-height: 75svh !important;
    }
}

/* B5. 서비스 카드 아이콘 강조 */
.service-card .card-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--color-sunlight);
    box-shadow: 0 4px 12px rgba(212, 168, 75, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) {
    .service-card:hover .card-icon {
        transform: scale(1.08) rotate(-3deg);
        box-shadow: 0 8px 20px rgba(212, 168, 75, 0.3);
    }
}
.service-card.featured .card-icon {
    background: linear-gradient(135deg, var(--color-sunlight) 0%, #f59e0b 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(212, 168, 75, 0.4);
}

/* B3. funeral.html 타임라인 모바일 최적화 */
@media (max-width: 768px) {
    .worship-timeline::before {
        left: 20px !important;
    }
    .worship-number {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.85rem !important;
    }
    .timeline-card {
        margin-left: 56px !important;
        padding: 1.25rem !important;
    }
    .timeline-card h3 {
        font-size: 1.1rem !important;
    }
    .timeline-card p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
}

/* B4. 푸터 일관성 강화 */
.footer {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
}
.footer-brand .footer-logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-sunlight);
    margin-bottom: 0.5rem;
    display: inline-block;
}
.footer-info p {
    font-size: 0.9rem;
    line-height: 1.9;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.75);
}
.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2rem;
}

/* ═══════════════════════════════════════════════════════════════════
 * services.html 3종 상품 재설계 (2026-05-19)
 * ═══════════════════════════════════════════════════════════════════ */

/* 가격 비교 카드 (한눈에 보기) */
.price-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.price-card {
  position: relative;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.price-card-featured {
  border-color: var(--color-sunlight);
  box-shadow: 0 8px 24px rgba(212, 168, 75, 0.15);
  transform: scale(1.03);
}

.price-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text-secondary);
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.price-card-featured .price-card-badge {
  background: linear-gradient(135deg, var(--color-sunlight) 0%, #f59e0b 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(212, 168, 75, 0.4);
}

.price-card-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-black);
}

.price-card-name small {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-left: 0.25rem;
}

.price-card-tag {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  min-height: 2.5em;
}

.price-card-main {
  margin: 1rem 0 1.5rem;
}

.price-card-original {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-bottom: 0.25rem;
}

.price-card-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-sunlight);
  line-height: 1;
}

.price-card-unit {
  font-size: 1rem;
  font-weight: 500;
  margin-left: 0.25rem;
  color: var(--color-text);
}

.price-card-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.price-card-features li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--color-text);
  border-bottom: 1px solid #f5f5f5;
}

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

.price-card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-sunlight);
  font-weight: 700;
}

.price-card-btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* 가격 절감 안내 */
.savings-callout {
  display: flex;
  gap: 1rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.savings-callout-icon {
  font-size: 1.5rem;
  color: var(--color-sunlight);
  flex-shrink: 0;
}

.savings-callout-content strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--color-black);
}

.savings-callout-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
}

/* 상품 상세 카드 */
.product-summary-card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.product-tagline {
  display: inline-block;
  background: var(--color-sunlight-bg);
  color: var(--color-sunlight);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-black);
}

.product-description {
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.product-price-display {
  background: #faf7f0;
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.price-original-line {
  margin-bottom: 0.5rem;
}

.price-strikethrough {
  color: var(--color-text-muted);
  text-decoration: line-through;
  font-size: 1rem;
}

.price-discount-badge {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

.price-amount {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-sunlight);
  line-height: 1.2;
}

.price-currency {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
  margin-left: 0.25rem;
}

/* 안내사항 카드 */
.guideline-card {
  background: #f9f7f0;
  border-left: 4px solid var(--color-sunlight);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.guideline-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-black);
}

.guideline-title i {
  color: var(--color-sunlight);
  margin-right: 0.5rem;
}

.guideline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guideline-list li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.6;
}

.guideline-list li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  color: var(--color-sunlight);
  font-weight: 700;
}

/* 벤치마크 카드 */
.benchmark-card {
  background: #f0f7ff;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.benchmark-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1e40af;
}

.benchmark-card h5 i {
  margin-right: 0.5rem;
}

.benchmark-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text);
}

/* 상세 구성품 그리드 */
.component-section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--color-black);
  margin-bottom: 0.5rem;
}

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

.component-category {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.component-category-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-sunlight);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.component-category-title i {
  color: var(--color-sunlight);
}

.component-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed #f0f0f0;
  font-size: 0.9rem;
  gap: 1rem;
}

.component-item:last-child {
  border-bottom: none;
}

.component-label {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.component-value {
  color: var(--color-text);
  font-weight: 500;
  text-align: right;
}

/* 업그레이드 뱃지 */
.upgrade-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-sunlight) 0%, #f59e0b 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-left: auto;
}

/* 제외 항목 안내 */
.excluded-callout {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 1.5rem;
}

.excluded-callout h5 {
  color: #991b1b;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.excluded-callout h5 i {
  margin-right: 0.5rem;
}

.excluded-callout > p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.excluded-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.excluded-list li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--color-text);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .price-comparison-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .price-card-featured {
    transform: none;
  }
  .price-card-amount {
    font-size: 2.25rem;
  }
  .component-grid {
    grid-template-columns: 1fr;
  }
  .component-item {
    flex-direction: column;
    gap: 0.25rem;
  }
  .component-value {
    text-align: left;
    font-size: 0.85rem;
  }
  .product-title {
    font-size: 1.6rem;
  }
  .price-amount {
    font-size: 1.85rem;
  }
  .savings-callout {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
 * services.html page-header 확장 (2026-05-19)
 * ═══════════════════════════════════════════════════════════════════ */

/* 페이지 헤더 — 가치 메시지 + 통계 */
.page-header {
  height: auto !important;
  min-height: 380px;
  padding: 4rem 0 3rem;
}

.page-header-promise {
  margin-top: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.page-header-message {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.9;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.page-header-message strong {
  color: var(--color-sunlight);
  font-weight: 700;
}

.page-header-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 500px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-sunlight);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-number span {
  font-size: 1.25rem;
  margin-left: 0.1rem;
  color: rgba(255, 255, 255, 0.85);
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* 모바일 */
@media (max-width: 768px) {
  .page-header {
    min-height: 420px;
    padding: 3rem 0 2.5rem;
  }
  .page-header-promise {
    margin-top: 1.5rem;
    padding: 0 1rem;
  }
  .page-header-message {
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
  }
  .page-header-stats {
    gap: 1rem;
    padding: 1rem;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .stat-number span {
    font-size: 1rem;
  }
  .stat-label {
    font-size: 0.72rem;
  }
  .stat-divider {
    height: 28px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
 * services.html — 상품 상세 영역 재배치 (2026-05-19)
 * ═══════════════════════════════════════════════════════════════════ */

/* 데스크톱: 이미지 + 상품 카드 높이 매치 */
@media (min-width: 992px) {
  .row.product-hero-row {
    display: flex !important;
    align-items: stretch !important;
  }
  .row.product-hero-row > [class*="col-"] {
    display: flex !important;
    flex-direction: column;
  }
  /* 이미지가 카드 콘텐츠 높이를 따라 stretch */
  .product-hero-image {
    width: 100%;
    flex: 1;
    height: auto !important;
    min-height: 460px;
    object-fit: cover;
    border-radius: 14px;
  }
  .product-summary-card--full {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* 상품 상세 영역 내부 여백 — '상품 설명' 헤더 분리 강화 */
.product-detail-section > hr.my-5 {
  margin-top: 4.5rem !important;   /* 72px */
  margin-bottom: 3rem !important;  /* 48px */
  border: none;
  border-top: 1px solid #f0e9d8;
  opacity: 0.7;
}

.product-detail-section .component-section-title {
  margin-top: 0.5rem;
  margin-bottom: 0.625rem;
}

@media (max-width: 991px) {
  .product-detail-section > hr.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 2rem !important;
  }
}

/* 모바일: 이미지 자연 비율 + 상품 카드 자동 높이 */
@media (max-width: 991px) {
  .product-hero-image {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
  }
}

/* 안내사항 가로 펼침 (PC) */
.guideline-card--horizontal {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
}

.guideline-list--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem 2rem;
  margin: 0;
}

@media (max-width: 768px) {
  .guideline-card--horizontal {
    padding: 1.25rem 1.25rem;
  }
  .guideline-list--grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════
 * services.html — 상품 카드 안내사항 인라인 통합 (2026-05-19)
 * ═══════════════════════════════════════════════════════════════════ */

.product-inline-notes {
  list-style: none;
  padding: 1rem 0;
  margin: 0.5rem 0 1.25rem;
  border-top: 1px dashed var(--color-border);
  border-bottom: 1px dashed var(--color-border);
}

.product-inline-notes li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.product-inline-notes li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  color: var(--color-sunlight);
  font-weight: 700;
}

.product-inline-notes li strong {
  color: var(--color-sunlight);
  font-weight: 700;
}

@media (max-width: 768px) {
  .product-inline-notes {
    padding: 0.75rem 0;
  }
  .product-inline-notes li {
    font-size: 0.85rem;
    padding: 0.3rem 0 0.3rem 1.1rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
 * services.html — 상품 상세 구성품 (Spec Sections / Cards) 2026-05-19
 * ═══════════════════════════════════════════════════════════════════ */

/* ── 컨테이너 ────────────────────────────────────── */
.product-spec-sections {
  margin-top: 1.5rem;
}

/* ── 섹션 (카테고리) ─────────────────────────────── */
.spec-section {
  margin-bottom: 4rem;        /* 64px - 명확한 그룹 분리 */
}

.spec-section:last-child {
  margin-bottom: 0;
}

/* ── 섹션 헤더 ───────────────────────────────────── */
.spec-section-title {
  position: relative;
  font-size: 1.625rem;        /* 26px */
  font-weight: 700;
  color: var(--color-black);
  margin: 0 0 1.5rem;         /* 24px */
  padding-left: 0.875rem;     /* 14px - 액센트 바 공간 */
  display: flex;
  align-items: center;
  gap: 0.625rem;              /* 10px */
  letter-spacing: -0.015em;
  line-height: 1.3;
}

/* 좌측 골드 액센트 바 */
.spec-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.5rem;             /* 24px */
  background: linear-gradient(180deg, var(--color-sunlight) 0%, #f59e0b 100%);
  border-radius: 2px;
}

.spec-section-title i {
  font-size: 1.125rem;        /* 18px */
  color: var(--color-sunlight);
  opacity: 1;
}

.spec-section-title .spec-section-badge {
  margin-left: auto;
  font-size: 0.6875rem;       /* 11px */
  font-weight: 700;
  padding: 0.3125rem 0.75rem; /* 5px 12px */
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-sunlight) 0%, #f59e0b 100%);
  color: #fff;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 6px rgba(212, 168, 75, 0.3);
}

/* ── 카드 그리드 (PC: 4열 고정) ──────────────────── */
.spec-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;        /* 카드 높이 행 단위 균일 */
  gap: 1.25rem;               /* 20px */
}

/* ── 카드 ────────────────────────────────────────── */
.spec-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;               /* 그리드 행 높이에 맞춤 */
}

.spec-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04), 0 12px 24px rgba(0, 0, 0, 0.06);
}

/* ── 카드 미디어 영역 ────────────────────────────── */
.spec-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #fef9e7 0%, #fde68a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.spec-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.04);
  pointer-events: none;
}

.spec-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.spec-card:hover .spec-card-media img {
  transform: scale(1.04);
}

.spec-card-media .icon-only {
  font-size: 2.75rem;         /* 44px */
  color: var(--color-sunlight);
  opacity: 0.85;
}

/* ── 카드 본문 ───────────────────────────────────── */
.spec-card-body {
  padding: 1.125rem 1.25rem 1.25rem;  /* 18 20 20 */
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;              /* 6px */
}

.spec-card-title {
  font-size: 1.0625rem;       /* 17px */
  font-weight: 700;
  color: var(--color-black);
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.spec-card-desc {
  font-size: 0.875rem;        /* 14px */
  color: #6b7280;             /* tone-down gray */
  line-height: 1.6;
  margin: 0;
}

.spec-card-desc strong {
  color: var(--color-sunlight);
  font-weight: 700;
}

/* ── 태블릿 (992~1199px): 3열 ─────────────────────── */
@media (max-width: 1199px) {
  .spec-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── 작은 태블릿 (768~991px): 3열 유지, 카드 압축 ── */
@media (max-width: 991px) {
  .spec-section {
    margin-bottom: 3rem;
  }
  .spec-section-title {
    font-size: 1.375rem;       /* 22px */
  }
}

/* ── 모바일 (~767px): 2열 ─────────────────────────── */
@media (max-width: 767px) {
  .spec-section {
    margin-bottom: 2.75rem;    /* 44px */
  }
  .spec-section-title {
    font-size: 1.1875rem;      /* 19px */
    margin-bottom: 1.125rem;
    padding-left: 0.75rem;
  }
  .spec-section-title::before {
    height: 1.125rem;
  }
  .spec-section-title i {
    font-size: 1rem;
  }
  .spec-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .spec-card {
    border-radius: 12px;
  }
  .spec-card-media {
    aspect-ratio: 1 / 1;
  }
  .spec-card-media .icon-only {
    font-size: 2rem;
  }
  .spec-card-body {
    padding: 0.875rem 0.9375rem 1rem;  /* 14 15 16 */
    gap: 0.25rem;
  }
  .spec-card-title {
    font-size: 0.9375rem;      /* 15px */
    line-height: 1.3;
  }
  .spec-card-desc {
    font-size: 0.8125rem;      /* 13px */
    line-height: 1.55;
  }
}

/* ── 초소형 (~360px): 2열 유지, 폰트만 압축 ─────── */
@media (max-width: 360px) {
  .spec-card-title {
    font-size: 0.875rem;
  }
  .spec-card-desc {
    font-size: 0.75rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
 * services.html — 상품 카드 (좌측) 폴리시 (2026-05-19 v3)
 * ═══════════════════════════════════════════════════════════════════ */

/* 상품명 강화 */
.product-summary-card .product-title {
  font-size: 2.125rem;         /* 34px */
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.875rem;     /* 14px */
}

/* 태그라인 uppercase + spacing */
.product-summary-card .product-tagline {
  letter-spacing: 0.08em;
  padding: 0.3125rem 0.875rem;
}

.product-summary-card .product-description {
  font-size: 0.9375rem;        /* 15px */
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 0;
}

/* 인라인 안내사항 톤 조정 */
.product-summary-card .product-inline-notes {
  margin: 1.25rem 0 1.25rem;
  padding: 1rem 0;
}

.product-summary-card .product-inline-notes li {
  font-size: 0.875rem;          /* 14px */
  color: #6b7280;
  line-height: 1.6;
  padding: 0.375rem 0 0.375rem 1.125rem;
}

/* 가격 영역 강조 */
.product-summary-card .product-price-display {
  padding: 1.25rem 1.375rem;
  border-radius: 14px;
}

.product-summary-card .price-amount {
  font-size: 2.25rem;           /* 36px */
  letter-spacing: -0.025em;
}

@media (max-width: 767px) {
  .product-summary-card .product-title {
    font-size: 1.625rem;         /* 26px */
  }
  .product-summary-card .price-amount {
    font-size: 1.875rem;         /* 30px */
  }
  .product-summary-card .product-description {
    font-size: 0.9rem;
  }
}
