/* ==========================================================================
   Home page: hero, tabs rail, category tiles, weavers banner, why, FAQ
   ========================================================================== */

/* ---------- Hero ---------- */
.xx-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, var(--xx-soft) 0%, #fbf8f4 100%);
	padding: 56px 0 64px;
}
.xx-hero__glow {
	position: absolute; right: -10%; top: -30%; width: 60%; height: 120%;
	background: radial-gradient(closest-side, rgba(var(--xx-accent-rgb), .10), transparent 70%);
	pointer-events: none;
}
.xx-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 48px; }
.xx-hero__copy { min-width: 0; animation: xx-rise .7s var(--xx-ease) both; }
body.xx .xx-hero__title { margin: 0 0 16px; font-size: clamp(30px, 3.1vw, 42px); line-height: 1.12; max-width: 15ch; }
.xx-hero__title .xx-accent { background: linear-gradient(transparent 82%, rgba(var(--xx-accent-rgb), .18) 82%); }
.xx-hero__text { margin: 0 0 26px; font-size: 18px; line-height: 1.55; color: var(--xx-muted); max-width: 46ch; }
.xx-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.xx-hero__link { margin-bottom: 26px; }

/* Chip scroller (arrows, drag, fade on the cut-off edge) */
.xx-chips { position: relative; display: flex; align-items: center; max-width: 100%; }
.xx-chips__track {
	display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px;
	mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
	cursor: grab; user-select: none; -webkit-user-select: none;
}
.xx-chips.is-start-hidden .xx-chips__track { mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.xx-chips.is-end .xx-chips__track { mask-image: linear-gradient(90deg, transparent, #000 48px); }
.xx-chips.is-end:not(.is-start-hidden) .xx-chips__track { mask-image: none; }
.xx-chips__track::-webkit-scrollbar { display: none; }
.xx-chips__track.is-dragging { cursor: grabbing; }
.xx-chips__track.is-dragging a { pointer-events: none; }
.xx-chips .xx-pill { background: #fff; min-height: 38px; font-size: 13.5px; }
body.xx .xx-chips__arrow {
	position: absolute; z-index: 2; width: 34px; height: 34px; padding: 0; border-radius: 50%;
	border: 1px solid var(--xx-line); background: #fff; color: var(--xx-ink); box-shadow: var(--xx-shadow-sm);
	display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.xx-chips__arrow--prev { left: -6px; }
.xx-chips__arrow--next { right: -6px; }
body.xx .xx-chips__arrow[hidden] { display: none; }

/* Photo cards */
.xx-hero__media { position: relative; min-width: 0; padding-top: 100px; }
.xx-hero__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (min-width: 1100px) { .xx-hero__media { margin-top: -40px; } }
body.xx .xx-hero-card {
	display: flex; flex-direction: column; overflow: hidden;
	border-radius: var(--xx-r-tile); background: #fff; color: var(--xx-ink); text-decoration: none;
	box-shadow: var(--xx-shadow-md);
	transition: transform .3s var(--xx-ease), box-shadow .3s ease;
	animation: xx-rise .8s var(--xx-ease) both;
}
.xx-hero-card:nth-child(2) { margin-top: 36px; animation-delay: .08s; }
.xx-hero-card:nth-child(3) { animation-delay: .16s; }
body.xx .xx-hero-card:hover { transform: translateY(-4px); box-shadow: var(--xx-shadow-lg); }
.xx-hero-card__img { display: block; aspect-ratio: 5 / 6; overflow: hidden; background: var(--xx-soft); }
.xx-hero-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--xx-ease); }
.xx-hero-card:hover .xx-hero-card__img img { transform: scale(1.04); }
.xx-hero-card__body { position: relative; display: block; padding: 14px 56px 16px 16px; }
.xx-hero-card__title { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.xx-hero-card__sub { display: block; margin-top: 3px; font-size: 13px; color: var(--xx-muted); line-height: 1.3; }
.xx-hero-card__go { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--xx-ink); color: #fff; display: flex; align-items: center; justify-content: center; }

/* Round badge, top right of the hero, never on the cards */
.xx-hero__badge {
	position: absolute; right: 4px; top: -6px; z-index: 2;
	width: 104px; height: 104px; margin: 0; border-radius: 50%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	background: var(--xx-accent); color: #fff; transform: rotate(-10deg);
	box-shadow: 0 10px 30px rgba(var(--xx-accent-rgb), .35), inset 0 0 0 4px rgba(255, 255, 255, .18);
	animation: xx-pop .7s .3s var(--xx-ease) both;
}
.xx-hero__badge strong { font-size: 26px; line-height: 1; letter-spacing: -.02em; }
.xx-hero__badge span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; line-height: 1.2; margin-top: 3px; max-width: 76px; }

@keyframes xx-rise { from { transform: translateY(14px); } to { transform: none; } }
@keyframes xx-pop { from { transform: rotate(-10deg) scale(.6); } to { transform: rotate(-10deg) scale(1); } }
@media (prefers-reduced-motion: reduce) {
	.xx-hero__copy, .xx-hero-card, .xx-hero__badge { animation: none; }
}

@media (max-width: 1099px) {
	.xx-hero__grid { grid-template-columns: 1fr; gap: 32px; }
	body.xx .xx-hero__title { max-width: 18ch; padding-right: 110px; }
	.xx-hero__media { position: static; padding-top: 0; }
	.xx-hero__badge { top: -8px; right: var(--xx-gutter); width: 92px; height: 92px; }
	.xx-hero-card:nth-child(2) { margin-top: 0; }
}
@media (min-width: 750px) and (max-width: 1099px) {
	.xx-hero-card__img { aspect-ratio: 4 / 3; }
}
@media (max-width: 749px) {
	.xx-hero { padding: 28px 0 36px; }
	body.xx .xx-hero__title { font-size: 28px; padding-right: 84px; margin-bottom: 10px; }
	.xx-hero__text { font-size: 15.5px; margin-bottom: 18px; }
	.xx-hero__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
	body.xx .xx-hero__ctas .xx-btn { padding: 6px 10px; min-width: 0; white-space: normal; text-align: center; font-size: 14px; line-height: 1.2; }
	.xx-hero__link { margin-bottom: 18px; font-size: 14px; }
	.xx-chips { margin: 0 calc(var(--xx-gutter) * -1); }
	.xx-chips__track { padding: 2px var(--xx-gutter); mask-image: none; }
	.xx-chips__arrow { display: none !important; }
	.xx-hero__badge { top: -6px; right: var(--xx-gutter); width: 76px; height: 76px; }
	.xx-hero__badge strong { font-size: 20px; }
	.xx-hero__badge span { font-size: 8.5px; max-width: 60px; }
	.xx-hero__grid { gap: 22px; }
	.xx-hero__cards {
		display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 66%;
		overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		margin: 0 calc(var(--xx-gutter) * -1); padding: 4px var(--xx-gutter) 16px; gap: 12px;
	}
	.xx-hero__cards::-webkit-scrollbar { display: none; }
	.xx-hero-card { scroll-snap-align: center; }
}

/* ---------- Tabs rail ---------- */
.xx-tabs__list {
	display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
	padding: 2px 2px 4px; margin-bottom: 20px;
}
.xx-tabs__list::-webkit-scrollbar { display: none; }
body.xx .xx-tabs__tab { min-height: 44px; padding: 0 20px; font-size: 14.5px; }
.xx-tabs__panel[hidden] { display: none; }
@media (max-width: 749px) {
	.xx-tabs__list { margin: 0 calc(var(--xx-gutter) * -1) 16px; padding: 2px var(--xx-gutter) 4px; }
	body.xx .xx-tabs__tab { min-height: 40px; padding: 0 16px; font-size: 14px; }
}

/* ---------- Shop by category (compact tiles) ---------- */
.xx-cat-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 14px; }
.xx-cat-grid .xx-tile__img { background: #fff; border-radius: var(--xx-r-card); box-shadow: var(--xx-shadow-sm); }
.xx-cat-grid .xx-tile__label { font-size: 13.5px; }
.xx-cat-grid .xx-tile__sub { display: none; }
@media (max-width: 1099px) { .xx-cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 749px) { .xx-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; } .xx-cat-grid .xx-tile__label { font-size: 12.5px; } }

/* ---------- Weavers banner ---------- */
body.xx .xx-banner {
	position: relative; display: block; overflow: hidden;
	border-radius: var(--xx-r-tile); color: #fff; text-decoration: none; background: var(--xx-ink);
	aspect-ratio: 1300 / 520;
}
.xx-banner__img, .xx-banner__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.xx-banner__img img { transition: transform .8s var(--xx-ease); }
.xx-banner:hover .xx-banner__img img { transform: scale(1.03); }
.xx-banner__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 18, 14, .78) 0%, rgba(22, 18, 14, .45) 42%, rgba(22, 18, 14, 0) 70%); }
.xx-banner__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; height: 100%; padding: 0 56px; max-width: 520px; box-sizing: border-box; }
.xx-banner__title { display: block; margin-bottom: 10px; font-size: clamp(28px, 3.2vw, 44px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: #fff; }
.xx-banner__text { display: block; margin-bottom: 22px; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
@media (max-width: 749px) {
	body.xx .xx-banner { aspect-ratio: auto; display: flex; flex-direction: column; }
	.xx-banner__img { position: relative; display: block; aspect-ratio: 4 / 3; }
	.xx-banner__img::after { background: linear-gradient(0deg, rgba(22, 18, 14, .55), transparent 50%); }
	.xx-banner__copy { padding: 22px 20px 24px; max-width: none; }
	.xx-banner__title { font-size: 26px; }
	.xx-banner__text { font-size: 15px; margin-bottom: 16px; }
}

/* ---------- Why Xaal Xuta ---------- */
.xx-why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
body.xx .xx-why__title { margin: 0 0 16px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; }
.xx-why__copy p { color: var(--xx-muted); font-size: 17px; margin: 0 0 24px; max-width: 52ch; }
.xx-why__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.xx-why__stat { margin: 0; padding: 22px 20px; border: 1px solid var(--xx-line); border-radius: var(--xx-r-card); background: var(--xx-soft); }
.xx-why__stat strong { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--xx-ink); line-height: 1.2; margin-bottom: 6px; }
.xx-why__stat span { display: block; color: var(--xx-muted); font-size: 14px; line-height: 1.45; }
@media (max-width: 989px) { .xx-why__grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 749px) { .xx-why__stat { padding: 16px 14px; } .xx-why__stat strong { font-size: 18px; } .xx-why__stat span { font-size: 13px; } }

/* ---------- FAQ ---------- */
.xx-faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.xx-faq__grid .xx-heading { margin-bottom: 20px; }
@media (max-width: 989px) { .xx-faq__grid { grid-template-columns: 1fr; gap: 20px; } }
