/* ==========================================================================
   富臨食品 (國際) 有限公司 — fulum2026
   港式老字號 × 現代食品品牌
   ========================================================================== */

:root {
    --red: #8E1B1B;
    --red-dark: #651111;
    --red-deep: #3D0D0D;
    --gold: #C9A45C;
    --gold-light: #E4CE9A;
    --gold-dim: rgba(201, 164, 92, .35);
    --cream: #F7F1E5;
    --cream-2: #EFE5D2;
    --ink: #2A2320;
    --muted: #6F645B;
    --green: #3F4A3A;
    --white: #FFFDF8;
    --serif: "Noto Serif TC", "Songti TC", "Source Han Serif TC", "MingLiU", "PMingLiU", serif;
    --sans: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", "Heiti TC", sans-serif;
    --container: min(1240px, calc(100vw - 64px));
    --shadow: 0 24px 60px rgba(61, 13, 13, .12);
    --shadow-sm: 0 10px 30px rgba(61, 13, 13, .08);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.85;
    letter-spacing: .02em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.3; letter-spacing: .04em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; border: 0; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease); }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--red); color: var(--white); padding: 10px 18px; border-radius: 2px;
    transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: var(--container); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--red);
    --btn-color: var(--white);
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    padding: 15px 34px;
    background: var(--btn-bg); color: var(--btn-color);
    font-family: var(--sans); font-size: 15px; letter-spacing: .14em;
    border: 1px solid transparent; border-radius: 2px; cursor: pointer;
    transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { --btn-bg: var(--gold); --btn-color: #2A1B0B; }
.btn--gold:hover { --btn-bg: var(--gold-light); }
.btn--red { --btn-bg: var(--red); --btn-color: var(--white); }
.btn--red:hover { --btn-bg: var(--red-dark); }
.btn--ghost { --btn-bg: transparent; --btn-color: var(--ink); border-color: rgba(42, 35, 32, .35); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-color: var(--white); border-color: var(--ink); }
.btn--light { --btn-bg: transparent; --btn-color: var(--white); border-color: rgba(255, 253, 248, .55); }
.btn--light:hover { --btn-bg: var(--white); --btn-color: var(--red-dark); }
.btn--sm { padding: 11px 24px; font-size: 13px; }
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; }
.topbar {
    background: var(--red-deep); color: rgba(247, 241, 229, .78);
    font-size: 12.5px; letter-spacing: .12em; line-height: 1;
    transition: background-color .4s var(--ease), color .4s var(--ease);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 38px; }
.topbar__note { display: flex; align-items: center; gap: 9px; white-space: nowrap; overflow: hidden; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }
.topbar__meta { display: flex; align-items: center; gap: 22px; }
.topbar__meta a { display: inline-flex; align-items: center; gap: 7px; }
.topbar__meta a:hover { color: var(--gold-light); }
.topbar__meta svg { width: 13px; height: 13px; fill: currentColor; }

.navbar {
    background: rgba(255, 253, 248, .96);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid rgba(61, 13, 13, .07);
    transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.navbar__inner { display: flex; align-items: center; gap: 28px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 54px; height: 54px; border-radius: 2px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong {
    font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .22em; color: var(--ink);
}
.brand__text em {
    font-style: normal; font-family: var(--sans); font-size: 9px; letter-spacing: .22em;
    color: var(--muted); margin-top: 3px;
}

.primary-nav { margin-left: auto; }
.primary-nav__list { display: flex; align-items: center; gap: 2px; }
.primary-nav__item { position: relative; }
.primary-nav__link {
    position: relative; display: block; padding: 10px 14px;
    font-size: 15px; letter-spacing: .1em; color: var(--ink); white-space: nowrap;
}
.primary-nav__link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
    height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: center;
    transition: transform .35s var(--ease);
}
.primary-nav__item:hover > .primary-nav__link,
.primary-nav__link.is-active { color: var(--red); }
.primary-nav__link.is-active::after,
.primary-nav__item:hover > .primary-nav__link::after { transform: scaleX(1); }
.subnav {
    position: absolute; top: 100%; left: 50%; transform: translate(-50%, 10px);
    min-width: 208px; padding: 10px 0; background: var(--white);
    box-shadow: var(--shadow-sm); border-top: 2px solid var(--gold);
    opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.primary-nav__item:hover .subnav, .primary-nav__item:focus-within .subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.subnav a { display: block; padding: 9px 22px; font-size: 14px; color: var(--muted); letter-spacing: .08em; }
.subnav a:hover { color: var(--red); background: var(--cream); }

.navbar__cta { flex: none; margin-left: 12px; }
.nav-toggle {
    display: none; width: 44px; height: 44px; margin-left: auto;
    flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Home: transparent header over hero */
.is-home .site-header:not(.is-solid) .topbar { background: transparent; color: rgba(255, 253, 248, .82); }
.is-home .site-header:not(.is-solid) .navbar { background: transparent; border-color: transparent; backdrop-filter: none; box-shadow: none; }
.is-home .site-header:not(.is-solid) .brand__text strong { color: var(--white); }
.is-home .site-header:not(.is-solid) .brand__text em { color: rgba(255, 253, 248, .7); }
.is-home .site-header:not(.is-solid) .primary-nav__link { color: rgba(255, 253, 248, .92); }
.is-home .site-header:not(.is-solid) .primary-nav__link.is-active,
.is-home .site-header:not(.is-solid) .primary-nav__item:hover > .primary-nav__link { color: var(--gold-light); }
.is-home .site-header:not(.is-solid) .nav-toggle span { background: var(--white); }
.site-header.is-solid .navbar { box-shadow: 0 12px 34px rgba(61, 13, 13, .09); }
body.nav-open .site-header .navbar,
body.is-home.nav-open .site-header .navbar { background: var(--white); }
body.nav-open .site-header .brand__text strong,
body.is-home.nav-open .site-header .brand__text strong { color: var(--ink); }
body.nav-open .site-header .brand__text em { color: var(--muted); }
body.nav-open .site-header .nav-toggle span,
body.is-home.nav-open .site-header .nav-toggle span { background: var(--ink); }

/* ---------- Mobile nav ---------- */
.mobile-nav {
    position: fixed; inset: 0; z-index: 55; background: rgba(42, 35, 32, .5);
    opacity: 0; transition: opacity .3s var(--ease);
}
.mobile-nav.is-open { opacity: 1; }
.mobile-nav__panel {
    position: absolute; inset: 0 0 0 auto; width: min(400px, 88vw);
    background: var(--cream); padding: 128px 30px 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .38s var(--ease);
}
.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__label { font-size: 11px; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; margin-bottom: 18px; }
.mobile-nav__list > li { border-bottom: 1px solid rgba(61, 13, 13, .1); }
.mobile-nav__list > li > a {
    display: block; padding: 15px 0; font-family: var(--serif); font-size: 19px; letter-spacing: .1em;
}
.mobile-nav__list > li > a:hover { color: var(--red); }
.mobile-nav__sub { padding: 0 0 12px 14px; }
.mobile-nav__sub a { display: block; padding: 6px 0; font-size: 14px; color: var(--muted); }
.mobile-nav__foot { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.mobile-nav__tel { font-family: var(--serif); font-size: 20px; letter-spacing: .06em; }
.mobile-nav__mail { font-size: 14px; color: var(--muted); }

/* ---------- Layout ---------- */
main { padding-top: 116px; }
.is-home main { padding-top: 0; }

.section { padding: clamp(64px, 9vw, 118px) 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--dark { background: var(--red-deep); color: var(--cream); }
.section--tight { padding: clamp(48px, 6vw, 76px) 0; }

.section-head { max-width: 720px; margin-bottom: clamp(34px, 4.6vw, 58px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.section-head--split .section-head__text { max-width: 660px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 12px; margin-bottom: 15px;
    font-size: 11px; letter-spacing: .34em; color: var(--gold); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold); }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after { content: ""; width: 30px; height: 1px; background: var(--gold); }
.section-title { font-size: clamp(27px, 3.5vw, 30px); letter-spacing: .08em; }
.section-title em { font-style: normal; color: var(--red); }
.section-desc { margin-top: 16px; color: var(--muted); font-size: 15.5px; line-height: 2; }
.section--dark .section-title { color: var(--white); }
.section--dark .section-desc { color: rgba(247, 241, 229, .72); }
.link-more {
    display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px;
    font-size: 13px; letter-spacing: .16em; color: var(--red);
    border-bottom: 1px solid var(--gold-dim);
}
.link-more:hover { gap: 16px; color: var(--red-dark); }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: clamp(600px, 92vh, 860px);
    display: flex; align-items: flex-end; padding: 150px 0 clamp(64px, 8vw, 104px);
    color: var(--white); overflow: hidden; background: var(--red-deep);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform: scale(1.02); }
.hero__media::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(35, 8, 8, .88) 0%, rgba(45, 10, 10, .62) 42%, rgba(45, 10, 10, .12) 78%),
        linear-gradient(0deg, rgba(35, 8, 8, .72) 0%, rgba(35, 8, 8, 0) 45%);
}
.hero__inner { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.hero__text { max-width: 660px; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 14px; margin-bottom: 24px;
    font-size: 11.5px; letter-spacing: .38em; color: var(--gold-light);
}
.hero__eyebrow::before { content: ""; width: 46px; height: 1px; background: var(--gold); }
.hero__title {
    font-size: clamp(40px, 6.2vw, 78px); line-height: 1.16; letter-spacing: .1em;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .28);
}
.hero__title span { display: block; }
.hero__title span + span { color: var(--gold-light); }
.hero__desc {
    margin-top: 26px; max-width: 560px; font-size: clamp(15px, 1.4vw, 17px);
    line-height: 2.05; color: rgba(255, 253, 248, .85); text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__seal {
    flex: none; width: 118px; height: 118px; border: 1px solid rgba(201, 164, 92, .6);
    display: grid; place-content: center; text-align: center; gap: 6px;
    background: rgba(61, 13, 13, .45); backdrop-filter: blur(2px);
    color: var(--gold-light); font-family: var(--serif);
}
.hero__seal strong { font-size: 25px; letter-spacing: .16em; line-height: 1.35; }
.hero__seal span { font-size: 9.5px; letter-spacing: .34em; color: rgba(228, 206, 154, .8); }
.hero__scroll {
    position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 9.5px; letter-spacing: .3em; color: rgba(255, 253, 248, .6);
}
.hero__scroll::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--gold), transparent); animation: scrollLine 2.4s infinite; }
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    40% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ---------- Pillars ---------- */
.pillars { background: var(--white); border-bottom: 1px solid rgba(61, 13, 13, .08); }
.pillars__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar { padding: 38px 30px; border-right: 1px solid rgba(61, 13, 13, .08); }
.pillar:last-child { border-right: 0; }
.pillar__num { font-family: var(--serif); font-size: 12px; letter-spacing: .24em; color: var(--gold); }
.pillar__title { margin-top: 12px; font-size: 19px; letter-spacing: .1em; }
.pillar__desc { margin-top: 8px; font-size: 13.5px; line-height: 1.9; color: var(--muted); }

/* ---------- Featured products ---------- */
.featured__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--white); }
.product-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--cream-2); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__tag {
    position: absolute; left: 14px; top: 14px; z-index: 1;
    padding: 5px 12px; background: rgba(255, 253, 248, .92); color: var(--red);
    font-size: 10.5px; letter-spacing: .18em;
}
.product-card__body { padding: 20px 4px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.product-card__title { font-size: 18px; letter-spacing: .08em; line-height: 1.5; }
.product-card__title a:hover { color: var(--red); }
.product-card__desc { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.product-card__arrow {
    flex: none; width: 34px; height: 34px; border: 1px solid rgba(61, 13, 13, .18); border-radius: 50%;
    display: grid; place-items: center; font-size: 13px; color: var(--red); margin-top: 4px;
    transition: background-color .3s, color .3s, border-color .3s;
}
.product-card:hover .product-card__arrow { background: var(--red); color: var(--white); border-color: var(--red); }

/* ---------- Story split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 86px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--tall img { aspect-ratio: 3 / 4; }
.split__badge {
    position: absolute; right: -26px; bottom: -26px;
    width: 132px; height: 132px; background: var(--red); color: var(--gold-light);
    display: grid; place-content: center; text-align: center; gap: 2px;
    font-family: var(--serif); line-height: 1.35;
}
.split__badge strong { font-size: 30px; letter-spacing: .06em; }
.split__badge span { font-size: 10px; letter-spacing: .24em; }
.split__text .section-title { max-width: 520px; }
.split__text p + p { margin-top: 16px; }
.split__text .btn { margin-top: 30px; }
.stats { display: flex; gap: 34px; margin: 30px 0 0; }
.stat__num { font-family: var(--serif); font-size: 36px; color: var(--red); line-height: 1; }
.stat__num small { font-size: 15px; letter-spacing: .06em; }
.stat__label { margin-top: 8px; font-size: 12.5px; letter-spacing: .1em; color: var(--muted); }

/* ---------- Wholesale band ---------- */
.band { position: relative; overflow: hidden; background: var(--red-deep); color: var(--cream); }
.band__media { position: absolute; inset: 0; opacity: .28; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(61, 13, 13, .96) 0%, rgba(61, 13, 13, .82) 46%, rgba(61, 13, 13, .55) 100%);
}
.band__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(62px, 8vw, 104px) 0; }
.band__text .section-title { color: var(--white); }
.band__text .section-title em { color: var(--gold-light); }
.band .section-desc { color: rgba(247, 241, 229, .76); }
.band__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.band__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: rgba(201, 164, 92, .22); }
.band__item { display: flex; gap: 14px; padding: 20px 22px; background: rgba(61, 13, 13, .72); }
.band__item b { font-family: var(--serif); font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.band__item span { font-size: 14.5px; letter-spacing: .06em; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card { background: var(--white); display: flex; flex-direction: column; }
.news-card__media { overflow: hidden; aspect-ratio: 3 / 2; background: var(--cream-2); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.news-card__meta { display: flex; align-items: center; gap: 12px; font-size: 11.5px; letter-spacing: .14em; color: var(--gold); }
.news-card__meta span:first-child { color: var(--red); }
.news-card__title { margin-top: 12px; font-size: 18.5px; line-height: 1.6; }
.news-card__title a:hover { color: var(--red); }
.news-card__desc { margin-top: 10px; font-size: 13.5px; line-height: 1.9; color: var(--muted); }
.news-card__more { margin-top: auto; padding-top: 20px; font-size: 12px; letter-spacing: .16em; color: var(--red); }
.news-card__more:hover { letter-spacing: .22em; }

/* ---------- Contact CTA ---------- */
.cta { background: var(--cream-2); }
.cta__inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: clamp(48px, 6vw, 74px) 0; }
.cta__title { font-size: clamp(24px, 3vw, 36px); letter-spacing: .08em; }
.cta__desc { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Inner page hero ---------- */
.page-hero {
    position: relative; padding: clamp(64px, 9vw, 116px) 0 clamp(52px, 7vw, 84px);
    background: var(--red-deep); color: var(--white); overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; opacity: .38; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(61, 13, 13, .96), rgba(61, 13, 13, .55));
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__en { font-size: 11px; letter-spacing: .4em; color: var(--gold); text-transform: uppercase; }
.page-hero__title { margin-top: 14px; font-size: clamp(32px, 4.6vw, 56px); letter-spacing: .12em; }
.page-hero__desc { margin-top: 16px; max-width: 620px; font-size: 15px; line-height: 2; color: rgba(247, 241, 229, .78); }
.crumbs { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .12em; color: rgba(247, 241, 229, .62); }
.crumbs a:hover { color: var(--gold-light); }
.crumbs span { color: var(--gold); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
    padding: 10px 24px; border: 1px solid rgba(61, 13, 13, .18);
    font-size: 13.5px; letter-spacing: .1em; color: var(--muted); background: transparent;
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.is-active { background: var(--red); border-color: var(--red); color: var(--white); }
.filter-empty { padding: 40px 0; color: var(--muted); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }

/* ---------- Product detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.detail__media { position: relative; background: var(--white); }
.detail__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.detail__info { padding-top: 10px; }
.detail__cat { font-size: 11px; letter-spacing: .26em; color: var(--gold); text-transform: uppercase; }
.detail__title { margin-top: 12px; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: .08em; }
.detail__lead { margin-top: 20px; font-size: 16px; line-height: 2.05; color: var(--muted); }
.detail__meta { margin: 28px 0 0; border-top: 1px solid rgba(61, 13, 13, .12); }
.detail__meta div { display: flex; gap: 20px; padding: 13px 0; border-bottom: 1px solid rgba(61, 13, 13, .12); }
.detail__meta dt { flex: none; width: 88px; font-size: 13px; letter-spacing: .12em; color: var(--red); }
.detail__meta dd { margin: 0; font-size: 14px; color: var(--muted); }
.detail__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.article { max-width: 820px; margin-inline: auto; }
.article h2, .article h3 { margin: 2em 0 .7em; font-size: 24px; }
.article h3 { font-size: 20px; }
.article p { margin: 0 0 1.1em; }
.article ul, .article ol { margin: 0 0 1.3em; padding-left: 1.4em; list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin-bottom: .4em; }
.article img { margin: 1.6em 0; }
.article blockquote { margin: 1.8em 0; padding: 18px 26px; border-left: 2px solid var(--gold); background: var(--cream-2); font-family: var(--serif); }
.article table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 14px; }
.article th, .article td { padding: 10px 14px; border: 1px solid rgba(61, 13, 13, .14); text-align: left; }
.article th { background: var(--cream-2); }

.detail-body { padding: clamp(54px, 7vw, 86px) 0; }
.detail-body__head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 28px; }
.detail-body__head h2 { font-size: 26px; letter-spacing: .1em; }
.detail-body__head::after { content: ""; flex: 1; height: 1px; background: rgba(61, 13, 13, .12); }

.related { background: var(--white); }

/* ---------- Steps / services / cards ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: rgba(201, 164, 92, .3); }
.step { background: var(--cream); padding: 30px 26px 34px; }
.step__num { font-family: var(--serif); font-size: 13px; letter-spacing: .2em; color: var(--gold); }
.step__title { margin-top: 14px; font-size: 18px; letter-spacing: .08em; }
.step__desc { margin-top: 8px; font-size: 13px; line-height: 1.9; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); padding: 34px 30px 38px; border-top: 2px solid var(--gold); }
.card__title { font-size: 19px; letter-spacing: .08em; }
.card__desc { margin-top: 10px; font-size: 14px; line-height: 1.95; color: var(--muted); }
.card__list { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.card__list li { padding: 4px 12px; background: var(--cream); font-size: 12.5px; color: var(--red); letter-spacing: .06em; }

.cert-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cert { padding: 26px 22px; background: var(--white); text-align: center; border: 1px solid rgba(61, 13, 13, .1); }
.cert strong { display: block; font-family: var(--serif); font-size: 21px; color: var(--red); letter-spacing: .08em; }
.cert span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-list { margin-top: 26px; }
.contact-list li { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(61, 13, 13, .12); }
.contact-list li:first-child { border-top: 1px solid rgba(61, 13, 13, .12); }
.contact-list__icon {
    flex: none; width: 40px; height: 40px; border: 1px solid var(--gold-dim); border-radius: 50%;
    display: grid; place-items: center; color: var(--red);
}
.contact-list__icon svg { width: 16px; height: 16px; fill: currentColor; }
.contact-list__label { font-size: 11.5px; letter-spacing: .2em; color: var(--muted); }
.contact-list__value { margin-top: 3px; font-size: 15.5px; line-height: 1.8; }
.contact-list__value a:hover { color: var(--red); }

.form-card { background: var(--white); padding: clamp(28px, 4vw, 46px); box-shadow: var(--shadow-sm); }
.form-card__title { font-size: 24px; letter-spacing: .1em; }
.form-card__desc { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; letter-spacing: .12em; color: var(--muted); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; background: var(--cream);
    border: 1px solid rgba(61, 13, 13, .14); border-radius: 0;
    font-size: 14.5px; line-height: 1.5; transition: border-color .25s, background-color .25s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--gold); background: var(--white);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(111, 100, 91, .62); }
.field--captcha { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.field--captcha img { height: 47px; width: auto; cursor: pointer; border: 1px solid rgba(61, 13, 13, .14); }
.form-actions { margin-top: 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { font-size: 12px; color: var(--muted); }
.form-msg { margin-top: 16px; padding: 12px 16px; font-size: 13.5px; display: none; }
.form-msg.is-ok { display: block; background: #EAF1E6; color: #2F4A28; }
.form-msg.is-error { display: block; background: #F8E7E4; color: #8E1B1B; }
.form-card form.is-loading .btn { opacity: .6; pointer-events: none; }

.map-card { margin-top: 26px; padding: 26px; background: var(--cream-2); border-left: 2px solid var(--gold); }
.map-card__title { font-size: 16px; letter-spacing: .1em; }
.map-card p { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.map-card__actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Rich content (about / page) ---------- */
.prose { max-width: 820px; }
.prose h2 { margin: 0 0 18px; font-size: clamp(23px, 2.6vw, 30px); }
.prose h3 { margin: 34px 0 12px; font-size: 20px; }
.prose p { margin-bottom: 16px; color: var(--muted); line-height: 2.05; }
.prose ul { margin: 0 0 18px; padding-left: 0; }
.prose ul li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--muted); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .85em; width: 7px; height: 1px; background: var(--gold); }
.prose strong { color: var(--ink); }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 54px; }
.pagination li { list-style: none; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
    padding: 0 12px; border: 1px solid rgba(61, 13, 13, .16); font-size: 13.5px; color: var(--muted);
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .active span, .pagination .active a { background: var(--red); border-color: var(--red); color: var(--white); }
.pagination .disabled span { opacity: .4; }

/* ---------- Empty state ---------- */
.empty { padding: 70px 0; text-align: center; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--red-deep); color: rgba(247, 241, 229, .76); padding: clamp(52px, 7vw, 84px) 0 0; }
.footer__top { display: grid; grid-template-columns: 1.5fr .7fr 1.1fr; gap: clamp(30px, 5vw, 70px); padding-bottom: 54px; }
.brand--footer .brand__text strong { color: var(--white); }
.brand--footer .brand__text em { color: rgba(247, 241, 229, .55); }
.footer__tagline { margin-top: 20px; font-size: 14px; line-height: 2; max-width: 340px; color: rgba(247, 241, 229, .64); }
.footer__certs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.footer__certs li {
    padding: 5px 12px; border: 1px solid rgba(201, 164, 92, .4);
    font-size: 11px; letter-spacing: .12em; color: var(--gold-light);
}
.footer__heading { margin-bottom: 20px; font-family: var(--serif); font-size: 15px; letter-spacing: .2em; color: var(--white); }
.footer__nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.footer__nav a { font-size: 13.5px; letter-spacing: .06em; color: rgba(247, 241, 229, .68); }
.footer__nav a:hover { color: var(--gold-light); }
.footer__contact address p { font-size: 13.5px; line-height: 2; }
.footer__contact a:hover { color: var(--gold-light); }
.footer__cta {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding-bottom: 4px;
    font-size: 12.5px; letter-spacing: .16em; color: var(--gold-light);
    border-bottom: 1px solid rgba(201, 164, 92, .45);
}
.footer__bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    padding: 22px 0; border-top: 1px solid rgba(247, 241, 229, .12);
    font-size: 12px; letter-spacing: .06em; color: rgba(247, 241, 229, .5);
}

/* ---------- Product gallery thumbs ---------- */
.detail__thumbs { margin-top: 14px; }
.detail__thumbs ul { display: flex; gap: 10px; flex-wrap: wrap; }
.detail__thumbs li { width: calc(20% - 8px); }
.detail__thumb {
    display: block; width: 100%; padding: 0; border: 1px solid transparent;
    background: var(--cream); cursor: pointer; overflow: hidden;
}
.detail__thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.detail__thumb:hover { border-color: var(--gold-dim); }
.detail__thumb.is-active { border-color: var(--gold); }

/* ---------- Article ---------- */
.article__nav a:hover { color: var(--red); }
.search-empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .navbar__inner { gap: 16px; }
    .primary-nav__link { padding: 10px 10px; font-size: 14px; }
    .brand__text strong { font-size: 19px; letter-spacing: .16em; }
    .hero__seal { width: 104px; height: 104px; }
    .hero__seal strong { font-size: 22px; }
}

@media (max-width: 1024px) {
    :root { --container: calc(100vw - 48px); }
    main { padding-top: 108px; }
    .primary-nav, .navbar__cta { display: none; }
    .nav-toggle { display: flex; }
    .navbar__inner { height: 70px; }
    .topbar__inner { height: 36px; }
    .brand__mark { width: 46px; height: 46px; }
    .featured__grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .pillars__grid { grid-template-columns: repeat(2, 1fr); }
    .pillar:nth-child(2) { border-right: 0; }
    .pillar:nth-child(-n+2) { border-bottom: 1px solid rgba(61, 13, 13, .08); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid > *:first-child { grid-column: 1 / -1; }
    .split { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
    .split__media--tall img { aspect-ratio: 16 / 10; }
    .split__badge { right: 16px; bottom: -20px; width: 108px; height: 108px; }
    .band__inner { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .cert-row { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .detail { grid-template-columns: 1fr; }
    .detail__media img { aspect-ratio: 4 / 3; }
    .footer__top { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
    .cta__inner { grid-template-columns: 1fr; }
    .section-head--split { display: block; }
    .section-head--split .link-more { margin-top: 18px; }
}

@media (max-width: 767px) {
    :root { --container: calc(100vw - 36px); }
    body { font-size: 15px; }
    .topbar__note { display: none; }
    .topbar__inner { justify-content: center; }
    .topbar__meta { gap: 18px; font-size: 11.5px; }
    .navbar__inner { height: 64px; }
    .brand__mark { width: 42px; height: 42px; }
    .brand__text strong { font-size: 17px; }
    .brand__text em { font-size: 8px; letter-spacing: .16em; }
    main { padding-top: 100px; }
    .hero { min-height: 88vh; padding: 128px 0 72px; }
    .hero__media img { object-position: 58% 55%; }
    .hero__inner { display: block; }
    .hero__seal { display: none; }
    .hero__actions .btn { flex: 1 1 auto; }
    .hero__scroll { display: none; }
    .featured__grid { grid-template-columns: 1fr; gap: 30px; }
    .product-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .news-grid > *:first-child { grid-column: auto; }
    .pillars__grid { grid-template-columns: 1fr; }
    .pillar { border-right: 0; border-bottom: 1px solid rgba(61, 13, 13, .08); padding: 26px 0; }
    .pillar:last-child { border-bottom: 0; }
    .steps { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }
    .cert-row { grid-template-columns: 1fr 1fr; }
    .band__list { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .footer__top { grid-template-columns: 1fr; }
    .footer__bottom { display: block; }
    .footer__note { margin-top: 6px; }
    .stats { gap: 24px; flex-wrap: wrap; }
    .cta__actions .btn { width: 100%; }
    .detail__meta div { flex-direction: column; gap: 2px; }
    .detail__meta dt { width: auto; }
    .article h2 { font-size: 21px; }
    .article h3 { font-size: 18px; }
}
