/* ========================================
   MUSOYU (無牛有) — style.css
   Deep Red + Cream White + Charcoal Gray
   ======================================== */

/* --- Color Variables --- */
:root {
  --red: #1A1A1A;
  --red-dark: #111111;
  --red-light: #333333;
  --cream: #F7F5F2;
  --cream-light: #FAFAF8;
  --cream-warm: #EDEBE7;
  --charcoal: #2C2C2C;
  --dark: #0D0D0D;
  --gray: #888888;
  --gray-light: #C0C0C0;
  --white: #FFFFFF;
  --gold: #B8965A;
  --gold-light: #D4B87A;
  --gold-dark: #8A6F3E;
  --serif: 'Noto Serif KR', 'Source Han Serif', Georgia, serif;
  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--dark);
  background: var(--cream-light);
}

a { color: inherit; text-decoration: none; transition: color 0.3s, opacity 0.3s; }
a:hover { opacity: 0.7; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* --- Loading Screen --- */
.fade-screen {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1s ease, visibility 1s ease;
}
.fade-screen.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-text {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.3em;
  color: var(--cream);
  animation: loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* --- Mobile Navigation --- */
.mobile-navigation {
  position: fixed; top: 0; left: -100%;
  width: 85%; max-width: 380px; height: 100vh; z-index: 9999;
  background: var(--white);
  transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-navigation.open { left: 0; }
.mobile-nav-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; border-bottom: 1px solid var(--cream-warm);
}
.mobile-nav-title { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.15em; color: var(--gray); }
.mobile-nav-close { font-size: 28px; line-height: 1; }
.mobile-nav-links { padding: 24px; }
.mobile-nav-item {
  display: block; padding: 14px 0;
  font-family: var(--serif); font-size: 20px; font-weight: 300;
  letter-spacing: 0.05em; border-bottom: 1px solid var(--cream);
}
.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.4); opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }

/* --- Header --- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; height: 52px; z-index: 1000;
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.site-header.hidden { transform: translateY(-100%); }
.site-header.scrolled { box-shadow: 0 1px 10px rgba(0,0,0,0.04); }

.header-inner {
  display: flex; align-items: center; height: 100%;
  max-width: 1400px; margin: 0 auto; padding: 0 32px;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 4px; margin-right: 16px;
}
.hamburger span { display: block; width: 18px; height: 1.5px; background: var(--charcoal); transition: transform 0.3s; }

.logo {
  font-family: var(--serif); font-size: 15px; font-weight: 600;
  letter-spacing: 0.12em; white-space: nowrap; color: var(--gold-dark);
}

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; align-items: center; gap: 0; }
.main-nav > ul > li { padding: 0 20px; }
.main-nav > ul > li > a {
  display: block; padding: 14px 0;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--charcoal);
  transition: color 0.3s;
}
.main-nav > ul > li > a:hover { color: var(--gold); opacity: 1; }
.main-nav a.active { color: var(--gold); opacity: 1; font-weight: 600; }

/* --- Hero --- */
.hero-section { position: relative; width: 100%; height: 70vh; min-height: 500px; overflow: hidden; margin-top: 52px; }
.hero-image-wrap { position: absolute; inset: 0; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; color: var(--white);
  background: linear-gradient(to bottom, rgba(92, 0, 0, 0.2), rgba(92, 0, 0, 0.65));
}
.hero-subtitle {
  font-family: var(--sans); font-size: 13px; font-weight: 300;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px;
  opacity: 0.85;
}
.hero-title {
  font-family: var(--serif); font-size: 52px; font-weight: 300;
  letter-spacing: 0.06em; line-height: 1.4; margin-bottom: 32px;
}
.hero-brand { font-weight: 600; }
.hero-cta {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.7); padding: 14px 40px;
  color: var(--white); transition: background 0.3s, border-color 0.3s;
}
.hero-cta:hover { background: var(--white); color: var(--gold-dark); border-color: var(--white); opacity: 1; }

/* --- Philosophy Section (無牛有 3 columns) --- */
.philosophy-section { padding: 80px 32px; background: var(--white); }
.philosophy-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.philosophy-inner > p {
  font-family: var(--serif); font-size: 14px; color: var(--gray);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 48px;
}
.philosophy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.philosophy-item { text-align: center; }
.philosophy-char {
  font-family: var(--serif); font-size: 72px; font-weight: 300;
  color: var(--gold); display: block; margin-bottom: 16px; line-height: 1;
}
.philosophy-item h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 400;
  margin-bottom: 12px; color: var(--charcoal);
}
.philosophy-item p { font-size: 13px; color: var(--gray); line-height: 1.8; }

/* --- Products Section --- */
.home-products { max-width: 1400px; margin: 0 auto; padding: 80px 32px; }
.section-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 48px; border-bottom: 1px solid var(--cream-warm); padding-bottom: 16px;
}
.section-header h2 {
  font-family: var(--serif); font-size: 28px; font-weight: 400;
  letter-spacing: 0.04em; color: var(--charcoal);
}
.section-link {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em;
  color: var(--gold);
}
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.product-card.visible { opacity: 1; transform: translateY(0); }
.product-image-wrap {
  display: block; overflow: hidden; margin-bottom: 16px;
  background: var(--cream); position: relative;
}
.product-image-wrap img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-image-wrap img { transform: scale(1.06); }
.product-tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--gold); color: var(--white); padding: 4px 10px;
}
.product-info { text-align: center; }
.product-name {
  font-family: var(--serif); font-size: 15px; font-weight: 400;
  margin-bottom: 6px; letter-spacing: 0.02em;
}
.product-copy { font-size: 12px; color: var(--gray); margin-bottom: 8px; line-height: 1.6; }
.product-desc { font-size: 12px; color: var(--gray-light); line-height: 1.6; }

/* --- CTA Section --- */
.cta-section {
  padding: 100px 32px;
  background: var(--charcoal);
  color: var(--cream-light);
  text-align: center;
}
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-inner h2 {
  font-family: var(--serif); font-size: 32px; font-weight: 300;
  letter-spacing: 0.06em; margin-bottom: 16px;
}
.cta-inner p {
  font-size: 14px; color: var(--gray-light); line-height: 1.8; margin-bottom: 32px;
}
.cta-btn {
  display: inline-block;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--gold); padding: 14px 40px;
  color: var(--white); transition: background 0.3s;
}
.cta-btn:hover { background: var(--gold); opacity: 1; }

/* --- Page Hero --- */
.page-hero {
  padding: 140px 32px 60px;
  text-align: center;
  background: var(--white);
  margin-top: 52px;
}
.page-hero h1 {
  font-family: var(--serif); font-size: 40px; font-weight: 300;
  letter-spacing: 0.08em; color: var(--charcoal); margin-bottom: 12px;
}
.page-hero p {
  font-size: 14px; color: var(--gray); letter-spacing: 0.06em;
}

/* --- Section Title --- */
.section-title-block {
  font-family: var(--serif); font-size: 28px; font-weight: 400;
  text-align: center; margin-bottom: 40px; color: var(--charcoal);
}

/* --- Story Page --- */
.story-content {
  max-width: 800px; margin: 0 auto; padding: 80px 32px;
}
.story-block { margin-bottom: 80px; }
.story-block h2 {
  font-family: var(--serif); font-size: 24px; font-weight: 400;
  color: var(--gold); margin-bottom: 24px;
  padding-bottom: 12px; border-bottom: 1px solid var(--cream-warm);
}
.story-block p {
  font-size: 14px; color: var(--charcoal); line-height: 2; margin-bottom: 16px;
}
.story-block .story-image {
  margin: 32px 0; border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.story-block .story-image img { width: 100%; }
.story-quote {
  font-family: var(--serif); font-size: 18px; font-weight: 300;
  color: var(--gold); line-height: 1.9; font-style: italic;
  padding: 32px 0; border-top: 1px solid var(--cream-warm);
  border-bottom: 1px solid var(--cream-warm);
  margin: 32px 0;
}
.story-values {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 32px;
}
.value-item {
  padding: 32px; border: 1px solid var(--cream-warm);
  text-align: center; transition: border-color 0.3s;
}
.value-item:hover { border-color: var(--gold-light); }
.value-item h4 {
  font-family: var(--serif); font-size: 16px; font-weight: 400;
  margin-bottom: 8px; color: var(--charcoal);
}
.value-item p { font-size: 13px; color: var(--gray); line-height: 1.7; }

/* --- Products Page --- */
.products-grid {
  max-width: 1200px; margin: 0 auto; padding: 60px 32px 80px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.products-full-card {
  background: var(--white);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.products-full-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.products-full-card .card-image {
  position: relative; overflow: hidden;
  background: var(--cream);
}
.products-full-card .card-image img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease;
}
.products-full-card:hover .card-image img { transform: scale(1.05); }
.products-full-card .card-body { padding: 24px; }
.products-full-card .card-origin {
  font-size: 10px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px;
}
.products-full-card h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 400;
  margin-bottom: 8px; color: var(--charcoal);
}
.products-full-card .card-desc {
  font-size: 13px; color: var(--gray); line-height: 1.7;
}
.products-full-card .card-tag {
  display: inline-block; margin-top: 12px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.1em;
  padding: 4px 10px; background: var(--cream); color: var(--charcoal);
}

/* --- Wholesale / Contact Form --- */
.wholesale-section { padding: 80px 32px; background: var(--white); }
.wholesale-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.wholesale-inner h2 {
  font-family: var(--serif); font-size: 32px; font-weight: 400;
  margin-bottom: 16px; color: var(--charcoal);
}
.wholesale-lead { font-family: var(--serif); font-size: 16px; margin-bottom: 12px; color: var(--charcoal); }
.wholesale-desc { font-size: 13px; color: var(--gray); margin-bottom: 40px; }
.wholesale-form { text-align: left; }
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-row input, .form-row select { flex: 1; }
.wholesale-form input,
.wholesale-form textarea,
.wholesale-form select {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--cream-warm); background: var(--cream-light);
  font-size: 14px; outline: none;
  transition: border-color 0.3s;
  appearance: none; cursor: pointer;
}
.wholesale-form input:focus,
.wholesale-form textarea:focus,
.wholesale-form select:focus { border-color: var(--gold-light); }
.wholesale-form textarea { min-height: 120px; resize: vertical; margin-bottom: 20px; }
.wholesale-submit {
  display: block; width: 100%; padding: 16px;
  background: var(--gold-dark); color: var(--white);
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer;
  transition: background 0.3s;
}
.wholesale-submit:hover { background: var(--gold); opacity: 1; }

/* --- Contact Info --- */
.contact-info-section {
  padding: 60px 32px; text-align: center;
}
.contact-info-inner { max-width: 400px; margin: 0 auto; }
.contact-info-inner h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 400;
  margin-bottom: 20px;
}
.contact-info-inner p { font-size: 14px; color: var(--gray); line-height: 2; }

/* --- Footer --- */
.site-footer { padding: 60px 32px 32px; background: var(--charcoal); color: var(--cream-light); }
.footer-inner { max-width: 1400px; margin: 0 auto; text-align: center; }
.footer-logo { font-family: var(--serif); font-size: 18px; font-weight: 400; letter-spacing: 0.12em; margin-bottom: 8px; }
.footer-slogan { font-family: var(--serif); font-size: 13px; color: var(--gray-light); margin-bottom: 32px; }
.footer-nav { display: flex; justify-content: center; gap: 24px; margin-bottom: 32px; }
.footer-nav a { font-size: 12px; letter-spacing: 0.08em; color: var(--cream-warm); }
.footer-nav a:hover { color: var(--white); opacity: 1; }
.footer-info { margin-bottom: 32px; }
.footer-info p { font-size: 12px; color: var(--gray-light); line-height: 1.8; }
.footer-copy { font-size: 11px; color: var(--gray); padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); }

/* --- Kakao Button --- */
.kakao-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #FEE500; color: #3C1E1E;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}
.kakao-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.2); opacity: 1; }

/* --- Scroll Animations --- */
.scroll-animate {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-animate.visible { opacity: 1; transform: translateY(0); }
.product-card { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.product-card.visible { opacity: 1; transform: translateY(0); }

/* --- Success Modal --- */
#success-modal {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.5);
  justify-content: center; align-items: center;
}
.modal-content {
  background: #fff; border-radius: 12px; padding: 40px 32px;
  max-width: 400px; width: 90%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .main-nav > ul > li { padding: 0 14px; }
  .hero-title { font-size: 40px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-section { height: 60vh; min-height: 400px; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 11px; }
  .section-header h2 { font-size: 22px; }
  .story-values { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 0; }
  .page-hero { padding: 120px 24px 40px; }
  .page-hero h1 { font-size: 30px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 16px; }
  .logo { font-size: 12px; letter-spacing: 0.08em; }
  .hero-section { height: 50vh; min-height: 320px; }
  .hero-title { font-size: 26px; }
  .hero-cta { padding: 12px 28px; font-size: 11px; }
  .home-products, .philosophy-section, .cta-section, .story-content, .wholesale-section { padding: 48px 16px; }
  .product-grid { gap: 12px; }
  .product-name { font-size: 13px; }
  .product-copy { font-size: 11px; }
  .footer-nav { flex-direction: column; align-items: center; gap: 8px; }
  .page-hero h1 { font-size: 24px; }
  .section-title-block { font-size: 22px; }
  .philosophy-char { font-size: 56px; }
}
