/*
Theme Name: SwapMeet Cards
Theme URI: https://swapmeetcards.com/
Description: SwapMeetCards brand theme — Astra child theme implementing the Figma "SwapMeet Cards / 首页可编辑版" design system (Roboto, navy #071b32, crimson #aa0032).
Author: SwapMeetCards
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: swapmeet-cards
*/

/* =========================================================================
   1. Design tokens — lifted from the Figma file's published styles
   ========================================================================= */
:root {
	--smc-navy: #071b32;
	--smc-navy-soft: #12233a;
	--smc-body: #444b55;
	--smc-muted: #676c72;
	--smc-muted-2: #8d9094;
	--smc-crimson: #aa0032;
	--smc-crimson-dark: #8d0029;
	--smc-crimson-tint: #fbeef2;
	--smc-white: #ffffff;
	--smc-surface: #fdfdfd;
	--smc-surface-2: #f4f5f6;
	--smc-bg: #faf9f6;
	--smc-dark: #032340;
	--smc-border: #edeeef;
	--smc-border-2: #e6e7e9;
	--smc-footer-link: #676c72;

	--smc-shell: 1440px;
	--smc-pad: 65.25px;
	--smc-gap: 22.25px;
	--smc-radius: 2.97px;
	--smc-radius-lg: 4.45px;
	--smc-radius-xl: 12px;

	--smc-shadow-panel: 0 24px 48px -12px rgba(7, 27, 50, 0.18), 0 4px 12px -4px rgba(7, 27, 50, 0.08);
	--smc-shadow-card: 0 1px 2px rgba(7, 27, 50, 0.04);

	--smc-font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
	--smc-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================================
   2. Base / reset — neutralise Astra's own layout, then rebuild
   ========================================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body.smc-body {
	margin: 0;
	padding: 0;
	background: var(--smc-white);
	color: var(--smc-body);
	font-family: var(--smc-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* Astra injects wrappers we do not use; make them transparent. */
body.smc-body #page,
body.smc-body .hfeed.site,
body.smc-body #content,
body.smc-body .site-content {
	display: block;
	margin: 0;
	padding: 0;
	background: none;
	max-width: none;
	width: 100%;
}

/* Base rules are wrapped in :where() so they carry ZERO specificity and can
   never outrank a component class. Without this, `body.smc-body a` (0,1,1)
   beat `.smc-btn--primary` (0,1,0) and the primary button rendered crimson
   text on a crimson fill. */
:where(body.smc-body) :where(h1, h2, h3, h4, h5, h6) {
	margin: 0;
	color: var(--smc-navy);
	font-family: var(--smc-font);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

:where(body.smc-body) :where(p) {
	margin: 0 0 1em;
}

:where(body.smc-body) :where(a) {
	color: var(--smc-crimson);
	text-decoration: none;
	transition: color 0.18s var(--smc-ease);
}

:where(body.smc-body) :where(a:hover) {
	color: var(--smc-crimson-dark);
}

:where(body.smc-body) :where(img) {
	max-width: 100%;
	height: auto;
	display: block;
}

:where(body.smc-body) :where(ul, ol) {
	margin: 0;
	padding: 0;
	list-style: none;
}

:where(body.smc-body) :where(button) {
	font: inherit;
	color: inherit;
	border: 0;
	background: none;
	cursor: pointer;
}

:where(body.smc-body) :where(input, select, textarea) {
	font: inherit;
	color: inherit;
}

:where(body.smc-body) :where(:focus-visible) {
	outline: 2px solid var(--smc-crimson);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Inline UI icons carry a viewBox but no intrinsic size, so give every SVG a
   sane default; the component rules below always override it. */
:where(body.smc-body) :where(svg) {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.smc-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.smc-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--smc-navy);
	color: #fff;
	padding: 12px 18px;
}

.smc-skip:focus {
	left: 0;
	color: #fff;
}

/* =========================================================================
   3. Layout primitives
   ========================================================================= */
.smc-container {
	width: 100%;
	max-width: var(--smc-shell);
	margin: 0 auto;
	padding-inline: var(--smc-pad);
}

.smc-section {
	position: relative;
	width: 100%;
}

.smc-section--white {
	background: var(--smc-white);
}

.smc-section--surface {
	background: var(--smc-surface-2);
}

.smc-section--bg {
	background: var(--smc-bg);
}

.smc-eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	color: var(--smc-crimson);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* =========================================================================
   4. Buttons — Figma "Button / *" components
   ========================================================================= */
.smc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 58px;
	padding: 0 26px;
	border: 1.5px solid transparent;
	border-radius: var(--smc-radius);
	font-size: 19.28px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.18s var(--smc-ease), color 0.18s var(--smc-ease),
		border-color 0.18s var(--smc-ease), transform 0.18s var(--smc-ease);
}

.smc-btn:hover {
	transform: translateY(-1px);
}

.smc-btn--primary {
	background: var(--smc-crimson);
	border-color: var(--smc-crimson);
	color: #fff;
}

.smc-btn--primary:hover,
.smc-btn--primary:focus-visible {
	background: var(--smc-crimson-dark);
	border-color: var(--smc-crimson-dark);
	color: #fff;
}

.smc-btn--outline {
	background: transparent;
	border-color: var(--smc-crimson);
	color: var(--smc-crimson);
}

.smc-btn--outline:hover,
.smc-btn--outline:focus-visible {
	background: var(--smc-crimson);
	color: #fff;
}

.smc-btn--sm {
	min-height: 50.42px;
	padding: 0 20px;
	font-size: 16.31px;
}

.smc-btn--quote {
	min-height: 50.42px;
	padding: 0 22px;
	font-size: 16.31px;
	font-weight: 700;
}

.smc-btn--block {
	width: 100%;
}

.smc-arrow {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	transition: transform 0.18s var(--smc-ease);
}

.smc-btn:hover .smc-arrow,
.smc-linkarrow:hover .smc-arrow {
	transform: translateX(3px);
}

/* Inline arrow link, e.g. "View All Products →" */
.smc-linkarrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--smc-crimson);
	font-size: 16.31px;
	font-weight: 700;
}

/* =========================================================================
   5. Header + navigation
   ========================================================================= */
.smc-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: var(--smc-white);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s var(--smc-ease), box-shadow 0.2s var(--smc-ease);
}

.smc-header.is-stuck {
	border-bottom-color: var(--smc-border);
	box-shadow: 0 6px 20px -12px rgba(7, 27, 50, 0.22);
}

.smc-header__inner {
	position: relative; /* mega panels anchor to the container, not the nav item */
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 80px;
}

.smc-logo {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.smc-logo img {
	width: 207.6px;
	height: auto;
}

.smc-nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}

.smc-nav__list {
	display: flex;
	align-items: center;
	gap: 6px;
}

.smc-nav__item {
	position: static; /* keeps the panel aligned with the header container */
}

.smc-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 12px;
	border-radius: var(--smc-radius);
	color: var(--smc-navy);
	font-size: 14.83px;
	font-weight: 400;
	line-height: 1.2;
	white-space: nowrap;
	transition: color 0.18s var(--smc-ease), background-color 0.18s var(--smc-ease);
}

.smc-nav__link:hover,
.smc-nav__link:focus-visible {
	color: var(--smc-crimson);
}

/* "Open — active underline" */
.smc-nav__item.is-open > .smc-nav__link,
.smc-nav__item.is-current > .smc-nav__link {
	color: var(--smc-crimson);
	box-shadow: inset 0 -2px 0 var(--smc-crimson);
}

.smc-nav__item.is-current > .smc-nav__link {
	font-weight: 500;
}

.smc-chevron {
	width: 12px;
	height: 12px;
	flex: 0 0 auto;
	transition: transform 0.18s var(--smc-ease);
}

.smc-nav__item.is-open .smc-chevron {
	transform: rotate(180deg);
}

.smc-header__actions {
	display: flex;
	align-items: center;
	gap: 18px;
	flex: 0 0 auto;
}

.smc-lang {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--smc-navy);
	font-size: 14.83px;
}

.smc-lang__globe {
	width: 19.28px;
	height: 19.28px;
}

.smc-lang__chev {
	width: 12px;
	height: 12px;
}

/* Burger — mobile only */
.smc-burger {
	display: none;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	color: var(--smc-navy);
}

.smc-burger svg {
	width: 24px;
	height: 24px;
}

.smc-drawer__close svg {
	width: 20px;
	height: 20px;
}

/* -------------------------------------------------------------------------
   5a. Mega menu panel shell
   ---------------------------------------------------------------------- */
.smc-panel {
	position: absolute;
	top: 100%;
	left: 50%;
	z-index: 95;
	max-width: min(100%, calc(100vw - 48px));
	transform: translate(-50%, 8px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	background: var(--smc-white);
	border: 1px solid var(--smc-border-2);
	border-radius: var(--smc-radius-xl);
	box-shadow: var(--smc-shadow-panel);
	/* "Hover + Focus — 180 ms fade + 8 px slide" */
	transition: opacity 0.18s var(--smc-ease), transform 0.18s var(--smc-ease),
		visibility 0s linear 0.18s;
}

.smc-nav__item.is-open > .smc-panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, 0);
	transition-delay: 0s;
}

/* Panel widths per Figma spec board */
.smc-panel--mega {
	width: 1000px;
}

.smc-panel--split-promos,
.smc-panel--split-promo,
.smc-panel--work {
	width: 940px;
}

.smc-panel--steps {
	width: 960px;
}

.smc-panel--twocol {
	width: 700px;
}

.smc-panel--list {
	width: 300px;
}

.smc-panel__inner {
	padding: 24px;
}

.smc-panel__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 0;
	padding: 14px 24px;
	border-top: 1px solid var(--smc-border);
}

.smc-panel__note {
	margin: 0;
	color: var(--smc-muted);
	font-size: 12.5px;
}

.smc-panel a {
	color: inherit;
}

/* -------------------------------------------------------------------------
   5b. Custom Cards — mega menu with group rail
   ---------------------------------------------------------------------- */
.smc-mega {
	width: 1000px;
}

.smc-mega__search {
	position: relative;
	margin-bottom: 20px;
}

.smc-mega__search svg {
	position: absolute;
	left: 14px;
	top: 50%;
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	color: var(--smc-muted-2);
}

.smc-mega__search input {
	width: 100%;
	height: 44px;
	padding: 0 16px 0 40px;
	background: var(--smc-white);
	border: 1px solid var(--smc-border-2);
	border-radius: 6px;
	color: var(--smc-navy);
	font-size: 13.5px;
}

.smc-mega__search input::placeholder {
	color: var(--smc-muted-2);
}

.smc-mega__body {
	display: grid;
	grid-template-columns: 210px 1fr;
	gap: 22px;
}

.smc-mega__rail {
	display: flex;
	flex-direction: column;
	gap: 6px;
	border-right: 1px solid var(--smc-border);
	padding-right: 18px;
}

.smc-railbtn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 11px 12px;
	border-radius: 6px;
	color: var(--smc-navy);
	font-size: 13.5px;
	font-weight: 500;
	text-align: left;
	transition: background-color 0.18s var(--smc-ease), color 0.18s var(--smc-ease);
}

.smc-railbtn svg {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
}

.smc-railbtn:hover {
	background: var(--smc-surface-2);
}

/* "Open — active underline" equivalent for the rail: solid crimson */
.smc-railbtn.is-active {
	background: var(--smc-crimson);
	color: #fff;
}

.smc-mega__group {
	display: none;
}

.smc-mega__group.is-active {
	display: block;
}

.smc-mega__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.smc-megacard {
	display: block;
}

.smc-megacard img {
	width: 100%;
	aspect-ratio: 156 / 92;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 10px;
	background: var(--smc-surface-2);
}

.smc-megacard b {
	display: block;
	color: var(--smc-navy);
	font-size: 14px;
	font-weight: 700;
}

.smc-megacard span {
	display: block;
	margin-top: 4px;
	color: var(--smc-muted);
	font-size: 11.5px;
	line-height: 1.45;
}

.smc-megacard:hover b {
	color: var(--smc-crimson);
}

.smc-mega__thumbs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 18px;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--smc-border);
}

.smc-megathumb img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 8px;
	background: var(--smc-surface-2);
}

.smc-megathumb span {
	display: block;
	color: var(--smc-navy);
	font-size: 12px;
	font-weight: 500;
	text-align: center;
}

.smc-megathumb:hover span {
	color: var(--smc-crimson);
}

/* -------------------------------------------------------------------------
   5c. Generic split panels (Packaging / About Us)
   ---------------------------------------------------------------------- */
.smc-split {
	width: 940px;
}

.smc-split__body {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 26px;
}

.smc-split--wide .smc-split__body {
	grid-template-columns: 1fr 1.35fr;
}

.smc-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.smc-list__link {
	display: grid;
	grid-template-columns: 18px 1fr;
	align-items: start;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 6px;
	transition: background-color 0.18s var(--smc-ease);
}

.smc-list__link:hover {
	background: var(--smc-surface-2);
}

.smc-list__link svg {
	width: 17px;
	height: 17px;
	margin-top: 2px;
	color: var(--smc-navy);
}

.smc-list__link b {
	display: block;
	color: var(--smc-navy);
	font-size: 14px;
	font-weight: 700;
}

.smc-list__link span {
	display: block;
	margin-top: 2px;
	color: var(--smc-muted);
	font-size: 12px;
	line-height: 1.4;
}

.smc-list__link:hover b {
	color: var(--smc-crimson);
}

.smc-promos {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.smc-promo img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 10px;
	background: var(--smc-surface-2);
}

.smc-promo b {
	display: block;
	color: var(--smc-navy);
	font-size: 14px;
	font-weight: 700;
}

.smc-promo span {
	display: block;
	margin-top: 4px;
	color: var(--smc-muted);
	font-size: 11.5px;
	line-height: 1.45;
}

.smc-promo:hover b {
	color: var(--smc-crimson);
}

/* Two-column link panel (Resources) */
.smc-twocol {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	width: 640px;
}

.smc-twocol h4 {
	margin-bottom: 12px;
	color: var(--smc-navy);
	font-size: 13.5px;
	font-weight: 700;
}

/* -------------------------------------------------------------------------
   5d. How It Works + Our Work panels
   ---------------------------------------------------------------------- */
.smc-steps-panel {
	width: 960px;
}

.smc-steps-panel__body {
	display: grid;
	grid-template-columns: 1.25fr 1fr 0.85fr;
	gap: 26px;
}

.smc-stepmini {
	display: grid;
	grid-template-columns: 18px 1fr;
	gap: 8px;
	padding: 6px 0;
}

.smc-stepmini em {
	color: var(--smc-crimson);
	font-size: 13px;
	font-style: normal;
	font-weight: 700;
}

.smc-stepmini b {
	display: block;
	color: var(--smc-navy);
	font-size: 13px;
	font-weight: 700;
}

.smc-stepmini span {
	display: block;
	margin-top: 2px;
	color: var(--smc-muted);
	font-size: 11.5px;
	line-height: 1.4;
}

.smc-panelimg {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 6px;
	background: var(--smc-surface-2);
}

.smc-work__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 16px;
}

.smc-pill {
	padding: 6px 14px;
	border: 1px solid var(--smc-border-2);
	border-radius: 999px;
	color: var(--smc-navy);
	font-size: 12.5px;
	font-weight: 500;
}

.smc-pill:hover {
	border-color: var(--smc-crimson);
	color: var(--smc-crimson);
}

.smc-pill.is-active {
	background: var(--smc-crimson);
	border-color: var(--smc-crimson);
	color: #fff;
}

.smc-select {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	background: var(--smc-white);
	border: 1px solid var(--smc-border-2);
	border-radius: 6px;
	color: var(--smc-navy);
	font-size: 12.5px;
}

.smc-work__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.smc-project img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 10px;
	background: var(--smc-surface-2);
}

.smc-project b {
	display: block;
	color: var(--smc-navy);
	font-size: 14px;
	font-weight: 700;
}

.smc-badge {
	display: inline-block;
	margin: 6px 0 4px;
	padding: 2px 8px;
	background: var(--smc-surface-2);
	border-radius: 3px;
	color: var(--smc-muted);
	font-size: 10.5px;
	font-weight: 500;
}

.smc-project span {
	display: block;
	color: var(--smc-muted);
	font-size: 11.5px;
	line-height: 1.45;
}

.smc-project .smc-linkarrow {
	margin-top: 8px;
	font-size: 12px;
}

.smc-panel__sub {
	margin: 0 0 4px;
	color: var(--smc-muted);
	font-size: 12px;
}

.smc-panel h3 {
	margin: 0 0 8px;
	color: var(--smc-navy);
	font-size: 16px;
	font-weight: 700;
}

/* =========================================================================
   6. Mobile navigation drawer  (spec C)
   ========================================================================= */
.smc-drawer {
	position: fixed;
	inset: 80px 0 0 0;
	z-index: 89;
	background: var(--smc-white);
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 0.24s var(--smc-ease);
	display: none;
}

.smc-drawer.is-open {
	transform: translateX(0);
}

.smc-drawer__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid var(--smc-border);
	font-weight: 700;
}

.smc-drawer__list {
	padding: 6px 0;
}

.smc-drawer__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 15px 20px;
	border-bottom: 1px solid var(--smc-border);
	color: var(--smc-navy);
	font-size: 16px;
	font-weight: 500;
	text-align: left;
}

.smc-drawer__row svg {
	width: 14px;
	height: 14px;
}

.smc-drawer__sub {
	display: none;
	background: var(--smc-surface-2);
}

.smc-drawer__sub.is-open {
	display: block;
}

.smc-drawer__sub a {
	display: block;
	padding: 13px 20px 13px 34px;
	border-bottom: 1px solid var(--smc-border);
	color: var(--smc-navy);
	font-size: 15px;
}

.smc-drawer__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	background: var(--smc-white);
	border-bottom: 1px solid var(--smc-border);
	color: var(--smc-navy);
	font-size: 15px;
	font-weight: 700;
}

.smc-drawer__cta {
	padding: 20px;
}

