/* =========================================================================
   Specialist Competitions — theme styles
   Colours come from Customize → Brand as CSS variables (see inc/setup.php).
   ========================================================================= */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/caveat-latin-700-normal.woff2) format("woff2"); }

:root {
	--sc-primary: #004f36;
	--sc-primary-dark: #003b28;
	--sc-primary-deep: #00281b;
	--sc-primary-rgb: 0, 79, 54;
	--sc-accent: #cca16c;
	--sc-accent-dark: #a78458;
	--sc-accent-light: #f3e8da;
	--sc-accent-rgb: 204, 161, 108;
	--sc-ink: #13221c;
	--sc-muted: #5b6b64;
	--sc-line: rgba(19, 34, 28, .1);
	--sc-cream: #faf6ef;
	--sc-white: #fff;
	--sc-radius: 18px;
	--sc-radius-sm: 10px;
	--sc-shadow: 0 10px 30px -12px rgba(0, 40, 27, .25);
	--sc-shadow-lg: 0 30px 60px -20px rgba(0, 40, 27, .35);
	--sc-font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--sc-script: "Caveat", "Segoe Script", cursive;
	--sc-ease: cubic-bezier(.2, .7, .2, 1);
	--sc-header-h: 0px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sc-font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--sc-ink);
	background: var(--sc-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--sc-primary); text-underline-offset: 3px; }
a:hover { color: var(--sc-accent-dark); }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; color: inherit; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--sc-accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sc-accent); color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.sc-skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: #fff; padding: 10px 16px; border-radius: 8px; }
.sc-skip:focus { left: 16px; }

.sc-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sc-container--narrow { max-width: 860px; }
.sc-container--wide { max-width: 1240px; }
.sc-center { text-align: center; }
.sc-lead { font-size: 1.2rem; color: var(--sc-muted); }
.sc-main { display: block; padding: 0 0 80px; }
.sc-home .sc-main { padding-bottom: 0; }

.sc-icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }

/* ---------- Buttons ---------- */
.sc-btn, .button, button.button, input[type="submit"], .wp-element-button, .wp-block-button__link {
	--b: var(--sc-primary);
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .85em 1.6em;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--b);
	color: #fff;
	font: 600 1rem/1.2 var(--sc-font);
	text-decoration: none;
	cursor: pointer;
	transition: transform .25s var(--sc-ease), box-shadow .25s var(--sc-ease), background-color .25s, color .25s;
}
.sc-btn:hover, .button:hover, button.button:hover, input[type="submit"]:hover, .wp-element-button:hover, .wp-block-button__link:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -10px rgba(var(--sc-primary-rgb), .6);
	background: var(--sc-primary-dark);
}
.sc-btn .sc-icon { transition: transform .25s var(--sc-ease); }
.sc-btn:hover .sc-icon { transform: translateX(4px); }
.sc-btn--accent { background: var(--sc-accent); color: var(--sc-primary-deep); }
.sc-btn--accent:hover { background: #fff; color: var(--sc-primary-deep); box-shadow: 0 14px 30px -10px rgba(var(--sc-accent-rgb), .8); }
.sc-btn--glass { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.sc-btn--glass:hover { background: rgba(255, 255, 255, .22); }
.sc-btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.sc-btn--ghost:hover { background: rgba(255, 255, 255, .1); color: inherit; box-shadow: none; }
.sc-btn--ghost-dark { background: transparent; border-color: var(--sc-line); color: var(--sc-ink); }
.sc-btn--ghost-dark:hover { background: var(--sc-cream); color: var(--sc-ink); box-shadow: none; }
.sc-btn--lg { padding: 1.05em 2em; font-size: 1.05rem; }
.sc-btn--block { width: 100%; }
.sc-btn--pulse { animation: sc-pulse 2.6s ease-in-out infinite; }
@keyframes sc-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--sc-accent-rgb), .55); } 50% { box-shadow: 0 0 0 14px rgba(var(--sc-accent-rgb), 0); } }

.sc-kicker {
	display: inline-block;
	font-family: var(--sc-script);
	font-size: clamp(1.6rem, 2.6vw, 2.2rem);
	line-height: 1;
	color: var(--sc-accent-dark);
	margin-bottom: .2em;
	transform: rotate(-2deg);
}
.sc-kicker--light { color: var(--sc-accent); }
.sc-link-arrow { display: inline-flex; gap: .4em; align-items: center; font-weight: 600; }

/* ---------- Header ---------- */
.sc-header { position: sticky; top: 0; z-index: 100; }
.admin-bar .sc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sc-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .sc-header { top: 0; } }

.sc-header__top {
	background: var(--sc-primary);
	color: #fff;
	transition: padding .3s var(--sc-ease), box-shadow .3s;
	padding: 18px 0;
}
.sc-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.sc-header__logo { grid-column: 2; text-align: center; line-height: 0; }
.sc-header__logo img { width: auto; max-height: 104px; transition: max-height .3s var(--sc-ease); }
.sc-header__actions { grid-column: 3; justify-self: end; display: flex; gap: 10px; }
.sc-header__icon {
	position: relative; display: grid; place-items: center;
	width: 48px; height: 48px; border-radius: 14px;
	color: #fff; border: 1.5px solid rgba(255, 255, 255, .25);
	transition: background .2s, border-color .2s, transform .2s;
}
.sc-header__icon:hover { color: var(--sc-primary-deep); background: var(--sc-accent); border-color: var(--sc-accent); transform: translateY(-2px); }
.sc-header__icon .sc-icon { width: 24px; height: 24px; }
.sc-cart-count {
	position: absolute; top: -7px; right: -7px;
	min-width: 22px; height: 22px; padding: 0 6px;
	border-radius: 999px; background: var(--sc-accent); color: var(--sc-primary-deep);
	font-size: 12px; font-weight: 700; line-height: 22px; text-align: center;
	box-shadow: 0 0 0 2px var(--sc-primary);
}
.sc-cart-count.is-empty { display: none; }
.sc-header__toggle { display: none; grid-column: 1; justify-self: start; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.sc-header__toggle .sc-icon { width: 30px; height: 30px; }
.sc-header__toggle .is-close-icon { display: none; }
.sc-header.is-open .sc-header__toggle .is-close-icon { display: block; }
.sc-header.is-open .sc-header__toggle .is-open-icon { display: none; }

.sc-header.is-scrolled .sc-header__top { padding: 8px 0; box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .4); }
.sc-header.is-scrolled .sc-header__logo img { max-height: 58px; }

.sc-nav { background: var(--sc-accent); }
.sc-menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.sc-menu > li { position: relative; }
.sc-menu a {
	display: block; padding: 18px 26px;
	color: var(--sc-primary-deep); font-weight: 700; font-size: 1.02rem; text-decoration: none;
	position: relative;
}
.sc-menu > li > a::after {
	content: ""; position: absolute; left: 26px; right: 26px; bottom: 12px; height: 2px;
	background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--sc-ease);
}
.sc-menu > li > a:hover::after, .sc-menu > .current-menu-item > a::after, .sc-menu > .current_page_item > a::after { transform: scaleX(1); }
.sc-menu a:hover { color: var(--sc-primary-deep); }
.sc-menu > li:not(.current-menu-item):not(.current_page_item) > a { color: #fff; }
.sc-menu > li:not(.current-menu-item):not(.current_page_item) > a:hover { color: var(--sc-primary-deep); }
.sc-menu .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 230px; list-style: none; margin: 0; padding: 8px;
	background: #fff; border-radius: 12px; box-shadow: var(--sc-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s var(--sc-ease);
}
.sc-menu li:hover > .sub-menu, .sc-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sc-menu .sub-menu a { color: var(--sc-ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.sc-menu .sub-menu a:hover { background: var(--sc-cream); }

@media (max-width: 900px) {
	.sc-header__top { padding: 10px 0; }
	.sc-header__inner { grid-template-columns: auto 1fr auto; }
	.sc-header__toggle { display: block; }
	.sc-header__logo { grid-column: 2; text-align: left; }
	.sc-header__logo img, .sc-header.is-scrolled .sc-header__logo img { max-height: 48px; }
	.sc-header__icon { width: 42px; height: 42px; border-radius: 12px; }
	.sc-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		max-height: 0; overflow: hidden; transition: max-height .4s var(--sc-ease);
		box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .5);
	}
	.sc-header.is-open .sc-nav { max-height: 80vh; overflow-y: auto; }
	.sc-menu { flex-direction: column; padding: 8px 0 14px; }
	.sc-menu a { padding: 14px 4px; font-size: 1.15rem; border-bottom: 1px solid rgba(0, 0, 0, .08); }
	.sc-menu > li > a::after { display: none; }
	.sc-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 0 16px; }
	.sc-menu .sub-menu a { color: var(--sc-primary-deep); }
}
@media (max-width: 420px) {
	.sc-header__actions .sc-header__icon:first-child { display: none; }
}

/* ---------- Hero ---------- */
.sc-hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: clamp(520px, 78vh, 820px);
	display: flex; align-items: flex-end;
	color: #fff;
	background:
		radial-gradient(1200px 600px at 85% 10%, rgba(var(--sc-accent-rgb), .35), transparent 60%),
		radial-gradient(900px 500px at 10% 100%, rgba(255, 255, 255, .08), transparent 60%),
		linear-gradient(160deg, var(--sc-primary) 0%, var(--sc-primary-deep) 100%);
}
.sc-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); animation: sc-zoom 14s ease-out forwards; }
@keyframes sc-zoom { to { transform: scale(1); } }
.sc-hero.has-image::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(var(--sc-primary-rgb), .15) 0%, rgba(var(--sc-primary-rgb), .35) 40%, rgba(0, 30, 20, .92) 100%);
}
.sc-hero:not(.has-image)::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12;
	background-image: radial-gradient(circle at 1px 1px, #fff 1.2px, transparent 0);
	background-size: 26px 26px;
	mask-image: linear-gradient(180deg, transparent, #000 60%);
}
.sc-snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.sc-hero__inner { padding-top: 120px; padding-bottom: clamp(56px, 9vh, 100px); }
.sc-hero__title { max-width: 14ch; font-size: clamp(2.8rem, 7.5vw, 6rem); line-height: .98; letter-spacing: -.035em; text-shadow: 0 6px 30px rgba(0, 0, 0, .25); margin-bottom: .3em; }
.sc-hero__text { max-width: 560px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .9); }
.sc-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Load-in sequence (only when JS is on). */
.js .sc-load { opacity: 0; transform: translateY(24px); animation: sc-rise .9s var(--sc-ease) forwards; animation-delay: calc(var(--d, 0) * 120ms + 100ms); }
@keyframes sc-rise { to { opacity: 1; transform: none; } }

/* ---------- Ticker ---------- */
.sc-ticker { background: var(--sc-accent); color: var(--sc-primary-deep); overflow: hidden; padding: 14px 0; font-weight: 700; }
.sc-ticker__track { display: flex; width: max-content; animation: sc-marquee 32s linear infinite; }
.sc-ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.sc-ticker li { display: flex; align-items: center; gap: 10px; padding: 0 36px; white-space: nowrap; }
.sc-ticker:hover .sc-ticker__track { animation-play-state: paused; }
@keyframes sc-marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.sc-section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.sc-section--cream { background: var(--sc-cream); }
.sc-section--dark { background: var(--sc-primary); color: #fff; overflow: hidden; }
.sc-section--dark::before {
	content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -300px; border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--sc-accent-rgb), .25), transparent 65%);
}
.sc-section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sc-section-head h2 { margin: 0; }

/* Reveal on scroll (added by JS; content is visible without it). */
.js .sc-reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--sc-ease), transform .8s var(--sc-ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .sc-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Grids & cards ---------- */
.sc-grid { display: grid; gap: 28px; }
.sc-grid--cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 380px)); justify-content: center; margin-bottom: 40px; }
.sc-grid--posts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.sc-card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border-radius: var(--sc-radius); overflow: hidden;
	box-shadow: 0 1px 0 var(--sc-line), var(--sc-shadow);
	transition: transform .35s var(--sc-ease), box-shadow .35s var(--sc-ease);
}
.sc-card:hover { transform: translateY(-8px); box-shadow: 0 0 0 2px rgba(var(--sc-accent-rgb), .7), var(--sc-shadow-lg); }
.sc-card__media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--sc-primary); }
.sc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--sc-ease); }
.sc-card:hover .sc-card__media img { transform: scale(1.06); }
.sc-card__badge {
	position: absolute; top: 14px; left: 14px; z-index: 2;
	padding: 5px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	background: #fff; color: var(--sc-ink); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4);
}
.sc-card__badge--live { background: var(--sc-primary); color: #fff; }
.sc-card__badge--live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: sc-dot 1.8s infinite; vertical-align: 1px; }
@keyframes sc-dot { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.sc-card__badge--sold_out, .sc-card__badge--ended { background: #b91c1c; color: #fff; }
.sc-card__badge--drawn { background: var(--sc-accent); color: var(--sc-primary-deep); }
.sc-card__countdown {
	position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 8px 10px 8px 14px; border-radius: 14px;
	background: rgba(0, 30, 20, .72); backdrop-filter: blur(8px); color: #fff;
	font-size: .8rem; font-weight: 600;
}
.sc-card__countdown > span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sc-card__countdown .cr-countdown { margin: 0; gap: 4px; }
.sc-card__countdown .cr-countdown__unit { background: rgba(255, 255, 255, .14); color: #fff; min-width: 38px; padding: 3px 2px; }
.sc-card__countdown .cr-countdown__unit b { font-size: .95rem; }
.sc-card__countdown .cr-countdown__unit small { opacity: .7; }
.sc-card__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 24px; flex: 1; }
.sc-card__title { font-size: 1.3rem; margin: 0; }
.sc-card__title a { color: var(--sc-ink); text-decoration: none; }
.sc-card__title a:hover { color: var(--sc-primary); }
.sc-card__price { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--sc-primary); }
.sc-card__price del { font-size: .9rem; color: var(--sc-muted); font-weight: 400; }
.sc-per { font-size: .9rem; font-weight: 500; color: var(--sc-muted); }
.sc-card .cr-progress { margin: 0; }
.sc-card .cr-progress__label { font-size: .82rem; }
.sc-card .sc-btn { margin-top: auto; }
.sc-card--sold_out .sc-card__media img, .sc-card--ended .sc-card__media img { filter: grayscale(.6); }

.sc-empty { text-align: center; padding: 60px 24px; background: #fff; border-radius: var(--sc-radius); box-shadow: var(--sc-shadow); }
.sc-empty .sc-icon { width: 48px; height: 48px; color: var(--sc-accent); }
.sc-home-content { margin-top: 48px; }

/* ---------- How it works ---------- */
.sc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 24px; position: relative; }
.sc-step {
	position: relative; padding: 34px 26px 28px; border-radius: var(--sc-radius);
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
	transition: transform .35s var(--sc-ease), background .35s, border-color .35s;
}
.sc-step:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .1); border-color: rgba(var(--sc-accent-rgb), .6); }
.sc-step__num { position: absolute; top: 18px; right: 22px; font-size: 3.4rem; font-weight: 700; line-height: 1; color: rgba(255, 255, 255, .08); }
.sc-step__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--sc-accent); color: var(--sc-primary-deep); margin-bottom: 20px; box-shadow: 0 10px 24px -10px rgba(var(--sc-accent-rgb), .9); }
.sc-step__icon .sc-icon { width: 28px; height: 28px; }
.sc-step h3 { margin-bottom: .4em; }
.sc-step p { margin: 0; color: rgba(255, 255, 255, .78); }

/* ---------- Impact ---------- */
.sc-impact { background: linear-gradient(120deg, var(--sc-accent) 0%, var(--sc-accent-light) 100%); color: var(--sc-primary-deep); padding: 56px 0; }
.sc-impact__inner { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 22px 32px; }
.sc-impact__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--sc-primary); color: #fff; }
.sc-impact__icon .sc-icon { width: 34px; height: 34px; animation: sc-beat 1.6s ease-in-out infinite; }
@keyframes sc-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.15); } 30% { transform: scale(1); } }
.sc-impact__value { margin: 0; font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.sc-impact__label { margin: 0; font-size: 1.25rem; font-weight: 600; max-width: 420px; }
@media (max-width: 700px) { .sc-impact__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ---------- About ---------- */
.sc-about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.sc-about__media { position: relative; }
.sc-about__media img { width: 100%; border-radius: var(--sc-radius); box-shadow: var(--sc-shadow-lg); aspect-ratio: 1; object-fit: cover; }
.sc-about__media::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 3px solid var(--sc-accent); border-radius: var(--sc-radius); z-index: -1; }
.sc-about__badge { position: absolute; left: -16px; bottom: 32px; display: flex; gap: 8px; align-items: center; padding: 12px 18px; border-radius: 14px; background: var(--sc-primary); color: #fff; font-weight: 700; box-shadow: var(--sc-shadow-lg); }
.sc-about__badge .sc-icon { color: var(--sc-accent); }
.sc-about__copy h2 { margin-bottom: .6em; }
.sc-about { overflow: hidden; }
@media (max-width: 860px) { .sc-about__grid { grid-template-columns: 1fr; } .sc-about__media { max-width: 520px; margin-right: 24px; } .sc-about__badge { left: 12px; } }

/* ---------- CTA strip ---------- */
.sc-cta { padding: 0 0 clamp(64px, 8vw, 100px); }
.sc-section--cream + .sc-cta, .sc-winners-home + .sc-cta { background: var(--sc-cream); }
.sc-cta__inner {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 32px;
	padding: 36px 40px; border-radius: 24px;
	background: var(--sc-primary-deep); color: #fff; box-shadow: var(--sc-shadow-lg);
	background-image: radial-gradient(600px 200px at 100% 0, rgba(var(--sc-accent-rgb), .35), transparent 70%);
}
.sc-cta__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--sc-accent); color: var(--sc-primary-deep); }
.sc-cta__icon .sc-icon { width: 32px; height: 32px; }
.sc-cta h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 .2em; }
.sc-cta p { margin: 0; color: rgba(255, 255, 255, .8); }
.sc-cta .sc-btn--primary { background: var(--sc-accent); color: var(--sc-primary-deep); }
@media (max-width: 760px) { .sc-cta__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 30px 24px; } }

/* ---------- Page banner ---------- */
.sc-banner {
	position: relative; overflow: hidden; color: #fff; text-align: center;
	padding: clamp(56px, 8vw, 96px) 0 clamp(52px, 7vw, 84px);
	background:
		radial-gradient(800px 300px at 80% 0, rgba(var(--sc-accent-rgb), .35), transparent 60%),
		linear-gradient(160deg, var(--sc-primary), var(--sc-primary-deep));
	margin-bottom: clamp(36px, 5vw, 64px);
}
.sc-banner h1 { margin: 0 auto; max-width: 18ch; }
.sc-banner p { max-width: 620px; margin: 16px auto 0; color: rgba(255, 255, 255, .85); font-size: 1.1rem; }

/* ---------- Content ---------- */
.sc-entry > *:first-child { margin-top: 0; }
.sc-entry h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-top: 1.4em; }
.sc-entry h3 { margin-top: 1.4em; }
.sc-entry ul, .sc-entry ol { padding-left: 1.3em; }
.sc-entry blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--sc-accent); font-size: 1.15rem; }
.sc-entry img { border-radius: var(--sc-radius-sm); }
.sc-featured { margin: 0 0 32px; }
.sc-featured img { border-radius: var(--sc-radius); width: 100%; }
.sc-post-card { background: #fff; border-radius: var(--sc-radius); overflow: hidden; box-shadow: var(--sc-shadow); transition: transform .3s var(--sc-ease); }
.sc-post-card:hover { transform: translateY(-6px); }
.sc-post-card__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.sc-post-card__body { padding: 22px; }
.sc-post-card__date { font-size: .85rem; color: var(--sc-muted); }
.sc-post-card h2 { font-size: 1.3rem; margin: .3em 0 .5em; }
.sc-post-card h2 a { color: var(--sc-ink); text-decoration: none; }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--sc-line); text-decoration: none; font-weight: 600; }
.page-numbers.current { background: var(--sc-primary); color: #fff; }
.sc-404-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 24px 0 32px; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], input[type="url"], select, textarea {
	width: 100%; padding: 13px 16px; font: inherit; font-size: 1rem; color: var(--sc-ink);
	background: #fff; border: 1.5px solid rgba(19, 34, 28, .18); border-radius: 12px;
	transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sc-primary); box-shadow: 0 0 0 4px rgba(var(--sc-primary-rgb), .14); }
.sc-form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); background: var(--sc-cream); border-radius: var(--sc-radius); }
.sc-form label span { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.sc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .sc-form__row { grid-template-columns: 1fr; } }
.sc-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sc-form .sc-btn { justify-self: start; }
.sc-notice { display: flex; gap: 10px; align-items: center; padding: 16px 20px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }
.sc-notice--ok { background: #e8f6ee; color: #14532d; }
.sc-notice--error { background: #fdecec; color: #8a1c1c; }
.sc-search { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.sc-search .sc-btn { padding: 0 18px; }

/* ---------- Footer ---------- */
.sc-footer { position: relative; background: var(--sc-primary-deep); color: rgba(255, 255, 255, .78); padding-top: 80px; font-size: .97rem; }
.sc-footer a { color: #fff; text-decoration: none; }
.sc-footer a:hover { color: var(--sc-accent); }
.sc-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.sc-footer__logo img { max-height: 70px; width: auto; margin-bottom: 18px; }
.sc-footer__title { font-size: 1rem; color: var(--sc-accent); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.sc-footer__links, .sc-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sc-footer__links .sc-menu { display: grid; }
.sc-footer__contact a, .sc-footer__contact span { display: inline-flex; gap: 10px; align-items: flex-start; }
.sc-footer__contact .sc-icon { color: var(--sc-accent); margin-top: 3px; }
.sc-social { display: flex; gap: 10px; margin-top: 18px; }
.sc-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08); transition: background .2s, transform .2s; }
.sc-social a:hover { background: var(--sc-accent); color: var(--sc-primary-deep); transform: translateY(-3px); }
.sc-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: .88rem; }
.sc-footer__bottom .sc-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.sc-footer__bottom p { margin: 0; }
@media (max-width: 900px) { .sc-footer__grid { grid-template-columns: 1fr 1fr; } .sc-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .sc-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.sc-consent {
	position: fixed; z-index: 999; left: 16px; right: 16px; bottom: 16px; max-width: 520px;
	padding: 20px 22px; border-radius: 18px; background: #fff; color: var(--sc-ink);
	box-shadow: 0 30px 60px -15px rgba(0, 0, 0, .45), 0 0 0 1px var(--sc-line);
	opacity: 0; transform: translateY(20px); transition: opacity .3s, transform .3s var(--sc-ease);
}
.sc-consent.is-visible { opacity: 1; transform: none; }
.sc-consent p { margin: 0 0 14px; font-size: .95rem; }
.sc-consent__actions { display: flex; gap: 10px; justify-content: flex-end; }
.sc-consent .sc-btn { padding: .65em 1.3em; }
.sc-consent .sc-btn--ghost { color: var(--sc-ink); border-color: var(--sc-line); }
.sc-consent .sc-btn--ghost:hover { background: var(--sc-cream); }

/* ---------- Breadcrumb ---------- */
.sc-breadcrumb { font-size: .9rem; color: var(--sc-muted); margin: 28px 0 24px; }
.sc-breadcrumb a { color: var(--sc-muted); text-decoration: none; }
.sc-breadcrumb a:hover { color: var(--sc-primary); }
.sc-breadcrumb .sep { margin: 0 8px; opacity: .5; }

/* =========================================================================
   WooCommerce
   ========================================================================= */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	list-style: none; margin: 0 0 24px !important; padding: 16px 20px !important; border-radius: 14px !important;
	border: 0 !important; background: var(--sc-cream) !important; color: var(--sc-ink) !important;
	display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none !important; }
.woocommerce-error { background: #fdecec !important; color: #8a1c1c !important; }
.woocommerce-message .button { order: 2; padding: .55em 1.2em; font-size: .9rem; }
.woocommerce-result-count { color: var(--sc-muted); margin: 0 0 20px; }
.woocommerce-ordering { margin: 0 0 24px; float: right; }
.woocommerce-ordering select { width: auto; padding: 10px 40px 10px 14px; }
.sc-shop .woocommerce-result-count { float: left; }
.sc-shop .sc-grid--cards { clear: both; }
.woocommerce-pagination { text-align: center; }
.woocommerce-pagination ul { list-style: none; display: flex; justify-content: center; gap: 8px; padding: 0; }

/* Single product */
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; position: relative; }
.single-product div.product:has(> .sc-product-top) { display: block; }
body.single-product div.product:not(:has(> .sc-product-top)) div.images.woocommerce-product-gallery { position: relative; top: auto; }
.single-product .sc-product-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; margin-bottom: 32px; }
.single-product div.product .woocommerce-tabs, .single-product div.product .sc-more, .single-product div.product .upsells { margin-top: 32px; }
@media (max-width: 860px) { .single-product div.product, .single-product .sc-product-top { grid-template-columns: 1fr; } }
.woocommerce div.product div.images.woocommerce-product-gallery { position: sticky; top: calc(var(--sc-header-h) + 24px); margin: 0; width: auto; float: none; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img, .woocommerce-product-gallery img { border-radius: var(--sc-radius); width: 100%; }
.woocommerce-product-gallery .flex-control-thumbs { display: flex; gap: 10px; list-style: none; padding: 0; margin: 12px 0 0; }
.woocommerce-product-gallery .flex-control-thumbs li { width: 80px; cursor: pointer; }
.woocommerce-product-gallery .flex-control-thumbs img { border-radius: 10px; opacity: .6; transition: opacity .2s; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active, .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce-product-gallery__trigger { position: absolute; right: 14px; top: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 0; box-shadow: var(--sc-shadow); }
.woocommerce-product-gallery__trigger::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--sc-ink); border-radius: 50%; }
.single-product .summary { margin: 0; }
.woocommerce div.product div.summary { width: auto; float: none; margin: 0; }
.woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce ul.products li.product .price { color: var(--sc-primary); }

/* WooCommerce buttons → brand */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #respond input#submit.alt {
	background: var(--sc-primary); color: #fff; border-radius: 999px; padding: .85em 1.6em; font-weight: 700; font-family: var(--sc-font); line-height: 1.2; border: 0;
	transition: transform .25s var(--sc-ease), box-shadow .25s var(--sc-ease), background-color .25s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover {
	background: var(--sc-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(var(--sc-primary-rgb), .6);
}
.woocommerce button.button.alt.disabled, .woocommerce button.button:disabled, .woocommerce button.button.alt:disabled { background: var(--sc-primary); opacity: .5; }
.woocommerce div.product form.cart .button { background: var(--sc-primary); }
.single-product .product_title { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: .3em; }
.single-product .summary > .price { font-size: 1.9rem; font-weight: 700; color: var(--sc-primary); margin: 0 0 20px; }
.single-product .woocommerce-product-details__short-description { color: var(--sc-muted); margin-bottom: 20px; }
.single-product .woocommerce-tabs, .single-product .sc-more, .single-product .upsells { grid-column: 1 / -1; }
.single-product form.cart { margin: 0 0 24px; }
.quantity .qty { width: 92px; text-align: center; font-weight: 700; font-size: 1.1rem; padding: 14px 8px; }
.single_add_to_cart_button { padding: 1em 2.2em !important; font-size: 1.08rem !important; flex: 1 1 auto; }
.single-product .product_meta { font-size: .9rem; color: var(--sc-muted); }
.single-product .product_meta > span { display: block; }
@media (max-width: 860px) {
	.single-product div.product { grid-template-columns: 1fr; }
	.woocommerce div.product div.images.woocommerce-product-gallery { position: relative; top: auto; }
}

/* Tabs */
.woocommerce-tabs { margin-top: 32px; }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 24px; border-bottom: 2px solid var(--sc-line); }
.woocommerce-tabs ul.tabs li { margin: 0 0 -2px; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 14px 20px; text-decoration: none; font-weight: 700; color: var(--sc-muted); border-bottom: 3px solid transparent; }
.woocommerce-tabs ul.tabs li.active a { color: var(--sc-primary); border-bottom-color: var(--sc-accent); }
.woocommerce-Tabs-panel { max-width: 900px; }
.woocommerce-Tabs-panel > h2:first-child { font-size: 1.6rem; }
.sc-more { margin-top: 72px; }
.sc-more .sc-section-head { margin-bottom: 32px; }

/* Raffle plugin pieces: core layout (backup if the plugin stylesheet isn't loaded) + brand colours */
.cr-countdown { display: flex; gap: 8px; }
.cr-countdown__unit { flex: 1 1 0; text-align: center; border-radius: 8px; line-height: 1.1; }
.cr-countdown__unit b { display: block; font-variant-numeric: tabular-nums; }
.cr-countdown__unit small { display: block; font-size: .65em; letter-spacing: .08em; }
.cr-progress__bar { border-radius: 999px; overflow: hidden; }
.cr-progress__bar span { display: block; height: 100%; border-radius: inherit; }
.cr-progress__label { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }

.cr-box { background: #fff; border: 0; border-radius: var(--sc-radius); box-shadow: 0 0 0 1px var(--sc-line), var(--sc-shadow); padding: 22px 24px; }
.cr-badge--live { background: var(--sc-primary); }
.cr-box .cr-countdown__unit { background: var(--sc-primary); color: #fff; border-radius: 12px; padding: 10px 4px; max-width: none; }
.cr-box .cr-countdown__unit b { font-size: 1.8rem; }
.cr-box .cr-countdown__unit small { color: var(--sc-accent); opacity: 1; font-weight: 700; }
.cr-progress__bar { height: 12px; background: var(--sc-accent-light); }
.cr-progress__bar span { background: linear-gradient(90deg, var(--sc-primary), var(--sc-accent)); }
.cr-question { background: var(--sc-cream); border: 0; border-radius: var(--sc-radius); padding: 18px 20px 10px; }
.cr-question legend { float: left; width: 100%; padding: 0 0 12px; font-size: 1.15rem; }
.cr-question__option { background: #fff; border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px; font-weight: 600; transition: border-color .2s, transform .2s; }
.cr-question__option:hover { transform: translateX(3px); border-color: rgba(var(--sc-primary-rgb), .3); }
.cr-question__option:has(input:checked) { border-color: var(--sc-primary); box-shadow: none; background: #f1f8f4; }
.cr-question__option input { accent-color: var(--sc-primary); width: 18px; height: 18px; }
.cr-qty-label { font-size: 1.05rem; }
.cr-ticket { background: var(--sc-primary); }
.cr-ticket--winner { background: var(--sc-accent); color: var(--sc-primary-deep); }
.cr-ticket-card { border-color: rgba(var(--sc-accent-rgb), .6); border-radius: var(--sc-radius); }
.cr-winners-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.cr-winners-list .cr-winners { margin: 0; padding: 22px 24px; background: #fff; border-radius: var(--sc-radius); box-shadow: var(--sc-shadow); }
.cr-winners-list .cr-winners h3 a { color: var(--sc-ink); text-decoration: none; }
.cr-checker { padding: 28px; background: var(--sc-cream); border-radius: var(--sc-radius); }
.cr-checker label { font-weight: 600; }
.cr-entries__table { width: 100%; border-collapse: collapse; }
.cr-entries__table th { text-align: left; }
.cr-entries__table td, .cr-entries__table th { border-bottom: 1px solid var(--sc-line); }

/* Basket / checkout (classic + blocks) */
.woocommerce-cart-form table.shop_table, table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); overflow: hidden; background: #fff; }
table.shop_table th, table.shop_table td { padding: 16px; border-bottom: 1px solid var(--sc-line); text-align: left; vertical-align: middle; }
table.shop_table tr:last-child td { border-bottom: 0; }
table.shop_table img { width: 72px; border-radius: 10px; }
.cart-collaterals { margin-top: 32px; }
.cart_totals { max-width: 480px; margin-left: auto; }
.wc-block-cart, .wc-block-checkout { --wp--preset--color--contrast: var(--sc-ink); }
.wc-block-components-button:not(.is-link) { border-radius: 999px !important; background: var(--sc-primary) !important; color: #fff !important; font-weight: 700 !important; min-height: 56px; }
.wc-block-components-button:not(.is-link):hover { background: var(--sc-primary-dark) !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input { border-radius: 12px !important; }
.wc-block-components-sidebar-layout .wc-block-components-sidebar { background: var(--sc-cream); border-radius: var(--sc-radius); padding: 24px !important; }
#customer_details .col-1, #customer_details .col-2 { width: 100%; float: none; }
.woocommerce-checkout #payment { background: var(--sc-cream); border-radius: var(--sc-radius); padding: 20px; }
.woocommerce-checkout #payment ul.payment_methods { list-style: none; padding: 0; }
.form-row { margin: 0 0 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; }
.woocommerce form .form-row .required { color: #b91c1c; text-decoration: none; }
@media (min-width: 900px) {
	form.checkout.woocommerce-checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0 48px; align-items: start; }
	form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
	form.checkout #order_review_heading, form.checkout #order_review { grid-column: 2; }
}

/* My account */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 10px; background: var(--sc-cream); border-radius: var(--sc-radius); }
.woocommerce-MyAccount-navigation a { display: block; padding: 11px 14px; border-radius: 10px; text-decoration: none; color: var(--sc-ink); font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--sc-primary); color: #fff; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce-form-login, .woocommerce-form-register { padding: 28px; background: var(--sc-cream); border-radius: var(--sc-radius); }
.u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .woocommerce-account .woocommerce, .u-columns.col2-set { grid-template-columns: 1fr; } }
.woocommerce-order-overview { list-style: none; padding: 20px; display: flex; flex-wrap: wrap; gap: 16px 32px; background: var(--sc-cream); border-radius: var(--sc-radius); }
.woocommerce-order-overview li strong { display: block; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .sc-load, .js .sc-reveal { opacity: 1; transform: none; }
	.sc-ticker__track { animation: none; }
	.sc-snow { display: none; }
}
