/**
 * Linkivo shared components.
 * Ported directly from the validated HTML prototypes (homepage, category
 * page, subservice page). Keep class names identical to the prototypes so
 * porting markup into PHP templates is close to copy/paste.
 */

/* ---------- Header ---------- */
.site-header {
	background: var(--ink);
	padding: 18px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--line);
}
.logo {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.3rem;
	color: var(--white);
	display: flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}
.logo .dot {
	width: 8px;
	height: 8px;
	background: var(--gold);
	border-radius: 50%;
}
.header-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}
.cart-icon {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--prussian);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gold);
	font-size: .85rem;
	font-weight: 600;
	border: 1px solid var(--line);
}

/* ---------- Buttons ---------- */
.btn-outline {
	border: 1.5px solid rgba(255, 255, 255, 0.3);
	color: var(--white);
	background: transparent;
	padding: 9px 18px;
	border-radius: var(--radius-pill);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: .85rem;
	cursor: pointer;
}
.btn-solid {
	background: var(--gold);
	color: var(--ink);
	padding: 9px 18px;
	border-radius: var(--radius-pill);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: .85rem;
	border: none;
	cursor: pointer;
}

/* ---------- Eyebrow / trust chips ---------- */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 195, 0, 0.1);
	border: 1px solid rgba(255, 214, 10, 0.35);
	color: var(--gold);
	font-family: var(--font-mono);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: var(--radius-pill);
	margin-bottom: 18px;
}
.trust-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 22px;
}
.trust-chip {
	font-family: var(--font-mono);
	font-size: .68rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--line);
	padding: 5px 10px;
	border-radius: 6px;
}

/* ---------- Category cards (homepage) ---------- */
.cat-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	max-width: 960px;
	margin: 0 auto;
}
@media (min-width: 720px) {
	.cat-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
.cat-card {
	background: var(--ink);
	border-radius: 16px;
	padding: 24px;
	color: var(--white);
	position: relative;
	overflow: hidden;
}
.cat-card .icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(255, 214, 10, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gold);
	font-family: var(--font-mono);
	font-weight: 600;
	margin-bottom: 14px;
}
.cat-card h3 {
	font-size: 1.1rem;
	margin-bottom: 6px;
}
.cat-card p {
	font-size: .82rem;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 16px;
}
.cat-card .count {
	font-family: var(--font-mono);
	font-size: .72rem;
	color: var(--gold);
}

/* ---------- Service cards (category page) ---------- */
.service-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.service-card {
	background: var(--ink);
	border-radius: 16px;
	overflow: hidden;
	color: var(--white);
	position: relative;
}
.service-card .badge {
	position: absolute;
	top: 14px;
	right: 14px;
	background: var(--gold);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: .62rem;
	font-weight: 700;
	padding: 4px 9px;
	border-radius: var(--radius-pill);
}
.service-body {
	padding: 20px;
}
.service-tag {
	font-family: var(--font-mono);
	font-size: .65rem;
	color: rgba(255, 255, 255, 0.5);
	text-transform: uppercase;
	letter-spacing: .05em;
}
.service-name {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 6px 0;
}
.service-desc {
	font-size: .84rem;
	color: rgba(255, 255, 255, 0.62);
	line-height: 1.45;
	margin-bottom: 16px;
}
.service-foot {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	border-top: 1px solid var(--line);
	padding-top: 14px;
}
.from-price .lbl {
	font-family: var(--font-mono);
	font-size: .62rem;
	color: rgba(255, 255, 255, 0.5);
	text-transform: uppercase;
}
.from-price .price {
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--white);
}
.delivery {
	font-family: var(--font-mono);
	font-size: .72rem;
	color: var(--gold);
	display: flex;
	align-items: center;
	gap: 5px;
}

/* ---------- Tier cards (single product / subservice page) ---------- */
.tier-card {
	background: var(--white);
	border: 1.5px solid #E2E8EF;
	border-radius: var(--radius-md);
	padding: 18px;
	margin-bottom: 14px;
	transition: border-color .15s;
}
.tier-card.has-qty {
	border-color: var(--oxford);
	box-shadow: 0 0 0 3px rgba(0, 53, 102, 0.08);
}
.tier-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 12px;
}
.tier-name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.02rem;
}
.tier-meta {
	font-family: var(--font-mono);
	font-size: .72rem;
	color: var(--text-secondary);
	margin-top: 3px;
}
.signal {
	display: flex;
	gap: 3px;
	align-items: flex-end;
	height: 16px;
}
.signal span {
	width: 4px;
	background: #DCE3EA;
	border-radius: 1px;
}
.signal span.on {
	background: var(--oxford);
}
.signal span:nth-child(1) { height: 5px; }
.signal span:nth-child(2) { height: 8px; }
.signal span:nth-child(3) { height: 11px; }
.signal span:nth-child(4) { height: 14px; }
.signal span:nth-child(5) { height: 16px; }

.tier-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.price-block .price {
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: 1.3rem;
}
.price-block .was {
	font-family: var(--font-mono);
	font-size: .75rem;
	color: #9AA6B2;
	text-decoration: line-through;
	margin-left: 6px;
}
.price-block .badge {
	display: block;
	font-family: var(--font-mono);
	font-size: .65rem;
	color: var(--oxford);
	background: rgba(0, 53, 102, 0.08);
	padding: 2px 6px;
	border-radius: 4px;
	margin-top: 4px;
	width: fit-content;
}

.qty {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--mist);
	border-radius: var(--radius-pill);
	padding: 6px 8px;
}
.qty button {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: none;
	background: var(--ink);
	color: var(--gold);
	font-size: 1.1rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.qty span {
	font-family: var(--font-mono);
	font-weight: 600;
	min-width: 14px;
	text-align: center;
}

/* ---------- Add-ons ---------- */
.addon {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--white);
	border: 1.5px solid #E2E8EF;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 10px;
}
.addon.checked {
	border-color: var(--gold);
	background: #FFFBEA;
}
.addon-left {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.check {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	border: 1.5px solid #DCE3EA;
	flex-shrink: 0;
	margin-top: 1px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.addon.checked .check {
	background: var(--gold);
	border-color: var(--gold);
}
.addon-title {
	font-weight: 600;
	font-size: .9rem;
}
.addon-desc {
	font-size: .78rem;
	color: var(--text-secondary);
	margin-top: 2px;
}
.addon-price {
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: .88rem;
	white-space: nowrap;
}

/* ---------- Order summary ---------- */
.summary {
	background: var(--ink);
	color: var(--white);
	border-radius: var(--radius-lg);
	margin: 8px 20px 24px;
	padding: 22px;
}
.summary h3 {
	font-size: 1.05rem;
	margin-bottom: 16px;
}
.sum-row {
	display: flex;
	justify-content: space-between;
	font-size: .88rem;
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
}
.sum-row.total {
	border-bottom: none;
	padding-top: 14px;
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: 1.15rem;
}
.sum-row .label {
	color: rgba(255, 255, 255, 0.65);
}
.sum-row .val {
	font-family: var(--font-mono);
}
.sum-row.total .val {
	color: var(--gold);
}

.cta {
	width: 100%;
	background: var(--gold);
	color: var(--ink);
	border: none;
	border-radius: var(--radius-pill);
	padding: 16px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: .98rem;
	margin-top: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
}
.cta-sub {
	text-align: center;
	font-size: .72rem;
	color: rgba(255, 255, 255, 0.72);
	margin-top: 10px;
	font-family: var(--font-mono);
}

/* ---------- Generic sections / footer ---------- */
.section {
	padding: 28px 20px;
	background: var(--mist);
}
.section-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 4px;
}
.section-sub {
	color: var(--text-muted);
	font-size: .88rem;
	margin-bottom: 20px;
}

.site-footer {
	background: var(--ink);
	border-top: 1px solid var(--line);
	padding: 28px 24px;
	text-align: center;
	color: var(--text-muted);
	font-family: var(--font-mono);
	font-size: .72rem;
}
