/*
	Systems Within Systems — site overrides (loaded after main.css)
	Palette: pond #16231f / teal #2f5d5a (replaces the template's coral accent in main.css) / mist #e9efed
*/

/* Banners: the template's banner.jpg was removed; each page sets its own image. */
#header { background-image: url("../../images/banner-about.jpg"); }
.homepage #header { background-image: url("../../images/banner-home.jpg"); }
.page-work #header { background-image: url("../../images/banner-work.jpg"); }
.page-price #header { background-image: url("../../images/banner-price.jpg"); }
.page-about #header, .page-contact #header { background-image: url("../../images/banner-about.jpg"); }
/* Darkening layer so white header text stays legible on every photo. */
#header:before { background: linear-gradient(rgba(14, 24, 22, 0.55), rgba(14, 24, 22, 0.55)); }

/* Logo mark + wordmark */
#logo .logo-mark { display: inline-block; border: 0; margin-bottom: 1.25em; }
#logo .logo-mark img { display: block; height: 5.5em; width: auto; }
#logo p { text-transform: none; letter-spacing: 0.08em; font-size: 1em; color: rgba(255,255,255,0.8); }

/* Headings: serif for headlines, template sans for everything else */
h2, h3, .wrapper p.style2, blockquote.sws-quote {
	font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}
h2 { font-size: 2.1em; font-weight: 700; letter-spacing: 0; }
h3 { font-size: 1.5em; font-weight: 700; }
.wrapper p.style2 { font-weight: 600; font-size: 2.6em; line-height: 1.2; }

/* Skip link + visible keyboard focus */
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: #16231f; padding: 0.75em 1em; z-index: 10000; }
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 3px solid #b08d57; outline-offset: 2px;
}

/* ---- Placeholders: deliberately loud so nothing ships by accident ---- */
.placeholder {
	display: inline-block; padding: 0.15em 0.6em; border: 2px dashed #b08d57; background: #fbf3e2;
	color: #5c4519; font-weight: 700; border-radius: 0.25em;
}
.wrapper.style1 .placeholder, #footer .placeholder { color: #5c4519; }
.price-card .placeholder { font-size: 1.1em; }

/* Pricing / offering cards */
.price-grid { display: flex; flex-wrap: wrap; gap: 2em; justify-content: center; margin: 2em 0; }
.price-card { flex: 1 1 15em; max-width: 22em; background: #f3f3f3; border-radius: 0.35em; padding: 2em 1.5em; text-align: center; }
.price-card h3 { margin-bottom: 0.75em; }

/* About: photo placeholder + quote */
.photo-placeholder {
	display: flex; align-items: center; justify-content: center; text-align: center;
	aspect-ratio: 4 / 5; border: 2px dashed #b08d57; background: #fbf3e2; color: #5c4519; font-weight: 700; padding: 1em;
}
blockquote.sws-quote {
	border-left: 4px solid #2f5d5a; margin: 2em 0 0 0; padding: 0.25em 0 0.25em 1.25em; font-size: 1.5em; line-height: 1.4; color: #2b3331;
}
blockquote.sws-quote cite { display: block; margin-top: 0.75em; font-family: 'Source Sans Pro', sans-serif; font-size: 0.6em; font-style: normal; letter-spacing: 0.05em; color: #717479; }

/* Videos: click-to-load YouTube facade (no third-party requests until played) */
.video-grid { display: flex; flex-wrap: wrap; gap: 2em; margin-top: 2em; }
.video-grid > .video-item { flex: 1 1 18em; }
.video { position: relative; aspect-ratio: 16 / 9; background: #16231f; border-radius: 0.35em; overflow: hidden; }
.video iframe, .video button.video-play, .video .video-missing, .video .video-fallback {
	position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video button.video-play { background-size: cover; background-position: center; cursor: pointer; padding: 0; }
.video button.video-play:after {
	content: ''; position: absolute; left: 50%; top: 50%; width: 4.5em; height: 4.5em; margin: -2.25em 0 0 -2.25em; border-radius: 50%;
	background: rgba(22, 35, 31, 0.8) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 6.5v11l9-5.5z'/></svg>") center / 60% no-repeat;
}
.video .video-missing, .video .video-fallback {
	display: flex; align-items: center; justify-content: center; text-align: center; padding: 1em; color: #5c4519;
	background: #fbf3e2; border: 2px dashed #b08d57; font-weight: 700; box-sizing: border-box;
}
.video-caption { margin-top: 0.75em; font-size: 0.95em; }

/* Contact form status */
#form-status { display: none; padding: 1em 1.25em; border-radius: 0.35em; margin-bottom: 1.5em; font-weight: 700; }
#form-status.ok { display: block; background: #e3f0e8; color: #1f4d33; }
#form-status.err { display: block; background: #f8e4e1; color: #7a2018; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form label { display: block; margin-bottom: 0.35em; font-weight: 700; }
form .field { margin-bottom: 1em; }

/* Footer social + contact list */
#footer .footer-contact { list-style: none; padding: 0; margin: 1.5em 0 0 0; text-align: center; }
#footer .footer-contact li { display: inline-block; margin: 0 1em; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media screen and (max-width: 736px) {
	.wrapper p.style2 { font-size: 1.9em; }
	#logo .logo-mark img { height: 4em; }
}

/* ---- Readability fixes (template default body gray is below WCAG AA contrast on white/light gray) ---- */
.wrapper.style2 p, .wrapper.style3 p, .wrapper.style2 li, .wrapper.style3 li { color: #4a5058; }
.wrapper.style2 header.style1 p, .wrapper.style3 header.style1 p { color: #5d646c; }
#copyright, #copyright li, #copyright a { color: #c9ccd1; }
#footer .footer-contact a { color: #fff; }

/* Fallbacks for browsers without aspect-ratio, and spacing */
.video { height: 0; padding-bottom: 56.25%; aspect-ratio: auto; }
.photo-placeholder { min-height: 18em; aspect-ratio: auto; }
.actions + p { margin-top: 1.5em; }
.page-about #main header.style1, .page-contact #main header.style1 { text-align: left; }

/* ---- Banner top: gradient + progressive blur so the nav stays readable ---- */
#header:after {
	content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 10em; z-index: 0; pointer-events: none;
	background: linear-gradient(to bottom, rgba(10, 18, 16, 0.85) 0%, rgba(10, 18, 16, 0.55) 45%, rgba(10, 18, 16, 0) 100%);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 100%);
}
#nav, #logo { z-index: 1; }

.bio-photo { display: block; width: 100%; height: auto; border-radius: 0.35em; margin-bottom: 1.5em; }

/* No-JS fallback for videos should look like a normal link, not a placeholder */
.video .video-fallback { background: #16231f; border: 0; color: #fff; text-decoration: underline; }
