/*
Theme Name: AnPeptide
Theme URI: https://an-peptide.com
Author: AnPeptide Dev
Description: Custom B2B peptide showcase theme for an-peptide.com. Works with the No Peptide plugin (Product CPT + inquiry system + WhatsApp widget).
Version: 3.0.0
Requires PHP: 8.0
License: Proprietary
Text Domain: anpeptide
*/

/* =====================================================
   Design system v3 — modern laboratory / professional
   Palette: white · deep navy · cool gray, teal accent
   ===================================================== */

:root {
	--c-primary: #0f766e;          /* teal — actions, links, accents */
	--c-accent: #0e7490;           /* cyan-teal — secondary accent */
	--c-primary-dark: #115e59;
	--c-primary-light: #ecf6f5;
	--c-navy: #10233b;             /* deep navy — headings, footer, CTA band */
	--c-navy-2: #17304e;
	--c-text: #334155;             /* slate-700 body */
	--c-heading: #10233b;
	--c-muted: #64748b;            /* slate-500 */
	--c-bg: #ffffff;
	--c-bg-alt: #f4f7f9;
	--c-border: #e2e8f0;
	--radius: 10px;
	--radius-lg: 16px;
	--shadow: 0 6px 24px rgba(16, 35, 59, 0.08);
	--shadow-lg: 0 14px 36px rgba(16, 35, 59, 0.14);
	--max: 1200px;
	--font-head: "Inter", "Segoe UI", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	--font-body: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Anchor targets land below the sticky header (76px) when jumped from any page */
html { scroll-padding-top: 92px; }

/* Horizontal overflow safety net (fixed-width widgets, long words) */
html, body { overflow-x: clip; }

body {
	font-family: var(--font-body);
	color: var(--c-text);
	background: var(--c-bg);
	line-height: 1.7;
	font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; color: var(--c-heading); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section.alt { background: var(--c-bg-alt); }

/* Section heading: uppercase eyebrow + bold title */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head .script,
.script {
	display: inline-block; font-family: var(--font-head); font-style: normal;
	font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
	color: var(--c-primary); line-height: 1.4; margin-bottom: 12px;
}
.section-head h2 { font-size: 36px; letter-spacing: -0.5px; }
.section-head h2 em { font-style: normal; color: var(--c-primary); }
.section-head p { color: var(--c-muted); margin-top: 12px; font-size: 17px; }

/* ---------- Buttons (site-wide conversion rules) ----------
   Primary action  light bg: .btn-primary (teal filled)
                   dark bg:  .btn-light (white filled)
   Secondary       light bg: .btn-outline (teal outline)
                   dark bg:  .btn-ghost (white outline)
   One primary + at most one secondary per section. */
.btn {
	display: inline-block; padding: 13px 30px; border-radius: 8px;
	font-weight: 600; font-size: 15px; transition: all .22s ease; border: 1.5px solid transparent;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,118,110,.25); }
.btn-outline { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn-outline:hover { background: var(--c-primary); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--c-navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); color: var(--c-navy); }
.btn-ghost { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--c-navy); border-color: #fff; }

/* Keyboard focus: visible on light sections (teal) and on the dark hero (white) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 2px solid var(--c-primary); outline-offset: 2px;
}
.hero-split a:focus-visible, .hero-split button:focus-visible, .site-footer a:focus-visible, .cta-band a:focus-visible {
	outline-color: #fff;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97);
	backdrop-filter: blur(8px); border-bottom: 1px solid transparent;
	transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--c-border); box-shadow: 0 4px 18px rgba(16,35,59,.07); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--c-navy); font-family: var(--font-head); letter-spacing: .3px; }
.brand .logo-mark {
	width: 40px; height: 40px; border-radius: 10px; background: var(--c-navy);
	color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.brand .custom-logo-link { display: inline-flex; align-items: center; }
.brand .custom-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: #fff; }
.brand .brand-name { font-size: 23px; letter-spacing: .5px; }
/* Brand name gradient — matches the teal gradient logo (header only; footer keeps white) */
.site-header .brand .brand-name {
	color: #0f766e; /* fallback if background-clip: text is unsupported */
	background: linear-gradient(115deg, #073734 0%, #0f766e 55%, #20a694 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.main-nav ul { display: flex; gap: 28px; list-style: none; }
.main-nav a { color: var(--c-text); font-weight: 500; font-size: 15px; padding: 8px 0; position: relative; }
.main-nav a::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
	background: var(--c-primary); transition: width .25s;
}
.main-nav a:hover::after, .main-nav .current-menu-item a::after { width: 100%; }
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--c-primary); }

.nav-toggle { display: none; }

/* Desktop: brand left, menu centered, CTA right */
@media (min-width: 861px) {
	.site-header .container { display: grid; grid-template-columns: 1fr auto 1fr; }
	.site-header .brand { grid-column: 1; justify-self: start; }
	.site-header .main-nav { grid-column: 2; justify-self: center; }
	.site-header .nav-cta { grid-column: 3; justify-self: end; }
}
.nav-cta {
	display: inline-block; padding: 11px 24px; border-radius: 8px;
	background: var(--c-primary); color: #fff; font-weight: 600; font-size: 15px;
	transition: all .22s ease; white-space: nowrap;
}
.nav-cta:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,118,110,.25); }

@media (max-width: 860px) {
	.nav-toggle { display: block; font-size: 26px; background: none; border: none; color: var(--c-navy); cursor: pointer; }
	.main-nav { display: none; width: 100%; }
	.main-nav.open { display: block; }
	.site-header .container { flex-wrap: wrap; }
	.nav-cta { order: 2; margin-left: auto; padding: 8px 16px; font-size: 14px; }
	.brand .brand-name { display: none; }
	.nav-toggle { order: 3; margin-left: 12px; }
	.main-nav { order: 4; }
	.main-nav ul { flex-direction: column; gap: 4px; padding: 10px 0; width: 100%; }
	.main-nav a::after { display: none; }
}

/* ---------- Hero: split carousel on navy/teal gradient ---------- */
.hero-split {
	background:
		radial-gradient(900px 420px at 88% -12%, rgba(45,212,191,.14), transparent 62%),
		linear-gradient(115deg, #0b1c2e 0%, #122c48 48%, #0f4d4a 88%, #0f766e 118%);
	padding: 112px 0 118px;
	border-bottom: 1px solid var(--c-border);
}
.hero-split-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-copy .script { margin-bottom: 14px; color: #7fd6c9; }
.hero-copy h1 { font-size: 48px; line-height: 1.12; margin: 0 0 20px; color: #fff; letter-spacing: -1px; }
.hero-copy .hero-lead { font-size: 17.5px; color: rgba(255,255,255,.86); margin: 0 0 30px; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { margin: 0; position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; border: 5px solid rgba(255,255,255,.16); box-shadow: 0 22px 48px rgba(0,0,0,.32); background: rgba(255,255,255,.06); }
.hero-media::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); border-radius: var(--radius-lg);
}
.hero-media .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.hero-media .hero-img.active { opacity: 1; }
.hero-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.hero-dots button {
	width: 10px; height: 10px; padding: 0; border-radius: 999px; border: none;
	background: rgba(255,255,255,.4); cursor: pointer; transition: all .25s ease;
}
.hero-dots button:hover { background: rgba(255,255,255,.65); }
.hero-dots button.active { background: #fff; width: 28px; }
@media (max-width: 860px) {
	.hero-split { padding: 64px 0 72px; }
	.hero-split-grid { grid-template-columns: 1fr; gap: 30px; }
	.hero-copy h1 { font-size: 33px; }
	.hero-media { order: -1; aspect-ratio: 16/10; }
}

/* ---------- Capability strip (verified, no vanity numbers) ---------- */
.caps { margin-top: -46px; position: relative; z-index: 10; }
.caps .container {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.cap-card {
	background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--c-border);
	box-shadow: var(--shadow-lg); padding: 24px 20px; text-align: center;
}
.cap-card .num { font-family: var(--font-head); font-size: 34px; font-weight: 800; color: var(--c-navy); line-height: 1.1; }
.cap-card .num span { font-size: 20px; color: var(--c-primary); }
.cap-card .cap-icon { width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 10px; background: var(--c-primary-light); display: grid; place-items: center; }
.cap-card .cap-icon svg { width: 21px; height: 21px; stroke: var(--c-primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cap-card .label { color: var(--c-muted); font-size: 14px; margin-top: 6px; line-height: 1.5; }
.cap-card .cap-title { font-family: var(--font-head); font-weight: 700; font-size: 16.5px; color: var(--c-navy); }
.cap-card .cap-title span { color: var(--c-primary); font-size: 14px; }
@media (max-width: 1000px) { .caps .container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .caps { margin-top: -30px; } .caps .container { gap: 12px; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.about-grid .section-head { text-align: left; margin: 0 0 14px; }
.about-points { list-style: none; margin-top: 22px; }
.about-points li { padding: 8px 0 8px 34px; position: relative; }
.about-points li::before {
	content: ""; position: absolute; left: 0; top: 14px; width: 18px; height: 18px;
	border-radius: 50%; background: var(--c-primary-light);
	box-shadow: inset 0 0 0 2px var(--c-primary);
}
.about-points li::after {
	content: ""; position: absolute; left: 5px; top: 19px; width: 8px; height: 5px;
	border-left: 2px solid var(--c-primary); border-bottom: 2px solid var(--c-primary);
	transform: rotate(-45deg);
}
.icon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.icon-card {
	background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
	padding: 24px 20px; box-shadow: var(--shadow); transition: transform .25s, border-color .25s;
}
.icon-card:hover { transform: translateY(-4px); border-color: var(--c-primary); }
.icon-card .q-icon { font-size: 26px; margin-bottom: 10px; }
.icon-card h3 { font-size: 17px; margin-bottom: 6px; }
.icon-card p { color: var(--c-muted); font-size: 14px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Quality & testing ---------- */
/* Batch release flow (verified process evidence) */
.q-flow {
	list-style: none; margin: 0 0 26px; padding: 22px 26px;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
	background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
	counter-reset: qstep;
}
.q-flow li { display: flex; align-items: center; gap: 12px; position: relative; }
.q-flow li + li::before {
	content: "→"; position: absolute; left: -14px; color: var(--c-primary);
	font-weight: 700; font-size: 15px;
}
.q-step {
	flex: 0 0 32px; width: 32px; height: 32px; border-radius: 999px;
	background: var(--c-primary-light); color: var(--c-primary);
	display: grid; place-items: center; font-weight: 700; font-size: 14px;
	font-family: var(--font-head);
}
.q-flow strong { display: block; font-size: 14.5px; color: var(--c-heading); line-height: 1.3; }
.q-flow small { display: block; color: var(--c-muted); font-size: 12.5px; }
@media (max-width: 1000px) {
	.q-flow { grid-template-columns: repeat(2, 1fr); gap: 18px; }
	.q-flow li + li::before { content: none; }
}
@media (max-width: 560px) { .q-flow { grid-template-columns: 1fr; } }

.quality-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.q-card {
	background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
	padding: 28px 24px; display: flex; flex-direction: column; gap: 10px;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.q-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--c-primary); }
.q-card .q-icon-box {
	width: 46px; height: 46px; border-radius: 12px; background: var(--c-primary-light);
	display: grid; place-items: center; margin-bottom: 4px;
}
.q-card .q-icon-box svg { width: 24px; height: 24px; stroke: var(--c-primary); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.q-card h3 { font-size: 17.5px; }
.q-card p { color: var(--c-muted); font-size: 14.5px; flex: 1; }
.q-card .q-link { font-weight: 600; font-size: 14px; margin-top: 4px; }
.quality-note {
	margin-top: 28px; padding: 16px 22px; border-radius: var(--radius);
	background: var(--c-bg-alt); border: 1px solid var(--c-border);
	color: var(--c-muted); font-size: 14px; text-align: center;
}
@media (max-width: 1000px) { .quality-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .quality-grid { grid-template-columns: 1fr; } }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 14px; color: var(--c-muted); }
.crumbs a { color: var(--c-muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-primary); }
.crumbs [aria-current="page"] { color: var(--c-navy); font-weight: 600; }
.crumbs-note { margin-top: 8px; font-size: 14px; color: var(--c-muted); }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.product-card {
	background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column; transition: all .25s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--c-primary); }
.product-card .thumb { position: relative; aspect-ratio: 1/1; background: var(--c-bg-alt); overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .thumb::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 62%, rgba(16,35,59,.28));
	pointer-events: none;
}
.card-num {
	position: absolute; left: 10px; top: 10px; z-index: 2;
	background: rgba(255, 255, 255, .94); color: var(--c-navy);
	font-size: 12px; font-weight: 700; letter-spacing: 1px;
	padding: 3px 10px; border-radius: 6px;
	box-shadow: 0 2px 8px rgba(16,35,59,.14);
}
.item-badge {
	position: absolute; right: 10px; top: 10px; z-index: 2;
	background: rgba(15, 118, 110, .94); color: #fff;
	font-size: 11.5px; font-weight: 700; letter-spacing: 1px;
	padding: 3px 10px; border-radius: 6px;
	box-shadow: 0 2px 8px rgba(15,118,110,.25);
}
.product-card .body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.product-card h3 { font-size: 15px; line-height: 1.35; }
.product-card h3 a { color: var(--c-heading); }
.product-card h3 a:hover { color: var(--c-primary); }
.product-card .meta { font-size: 12.5px; color: var(--c-muted); }
.product-card .meta b { color: var(--c-navy); font-weight: 600; }
.product-card .card-actions { margin-top: auto; padding-top: 8px; }
.product-card .card-actions .btn { padding: 7px 16px; font-size: 13px; }

@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
	.product-grid { grid-template-columns: repeat(2, 1fr); }
	.icon-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ---------- CTA band (deep navy) ---------- */
.cta-band {
	background: linear-gradient(120deg, var(--c-navy) 0%, var(--c-navy-2) 70%, #1d3f63 100%);
	color: #fff; border-radius: var(--radius-lg); padding: 54px 46px;
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	position: relative; overflow: hidden;
}
.cta-band::after {
	content: ""; position: absolute; right: -80px; bottom: -130px; width: 320px; height: 320px;
	border-radius: 50%; background: rgba(255,255,255,.05);
}
.cta-band h2 { font-size: 30px; margin-bottom: 8px; color: #fff; }
.cta-band p { color: #b6c5d8; }
.cta-band p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cta-band > div { position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }

/* ---------- Contact block ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card {
	background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
	padding: 32px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--c-primary); }
.contact-card .q-icon-box { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; }
.contact-card .q-icon-box svg { width: 24px; height: 24px; fill: #fff; }
.contact-card.c-wa .q-icon-box { background: #25d366; }
.contact-card.c-mail .q-icon-box { background: var(--c-primary); }
.contact-card.c-form .q-icon-box { background: var(--c-navy); }
.contact-card h3 { font-size: 18px; }
.contact-card p { color: var(--c-muted); font-size: 14.5px; flex: 1; }
.contact-card .btn { margin-top: 8px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details {
	background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
	margin-bottom: 12px; padding: 18px 22px;
}
.faq-list summary { font-family: var(--font-head); font-weight: 600; font-size: 16.5px; cursor: pointer; list-style: none; position: relative; padding-right: 34px; color: var(--c-heading); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
	content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	font-size: 22px; color: var(--c-primary); transition: transform .25s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { margin-top: 10px; color: var(--c-muted); }

/* ---------- News / Resources ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all .25s; }
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--c-primary); }
.news-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; position: relative; background: linear-gradient(120deg, var(--c-navy), var(--c-navy-2)); }
.news-thumb .thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.news-card:hover .thumb-img { transform: scale(1.05); }
.news-thumb .thumb-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.news-thumb .thumb-fallback span { font-family: var(--font-head); font-weight: 800; font-size: 42px; color: rgba(255,255,255,.85); letter-spacing: 2px; }
.news-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-top { display: flex; align-items: center; gap: 10px; }
.news-num { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--c-primary); letter-spacing: 1px; }
.news-top .date { font-size: 13px; color: var(--c-muted); font-weight: 500; }
.news-card h3 { font-size: 17px; line-height: 1.4; }
.news-card h3 a { color: var(--c-heading); }
.news-card h3 a:hover { color: var(--c-primary); }
.news-card p { color: var(--c-muted); font-size: 14px; }
.news-card .readmore { margin-top: auto; font-weight: 600; font-size: 14px; }
@media (max-width: 760px) { .news-grid { grid-template-columns: 1fr; } }

/* Homepage Resources: editorial layout — 1 featured + 2 supporting */
.res-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: stretch; }
.res-featured, .res-card {
	background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
	overflow: hidden; transition: all .25s; display: flex; flex-direction: column;
}
.res-featured:hover, .res-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--c-primary); }
.res-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; position: relative; background: linear-gradient(120deg, var(--c-navy), var(--c-navy-2)); }
.res-thumb .thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.res-featured:hover .thumb-img { transform: scale(1.05); }
.res-thumb .thumb-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.res-thumb .thumb-fallback span { font-family: var(--font-head); font-weight: 800; font-size: 46px; color: rgba(255,255,255,.85); letter-spacing: 2px; }
.res-featured .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.res-featured h3 { font-size: 21px; line-height: 1.35; }
.res-featured h3 a { color: var(--c-heading); }
.res-featured h3 a:hover { color: var(--c-primary); }
.res-featured p { color: var(--c-muted); font-size: 14.5px; }
.res-flag {
	font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
	color: var(--c-primary); background: var(--c-primary-light);
	padding: 4px 10px; border-radius: 999px;
}
.res-side { display: flex; flex-direction: column; gap: 20px; }
.res-card { flex-direction: row; flex: 1; align-items: center; }
.res-mini {
	flex: 0 0 118px; width: 118px; height: 118px; margin: 16px 0 16px 16px;
	border-radius: 10px; display: block; overflow: hidden; position: relative;
	background: linear-gradient(120deg, var(--c-navy), var(--c-navy-2));
}
.res-mini .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.res-card:hover .thumb-img { transform: scale(1.05); }
.res-mini .thumb-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.res-mini .thumb-fallback span { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: rgba(255,255,255,.85); letter-spacing: 1px; }
.res-card .body { padding: 16px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; justify-content: center; }
.res-card .date { font-size: 12.5px; color: var(--c-muted); font-weight: 500; }
.res-card h4 { font-size: 15.5px; line-height: 1.4; }
.res-card h4 a { color: var(--c-heading); }
.res-card h4 a:hover { color: var(--c-primary); }
.res-card p { color: var(--c-muted); font-size: 13.5px; }
.res-card .readmore { margin-top: auto; font-weight: 600; font-size: 13.5px; }
@media (max-width: 1000px) { .res-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .res-card { flex-direction: column; align-items: stretch; } .res-mini { flex: 0 0 auto; width: auto; height: auto; aspect-ratio: 16 / 9; margin: 0; border-radius: 0; } }

/* ---------- Single product ---------- */
.product-single { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .product-single { grid-template-columns: 1fr; } }
.product-single .gallery { background: var(--c-bg-alt); border-radius: var(--radius-lg); overflow: hidden; }

/* ---------- Product detail hero ---------- */
.product-hero { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 48px; align-items: center; margin-bottom: 40px; }
@media (max-width: 860px) { .product-hero { grid-template-columns: 1fr; gap: 26px; } }
.product-hero .gallery { background: var(--c-bg-alt); border-radius: var(--radius-lg); overflow: hidden; }
.product-hero .gallery img { width: 100%; height: auto; display: block; }
.product-hero .np-cat { font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--c-primary); margin-bottom: 10px; }
.product-hero h1 { font-size: 36px; line-height: 1.2; margin: 0 0 16px; color: var(--c-navy); }
.product-hero .np-cas { font-size: 16px; color: var(--c-text); margin: -6px 0 12px; }
.product-hero .np-cas strong { color: var(--c-primary); font-weight: 700; margin-left: 4px; letter-spacing: .5px; }
.product-hero .np-item { font-size: 16px; color: var(--c-text); margin: 0 0 14px; }
.product-hero .np-item strong { color: var(--c-primary); font-weight: 700; margin-left: 4px; letter-spacing: .5px; }
.product-hero .np-purity { font-size: 17px; color: var(--c-text); margin-bottom: 26px; }
.product-hero .np-purity strong { color: var(--c-primary); font-size: 23px; font-weight: 700; margin-left: 4px; }
.product-hero .np-quote-btn { font-size: 16px; padding: 13px 34px; }

/* ---------- Product archive search ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 40px; }
.cat-card {
	display: flex; align-items: center; gap: 10px;
	padding: 12px 16px; background: #fff;
	border: 1px solid var(--c-border); border-radius: var(--radius);
	font-weight: 600; font-size: 14.5px; color: var(--c-navy);
	text-decoration: none; line-height: 1.35;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cat-card:hover { border-color: var(--c-primary); box-shadow: 0 4px 14px rgba(15,118,110,.14); transform: translateY(-2px); color: var(--c-primary); }
.cat-num {
	flex: none; min-width: 30px; height: 24px; padding: 0 8px;
	border-radius: 12px; background: var(--c-primary-light); color: var(--c-primary);
	font-size: 12.5px; font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center;
}
.prod-search { margin-top: 22px; display: flex; gap: 10px; max-width: 580px; }
.prod-search input[type="search"] { flex: 1; height: 48px; padding: 0 16px; border: 1px solid var(--c-border); border-radius: var(--radius); font-size: 15px; font-family: inherit; background: #fff; color: var(--c-text); }
.prod-search input[type="search"]:focus { outline: 2px solid var(--c-primary); outline-offset: -1px; border-color: var(--c-primary); }
.prod-search .btn { height: 48px; padding: 0 28px; white-space: nowrap; }
.search-note { margin-bottom: 22px; color: var(--c-muted); font-size: 14.5px; }
.search-note a { margin-left: 10px; color: var(--c-primary); font-weight: 600; }
@media (max-width: 560px) { .prod-search { flex-direction: column; } .prod-search .btn { width: 100%; } }

/* ---------- Inquiry modal ---------- */
.np-modal {
	position: fixed; right: 20px; bottom: 20px; z-index: 99999;
	width: 540px; max-width: calc(100vw - 24px); max-height: 60vh;
	background: #fff; border-radius: 16px; overflow: hidden;
	box-shadow: 0 12px 40px rgba(16,35,59,.28);
	opacity: 0; transform: translateY(24px); pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
	display: flex; flex-direction: column;
}
.np-modal.open { opacity: 1; transform: none; pointer-events: auto; }
.np-modal-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 18px; background: var(--c-navy); color: #fff;
}
.np-modal-head h3 { margin: 0; font-size: 17px; color: #fff; }
.np-modal-close {
	background: none; border: none; color: #fff; font-size: 26px; line-height: 1;
	cursor: pointer; padding: 0 2px; opacity: .85;
}
.np-modal-close:hover { opacity: 1; }
.np-modal-body { padding: 18px; overflow-y: auto; }
@media (max-width: 860px) {
	.np-modal { right: 12px; bottom: 12px; width: calc(100vw - 24px); max-height: 78vh; }
}
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.spec-table th, .spec-table td { border: 1px solid var(--c-border); padding: 10px 14px; text-align: left; font-size: 14.5px; }
.spec-table th { background: var(--c-bg-alt); width: 38%; color: var(--c-muted); font-weight: 600; }

/* ---------- Inquiry form (two-column desktop, single-column mobile) ---------- */
.np-inquiry-form { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.np-inquiry-form p { margin-bottom: 10px; }
.np-inquiry-form .np-full { grid-column: 1 / -1; }
.np-inquiry-form label { font-weight: 600; font-size: 14px; line-height: 1.3; display: block; margin-bottom: 3px; color: var(--c-heading); }
.np-inquiry-form input[type=text], .np-inquiry-form input[type=email], .np-inquiry-form input[type=number], .np-inquiry-form select, .np-inquiry-form textarea {
	width: 100%; padding: 11px 14px; border: 1px solid var(--c-border); border-radius: 8px;
	font-size: 15px; font-family: inherit; background: #fff; color: var(--c-text);
}
.np-inquiry-form select { cursor: pointer; }
.np-inquiry-form input:focus, .np-inquiry-form select:focus, .np-inquiry-form textarea:focus { outline: 2px solid var(--c-primary); border-color: transparent; }
.np-inquiry-form .np-qty-group { display: flex; gap: 8px; }
.np-inquiry-form .np-qty-group input { flex: 1; }
.np-inquiry-form .np-qty-group select { width: 110px; flex: 0 0 110px; }
.np-inquiry-form .np-hint { display: block; margin-top: 6px; color: var(--c-muted); font-size: 13px; }
.np-inquiry-form .np-inquiry-submit {
	background: var(--c-primary); color: #fff; border: none; border-radius: 8px;
	padding: 13px 38px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .25s;
}
.np-inquiry-form .np-inquiry-submit:hover:not(:disabled) { background: var(--c-primary-dark); transform: translateY(-1px); }
.np-inquiry-form .np-inquiry-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.np-inquiry-form .np-submit-row { margin-top: 6px; }
.np-inquiry-form .np-privacy { margin-top: -4px; font-size: 13px; color: var(--c-muted); }
.np-inquiry-form .np-privacy a { color: var(--c-primary); font-weight: 600; }
.np-result { max-width: none; margin: 0 0 22px; padding: 14px 18px; border-radius: 8px; font-size: 15px; }
.np-result.ok { background: var(--c-primary-light); color: var(--c-primary-dark); }
.np-result.err { background: #fdecea; color: #a32d2d; }
@media (max-width: 640px) { .np-inquiry-form { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Page / post ---------- */
/* ---------- Contact page layout ---------- */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.contact-form-card {
	background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
	padding: 30px; box-shadow: var(--shadow);
}
.contact-form-card h2 { font-size: 24px; margin-bottom: 20px; }
.contact-form-card .np-inquiry-form { max-width: none; }
.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.ca-card {
	background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: var(--radius);
	padding: 20px 22px;
}
.ca-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.ca-card p { margin: 0; color: var(--c-muted); font-size: 14.5px; }
.ca-card p a { color: var(--c-primary); font-weight: 600; }
.ca-card ul { margin: 0; padding-left: 18px; color: var(--c-muted); font-size: 14px; display: grid; gap: 5px; }
.ca-muted { background: transparent; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.page-content { max-width: 820px; margin: 0 auto; }
.page-content h1 { font-size: 36px; margin-bottom: 18px; }
.page-content h2 { font-size: 27px; margin: 30px 0 12px; }
.page-content p { margin-bottom: 14px; color: var(--c-text); }
.page-content ul, .page-content ol { margin: 0 0 14px 22px; }

/* ---------- Side floating contact ---------- */
.side-float {
	position: fixed; right: 14px; top: 50%; transform: translateY(-50%);
	display: flex; flex-direction: column; gap: 10px; z-index: 99980;
}
.side-float .sf-btn {
	width: 46px; height: 46px; border-radius: 50%;
	display: grid; place-items: center;
	box-shadow: 0 3px 12px rgba(16,35,59,.22);
	transition: transform .2s ease, box-shadow .2s ease;
}
.side-float .sf-btn:hover { transform: scale(1.1); box-shadow: 0 5px 16px rgba(16,35,59,.3); }
.side-float .sf-btn svg { width: 24px; height: 24px; fill: #fff; }
.side-float .sf-wa { background: #25d366; }
.side-float .sf-mail { background: var(--c-primary); }
@media (max-width: 860px) {
	.side-float { right: 10px; }
	.side-float .sf-btn { width: 40px; height: 40px; }
	.side-float .sf-btn svg { width: 20px; height: 20px; }
}

/* ---------- Footer (deep navy, flat top) ---------- */
.site-footer { background: var(--c-navy); color: #a9b8ca; margin-top: 84px; }
.footer-grid {
	display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; padding: 56px 0 48px;
}
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; font-size: 14.5px; }
.footer-grid a { color: #a9b8ca; }
.footer-grid a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand .brand .logo-mark { background: rgba(255,255,255,.12); }
.footer-brand .brand .custom-logo { width: 44px; height: 44px; border-radius: 10px; background: #fff; }
.footer-brand p { font-size: 14.5px; max-width: 320px; }
.footer-brand .footer-co { margin-top: 10px; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.68); }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.09); padding: 16px 0; font-size: 13px; color: #7f90a4; }
.footer-disclaimer p { margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 18px 0; font-size: 13.5px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Archive hero ---------- */
.archive-hero { background: var(--c-bg-alt); border-bottom: 1px solid var(--c-border); padding: 56px 0; }
.archive-hero h1 { font-size: 34px; color: var(--c-navy); }
.archive-hero .script { margin-bottom: 8px; }
.archive-hero p { color: var(--c-muted); }

/* ---------- Disclaimer band ---------- */
.disclaimer-band { background: var(--c-bg-alt); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); padding: 14px 0; }
.disclaimer-band p { margin: 0; text-align: center; font-size: 13.5px; color: var(--c-muted); }

/* ---------- Scroll reveal (soft, no bounce) ---------- */
.anim { opacity: 0; }
.anim.in { opacity: 1; }
.anim.in.fade-up   { animation-name: animFadeUp;   animation-duration: .8s; animation-timing-function: cubic-bezier(.22,.61,.36,1); animation-fill-mode: both; }
.anim.in.fade-left { animation-name: animFadeLeft; animation-duration: .8s; animation-timing-function: cubic-bezier(.22,.61,.36,1); animation-fill-mode: both; }
.anim.in.fade-right{ animation-name: animFadeRight;animation-duration: .8s; animation-timing-function: cubic-bezier(.22,.61,.36,1); animation-fill-mode: both; }
.anim.in.zoom-in   { animation-name: animZoomIn;   animation-duration: .7s; animation-timing-function: ease; animation-fill-mode: both; }
.anim.d1 { animation-delay: .1s; }
.anim.d2 { animation-delay: .2s; }
.anim.d3 { animation-delay: .3s; }
@keyframes animFadeUp    { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes animFadeLeft  { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes animFadeRight { from { opacity: 0; transform: translateX(28px); }  to { opacity: 1; transform: none; } }
@keyframes animZoomIn    { from { opacity: 0; transform: scale(.96); }        to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.anim { opacity: 1; }
	.anim.in { animation: none !important; }
	.site-header { transition: none; }
	.hero-media .hero-img { transition: none; }
	* { scroll-behavior: auto !important; }
}
