/*
 * 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(115deg, #d9ecdf 0%, #dce6d2 32%, #e1d9b8 62%, var(--sage-400) 100%);
	overflow: hidden;
	padding: 44px 24px 30px;
}

.ship-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at var(--mx, 18%) var(--my, 20%), rgba(255, 255, 255, .4), transparent 45%);
	transition: background .2s linear;
	pointer-events: none;
}

.ship-hero::after {
	content: '';
	position: absolute;
	width: 360px;
	height: 360px;
	border: 1px solid rgba(31, 58, 52, .08);
	border-radius: 50%;
	top: -190px;
	right: -120px;
	pointer-events: none;
}

/* ── Decorative leaf drift ── */
.sh-leaf {
	position: absolute;
	color: var(--sage-700);
	opacity: 0;
	animation: shipLeafDrift 7s ease-in-out infinite;
	pointer-events: none;
	z-index: 1;
}

.sh-leaf .icon { width: 14px; height: 14px; }

@keyframes shipLeafDrift {
	0%   { opacity: 0; transform: translateY(0) translateX(0) rotate(0deg); }
	12%  { opacity: .5; }
	50%  { opacity: .32; transform: translateY(-100px) translateX(14px) rotate(140deg); }
	100% { opacity: 0; transform: translateY(-170px) translateX(22px) rotate(250deg); }
}

@keyframes shipLeafDriftAlt {
	0%   { opacity: 0; transform: translateY(0) translateX(0) rotate(0deg); }
	12%  { opacity: .45; }
	50%  { opacity: .28; transform: translateY(-120px) translateX(-18px) rotate(-130deg); }
	100% { opacity: 0; transform: translateY(-200px) translateX(-30px) rotate(-240deg); }
}

.sh-leaf.alt { animation-name: shipLeafDriftAlt; color: var(--plum-600); }
.sh-leaf.sm .icon { width: 10px; height: 10px; }
.sh-leaf.lg .icon { width: 19px; height: 19px; }

@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(--sage-500), var(--plum-700));
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 16px 34px -8px rgba(31, 58, 52, .42);
	border: 3px solid rgba(255, 255, 255, .65);
	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: #fff; 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: rgba(255, 255, 255, .55);
	border: 1px solid rgba(138, 106, 46, .35);
	color: var(--sage-700);
	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, resolving to the wrong dark tone. */
	color: var(--ink-900);
}

.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(--ink-700);
	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: rgba(255, 255, 255, .55);
	border: 1px solid rgba(31, 58, 52, .14);
	color: var(--ink-900);
	padding: 8px 14px;
	border-radius: var(--r-pill);
	font-size: 11.5px;
	font-weight: 600;
	transition: transform .25s var(--ease), background .25s var(--ease);
}

.sh-trust-pill:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .85); }
.sh-trust-pill .icon { width: 13px; height: 13px; color: var(--sage-700); }

.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: #fdf8f4;
	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(--plum-700);
	box-shadow: 0 14px 30px rgba(31, 58, 52, .3);
	/* 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: #fdf8f4;
}

.btn-ghost {
	border: 1.4px solid rgba(31, 58, 52, .4);
	color: var(--ink-900);
	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;
}

.btn-ghost:hover { background: rgba(255, 255, 255, .5); border-color: var(--ink-900); }

@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; }
}
