/*
Theme Name: Gunowner Association
Description: Custom block theme for a gun owners' association, following the structure and design language of the customer's sample site (responsibleownership.org): charcoal grounds, full-bleed photo bands, uppercase letter-spaced headings, Garamond body text, pill outline buttons.
Author: MechanicWeb
Version: 0.2.1
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gunowner
*/

/* ---------------------------------------------------------------------------
   Header: transparent, laid over the first band of every page.
   Every template starts with a dark band, so white header text always reads.
--------------------------------------------------------------------------- */
.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: transparent;
}
.site-header a {
	text-decoration: none;
}
.site-header .wp-block-site-title {
	flex-shrink: 0;
}
.site-header .wp-block-site-title a {
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	display: inline-block;
	width: 15rem;
	max-width: 15rem;
	line-height: 1.55;
}
.site-header .wp-block-site-logo img {
	border-radius: 50%;
}
.site-header .wp-block-navigation {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	/* Core's nav stylesheet forces `color: inherit` on links with (0,3,0)
	   specificity, so the link color must be set here on the wrapper. */
	color: rgba(255, 255, 255, 0.92);
}
.site-header .wp-block-navigation a.wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.92);
}
.site-header .wp-block-navigation a.wp-block-navigation-item__content:hover {
	color: #ffffff;
}
/* Dropdown panels need a solid ground */
.site-header .wp-block-navigation__submenu-container {
	background: #1f1f1f !important;
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 6px 0;
}
.site-header .wp-block-navigation__submenu-container a {
	color: rgba(255, 255, 255, 0.9) !important;
	padding: 8px 18px;
}
/* Donate: pill outline treatment in the nav */
.site-header .nav-donate > a {
	border: 2px solid #ffffff;
	border-radius: 999px;
	padding: 8px 22px !important;
}
/* Mobile overlay menu */
.site-header .wp-block-navigation__responsive-container.is-menu-open {
	background: #1f1f1f;
}
.site-header .wp-block-navigation__responsive-container-open,
.site-header .wp-block-navigation__responsive-container-close {
	color: #ffffff;
}

/* ---------------------------------------------------------------------------
   Light header variant (inner pages): in-flow on paper, dark text.
   The element carries both classes, so .site-header rules apply first and
   these override. The mobile overlay stays charcoal with white links.
--------------------------------------------------------------------------- */
.site-header--light {
	position: static;
	background: var(--wp--preset--color--paper);
	border-bottom: 1px solid #ddd9cc;
}
.site-header--light .wp-block-site-title a {
	color: #26251f;
}
.site-header--light .wp-block-navigation {
	color: #4a4a4a;
}
.site-header--light .wp-block-navigation a.wp-block-navigation-item__content {
	color: #4a4a4a;
}
.site-header--light .wp-block-navigation a.wp-block-navigation-item__content:hover {
	color: #26251f;
}
.site-header--light .nav-donate > a {
	border-color: #4a4a4a;
}
.site-header--light .wp-block-navigation__responsive-container-open {
	color: #26251f;
}
.site-header--light .wp-block-navigation__responsive-container.is-menu-open {
	color: rgba(255, 255, 255, 0.92);
}
.site-header--light .wp-block-navigation__responsive-container.is-menu-open a.wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.92);
}

/* ---------------------------------------------------------------------------
   Bands: full-width sections. Dark bands carry white text.
--------------------------------------------------------------------------- */
.band-dark,
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4,
.band-dark p, .band-dark li, .band-dark a {
	color: #ffffff;
}
.band-dark a {
	text-decoration-color: rgba(255, 255, 255, 0.5);
}

/* Title area at the top of every inner page: light, on the paper ground */
.title-band {
	padding-top: 3.25rem;
	padding-bottom: 0.5rem;
}
.title-band h1 {
	font-size: clamp(1.5rem, 3.5vw, 2.1rem);
	letter-spacing: 0.16em;
	color: #4a4a4a;
}

/* Hero band on the front page. The cover block carries an inline
   padding-top:6rem, so these overrides need !important to win. */
.hero-band {
	min-height: 68vh;
	padding-top: 8rem !important;
}
/* Below ~1120px the absolute header wraps to two rows (brand + nav), so the
   hero needs more clearance to keep the headline off the menu. */
@media (max-width: 1120px) {
	.hero-band {
		padding-top: 13rem !important;
	}
}
.hero-band h1 {
	font-size: clamp(1.7rem, 4.2vw, 2.9rem);
	line-height: 1.35;
	letter-spacing: 0.14em;
	max-width: 21em;
}

/* ---------------------------------------------------------------------------
   Buttons: white pill outline on dark, slate pill outline on light.
   Styled via currentColor so they adapt to the band they sit on.
--------------------------------------------------------------------------- */
.wp-block-button .wp-block-button__link {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	background: transparent;
	color: #4a4a4a;
	border: 2px solid currentColor;
	border-radius: 999px;
	padding: 0.85em 2.2em;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.wp-block-button .wp-block-button__link:hover {
	background: #4a4a4a;
	color: #ffffff;
}
/* Dark bands get the white outline treatment; .band-dark wins over the
   slate default regardless of what wrapper groups sit in between. */
.band-dark .wp-block-button .wp-block-button__link {
	color: #ffffff;
}
.band-dark .wp-block-button .wp-block-button__link:hover {
	background: #ffffff;
	color: #1f1f1f;
}

/* ---------------------------------------------------------------------------
   Typography details
--------------------------------------------------------------------------- */
h2 {
	font-size: 1.4rem;
}
h3 {
	font-size: 1.05rem;
	letter-spacing: 0.1em;
}
.lede {
	font-size: 1.45rem;
	font-style: italic;
	line-height: 1.55;
}
.eyebrow {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brass);
}

/* Learn More sub-navigation strip */
.subnav-learn-more {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.subnav-learn-more a {
	text-decoration: none;
	color: #8e6f1f;
}
.subnav-learn-more a:hover {
	text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Gallery strip: full-bleed row of photos linking through to the gallery
--------------------------------------------------------------------------- */
.gallery-strip {
	display: flex;
	gap: 4px;
	width: 100%;
}
.gallery-strip__item {
	flex: 1 1 0;
	display: block;
	overflow: hidden;
	line-height: 0;
	/* Light placeholder: these images are lazy-loaded, and a dark box would
	   flash against the paper background before they arrive. */
	background: #e7e4da;
}
.gallery-strip__item img {
	width: 100%;
	height: clamp(190px, 24vw, 330px);
	object-fit: cover;
	transition: transform 0.4s ease, opacity 0.3s ease;
}
.gallery-strip__item:hover img,
.gallery-strip__item:focus-visible img {
	transform: scale(1.04);
	opacity: 0.92;
}
@media (prefers-reduced-motion: reduce) {
	.gallery-strip__item img {
		transition: none;
	}
	.gallery-strip__item:hover img,
	.gallery-strip__item:focus-visible img {
		transform: none;
	}
}
/* On phones a three-across strip makes each photo unreadably small. */
@media (max-width: 600px) {
	.gallery-strip {
		flex-wrap: wrap;
	}
	.gallery-strip__item {
		flex: 1 1 calc(50% - 4px);
	}
	.gallery-strip__item:nth-child(n+3) {
		display: none;
	}
}

/* ---------------------------------------------------------------------------
   Join Us band + Fluent Forms styling (light ground, like the sample site)
--------------------------------------------------------------------------- */
.join-us-band {
	border-top: 1px solid #ddd9cc;
}
.join-us-band .fluentform .ff-el-form-control {
	background: #ffffff;
	border: 1px solid #b9b4a7;
	border-radius: 0;
	color: #26251f;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.05rem;
	padding: 12px 16px;
}
.join-us-band .fluentform .ff-el-form-control::placeholder {
	color: #8a877d;
}
.join-us-band .fluentform .ff-el-form-control:focus {
	border-color: #4a4a4a;
	outline: none;
}
.join-us-band .fluentform .ff-el-group {
	margin-bottom: 14px;
}
.join-us-band .fluentform .ff-btn-submit {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	background: transparent;
	color: #4a4a4a;
	border: 2px solid currentColor;
	border-radius: 999px;
	padding: 0.85em 2.2em;
	cursor: pointer;
}
.join-us-band .fluentform .ff-btn-submit:hover {
	background: #4a4a4a;
	color: #ffffff;
}
.join-us-band .ff-message-success {
	color: #4a4a4a;
	font-style: italic;
	font-size: 1.2rem;
	text-align: center;
}

/* ---------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */
.site-footer {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.site-footer a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}
.site-footer a:hover {
	color: #ffffff;
}

/* ---------------------------------------------------------------------------
   Misc
--------------------------------------------------------------------------- */
.wp-block-cover, .wp-block-cover-image {
	margin-top: 0;
	margin-bottom: 0;
}
.wp-site-blocks > * + * {
	margin-block-start: 0;
}
