/*
 * Shipping Policy — Compact Hero
 * Depends on: design-tokens.css, log-global-core.css
 * Page: body.log-shipping-page
 */

/* Blocksy's is-layout-constrained forces margin-left/right:auto on direct
 * children — hero is meant full-bleed, so cancel it explicitly. */
body.log-shipping-page .entry-content.is-layout-constrained > .ship-hero {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: none !important;
}

/* Blocksy's .ct-container-full adds a default 10px top padding meant for
 * normal padded page content — leaves a visible gap above our full-bleed
 * hero, which should sit flush against the header. */
body.log-shipping-page .ct-container-full {
	padding-top: 0;
}

.ship-hero {
	position: relative;
	background: linear-gradient(135deg, var(--ink-950) 0%, #0d0b06 28%, #1a1306 50%, #241a07 72%, var(--ink-950) 100%);
	overflow: hidden;
	padding: 44px 24px 30px;
}

/* multi-point gold ambient layer (matches delivery-proof hero) */
.ship-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 60% 55% at 8% 10%, var(--gold-glass-20) 0%, transparent 65%),
		radial-gradient(ellipse 50% 60% at 88% 40%, var(--gold-glass-10) 0%, transparent 65%),
		radial-gradient(ellipse 45% 35% at 50% 100%, var(--gold-glass-10) 0%, transparent 60%),
		linear-gradient(160deg, var(--gold-glass-06) 0%, transparent 50%);
}

/* subtle grid texture (matches delivery-proof hero) */
.ship-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: linear-gradient(var(--gold-glass-04) 1px, transparent 1px), linear-gradient(90deg, var(--gold-glass-04) 1px, transparent 1px);
	background-size: 48px 48px;
	pointer-events: none;
}

/* ── Decorative rising particles (matches delivery-proof hero) ── */
.sh-leaf { position: absolute; border-radius: 50%; pointer-events: none; opacity: 0; animation: shipParticleRise var(--dur, 8s) ease-in-out var(--delay, 0s) infinite; z-index: 1; }
.sh-leaf.glow { box-shadow: 0 0 6px 2px var(--gold-glass-55); }
.sh-leaf.glow-lg { box-shadow: 0 0 10px 4px var(--gold-glass-40); }

@keyframes shipParticleRise {
	0%   { opacity: 0; transform: translateY(0) scale(.5); }
	10%  { opacity: 1; }
	75%  { opacity: .5; }
	100% { opacity: 0; transform: translateY(-200px) scale(1.2); }
}

@media(max-width:640px) {
	.sh-leaf { display: none; }
}

/* ── Decorative orbiting badges ── */
.sh-badge {
	position: absolute;
	pointer-events: none;
	opacity: .94;
	animation: shipOrbitMove 10s ease-in-out infinite;
}

.sh-badge.p2 { opacity: .85; animation: shipOrbitMoveRev 13s ease-in-out infinite; }

@keyframes shipOrbitMove {
	0%   { transform: translate(0, 0); }
	25%  { transform: translate(40px, -28px); }
	50%  { transform: translate(0, -46px); }
	75%  { transform: translate(-40px, -28px); }
	100% { transform: translate(0, 0); }
}

@keyframes shipOrbitMoveRev {
	0%   { transform: translate(0, 0); }
	25%  { transform: translate(-28px, -22px); }
	50%  { transform: translate(0, -34px); }
	75%  { transform: translate(28px, -22px); }
	100% { transform: translate(0, 0); }
}

.sh-badge-circle {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: linear-gradient(150deg, var(--gold-400), var(--gold-600));
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 12px 28px -6px var(--gold-glass-55);
	border: 3px solid var(--white-glass-15);
	animation: shipSpinBadge 8s linear infinite;
}

.sh-badge.p2 .sh-badge-circle { animation: shipSpinBadge 6s linear infinite reverse; }

@keyframes shipSpinBadge {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

.sh-badge-circle .icon { color: var(--ink-900); stroke-width: 1.8; }

@media(max-width:900px) {
	.sh-badge { display: none; }
}

/* ── Hero content ── */
.ship-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
}

.sh-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--gold-glass-10);
	border: 1px solid var(--gold-glass-35);
	color: var(--gold-400);
	padding: 7px 15px;
	border-radius: var(--r-pill);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: 0;
	animation: shipHeroIn .7s var(--ease) forwards;
}

@keyframes shipHeroIn {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

.ship-hero h1 {
	font-family: var(--display);
	font-weight: 700;
	line-height: 1.1;
	font-size: clamp(28px, 4.4vw, 46px);
	letter-spacing: -.01em;
	margin-top: 13px;
	opacity: 0;
	animation: shipHeroIn .7s var(--ease) .08s forwards;
	/* Explicit — WP/Blocksy global-styles heading reset otherwise wins over
	   plain inheritance from body. This hero's background is dark, so the
	   override must be white, not ink-900 (that combination was invisible —
	   dark text on a near-black gradient). */
	color: var(--white);
}

.ship-hero h1 em {
	font-style: italic;
	font-weight: 600;
	background: linear-gradient(100deg, var(--sage-700) 30%, var(--plum-500) 50%, var(--sage-700) 70%);
	background-size: 240% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: shipShimmerText 6s linear infinite;
}

@keyframes shipShimmerText {
	0%   { background-position: 0% 50%; }
	100% { background-position: -240% 50%; }
}

.ship-hero p.lede {
	margin: 10px auto 0;
	max-width: 520px;
	color: var(--white-glass-55);
	font-size: 13.5px;
	line-height: 1.65;
	opacity: 0;
	animation: shipHeroIn .7s var(--ease) .16s forwards;
}

.sh-trust-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 9px;
	margin-top: 16px;
	opacity: 0;
	animation: shipHeroIn .7s var(--ease) .24s forwards;
}

.sh-trust-pill {
	display: flex;
	align-items: center;
	gap: 7px;
	background: var(--white-glass-06);
	border: 1px solid var(--gold-glass-20);
	color: var(--white-glass-80);
	padding: 8px 14px;
	border-radius: var(--r-pill);
	font-size: 11.5px;
	font-weight: 600;
	transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}

.sh-trust-pill:hover { transform: translateY(-3px); background: var(--gold-glass-10); border-color: var(--gold-glass-35); }
.sh-trust-pill .icon { width: 13px; height: 13px; color: var(--gold-500); }

.sh-btn-row {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 18px;
	opacity: 0;
	animation: shipHeroIn .7s var(--ease) .32s forwards;
}

.btn-sage {
	position: relative;
	overflow: hidden;
	background: var(--ink-900);
	color: var(--paper);
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: .03em;
	padding: 13px 24px;
	border-radius: var(--r-pill);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}

.btn-sage:hover {
	background: var(--gold-600);
	box-shadow: var(--shadow-gold-lg);
	/* a:hover{color:inherit} in design-tokens.css (specificity 0-0-1-1) beats
	   .btn-sage's own 0-0-1-0 color rule on hover — restate explicitly here. */
	color: var(--paper);
}

.btn-ghost {
	border: 1.4px solid var(--white-glass-40);
	color: var(--white);
	font-weight: 700;
	font-size: 12.5px;
	padding: 12px 23px;
	border-radius: var(--r-pill);
	transition: all .25s var(--ease);
	background: none;
	cursor: pointer;
	font-family: inherit;
}

/* color explicit: sitewide a:hover{color:inherit} (design-tokens.css) would
   otherwise inherit the dark body text color instead of staying white here. */
.btn-ghost:hover { background: var(--white-glass-15); border-color: var(--white); color: var(--white); }

@media(max-width:540px) {
	.sh-trust-row, .sh-btn-row { flex-direction: column; align-items: center; }
	.btn-sage, .btn-ghost { width: 100%; justify-content: center; }
}
