/* 霧丘烘焙教室（huiji 示意站） */

  /* ==== 設計變數（六個區塊共用，整頁一份） ==== */
  :root {
    color-scheme: light;
    --hj-bg: #FAF7F2;
    --hj-surface: #FFFFFF;
    --hj-surface-alt: #F1EBE2;
    --hj-text: #1F1B16;
    --hj-text-muted: #5E554A;
    --hj-primary: #A3441C;
    --hj-primary-hover: #86361A;
    --hj-on-primary: #FFFFFF;
    --hj-danger: #B42318;
    --hj-success: #2F6B3B;
    --hj-border: #7A6F62;
    --hj-divider: #E5DCD0;
    --hj-focus: #1F4FB8;
    --hj-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    --hj-font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    --hj-radius-sm: 6px;
    --hj-radius-md: 12px;
    --hj-radius-lg: 20px;
  }
  *, *::before, *::after { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--hj-bg);
    color: var(--hj-text);
    font-family: var(--hj-font-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
  }

  /* ==== 導覽列 .hj-nav（複製這段） ==== */
  .hj-nav, .hj-nav *, .hj-nav *::before, .hj-nav *::after { box-sizing: border-box; }
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }
  .hj-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0 16px;
    background: var(--hj-surface);
    border-bottom: 1px solid var(--hj-divider);
  }
  .hj-nav [hidden] { display: none !important; }
  .hj-nav-bar {
    max-width: 1120px;
    min-height: 56px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .hj-nav-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    font-family: var(--hj-font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--hj-text);
    text-decoration: none;
    overflow-wrap: anywhere;
    border-radius: 2px;
  }
  .hj-nav-links { display: none; }
  .hj-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 16px;
    line-height: 1.2;
    color: var(--hj-text);
    text-decoration: none;
    border-radius: 2px;
  }
  .hj-nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }
  .hj-nav-menu-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 12px;
    font: inherit;
    font-size: 16px;
    line-height: 1.2;
    color: var(--hj-text);
    background: var(--hj-surface);
    border: 1px solid var(--hj-border);
    border-radius: var(--hj-radius-sm);
    cursor: pointer;
  }
  .hj-nav-menu-btn svg { display: block; flex: none; }
  .hj-nav-menu-btn[aria-expanded="true"] .hj-nav-icon-open,
  .hj-nav-menu-btn[aria-expanded="false"] .hj-nav-icon-close { display: none; }
  .hj-nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0 16px;
    background: var(--hj-surface);
    border-bottom: 1px solid var(--hj-divider);
  }
  .hj-nav-panel a {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 18px;
    line-height: 1.4;
    color: var(--hj-text);
    text-decoration: none;
  }
  .hj-nav-panel a + a { border-top: 1px solid var(--hj-divider); }
  .hj-nav-brand:focus-visible, .hj-nav-link:focus-visible, .hj-nav-menu-btn:focus-visible, .hj-nav-panel a:focus-visible {
    outline: 2px solid var(--hj-focus);
    outline-offset: 2px;
  }
  @media (min-width: 768px) {
    .hj-nav { padding: 0 32px; }
    .hj-nav-bar { min-height: 64px; }
    .hj-nav-links { display: flex; gap: 32px; }
    .hj-nav-menu-btn, .hj-nav-panel { display: none !important; }
  }

  /* ==== 淺色 hero .hj-hero（複製這段） ==== */
  .hj-hero, .hj-hero *, .hj-hero *::before, .hj-hero *::after { box-sizing: border-box; }
  .hj-hero { padding: 48px 16px; scroll-margin-top: 72px; }
  .hj-hero-inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 32px; }
  .hj-hero-copy { min-width: 0; }
  .hj-hero-tag {
    display: inline-block;
    margin: 0 0 16px;
    padding: 0 8px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--hj-text-muted);
    border: 1px solid var(--hj-border);
    border-radius: var(--hj-radius-sm);
  }
  .hj-hero-title {
    margin: 0;
    font-family: var(--hj-font-display);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .hj-hero-title span { display: block; }
  .hj-hero-sub {
    max-width: 32em;
    margin: 16px 0 0;
    font-size: 18px;
    line-height: 1.7;
    color: var(--hj-text-muted);
    overflow-wrap: anywhere;
  }
  .hj-hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 24px;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--hj-on-primary);
    background: var(--hj-primary);
    border-radius: var(--hj-radius-md);
    text-decoration: none;
    transition: background-color 150ms ease;
  }
  .hj-hero-cta:hover, .hj-hero-cta:active { background: var(--hj-primary-hover); }
  .hj-hero-cta:focus-visible { outline: 2px solid var(--hj-focus); outline-offset: 2px; }
  .hj-hero-media { min-width: 0; }
  .hj-hero-img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: var(--hj-radius-lg); }
  @media (min-width: 768px) {
    .hj-hero {
      display: flex;
      align-items: center;
      min-height: calc(100vh - 64px);
      padding: 96px 32px;
      scroll-margin-top: 80px;
    }
    .hj-hero-inner { width: 100%; grid-template-columns: 7fr 5fr; align-items: center; }
    .hj-hero-title { font-size: 48px; }
    .hj-hero-sub { margin-top: 24px; font-size: 20px; }
    .hj-hero-cta { display: inline-flex; width: auto; margin-top: 32px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hj-hero *, .hj-hero *::before, .hj-hero *::after { transition: none !important; animation: none !important; }
  }

  /* ==== 客戶見證 .hj-testi（複製這段） ==== */
  .hj-testi, .hj-testi *, .hj-testi *::before, .hj-testi *::after { box-sizing: border-box; }
  .hj-testi { padding: 48px 16px; scroll-margin-top: 72px; }
  .hj-testi-inner { max-width: 1120px; margin: 0 auto; }
  .hj-testi-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
  .hj-testi-title {
    margin: 0;
    font-family: var(--hj-font-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
  }
  .hj-testi-tag {
    padding: 0 8px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--hj-text-muted);
    border: 1px solid var(--hj-border);
    border-radius: var(--hj-radius-sm);
  }
  .hj-testi-list { display: grid; gap: 16px; }
  .hj-testi-card {
    min-width: 0;
    margin: 0;
    padding: 24px;
    background: var(--hj-surface);
    border: 1px solid var(--hj-divider);
    border-radius: var(--hj-radius-md);
  }
  .hj-testi-quote { margin: 0; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
  .hj-testi-quote p { margin: 0; }
  .hj-testi-card--lead .hj-testi-quote { font-size: 18px; }
  .hj-testi-by { display: flex; flex-direction: column; margin-top: 16px; }
  .hj-testi-name { font-size: 16px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
  .hj-testi-meta { font-size: 14px; line-height: 1.5; color: var(--hj-text-muted); overflow-wrap: anywhere; }
  @media (min-width: 768px) {
    .hj-testi { padding: 96px 32px; scroll-margin-top: 80px; }
    .hj-testi-head { margin-bottom: 32px; }
    .hj-testi-title { font-size: 32px; }
    .hj-testi-list { grid-template-columns: 1fr 1fr; gap: 24px; }
    .hj-testi-card--lead { grid-column: 1 / -1; padding: 32px; }
    .hj-testi-card--lead .hj-testi-quote { font-size: 20px; }
    .hj-testi-by { flex-direction: row; flex-wrap: wrap; align-items: baseline; }
    .hj-testi-meta::before { content: "／"; }
  }

  /* ==== 常見問題 .hj-faq（複製這段；開合用原生 <details>，不需要 JS） ==== */
  .hj-faq, .hj-faq *, .hj-faq *::before, .hj-faq *::after { box-sizing: border-box; }
  .hj-faq { padding: 48px 16px; background: var(--hj-surface-alt); scroll-margin-top: 72px; }
  .hj-faq-inner { max-width: 1120px; margin: 0 auto; }
  .hj-faq-title {
    margin: 0 0 24px;
    font-family: var(--hj-font-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
  }
  .hj-faq-list { max-width: 800px; border-top: 1px solid var(--hj-divider); }
  .hj-faq-item { border-bottom: 1px solid var(--hj-divider); }
  .hj-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 12px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
    border-radius: 2px;
  }
  .hj-faq-q::-webkit-details-marker { display: none; }
  .hj-faq-q::marker { content: ""; }
  .hj-faq-q:focus-visible { outline: 2px solid var(--hj-focus); outline-offset: 2px; }
  .hj-faq-q-text { min-width: 0; overflow-wrap: anywhere; }
  .hj-faq-icon { position: relative; flex: none; width: 20px; height: 20px; }
  .hj-faq-icon::before, .hj-faq-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: currentColor;
    border-radius: 1px;
  }
  .hj-faq-icon::before { width: 16px; height: 2px; margin: -1px 0 0 -8px; }
  .hj-faq-icon::after { width: 2px; height: 16px; margin: -8px 0 0 -1px; transition: transform 150ms ease; }
  .hj-faq-item[open] .hj-faq-icon::after { transform: scaleY(0); }
  .hj-faq-a { padding: 0 32px 16px 0; overflow-wrap: anywhere; }
  .hj-faq-a p { margin: 0; }
  @media (min-width: 768px) {
    .hj-faq { padding: 96px 32px; scroll-margin-top: 80px; }
    .hj-faq-title { margin-bottom: 32px; font-size: 32px; }
    .hj-faq-q { font-size: 20px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hj-faq *, .hj-faq *::before, .hj-faq *::after { transition: none !important; animation: none !important; }
  }

  /* ==== 聯絡我們＋表單元件 .hj-contact / .hj-form（複製這段） ==== */
  .hj-contact, .hj-contact *, .hj-contact *::before, .hj-contact *::after { box-sizing: border-box; }
  .hj-contact { padding: 48px 16px; scroll-margin-top: 72px; }
  .hj-contact [hidden] { display: none !important; }
  .hj-contact-inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 24px; }
  .hj-contact-title {
    margin: 0 0 12px;
    font-family: var(--hj-font-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
  }
  .hj-contact-lead { margin: 0; color: var(--hj-text-muted); }
  .hj-contact-box {
    min-width: 0;
    padding: 16px;
    background: var(--hj-surface);
    border: 1px solid var(--hj-divider);
    border-radius: var(--hj-radius-md);
  }
  .hj-form { display: grid; gap: 24px; position: relative; }
  .hj-form-field { display: grid; gap: 8px; min-width: 0; }
  .hj-form-label { font-size: 16px; font-weight: 700; line-height: 1.4; }
  .hj-form-hint { margin-left: 8px; font-size: 14px; font-weight: 400; color: var(--hj-text-muted); }
  .hj-form-input {
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 11px 15px;
    font: inherit;
    font-size: 16px;
    line-height: 24px;
    color: var(--hj-text);
    background: var(--hj-surface);
    border: 1px solid var(--hj-border);
    border-radius: var(--hj-radius-sm);
    -webkit-appearance: none;
    appearance: none;
    scroll-margin-top: 96px;
  }
  textarea.hj-form-input { height: auto; line-height: 1.7; resize: vertical; }
  .hj-form-input[aria-invalid="true"] { padding: 10px 14px; border-width: 2px; border-color: var(--hj-danger); }
  .hj-form-input:focus-visible { outline: 2px solid var(--hj-focus); outline-offset: 2px; }
  .hj-form-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--hj-danger);
    overflow-wrap: anywhere;
  }
  .hj-form-error-dot { flex: none; margin-top: 6.5px; fill: currentColor; }
  /* 陷阱欄位：真人看不到、Tab 跳不到（tabindex="-1"），機器人會填 */
  .hj-form-trap { position: absolute; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; }
  .hj-form-trap input { font: inherit; font-size: 16px; }
  .hj-form-notice {
    display: grid;
    gap: 12px;
    padding: 12px 16px;
    background: var(--hj-surface-alt);
    border-left: 4px solid var(--hj-danger);
    border-radius: 0 var(--hj-radius-sm) var(--hj-radius-sm) 0;
    scroll-margin: 88px 0 16px;
  }
  .hj-form-notice-text { margin: 0; color: var(--hj-text); }
  .hj-form-notice-links { display: flex; flex-wrap: wrap; gap: 8px; }
  .hj-form-notice-link {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    color: var(--hj-text);
    text-decoration: none;
    background: var(--hj-surface);
    border: 1px solid var(--hj-border);
    border-radius: var(--hj-radius-sm);
    overflow-wrap: anywhere;
  }
  .hj-form-notice-link:hover { text-decoration: underline; text-underline-offset: 3px; }
  .hj-form-notice-link:focus-visible { outline: 2px solid var(--hj-focus); outline-offset: 2px; }
  .hj-form-turnstile { min-height: 65px; }
  .hj-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 24px;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--hj-on-primary);
    background: var(--hj-primary);
    border: 0;
    border-radius: var(--hj-radius-md);
    cursor: pointer;
    transition: background-color 150ms ease;
  }
  .hj-form-submit:hover:not(:disabled), .hj-form-submit:active:not(:disabled) { background: var(--hj-primary-hover); }
  .hj-form-submit:disabled { cursor: progress; }
  .hj-form-submit:focus-visible { outline: 2px solid var(--hj-focus); outline-offset: 2px; }
  .hj-form-spinner { display: inline-flex; }
  .hj-form-spinner svg { display: block; animation: hj-form-spin 900ms linear infinite; }
  @keyframes hj-form-spin { to { transform: rotate(360deg); } }
  .hj-form-success { display: grid; justify-items: start; gap: 8px; padding: 8px 0; scroll-margin: 88px 0 16px; }
  .hj-form-success-icon { display: block; color: var(--hj-success); }
  .hj-form-success-title {
    margin: 0;
    font-family: var(--hj-font-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    border-radius: 2px;
  }
  .hj-form-success-title:focus { outline: none; }
  .hj-form-success-title:focus-visible { outline: 2px solid var(--hj-focus); outline-offset: 2px; }
  .hj-form-success-text { margin: 0; }
  @media (min-width: 768px) {
    .hj-contact { padding: 96px 32px; scroll-margin-top: 80px; }
    .hj-contact-inner { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
    .hj-contact-title { font-size: 32px; }
    .hj-contact-box { padding: 32px; }
    .hj-form-submit { width: auto; min-width: 160px; justify-self: start; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hj-contact *, .hj-contact *::before, .hj-contact *::after { transition: none !important; animation: none !important; }
  }

  /* ==== 頁尾區塊 .hj-footer（複製這段） ==== */
  .hj-footer, .hj-footer *, .hj-footer *::before, .hj-footer *::after { box-sizing: border-box; }
  .hj-footer {
    background: var(--hj-surface-alt);
    border-top: 1px solid var(--hj-divider);
    color: var(--hj-text);
    padding: 48px 16px;
  }
  .hj-footer-inner { max-width: 1120px; margin: 0 auto; }
  .hj-footer-cols { display: grid; gap: 24px; }
  .hj-footer p { margin: 0; overflow-wrap: anywhere; }
  .hj-footer ul { list-style: none; margin: 0; padding: 0; }
  .hj-footer-brand {
    font-family: var(--hj-font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px !important;
  }
  .hj-footer-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    color: var(--hj-text);
    text-decoration: none;
    overflow-wrap: anywhere;
    border-radius: 2px;
  }
  .hj-footer-link:hover { text-decoration: underline; text-underline-offset: 3px; }
  .hj-footer-link:focus-visible { outline: 2px solid var(--hj-focus); outline-offset: 2px; }
  .hj-footer-meta {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--hj-divider);
    font-size: 14px;
    line-height: 1.7;
    color: var(--hj-text-muted);
  }
  @media (min-width: 768px) {
    .hj-footer { padding: 96px 32px; }
    .hj-footer-cols { grid-template-columns: 5fr 4fr 3fr; gap: 32px; }
  }
