@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@1,300;1,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400&display=swap&text=%E5%85%83%E6%B0%94%E7%84%95%E5%8F%91%E6%B8%85%E6%B6%A6%E9%99%8D%E7%81%AB%E5%81%A5%E8%84%BE%E8%88%92%E8%83%83%E5%A2%9E%E5%BC%BA%E4%BD%93%E8%B4%A8%E8%B0%83%E5%92%8C%E5%85%BB%E7%94%9F");
/* Jia Jia Heritage — Figma frame 29:2 "Jia Jia Herbal Tea" (1440 canvas). Prefix: .jjh- */

/* ---- "REAL BREWED" band (29:84 / 29:174 / 29:85 / 29:86) */
.jjh-band, .jjh-blend {
  position: relative; color: var(--white); text-align: center;
  background:
    linear-gradient(rgba(86, 57, 22, .78), rgba(86, 57, 22, .78)),
    url("../img/jia-jia-heritage/apothecary.webp") center 30% / cover no-repeat, var(--brown);
}
.jjh-band { padding: clamp(24px, 1.5vw, 22px) var(--gutter) clamp(24px, 1.9vw, 28px); }
.jjh-band h2 { font-weight: 600; font-size: clamp(28px, 3.33vw, 48px); line-height: 1.12; letter-spacing: -0.01em; }
.jjh-band p { font-size: clamp(17px, 2.08vw, 30px); letter-spacing: -0.02em; margin-top: 4px; }

/* ---- feature cards (31:183, 32:2812, 31:196) */
.jjh-features { background: var(--cream); padding: clamp(32px, 4.4vw, 64px) clamp(16px, 3.4vw, 49px) clamp(40px, 5vw, 72px); }
.jjh-features__grid { max-width: 1342px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.1vw, 30px); }
.jjh-card { position: relative; display: flex; flex-direction: column; border-radius: clamp(24px, 2.8vw, 40px); overflow: hidden;
  padding: clamp(20px, 2vw, 28px) 0 0; color: #1d1409; }
.jjh-card h3, .jjh-card p { padding: 0 clamp(20px, 3.2vw, 46px); }
.jjh-card h3 { font-weight: 600; font-size: clamp(26px, 3.2vw, 46px); line-height: 1.12; letter-spacing: -0.01em; }
.jjh-card p { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.12; color: #3b2c1d; margin-top: clamp(8px, 1vw, 14px); max-width: 21em; }
.jjh-card img { width: 100%; aspect-ratio: 336 / 272; object-fit: cover; margin-top: auto;
  -webkit-mask-image: linear-gradient(transparent, #000 14%); mask-image: linear-gradient(transparent, #000 14%); }
.jjh-card--cooling  { background: linear-gradient(#e4d9cc, #eee3da 52%); }
.jjh-card--brewed   { background: linear-gradient(#ddbfa2, #e3c8b0 52%); }
.jjh-card--heritage { background: linear-gradient(#f5d697, #f8e6c1 52%); }

/* ---- TASTE OF TRADITION (31:1319, 31:1321, 31:1323, 31:1340, 205:534, 31:1325) */
.jjh-tradition { position: relative; display: grid; grid-template-columns: 40% 1fr; align-items: center; overflow: hidden;
  background: radial-gradient(60% 55% at 22% 30%, #f0dcc4 0%, rgba(240,220,196,0) 70%),
              linear-gradient(#e9d0b6 0%, #e6c9ad 40%, #dcb79a 66%, #b9947c 100%);
  min-height: clamp(0px, 53.4vw, 769px); }
.jjh-tradition__copy { display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(40px, 5.5vw, 80px) 16px clamp(40px, 5vw, 72px) clamp(16px, 2vw, 28px); position: relative; z-index: 1; }
.jjh-tradition h2 { font-weight: 700; font-size: clamp(44px, 6.4vw, 92px); line-height: 1.04; letter-spacing: 0.01em; color: #6b3f17; }
.jjh-tradition__sub { font-style: italic; font-weight: 300; font-size: clamp(18px, 1.94vw, 28px); letter-spacing: -0.02em; color: #7d5b40; margin-top: clamp(12px, 1.6vw, 24px); }
.jjh-tradition__cn { font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif; font-size: clamp(20px, 2.15vw, 31px);
  letter-spacing: 0.12em; line-height: 1.75; color: #5a3b22; margin-top: clamp(8px, 1vw, 14px); }
.jjh-tradition__cn span + span::before { content: "\25C6"; display: inline-block; color: #e2a63a; font-size: .45em; vertical-align: middle;
  margin: 0 .55em 0 .25em; transform: scaleY(2.4); }
.jjh-tradition__img { position: relative; justify-self: end; align-self: stretch; width: 100%; height: 100%; object-fit: cover; object-position: left top;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%); mask-image: linear-gradient(90deg, transparent 0, #000 9%); }
.jjh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 76px; min-width: 274px; padding: 18px 32px;
  border-radius: 90px; background: #6b3f17; color: var(--white); font-weight: 600; font-size: 24px; line-height: 1.5; text-decoration: none;
  margin-top: clamp(20px, 2.6vw, 38px); transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.jjh-btn:hover { transform: translateY(-2px); background: #5a3412; box-shadow: 0 8px 18px rgba(86,57,22,.25); }
.jjh-btn:focus-visible, .jjh-card a:focus-visible { outline: 3px solid #0071ba; outline-offset: 3px; }
.jjh-btn--italic { font-style: italic; font-weight: 400; background: #7e5120; }

/* ---- The Blend band (31:1362 / 31:1363 / 31:1370-1372) */
.jjh-blend { padding: clamp(32px, 4vw, 57px) var(--gutter) clamp(36px, 3.6vw, 52px); background-position: center, center 62%, center; }
.jjh-blend__kicker { font-weight: 300; font-size: clamp(28px, 3.33vw, 48px); line-height: 1.2; }
.jjh-blend h2 { font-weight: 600; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.15; letter-spacing: -0.01em; }
.jjh-blend__text { font-style: italic; font-weight: 400; font-size: clamp(17px, 2.08vw, 30px); line-height: 1.2; letter-spacing: -0.02em; max-width: 1000px; margin: clamp(14px, 1.8vw, 26px) auto 0; }

/* ---- 11 Premium Herbs grid (226:732) */
.jjh-herbs { background: var(--cream); padding: clamp(36px, 6vw, 87px) clamp(16px, 2vw, 28px) clamp(48px, 6.5vw, 94px); }
.jjh-herbs__grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1188px; display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(28px, 4.2vw, 60px) clamp(12px, 1.3vw, 19px); }
.jjh-herb { flex: 0 0 calc((100% - 3 * clamp(12px, 1.3vw, 19px)) / 4); max-width: 284px; background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: 4px 6px 6px rgba(0, 0, 0, .22); display: flex; flex-direction: column; }
.jjh-herb img { width: 100%; aspect-ratio: 222 / 168; object-fit: cover; background: #f1ebe2; }
.jjh-herb h3 { font-weight: 700; font-size: clamp(17px, 1.53vw, 22px); line-height: 1.2; color: #000; padding: clamp(14px, 1.4vw, 20px) clamp(12px, 1.4vw, 20px) 4px; letter-spacing: -0.01em; }
.jjh-herb p { font-weight: 300; font-size: clamp(16px, 1.53vw, 22px); line-height: 1.3; color: #222; padding: 0 clamp(12px, 1.4vw, 20px) clamp(18px, 2.2vw, 32px); }

/* ---- CTA (31:1498) */
.jjh-cta { position: relative; min-height: clamp(0px, 24.4vw, 352px); display: flex; align-items: center;
  background: #e8cdb0 var(--cta-img, url("../img/jia-jia-heritage/cta-range.webp")) right 50% / auto 102% no-repeat; }
.jjh-cta__copy { width: 44.6%; padding: clamp(28px, 3vw, 40px) 16px clamp(28px, 3vw, 40px) clamp(16px, 4vw, 58px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.jjh-cta h2 { font-weight: 600; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.05; letter-spacing: -0.02em; color: #a37645; max-width: 14em; }
.jjh-cta .jjh-btn { margin-top: clamp(14px, 1.4vw, 20px); }

/* ---- responsive */
@media (max-width: 1100px) {
  .jjh-herb { flex-basis: calc((100% - 2 * clamp(12px, 1.3vw, 19px)) / 3); }
}
@media (max-width: 900px) {
  .jjh-features__grid { grid-template-columns: 1fr; max-width: 460px; }
  .jjh-card h3 { font-size: 34px; }
  .jjh-tradition { grid-template-columns: 1fr; min-height: 0; }
  .jjh-tradition__img { -webkit-mask-image: none; mask-image: none; height: auto; aspect-ratio: 666 / 611; object-position: center; }
  .jjh-cta { flex-direction: column; align-items: stretch; padding-bottom: 50vw;
    background: linear-gradient(#efd6bd, #efd6bd) top / 100% calc(100% - 50vw) no-repeat,
                #efd6bd var(--cta-img, url("../img/jia-jia-heritage/cta-range.webp")) 99% bottom / auto 52vw no-repeat; }
  .jjh-cta__copy { width: auto; padding: 32px var(--gutter) 8px; }
}
@media (max-width: 700px) {
  .jjh-herb { flex-basis: calc((100% - 12px) / 2); }
  .jjh-herb h3 { font-size: 16px; }
  .jjh-herb p { font-size: 15px; }
  .jjh-btn { min-height: 56px; min-width: 200px; font-size: 18px; padding: 12px 24px; }
  .jjh-tradition__cn { letter-spacing: .06em; }
}

/* Herb tiles: photo only; name + benefit appear on hover (desktop) or tap / keyboard focus (phones, keyboard users).
   The text stays in the page for Google and screen readers. */
.jjh-herb { position: relative; cursor: default; outline: none; }
.jjh-herb__info { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; text-align: center;
  background: rgba(255, 255, 255, .5); opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
.jjh-herb:hover .jjh-herb__info, .jjh-herb:focus-within .jjh-herb__info, .jjh-herb:focus .jjh-herb__info { opacity: 1; transform: none; }
.jjh-herb:focus-visible { box-shadow: 0 0 0 3px var(--brown); }
.jjh-herb__info h3 { padding-top: 0; }
.jjh-herb__info p { padding-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .jjh-herb__info { transition: none; transform: none; } }
/* see-through overlay: a soft white halo keeps the text readable over the photo */
.jjh-herb__info h3, .jjh-herb__info p { text-shadow: 0 0 6px #fff, 0 0 12px #fff, 0 0 2px #fff; }
.jjh-herb__info p { font-weight: 400; color: #000; }
