/* =========================================================
   한마루푸드 — rebuilt stylesheet
   ========================================================= */
:root {
  --green-900: #16301f;
  --green-800: #1f3d2b;
  --green-600: #2f5d40;
  --cream-50:  #fbf8f2;
  --cream-100: #f4eee2;
  --cream-200: #e9dfcc;
  --tomato:    #d9532b;
  --tomato-d:  #b8411d;
  --mustard:   #e2a93b;
  --ink:       #26231f;
  --ink-soft:  #5c564d;
  --line:      #e3dacb;
  --white:     #ffffff;

  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-serif: "Noto Serif KR", "Apple Myungjo", serif;

  --radius: 18px;
  --shadow: 0 12px 32px rgba(31, 61, 43, .10);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream-50);
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
p { margin: 0; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--tomato);
}
.section-title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--green-900);
  margin-top: .35em;
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .section-title::after {
  content: ""; display: block; width: 44px; height: 3px; border-radius: 2px;
  background: var(--mustard); margin: 18px auto 0;
}
.section-lead { margin-top: 18px; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  text-decoration: none; transition: background .25s, color .25s, transform .25s, border-color .25s;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--tomato); color: var(--white); }
.btn-primary:hover { background: var(--tomato-d); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--green-900); }
.btn-outline { border-color: var(--green-800); color: var(--green-800); }
.btn-outline:hover { background: var(--green-800); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s;
  color: var(--white);
}
.site-header.is-scrolled {
  background: rgba(251, 248, 242, .94); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line); color: var(--green-900);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.3rem; }
.brand-text small { font-size: .62rem; letter-spacing: .3em; opacity: .8; margin-top: 3px; }

.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 8px 16px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .96rem; transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a.is-current { background: rgba(255,255,255,.18); }
.site-header.is-scrolled .main-nav a:hover,
.site-header.is-scrolled .main-nav a.is-current { background: var(--cream-100); }
.main-nav .nav-cta { background: var(--tomato); color: var(--white) !important; }
.main-nav .nav-cta:hover { background: var(--tomato-d) !important; }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; border: 0; background: none;
  color: inherit; cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
  position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor;
  transition: transform .3s, opacity .3s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: var(--white); overflow: hidden;
}
.hero-slides, .hero-slide, .hero-overlay { position: absolute; inset: 0; }
.hero-slide {
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.4s ease, transform 7s ease;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(22,48,31,.82) 0%, rgba(22,48,31,.55) 45%, rgba(22,48,31,.15) 100%),
    linear-gradient(0deg, rgba(0,0,0,.25), transparent 40%);
}
.hero-content { position: relative; padding-top: var(--header-h); max-width: 1180px; }
.hero .eyebrow { color: var(--mustard); }
.hero-title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.2; margin: 18px 0 24px;
}
.hero-title em { font-style: normal; color: #ffd27a; }
.hero-lead { max-width: 560px; font-size: clamp(1rem, 1.4vw, 1.12rem); opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-dots {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
}
.hero-dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.5); transition: width .3s, background .3s;
}
.hero-dots button.is-active { width: 32px; background: var(--white); }

/* ---------- Icons ---------- */
.icon { display: inline-block; width: 52px; height: 52px; object-fit: contain; }
.value-card .icon { margin-inline: auto; }

/* ---------- Values ---------- */
.values { position: relative; z-index: 2; margin-top: -90px; }
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.value-card { padding: 44px 36px; text-align: center; }
.value-card + .value-card { border-left: 1px solid var(--line); }
.value-card h3 {
  margin: 20px 0 12px; font-size: 1.05rem; letter-spacing: .12em; color: var(--green-900);
}
.value-card p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- About ---------- */
.about { padding: 140px 0 120px; }
.about-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.about-heading { position: sticky; top: calc(var(--header-h) + 32px); }
.about-body blockquote {
  margin: 0; position: relative; padding-left: 36px;
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.8; color: var(--green-900);
  border-left: 3px solid var(--mustard);
}
.signature {
  display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 40px;
  color: var(--ink-soft); font-size: .92rem;
}

/* ---------- Business ---------- */
.business {
  padding: 120px 0; background: var(--green-800); color: var(--white);
  background-image: radial-gradient(circle at 85% 10%, rgba(255,255,255,.06), transparent 40%);
}
.business .section-title { color: var(--white); }
.business-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.biz-card {
  position: relative; padding: 40px 32px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  transition: background .3s, transform .3s;
}
.biz-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.biz-num {
  position: absolute; top: 28px; right: 32px;
  font-family: var(--font-serif); font-size: 2.2rem; color: rgba(255,255,255,.14);
}
.biz-card h3 { margin: 22px 0 10px; font-size: 1.3rem; }
.biz-card p { opacity: .8; font-size: .96rem; }

/* ---------- Products ---------- */
.products { padding: 120px 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 0 var(--line); transition: transform .35s, box-shadow .35s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-100); }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product-card:hover img { transform: scale(1.06); }
.product-body { padding: 26px 28px 30px; }
.tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--tomato);
}
.product-body h3 { margin: 6px 0 10px; font-family: var(--font-serif); font-size: 1.4rem; color: var(--green-900); }
.product-body p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Lineup ---------- */
.lineup { padding: 120px 0; background: var(--cream-100); }
.tabs { max-width: 880px; margin-inline: auto; }
.tab-list {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  padding: 6px; background: var(--white); border-radius: 999px; width: fit-content; margin: 0 auto 40px;
  box-shadow: 0 1px 0 var(--line);
}
.tab-list button {
  border: 0; background: none; cursor: pointer; font: inherit; font-weight: 600;
  padding: 10px 24px; border-radius: 999px; color: var(--ink-soft); transition: background .25s, color .25s;
}
.tab-list button:hover { color: var(--green-900); }
.tab-list button[aria-selected="true"] { background: var(--green-800); color: var(--white); }
.tab-list button:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.tab-panel { animation: fadeUp .45s ease; }
.item-group + .item-group { margin-top: 32px; }
.item-group h4 {
  font-size: .82rem; letter-spacing: .14em; color: var(--tomato); margin-bottom: 14px; text-align: center;
}
.item-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px;
}
.item-list li {
  position: relative; padding: 16px 20px 16px 44px; background: var(--white);
  border-radius: 12px; font-weight: 600; color: var(--green-900);
  border: 1px solid var(--line);
}
.item-list li::before {
  content: ""; position: absolute; left: 20px; top: 50%; width: 10px; height: 10px;
  transform: translateY(-50%) rotate(45deg); background: var(--mustard); border-radius: 2px;
}
.lineup-note { margin-top: 40px; text-align: center; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact {
  position: relative; padding: 120px 0;
  background: linear-gradient(rgba(251,248,242,.93), rgba(251,248,242,.93)), url(../assets/img/contact-bg.jpg) center / cover;
}
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.contact dl { margin: 32px 0 36px; }
.contact dl div { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact dt { font-weight: 700; color: var(--tomato); font-size: .9rem; }
.contact dd { margin: 0; font-weight: 500; }
.contact dd a { text-decoration: none; }
.contact dd a:hover { color: var(--tomato); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map-card a { display: block; text-decoration: none; }
.map-card img {
  width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow);
  background: var(--cream-200); aspect-ratio: 504 / 310; object-fit: cover;
}
.map-link { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--green-800); }
.map-card a:hover .map-link { color: var(--tomato); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.72); padding: 48px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer-brand { display: flex; align-items: baseline; gap: 10px; color: var(--white); }
.footer-brand strong { font-family: var(--font-serif); font-size: 1.2rem; }
.footer-brand span { font-size: .7rem; letter-spacing: .25em; opacity: .7; }
.copy { width: 100%; opacity: .55; font-size: .82rem; }

/* ---------- To-top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; background: var(--green-800);
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s, transform .3s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .business-grid { grid-template-columns: 1fr; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-heading { position: static; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .container { width: calc(100% - 32px); }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto; background: var(--cream-50); color: var(--green-900);
    padding: 12px 16px 24px; box-shadow: 0 12px 24px rgba(0,0,0,.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 14px 16px; border-radius: 12px; }
  .main-nav a:hover { background: var(--cream-100) !important; }
  .main-nav .nav-cta { text-align: center; margin-top: 8px; }
  .site-header.menu-open { background: var(--cream-50); color: var(--green-900); }

  .hero-overlay { background: linear-gradient(0deg, rgba(22,48,31,.88) 10%, rgba(22,48,31,.45) 100%); }
  .hero-content { padding-bottom: 60px; }
  .values { margin-top: -50px; }
  .values-grid { grid-template-columns: 1fr; }
  .value-card { padding: 32px 24px; }
  .value-card + .value-card { border-left: 0; border-top: 1px solid var(--line); }
  .about, .business, .products, .lineup, .contact { padding: 84px 0; }
  .about { padding-top: 100px; }
  .product-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 40px; }
  .tab-list { border-radius: 16px; width: 100%; }
  .tab-list button { flex: 1 1 40%; padding: 10px 12px; }
  .item-list { grid-template-columns: repeat(2, 1fr); }
  .item-list li { padding: 14px 12px 14px 34px; font-size: .92rem; }
  .item-list li::before { left: 14px; width: 8px; height: 8px; }
  .contact dl div { grid-template-columns: 64px 1fr; }
}
