/* ============================================================================
   home.css — homepage-exclusive sections. Gated to is_front_page() in enqueue.
   Site-chrome (header / promo bar / mobile menu / sections / countdown) lives
   in chrome.css. Reused-across-pages sections have their own files
   (how-it-works.css, winners.css).
   ============================================================================ */

/* --- Free postal entry banner (ASA prominent display) --------------------- */
.dtr-free-banner { background: var(--dtr-primary-dark); color: var(--dtr-white); }
.dtr-free-banner__inner {
	display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
	gap: 12px 20px; padding-top: 14px; padding-bottom: 14px; text-align: center;
}
.dtr-free-banner__text { margin: 0; font-size: .95rem; line-height: 1.4; }
.dtr-free-banner__badge {
	display: inline-block; margin-right: 10px; padding: 3px 12px;
	background: var(--dtr-gold); color: var(--dtr-primary-dark);
	border-radius: var(--dtr-radius-pill); font-family: var(--dtr-font-heading);
	font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
	vertical-align: middle;
}
.dtr-free-banner__link {
	color: var(--dtr-gold); font-weight: 700; text-decoration: none; white-space: nowrap;
	border-bottom: 2px solid transparent; transition: border-color var(--dtr-transition);
}
.dtr-free-banner__link:hover, .dtr-free-banner__link:focus { border-bottom-color: var(--dtr-gold); }
@media (max-width: 600px) {
	.dtr-free-banner__inner { flex-direction: column; gap: 8px; }
	.dtr-free-banner__badge { display: block; margin: 0 auto 6px; width: fit-content; }
}

/* --- Hero ------------------------------------------------------------------ */
.dtr-hero { background: var(--dtr-primary); color: var(--dtr-white); }
.dtr-hero__swiper { aspect-ratio: 16 / 7; min-height: 480px; }
@media (max-width: 768px) { .dtr-hero__swiper { aspect-ratio: 4 / 5; min-height: 0; } }
.dtr-hero__slide { background-size: cover; background-position: center; position: relative; }
.dtr-hero__slide--ended { filter: grayscale(0.6); }
.dtr-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,51,64,0.45) 0%, rgba(13,51,64,0.85) 75%); }
.dtr-hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px 0 56px; gap: 12px; }
.dtr-hero__cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; opacity: 0.85; margin: 0; }
.dtr-hero__title { color: var(--dtr-white); font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.1; margin: 0; }
.dtr-hero__sub { font-size: 1.1rem; max-width: 640px; margin: 0; opacity: 0.9; }
.dtr-hero__stats { display: flex; flex-wrap: wrap; gap: 20px 32px; margin-top: 8px; }
.dtr-hero__stat { display: flex; flex-direction: column; }
.dtr-hero__stat-label { font-size: 0.75rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.08em; }
.dtr-hero__stat-value { font-family: var(--dtr-font-heading); font-weight: 700; font-size: 1.25rem; }
.dtr-hero .dtr-progress { background: rgba(255,255,255,0.15); }
.dtr-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.dtr-hero__cta .dtr-btn--ghost { color: var(--dtr-white); border-color: var(--dtr-white); }
.dtr-hero__cta .dtr-btn--ghost:hover { background: var(--dtr-white); color: var(--dtr-primary); }

.swiper-pagination { bottom: 16px !important; display: flex; justify-content: center; gap: 8px; }
/* WCAG 2.2 target-size: each pagination bullet needs ≥24×24px hit area.
 * The visible dot stays the same 8×8 size via a pseudo-element; the outer
 * element provides the tap target with transparent padding. */
.swiper-pagination-bullet {
	width: 24px !important;
	height: 24px !important;
	background: transparent !important;
	opacity: 1 !important;
	border-radius: 50%;
	margin: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.swiper-pagination-bullet::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--dtr-white);
	opacity: 0.5;
	transition: background var(--dtr-transition), opacity var(--dtr-transition);
}
.swiper-pagination-bullet-active::before { background: var(--dtr-gold); opacity: 1; }
.swiper-pagination-bullet:hover::before,
.swiper-pagination-bullet:focus-visible::before { opacity: 0.85; }

/* --- Live winners ticker --------------------------------------------------- */
.dtr-ticker { background: var(--dtr-primary); color: var(--dtr-white); display: flex; align-items: center; padding: 12px 0; overflow: hidden; }
.dtr-ticker__label { padding: 0 16px; font-family: var(--dtr-font-heading); font-weight: 700; flex-shrink: 0; }
.dtr-ticker__viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(to right, transparent 0, black 32px, black calc(100% - 32px), transparent 100%); }
.dtr-ticker__track { display: flex; gap: 48px; animation: dtr-ticker-marquee 60s linear infinite; will-change: transform; white-space: nowrap; }
.dtr-ticker--paused .dtr-ticker__track { animation-play-state: paused; }
.dtr-ticker__item { font-size: 0.95rem; flex-shrink: 0; }
.dtr-ticker__item strong { color: var(--dtr-gold); }
.dtr-ticker__item em { color: var(--dtr-white); font-style: normal; font-weight: 600; }
.dtr-ticker__city, .dtr-ticker__date { opacity: 0.75; font-size: 0.875rem; }
@keyframes dtr-ticker-marquee {
	from { transform: translateX(0); } to { transform: translateX(-50%); }
}

/* --- Featured competitions ------------------------------------------------ */
/* Grid + card styles live in card.css (shared with the shop archive).
 * The homepage section uses .dtr-card-grid as its grid class. */

/* --- Testimonials ---------------------------------------------------------- */
.dtr-testimonials { background: var(--dtr-cream); }
.dtr-testimonials__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .dtr-testimonials__grid { grid-template-columns: repeat(3, 1fr); } }
.dtr-testimonial { background: var(--dtr-white); border-radius: var(--dtr-radius-lg); padding: 24px; margin: 0; box-shadow: var(--dtr-shadow-sm); display: flex; flex-direction: column; gap: 16px; }
.dtr-testimonial p { margin: 0; font-size: 1.05rem; color: var(--dtr-grey-900); }
.dtr-testimonial footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.dtr-testimonial img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.dtr-testimonial footer strong { display: block; color: var(--dtr-primary); font-family: var(--dtr-font-heading); }
.dtr-testimonial footer span { display: block; font-size: 0.825rem; color: var(--dtr-grey-600); }
.dtr-testimonial footer em { display: block; font-style: normal; color: var(--dtr-gold-text); font-size: 0.825rem; font-weight: 600; }
