/*
Theme Name: 原萃咖啡 Source Coffee
Theme URI: https://sourcecoffee.com.tw
Author: Manus AI
Description: 專為原萃咖啡打造的高質感深色精品工業風 WordPress 佈景主題，支援自訂商品分類、維修保養服務、精選品牌牆與知識文章。
Version: 1.0.0
Text Domain: source-coffee
*/

@charset "UTF-8";

:root {
  --ink: #0c0c0c;
  --ink-soft: #131313;
  --panel: #1a1a1a;
  --line: rgba(214, 176, 92, .24);
  --gold: #d6b05c;
  --gold-soft: #ead39a;
  --warm-white: #f2efe9;
  --muted: #9b9891;
  --muted-deep: #68645e;
  --radius: 2px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; min-width: 320px; background: var(--ink); color: var(--warm-white); font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }

.container-wide { width: min(1320px, calc(100% - 80px)); margin: 0 auto; }
.site-shell { overflow: clip; background: var(--ink); }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; height: 96px; transition: background .3s var(--ease-out), height .3s var(--ease-out), border-color .3s; border-bottom: 1px solid transparent; background: rgba(12,12,12,.75); backdrop-filter: blur(12px); }
.site-header.is-scrolled { height: 76px; background: rgba(10,10,10,.92); border-color: rgba(255,255,255,.08); backdrop-filter: blur(18px); }
.header-inner { width: min(1410px, calc(100% - 80px)); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 38px; }
.brand-logo { display: inline-flex; align-items: center; gap: 10px; min-width: 158px; color: var(--gold-soft); }
.brand-logo img { width: 42px; height: 42px; object-fit: contain; }
.brand-logo span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand-logo b { font-family: "Noto Serif TC", serif; font-weight: 500; font-size: 21px; letter-spacing: .14em; white-space: nowrap; }
.brand-logo small { margin-top: 6px; color: rgba(234,211,154,.62); font-family: Georgia, serif; font-size: 8px; letter-spacing: .25em; }

.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(23px, 2.4vw, 43px); margin-left: auto; }
.main-nav a { position: relative; padding: 39px 0 13px; color: rgba(242,239,233,.78); font-family: "Noto Serif TC", serif; font-size: 14px; font-weight: 500; letter-spacing: .08em; transition: color .2s ease; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; transform: scaleX(0); background: var(--gold); transition: transform .25s var(--ease-out); }
.main-nav a:hover, .main-nav a.active { color: var(--gold-soft); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 22px; color: rgba(242,239,233,.7); }
.header-actions a { display: grid; place-items: center; transition: color .2s ease, transform .2s ease; }
.header-actions a:hover { color: var(--gold); transform: translateY(-2px); }
.line-mark { display: grid; place-items: center; width: 17px; height: 15px; padding-top: 1px; border: 1px solid currentColor; border-radius: 7px; font-size: 5px; letter-spacing: -.08em; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; color: var(--warm-white); cursor: pointer; }

.hero-section { position: relative; min-height: 660px; height: min(760px, 47vw); background: #161513 url('assets/hero-banner.png') center 55% / cover no-repeat; }
.hero-image, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-image { object-position: center 55%; filter: saturate(.72) contrast(1.08); }
.hero-overlay { background: linear-gradient(90deg, rgba(5,5,5,.86) 0%, rgba(5,5,5,.57) 38%, rgba(5,5,5,.12) 73%, rgba(5,5,5,.38) 100%), linear-gradient(0deg, rgba(0,0,0,.5), transparent 40%); }
.hero-inner { position: relative; height: 100%; display: flex; align-items: center; }
.hero-copy { position: relative; z-index: 1; margin-top: 44px; max-width: 620px; }
.eyebrow { display: block; color: var(--gold); font-size: 12px; font-weight: 500; letter-spacing: .2em; line-height: 1.6; }
.hero-copy h1 { margin: 19px 0 12px; font-family: "Noto Serif TC", serif; font-size: clamp(41px, 4.1vw, 68px); font-weight: 500; letter-spacing: .12em; line-height: 1.2; }
.hero-copy p { margin: 0 0 30px; color: rgba(242,239,233,.74); font-family: "Noto Serif TC", serif; font-size: clamp(15px, 1.25vw, 20px); letter-spacing: .12em; }
.gold-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 27px; min-width: 136px; padding: 12px 15px 12px 24px; color: var(--gold-soft); border: 1px solid rgba(214,176,92,.72); font-size: 12px; letter-spacing: .14em; transition: background .24s var(--ease-out), color .24s var(--ease-out), gap .24s var(--ease-out), transform .24s var(--ease-out); }
.gold-link:hover { gap: 35px; color: var(--ink); background: var(--gold); transform: translateY(-2px); }

.category-section { padding: 84px 0 98px; }
.section-heading { margin-bottom: 29px; }
.section-heading--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin: 10px 0 0; color: var(--warm-white); font-family: "Noto Serif TC", serif; font-size: clamp(24px, 2.1vw, 34px); font-weight: 500; letter-spacing: .12em; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.category-card { position: relative; min-height: 285px; overflow: hidden; background: var(--panel) center / cover no-repeat; border: 1px solid transparent; transition: transform .38s var(--ease-out), border-color .38s ease, box-shadow .38s ease; }
.category-card:nth-child(1) { background-image: url('assets/category-espresso.png'); }
.category-card:nth-child(2) { background-image: url('assets/category-grinder.png'); }
.category-card:nth-child(3) { background-image: url('assets/hero-banner.png'); }
.category-card:nth-child(4) { background-image: url('assets/category-grinder.png'); }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.65) contrast(1.08); transition: transform .65s var(--ease-out), filter .65s var(--ease-out); }
.category-card:hover { transform: translateY(-7px); border-color: rgba(214,176,92,.72); box-shadow: 0 18px 38px rgba(0,0,0,.34); }
.category-card:hover img { transform: scale(1.07); filter: saturate(.88) contrast(1.04); }
.card-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.94) 2%, rgba(0,0,0,.42) 54%, rgba(0,0,0,.12) 100%); }
.category-content { position: absolute; z-index: 3; inset: auto 20px 19px; }
.category-number { color: var(--gold); font-family: Georgia, serif; font-size: 11px; letter-spacing: .1em; }
.category-content h3 { margin: 9px 0 4px; font-family: "Noto Serif TC", serif; font-size: 21px; font-weight: 500; letter-spacing: .12em; }
.category-content p { margin: 0; color: rgba(242,239,233,.68); font-size: 12px; letter-spacing: .1em; }

.service-feature { position: relative; min-height: 628px; display: flex; align-items: center; padding: 83px max(40px, calc((100% - 1320px) / 2)) 96px; overflow: hidden; background: #101010 url('assets/maintenance-expert.png') right center / 60% 100% no-repeat; }
.service-image-wrap { position: absolute; top: 0; right: 0; width: 60%; height: 100%; }
.service-image-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: .78; filter: saturate(.72) contrast(1.12); }
.service-copy { position: relative; z-index: 2; width: 53%; }
.service-copy h2 { margin: 11px 0 13px; color: var(--gold); font-family: "Noto Serif TC", serif; font-size: clamp(30px, 3vw, 48px); font-weight: 500; letter-spacing: .11em; }
.lead { margin: 0; color: rgba(242,239,233,.78); font-family: "Noto Serif TC", serif; font-size: 14px; line-height: 2; letter-spacing: .08em; }
.service-list { display: grid; grid-template-columns: repeat(4, minmax(92px, 1fr)); gap: 17px; max-width: 610px; margin: 36px 0 34px; }
.service-item { display: flex; flex-direction: column; gap: 11px; color: var(--gold-soft); }
.service-item b { font-family: "Noto Serif TC", serif; font-size: 14px; font-weight: 500; letter-spacing: .12em; }
.service-item small { color: rgba(242,239,233,.58); font-size: 11px; }

.insight-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 42px; padding: 75px 0 82px; }
.insight-column { padding-right: 37px; border-right: 1px solid var(--line); }
.text-link { color: var(--gold); font-size: 11px; letter-spacing: .08em; transition: color .2s ease, letter-spacing .2s ease; }
.text-link:hover { color: var(--gold-soft); letter-spacing: .14em; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.article-card img { width: 100%; aspect-ratio: 1.35; object-fit: cover; filter: saturate(.6); transition: filter .25s ease, transform .25s var(--ease-out); }
.article-card:hover img { filter: saturate(.95); transform: translateY(-4px); }
.article-card h3 { margin: 14px 0 8px; color: rgba(242,239,233,.87); font-family: "Noto Serif TC", serif; font-size: 14px; font-weight: 500; line-height: 1.6; letter-spacing: .06em; }
.article-card time { color: var(--muted-deep); font-family: Georgia, serif; font-size: 11px; }
.brands-column { padding-left: 0; }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.brand-wordmark { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 75px; overflow: hidden; color: rgba(242,239,233,.85); border-bottom: 1px solid rgba(255,255,255,.12); font-family: Georgia, serif; font-size: 15px; font-weight: 600; letter-spacing: .05em; text-align: center; transition: color .28s ease, background .28s ease, transform .28s var(--ease-out), box-shadow .28s ease, letter-spacing .28s ease; }
.brand-wordmark::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 50% 120%, rgba(214,176,92,.18), transparent 62%); opacity: 0; transform: scale(.86); transition: opacity .3s ease, transform .38s var(--ease-out); }
.brand-wordmark::after { content: ""; position: absolute; left: 50%; bottom: 12px; width: 0; height: 1px; background: var(--gold); transform: translateX(-50%); transition: width .32s var(--ease-out); }
.brand-wordmark:hover { z-index: 1; color: var(--gold-soft); background: rgba(214,176,92,.045); box-shadow: inset 0 0 0 1px rgba(214,176,92,.28), 0 10px 24px rgba(0,0,0,.16); transform: translateY(-3px); letter-spacing: .1em; }
.brand-wordmark:hover::before { opacity: 1; transform: scale(1); }
.brand-wordmark:hover::after { width: 30px; }
.site-footer { background: #101010; border-top: 1px solid rgba(255,255,255,.06); }
.footer-main { display: grid; grid-template-columns: 1.35fr 1.65fr 1fr .9fr; gap: 35px; padding: 62px 0 51px; }
.footer-column h4 { margin: 2px 0 21px; color: var(--gold); font-family: "Noto Serif TC", serif; font-size: 14px; font-weight: 500; letter-spacing: .15em; }
.footer-column a, .footer-column span { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: rgba(242,239,233,.58); font-size: 12px; letter-spacing: .04em; }
.footer-bottom { display: flex; align-items: center; justify-content: center; min-height: 57px; border-top: 1px solid rgba(255,255,255,.1); color: var(--muted-deep); font-family: Georgia, serif; font-size: 11px; }

@media (max-width: 560px) {
  .container-wide { width: calc(100% - 38px); }
  .hero-section { min-height: 610px; height: 160vw; max-height: 720px; }
  .hero-copy h1 { font-size: 37px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .category-card { min-height: 215px; }
  .service-feature { min-height: 620px; padding: 57px 19px 50px; background-size: auto 100%; }
  .service-copy { width: 100%; }
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; gap: 27px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-wordmark { min-height: 66px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1024px) {
  .insight-section { grid-template-columns: 1fr; gap: 58px; }
  .insight-column { padding-right: 0; padding-bottom: 32px; border-right: 0; border-bottom: 1px solid var(--line); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .service-feature { flex-direction: column; padding: 60px 24px; }
  .service-copy { width: 100%; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
