/*
Theme Name: SynthFam DSP
Theme URI: https://www.synthfamdsp.com
Author: SynthFam DSP
Author URI: https://www.synthfamdsp.com
Description: Custom block theme for SynthFam DSP — an independent audio app development studio.
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: synthfamdsp
Tags: full-site-editing, block-patterns, one-column
*/

/* Base */
a { color: inherit; text-decoration: none; }
.mono { font-family: "SF Mono", ui-monospace, Menlo, monospace; }

/* Brand color strip — six brand colors, one thin bar */
.wp-block-group.synthfam-strip {
	display: flex !important;
	align-items: stretch !important;
	height: 5px !important;
	padding: 0 !important;
	gap: 0 !important;
}
.wp-block-group.synthfam-strip > .wp-block-group {
	flex: 1 1 0% !important;
	align-self: stretch !important;
	width: auto !important;
	height: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
}

/* Header */
/* Sticky lives on the outer template-part wrapper, not .synthfam-header itself —
   its direct parent must span the full page for position:sticky to have room to
   stay pinned; the inner div alone sits inside a wrapper only as tall as the
   header's own content, which broke sticking once that wrapper scrolled away. */
.synthfam-site-header {
	position: sticky; top: 0; z-index: 20;
}
.synthfam-header {
	background: #1f1f1fe8;
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 16px 28px !important;
}
.synthfam-logo {
	font-family: "SF Mono", ui-monospace, monospace; font-weight: 700; font-size: 15px; color: inherit;
}
.synthfam-logo .dsp { color: var(--wp--preset--color--hot-pink); }
.synthfam-header .wp-block-navigation { font-family: "SF Mono", ui-monospace, monospace; font-size: 13px; }
.synthfam-header .wp-block-navigation a { color: #aaa; }
.synthfam-header .wp-block-navigation a:hover { color: var(--wp--preset--color--gold); }

/* Mobile menu overlay — brand color instead of WordPress's default white.
   --synthfam-menu-color is set randomly by JS (functions.php) on each open;
   falls back to purple if JS hasn't run yet. */
.synthfam-header .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--synthfam-menu-color, var(--wp--preset--color--purple)) !important;
}
.synthfam-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
.synthfam-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	color: #fff !important;
	text-shadow: 0 0 3px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.75), 0 2px 5px rgba(0,0,0,0.7);
}

/* Identity strip */
.synthfam-identity {
	position: relative; text-align: center; margin-top: 0 !important;
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: linear-gradient(180deg, #f748b412, transparent 75%);
}
.synthfam-identity .synthfam-tag { display: block; font-size: 11px; color: #888; letter-spacing: 0.03em; margin-bottom: 10px; }
.synthfam-identity p { max-width: 720px; margin: 0 auto; font-size: 14.5px; color: #a8a8a8; }
.synthfam-identity p b { color: #fff; font-weight: 700; }
.synthfam-identity p b.gold { color: var(--wp--preset--color--gold); }

/* Hero */
.synthfam-hero-eyebrow { font-family: "SF Mono", ui-monospace, monospace; font-size: 12px; color: #888; margin-bottom: 18px; }
.synthfam-hero-eyebrow b { color: var(--wp--preset--color--gold); font-weight: 400; }
.synthfam-hero h1 { font-size: clamp(38px, 5.2vw, 64px); font-weight: 800; line-height: 1.06; letter-spacing: -0.02em; }
.synthfam-hero h1 .gradient-text {
	background: linear-gradient(90deg, var(--wp--preset--color--pink), var(--wp--preset--color--hot-pink), var(--wp--preset--color--purple));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.synthfam-hero .synthfam-sub { color: #9a9a9a; font-size: 17px; max-width: 460px; }

.wp-block-button .wp-block-button__link {
	padding: 14px 30px; font-size: 13px; font-weight: 700;
	font-family: "SF Mono", ui-monospace, monospace; border-radius: 10px;
}
.wp-block-button.synthfam-btn-grad .wp-block-button__link {
	background: linear-gradient(90deg, var(--wp--preset--color--hot-pink), var(--wp--preset--color--purple));
	color: #fff; box-shadow: 0 12px 36px #f748b43d;
}
.wp-block-button.synthfam-btn-line .wp-block-button__link {
	border: 1px solid #555; color: #ddd; background: transparent;
}
.wp-block-button.synthfam-btn-line .wp-block-button__link:hover { border-color: var(--wp--preset--color--gold); color: var(--wp--preset--color--gold); }

.synthfam-trust {
	display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px !important;
	font-family: "SF Mono", ui-monospace, monospace; font-size: 12px; color: #999;
}
.synthfam-trust span::before { content: "— "; color: var(--wp--preset--color--gold); }

/* Hero device trio */
.synthfam-trio { position: relative; min-height: 420px; }
.synthfam-manual-btn { margin-top: 16px; }
.synthfam-trio::before {
	content: ""; position: absolute; width: 85%; height: 85%; top: 8%; left: 7.5%;
	background: radial-gradient(closest-side, #a948f73d, transparent);
	filter: blur(40px); z-index: 0;
}
.synthfam-device { position: absolute; border-radius: 32px; padding: 9px; background: #0c0c0c; border: 1px solid #404040; box-shadow: 0 26px 60px rgba(0,0,0,0.6); }
.synthfam-device img { border-radius: 25px; display: block; }
.synthfam-device.pad-left { width: 260px; border-radius: 22px; left: 0; top: 30px; transform: rotate(-6deg); z-index: 1; }
.synthfam-device.pad-left img { border-radius: 15px; }
.synthfam-device.phone-right { width: 170px; right: 0; top: 20px; transform: rotate(7deg); z-index: 1; }
.synthfam-device.landscape-center {
	width: 290px; border-radius: 26px; padding: 8px; left: 50%; bottom: 0;
	transform: translateX(-50%); box-shadow: 0 30px 70px rgba(0,0,0,0.65); z-index: 3;
}
.synthfam-device.landscape-center img { border-radius: 19px; }

/* Standalone teaser device shot (e.g. "coming soon" pages) — same visual
   treatment as .synthfam-device but in normal flow, not absolutely positioned. */
.synthfam-teaser-device {
	display: inline-block; border-radius: 32px; padding: 9px; background: #0c0c0c;
	border: 1px solid #404040; box-shadow: 0 26px 60px rgba(0,0,0,0.6);
}
.synthfam-teaser-device img { border-radius: 25px; display: block; }

/* Section label bar */
.synthfam-section-label {
	font-family: "SF Mono", ui-monospace, monospace; font-size: 12px; color: #888;
	border-top: 1px solid var(--wp--preset--color--line);
	display: flex; justify-content: space-between;
}

/* Feature grid */
.synthfam-feature {
	background: var(--wp--preset--color--panel); border: 1px solid var(--wp--preset--color--line);
	border-top: 3px solid var(--wp--preset--color--hot-pink); border-radius: 14px; padding: 26px 22px;
}
/* Explicit per-card color classes (not :nth-of-type) so colors stay correct
   no matter how many separate wp:columns rows the cards are split across. */
.synthfam-feature.color-pink { border-top-color: var(--wp--preset--color--pink); }
.synthfam-feature.color-pink-red { border-top-color: var(--wp--preset--color--pink-red); }
.synthfam-feature.color-hot-pink { border-top-color: var(--wp--preset--color--hot-pink); }
.synthfam-feature.color-purple { border-top-color: var(--wp--preset--color--purple); }
.synthfam-feature.color-orange { border-top-color: var(--wp--preset--color--orange); }
.synthfam-feature.color-gold { border-top-color: var(--wp--preset--color--gold); }
.synthfam-feature h4 { font-size: 16px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.synthfam-feature .feature-icon {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 32px; height: 32px; border-radius: 8px; background: #00000040; font-size: 16px;
}
.synthfam-feature p { font-size: 13.5px; color: #999; }

/* Video / iPad cards */
.synthfam-card {
	background: var(--wp--preset--color--panel); border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px; padding: 26px; text-align: center;
}
.synthfam-card .synthfam-frame {
	border-radius: 22px; padding: 12px; background: #0c0c0c; border: 1px solid #404040;
	display: inline-block; box-shadow: 0 24px 60px rgba(0,0,0,0.55); margin-bottom: 16px; width: 100%;
}
.synthfam-card .synthfam-frame img { width: 100%; max-width: 380px; border-radius: 12px; display: block; margin: 0 auto; }
.synthfam-card h4 { font-size: 15px; font-weight: 800; }
.synthfam-card .synthfam-caption { font-family: "SF Mono", ui-monospace, monospace; font-size: 11.5px; color: #888; }
.synthfam-card.small { padding: 14px; }
.synthfam-card.small h4 { font-size: 12.5px; }
.synthfam-card.small .synthfam-caption { font-size: 10px; }
.synthfam-card .wp-block-embed__wrapper { position: relative; aspect-ratio: 16/9; margin-bottom: 16px; border-radius: 14px; overflow: hidden; }
.synthfam-card .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 14px; }

/* Story/Mission cards */
.synthfam-about-card {
	background: var(--wp--preset--color--panel); border: 1px solid var(--wp--preset--color--line);
	border-left: 3px solid var(--wp--preset--color--hot-pink); border-radius: 14px; padding: 24px 26px;
}
.synthfam-about-card.mission { border-left-color: var(--wp--preset--color--purple); }
.synthfam-about-card.values { border-left-color: var(--wp--preset--color--gold); }
.synthfam-about-card .synthfam-eyebrow { display: block; font-family: "SF Mono", ui-monospace, monospace; font-size: 11px; color: #888; margin-bottom: 10px; }
.synthfam-about-card p { font-size: 14.5px; color: #aaa; }
.synthfam-about-card p b { color: #e8e8e8; font-weight: 700; }

/* Community section */
.synthfam-community {
	position: relative; overflow: hidden; padding: 56px 40px !important;
	border: 1px solid var(--wp--preset--color--line); border-radius: 18px; text-align: center;
	background:
		radial-gradient(500px 200px at 20% 0%, #f748b41a, transparent),
		radial-gradient(500px 200px at 80% 100%, #a948f71a, transparent),
		var(--wp--preset--color--panel);
}
.synthfam-community::before {
	content: ""; position: absolute; inset: 0;
	background-image: url('assets/images/baker-beach-sf.png');
	background-position: center 75%; background-repeat: no-repeat; background-size: cover;
	opacity: 0.22; z-index: 0;
}
.synthfam-community > * { position: relative; z-index: 1; }
.synthfam-community h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; max-width: 680px; margin: 0 auto 14px; }
.synthfam-community h2 b { color: var(--wp--preset--color--gold); }
.synthfam-community p { color: #9a9a9a; max-width: 560px; margin: 0 auto 32px; }
.synthfam-community .synthfam-actions { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.synthfam-community .email-form-fields { display: inline-flex; gap: 10px; flex-wrap: wrap; min-width: 0; }
.synthfam-community input {
	background: var(--wp--preset--color--background); border: 1px solid #4a4a4a; color: #fff;
	padding: 14px 20px; border-radius: 10px; width: 280px; max-width: 100%; min-width: 0;
	font-family: "SF Mono", ui-monospace, monospace; font-size: 13px;
}
.synthfam-community input:focus { outline: none; border-color: var(--wp--preset--color--hot-pink); }
.synthfam-community .honeypot-field { position: absolute; left: -9999px; }
.synthfam-btn-grad-link, .synthfam-btn-line-link {
	display: inline-block; padding: 14px 30px; border-radius: 10px; border: 0;
	font-size: 13px; font-weight: 700; font-family: "SF Mono", ui-monospace, monospace; cursor: pointer;
}
.synthfam-btn-grad-link {
	background: linear-gradient(90deg, var(--wp--preset--color--hot-pink), var(--wp--preset--color--purple));
	color: #fff; box-shadow: 0 12px 36px #f748b43d;
}
.synthfam-btn-line-link { border: 1px solid #555; color: #ddd; background: transparent; }
.synthfam-btn-line-link:hover { border-color: var(--wp--preset--color--gold); color: var(--wp--preset--color--gold); }
.synthfam-community .form-message { margin-top: 14px; font-size: 13px; }
.synthfam-community .form-message.success { color: var(--wp--preset--color--gold); }
.synthfam-community .form-message.error { color: var(--wp--preset--color--pink-red); }

/* Footer */
.synthfam-footer {
	border-top: 1px solid var(--wp--preset--color--line);
	font-family: "SF Mono", ui-monospace, monospace; font-size: 12px; color: #777;
	padding-top: 6px !important; padding-bottom: 6px !important;
	padding-left: 28px !important; padding-right: 28px !important;
}

@media (max-width: 880px) {
	.synthfam-footer-nav { order: 1 !important; }
	.synthfam-footer-copy { order: 2 !important; }
	.synthfam-hero-columns { flex-direction: column; row-gap: 16px !important; }
	.synthfam-hero-columns > .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
	}
	.synthfam-hero-eyebrow { margin-bottom: 10px !important; }
	.synthfam-hero h1 { margin-bottom: 10px !important; }
	.synthfam-hero .synthfam-sub { margin: 10px 0 !important; }
	.synthfam-hero .wp-block-buttons {
		margin-bottom: 10px !important; gap: 14px !important; flex-wrap: wrap !important;
		justify-content: center !important;
	}
	.synthfam-hero .wp-block-buttons .wp-block-button__link {
		padding: 12px 18px !important; font-size: 12px !important;
	}
	.synthfam-trust { margin-top: 10px !important; gap: 6px !important; row-gap: 6px !important; }
	.synthfam-trio {
		margin-top: 12px;
		min-height: auto;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 12px;
		padding: 8px 0;
	}
	.synthfam-device {
		position: static !important;
		transform: none !important;
		width: 100% !important;
		max-width: 280px !important;
		margin: 0 auto !important;
	}
	.synthfam-community .synthfam-actions {
		flex-direction: column;
		width: 100%;
		max-width: 320px;
		margin: 0 auto;
	}
	.synthfam-community .email-form-fields {
		flex-direction: column;
		width: 100%;
	}
	.synthfam-community input,
	.synthfam-community .email-form-fields button,
	.synthfam-community .synthfam-actions > a {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
}

/* Blog listing page — existing hand-built content from before this theme, with
   black background / white text baked into the saved blocks as inline styles.
   These overrides force it to match the site's actual dark theme. */
.wp-block-post-template .wp-block-group[style*="background-color"] {
	background-color: var(--wp--preset--color--panel) !important;
	border-radius: 14px !important;
	padding: 40px 28px !important;
}
.entry-content > .wp-block-group[style*="background-color:#000000"] {
	background-color: transparent !important;
	padding: 40px 0 0 !important;
}
.wp-block-post-template .wp-block-separator {
	background-color: var(--wp--preset--color--line) !important;
	color: var(--wp--preset--color--line) !important;
	opacity: 1 !important;
}
.wp-block-post-template .wp-block-post {
	padding: 16px 0 16px 16px !important;
	margin: 0 !important;
	border-left: 3px solid var(--wp--preset--color--hot-pink);
}
.wp-block-post-template li.wp-block-post:nth-of-type(4n+1) { border-left-color: var(--wp--preset--color--hot-pink); }
.wp-block-post-template li.wp-block-post:nth-of-type(4n+2) { border-left-color: var(--wp--preset--color--purple); }
.wp-block-post-template li.wp-block-post:nth-of-type(4n+3) { border-left-color: var(--wp--preset--color--gold); }
.wp-block-post-template li.wp-block-post:nth-of-type(4n) { border-left-color: var(--wp--preset--color--orange); }
.wp-block-post-template .wp-block-columns,
.wp-block-post-template .wp-block-column {
	margin: 0 !important;
}
.wp-block-post-template .wp-block-post-title,
.wp-block-post-template .wp-block-post-title a {
	color: var(--wp--preset--color--foreground) !important;
	font-family: -apple-system, "Helvetica Neue", Inter, sans-serif !important;
	font-weight: 700 !important;
	margin: 0 !important;
}
.wp-block-post-template .wp-block-post-title a:hover {
	color: var(--wp--preset--color--gold) !important;
}
.wp-block-post-template .wp-block-post-date,
.wp-block-post-template .wp-block-post-date time {
	color: #888 !important;
	font-family: "SF Mono", ui-monospace, monospace !important;
	font-weight: 400 !important;
	font-size: 13px !important;
	margin: 0 !important;
}

/* Single blog post — comfortable reading width + softer prose typography */
.synthfam-post-body {
	border-left: 3px solid var(--wp--preset--color--hot-pink);
	padding-left: 28px;
}
.synthfam-post-body .wp-block-post-title { margin-bottom: 14px; }
.synthfam-post-meta {
	gap: 16px; color: #888; font-size: 13px; margin-bottom: 32px;
}
.synthfam-post-meta .wp-block-post-terms a {
	display: inline-block; color: var(--wp--preset--color--gold);
	border: 1px solid var(--wp--preset--color--gold); border-radius: 20px;
	padding: 2px 10px; font-size: 12px; text-decoration: none;
}
.synthfam-post-body .wp-block-post-featured-image img { border-radius: 14px; }
.synthfam-post-body .wp-block-post-content {
	color: #ccc; font-size: 16px; line-height: 1.7;
}
.synthfam-post-body .wp-block-post-content p { margin-bottom: 1.4em; }
.synthfam-post-body .wp-block-post-content a {
	color: var(--wp--preset--color--hot-pink); text-decoration: underline;
}
.synthfam-post-body .wp-block-post-content a:hover { color: var(--wp--preset--color--gold); }
.synthfam-post-body .wp-block-post-content h2,
.synthfam-post-body .wp-block-post-content h3,
.synthfam-post-body .wp-block-post-content h4 {
	color: var(--wp--preset--color--purple); margin-top: 1.6em; margin-bottom: 0.6em;
}
.synthfam-post-body .wp-block-post-content strong { color: #fff; }
.synthfam-post-body .wp-block-post-content img,
.synthfam-post-body .wp-block-post-content .wp-block-embed {
	border-radius: 14px; overflow: hidden; margin: 1.6em 0;
}
