/* ============================================
   성재유통 - Modern CSS Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #2d7a3a;
  --primary-light: #3fa050;
  --primary-dark: #1f5629;
  --secondary: #c4671a;
  --secondary-light: #e07d2e;
  --accent: #f0a830;
  --bg-cream: #faf8f3;
  --bg-white: #ffffff;
  --text-dark: #1a1a1a;
  --text-mid: #444444;
  --text-light: #777777;
  --border: #e8e4da;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.14);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

/* ---- Utilities ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 96px 0;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 580px;
  margin-bottom: 56px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

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

/* ---- Scroll Animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  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;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.nav-logo-img {
  height: 60px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-text .main {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
}

.nav-logo-text .sub {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 1.44rem;
  font-weight: 500;
  color: var(--text-mid);
  position: relative;
  white-space: nowrap;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 14px 30px;
  border-radius: 100px;
  font-size: 1.44rem;
  font-weight: 600 !important;
  transition: background var(--transition), transform 0.2s !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: white;
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}

.mobile-menu a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}

.mobile-menu.open {
  display: flex;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7f0 50%, var(--bg-cream) 100%);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  display: none;
  /* 사용자 요청에 따라 배경 도형 숨김 */
}

.hero-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 200px 0 100px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 122, 58, 0.08);
  border: 1px solid rgba(45, 122, 58, 0.15);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: var(--accent);
  position: relative;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(240, 168, 48, 0.35);
}

.btn-primary:hover {
  background: #d9951f;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(240, 168, 48, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: var(--transition);
}

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

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

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

.hero-stat .num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

.hero-theme-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-item {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  opacity: 0.35;
  background-size: auto 80%;
  background-repeat: no-repeat;
  filter: sepia(0.05) brightness(1.05);
}

.hero-bg-burdock {
  left: 0;
  background-image: url('사진/hero_custom_bg.jpg');
  background-position: left calc(8% + 30px) bottom 0;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0) 90%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0) 90%);
}

.hero-bg-carrot {
  right: 0;
  background-image: url('사진/hero_carrot_user.png');
  background-position: right calc(8% - 120px) bottom -100px;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0) 90%);
}

.hero-theme-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-cream) 90%);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  background: white;
}

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

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.value-card {
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.value-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.value-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

.about-image-stack {
  position: relative;
  height: 500px;
}

.about-img-main {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid white;
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 100px;
  right: 0;
  background: var(--primary);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-badge .num {
  font-size: 1.6rem;
  font-weight: 900;
}

.about-badge .text {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 2px;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products {
  background: var(--bg-cream);
}

.products-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 9px 22px;
  border-radius: 100px;
  border: 2px solid var(--border);
  background: white;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-mid);
  font-family: 'Noto Sans KR', sans-serif;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  height: 240px;
  background: #f5f3ee;
}

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

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}

.product-badge.secondary {
  background: var(--secondary);
}

.product-size-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.product-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
  flex: 1;
}

.product-specs {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.spec-tag {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--text-mid);
  font-weight: 500;
}

.product-flip {
  display: none;
}

/* ============================================
   ADVANTAGES SECTION
   ============================================ */
.advantages {
  background: white;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: stretch;
}

/* .adv-side 및 .adv-img 스타일 제거됨 */

.adv-card {
  background: var(--bg-cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.adv-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* .adv-card.adv-main 스타일은 nth-child로 대체됨 */

.adv-card.adv-main:hover {
  border-color: var(--primary);
  box-shadow: 0 16px 48px rgba(45, 122, 58, 0.15);
}

/* 개별 파스텔 컬러 적용 */
.adv-card:nth-child(1) {
  background-color: #f6faf6;
  border-color: rgba(45, 122, 58, 0.15);
}

.adv-card:nth-child(2) {
  background-color: #f0f7ff;
  border-color: rgba(30, 136, 229, 0.15);
}

.adv-card:nth-child(3) {
  background-color: #fffcf0;
  border-color: rgba(251, 192, 45, 0.15);
}

.adv-card:nth-child(4) {
  background-color: #faf4ff;
  border-color: rgba(142, 36, 170, 0.15);
}

.adv-card:nth-child(2) .adv-number {
  color: #1e88e5;
}

.adv-card:nth-child(3) .adv-number {
  color: #fbc02d;
}

.adv-card:nth-child(4) .adv-number {
  color: #8e24aa;
}

.adv-icon-wrap {
  margin-bottom: 16px;
}

.adv-icon {
  font-size: 2.4rem;
}

.adv-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.08;
  line-height: 1;
  letter-spacing: -0.05em;
}

.adv-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.4;
}

.adv-card>p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 18px;
}

.adv-card>p strong {
  color: var(--primary-dark);
}

.adv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.adv-tag {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mid);
}

.adv-main .adv-tag {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(45, 122, 58, 0.25);
  color: var(--primary-dark);
}

.adv-info-box {
  display: flex;
  gap: 14px;
  background: white;
  border: 1.5px solid rgba(45, 122, 58, 0.2);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 0.83rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-top: 4px;
}

.adv-info-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.adv-info-box strong {
  color: var(--primary-dark);
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
}

/* ============================================
   CLIENTS SECTION
   ============================================ */
.clients {
  background: white;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.client-card {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.client-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: white;
}

.client-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.client-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.client-card p {
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* (인증 섹션 제거됨) */

/* ============================================
   MAP / LOCATION SECTION
   ============================================ */
.location {
  background: var(--bg-cream);
}

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

.location-info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.location-info-row:last-child {
  border-bottom: none;
}

.loc-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.loc-text h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.loc-text p {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}

.loc-text a {
  color: var(--primary);
  transition: color var(--transition);
}

.loc-text a:hover {
  color: var(--primary-dark);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 420px;
  background: #e8e4d9;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: start;
}

.contact-left h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.contact-left p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-mid);
}

.contact-chip .icon {
  font-size: 1rem;
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-family: 'Noto Sans KR', sans-serif;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 122, 58, 0.12);
  background: white;
}

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

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

.form-group select {
  appearance: none;
  cursor: pointer;
}

.form-error {
  font-size: 0.78rem;
  color: #e53e3e;
  margin-top: 5px;
  display: none;
}

.form-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: #166534;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  display: none;
  margin-top: 16px;
}

.form-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Noto Sans KR', sans-serif;
  box-shadow: 0 6px 20px rgba(45, 122, 58, 0.3);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(45, 122, 58, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #141a14;
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 300px;
}

.footer-logo-text .main {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
}

.footer-logo-text .sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: white;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

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

.footer-contact-item .icon {
  font-size: 0.9rem;
  margin-top: 2px;
  opacity: 0.6;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 140px 0 60px;
  }

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

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

  .about-image-stack {
    height: 380px;
    order: -1;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

@media (max-width: 768px) {
  .section-padding {
    padding: 64px 0;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-inner {
    padding: 120px 0 48px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stat .num {
    font-size: 1.5rem;
  }

  .hero-visual {
    grid-template-columns: 1fr 1fr;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

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

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

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

/* ============================================
   PRODUCT MODAL STYLES
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: white;
  width: 100%;
  max-width: 900px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f8f8f8;
  transform: rotate(90deg);
  color: var(--primary);
}

.modal-content {
  display: flex;
  min-height: 500px;
}

.modal-img-side {
  flex: 1;
  background: #f9f7f2;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-img-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: white;
  padding: 32px;
  /* 이미지 주변 여백 추가 */
}

.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  /* 이미지 테두리 둥글게 */
  border: 1px solid rgba(0, 0, 0, 0.05);
  /* 미세한 테두리 감각 추가 */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  /* 부유감 있는 그림자 */
  transition: transform 0.3s ease;
}

.modal-img-tabs {
  display: flex;
  justify-content: center;
  padding: 16px;
  gap: 12px;
  background: white;
  border-top: 1px solid var(--border);
}

.modal-tab {
  flex: 0 1 auto;
  min-width: 100px;
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.modal-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(45, 122, 58, 0.25);
  transform: translateY(-1px);
}

.modal-tab:hover:not(.active) {
  background: #f8f8f8;
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.modal-info-side {
  flex: 1.2;
  padding: 48px;
  display: flex;
  flex-direction: column;
}

.modal-category {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.2;
}

.modal-desc {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 32px;
}

.modal-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.modal-specs .spec-tag {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.modal-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

.feature-item .icon {
  font-size: 1.1rem;
}

.modal-footer {
  margin-top: auto;
}

.modal-footer .btn-primary {
  width: 100%;
  text-align: center;
  display: block;
}

/* Modal Responsive */
@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
  }

  .modal-img-side {
    height: 300px;
  }

  .modal-info-side {
    padding: 32px 24px;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-container {
    max-height: 90vh;
    overflow-y: auto;
  }
}