/* ==========================================================================
   Ireland Curry Awards - Home page sections
   Tokens, header, buttons and section scaffolding live in pages.css.
   ========================================================================== */

.ica-home {
	background: var(--h-paper);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.h-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
	background:
		radial-gradient(900px 500px at 85% 0%, rgba(242, 162, 28, 0.18), transparent 60%),
		linear-gradient(160deg, var(--h-green) 0%, var(--h-ink) 100%);
	color: var(--h-fg);
}

.h-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}

.h-hero__presented {
	margin: 0 0 22px;
	color: var(--h-gold);
	font-size: 15px;
	font-weight: 600;
}

.h-hero__title {
	max-width: 11ch;
	margin: 0 0 24px;
	color: #fff;
	font-family: var(--h-display);
	font-size: clamp(3rem, 8vw, 6.6rem);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 0.95;
}

.h-hero__lead {
	max-width: 46ch;
	margin: 0 0 32px;
	color: var(--h-fg-muted);
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.h-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 28px;
}

.h-hero__photo {
	max-width: 520px;
	margin: 36px 0 0;
	overflow: hidden;
	border-radius: 4px;
}

.h-hero__photo img {
	display: block;
	width: 100%;
}

/* Hero entrance: one orchestrated moment, then still */
.h-hero__presented,
.h-hero__title,
.h-hero__lead,
.h-hero__actions,
.h-hero .h-countdown,
.h-ballot {
	animation: h-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.h-hero__title {
	animation-delay: 0.08s;
}

.h-hero__lead {
	animation-delay: 0.18s;
}

.h-hero__actions {
	animation-delay: 0.26s;
}

.h-hero .h-countdown {
	animation-delay: 0.34s;
}

.h-ballot {
	animation-delay: 0.3s;
}

@keyframes h-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* Countdown ---------------------------------------------------------------- */
.h-countdown {
	margin-top: 36px;
}

.h-countdown__label {
	margin: 0 0 10px;
	color: var(--h-fg-muted);
	font-size: 14px;
	font-weight: 600;
}

.h-countdown__grid {
	display: inline-flex;
	gap: 0;
	border: 1px solid var(--h-line-light);
	border-radius: 6px;
}

.h-countdown__grid > div {
	min-width: 76px;
	padding: 12px 14px;
	text-align: center;
}

.h-countdown__grid > div + div {
	border-left: 1px solid var(--h-line-light);
}

.h-countdown__grid b {
	display: block;
	color: #fff;
	font-family: var(--h-display);
	font-size: 2rem;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.h-countdown__grid span {
	display: block;
	margin-top: 4px;
	color: var(--h-fg-muted);
	font-size: 12px;
}

.h-countdown__ended {
	margin: 0;
	color: #fff;
	font-weight: 600;
}

/* Ballot ----------------------------------------------------------------- */
.h-ballot {
	position: relative;
	margin: 0;
	padding: 0;
	background: var(--h-paper);
	border-radius: 4px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
	color: var(--h-ink);
	transform: rotate(1.2deg);
}

.h-ballot__head {
	padding: 26px 28px 18px;
	border-bottom: 2px dashed var(--h-line-dark);
}

.h-ballot__title {
	margin: 0 0 4px;
	color: var(--h-ink);
	font-family: var(--h-display);
	font-size: 1.7rem;
}

.h-ballot__head p {
	margin: 0;
	color: #4b5a52;
	font-size: 14px;
}

.h-ballot__list {
	margin: 0;
	padding: 8px 12px;
	border: 0;
}

.h-ballot__row input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.h-ballot__row label {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 16px;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.15s;
}

.h-ballot__row label:hover {
	background: var(--h-sand);
}

.h-ballot__box {
	position: relative;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	background: #fff;
	border: 2px solid var(--h-ink);
	border-radius: 2px;
}

.h-ballot__box::before,
.h-ballot__box::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 3px;
	background: var(--h-chilli);
	border-radius: 2px;
	opacity: 0;
	transform: translate(-50%, -50%) rotate(45deg) scaleX(0.2);
	transition: opacity 0.12s, transform 0.18s;
}

.h-ballot__box::after {
	transform: translate(-50%, -50%) rotate(-45deg) scaleX(0.2);
}

.h-ballot__row input:checked + label .h-ballot__box::before {
	opacity: 1;
	transform: translate(-50%, -50%) rotate(45deg) scaleX(1);
}

.h-ballot__row input:checked + label .h-ballot__box::after {
	opacity: 1;
	transform: translate(-50%, -50%) rotate(-45deg) scaleX(1);
}

.h-ballot__row input:checked + label {
	background: var(--h-sand);
}

.h-ballot__row input:focus-visible + label {
	outline: 3px solid var(--h-green-2);
	outline-offset: -2px;
}

.h-ballot__name {
	font-size: 16px;
	font-weight: 600;
}

.h-ballot__foot {
	padding: 14px 28px 28px;
	border-top: 2px dashed var(--h-line-dark);
}

.h-ballot__submit {
	width: 100%;
	padding: 16px 24px;
	background: var(--h-green);
	border-color: var(--h-green);
	color: #fff;
	font-size: 15px;
}

.h-ballot__submit:hover,
.h-ballot__submit:focus {
	background: var(--h-gold);
	border-color: var(--h-gold);
	color: var(--h-ink);
}

@media (max-width: 960px) {
	.h-hero__inner {
		grid-template-columns: 1fr;
	}

	.h-hero__title {
		max-width: 14ch;
	}

	.h-ballot {
		max-width: 520px;
		transform: none;
	}
}

/* Who strip -------------------------------------------------------------- */
.h-who {
	padding: 26px 0;
	background: var(--h-gold);
	color: var(--h-ink);
}

.h-who__text {
	max-width: 70ch;
	margin: 0;
	font-family: var(--h-display);
	font-size: clamp(1.1rem, 2vw, 1.5rem);
	font-weight: 700;
	line-height: 1.35;
}

/* Categories --------------------------------------------------------------- */
.h-cats__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}

.h-cats__intro {
	position: sticky;
	top: 110px;
}

.h-cats__intro p {
	max-width: 40ch;
	margin-bottom: 28px;
	color: #3d4d45;
}

.h-cats__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 2px solid var(--h-ink);
}

.h-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 8px;
	border-bottom: 1px solid var(--h-line-dark);
	color: var(--h-ink);
	transition: background 0.15s, padding 0.2s;
}

.h-cat:hover,
.h-cat:focus-visible {
	padding-left: 20px;
	background: var(--h-sand);
	color: var(--h-ink);
}

.h-cat__body {
	display: block;
}

.h-cat__name {
	display: block;
	font-family: var(--h-display);
	font-size: clamp(1.25rem, 2.2vw, 1.65rem);
	font-weight: 700;
	line-height: 1.15;
}

.h-cat__desc {
	display: block;
	margin-top: 4px;
	color: #4b5a52;
	font-size: 15px;
}

.h-cat__go {
	flex: 0 0 auto;
	padding: 8px 18px;
	border: 2px solid var(--h-ink);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.h-cat:hover .h-cat__go,
.h-cat:focus-visible .h-cat__go {
	background: var(--h-ink);
	color: #fff;
}

@media (max-width: 900px) {
	.h-cats__inner {
		grid-template-columns: 1fr;
	}

	.h-cats__intro {
		position: static;
	}
}

/* How it works ------------------------------------------------------------ */
.h-how .h-title {
	margin-bottom: clamp(36px, 5vw, 64px);
}

.h-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.h-step {
	position: relative;
	padding: 44px 28px 8px 0;
	counter-increment: step;
}

.h-step::before {
	content: "";
	position: absolute;
	top: 14px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--h-line-light);
}

.h-step::after {
	content: counter(step);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	background: var(--h-gold);
	border-radius: 50%;
	color: var(--h-ink);
	font-size: 14px;
	font-weight: 700;
}

.h-step__title {
	margin: 0 0 10px;
	color: #fff;
	font-family: var(--h-display);
	font-size: 1.6rem;
}

.h-step__text {
	margin: 0 0 14px;
	color: var(--h-fg-muted);
	font-size: 15px;
}

.h-step__when {
	margin: 0;
	color: var(--h-gold);
	font-size: 14px;
	font-weight: 700;
}

.h-how__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: clamp(40px, 5vw, 64px);
}

@media (max-width: 860px) {
	.h-steps {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.h-step {
		padding: 0 0 28px 56px;
	}

	.h-step::before {
		top: 30px;
		bottom: 0;
		left: 14px;
		right: auto;
		width: 2px;
		height: auto;
	}

	.h-step:last-child::before {
		display: none;
	}
}

/* Nominees ------------------------------------------------------------------- */
.h-noms__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 28px;
}

.h-noms__head .h-title {
	margin-bottom: 0;
}

.h-noms__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 2px solid var(--h-ink);
}

.h-nom {
	display: grid;
	grid-template-columns: 56px minmax(0, 1.2fr) minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
	padding: 18px 8px;
	border-bottom: 1px solid var(--h-line-dark);
}

.h-nom__avatar {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	background: var(--h-green);
	border-radius: 50%;
	color: var(--h-gold);
	font-family: var(--h-display);
	font-size: 1.1rem;
	font-weight: 700;
}

.h-nom__name {
	display: block;
	font-family: var(--h-display);
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.15;
}

.h-nom__city {
	display: block;
	color: #4b5a52;
	font-size: 14px;
}

.h-nom__cat {
	color: #2c3b34;
	font-size: 15px;
	font-weight: 600;
}

.h-nom__vote {
	padding: 10px 24px;
}

@media (max-width: 720px) {
	.h-nom {
		grid-template-columns: 52px minmax(0, 1fr) auto;
	}

	.h-nom__cat {
		display: none;
	}
}

/* Radio tuner --------------------------------------------------------------- */
.h-radio__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}

.h-radio__copy p {
	max-width: 42ch;
	margin: 0;
	color: var(--h-fg-muted);
	font-size: 1.1rem;
}

.h-tuner {
	padding: 22px;
	background: #0b2c22;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
}

.h-tuner__dial {
	position: relative;
	height: 92px;
	margin-bottom: 20px;
	overflow: hidden;
	background: #04150f;
	border-radius: 6px;
}

.h-tuner__scale {
	position: absolute;
	right: 16px;
	bottom: 14px;
	left: 16px;
	height: 38px;
	background:
		repeating-linear-gradient(90deg, rgba(238, 244, 238, 0.65) 0 2px, transparent 2px 12px) bottom / 100% 18px no-repeat,
		repeating-linear-gradient(90deg, rgba(238, 244, 238, 0.95) 0 2px, transparent 2px 60px) bottom / 100% 34px no-repeat;
}

.h-tuner__needle {
	position: absolute;
	top: 10px;
	bottom: 10px;
	left: 18%;
	width: 3px;
	background: var(--h-chilli);
	border-radius: 2px;
	box-shadow: 0 0 14px rgba(216, 56, 30, 0.8);
	transition: left 1.4s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.h-tuner.is-playing .h-tuner__needle {
	left: 63%;
}

.h-tuner__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 22px;
}

.h-tuner__btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 12px 26px 12px 14px;
	background: var(--h-gold);
	border: 0;
	border-radius: 999px;
	color: var(--h-ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s;
}

.h-tuner__btn:hover:not(:disabled) {
	background: #fff;
}

.h-tuner__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.h-tuner__icon {
	position: relative;
	display: block;
	width: 34px;
	height: 34px;
	background: var(--h-ink);
	border-radius: 50%;
}

.h-tuner__icon::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 52%;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 11px solid var(--h-gold);
	transform: translate(-50%, -50%);
}

.h-tuner.is-playing .h-tuner__icon::before {
	left: 50%;
	width: 12px;
	height: 14px;
	border: 0;
	border-right: 4px solid var(--h-gold);
	border-left: 4px solid var(--h-gold);
}

.h-tuner__now {
	flex: 1 1 180px;
	margin: 0;
	color: var(--h-fg-muted);
	font-size: 15px;
}

.h-tuner.is-playing .h-tuner__now {
	color: #fff;
}

.h-tuner__vol {
	flex: 0 0 120px;
}

.h-tuner__vol input {
	width: 100%;
	padding: 0;
	accent-color: var(--h-gold);
	background: transparent;
	border: 0;
}

.h-tuner__admin {
	margin: 16px 0 0;
	color: var(--h-gold);
	font-size: 13px;
}

@media (max-width: 900px) {
	.h-radio__inner {
		grid-template-columns: 1fr;
	}
}

/* Stats ------------------------------------------------------------------ */
.h-stats {
	padding: clamp(40px, 6vw, 72px) 0;
	background: var(--h-green-2);
	color: var(--h-fg);
}

.h-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
}

.h-stat {
	padding: 4px 24px;
	border-left: 1px solid var(--h-line-light);
}

.h-stat:first-child {
	padding-left: 0;
	border-left: 0;
}

.h-stat__num {
	margin: 0;
	color: #fff;
	font-family: var(--h-display);
	font-size: clamp(2.4rem, 5vw, 4rem);
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.h-stat__label {
	margin: 8px 0 0;
	color: var(--h-fg-muted);
	font-size: 15px;
}

@media (max-width: 760px) {
	.h-stats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 0;
	}

	.h-stat:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}
}

/* Business ---------------------------------------------------------------- */
.h-biz__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}

.h-biz__copy > p {
	max-width: 48ch;
	color: #3d4d45;
	font-size: 1.1rem;
}

.h-checks {
	margin: 28px 0 32px;
	padding: 0;
	list-style: none;
}

.h-checks li {
	position: relative;
	padding: 12px 0 12px 38px;
	border-bottom: 1px solid var(--h-line-dark);
}

.h-checks li::before {
	content: "";
	position: absolute;
	top: 14px;
	left: 4px;
	width: 10px;
	height: 18px;
	border-right: 3px solid var(--h-green-2);
	border-bottom: 3px solid var(--h-green-2);
	transform: rotate(40deg);
}

.h-biz__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 28px;
}

.h-biz__badge {
	display: grid;
	place-items: center;
}

.h-stamp {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: min(300px, 80vw);
	aspect-ratio: 1;
	background: var(--h-green);
	border: 6px double var(--h-gold);
	border-radius: 50%;
	box-shadow: 0 0 0 10px var(--h-paper), 0 0 0 12px var(--h-green);
	color: #fff;
	text-align: center;
	transform: rotate(-9deg);
}

.h-stamp__top,
.h-stamp__bottom {
	color: var(--h-gold);
	font-size: 14px;
	font-weight: 700;
}

.h-stamp__main {
	margin: 4px 0;
	font-family: var(--h-display);
	font-size: clamp(3rem, 8vw, 4.6rem);
	font-weight: 700;
	line-height: 1;
}

@media (max-width: 860px) {
	.h-biz__inner {
		grid-template-columns: 1fr;
	}
}

/* FAQ --------------------------------------------------------------------- */
.h-faq__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}

.h-faq__intro p {
	color: #3d4d45;
}

.h-faq__intro a {
	color: var(--h-green-2);
	font-weight: 700;
	text-decoration: underline;
}

.h-faq__list {
	border-top: 2px solid var(--h-ink);
}

.h-faq__item {
	border-bottom: 1px solid var(--h-line-dark);
}

.h-faq__item summary {
	position: relative;
	padding: 20px 48px 20px 4px;
	font-family: var(--h-display);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
}

.h-faq__item summary::-webkit-details-marker {
	display: none;
}

.h-faq__item summary::before,
.h-faq__item summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 10px;
	width: 16px;
	height: 2px;
	background: var(--h-ink);
	transition: transform 0.2s;
}

.h-faq__item summary::after {
	transform: rotate(90deg);
}

.h-faq__item[open] summary::after {
	transform: rotate(0deg);
}

.h-faq__item p {
	max-width: 62ch;
	margin: 0;
	padding: 0 48px 22px 4px;
	color: #3d4d45;
}

@media (max-width: 860px) {
	.h-faq__inner {
		grid-template-columns: 1fr;
	}
}

/* Closing CTA ------------------------------------------------------------- */
.h-cta {
	background:
		radial-gradient(700px 360px at 50% 120%, rgba(242, 162, 28, 0.25), transparent 70%),
		var(--h-green);
}

.h-cta__inner {
	text-align: left;
}

.h-cta__title {
	max-width: 14ch;
	margin: 0 0 8px;
	color: #fff;
	font-family: var(--h-display);
	font-size: clamp(2.6rem, 7vw, 5.6rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 0.98;
}

.h-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 36px;
}

.h-home-content,
.ica-home .home-content {
	padding-top: 56px;
	padding-bottom: 56px;
}
