/* Catchester theme: layout and component styles that theme.json can't express.
   Colours, fonts and type sizes live in theme.json (Appearance › Editor › Styles). */

:root {
	--cat-black: var(--wp--preset--color--black, #080808);
	--cat-yellow: var(--wp--preset--color--yellow, #ebc425);
	--cat-gold: var(--wp--preset--color--gold, #8a7614);
	--cat-muted: var(--wp--preset--color--muted, #706e67);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: var(--cat-yellow); color: var(--cat-black); }
.wp-site-blocks { position: relative; }
.wp-site-blocks > * { margin-block-start: 0; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- Buttons ---------- */
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding-top: 0 !important; padding-bottom: 0 !important; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.is-style-outline-light .wp-block-button__link { background: transparent; color: #fff; border: 1px solid #ffffffad; }
.is-style-outline-light .wp-block-button__link:hover { background: #fff; color: #111; transform: none; }
.is-style-dark .wp-block-button__link { background: #111; color: #fff; }
.is-style-dark .wp-block-button__link:hover { background: #343434; color: #fff; }

/* ---------- Text styles ---------- */
.is-style-kicker { color: var(--cat-gold); font-size: 11px; font-weight: 700; letter-spacing: .19em; line-height: 1.5; text-transform: uppercase; }
.share-section .is-style-kicker, .hero-eyebrow.is-style-kicker { color: var(--cat-yellow); }
.is-style-lead { color: var(--wp--preset--color--ink-soft); font-size: 15px; line-height: 1.75; max-width: 660px; }
.section-shell h2.wp-block-heading { max-width: 780px; margin-top: 0; }
/* Keep narrow headings and intro text aligned to the left edge of the content area, not centred. */
.section-shell > .wp-block-heading, .section-shell > .is-style-lead, .gallery-intro > .wp-block-heading, .gallery-intro > .is-style-lead {
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important; margin-right: auto !important;
}
.section-shell .is-style-kicker + .wp-block-heading { margin-top: 0; }
.is-style-pill-badge {
	display: inline-block; width: fit-content; margin: 0 0 0 auto !important;
	color: #fff; background: #1212108c; border: 1px solid #ffffffa6; border-radius: 999px;
	-webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
	padding: 10px 14px; font-size: 10px; font-weight: 700; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase;
}

/* ---------- Header ---------- */
header.wp-block-template-part { background: var(--cat-black); }
body.home header.wp-block-template-part { position: absolute; top: 0; left: 0; right: 0; z-index: 20; background: transparent; }
.site-header { max-width: 1520px; margin: 0 auto !important; padding: 28px clamp(22px, 5vw, 76px) !important; gap: 28px; }
.site-header .brand-logo { margin: 0; }
.site-header .brand-logo img { width: 205px !important; height: 46px; object-fit: contain; object-position: left center; }
.site-nav { gap: clamp(18px, 3vw, 40px); }
.site-nav__links { gap: clamp(18px, 3vw, 40px) !important; }
.site-header .site-nav__links .wp-block-navigation-item__content { color: #ffffffe6; font-size: 13px; font-weight: 600; text-decoration: none; }
.site-header .site-nav__links .wp-block-navigation-item__content:hover, .site-header .site-nav__links .wp-block-navigation-item__content:focus { color: var(--cat-yellow); }

/* ---------- Hero ---------- */
.catchester-hero { color: #fff; min-height: 100svh !important; padding: 140px clamp(22px, 9vw, 140px) 96px !important; }
.catchester-hero .wp-block-cover__background {
	opacity: 1 !important;
	background: linear-gradient(90deg, #000000b8 0%, #00000073 36%, #0000000a 78%), linear-gradient(#0000 57%, #00000094 100%) !important;
}
.catchester-hero .wp-block-cover__inner-container { max-width: 1520px; position: static; }
.catchester-hero .hero-copy { position: relative; z-index: 2; }
.hero-copy { width: min(780px, 67vw); }
.hero-copy > * { margin-left: 0 !important; }
.catchester-hero h1 { margin: 0; max-width: 760px; font-size: clamp(50px, 6.4vw, 96px); }
.hero-subtitle { color: var(--cat-yellow); font-size: clamp(17px, 2vw, 25px); font-weight: 600; letter-spacing: -.025em; line-height: 1.35; margin-top: 17px !important; }
.is-style-glass-card {
	width: min(560px, 100%); margin-top: 26px !important; padding: 20px 22px 18px;
	background: #1414136b; border: 1px solid #ffffff6b; border-radius: 18px; box-shadow: 0 18px 55px #0003;
	-webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.is-style-glass-card p { color: #fffffff0; font-size: 14px; line-height: 1.65; margin: 0; max-width: 62ch; }
.hero-actions { gap: 11px; margin-top: 18px !important; }
.hero-scroll { position: absolute; z-index: 2; bottom: 32px; left: clamp(22px, 5vw, 76px); margin: 0 !important; }
.hero-scroll a { display: flex; align-items: center; gap: 10px; color: #ffffffc7; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.hero-scroll a::after { content: ""; width: 42px; height: 1px; background: var(--cat-yellow); }

/* ---------- Postcards and photo cards ---------- */
.stops-grid { gap: 18px !important; }
.is-style-postcard, .is-style-photo-card { overflow: hidden; color: #fff; }
.is-style-postcard { border-radius: 18px; padding: 18px !important; }
.is-style-photo-card { border-radius: 20px; padding: 17px !important; }
.is-style-postcard .wp-block-cover__background { opacity: 1 !important; background: linear-gradient(#0000 30%, #000000b3) !important; }
.is-style-postcard .wp-block-cover__image-background, .is-style-photo-card .wp-block-cover__image-background { transition: transform .45s; }
.is-style-postcard:hover .wp-block-cover__image-background { transform: scale(1.04); }
.postcard-kicker { color: var(--cat-yellow); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 5px !important; }
.postcard-place { font-size: 25px; font-weight: 700; letter-spacing: -.04em; line-height: 1.2; margin: 0 !important; }
.opening-note { color: var(--cat-muted); font-size: 12px; line-height: 1.6; }

/* ---------- Toy ---------- */
.toy-title { font-size: clamp(38px, 5vw, 64px) !important; }
.toy-price-row { gap: 15px; margin: 25px 0 20px !important; align-items: center; }
.toy-price { font-size: 42px; font-weight: 700; letter-spacing: -.06em; line-height: 1; margin: 0; }
.toy-price-note { color: #625e53; border-left: 1px solid #c9c2b2; padding-left: 15px; font-size: 11px; line-height: 1.5; margin: 0; }
.toy-footnote { color: #6c685e; font-size: 10px; line-height: 1.55; margin-top: 12px !important; }

/* ---------- Share ---------- */
.share-section h2.wp-block-heading { color: #fff; }
.share-section .is-style-lead { color: #ffffffbd; }
@media (min-width: 900px) { .share-copy { position: sticky; top: 36px; align-self: flex-start; } }
.is-style-prize-card { margin-top: 28px !important; padding: 21px 22px; background: #ebc42514; border: 1px solid #ebc4259e; border-radius: 16px; }
.is-style-prize-card p { margin: 0; color: #ffffffbf; font-size: 13px; line-height: 1.55; }
.is-style-prize-card .prize-label { color: var(--cat-yellow); font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; margin-bottom: 9px !important; }
.is-style-prize-card .prize-heading { color: #fff; font-size: 21px; font-weight: 700; letter-spacing: -.04em; line-height: 1.2; }
.is-style-prize-card > * + * { margin-top: 8px !important; }
.is-style-prize-card .prize-label + * { margin-top: 0 !important; }
.is-style-form-card { color: #111; background: #fff; border-radius: 20px; padding: clamp(22px, 3.5vw, 42px); }
.is-style-form-card h3 { font-size: 21px; letter-spacing: -.04em; margin: 0 0 6px; }
.is-style-form-card .form-intro { color: #62615b; font-size: 13px; line-height: 1.65; margin: 0 0 26px !important; }

/* Entry form (Catchester Adventures plugin) */
.ccat-form-wrap { --ccat-line: #d5d3ca; color: #111; }
.ccat-form__grid { gap: 16px 14px !important; }
.ccat-form .ccat-field label { font-size: 11px; font-weight: 700; margin-bottom: 7px; }
.ccat-form input[type=text], .ccat-form input[type=email] {
	height: 48px; padding: 0 13px; font-size: 13px; color: #111; background: #fff;
	border: 1px solid #d5d3ca; border-radius: 10px; outline: none;
}
.ccat-form input[type=text]:focus, .ccat-form input[type=email]:focus { border-color: var(--cat-gold); box-shadow: 0 0 0 3px #ebc4253b; }
.ccat-form .ccat-field__help { color: #727067; font-size: 11px; opacity: 1; }
.ccat-place__find { min-height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: #111; color: #fff; font-size: 12px; font-weight: 700; }
.ccat-place__results { border-color: #d5d3ca; border-radius: 10px; font-size: 13px; }
.ccat-place__chosen { color: #176744; font-size: 12px; }
.ccat-form .ccat-upload { cursor: pointer; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 142px; padding: 18px; text-align: center; background: #faf9f5; border: 1.5px dashed #b8b4a8; border-radius: 14px; }
.ccat-form .ccat-upload:hover, .ccat-photo:focus-within .ccat-upload { background: #fffdf2; border-color: var(--cat-gold); }
.ccat-upload__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cat-yellow); font-size: 18px; font-weight: 800; line-height: 1; }
.ccat-upload strong { font-size: 13px; }
.ccat-upload small { color: #727067; font-size: 11px; }
.ccat-form .ccat-field__error { color: #a12620; font-size: 11px; }
.ccat-form__privacy { margin: 18px 0 15px; padding: 13px 14px; color: #55534c; background: #f8f6ef; border-left: 3px solid var(--cat-yellow); font-size: 11px; line-height: 1.65; opacity: 1; }
.ccat-form__privacy a { font-weight: 700; }
.ccat-consent__label { color: #4f4d47; font-size: 11px; line-height: 1.55; }
.ccat-consent__label input { accent-color: #151515; width: 16px; height: 16px; margin-top: 1px; }
.ccat-form__message { color: #a12620; font-size: 12px; }
.ccat-form__actions { margin-top: 18px; }
.ccat-form__actions, .ccat-form__actions .ccat-form__submit { width: 100%; }
.ccat-form__submit { min-height: 52px; border: 0; background: var(--cat-yellow) !important; color: var(--cat-black) !important; }
.ccat-form__progress, .ccat-form__after { color: #77746c; font-size: 10px; line-height: 1.5; opacity: 1; margin-top: 12px; }
.ccat-form-success { padding: 26px 0 8px; }
.ccat-form-success__heading { font-size: 24px; letter-spacing: -.04em; margin: 0 0 6px; }
.ccat-form-success p { color: #55534c; font-size: 14px; }
.ccat-form-success__again { margin-top: 10px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: #111; color: #fff; font-size: 12px; font-weight: 700; }
.ccat-form-closed { color: #55534c; font-size: 15px; }

/* ---------- Scrapbook ---------- */
.gallery-top { gap: 24px 40px !important; }
.gallery-intro { max-width: 640px; flex: 1 1 420px; }
.gallery-intro > * { margin-left: 0 !important; }
.gallery-top .ccat-counter { gap: 28px; margin: 0; }
.gallery-top .ccat-counter__num { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.05em; }
.gallery-top .ccat-counter__label { color: #625e53; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ccat-scrapbook { margin-top: 34px !important; }
.ccat-scrapbook__controls { display: inline-flex; gap: 7px; padding: 5px; margin: 0 0 24px; background: #fff9; border: 1px solid #0000001c; border-radius: 999px; }
.ccat-tab { min-height: 38px; padding: 0 14px; border: 0 !important; color: #4a4842; font-size: 11px; font-weight: 700; }
.ccat-tab:hover:not(.is-active) { background: #00000012; }
.ccat-tab.is-active { background: #111 !important; color: #fff !important; }
.ccat-scrapbook__grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 18px !important; }
.ccat-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 9px 25px #18140a0d; }
.ccat-card__open { border-radius: 0 !important; background: #ddd8cc !important; }
.ccat-card__meta { padding: 17px 18px 19px !important; }
.ccat-card__miles { display: block; color: #887313; font-size: 9px; font-weight: 700; letter-spacing: .16em; margin-bottom: 7px; text-transform: uppercase; }
.ccat-card__place { font-size: 18px !important; letter-spacing: -.04em; line-height: 1.25; margin: 0 !important; }
.ccat-card__by { color: #727067; font-size: 11px !important; margin: 6px 0 0 !important; opacity: 1 !important; }
.ccat-scrapbook__empty { text-align: center; padding: 42px 24px; color: #68665f; font-size: 13px; background: #ffffff6b; border: 1px dashed #c5c0b3; border-radius: 18px; }
.ccat-scrapbook__empty::before { content: "✦"; display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: var(--cat-yellow); color: #111; font-size: 22px; }
.ccat-scrapbook__more .wp-block-button__link { background: #111; color: #fff; }
.ccat-scrapbook__map { border: 1px solid #0000001a; border-radius: 19px; }

/* Lightbox */
.ccat-lightbox { width: 90vw; height: 90dvh; max-width: none; max-height: none; padding: 0; color: #fff; background: #090a09; border: 1px solid #ffffff29; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 90px #00000080; }
.ccat-lightbox::backdrop { background: #070909d6; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ccat-lightbox figure { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; }
.ccat-lightbox figure::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(#0000, #000000c7); pointer-events: none; }
.ccat-lightbox img { width: 100%; height: 100%; max-height: none; object-fit: contain; border-radius: 0; }
.ccat-lightbox figcaption { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 25px; max-width: 680px; padding: 0; text-align: left; }
.ccat-lightbox__label { display: block; color: var(--cat-yellow); font-size: 10px; font-weight: 700; letter-spacing: .15em; margin-bottom: 7px; text-transform: uppercase; }
.ccat-lightbox__place { display: block; font-size: clamp(26px, 4vw, 48px); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; }
.ccat-lightbox__by { display: block; margin-top: 6px; color: #ffffffcc; font-size: 13px; }
.ccat-lightbox__close, .ccat-lightbox__nav {
	position: absolute; z-index: 4; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
	color: #fff; background: #090a09a8; border: 1px solid #ffffff5c; border-radius: 50%; cursor: pointer;
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ccat-lightbox__close { top: 16px; right: 16px; font-size: 30px; line-height: 1; }
.ccat-lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 22px; }
.ccat-lightbox__prev { left: 18px; }
.ccat-lightbox__next { right: 18px; }
.ccat-lightbox__close:hover, .ccat-lightbox__nav:hover { background: #090a09eb; }
.ccat-lightbox button:focus-visible { outline: 3px solid var(--cat-yellow); outline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer .footer-inner { gap: 20px; align-items: center; }
.footer-copy { color: #ffffffa8; font-size: 10px; line-height: 1.7; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; }
.footer-links a { color: #ffffffd1; font-size: 11px; text-decoration: none; }
.footer-links a:hover { color: var(--cat-yellow); }

/* ---------- Ordinary pages (terms) ---------- */
.page-body h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -.05em; line-height: 1.05; }
.page-body h2 { font-size: 21px; letter-spacing: -.02em; line-height: 1.3; margin-top: 2.2em; }
.page-body p { font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.hero-copy { width: min(740px, 82vw); }
	.ccat-scrapbook__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
	html { scroll-padding-top: 20px; }
	.site-header { padding: 18px !important; align-items: flex-start !important; }
	.site-header .brand-logo img { width: 155px !important; height: 38px; }
	.site-nav__links { display: none !important; }
	.site-header .wp-block-button__link { min-height: 40px; padding: 0 14px !important; font-size: 11px; }
	.catchester-hero { padding: 132px 20px 108px !important; align-items: flex-end !important; }
	.catchester-hero .wp-block-cover__background { background: linear-gradient(#0000001a 0%, #0000005c 42%, #000000c2 100%), linear-gradient(90deg, #0003, #0000) !important; }
	.catchester-hero .wp-block-cover__image-background { object-position: 68% center !important; }
	.hero-copy { width: 100%; }
	.catchester-hero h1 { font-size: clamp(41px, 10vw, 60px); }
	.hero-subtitle { font-size: 17px; margin-top: 12px !important; }
	.is-style-glass-card { border-radius: 15px; padding: 16px; margin-top: 18px !important; }
	.is-style-glass-card p { font-size: 12px; line-height: 1.55; }
	.hero-actions .wp-block-button__link { min-height: 43px; padding: 0 14px !important; font-size: 11px; }
	.hero-scroll { bottom: 28px; left: 20px; }
	.hero-scroll a { font-size: 9px; }
	.section-shell { padding-top: 72px !important; padding-bottom: 72px !important; }
	.is-style-lead { font-size: 13px; line-height: 1.65; }
	.stops-grid { gap: 12px !important; }
	.is-style-postcard { min-height: 255px !important; }
	.is-style-photo-card { min-height: 300px !important; border-radius: 15px; }
	.toy-price { font-size: 36px; }
	.is-style-form-card { border-radius: 16px; padding: 20px 16px; }
	.ccat-form__grid { grid-template-columns: 1fr !important; gap: 13px !important; }
	.ccat-scrapbook__grid { grid-template-columns: 1fr !important; gap: 13px !important; }
	.ccat-scrapbook__controls { display: flex; width: 100%; }
	.ccat-tab { flex: 1; padding: 0 7px; font-size: 10px; }
	.ccat-lightbox { border-radius: 14px; }
	.ccat-lightbox__close, .ccat-lightbox__nav { width: 42px; height: 42px; }
	.ccat-lightbox__prev { left: 9px; }
	.ccat-lightbox__next { right: 9px; }
	.footer-inner { flex-direction: column; align-items: flex-start !important; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, ::before, ::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Full-width sections sit flush against each other. */
.wp-block-post-content > .alignfull, main > .wp-block-post-content { margin-block-start: 0 !important; margin-block-end: 0 !important; }
