/*
 * Hommix Blog Article Styles
 * Uses existing --hmx-* CSS variables from style.css
 * Scoped under .hmx-article-* so no global conflicts
 *
 * @package Hommix
 */

/* =====================================================
   BREADCRUMB
   ===================================================== */
.hmx-breadcrumb {
	padding: 12px 0 0;
	font-size: .8rem;
	color: var(--hmx-soft);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
}
.hmx-breadcrumb a { color: var(--hmx-soft); text-decoration: none; }
.hmx-breadcrumb a:hover { color: var(--hmx-orange); }
.hmx-breadcrumb .sep { color: #c4bdb4; }

/* =====================================================
   HERO BANNER
   ===================================================== */
.hmx-article-hero {
	position: relative;
	background: var(--hmx-navy);
	color: #fff;
	min-height: 340px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	margin-bottom: 0;
}
.hmx-article-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: .32;
	transition: opacity .4s;
}
.hmx-article-hero:hover .hmx-article-hero__bg { opacity: .40; }
.hmx-article-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(23,28,90,.92) 0%, rgba(23,28,90,.55) 50%, rgba(23,28,90,.15) 100%);
}
.hmx-article-hero__content {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 48px 0 44px;
}
.hmx-article-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}
.hmx-article-hero__cat {
	background: var(--hmx-orange);
	color: #fff;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 30px;
	text-decoration: none;
}
.hmx-article-hero__cat:hover { background: var(--hmx-orange-deep); color: #fff; }
.hmx-article-hero__read-time {
	font-size: .8rem;
	color: rgba(255,255,255,.7);
	font-weight: 500;
}
.hmx-article-hero h1 {
	font-family: var(--hmx-display);
	font-size: clamp(1.9rem, 4vw, 3rem);
	font-weight: 900;
	line-height: 1.12;
	color: #fff;
	margin: 0 0 18px;
	max-width: 820px;
}
.hmx-article-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	font-size: .82rem;
	color: rgba(255,255,255,.72);
	align-items: center;
}
.hmx-article-hero__meta a { color: rgba(255,255,255,.85); text-decoration: none; }
.hmx-article-hero__meta a:hover { color: #fff; text-decoration: underline; }
.hmx-meta-dot { color: rgba(255,255,255,.35); }

/* =====================================================
   ARTICLE LAYOUT  (2-col on desktop)
   ===================================================== */
.hmx-article-outer {
	padding: 52px 0 72px;
}
.hmx-article-grid {
	display: grid;
	grid-template-columns: minmax(0,1fr) 300px;
	gap: 48px;
	align-items: start;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.hmx-article-content {
	min-width: 0;
	font-size: 1.06rem;
	line-height: 1.78;
	color: var(--hmx-ink);
}
.hmx-article-content h2 {
	font-family: var(--hmx-display);
	font-size: 1.6rem;
	color: var(--hmx-navy);
	margin: 2em 0 .7em;
	line-height: 1.2;
	padding-bottom: 10px;
	border-bottom: 2.5px solid var(--hmx-cream);
}
.hmx-article-content h3 {
	font-family: var(--hmx-display);
	font-size: 1.2rem;
	color: var(--hmx-navy);
	margin: 1.5em 0 .5em;
}
.hmx-article-content h4 {
	font-size: 1rem;
	font-weight: 800;
	color: var(--hmx-navy);
	margin: 1.2em 0 .4em;
}
.hmx-article-content p { margin: 0 0 1.2em; }
.hmx-article-content ul,
.hmx-article-content ol {
	padding-left: 1.4em;
	margin: 0 0 1.2em;
}
.hmx-article-content li { margin-bottom: .4em; }
.hmx-article-content strong { color: var(--hmx-navy); }
.hmx-article-content a { color: var(--hmx-orange-deep); text-decoration: underline; text-underline-offset: 3px; }
.hmx-article-content a:hover { color: var(--hmx-navy); }
.hmx-article-content blockquote {
	border-left: 4px solid var(--hmx-orange);
	background: var(--hmx-cream-soft);
	margin: 1.4em 0;
	padding: 16px 22px;
	border-radius: 0 12px 12px 0;
	font-style: italic;
	color: var(--hmx-navy);
}
.hmx-article-content blockquote p { margin: 0; }
.hmx-article-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: .93rem;
	margin: 1.4em 0;
	border-radius: 12px;
	overflow: hidden;
}
.hmx-article-content th {
	background: var(--hmx-navy);
	color: #fff;
	text-align: left;
	padding: 11px 14px;
	font-weight: 700;
}
.hmx-article-content td {
	padding: 10px 14px;
	border-bottom: 1px solid #f0ece4;
}
.hmx-article-content tr:nth-child(even) td { background: #fafaf8; }
.hmx-article-content img {
	border-radius: 14px;
	margin: 1.4em 0;
}

/* callout box helper class — writers add class="hmx-callout" to a paragraph */
.hmx-article-content .hmx-callout {
	background: linear-gradient(135deg,#f0f3ff,#eef6ff);
	border: 1.5px solid #c7d4ed;
	border-radius: 14px;
	padding: 16px 20px;
	font-size: .95rem;
}
.hmx-article-content .hmx-callout-warn {
	background: #fffbeb;
	border-color: var(--hmx-amber);
}
.hmx-article-content .hmx-callout-tip {
	background: #edf7ef;
	border-color: #88c98e;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.hmx-article-sidebar {
	position: sticky;
	top: 88px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

/* Table of contents */
.hmx-toc {
	background: #fff;
	border: 1.5px solid #ecdcb4;
	border-radius: 16px;
	padding: 20px 22px;
}
.hmx-toc__title {
	font-family: var(--hmx-display);
	font-weight: 800;
	font-size: .9rem;
	color: var(--hmx-navy);
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
}
.hmx-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: toc-count;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.hmx-toc__item {
	counter-increment: toc-count;
	font-size: .83rem;
}
.hmx-toc__item a {
	color: var(--hmx-soft);
	text-decoration: none;
	display: flex;
	gap: 8px;
	align-items: flex-start;
	line-height: 1.45;
	transition: color .2s;
}
.hmx-toc__item a::before {
	content: counter(toc-count);
	flex-shrink: 0;
	font-weight: 800;
	font-size: .72rem;
	color: var(--hmx-orange);
	background: var(--hmx-cream);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	margin-top: 1px;
}
.hmx-toc__item a:hover { color: var(--hmx-navy); }
.hmx-toc__item--sub { padding-left: 14px; }
.hmx-toc__item--sub a::before { background: none; color: #c0bab2; content: "›"; font-weight: 900; }

/* Product sidebar CTA */
.hmx-product-cta {
	background: linear-gradient(135deg, var(--hmx-navy), #1a2480);
	border-radius: 18px;
	padding: 22px 20px;
	color: #fff;
	text-align: center;
}
.hmx-product-cta__label {
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255,255,255,.6);
	margin-bottom: 14px;
}
.hmx-product-cta__img {
	width: 100%;
	border-radius: 10px;
	margin-bottom: 12px;
	aspect-ratio: 4/3;
	object-fit: cover;
}
.hmx-product-cta__name {
	font-family: var(--hmx-display);
	font-size: 1rem;
	font-weight: 800;
	margin-bottom: 4px;
}
.hmx-product-cta__price {
	font-size: 1.3rem;
	font-weight: 900;
	font-family: var(--hmx-display);
	margin-bottom: 14px;
}
.hmx-product-cta__price del {
	font-size: .78rem;
	font-weight: 400;
	text-decoration: line-through;
	opacity: .6;
	margin-left: 6px;
}
.hmx-product-cta__price ins {
	text-decoration: none;
}
.hmx-product-cta .hmx-btn {
	width: 100%;
	border-radius: 10px;
	font-size: .88rem;
	background: var(--hmx-orange);
	color: #fff;
	border: none;
	padding: 13px;
	display: block;
	text-decoration: none;
	font-weight: 800;
	transition: background .2s, transform .2s;
}
.hmx-product-cta .hmx-btn:hover { background: var(--hmx-orange-deep); transform: translateY(-2px); }

/* Trust pills in sidebar */
.hmx-trust-list {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.hmx-trust-list li {
	font-size: .73rem;
	color: rgba(255,255,255,.72);
	display: flex;
	align-items: center;
	gap: 6px;
}
.hmx-trust-list li::before { content: "✓"; color: #88c98e; font-weight: 800; }

/* =====================================================
   SHARE ROW
   ===================================================== */
.hmx-share-row {
	margin: 36px 0 28px;
	padding: 20px 24px;
	background: var(--hmx-cream-soft);
	border-radius: 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.hmx-share-row__label {
	font-weight: 800;
	font-size: .85rem;
	color: var(--hmx-navy);
	margin-right: 4px;
}
.hmx-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 16px;
	border-radius: 30px;
	font-size: .8rem;
	font-weight: 700;
	text-decoration: none;
	transition: transform .2s, opacity .2s;
	color: #fff;
}
.hmx-share-btn:hover { transform: translateY(-2px); opacity: .9; color: #fff; }
.hmx-share-btn--wa { background: #25D366; }
.hmx-share-btn--fb { background: #1877F2; }
.hmx-share-btn--tw { background: #000; }
.hmx-share-btn--copy { background: var(--hmx-navy); }

/* =====================================================
   AUTHOR BOX
   ===================================================== */
.hmx-author-box {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 26px;
	background: #fff;
	border: 1.5px solid #ecdcb4;
	border-radius: 18px;
	margin: 32px 0;
}
.hmx-author-box__avatar img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.hmx-author-box__avatar .hmx-author-initials {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--hmx-navy);
	color: #fff;
	display: grid;
	place-items: center;
	font-family: var(--hmx-display);
	font-size: 1.4rem;
	font-weight: 900;
	flex-shrink: 0;
}
.hmx-author-box__name {
	font-family: var(--hmx-display);
	font-weight: 800;
	font-size: 1.05rem;
	color: var(--hmx-navy);
	margin-bottom: 4px;
}
.hmx-author-box__role {
	font-size: .76rem;
	font-weight: 700;
	color: var(--hmx-orange);
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-bottom: 8px;
}
.hmx-author-box__bio {
	font-size: .88rem;
	color: var(--hmx-soft);
	line-height: 1.6;
}

/* =====================================================
   FAQ ACCORDION
   ===================================================== */
.hmx-faq-section {
	margin: 52px 0;
}
.hmx-faq-section__head {
	margin-bottom: 28px;
}
.hmx-faq-section__eye {
	display: block;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--hmx-orange);
	margin-bottom: 8px;
}
.hmx-faq-section h2 {
	font-family: var(--hmx-display);
	font-size: 1.8rem;
	color: var(--hmx-navy);
	margin: 0 0 6px;
	border: none !important;
	padding: 0 !important;
}
.hmx-faq-section__sub {
	font-size: .92rem;
	color: var(--hmx-soft);
}
.hmx-faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.hmx-faq-item {
	background: #fff;
	border: 1.5px solid #ecdcb4;
	border-radius: 14px;
	overflow: hidden;
	transition: border-color .2s;
}
.hmx-faq-item:hover { border-color: var(--hmx-orange); }
.hmx-faq-q {
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	font-size: .93rem;
	font-weight: 700;
	color: var(--hmx-navy);
	text-align: left;
	background: none;
	border: none;
	cursor: pointer;
	font-family: var(--hmx-body);
	line-height: 1.4;
}
.hmx-faq-q[aria-expanded="true"] { color: var(--hmx-orange); }
.hmx-faq-icon {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--hmx-cream);
	display: grid;
	place-items: center;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--hmx-orange);
	transition: transform .3s, background .2s;
	margin-top: 1px;
}
.hmx-faq-q[aria-expanded="true"] .hmx-faq-icon {
	background: var(--hmx-orange);
	color: #fff;
	transform: rotate(45deg);
}
.hmx-faq-a {
	padding: 0 20px;
	max-height: 0;
	overflow: hidden;
	transition: max-height .35s cubic-bezier(.4,0,.2,1), padding .35s;
}
.hmx-faq-a.open {
	padding: 0 20px 18px;
	max-height: 1200px;
}
.hmx-faq-a p {
	font-size: .92rem;
	color: var(--hmx-ink);
	line-height: 1.7;
	margin: 0 0 10px;
}
.hmx-faq-a p:last-child { margin-bottom: 0; }
.hmx-faq-a ul {
	padding-left: 18px;
	margin: 8px 0;
}
.hmx-faq-a ul li {
	font-size: .9rem;
	color: var(--hmx-ink);
	line-height: 1.6;
	margin-bottom: 4px;
}
.hmx-faq-schema-note {
	margin-top: 22px;
	text-align: center;
	font-size: .74rem;
	color: var(--hmx-soft);
	background: var(--hmx-cream-soft);
	border-radius: 10px;
	padding: 10px 16px;
}

/* =====================================================
   RELATED PRODUCTS SECTION
   ===================================================== */
.hmx-related-products {
	padding: 56px 0;
	background: var(--hmx-cream-soft);
	margin-top: 56px;
}
.hmx-rp-head {
	margin-bottom: 32px;
}
.hmx-rp-head__eye {
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--hmx-orange);
	display: block;
	margin-bottom: 8px;
}
.hmx-rp-head h2 {
	font-family: var(--hmx-display);
	font-size: 1.9rem;
	color: var(--hmx-navy);
	margin: 0;
}
.hmx-rp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.hmx-rp-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--hmx-shadow);
	display: block;
	color: inherit;
	text-decoration: none;
	transition: transform .3s, box-shadow .3s;
}
.hmx-rp-card:hover { transform: translateY(-4px); box-shadow: var(--hmx-shadow-lg); }
.hmx-rp-card__img {
	aspect-ratio: 4/3;
	overflow: hidden;
}
.hmx-rp-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s;
	border-radius: 0;
	margin: 0;
}
.hmx-rp-card:hover .hmx-rp-card__img img { transform: scale(1.05); }
.hmx-rp-card__body { padding: 16px; }
.hmx-rp-card__cat {
	font-size: .68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--hmx-orange);
	margin-bottom: 4px;
}
.hmx-rp-card__name {
	font-family: var(--hmx-display);
	font-size: 1rem;
	font-weight: 700;
	color: var(--hmx-navy);
	margin-bottom: 8px;
	line-height: 1.25;
}
.hmx-rp-card__price {
	font-weight: 800;
	color: var(--hmx-navy);
	font-size: .95rem;
}
.hmx-rp-card__price del {
	color: var(--hmx-soft);
	font-weight: 400;
	font-size: .82rem;
	margin-right: 5px;
	opacity: .8;
}
.hmx-rp-card__price ins {
	text-decoration: none;
}
.hmx-rp-cta {
	text-align: center;
	margin-top: 32px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 960px) {
	.hmx-article-grid { grid-template-columns: 1fr; }
	.hmx-article-sidebar { position: static; }
	.hmx-toc { display: none; } /* hide sticky TOC on mobile — inline TOC appears instead */
	.hmx-rp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.hmx-article-hero { min-height: 260px; }
	.hmx-article-hero h1 { font-size: 1.65rem; }
	.hmx-article-outer { padding: 32px 0 52px; }
	.hmx-article-content { font-size: .98rem; }
	.hmx-article-content h2 { font-size: 1.35rem; }
	.hmx-rp-grid { grid-template-columns: 1fr; }
	.hmx-author-box { flex-direction: column; }
	.hmx-share-row { flex-direction: column; align-items: flex-start; }
}
