/*
Theme Name: NeilMed Taiwan
Description: NeilMed Taiwan 形象官網專用主題（D 版：B 架構 + 影片區）
Version: 0.1.0
Author: 璞石數位
Text Domain: nm
*/

:root{
  --brand-900:#003a7a; --brand-700:#004898; --brand-500:#05539d; --brand-300:#4f91d8;
  --brand-050:#eef4fb; --text-900:#1f1f1f; --text-700:#333; --text-500:#6b6b6b;
  --line:#e3e8ef; --radius:8px; --container:1200px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;color:var(--text-700);background:#fff;line-height:1.75}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
.wrap{max-width:var(--container);margin:0 auto;padding:0 24px}

/* header */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.site-header .inner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 24px;max-width:var(--container);margin:0 auto}
.site-header .logo img{height:30px;width:auto}
.main-nav ul{display:flex;list-style:none;gap:26px;font-size:15px}
.main-nav a{text-decoration:none;padding:4px 0;border-bottom:2px solid transparent}
.main-nav a:hover{border-color:var(--brand-300)}
.nm-social{display:flex;gap:10px}
.nm-social__item{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;text-decoration:none;font-size:11px;font-weight:700;background:var(--brand-050);color:var(--brand-700)}
.nm-social__item--instagram{background:linear-gradient(45deg,#f09433,#dc2743,#bc1888);color:#fff}

/* hero (B) */
.hero{display:grid;grid-template-columns:55% 45%;min-height:430px}
.hero__copy{background:var(--brand-700);color:#fff;padding:64px 56px;display:flex;flex-direction:column;justify-content:center}
.hero__kicker{font-size:13px;letter-spacing:.24em;opacity:.8}
.hero h1{font-size:40px;line-height:1.35;font-weight:800;margin:16px 0 14px}
.hero p{opacity:.92;font-size:16px;max-width:430px}
.hero .btn{margin-top:30px;align-self:flex-start;border:1px solid rgba(255,255,255,.65);color:#fff;padding:14px 30px;border-radius:2px;text-decoration:none}
.hero__pic{background:linear-gradient(160deg,#eef4fb,#dbe8f7);display:grid;place-items:center;padding:32px}
.hero__pic img{width:70%;max-width:330px}

/* video (C) */
.video-section{padding:56px 24px 12px;text-align:center}
.video-section .kicker{font-size:13px;letter-spacing:.24em;color:var(--brand-300)}
.video-section h2{font-size:32px;color:var(--brand-900);font-weight:800;margin:12px 0 8px}
.video-section p{color:var(--text-500);max-width:560px;margin:0 auto 32px}
.video-frame{max-width:1000px;margin:0 auto;aspect-ratio:16/9;border-radius:var(--radius);background:linear-gradient(135deg,#0b2a55,#004898);display:grid;place-items:center;position:relative;overflow:hidden}
.video-frame video{width:100%;height:100%;object-fit:cover}
.video-frame .placeholder{color:rgba(255,255,255,.85);font-size:14px;letter-spacing:.08em}

/* products */
.products{padding:56px 24px 64px}
.products .kicker{font-size:14px;letter-spacing:.2em;color:var(--brand-700);font-weight:700}
.products h2{font-size:24px;font-weight:800;color:var(--text-900);margin:6px 0 28px}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.product-card{border:1px solid var(--line);border-radius:var(--radius);padding:20px 18px;display:flex;flex-direction:column;text-decoration:none;transition:box-shadow .2s}
.product-card:hover{box-shadow:0 10px 28px rgba(0,40,100,.1)}
.product-card .thumb{height:190px;display:grid;place-items:center;background:var(--brand-050);border-radius:6px;margin-bottom:16px}
.product-card .thumb img{max-height:170px;width:auto}
.product-card .tag{font-size:11px;letter-spacing:.12em;color:var(--brand-500);margin-bottom:6px}
.product-card h3{font-size:15px;line-height:1.5;color:var(--text-900)}
.product-card .desc{font-size:13px;color:var(--text-500);margin-top:6px}
.product-card .more{margin-top:auto;padding-top:14px;font-size:13px;color:var(--brand-700);font-weight:700}

/* footer */
.site-footer{background:var(--brand-900);color:rgba(255,255,255,.78);padding:28px 24px;font-size:12px}
.site-footer .inner{max-width:var(--container);margin:0 auto;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}

/* generic page */
.page-body{padding:64px 24px}
.page-body h1{font-size:36px;color:var(--brand-900);font-weight:800;margin-bottom:20px}
.entry-content>*+*{margin-top:1.1em}

@media (max-width:900px){
  .hero{grid-template-columns:1fr}
  .hero__copy{padding:44px 28px}
  .hero h1{font-size:30px}
  .hero__pic{padding:24px}
  .product-grid{grid-template-columns:repeat(2,1fr)}
  .main-nav ul{gap:14px;font-size:13px}
  .site-header .inner{flex-wrap:wrap}
}
@media (max-width:560px){
  .product-grid{grid-template-columns:1fr}
}
