/* ==========================================================================
   BeJelly — design system
   --------------------------------------------------------------------------
   Two jobs:
     A. Site chrome rendered by the theme (header.php / footer.php).
     B. Typography + detail styling for the Elementor page content, hooked
        via `bj-*` classes set on WIDGETS.

   Why widgets and not containers: Elementor keeps CSS classes on widgets but
   strips them from container elements when a page is saved. So every box-level
   decision (background, padding, width, gap, border) is set as a NATIVE
   Elementor container setting in the template JSON, and everything typographic
   is done here. Don't move box styling into this file expecting a container
   class to hold it — it won't survive a save.

   `!important` appears on type rules on purpose: Elementor's global Kit
   (Site Settings → Typography) otherwise outranks theme CSS on widget text.
   ========================================================================== */


/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
	/* Surfaces */
	--bj-cream:          #F7F3EA;  /* page bg, hero, About, Work */
	--bj-cream-alt:      #F1EBDD;  /* What I Do, Contact, card hover */
	--bj-cream-disc:     #EAE3D3;  /* photo backdrop, logo disc */
	--bj-cream-mark:     #EBE4D4;  /* oversized hero "B." */

	/* Brand */
	--bj-plum:           #3B1338;  /* headings, dark bands, buttons */
	--bj-plum-hover:     #571E51;  /* button hover */
	--bj-plum-mid:       #5D2856;  /* "B." on the plum band */

	/* Text */
	--bj-ink:            #3A342E;  /* body default */
	--bj-ink-body:       #4A443C;  /* paragraphs */
	--bj-nav-ink:        #6B6357;  /* nav links */
	--bj-muted:          #6F6455;  /* mono eyebrows — darkened from #8A7F70 for contrast at 11px */
	--bj-muted-light:    #95897A;  /* small captions */
	--bj-number:         #B0A48F;  /* service numerals */

	/* Lines */
	--bj-hairline:       #E3DBCB;  /* section rules on cream */
	--bj-hairline-alt:   #DCD3C2;  /* rows in What I Do */
	--bj-rule-lockup:    #D5C9C4;  /* header lockup divider */
	--bj-link-underline: #CFC4B2;

	/* Forms */
	--bj-input-border:   #D8CFBD;
	--bj-input-bg:       #FBF8F1;

	/* On plum */
	--bj-on-plum:        #F2EDE1;
	--bj-on-plum-alt:    #EDE3EB;
	--bj-on-plum-muted:  #BE9EB9;
	--bj-on-plum-bullet: #A87FA2;
	--bj-on-plum-foot:   #DCCDDA;
	--bj-rule-on-plum:   rgba(242, 237, 225, 0.2);

	/* Type */
	--bj-display: "Cormorant Garamond", Georgia, serif;
	--bj-ui:      "Karla", system-ui, -apple-system, sans-serif;
	--bj-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
	--bj-logo:    "Alove", "Cormorant Garamond", Georgia, serif;

	/* Geometry */
	--bj-container: 1200px;
	--bj-gutter:    48px;
}


/* ==========================================================================
   2. BASE
   ========================================================================== */

html {
	scroll-behavior: smooth;
	/* Keep anchor targets clear of the sticky header. */
	scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	background-color: var(--bj-cream);
	color: var(--bj-ink);
	font-family: var(--bj-ui);
	font-size: 17px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection {
	background: #E5D9E4;
	color: var(--bj-plum);
}

/* Visible focus that reads on both cream and plum. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.elementor-button:focus-visible {
	outline: 2px solid var(--bj-plum);
	outline-offset: 3px;
	border-radius: 2px;
}

.bj-footer a:focus-visible,
.bj-proof-band a:focus-visible {
	outline-color: var(--bj-on-plum);
}

.bj-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
}

.bj-skip-link:focus {
	left: 16px;
	top: 16px;
	width: auto;
	height: auto;
	padding: 12px 20px;
	background: var(--bj-plum);
	color: var(--bj-cream);
	font-family: var(--bj-ui);
	font-size: 14px;
	text-decoration: none;
	border-radius: 2px;
}


/* ==========================================================================
   3. HEADER (theme-rendered, sticky)
   ========================================================================== */

.bj-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(247, 243, 234, 0.94);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--bj-hairline);
}

.bj-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: var(--bj-container);
	margin: 0 auto;
	padding: 16px var(--bj-gutter);
}

/* — Logo lockup — */
.bj-lockup {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}

.bj-lockup-mark {
	font-family: var(--bj-logo);
	font-size: 34px;
	line-height: 1;
	color: var(--bj-plum);
}

.bj-lockup-rule {
	display: block;
	width: 1px;
	height: 22px;
	background: var(--bj-rule-lockup);
}

.bj-lockup-word {
	font-family: var(--bj-ui);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.26em;
	/* Trailing tracking would otherwise push the word optically left. */
	padding-left: 0.26em;
	text-transform: uppercase;
	color: var(--bj-plum);
}

/* — Nav — */
.bj-nav {
	display: flex;
	align-items: center;
	gap: 34px;
}

.bj-nav-list {
	display: flex;
	align-items: center;
	gap: 34px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bj-nav-list li { margin: 0; }

.bj-nav-list a {
	font-family: var(--bj-ui);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.1em;
	padding-left: 0.1em;
	text-transform: uppercase;
	color: var(--bj-nav-ink);
	text-decoration: none;
	transition: color 150ms ease;
}

.bj-nav-list a:hover { color: var(--bj-plum); }

.bj-nav-cta {
	font-family: var(--bj-ui);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	padding: 11px 24px 11px calc(24px + 0.1em);
	text-transform: uppercase;
	color: var(--bj-plum);
	background: transparent;
	border: 1px solid var(--bj-plum);
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 150ms ease, color 150ms ease;
}

.bj-nav-cta:hover {
	background: var(--bj-plum);
	color: var(--bj-cream);
}


/* ==========================================================================
   4. FOOTER (theme-rendered)
   ========================================================================== */

.bj-footer {
	background: var(--bj-plum);
	color: var(--bj-on-plum);
}

.bj-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: var(--bj-container);
	margin: 0 auto;
	padding: 38px var(--bj-gutter);
}

.bj-footer-left {
	display: inline-flex;
	align-items: center;
	gap: 16px;
}

.bj-footer-mark {
	font-family: var(--bj-logo);
	font-size: 30px;
	line-height: 1;
	color: var(--bj-on-plum);
}

.bj-footer-word,
.bj-footer-right {
	font-family: var(--bj-mono);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.2em;
	padding-left: 0.2em;
	text-transform: uppercase;
	color: var(--bj-on-plum-foot);
}


/* ==========================================================================
   5. ELEMENTOR CONTENT — shared type primitives
   --------------------------------------------------------------------------
   These classes are set on widgets in the template JSON.
   ========================================================================== */

/* Elementor's own wrappers shouldn't add margins we didn't ask for —
   container flex gaps own the vertical rhythm, not the browser's default
   paragraph and heading margins. */
.bj-eyebrow .elementor-heading-title,
.bj-h2 .elementor-heading-title,
.bj-hero-h1 .elementor-heading-title {
	margin: 0;
}

.bj-hero-lede p:first-child,
.bj-body p:first-child,
.bj-svc-desc p:first-child,
.bj-work-desc p:first-child,
.bj-contact-p p:first-child,
.bj-proof-list ul {
	margin-top: 0;
}

/* — Mono eyebrow: "01 — About" — */
.bj-eyebrow,
.bj-eyebrow .elementor-heading-title {
	font-family: var(--bj-mono) !important;
	font-size: 11px !important;
	font-weight: 400 !important;
	line-height: 1.6 !important;
	letter-spacing: 0.3em !important;
	/* Matching left padding keeps tracked text optically aligned. */
	padding-left: 0.3em;
	text-transform: uppercase !important;
	color: var(--bj-muted) !important;
}

/* — Section h2 — */
.bj-h2,
.bj-h2 .elementor-heading-title {
	font-family: var(--bj-display) !important;
	font-size: 56px !important;
	font-weight: 300 !important;
	line-height: 1.04 !important;
	letter-spacing: -0.01em !important;
	color: var(--bj-plum) !important;
	text-wrap: balance;
}

/* — Body paragraph — */
.bj-body,
.bj-body p {
	font-family: var(--bj-ui) !important;
	font-size: 17px !important;
	font-weight: 400 !important;
	line-height: 1.75 !important;
	color: var(--bj-ink-body) !important;
}

.bj-body p:last-child { margin-bottom: 0; }

/* — Small mono caption — */
.bj-caption,
.bj-caption .elementor-heading-title {
	font-family: var(--bj-mono) !important;
	font-size: 10px !important;
	font-weight: 400 !important;
	letter-spacing: 0.22em !important;
	padding-left: 0.22em;
	text-transform: uppercase !important;
	color: var(--bj-muted-light) !important;
}

/* — The "B." mark, wherever it appears in content — */
.bj-mark,
.bj-mark .elementor-heading-title {
	font-family: var(--bj-logo) !important;
	font-weight: 400 !important;
	-webkit-user-select: none;
	user-select: none;
}

/* — Buttons —
   Widgets stretch to fill a flex row by default; these two need to sit
   side by side at their own width. Done on the widget class rather than
   Elementor's width control so it can't be lost in the editor. */
.bj-btn,
.bj-link {
	width: auto !important;
	flex: 0 0 auto !important;
}

.bj-btn .elementor-button {
	font-family: var(--bj-ui) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	letter-spacing: 0.14em !important;
	padding: 17px 38px 17px calc(38px + 0.14em) !important;
	text-transform: uppercase !important;
	color: var(--bj-cream) !important;
	background-color: var(--bj-plum) !important;
	border: 0 !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	transition: background-color 150ms ease !important;
}

.bj-btn .elementor-button:hover,
.bj-btn .elementor-button:focus {
	background-color: var(--bj-plum-hover) !important;
}

/* — Underlined text link ("See the work") — */
.bj-link .elementor-button {
	font-family: var(--bj-ui) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	color: var(--bj-nav-ink) !important;
	background: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid var(--bj-link-underline) !important;
	border-radius: 0 !important;
	padding: 4px 0 !important;
	box-shadow: none !important;
	transition: color 150ms ease, border-color 150ms ease !important;
}

.bj-link .elementor-button:hover,
.bj-link .elementor-button:focus {
	color: var(--bj-plum) !important;
	border-bottom-color: var(--bj-plum) !important;
}


/* ==========================================================================
   6. HERO
   ========================================================================== */

.bj-hero-h1,
.bj-hero-h1 .elementor-heading-title {
	font-family: var(--bj-display) !important;
	font-size: 104px !important;
	font-weight: 300 !important;
	line-height: 0.98 !important;
	letter-spacing: -0.015em !important;
	color: var(--bj-plum) !important;
	text-wrap: balance;
}

/* The emphasised closing words. */
.bj-hero-h1 em {
	font-weight: 400;
	font-style: italic;
}

.bj-hero-lede,
.bj-hero-lede p {
	font-family: var(--bj-ui) !important;
	font-size: 19px !important;
	font-weight: 400 !important;
	line-height: 1.7 !important;
	color: var(--bj-ink-body) !important;
	max-width: 30em;
}

.bj-hero-lede p:last-child { margin-bottom: 0; }

/* Oversized watermark "B." — decorative type, not an image. */
.bj-watermark,
.bj-watermark .elementor-heading-title {
	font-family: var(--bj-logo) !important;
	font-size: 230px !important;
	font-weight: 400 !important;
	line-height: 0.62 !important;
	color: var(--bj-cream-mark) !important;
	-webkit-user-select: none;
	user-select: none;
	pointer-events: none;
}

/* — Stats bar — */
.bj-stat-num,
.bj-stat-num .elementor-heading-title {
	font-family: var(--bj-display) !important;
	font-size: 46px !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	color: var(--bj-plum) !important;
}

.bj-stat-cap,
.bj-stat-cap .elementor-heading-title {
	font-family: var(--bj-mono) !important;
	font-size: 10px !important;
	font-weight: 400 !important;
	line-height: 1.7 !important;
	letter-spacing: 0.2em !important;
	padding-left: 0.2em;
	text-transform: uppercase !important;
	color: var(--bj-muted) !important;
}


/* ==========================================================================
   7. ABOUT
   ========================================================================== */

/* Arch-topped portrait on a cream disc. */
.bj-portrait img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 18%;
	background: var(--bj-cream-disc);
	border-radius: 180px 180px 3px 3px;
}

.bj-about-lead,
.bj-about-lead .elementor-heading-title {
	font-family: var(--bj-display) !important;
	font-size: 40px !important;
	font-weight: 300 !important;
	line-height: 1.28 !important;
	letter-spacing: -0.01em !important;
	color: var(--bj-plum) !important;
	text-wrap: balance;
}


/* ==========================================================================
   8. WHAT I DO
   ========================================================================== */

.bj-svc-num,
.bj-svc-num .elementor-heading-title {
	font-family: var(--bj-display) !important;
	font-size: 24px !important;
	font-weight: 400 !important;
	line-height: 1.3 !important;
	color: var(--bj-number) !important;
}

.bj-svc-title,
.bj-svc-title .elementor-heading-title {
	font-family: var(--bj-display) !important;
	font-size: 34px !important;
	font-weight: 400 !important;
	line-height: 1.15 !important;
	color: var(--bj-plum) !important;
}

.bj-svc-desc,
.bj-svc-desc p {
	font-family: var(--bj-ui) !important;
	font-size: 17px !important;
	font-weight: 400 !important;
	line-height: 1.7 !important;
	color: var(--bj-ink-body) !important;
	margin-bottom: 0 !important;
}


/* ==========================================================================
   9. PROOF (plum band)
   ========================================================================== */

.bj-proof-eyebrow,
.bj-proof-eyebrow .elementor-heading-title {
	font-family: var(--bj-mono) !important;
	font-size: 11px !important;
	font-weight: 400 !important;
	letter-spacing: 0.3em !important;
	padding-left: 0.3em;
	text-transform: uppercase !important;
	color: var(--bj-on-plum-muted) !important;
}

.bj-proof-h2,
.bj-proof-h2 .elementor-heading-title {
	font-family: var(--bj-display) !important;
	font-size: 52px !important;
	font-weight: 300 !important;
	line-height: 1.04 !important;
	color: var(--bj-cream) !important;
}

.bj-proof-mark,
.bj-proof-mark .elementor-heading-title {
	font-family: var(--bj-logo) !important;
	font-size: 76px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	color: var(--bj-plum-mid) !important;
	-webkit-user-select: none;
	user-select: none;
}

/* Two-column list with diamond bullets and hairline rules. */
.bj-proof-list ul {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 64px;
	row-gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bj-proof-list li {
	position: relative;
	margin: 0;
	padding: 20px 0 20px 26px;
	border-bottom: 1px solid var(--bj-rule-on-plum);
	font-family: var(--bj-ui) !important;
	font-size: 17px !important;
	font-weight: 400 !important;
	line-height: 1.6 !important;
	color: var(--bj-on-plum-alt) !important;
	list-style: none;
}

.bj-proof-list li::before {
	content: "\25C6"; /* ◆ */
	position: absolute;
	left: 0;
	top: 22px;
	font-family: var(--bj-mono);
	font-size: 10px;
	line-height: 1.6;
	color: var(--bj-on-plum-bullet);
}


/* ==========================================================================
   10. WORK
   --------------------------------------------------------------------------
   Cards read as hairline-divided cells. The 1px rules are native container
   border settings in the template JSON (top + left on each card, right +
   bottom on the grid wrapper) — nothing to do here but the type.
   ========================================================================== */

.bj-kicker,
.bj-kicker .elementor-heading-title {
	font-family: var(--bj-mono) !important;
	font-size: 10px !important;
	font-weight: 400 !important;
	letter-spacing: 0.22em !important;
	padding-left: 0.22em;
	text-transform: uppercase !important;
	color: var(--bj-muted) !important;
}

.bj-work-title,
.bj-work-title .elementor-heading-title {
	font-family: var(--bj-display) !important;
	font-size: 32px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	color: var(--bj-plum) !important;
}

.bj-work-desc,
.bj-work-desc p {
	font-family: var(--bj-ui) !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.7 !important;
	color: var(--bj-ink-body) !important;
	margin-bottom: 0 !important;
}

/* Card hover (#F7F3EA → #F1EBDD) is a native container hover-background
   setting in the template JSON, so there is nothing to hook here. */


/* ==========================================================================
   11. CONTACT FORM
   --------------------------------------------------------------------------
   Plain HTML posted to FormSubmit — no form plugin. Lives in an Elementor
   HTML widget so it can be moved around the layout like any other widget.
   ========================================================================== */

.bj-contact-h2,
.bj-contact-h2 .elementor-heading-title {
	font-family: var(--bj-display) !important;
	font-size: 64px !important;
	font-weight: 300 !important;
	line-height: 1.02 !important;
	letter-spacing: -0.015em !important;
	color: var(--bj-plum) !important;
	text-wrap: balance;
}

.bj-contact-p,
.bj-contact-p p {
	font-family: var(--bj-ui) !important;
	font-size: 17px !important;
	line-height: 1.75 !important;
	color: var(--bj-ink-body) !important;
	max-width: 24em;
	margin-bottom: 0 !important;
}

.bj-form form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.bj-form .bj-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bj-form .bj-field--full {
	grid-column: 1 / -1;
}

.bj-form label {
	font-family: var(--bj-mono);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.2em;
	padding-left: 0.2em;
	text-transform: uppercase;
	color: var(--bj-muted);
}

.bj-form input[type="text"],
.bj-form input[type="email"],
.bj-form textarea {
	width: 100%;
	padding: 16px 18px;
	font-family: var(--bj-ui);
	font-size: 16px;
	line-height: 1.6;
	color: var(--bj-ink);
	background: var(--bj-input-bg);
	border: 1px solid var(--bj-input-border);
	border-radius: 2px;
	transition: border-color 150ms ease;
}

.bj-form textarea {
	resize: vertical;
	min-height: 140px;
}

.bj-form input::placeholder,
.bj-form textarea::placeholder {
	color: var(--bj-muted-light);
}

.bj-form input:focus,
.bj-form textarea:focus {
	border-color: var(--bj-plum);
}

/* Honeypot — bots fill it, people never see it. */
.bj-form .bj-honey {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bj-form .bj-submit-row {
	grid-column: 1 / -1;
	display: flex;
	justify-content: flex-start;
}

.bj-form button[type="submit"] {
	font-family: var(--bj-ui);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.14em;
	padding: 17px 38px 17px calc(38px + 0.14em);
	text-transform: uppercase;
	color: var(--bj-cream);
	background: var(--bj-plum);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 150ms ease;
}

.bj-form button[type="submit"]:hover {
	background: var(--bj-plum-hover);
}


/* ==========================================================================
   12. RESPONSIVE
   --------------------------------------------------------------------------
   The prototype was desktop-first at ~1200px and left responsive behaviour
   unspecified; these are the handoff's suggested breakpoints, implemented.
   Elementor also emits its own responsive rules from the container settings
   (stacking, padding) — this block handles the type scale and the pieces
   Elementor can't express.
   ========================================================================== */

@media (max-width: 1024px) {

	.bj-hero-h1,
	.bj-hero-h1 .elementor-heading-title {
		font-size: 64px !important;
	}

	.bj-contact-h2,
	.bj-contact-h2 .elementor-heading-title {
		font-size: 48px !important;
	}

	.bj-h2,
	.bj-h2 .elementor-heading-title,
	.bj-proof-h2,
	.bj-proof-h2 .elementor-heading-title {
		font-size: 42px !important;
	}

	.bj-about-lead,
	.bj-about-lead .elementor-heading-title {
		font-size: 32px !important;
	}

	/* The watermark is ornament — drop it before it crowds the headline. */
	.bj-watermark { display: none !important; }
}

@media (max-width: 720px) {

	:root { --bj-gutter: 24px; }

	.bj-hero-h1,
	.bj-hero-h1 .elementor-heading-title {
		font-size: 44px !important;
	}

	.bj-contact-h2,
	.bj-contact-h2 .elementor-heading-title {
		font-size: 36px !important;
	}

	.bj-h2,
	.bj-h2 .elementor-heading-title,
	.bj-proof-h2,
	.bj-proof-h2 .elementor-heading-title {
		font-size: 34px !important;
	}

	.bj-about-lead,
	.bj-about-lead .elementor-heading-title {
		font-size: 26px !important;
	}

	.bj-svc-title,
	.bj-svc-title .elementor-heading-title {
		font-size: 26px !important;
	}

	.bj-work-title,
	.bj-work-title .elementor-heading-title {
		font-size: 26px !important;
	}

	.bj-hero-lede,
	.bj-hero-lede p {
		font-size: 17px !important;
	}

	/* Single-column proof list. */
	.bj-proof-list ul {
		grid-template-columns: 1fr;
		column-gap: 0;
	}

	/* Stack the form. */
	.bj-form form {
		grid-template-columns: 1fr;
	}

	/* Header: let the nav wrap under the lockup rather than squeeze. */
	.bj-header-inner {
		flex-wrap: wrap;
		gap: 12px 16px;
	}

	.bj-nav {
		gap: 18px;
		flex-wrap: wrap;
	}

	.bj-nav-list {
		gap: 18px;
		flex-wrap: wrap;
	}

	.bj-footer-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	html { scroll-padding-top: 132px; }
}


/* ==========================================================================
   13. PRINT
   --------------------------------------------------------------------------
   The design is print-aware: hide nav, force backgrounds, keep sections whole.
   ========================================================================== */

@media print {

	.bj-header,
	.bj-nav,
	.bj-skip-link,
	.bj-watermark {
		display: none !important;
	}

	body {
		background: #fff !important;
		color: #000 !important;
	}

	.e-con,
	.elementor-section {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.bj-form { display: none !important; }
}
