/*
 * Shepherd DJ site styles.
 * Tokens mirror the Elementor kit (scripts/set-kit.php). Change both together.
 *
 * Accent #EE1C22 is sampled from the logo master (shepherd-dj-logo.png, 1179x704).
 * Contrast, measured 2026-10-07 (WCAG 2.x):
 *   body  #E8E1DF on ground #100D0D 14.99:1   on panel #1A1616 13.90:1
 *   muted #B3A7A5 on ground          8.28:1   on panel          7.68:1
 *   red-text #FF5A5F on ground       6.34:1   on panel          5.88:1   (small red text)
 *   red #EE1C22 on ground            4.44:1   large display text, rules and focus only
 *   white on button #C8141B          5.88:1   hover #A50F15 7.84:1
 * Type scale 1.25 from 17px: 14 17 21 27 33 42 52 65. Spacing: 4 8 12 16 24 32 48 64 96 128.
 */

:root {
	--sdj-ground: #100D0D;
	--sdj-panel: #1A1616;
	--sdj-raised: #241E1E;
	--sdj-line: #3A3030;
	--sdj-muted: #B3A7A5;
	--sdj-body: #E8E1DF;
	--sdj-ink: #F7F3F2;
	--sdj-red: #EE1C22;
	--sdj-red-text: #FF5A5F;
	--sdj-red-btn: #C8141B;
	--sdj-red-hover: #A50F15;
	--sdj-white: #FFFFFF;

	--sdj-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
	--sdj-text: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--sdj-fs-14: 0.8235rem;
	--sdj-fs-17: 1.0625rem;
	--sdj-fs-21: 1.3125rem;
	--sdj-fs-27: 1.6875rem;
	--sdj-fs-33: 2.0625rem;
	--sdj-fs-42: 2.625rem;
	--sdj-fs-52: 3.25rem;
	--sdj-fs-65: 4.0625rem;

	--sdj-radius: 6px;
	--sdj-measure: 68ch;
}

/* ---------------------------------------------------------------- Base */

html { background: var(--sdj-ground); }
body {
	background: var(--sdj-ground);
	color: var(--sdj-body);
	font-family: var(--sdj-text);
	font-size: var(--sdj-fs-17);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body a { color: var(--sdj-red-text); text-underline-offset: 3px; }
body a:hover { color: var(--sdj-ink); }
:focus-visible { outline: 2px solid var(--sdj-red); outline-offset: 3px; }

.elementor-widget-heading .elementor-heading-title,
body h1, body h2, body h3, body h4 {
	font-family: var(--sdj-display);
	font-weight: 800;
	color: var(--sdj-ink);
	line-height: 1.05;
	text-wrap: balance;
	letter-spacing: 0;
}
body h1, .elementor-widget-heading h1.elementor-heading-title { font-size: var(--sdj-fs-65); }
body h2, .elementor-widget-heading h2.elementor-heading-title { font-size: var(--sdj-fs-52); }
body h3, .elementor-widget-heading h3.elementor-heading-title { font-size: var(--sdj-fs-27); line-height: 1.15; }
body h4, .elementor-widget-heading h4.elementor-heading-title { font-size: var(--sdj-fs-21); line-height: 1.2; }

.elementor-widget-text-editor { color: var(--sdj-body); font-size: var(--sdj-fs-17); line-height: 1.6; }
.elementor-widget-text-editor p { margin: 0 0 16px; max-width: var(--sdj-measure); }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
	body h1, .elementor-widget-heading h1.elementor-heading-title { font-size: var(--sdj-fs-42); }
	body h2, .elementor-widget-heading h2.elementor-heading-title { font-size: var(--sdj-fs-33); }
	body h3, .elementor-widget-heading h3.elementor-heading-title { font-size: var(--sdj-fs-21); }
}

/* ---------------------------------------------------------------- Sections */

/* Elementor containers read padding from these custom properties. */
.e-con.sdj-section { --padding-top: 96px; --padding-bottom: 96px; --padding-left: 24px; --padding-right: 24px; }
.e-con.sdj-section--tight { --padding-top: 48px; --padding-bottom: 48px; }
.e-con.sdj-section--panel { background: var(--sdj-panel); border-top: 1px solid var(--sdj-line); border-bottom: 1px solid var(--sdj-line); }
@media (max-width: 767px) {
	.e-con.sdj-section { --padding-top: 48px; --padding-bottom: 48px; --padding-left: 16px; --padding-right: 16px; }
	.e-con.sdj-section--tight { --padding-top: 32px; --padding-bottom: 32px; }
}

/* Closing call to action: ground, set off by a red rule like the one in the logo. */
.e-con.sdj-cta { border-top: 1px solid var(--sdj-line); background: linear-gradient(180deg, rgba(238, 28, 34, 0.08), transparent 70%), var(--sdj-ground); }

/* Hero: the logo mark sits behind the type, low contrast, so the page reads as his brand without a photo. */
.sdj-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(60rem 30rem at 85% -10%, rgba(238, 28, 34, 0.16), transparent 60%),
		var(--sdj-ground);
	border-bottom: 1px solid var(--sdj-line);
}
.sdj-hero::after {
	content: "";
	position: absolute;
	right: -6%;
	bottom: -12%;
	width: min(46vw, 560px);
	aspect-ratio: 1;
	background: var(--sdj-mark, none) center / contain no-repeat;
	opacity: 0.07;
	pointer-events: none;
}
.sdj-hero > * { position: relative; z-index: 1; }

/* Eyebrow label: the red rule echoes the line through the logo. */
.sdj-eyebrow .elementor-heading-title {
	font-family: var(--sdj-text) !important;
	font-size: var(--sdj-fs-14) !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.08em !important;
	color: var(--sdj-red-text) !important;
	line-height: 1.4 !important;
	display: flex;
	align-items: center;
	gap: 12px;
}
.sdj-eyebrow .elementor-heading-title::before {
	content: "";
	width: 32px;
	height: 2px;
	background: var(--sdj-red);
	flex: none;
}

.sdj-lead, .sdj-lead p { font-size: var(--sdj-fs-21) !important; line-height: 1.5 !important; color: var(--sdj-body); }
@media (max-width: 767px) { .sdj-lead, .sdj-lead p { font-size: var(--sdj-fs-17) !important; } }
.sdj-muted, .sdj-muted p { color: var(--sdj-muted) !important; font-size: var(--sdj-fs-14); }

/* ---------------------------------------------------------------- Buttons */

.elementor-button,
.elementor-widget-button .elementor-button {
	font-family: var(--sdj-text);
	font-size: var(--sdj-fs-17);
	font-weight: 700;
	line-height: 1.2;
	padding: 16px 24px;
	border-radius: var(--sdj-radius);
	background-color: var(--sdj-red-btn);
	color: var(--sdj-white);
	border: 2px solid var(--sdj-red-btn);
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.elementor-button:hover, .elementor-button:focus-visible,
.elementor-widget-button .elementor-button:hover {
	background-color: var(--sdj-red-hover);
	border-color: var(--sdj-red-hover);
	color: var(--sdj-white);
}
.sdj-btn-ghost .elementor-button {
	background-color: transparent;
	border-color: var(--sdj-line);
	color: var(--sdj-ink);
}
.sdj-btn-ghost .elementor-button:hover { background-color: var(--sdj-raised); border-color: var(--sdj-muted); color: var(--sdj-ink); }
.sdj-btn-small .elementor-button { padding: 12px 16px; font-size: var(--sdj-fs-14); }

/* ---------------------------------------------------------------- Cards and lists */

.e-con.sdj-card {
	background: var(--sdj-panel);
	border: 1px solid var(--sdj-line);
	border-radius: var(--sdj-radius);
	--padding-top: 32px; --padding-right: 32px; --padding-bottom: 32px; --padding-left: 32px;
}
.sdj-section--panel .e-con.sdj-card { background: var(--sdj-ground); }
@media (max-width: 767px) { .e-con.sdj-card { --padding-top: 24px; --padding-right: 24px; --padding-bottom: 24px; --padding-left: 24px; } }
.sdj-card .elementor-heading-title { margin-bottom: 0; }

.sdj-step-num .elementor-heading-title {
	font-family: var(--sdj-display) !important;
	color: var(--sdj-red) !important;
	font-size: var(--sdj-fs-42) !important;
	line-height: 1 !important;
}

.sdj-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sdj-list li { position: relative; padding-left: 28px; max-width: var(--sdj-measure); }
.sdj-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.72em;
	width: 14px;
	height: 2px;
	background: var(--sdj-red);
}
.sdj-list--cols ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
@media (max-width: 767px) { .sdj-list--cols ul { grid-template-columns: 1fr; } }

.sdj-tags ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sdj-tags li {
	border: 1px solid var(--sdj-line);
	border-radius: var(--sdj-radius);
	padding: 8px 12px;
	font-size: var(--sdj-fs-14);
	font-weight: 600;
	color: var(--sdj-ink);
}

/* Proof strip */
.sdj-proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.sdj-proof__item { padding: 24px; border-left: 1px solid var(--sdj-line); }
.sdj-proof__item:first-child { border-left: 0; padding-left: 0; }
.sdj-proof__big { display: block; font-family: var(--sdj-display); font-weight: 800; font-size: var(--sdj-fs-33); line-height: 1.05; color: var(--sdj-ink); }
.sdj-proof__small { display: block; margin-top: 4px; color: var(--sdj-muted); font-size: var(--sdj-fs-14); }
.sdj-proof a { color: inherit; text-decoration: none; }
.sdj-proof a:hover .sdj-proof__big { color: var(--sdj-red-text); }
@media (max-width: 900px) {
	.sdj-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sdj-proof__item { padding: 16px; border-left: 0; border-top: 1px solid var(--sdj-line); }
	.sdj-proof__item:first-child { padding-left: 16px; }
	.sdj-proof__big { font-size: var(--sdj-fs-27); }
}

/* ---------------------------------------------------------------- Reviews */

.sdj-reviews--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sdj-reviews--stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.sdj-reviews--stack:has(> .sdj-review:only-child) { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
@media (max-width: 1024px) { .sdj-reviews--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .sdj-reviews--grid, .sdj-reviews--stack { grid-template-columns: 1fr; } }

.sdj-review {
	margin: 0;
	background: var(--sdj-panel);
	border: 1px solid var(--sdj-line);
	border-top: 3px solid var(--sdj-red);
	border-radius: var(--sdj-radius);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.sdj-section--panel .sdj-review { background: var(--sdj-ground); }
.sdj-review__stars { color: #F5B301; letter-spacing: 0.08em; font-size: var(--sdj-fs-17); line-height: 1; }
.sdj-review__text { margin: 0; padding: 0; border: 0; font-style: normal; color: var(--sdj-ink); font-size: var(--sdj-fs-17); line-height: 1.6; }
.sdj-review__text p { margin: 0 0 12px; }
.sdj-review__text p:last-child { margin-bottom: 0; }
.sdj-review__by { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.sdj-review__name { font-weight: 700; color: var(--sdj-ink); }
.sdj-review__meta { color: var(--sdj-muted); font-size: var(--sdj-fs-14); }

/* ---------------------------------------------------------------- DJ Intelligence embeds
 * The availability box never posts a height to its parent, so availability_box.js
 * (which listens for one on #ei_cal_iframe) never resizes it. Its content is a fixed
 * 168px at every width from 280 to 1000px (measured 2026-10-07), max 400px wide.
 * The browser's default iframe height is 150px: that is the clipped box on the live site.
 * The embeds paint a white page, so they sit on a white card rather than fighting the dark ground.
 */
.sdj-embed {
	background: var(--sdj-white);
	border-radius: var(--sdj-radius);
	overflow: hidden;
	box-shadow: 0 0 0 1px var(--sdj-line);
}
.sdj-embed iframe { display: block; width: 100%; border: 0; background: var(--sdj-white); }
.sdj-embed--avail { max-width: 432px; padding: 16px; }
/* The box needs about 300px (its selects clip below that), so give it the width on phones. */
@media (max-width: 767px) {
	.sdj-embed--avail { padding: 0; margin-left: -12px; margin-right: -12px; border-radius: 0; }
	.e-con.sdj-avail-card { --padding-left: 12px; --padding-right: 12px; --padding-top: 20px; --padding-bottom: 20px; }
}
.sdj-embed--avail iframe { height: 176px; max-width: 400px; margin: 0 auto; }
.sdj-embed--msg iframe { height: 820px; }
.sdj-embed--guest iframe { height: 640px; }
.sdj-embed-note { margin-top: 12px; color: var(--sdj-muted); font-size: var(--sdj-fs-14); }
.sdj-embed-note a { color: var(--sdj-red-text); }

/* Availability card on the hero */
.e-con.sdj-avail-card {
	background: var(--sdj-panel);
	border: 1px solid var(--sdj-line);
	border-top: 3px solid var(--sdj-red);
	border-radius: var(--sdj-radius);
	--padding-top: 24px; --padding-right: 24px; --padding-bottom: 24px; --padding-left: 24px;
}
.sdj-avail-title .elementor-heading-title { font-size: var(--sdj-fs-33) !important; }
.sdj-hero { --sdj-mark: url("/wp-content/uploads/2026/10/shepherd-dj-mark-reversed.png"); }

/* ---------------------------------------------------------------- Link tiles (client tools) */

.sdj-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .sdj-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sdj-tiles { grid-template-columns: 1fr; } }
.sdj-tile {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 24px;
	background: var(--sdj-panel);
	border: 1px solid var(--sdj-line);
	border-radius: var(--sdj-radius);
	text-decoration: none !important;
	color: var(--sdj-body) !important;
	transition: border-color .15s ease;
}
.sdj-tile:hover { border-color: var(--sdj-red); }
.sdj-tile strong { font-family: var(--sdj-display); font-weight: 800; font-size: var(--sdj-fs-27); color: var(--sdj-ink); line-height: 1.1; }
.sdj-tile span { color: var(--sdj-muted); font-size: var(--sdj-fs-14); }

/* ---------------------------------------------------------------- Photo */

.sdj-photo img { border-radius: var(--sdj-radius); width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 5; }

/* ---------------------------------------------------------------- Header */

.sdj-topbar { background: var(--sdj-ground); border-bottom: 1px solid var(--sdj-line); font-size: var(--sdj-fs-14); }
.sdj-topbar a { color: var(--sdj-muted); text-decoration: none; }
.sdj-topbar a:hover { color: var(--sdj-ink); }
.sdj-topbar .sdj-topbar__row { display: flex; justify-content: flex-end; gap: 24px; padding: 8px 0; }

.sdj-header { background: rgba(16, 13, 13, 0.96); border-bottom: 1px solid var(--sdj-line); }
/* The logo widget must not shrink in the flex row, or it collapses to zero width. Logo is 1179x704. */
.sdj-header .sdj-logo { flex: 0 0 auto; width: 140px; }
.sdj-header .sdj-logo img { display: block; width: 140px; height: auto; }
@media (max-width: 767px) {
	.sdj-header .sdj-logo { width: 96px; }
	.sdj-header .sdj-logo img { width: 96px; }
}

.e-con.sdj-header { --flex-wrap: nowrap; }
.e-con.sdj-nav { --width: auto; --flex-wrap: nowrap; flex: 1 1 auto; min-width: 0; }
.sdj-header .sdj-header-cta { flex: none; }
@media (max-width: 1024px) { .sdj-header .sdj-header-cta { order: -1; } }
@media (max-width: 1024px) { .e-con.sdj-nav { --gap: 8px; --column-gap: 8px; } }
.sdj-header .elementor-nav-menu--main .elementor-item {
	font-family: var(--sdj-text);
	font-weight: 600;
	font-size: var(--sdj-fs-17);
	color: var(--sdj-body);
	padding: 12px 12px;
}
.sdj-header .elementor-nav-menu--main .elementor-item:hover,
.sdj-header .elementor-nav-menu--main .elementor-item.elementor-item-active { color: var(--sdj-ink); }
.sdj-header .elementor-nav-menu--main .elementor-item::after { background-color: var(--sdj-red) !important; height: 2px !important; }
.sdj-header .elementor-menu-toggle { color: var(--sdj-ink); background: transparent; font-size: 28px; }
.sdj-header .elementor-menu-toggle svg { fill: var(--sdj-ink); }
.sdj-header .elementor-nav-menu--dropdown { background: var(--sdj-panel); border-top: 1px solid var(--sdj-line); }
.sdj-header .elementor-nav-menu--dropdown .elementor-item { color: var(--sdj-ink); font-weight: 600; padding: 16px 24px; }
.sdj-header .elementor-nav-menu--dropdown .elementor-item:hover,
.sdj-header .elementor-nav-menu--dropdown .elementor-item.elementor-item-active { background: var(--sdj-raised); color: var(--sdj-ink); }

/* ---------------------------------------------------------------- Footer */

.sdj-footer { background: #0A0808; border-top: 1px solid var(--sdj-line); color: var(--sdj-muted); }
.sdj-footer .elementor-heading-title { font-family: var(--sdj-text) !important; font-size: var(--sdj-fs-14) !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: 0.08em !important; color: var(--sdj-ink) !important; }
.sdj-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sdj-footer a { color: var(--sdj-body); text-decoration: none; }
.sdj-footer a:hover { color: var(--sdj-red-text); text-decoration: underline; }
.sdj-footer p { margin: 0 0 8px; }
.sdj-footer .sdj-footer__legal { border-top: 1px solid var(--sdj-line); font-size: var(--sdj-fs-14); }
.sdj-footer .sdj-footer__legal a { color: var(--sdj-muted); }

/* Trustindex widget: keep its own look, just give it room on the dark ground. */
.e-con.sdj-trustindex { background: var(--sdj-white); border-radius: var(--sdj-radius); --padding-top: 24px; --padding-right: 24px; --padding-bottom: 24px; --padding-left: 24px; }

/* Elementor's default top margin on the last widget gap, and the hello-elementor page title */
.page-header .entry-title { display: none; }

/* Long-form text (privacy policy) */
.sdj-prose h2 { font-size: var(--sdj-fs-27) !important; margin: 48px 0 12px; line-height: 1.15; }
.sdj-prose h2:first-of-type { margin-top: 24px; }
