/* OttOmatic Art - Shared site styles */

/* Logo color */
#logo,
h1 a#logo,
#header h1 a#logo {
	color: #8B5CF6 !important;
}

/* Fixed Navigation -- hidden on scroll down, shown on scroll up */
/* Only applies on subpages (gallery, portfolio, about, artist) */
.subpage #header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 500;
	transition: transform 0.3s ease;
	background: #2b3032;
}

/* OttOmatic Original No. 17 (rotated) as the header art on PUBLIC pages ONLY,
   with a dark gradient overlay so the logo + nav stay readable over the
   colorful art. Admin/internal pages (which also use .subpage) keep the plain
   dark bar. background-position is varied per page for subtle variety -- each
   page shows a different crop of the same piece. */
.page-gallery #header,
.page-portfolio #header,
.page-about #header,
.page-artist #header {
	background-color: #2b3032;
	background-image:
		linear-gradient(rgba(30,34,36,0.78), rgba(30,34,36,0.82)),
		url('../../images/banners/header-bg.jpg');
	background-size: cover;
	background-repeat: no-repeat;
}
.page-gallery   #header { background-position: center 20%; }
.page-portfolio #header { background-position: center 40%; }
.page-about     #header { background-position: center 60%; }
.page-artist    #header { background-position: center 80%; }

/* ── Public-page nav: readable "trap" over the art + hover/active states ── */
/* A translucent dark rounded pill sits behind the link group so the nav is
   always legible no matter what art is behind it, and reads as intentional. */
.page-home #header nav,
.page-gallery #header nav,
.page-portfolio #header nav,
.page-about #header nav,
.page-artist #header nav {
	background: rgba(20, 23, 25, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	padding: 0.35em 1.4em;
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

/* Links: brighter for contrast, tighter rhythm, smooth transitions */
.page-home #header nav a,
.page-gallery #header nav a,
.page-portfolio #header nav a,
.page-about #header nav a,
.page-artist #header nav a {
	color: #eef0f1;
	letter-spacing: 0.03em;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
	padding-bottom: 2px;
	border-bottom: 2px solid transparent;
	transition: color 0.18s ease, border-color 0.18s ease;
}

/* Hover: brand purple + underline */
.page-home #header nav a:hover,
.page-gallery #header nav a:hover,
.page-portfolio #header nav a:hover,
.page-about #header nav a:hover,
.page-artist #header nav a:hover {
	color: #b794ff;
	border-bottom-color: #8B5CF6;
}

/* Active (current page): solid purple + persistent underline */
.page-gallery #header nav a.active,
.page-portfolio #header nav a.active,
.page-about #header nav a.active,
.page-artist #header nav a.active {
	color: #8B5CF6;
	border-bottom-color: #8B5CF6;
	text-decoration: none;
}

.subpage #header.nav-hidden {
	transform: translateY(-100%);
}

/* Push subpage content down so it doesn't hide under the fixed header */
.subpage #page-wrapper {
	padding-top: 155px;
}

/* Mobile: let template handle its own nav, disable fixed header */
@media (max-width: 980px) {
	.subpage #header {
		position: relative;
		top: auto;
		left: auto;
		right: auto;
	}

	.subpage #header.nav-hidden {
		transform: none;
	}

	.subpage #page-wrapper {
		padding-top: 0;
	}
}


/* ── Home page: one artwork (index-bg.jpg) as a single seamless backdrop ── */
/* The image lives on ONE element (#page-wrapper) that spans the whole page, so
   there are NO section seams. The three sections (header/banner/features) are
   made transparent to let the single backdrop show through. No overlay -- the
   art shows at full strength per request. */
/* Dark body so no pale template band shows below the content at the bottom. */
body.page-home {
	background: #2b3032;
}

.page-home #page-wrapper {
	background: #2b3032 url('../../images/banners/index-bg.jpg') no-repeat center center fixed;
	background-size: cover;
	/* Leave a strip of the background art visible BELOW the grey footer block. */
	padding-bottom: 90px;
}

/* Make the bands transparent so the one backdrop shows through unbroken, and
   remove the template's borders/shadows/textures that were creating the seam. */
.page-home #header,
.page-home #banner,
.page-home #features {
	background: transparent none;
	border: none;
	box-shadow: none;
	text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.75);
}

/* Footer caps the page with a solid dark block so the art doesn't bleed into
   it (the background lives on #page-wrapper which also contains the footer). */
/* One compact grey footer band holding ALL footer content (links, blurb, and
   copyright), no hairline. Artwork peeks out below it via #page-wrapper padding. */
.page-home #footer {
	background: #2b3032;
	position: relative;
	z-index: 1;
	padding: 30px 0 20px;
}

/* Copyright now lives inside the footer as a small centered line, no divider. */
.page-home .footer-copyright {
	margin: 1.2em 0 0;
	text-align: center;
	font-size: 0.85em;
	color: #8a9296;
}

/* Readability "trap" behind each of the four feature cards' text, matching the
   nav pill. A soft dark translucent panel per card keeps the title + copy
   legible over the vivid art without dimming the whole page. */
.page-home #features .row > div > section {
	background: rgba(20, 23, 25, 0.58);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	padding: 0.9em 1em 1.1em;
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	height: 100%;
}

/* Same trap behind the banner copy so the intro sentence + button area reads. */
.page-home #banner .col-6:first-child {
	position: relative;
}
.page-home #banner p {
	background: rgba(20, 23, 25, 0.55);
	border-radius: 8px;
	padding: 0.6em 0.8em;
	display: inline-block;
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

/* Mobile: fixed backgrounds are janky on phones -> let it scroll normally. */
@media (max-width: 980px) {
	.page-home #page-wrapper {
		background-attachment: scroll;
	}
}
