﻿:root {
	--anzsbs-ink: #171717;
	--anzsbs-ink-soft: #2f2f2f;
	--anzsbs-copy: #4a4a4a;
	--anzsbs-cream: #f7f7f5;
	--anzsbs-cream-alt: #f4f2ec;
	--anzsbs-white: #ffffff;
	--anzsbs-dark: #030507;
	--anzsbs-dark-soft: #07111d;
	--anzsbs-gold: #ffbf3f;
	--anzsbs-gold-deep: #f4a900;
	--anzsbs-red: #f1593a;
	--anzsbs-border: rgba(23, 23, 23, 0.14);
	--anzsbs-radius: 8px;
	--anzsbs-container: 1280px;
	--anzsbs-font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--anzsbs-font-heading: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	overflow-x: hidden;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--anzsbs-cream);
	color: var(--anzsbs-ink);
	font-family: var(--anzsbs-font-body);
	line-height: 1.5;
	overflow-x: hidden;
	padding-top: 165px;
}

body.anzsbs-theme {
	margin: 0;
}

body.anzsbs-theme .site-main {
	margin-top: 0;
}

body.anzsbs-theme .site-main > :first-child {
	margin-top: 0;
}

button,
input,
select,
textarea {
	font: inherit;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid var(--anzsbs-gold);
	outline-offset: 4px;
}

.site-main {
	min-height: 60vh;
	background: var(--anzsbs-cream);
}

@property --anzsbs-edge-angle {
	syntax: "<angle>";
	inherits: false;
	initial-value: -90deg;
}

.anzsbs-container,
.content-section,
.entry-content {
	width: min(var(--anzsbs-container), calc(100% - 64px));
	margin: 0 auto;
	padding: clamp(48px, 6vw, 84px) 0;
}

.button,
.sc-btn,
.wp-block-button__link {
	display: inline-flex;
	position: relative;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.86rem 1.12rem;
	overflow: hidden;
	border-radius: 999px;
	font-weight: 800;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	isolation: isolate;
}

.button-primary,
.sc-btn--primary,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	border: 0;
	background: linear-gradient(135deg, #ffd16a 0%, var(--anzsbs-gold-deep) 100%);
	box-shadow: 0 14px 34px rgba(244, 169, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.32);
	color: #15110a;
}

.button-secondary,
.sc-btn--ghost,
.is-style-outline .wp-block-button__link {
	border: 1px solid rgba(23, 23, 23, 0.16);
	background: rgba(255, 255, 255, 0.76);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
	color: var(--anzsbs-ink);
}

body:not(.anzsbs-home) :where(
	.services-page,
	.supplier-checks-page,
	.process-page,
	.about-page,
	.contact-page,
	.product-sourcing-page,
	.spare-parts-page,
	.packing-readiness-page,
	.faq-page,
	.privacy-policy-page,
	.terms-page,
	.legal-notice-page,
	.site-map-page
) :where(.sc-media-card, .sc-visual-card, .sc-card, .sc-step, .sc-enquiry-form),
body:not(.anzsbs-home) .articles-page :where(.articles-hero__panel, .article-card) {
	position: relative;
	overflow: hidden;
}

body:not(.anzsbs-home) :where(
	.services-page,
	.supplier-checks-page,
	.process-page,
	.about-page,
	.contact-page,
	.product-sourcing-page,
	.spare-parts-page,
	.packing-readiness-page,
	.faq-page,
	.privacy-policy-page,
	.terms-page,
	.legal-notice-page,
	.site-map-page
) :where(.sc-media-card, .sc-visual-card, .sc-card, .sc-step, .sc-enquiry-form)::after,
body:not(.anzsbs-home) .articles-page :where(.articles-hero__panel, .article-card)::after {
	position: absolute;
	inset: 0;
	z-index: 3;
	padding: 3px;
	border-radius: inherit;
	content: "";
	pointer-events: none;
	background:
		conic-gradient(
			from var(--anzsbs-edge-angle) at 50% 50%,
			transparent 0deg,
			transparent 58deg,
			rgba(181, 138, 32, 0.18) 66deg,
			rgba(245, 193, 108, 0.94) 76deg,
			rgba(255, 209, 106, 1) 88deg,
			rgba(245, 193, 108, 0.94) 100deg,
			rgba(181, 138, 32, 0.18) 112deg,
			transparent 122deg,
			transparent 360deg
		);
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	mask-composite: exclude;
	filter: drop-shadow(0 0 7px rgba(245, 193, 108, 0.72)) drop-shadow(0 0 14px rgba(181, 138, 32, 0.30));
	opacity: 0.98;
	animation: anzsbs-edge-runner 8.6s linear infinite;
}

body:not(.anzsbs-home) :where(.sc-card, .sc-step, .article-card):nth-child(2n)::after {
	animation-delay: -1.4s;
}

body:not(.anzsbs-home) :where(.sc-card, .sc-step, .article-card):nth-child(3n)::after {
	animation-delay: -2.8s;
}

body:not(.anzsbs-home) :where(.sc-card, .sc-step, .article-card):nth-child(4n)::after {
	animation-delay: -4.2s;
}

@keyframes anzsbs-edge-runner {
	0% { --anzsbs-edge-angle: -138deg; }
	8% { --anzsbs-edge-angle: -102deg; }
	20% { --anzsbs-edge-angle: -86deg; }
	32% { --anzsbs-edge-angle: -50deg; }
	43% { --anzsbs-edge-angle: 42deg; }
	50% { --anzsbs-edge-angle: 86deg; }
	62% { --anzsbs-edge-angle: 102deg; }
	74% { --anzsbs-edge-angle: 138deg; }
	86% { --anzsbs-edge-angle: 230deg; }
	94% { --anzsbs-edge-angle: 282deg; }
	100% { --anzsbs-edge-angle: 318deg; }
}

@media (prefers-reduced-motion: reduce) {
	body:not(.anzsbs-home) :where(
		.services-page,
		.supplier-checks-page,
		.process-page,
		.about-page,
		.contact-page,
		.product-sourcing-page,
		.spare-parts-page,
		.packing-readiness-page,
		.faq-page,
		.privacy-policy-page,
		.terms-page,
		.legal-notice-page,
		.site-map-page
	) :where(.sc-media-card, .sc-visual-card, .sc-card, .sc-step, .sc-enquiry-form)::after,
	body:not(.anzsbs-home) .articles-page :where(.articles-hero__panel, .article-card)::after {
		animation: none;
		--anzsbs-edge-angle: -90deg;
		opacity: 0.56;
	}
}

@media (max-width: 760px) {
	body {
		padding-top: 96px;
	}

	.anzsbs-container,
	.content-section,
	.entry-content {
		width: min(100% - 32px, var(--anzsbs-container));
	}
}

/* Internal page hero h1 — normalised to approved homepage scale.
   body prefix gives specificity (0,0,1,2) to win over .[page]-page h1 at (0,0,1,1)
   without !important. Covers all pages that ship page-specific CSS files. */
body .services-page h1,
body .supplier-checks-page h1,
body .process-page h1,
body .about-page h1,
body .contact-page h1,
body .product-sourcing-page h1,
body .spare-parts-page h1,
body .packing-readiness-page h1,
body .articles-page h1,
body .faq-page h1,
body .privacy-policy-page h1,
body .terms-page h1,
body .legal-notice-page h1,
body .site-map-page h1 {
	font-size: clamp(2.6rem, 5.4vw, 5.1rem);
	line-height: 0.96;
	font-weight: 700;
}

