/* ═══════════════════════════════════════════════════
   PAGE: BRAND — 品牌介紹頁（5 個品牌共用）
   前衛東方官網 V2
   ═══════════════════════════════════════════════════ */

/* ── Brand Hero：同 sub-hero 但有 logo ── */
.brand-hero {
  position: relative;
  height: 78vh;
  min-height: 560px;
  max-height: 860px;
  width: 100%;
  overflow: hidden;
  background: var(--dark, #2a2620);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.brand-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.68) saturate(1.05);
}

.brand-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 27, 24, 0.48) 0%,
    rgba(28, 27, 24, 0.28) 50%,
    rgba(28, 27, 24, 0.6) 100%
  );
}

.brand-hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 820px;
}

.brand-hero-tag {
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.5em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.brand-hero-logo {
  max-width: 280px;
  max-height: 90px;
  margin: 0 auto 22px;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.brand-hero-title-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 10px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.brand-hero-title-zh {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 22px;
}

.brand-hero-meta {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.15em;
  margin: 0 0 18px;
}

.brand-hero-desc {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 2;
  letter-spacing: 0.04em;
  max-width: 620px;
  margin: 0 auto;
}

.brand-hero-badge {
  display: inline-block;
  margin-top: 18px;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: #1c1b18;
  background: linear-gradient(135deg, #d4b97a, #9a8456);
  padding: 8px 18px;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(154, 132, 86, 0.45);
}

/* ── 品牌故事 split 左側 logo ── */
.brand-story-visual {
  position: relative;
  flex: 1;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--stone, #ebe7df);
  padding: 48px;
  overflow: hidden;
}

.brand-story-visual-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  filter: brightness(0.65);
}

.brand-story-visual-logo {
  position: relative;
  max-width: 240px;
  max-height: 100px;
  margin-bottom: 22px;
  z-index: 2;
  filter: brightness(0) invert(1);
}

.brand-story-visual-logo-text {
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: 0.2em;
  color: #fff;
  font-weight: 400;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.brand-story-visual-country {
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.8);
  z-index: 2;
}

/* ── 技術特色 bullet 卡片 ── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.tech-card {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line, #e2dfd9);
  border-top: 3px solid var(--accent, #9a8456);
  transition: transform 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.tech-card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: var(--accent, #9a8456);
  line-height: 1;
  font-weight: 400;
}

.tech-card-text {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink, #1c1b18);
  letter-spacing: 0.02em;
  margin: 0;
}

/* ── 產品 Gallery 輕量版 ── */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line, #e2dfd9);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent, #9a8456);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-color: var(--stone, #e8e4dc);
}

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

.product-card-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink, #1c1b18);
  margin: 0 0 10px;
  line-height: 1.55;
  min-height: 48px;
}

.product-card-desc {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(28, 27, 24, 0.72);
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  flex: 1;
}

.product-card-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--accent, #9a8456);
  text-transform: uppercase;
  margin-top: auto;
}

/* ── 應用案例 ── */
.case-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 4px;
  max-width: 1240px;
  margin: 0 auto;
}

.case-item {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.case-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(28, 27, 24, 0.1) 0%,
    rgba(28, 27, 24, 0.65) 100%);
  transition: background 0.3s ease;
  z-index: 1;
}

.case-item:hover::before {
  background: linear-gradient(180deg,
    rgba(28, 27, 24, 0.25) 0%,
    rgba(28, 27, 24, 0.8) 100%);
}

.case-item-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 22px 20px;
  z-index: 2;
}

.case-item-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: rgba(247, 245, 241, 0.7);
  text-transform: uppercase;
  margin: 0 0 6px;
}

.case-item-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0;
  line-height: 1.5;
}

/* ── 品牌 CTA 區 ── */
.brand-cta {
  text-align: center;
  padding: 80px 24px 96px;
  background: var(--dark, #2a2620);
  color: #fff;
}

.brand-cta .tag {
  color: var(--accent, #9a8456);
}

.brand-cta .title-lg {
  color: #fff;
  margin-bottom: 28px;
}

.brand-cta-desc {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 2;
  letter-spacing: 0.04em;
  max-width: 620px;
  margin: 0 auto 36px;
}

.brand-cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.brand-cta-actions .btn-gold,
.brand-cta-actions .btn-outline {
  min-width: 220px;
}

.brand-cta-actions .btn-outline {
  color: rgba(255, 255, 255, 0.9);
  border-color: var(--accent, #9a8456);
}

.brand-cta-actions .btn-outline:hover {
  background: var(--accent, #9a8456);
  color: #fff;
}

/* ── 認證徽章區 ── */
.brand-cert-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-cert-item {
  padding: 18px 28px;
  border: 1px solid var(--line, #e2dfd9);
  background: rgba(255, 255, 255, 0.55);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 13px;
  color: var(--ink, #1c1b18);
  letter-spacing: 0.08em;
  line-height: 1.6;
  min-width: 160px;
  text-align: center;
  border-top: 2px solid var(--accent, #9a8456);
}

.brand-cert-item strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--accent, #9a8456);
  margin-bottom: 6px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── 響應式 ── */
@media (max-width: 768px) {
  .brand-hero {
    height: 65vh;
    min-height: 460px;
  }
  .brand-story-visual {
    min-height: 280px;
    padding: 40px 24px;
  }
  .product-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .product-card-body {
    padding: 18px 16px 20px;
  }
  .product-card-title {
    font-size: 13px;
    min-height: auto;
  }
  .brand-cta {
    padding: 60px 24px 72px;
  }
  .brand-cta-actions .btn-gold,
  .brand-cta-actions .btn-outline {
    min-width: 200px;
  }
}

@media (max-width: 480px) {
  .product-gallery {
    grid-template-columns: 1fr;
  }
}
