/* DSP Theme - Supplemental Styles */

/* === FORCED TYPOGRAPHY === */
body, p, li, blockquote {
	font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.wp-block-site-title a,
.wp-block-site-title,
.wp-block-button__link,
.wp-element-button {
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}

/* === FORCED BUTTON COLORS === */
.wp-block-button .wp-block-button__link.has-primary-background-color,
.wp-element-button.has-primary-background-color,
.has-primary-background-color {
	background-color: #05c688 !important;
}

.wp-block-button .wp-block-button__link.has-primary-background-color:hover,
.wp-element-button.has-primary-background-color:hover {
	background-color: #04a874 !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent !important;
	border: 2px solid #26282B !important;
	color: #26282B !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: #26282B !important;
	color: #ffffff !important;
}

/* === BASE === */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a { transition: opacity 150ms ease; }
a:hover { opacity: 0.85; }
:focus-visible { outline: 2px solid #05c688; outline-offset: 3px; }

/* === MANIFESTO PAGE === */
.dsp-hero-section,
.dsp-body-section,
.dsp-cta-section,
.dsp-signoff-section {
	padding-top: clamp(3rem, 8vw, 5rem);
	padding-bottom: clamp(3rem, 8vw, 5rem);
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.dsp-signoff-section { padding-top: 2.5rem; padding-bottom: 4rem; }

.dsp-hero-title { letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 1rem; }
.dsp-hero-subtitle { font-size: 1.25rem; font-weight: 600; line-height: 1.5; margin-bottom: 1rem; }
.dsp-hero-byline { font-size: 1rem; margin: 0; }

.dsp-body-section { font-size: 1.0625rem; line-height: 1.7; }
.dsp-body-section > * + * { margin-top: 1.25rem; }
.dsp-body-section h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.dsp-body-section h3 { font-size: 1.4rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.dsp-body-section ul { padding-left: 1.5rem; }
.dsp-body-section li { margin-bottom: 0.5rem; }
.dsp-body-section blockquote { border-left: 3px solid #05c688; padding-left: 1.25rem; margin: 1.5rem 0; font-style: italic; }
.dsp-body-section hr { margin: 2.5rem auto; border: 0; height: 1px; background: #A8A8A8; max-width: 100px; }

.dsp-callout-tagline { font-size: 1.25rem; font-weight: 700; line-height: 1.4; margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.dsp-callout-belief { font-size: 1.75rem; font-weight: 700; line-height: 1.2; color: #05c688; margin-top: 1rem !important; margin-bottom: 1.5rem !important; }
.dsp-callout-line { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-align: center; color: #05c688; margin-top: 2rem !important; margin-bottom: 2rem !important; }

.dsp-cta-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.5rem; }
.dsp-cta-section > p { font-size: 1.0625rem; line-height: 1.65; margin-bottom: 1rem; }
.dsp-cta-pitch { margin-top: 1.5rem; }
.dsp-cta-tagline { font-weight: 600; margin-bottom: 2rem !important; }
.dsp-cta-section .wp-block-buttons { margin-top: 2rem; }

.dsp-signoff-name { font-size: 1rem; font-weight: 700; color: #26282B; margin-bottom: 0.25rem !important; }
.dsp-signoff-title { font-size: 0.9rem; font-style: italic; color: #808182; margin: 0 auto !important; }  /* v0.1.58: 'auto' on left/right so .is-layout-constrained centering works. Bug since pre-v0.1.55. */


/* === AS FEATURED IN BAND (homepage) === */
.dsp-press-band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2.5rem 2.75rem;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1rem;
}
.dsp-press-band img {
	height: 48px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
	opacity: 0.78;
	filter: saturate(0.92);
	transition: opacity 0.2s ease, filter 0.2s ease;
	display: block;
}
.dsp-press-band img:hover {
	opacity: 1;
	filter: saturate(1);
}
/* CBC oval is taller than the wordmark logos — let it run a touch larger so it reads */
.dsp-press-band img[alt="Craft Brewers Conference"] { height: 62px; }
/* Bar & Restaurant Expo is a circle — give it a bit more room */
.dsp-press-band img[alt="Bar & Restaurant Expo"] { height: 56px; }

@media (max-width: 768px) {
	.dsp-press-band { gap: 1.75rem 2rem; }
	.dsp-press-band img { height: 38px; max-width: 130px; }
	.dsp-press-band img[alt="Craft Brewers Conference"] { height: 50px; }
	.dsp-press-band img[alt="Bar & Restaurant Expo"] { height: 44px; }
}

/* === HEADER & NAVIGATION === */
/* Two-row header on desktop; collapses to logo + hamburger drawer on mobile. */
/* Pure CSS using hidden-checkbox/label pattern — no JS dependency. */

.dsp-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #ffffff;
	border-bottom: 1px solid #F0F0F0;
	font-family: Montserrat, sans-serif;
}

.dsp-menu-toggle-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.dsp-header-row {
	width: 100%;
}

.dsp-header-row--top {
	padding: 1rem var(--wp--preset--spacing--40, 1.5rem);
}

.dsp-header-row--nav {
	padding: 0 var(--wp--preset--spacing--40, 1.5rem);
	border-top: 1px solid #F0F0F0;
}

.dsp-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	gap: 1.5rem;
}

.dsp-header-logo img {
	display: block;
	height: auto;
	max-height: 48px;
	width: auto;
}

.dsp-header-actions {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.dsp-member-login {
	font-size: 0.85rem;
	font-weight: 600;
	color: #444;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.15s;
}
.dsp-member-login:hover {
	color: #05c688;
}

.dsp-cta-button {
	display: inline-block;
	background: #05c688;
	color: #ffffff !important;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 0.65rem 1.25rem;
	border-radius: 4px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s;
}
.dsp-cta-button:hover {
	background: #04a872;
}

/* Hamburger — hidden on desktop, visible on mobile */
.dsp-hamburger {
	display: none;
	width: 44px;
	height: 44px;
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	margin-left: auto;
	background: transparent;
	border: none;
	-webkit-tap-highlight-color: rgba(0,0,0,0.1);
}
.dsp-hamburger-bar {
	width: 26px;
	height: 2px;
	background: #111;
	border-radius: 1px;
	transition: transform 0.25s, opacity 0.25s;
}

/* Nav row — desktop layout */
.dsp-header-nav-inner {
	justify-content: center;
}
.dsp-nav-list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0.75rem 0;
	gap: 2rem;
}
.dsp-nav-list li {
	margin: 0;
}
.dsp-nav-list a {
	font-size: 0.95rem;
	font-weight: 600;
	color: #1a1a1a;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.15s;
}
.dsp-nav-list a:hover {
	color: #05c688;
}

/* Mobile-only items hidden on desktop */
.dsp-nav-mobile-only {
	display: none;
}

/* Backdrop — invisible on desktop, full-screen overlay on mobile when open */
.dsp-menu-backdrop {
	display: none;
}

/* === MOBILE BREAKPOINT === */
@media (max-width: 1023px) {

	.dsp-header-row--top {
		padding: 0.75rem 1rem;
	}

	/* Hide desktop actions, show hamburger */
	.dsp-header-actions {
		display: none;
	}
	.dsp-hamburger {
		display: flex;
	}

	/* Nav row becomes a slide-down drawer */
	.dsp-header-row--nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #ffffff;
		border-top: 1px solid #F0F0F0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease-out;
		padding: 0;
		z-index: 999; /* MUST sit above .dsp-menu-backdrop (z-index:998) so mobile menu items receive taps. Bug fix v0.1.56. */
	}
	.dsp-nav-list {
		flex-direction: column;
		padding: 0.5rem 1rem 1.5rem;
		gap: 0;
		align-items: stretch;
	}
	.dsp-nav-list li {
		border-bottom: 1px solid #F4F4F4;
	}
	.dsp-nav-list li:last-child {
		border-bottom: none;
	}
	.dsp-nav-list a {
		display: block;
		padding: 1rem 0.25rem;
		font-size: 1rem;
	}

	.dsp-nav-mobile-only {
		display: block;
	}

	/* CTA inside the drawer — prominent button at the top */
	.dsp-nav-cta-mobile {
		order: -1;
		border-bottom: none;
		padding-bottom: 0.75rem;
		margin-bottom: 0.5rem;
	}
	.dsp-cta-button--mobile {
		display: block;
		text-align: center;
		padding: 0.85rem 1.25rem;
		font-size: 1rem;
	}

	/* Backdrop overlay */
	.dsp-menu-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0);
		pointer-events: none;
		transition: background 0.3s;
		z-index: -1;
	}

	/* === OPEN STATE === */
	.dsp-menu-toggle-input:checked ~ .dsp-header-row--nav {
		max-height: 80vh;
		overflow-y: auto;
	}
	.dsp-menu-toggle-input:checked ~ .dsp-menu-backdrop {
		background: rgba(0, 0, 0, 0.4);
		pointer-events: auto;
		z-index: 998;
	}

	/* Hamburger transforms to X when open */
	.dsp-menu-toggle-input:checked ~ .dsp-header-row--top .dsp-hamburger .dsp-hamburger-bar:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}
	.dsp-menu-toggle-input:checked ~ .dsp-header-row--top .dsp-hamburger .dsp-hamburger-bar:nth-child(2) {
		opacity: 0;
	}
	.dsp-menu-toggle-input:checked ~ .dsp-header-row--top .dsp-hamburger .dsp-hamburger-bar:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
}

/* Body scroll lock when mobile menu is open — modern browsers via :has() */
@media (max-width: 1023px) {
	body:has(.dsp-menu-toggle-input:checked) {
		overflow: hidden;
	}
}


/* === MANIFESTO AUTHOR SIGNOFF — alignment fix (v0.1.54) === */
/* WP's constrained-layout class wasn't getting added to the server-rendered
   wp:block-group for this section, so the contentSize:640px wasn't being
   applied. Force max-width + centered paragraphs explicitly. */
.dsp-author-signoff {
	max-width: 640px;
	margin-left: auto !important;
	margin-right: auto !important;
	text-align: center !important; /* parent fallback so any child p without inline style still centers */
}
.dsp-author-signoff p,
.dsp-author-signoff p.has-text-align-center {
	text-align: center !important;
}


/* === VIDEO FRAMES (placeholders + eventual Vimeo embeds) === */
.dsp-video-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: #1a1a1a;
}
.dsp-video-frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.dsp-video-frame--placeholder {
	background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
	border: 2px dashed rgba(255, 255, 255, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
}
.dsp-video-frame--placeholder .dsp-video-frame__inner {
	text-align: center;
	padding: 1.5rem;
	color: #ffffff;
}
.dsp-video-play-icon {
	font-size: 3rem;
	color: rgba(5, 198, 136, 0.7);
	margin-bottom: 0.75rem;
	line-height: 1;
}
.dsp-video-frame__label {
	font-family: Montserrat, sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 0.4rem;
}
.dsp-video-frame__hint {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
	font-style: italic;
}

/* === MEMBER TESTIMONIAL AVATARS (v0.1.61) === */
.dsp-testimonial-attribution {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	margin-top: 1.5rem;
}
.dsp-testimonial-avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: #f4f4f4;
}
.dsp-testimonial-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.dsp-testimonial-avatar--initials {
	background: #05c688;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	font-size: 1.0625rem;
	letter-spacing: -0.01em;
}
.dsp-testimonial-name {
	flex: 1;
	min-width: 0;
	font-family: inherit;
	font-size: 0.875rem;
}
.dsp-testimonial-name strong {
	color: #26282B;
	font-weight: 700;
}
.dsp-testimonial-name .dsp-testimonial-role {
	font-weight: 400;
	color: #808182;
}

/* J&B featured case study photo */
.dsp-case-study-photo {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 1.5rem;
	background: #f4f4f4;
}
.dsp-case-study-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

