/* ==========================================================
   Worcester What's On + responsive fixes for worcester2026
   ========================================================== */

:root {
	--wcw-blue: #0d6efd;
	--wcw-ink: #1f2933;
	--wcw-muted: #5f6b76;
	--wcw-line: #e3e7eb;
	--wcw-soft: #f5f7f9;
	--wcw-radius: 14px;
}

/* ---------- Global responsive fixes ---------- */

/* Hero used 100vw, which adds a horizontal scrollbar. */
.hero-image { width: 100%; }
.hero-image { height: 100vh; height: 100svh; }
.hero-image.hero-page { height: 60vh; min-height: 320px; max-height: 620px; }

html, body { overflow-x: clip; }

/* Fixed header sits below the WP admin bar when logged in. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { position: fixed; } }

/* Readable body copy */
.entry-content { font-size: 1.075rem; line-height: 1.7; color: var(--wcw-ink); }
.entry-content img, .entry-content iframe, .entry-content video { max-width: 100%; height: auto; }
.entry-content iframe { width: 100%; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.75rem; }

/* Content starts a little below the hero */
.hero-image + .container, .hero-image ~ .container { padding-top: 2.5rem; }

/* Header: give it a background whenever the mobile menu is open */
.site-header:has(.navbar-collapse.show),
.site-header:has(.navbar-collapse.collapsing) { background: rgba(0,0,0,.85); }
.navbar-toggler { border-color: rgba(255,255,255,.5); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }

/* Phones */
@media (max-width: 767.98px) {
	.hero-image .display-4 { font-size: 2.2rem; }
	.hero-image .lead { font-size: 1rem; padding: 0 .5rem; }
	.hero-image.hero-page { height: 42vh; min-height: 260px; }
	.site-header .nav-link { padding: .7rem .5rem; font-size: 1.05rem; }
	footer { margin-top: 56px; }
	.site-footer a { display: inline-block; padding: .35rem .25rem; }
}

/* Tablets: the theme's 768px rule clashed with Bootstrap's md breakpoint,
   squashing the menu into a dark two-line box. Show a clean compact bar. */
@media (min-width: 768px) {
	.navbar-expand-md .navbar-collapse { background: transparent !important; padding: 0 !important; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
	body .navbar-logo { width: auto; }
	body .navbar-logo .main-logo { display: none; }
	body .navbar-logo .small-logo { display: block; }
	.site-header .nav-link { font-size: .82rem; padding-left: .5rem !important; padding-right: .5rem !important; white-space: nowrap; }
}

/* Contact Form 7 – fields were fixed-width and ran off phone screens */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"],
.wpcf7 input[type="url"], .wpcf7 input[type="date"], .wpcf7 select, .wpcf7 textarea {
	width: 100%; max-width: 100%; box-sizing: border-box;
	padding: .65rem .8rem; border: 1px solid #ced4da; border-radius: 8px; font-size: 1rem;
	background: #fff;
}
.wpcf7 textarea { min-height: 150px; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus {
	outline: none; border-color: #86b7fe; box-shadow: 0 0 0 .25rem rgba(13,110,253,.2);
}
.wpcf7-form label + br { display: none; }
.wpcf7-form p { margin-bottom: .25rem; }
.wpcf7 .cf-turnstile { margin-bottom: 1rem; }
.wpcf7-response-output { border-radius: 8px; }

/* ---------- What's On ---------- */
.wcw-whats-on { color: var(--wcw-ink); }
.wcw-intro { font-size: 1.15rem; color: var(--wcw-muted); text-align: center; max-width: 40rem; margin: 0 auto 2rem; }

.wcw-month {
	font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
	color: var(--wcw-muted); margin: 1.75rem 0 .75rem; padding-bottom: .4rem; border-bottom: 1px solid var(--wcw-line);
}
.wcw-list-events { display: flex; flex-direction: column; gap: .9rem; }

.wcw-event {
	--wcw-accent: var(--wcw-blue);
	display: flex; gap: 1.1rem; align-items: stretch;
	background: #fff; border: 1px solid var(--wcw-line); border-left: 5px solid var(--wcw-accent);
	border-radius: 12px; padding: 1rem 1.15rem;
	box-shadow: 0 1px 6px rgba(16,24,40,.05);
}
.wcw-type-sunday    { --wcw-accent: #0d6efd; --wcw-tint: #e7f0ff; --wcw-tint-ink: #0b4fb3; }
.wcw-type-bible     { --wcw-accent: #198754; --wcw-tint: #eaf7ef; --wcw-tint-ink: #146c43; }
.wcw-type-special   { --wcw-accent: #e0a100; --wcw-tint: #fff3d6; --wcw-tint-ink: #8a5a00; }
.wcw-type-youth     { --wcw-accent: #d63384; --wcw-tint: #fde8ef; --wcw-tint-ink: #a3294f; }
.wcw-type-community { --wcw-accent: #6f42c1; --wcw-tint: #efe9fb; --wcw-tint-ink: #5b3aa5; }

.wcw-date {
	flex: 0 0 64px; align-self: flex-start; text-align: center; line-height: 1;
	background: var(--wcw-tint, var(--wcw-soft)); border-radius: 10px; padding: 8px 6px 9px;
}
.wcw-date span { display: block; }
.wcw-dow { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--wcw-muted); }
.wcw-day { font-size: 1.75rem; font-weight: 700; margin: 4px 0 3px; color: var(--wcw-ink); }
.wcw-mon { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--wcw-tint-ink, var(--wcw-blue)); }

.wcw-event-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.wcw-type-pill {
	align-self: flex-start; background: var(--wcw-tint, var(--wcw-soft)); color: var(--wcw-tint-ink, var(--wcw-ink));
	border-radius: 999px; padding: 2px 10px; font-size: .74rem; font-weight: 600;
}
.wcw-title { font-size: 1.2rem; font-weight: 650; margin: .15rem 0 0; }
.wcw-when { margin: 0; font-weight: 600; color: var(--wcw-ink); font-size: .98rem; }
.wcw-when .wcw-loc { display: block; font-weight: 400; color: var(--wcw-muted); font-size: .92rem; }
.wcw-sep { color: var(--wcw-muted); margin: 0 .15rem; }
.wcw-desc { margin: .2rem 0 0; font-size: .97rem; line-height: 1.55; }
.wcw-ask { margin-top: .35rem; font-weight: 600; text-decoration: none; font-size: .95rem; }
.wcw-ask:hover { text-decoration: underline; }

@media (max-width: 480px) {
	.wcw-event { gap: .8rem; padding: .85rem .9rem; }
	.wcw-date { flex-basis: 54px; }
	.wcw-day { font-size: 1.5rem; }
	.wcw-title { font-size: 1.1rem; }
}

.wcw-empty { text-align: center; background: var(--wcw-soft); border-radius: var(--wcw-radius); padding: 2rem 1.25rem; }

.wcw-cta {
	margin: 3rem 0 1rem; text-align: center; border-radius: var(--wcw-radius);
	padding: 2.5rem 1.25rem; background: var(--wcw-soft); border: 1px solid var(--wcw-line);
}
.wcw-cta h2 { font-size: 1.6rem; margin: 0 0 .5rem; }
.wcw-cta p { color: var(--wcw-muted); max-width: 34rem; margin: 0 auto 1.25rem; }
.wcw-editor-link { text-align: center; font-size: .85rem; margin-top: 1.5rem; }
.wcw-editor-link a { color: var(--wcw-muted); }

/* ---------- Manage page ---------- */
.wcw-manage { max-width: 760px; margin: 0 auto; }
.wcw-login-card, .wcw-form {
	background: #fff; border: 1px solid var(--wcw-line); border-radius: var(--wcw-radius);
	padding: 1.5rem; box-shadow: 0 2px 10px rgba(16,24,40,.06);
}
.wcw-login-card { max-width: 440px; margin: 0 auto; }
.wcw-login-card h2, .wcw-form h2 { font-size: 1.4rem; margin: 0 0 .5rem; }
.wcw-login-card input[type="text"], .wcw-login-card input[type="password"] {
	width: 100%; padding: .65rem .8rem; border: 1px solid #ced4da; border-radius: 8px; font-size: 1rem;
}
.wcw-login-card label { display: block; font-weight: 600; margin-bottom: .3rem; }
.wcw-login-card .wcw-remember label { font-weight: 400; display: flex; gap: .5rem; align-items: center; }
.wcw-login-card .wcw-submit { background: var(--wcw-blue); color: #fff; border: 0; border-radius: 8px; padding: .7rem 1.4rem; font-weight: 600; width: 100%; font-size: 1rem; }
.wcw-small { font-size: .9rem; margin: .75rem 0 0; }

.wcw-manage-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.wcw-manage-head p { margin: 0; }

.wcw-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 576px) { .wcw-row { grid-template-columns: 1fr 1fr; } .wcw-full { grid-column: 1 / -1; } }
.wcw-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; }
.wcw-form label.wcw-inline { flex-direction: row; align-items: center; font-weight: 400; }
.wcw-form input[type="text"], .wcw-form input[type="date"], .wcw-form input[type="time"],
.wcw-form select, .wcw-form textarea, .wcw-form input[type="file"] {
	width: 100%; padding: .6rem .75rem; border: 1px solid #ced4da; border-radius: 8px; font-size: 1rem; font-weight: 400; background: #fff;
}
.wcw-hint { font-weight: 400; color: var(--wcw-muted); font-size: .88rem; }
.req { color: #d63638; }
.wcw-actions { display: flex; gap: .75rem; margin-top: 1.25rem; }

.wcw-notice { border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1rem; }
.wcw-ok { background: #eaf7ef; color: #146c43; border: 1px solid #b7e1c7; }
.wcw-error { background: #fdecec; color: #a12622; border: 1px solid #f3c1c0; }

.wcw-list-h { font-size: 1.3rem; margin: 2rem 0 .75rem; }
.wcw-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--wcw-line); border-radius: var(--wcw-radius); overflow: hidden; }
.wcw-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .8rem 1rem; border-bottom: 1px solid var(--wcw-line); background: #fff; }
.wcw-list li:last-child { border-bottom: 0; }
.wcw-list li span { color: var(--wcw-muted); font-size: .92rem; }
.wcw-list-actions { display: flex; gap: .4rem; flex-shrink: 0; }

/* Every week strip */
.wcw-regular { background: var(--wcw-soft); border: 1px solid var(--wcw-line); border-radius: var(--wcw-radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.wcw-regular h2, .wcw-coming-h { font-size: 1.35rem; margin: 0 0 .75rem; }
.wcw-coming-h { margin-top: .5rem; }
.wcw-regular ul { list-style: none; margin: 0; padding: 0; }
.wcw-regular li { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; padding: .5rem 0; border-top: 1px solid var(--wcw-line); }
.wcw-regular li:first-child { border-top: 0; }
.wcw-reg-desc { flex-basis: 100%; color: var(--wcw-muted); font-size: .95rem; }


/* ---------- Embeds: videos 16:9, maps squarer (were squashed to 150px tall) ---------- */
.entry-content iframe { height: auto !important; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; display: block; }
.entry-content .wp-block-embed { margin: 0 0 1.75rem; }
.entry-content .wp-block-embed__wrapper { position: static; }
.entry-content .wp-block-webfactory-map iframe,
.entry-content iframe[src*="google.com/maps"] { aspect-ratio: 4 / 3; }
@media (max-width: 767.98px) {
	.entry-content .wp-block-webfactory-map iframe,
	.entry-content iframe[src*="google.com/maps"] { aspect-ratio: 1 / 1; }
}

/* ---------- Page header photo (the hall and congregation) ---------- */
.hero-image.hero-page {
	background-image: url('/wp-content/uploads/2026/09/WhatsApp-Image-2026-06-07-at-13.21.17-1536x964.jpeg');
	background-position: center 78%;
	height: 68vh; min-height: 340px; max-height: 720px;
}
@media (min-width: 1600px) {
	.hero-image.hero-page { background-image: url('/wp-content/uploads/2026/09/WhatsApp-Image-2026-06-07-at-13.21.17.jpeg'); }
}
@media (max-width: 767.98px) {
	.hero-image.hero-page {
		background-image: url('/wp-content/uploads/2026/09/WhatsApp-Image-2026-06-07-at-13.21.17-1024x643.jpeg');
		background-position: center 70%;
		height: 46vh; min-height: 280px;
	}
}
/* Title sits at the bottom over a soft fade, so faces stay clear */
.hero-image.hero-page .content-container {
	align-items: flex-end;
	padding-bottom: clamp(1.1rem, 3.5vw, 2.5rem);
	background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 58%, rgba(0,0,0,.72) 100%);
}
.hero-image.hero-page h1 { margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
@media (max-width: 767.98px) { .hero-image.hero-page h1 { font-size: 2rem; } }

/* ---------- Footer social links ---------- */
.wcw-social { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.wcw-social a {
	display: inline-block; padding: .45rem 1rem; border-radius: 999px; border: 1px solid #ced4da;
	background: #fff; color: var(--wcw-ink); font-weight: 600; font-size: .92rem; text-decoration: none;
}
.wcw-social a:hover, .wcw-social a:focus-visible { background: var(--wcw-blue); border-color: var(--wcw-blue); color: #fff; }
.wcw-follow { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--wcw-muted); margin-bottom: .6rem; }

/* ---------- Cookie choice box ---------- */
.wcw-consent {
	position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto;
	background: #1f2933; color: #fff; border-radius: 14px; padding: 1rem 1.15rem;
	box-shadow: 0 10px 30px rgba(0,0,0,.25); display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center;
}
.wcw-consent[hidden] { display: none; }
.wcw-consent p { margin: 0; flex: 1 1 260px; font-size: .95rem; line-height: 1.45; }
.wcw-consent-btns { display: flex; gap: .5rem; }
.wcw-consent button { border: 0; border-radius: 8px; padding: .55rem 1rem; font-weight: 600; font-size: .95rem; cursor: pointer; }
.wcw-c-yes { background: var(--wcw-blue); color: #fff; }
.wcw-c-no { background: rgba(255,255,255,.15); color: #fff; }
