/*
Theme Name: Golden Hour Edit
Theme URI: https://goldenhouredit.com/
Author: Golden Hour Edit
Description: A lightweight, fast-loading block theme for Golden Hour Edit, a private photo culling and editing service for photographers. No page builder, no jQuery, self-hosted fonts.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: golden-hour-edit
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { -webkit-font-smoothing: antialiased; }

h1, h2, h3, .wp-block-heading { text-wrap: balance; }
p { text-wrap: pretty; }

img { height: auto; }
.wp-block-image img[style*="aspect-ratio"] { width: 100%; }

/* Sections sit flush against each other */
.wp-site-blocks > footer.wp-block-template-part,
.wp-site-blocks > main { margin-block-start: 0; }
header.wp-block-template-part > *,
footer.wp-block-template-part > * { margin-block-start: 0; }

:where(a, button, input, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--coral-deep);
	outline-offset: 3px;
}

.skip-link.screen-reader-text:focus { z-index: 1000; }

/* Small tracked label above headings */
.is-style-eyebrow,
.ghe-eyebrow {
	font-family: var(--wp--preset--font-family--lato);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-deep);
	margin-bottom: 0.75rem;
}

/* Thin gold rule */
.wp-block-separator.is-style-gold-rule {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--gold);
	width: 64px;
	margin-left: 0;
	opacity: 1;
}
.has-text-align-center + .wp-block-separator.is-style-gold-rule,
.wp-block-separator.is-style-gold-rule.aligncenter { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.ghe-announcement a { color: inherit; text-decoration: none; }
.ghe-announcement a:hover { text-decoration: underline; }

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }

/* Solid background: backdrop-filter would trap the mobile menu overlay inside the header. */
.ghe-header {
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.ghe-brand a { color: inherit; text-decoration: none; }
.ghe-header .wp-block-navigation a { text-decoration: none; }
.ghe-header .wp-block-navigation a:hover,
.ghe-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--coral-deep); }

@media (max-width: 599px) {
	.ghe-header .ghe-header-cta { display: none; }
	.ghe-header .wp-block-image img { width: 48px !important; height: 48px !important; }
	.ghe-brand .ghe-wordmark { font-size: 1.35rem !important; }
}

/* Mobile menu overlay */
.ghe-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: center;
	padding-top: 4rem;
}
.ghe-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: center;
	gap: 1.5rem;
}
.ghe-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 2rem;
	font-style: italic;
	letter-spacing: 0;
	text-transform: none;
}

.ghe-nowrap { white-space: nowrap; }

/* ---------- Cards & sections ---------- */
.ghe-card {
	height: 100%;
	transition: transform .35s ease, box-shadow .35s ease;
}
.ghe-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -24px rgba(43, 36, 32, .35);
}
@media (prefers-reduced-motion: reduce) {
	.ghe-card, .ghe-card:hover { transition: none; transform: none; }
}

.ghe-price {
	font-family: var(--wp--preset--font-family--cormorant);
	font-style: italic;
}

.ghe-step-number {
	font-family: var(--wp--preset--font-family--cormorant);
	font-style: italic;
	line-height: 1;
	color: var(--wp--preset--color--coral);
}

.ghe-quote {
	margin: 0;
	height: 100%;
	font-size: clamp(1.15rem, 1.6vw, 1.3rem) !important;
}
.ghe-quote cite {
	display: block;
	margin-top: 1.25rem;
	font-family: var(--wp--preset--font-family--lato);
	font-style: normal;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-deep);
}
.ghe-quote::before {
	content: "\201C";
	display: block;
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 4rem;
	line-height: .6;
	color: var(--wp--preset--color--gold);
	margin-bottom: .75rem;
}

/* Images inside rounded arch frame */
.is-style-arch img { border-radius: 999px 999px 0 0; }

/* ---------- FAQ (core/details) ---------- */
.ghe-faq .wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 1.25rem 0;
}
.ghe-faq .wp-block-details summary {
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: var(--wp--preset--font-size--large);
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
.ghe-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.ghe-faq .wp-block-details summary::after {
	content: "+";
	font-family: var(--wp--preset--font-family--lato);
	color: var(--wp--preset--color--coral-deep);
	transition: transform .25s ease;
}
.ghe-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }
.ghe-faq .wp-block-details > :not(summary) { margin-top: .75rem; color: var(--wp--preset--color--muted); }

/* ---------- Before / after slider ---------- */
.ghe-compare {
	position: relative;
	overflow: hidden;
	gap: 0 !important;
	aspect-ratio: 3 / 2;
	--pos: 50%;
}
.ghe-compare > .wp-block-image { margin: 0 !important; }
.ghe-compare > .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ghe-compare.is-ready > .wp-block-image {
	position: absolute;
	inset: 0;
}
.ghe-compare.is-ready > .wp-block-image:last-of-type { clip-path: inset(0 0 0 var(--pos)); }
.ghe-compare-label {
	position: absolute;
	bottom: 1rem;
	z-index: 2;
	padding: .3rem .7rem;
	font-family: var(--wp--preset--font-family--lato);
	font-size: .7rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	background: rgba(250, 246, 238, .9);
	color: var(--wp--preset--color--ink);
	pointer-events: none;
}
.ghe-compare-label.is-before { left: 1rem; }
.ghe-compare-label.is-after { right: 1rem; }
.ghe-compare-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos);
	z-index: 2;
	width: 2px;
	margin-left: -1px;
	background: var(--wp--preset--color--base);
	pointer-events: none;
}
.ghe-compare-handle::after {
	content: "\2194";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	transform: translate(-50%, -50%);
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--coral-deep);
	font-size: 1.1rem;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
.ghe-compare-range {
	position: absolute;
	inset: 0;
	z-index: 3;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
	touch-action: pan-y;
}
.ghe-compare-range:focus-visible + .ghe-compare-handle::after {
	outline: 2px solid var(--wp--preset--color--coral-deep);
	outline-offset: 3px;
}

/* ---------- Fluent Forms (contact form) ---------- */
.fluentform { font-family: var(--wp--preset--font-family--lato); }
.fluentform .ff-el-input--label label { font-weight: 400; color: var(--wp--preset--color--ink); }
.fluentform .ff-el-form-control {
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 0 !important;
	background: var(--wp--preset--color--white) !important;
	color: var(--wp--preset--color--ink) !important;
	padding: .8rem 1rem !important;
	font-size: 1rem !important;
}
.fluentform .ff-el-form-control:focus {
	border-color: var(--wp--preset--color--gold) !important;
	box-shadow: 0 0 0 3px rgba(212, 147, 41, .18) !important;
	outline: none;
}
.fluentform input[type="checkbox"],
.fluentform input[type="radio"] { accent-color: var(--wp--preset--color--coral-deep); }
.fluentform .ff-btn-submit,
.fluentform .ff_btn_style {
	background: var(--wp--preset--color--coral-deep) !important;
	color: var(--wp--preset--color--white) !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 1rem 2.25rem !important;
	font-family: var(--wp--preset--font-family--lato) !important;
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 700 !important;
	letter-spacing: .2em !important;
	text-transform: uppercase !important;
	transition: background .2s ease;
}
.fluentform .ff-btn-submit:hover,
.fluentform .ff-btn-submit:focus-visible { background: var(--wp--preset--color--ink) !important; }
.fluentform .ff-message-success {
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--white);
	box-shadow: none;
}

/* ---------- Footer ---------- */
.ghe-footer a { text-decoration: none; }
.ghe-footer a:hover { text-decoration: underline; }
.ghe-footer .wp-block-social-links .wp-social-link { color: var(--wp--preset--color--base); }
