/* ==========================================================================
   Home Party Hibachi — Base (v2)
   重置 / 排版 / 按钮 / 容器 / 通用工具类
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--hpb-black);
  color: var(--hpb-text);
  font-family: var(--hpb-font-body);
  font-size: var(--hpb-fs-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* --------------------------------------------------------------------------
   Elementor 兼容：铺满容器的图片
   ★ Elementor 的 frontend.css 里有 `.elementor img { height: auto }`，
     特异性 (0,1,1) 高于我们的单类选择器 (0,1,0)，会把所有 object-fit:cover
     的图压回原始高度 —— 表现就是图片不铺满、下面留一块空白。
     这里把类名写两遍拿到 (0,2,0) 盖回去。看着怪，但比给每张图加包装类干净，
     也不依赖 body 上的类。新增铺满型图片记得往这个列表里加一行。
   -------------------------------------------------------------------------- */
.hpb-hero__img.hpb-hero__img,
.hpb-hero__video.hpb-hero__video,
.hpb-pagehead__img.hpb-pagehead__img,
.hpb-bookcta__img.hpb-bookcta__img,
.hpb-tile__img.hpb-tile__img,
.hpb-intro__figure.hpb-intro__figure img,
.hpb-loccard__media.hpb-loccard__media img,
.hpb-callout__media.hpb-callout__media img,
.hpb-protein.hpb-protein img,
.hpb-postcard__media.hpb-postcard__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

/* --------------------------------------------------------------------------
   标题
   ★ 只有 .hpb-display 用衬线。其余标题走 Inter。
     小字号用装饰衬线是"廉价戏服感"的主要来源。
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--hpb-font-body);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hpb-display {
  font-family: var(--hpb-font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Cormorant 默认用旧式数字：0 会缩到小写高度，"01" 看起来像 "oI"、"5.0" 像 "5.o"。
   凡是用衬线显示数字的地方都要强制等高数字，否则价格和电话会显得很业余。 */
.hpb-display,
.hpb-step__num,
.hpb-infocard__list b,
.hpb-phone__num,
.hpb-ratingbar__score,
.hpb-footer__contact a,
.hpb-footer__contact .hpb-footer__val {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

::selection { background: var(--hpb-brass); color: var(--hpb-black); }
:focus-visible { outline: 2px solid var(--hpb-brass); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   容器
   -------------------------------------------------------------------------- */
.hpb-container {
  width: 100%;
  max-width: var(--hpb-container);
  margin-inline: auto;
  padding-inline: var(--hpb-gutter);
}
.hpb-container--narrow { max-width: var(--hpb-container-nr); }

.hpb-section { padding-block: var(--hpb-section-y); position: relative; }
.hpb-section--ink { background: var(--hpb-ink); }

.hpb-hairline {
  height: 1px; border: 0; margin: 0;
  background: var(--hpb-line);
}

/* --------------------------------------------------------------------------
   排版工具
   -------------------------------------------------------------------------- */

/* 分区上方的小字。用暗金而不是亮金，克制才贵 */
.hpb-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  font-size: var(--hpb-fs-2xs);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hpb-brass);
}
/* 小字前面的短横线，比"居中小标题"更有编辑感 */
.hpb-eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  flex: none;
  background: var(--hpb-brass-dim);
}
.hpb-eyebrow--plain::before { display: none; }

.hpb-h2 { font-size: var(--hpb-fs-h2); margin-top: 1.1rem; }

.hpb-lead {
  font-size: var(--hpb-fs-lead);
  color: var(--hpb-text-dim);
  line-height: 1.85;
}

/* 分区头：默认左对齐 —— 全部居中是模板感的主要来源 */
.hpb-secthead { max-width: 30ch; }
.hpb-secthead .hpb-lead { margin-top: 1.25rem; max-width: 46ch; }

/* 左标题 / 右导语 的不对称排布 */
.hpb-secthead--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  max-width: none;
}
.hpb-secthead--split .hpb-lead { margin-top: 0; padding-bottom: 0.4rem; }

@media (max-width: 820px) {
  .hpb-secthead--split { grid-template-columns: 1fr; align-items: start; gap: 1.25rem; }
}

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

/* --------------------------------------------------------------------------
   按钮
   ★ 无渐变、无发光、近乎直角。哑光实心才是高端金的样子。
   -------------------------------------------------------------------------- */
.hpb-btn {
  --_bg: transparent;
  --_fg: var(--hpb-text);
  --_bd: var(--hpb-line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 1.05em 2.2em;
  background: var(--_bg);
  color: var(--_fg);
  border: 1px solid var(--_bd);
  border-radius: var(--hpb-radius);
  font-size: var(--hpb-fs-2xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--hpb-dur) var(--hpb-ease),
              color var(--hpb-dur) var(--hpb-ease),
              border-color var(--hpb-dur) var(--hpb-ease);
}

/* 主按钮：哑光黄铜实心 */
.hpb-btn--brass {
  --_bg: var(--hpb-brass);
  --_fg: #17130C;
  --_bd: var(--hpb-brass);
}
.hpb-btn--brass:hover { --_bg: var(--hpb-champagne); --_bd: var(--hpb-champagne); }

/* 次按钮：细描边 */
.hpb-btn--ghost { --_fg: var(--hpb-champagne); --_bd: var(--hpb-line-strong); }
.hpb-btn--ghost:hover { --_bd: var(--hpb-brass); --_bg: rgba(193, 162, 101, 0.07); }

.hpb-btn--sm { padding: 0.85em 1.6em; }
.hpb-btn--block { width: 100%; }

/* 文字链接式按钮，带一条会伸长的下划线 */
.hpb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding-bottom: 0.35rem;
  font-size: var(--hpb-fs-2xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hpb-champagne);
  border-bottom: 1px solid var(--hpb-line-strong);
  transition: border-color var(--hpb-dur) var(--hpb-ease);
}
.hpb-link:hover { border-color: var(--hpb-champagne); }
/* flex 容器里的图标要锁死尺寸，否则会被 svg{max-width:100%} 压扁 */
.hpb-link svg, .hpb-btn svg { flex: none; }

/* --------------------------------------------------------------------------
   表单控件
   -------------------------------------------------------------------------- */
.hpb-field {
  width: 100%;
  padding: 1.1em 1.25em;
  background: rgba(15, 13, 10, 0.6);
  color: var(--hpb-text);
  border: 1px solid var(--hpb-line-strong);
  border-radius: var(--hpb-radius);
  transition: border-color var(--hpb-dur) var(--hpb-ease);
}
.hpb-field::placeholder { color: var(--hpb-text-dim); }
.hpb-field:hover, .hpb-field:focus { border-color: var(--hpb-brass); outline: none; }
.hpb-field.is-invalid { border-color: var(--hpb-ember); }

.hpb-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='8' fill='none'%3E%3Cpath d='M1 1l5.5 5.5L12 1' stroke='%23C1A265' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  cursor: pointer;
}
.hpb-select option { background: var(--hpb-surface); color: var(--hpb-text); }

/* --------------------------------------------------------------------------
   进场动画
   -------------------------------------------------------------------------- */
.hpb-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--hpb-ease), transform 1s var(--hpb-ease);
}
.hpb-reveal.is-in { opacity: 1; transform: none; }

.hpb-reveal[data-delay="1"] { transition-delay: 0.09s; }
.hpb-reveal[data-delay="2"] { transition-delay: 0.18s; }
.hpb-reveal[data-delay="3"] { transition-delay: 0.27s; }
.hpb-reveal[data-delay="4"] { transition-delay: 0.36s; }
.hpb-reveal[data-delay="5"] { transition-delay: 0.45s; }

.hpb-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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