/* ============================================================================
   chrome.css — site-wide chrome that must load on every page.
   Promo bar · Header (incl. responsive) · Mobile menu · Section scaffold ·
   Countdown blocks (used on cards, hero, single competition).
   Component-specific styles live in: home.css, competition.css, account.css, footer.css.
   ============================================================================ */

/* --- Promo bar -------------------------------------------------------------- */
.dtr-promo-bar { background: var(--dtr-gold); color: var(--dtr-primary); }
.dtr-promo-bar__inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 12px; position: relative; }
.dtr-promo-bar__text { margin: 0; font-size: 0.875rem; font-weight: 600; text-align: center; }
.dtr-promo-bar__close {
	position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
	background: transparent; border: 0; color: var(--dtr-primary); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.dtr-promo-bar[hidden] { display: none; }

/* --- Header ---------------------------------------------------------------- */
.dtr-header { position: sticky; top: 0; z-index: 50; background: var(--dtr-white); border-bottom: 1px solid var(--dtr-grey-100); transition: box-shadow var(--dtr-transition); }
.dtr-header--scrolled { box-shadow: var(--dtr-shadow-sm); }
.dtr-header__inner { display: flex; align-items: center; gap: 24px; min-height: 96px; padding-top: 16px; padding-bottom: 16px; }
.dtr-header__logo { flex-shrink: 0; display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.dtr-header__crest { display: inline-flex; align-items: center; flex-shrink: 0; }
.dtr-header__crest svg { height: 70px; width: auto; display: block; }
/* Brand-name text lockup beside the crest. Reads from get_bloginfo('name')
 * so the client can edit it in wp-admin → Settings → General. Montserrat
 * (heading font) in --dtr-primary (~12.4:1 contrast on white, WCAG AAA). */
.dtr-header__brand-name {
	font-family: var(--dtr-font-heading);
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.1;
	letter-spacing: 0.01em;
	color: var(--dtr-primary);
	white-space: nowrap;
}
@media (max-width: 1023px) {
	.dtr-header__inner { min-height: 80px; gap: 16px; }
	.dtr-header__crest svg { height: 56px; }
	.dtr-header__brand-name { font-size: 1.05rem; }
}
/* Below 480px the lockup would crowd the cart + hamburger trio; show the
 * crest alone — it's the recognisable brand mark on its own. */
@media (max-width: 479px) {
	.dtr-header__logo { gap: 0; }
	.dtr-header__crest svg { height: 48px; }
	.dtr-header__brand-name { display: none; }
}
.dtr-header__nav { flex: 1; }
.dtr-header__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; justify-content: center; }
.dtr-header__menu a { color: var(--dtr-primary); font-family: var(--dtr-font-heading); font-weight: 600; font-size: 0.95rem; padding: 8px 4px; border-bottom: 2px solid transparent; transition: border-color var(--dtr-transition); }
.dtr-header__menu a:hover, .dtr-header__menu a:focus { border-bottom-color: var(--dtr-gold); }
/* margin-left:auto pushes actions to the right edge on mobile (where
 * .dtr-header__nav is display:none and no longer absorbs the gap with flex:1).
 * On desktop the nav still wins because flex:1 grows to fill all remaining
 * space first -- this rule is a no-op there. */
.dtr-header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.dtr-header__action { font-family: var(--dtr-font-heading); font-weight: 600; font-size: 0.875rem; color: var(--dtr-primary); }
.dtr-header__action--signup { background: var(--dtr-gold); color: var(--dtr-primary); padding: 8px 16px; border-radius: var(--dtr-radius-pill); }
.dtr-header__action--signup:hover { background: var(--dtr-gold-dark); color: var(--dtr-primary); }
.dtr-header__cart { position: relative; color: var(--dtr-primary); display: inline-flex; align-items: center; padding: 6px; }
.dtr-header__cart-count { position: absolute; top: -4px; right: -4px; background: var(--dtr-gold); color: var(--dtr-primary); font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.dtr-header__cart-count[hidden] { display: none; }
.dtr-header__menu-trigger { display: none; background: transparent; border: 0; padding: 4px; color: var(--dtr-primary); cursor: pointer; }

@media (max-width: 1023px) {
	.dtr-header__nav, .dtr-header__action { display: none; }
	.dtr-header__menu-trigger { display: inline-flex; }
}

/* --- Mobile menu ----------------------------------------------------------- */
.dtr-mobile-menu { position: fixed; inset: 0; background: rgba(18, 67, 80, 0.55); z-index: 100; opacity: 0; pointer-events: none; transition: opacity var(--dtr-transition); }
.dtr-mobile-menu[data-open] { opacity: 1; pointer-events: auto; }
.dtr-mobile-menu__inner { position: absolute; top: 0; right: 0; width: min(360px, 92vw); height: 100%; background: var(--dtr-white); transform: translateX(100%); transition: transform var(--dtr-transition); padding: 64px 24px 24px; overflow-y: auto; }
.dtr-mobile-menu[data-open] .dtr-mobile-menu__inner { transform: translateX(0); }
.dtr-mobile-menu__close { position: absolute; top: 12px; right: 12px; background: transparent; border: 0; font-size: 34px; line-height: 1; color: var(--dtr-primary); cursor: pointer; padding: 8px; }
.dtr-mobile-menu__list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.dtr-mobile-menu__list a { display: block; color: var(--dtr-primary); font-family: var(--dtr-font-heading); font-size: 1.1rem; font-weight: 600; padding: 12px 8px; border-radius: var(--dtr-radius-sm); }
.dtr-mobile-menu__list a:hover, .dtr-mobile-menu__list a:focus { background: var(--dtr-cream); }
.dtr-mobile-menu__cta { display: flex; flex-direction: column; gap: 12px; }

/* --- Section scaffold ------------------------------------------------------ */
.dtr-section { padding: 64px 0; }
@media (min-width: 768px) { .dtr-section { padding: 96px 0; } }
.dtr-section__head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 32px; gap: 16px; }
.dtr-section__head--center { text-align: center; flex-direction: column; align-items: center; }
.dtr-section__more { font-family: var(--dtr-font-heading); font-weight: 700; color: var(--dtr-teal-text); }
.dtr-section__sub { max-width: 640px; margin: 8px auto 0; color: var(--dtr-grey-600); }

/* --- Countdown blocks ------------------------------------------------------ */
.dtr-countdown { display: inline-flex; gap: 8px; align-items: baseline; }
.dtr-countdown__cell { display: inline-flex; flex-direction: column; align-items: center; min-width: 36px; }
.dtr-countdown__num { font-family: var(--dtr-font-heading); font-weight: 700; font-size: 1.125rem; line-height: 1; }
.dtr-countdown__label { font-size: 0.625rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.08em; }
.dtr-countdown--xl .dtr-countdown__cell { min-width: 64px; padding: 12px 8px; background: var(--dtr-cream); border-radius: var(--dtr-radius-md); border: 1px solid var(--dtr-beige); }
.dtr-countdown--xl .dtr-countdown__num { font-size: 2rem; color: var(--dtr-primary); }
.dtr-countdown--xl .dtr-countdown__label { color: var(--dtr-grey-600); font-size: 0.75rem; }
.dtr-countdown__closed { font-family: var(--dtr-font-heading); font-weight: 700; color: var(--dtr-orange); }
