/*
Theme Name: Homosassa Inshore Fishing
Theme URI: https://homosassainshorefishing.com
Description: Child theme of Twenty Twenty-Five for Homosassa Inshore Fishing — Redfish Copper design system, fishing-report blog, photo galleries. Built by Digital Upwelling.
Author: Digital Upwelling
Template: twentytwentyfive
Version: 0.2.0
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: twentytwentyfive-child
*/

/* ----------------------------------------------------------------------
 * Motion — restrained, per DU house style.
 * px for visual primitives (hairlines, focus rings); rem/tokens for layout.
 * -------------------------------------------------------------------- */

/* Underline-reveal links (~200ms). Content links only — nav/buttons opt out. */
.entry-content a:not(.wp-block-button__link),
.wp-block-post-content a:not(.wp-block-button__link) {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
	transition: text-decoration-color 200ms ease, color 200ms ease;
}

/* 1px-lift buttons (~160ms) */
.wp-block-button__link {
	transition: transform 160ms ease, background-color 160ms ease;
}
.wp-block-button__link:hover {
	transform: translateY(-1px);
}
.wp-block-button__link:active {
	transform: translateY(0);
}

/* Nav links: no underline at rest, underline on hover/current */
.wp-block-navigation a {
	text-decoration: none;
	transition: color 200ms ease;
}
.wp-block-navigation a:hover,
.wp-block-navigation a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
	text-decoration-color: var(--wp--preset--color--accent);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* ----------------------------------------------------------------------
 * Sticky glass header
 * -------------------------------------------------------------------- */
.site-header-glass {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: rgba(250, 247, 242, 0.85); /* base @ 85% */
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--wp--preset--color--border-light);
}

/* ----------------------------------------------------------------------
 * Accessibility floor
 * -------------------------------------------------------------------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Responsive media inside content */
.entry-content svg,
.wp-block-post-content svg {
	max-width: 100%;
	height: auto;
}

/* ----------------------------------------------------------------------
 * Small primitives
 * -------------------------------------------------------------------- */
hr.wp-block-separator {
	border: none;
	border-top: 1px solid var(--wp--preset--color--border-light);
}

/* Phone number links render as text-colored, copper on hover */
a[href^="tel:"] {
	white-space: nowrap;
}

/* Hero copy column — cap line length inside the full-bleed cover */
.hero-copy {
	max-width: 48rem;
}

/* ----------------------------------------------------------------------
 * Gallery lightbox slideshow
 * -------------------------------------------------------------------- */
.hif-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(31, 40, 35, 0.95); /* contrast @ 95% */
}
.hif-lightbox[hidden] {
	display: none; /* class display:flex would otherwise beat the UA [hidden] rule */
}
.hif-lb-figure {
	margin: 0;
	max-width: min(92vw, 90rem);
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}
.hif-lb-img {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 4px;
}
.hif-lb-caption {
	color: var(--wp--preset--color--bg-tertiary);
	font-size: var(--wp--preset--font-size--s);
	text-align: center;
}
.hif-lightbox button {
	position: fixed;
	background: rgba(250, 247, 242, 0.12);
	color: var(--wp--preset--color--base);
	border: none;
	border-radius: 4px;
	font-size: 1.5rem;
	line-height: 1;
	padding: 0.6em 0.75em;
	cursor: pointer;
	transition: background-color 160ms ease;
}
.hif-lightbox button:hover {
	background: var(--wp--preset--color--accent);
}
.hif-lb-close { top: 1rem; right: 1rem; }
.hif-lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.hif-lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.hif-lb-counter {
	position: fixed;
	bottom: 1rem;
	left: 50%;
	transform: translateX(-50%);
	color: var(--wp--preset--color--bg-tertiary);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.06em;
}
@media (max-width: 600px) {
	.hif-lb-prev { left: 0.25rem; }
	.hif-lb-next { right: 0.25rem; }
}
