/**
 * KOG · Contact page
 * -----------------------------------------------------------------------------
 * Scoped to the contact flow: hero → starting-point cards → inquiry form →
 * other inquiries → FAQ → closing band. Everything is namespaced
 * `.kog-contact-*`, with the form itself under `.kog-inquiry`.
 *
 * Colour, type and spacing come from theme.json presets. Entrance animation is
 * the shared `.kog-fade dN` stagger from blocks.css, which already carries the
 * prefers-reduced-motion override.
 */

/* ==========================================================================
   Shared section shells
   ========================================================================== */

.kog-contact-hero,
.kog-contact-paths,
.kog-contact-form-section,
.kog-contact-other,
.kog-contact-close {
	padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.kog-contact-paths,
.kog-contact-other {
	background: var(--wp--preset--color--warm-white);
}

.kog-contact-form-section {
	background: var(--wp--preset--color--cream);
}

/* ==========================================================================
   1. Hero
   ========================================================================== */

.kog-contact-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(68vh, 640px);
	/* Dark at the top so the overlay header's light nav stays legible, and
	   deepest at the bottom-left where the copy sits. */
	background-image:
		linear-gradient(
			180deg,
			rgba(12, 26, 18, 0.88) 0%,
			rgba(12, 26, 18, 0.62) 38%,
			rgba(12, 26, 18, 0.82) 100%
		),
		url('../images/contact-hero.jpg');
	background-size: cover;
	background-position: center 42%;
	padding-top: calc(var(--wp--preset--spacing--80) + clamp(3rem, 6vw, 5rem));
	padding-bottom: var(--wp--preset--spacing--70);
}

.kog-contact-hero__inner {
	width: 100%;
}

.kog-contact-hero__eyebrow {
	color: var(--wp--preset--color--gold-light) !important;
	margin: 0 !important;
}

.kog-contact-hero__headline {
	font-size: clamp(2.5rem, 5.2vw, 4.25rem) !important;
	line-height: 1.05 !important;
	letter-spacing: -0.015em;
	color: var(--wp--preset--color--warm-white) !important;
	margin: 1rem 0 0 !important;
	max-width: 18ch;
	text-wrap: balance;
}

.kog-contact-hero__lead {
	font-size: 1.0625rem !important;
	line-height: 1.75 !important;
	color: rgba(250, 248, 243, 0.86) !important;
	max-width: 58ch;
	margin: 1.75rem 0 0 !important;
}

.kog-contact-hero__lead--tight {
	margin-top: 0.75rem !important;
	color: var(--wp--preset--color--gold-light) !important;
}

/* ==========================================================================
   2. Starting-point cards
   ========================================================================== */

.kog-contact-paths {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}

.kog-contact-paths .kog-section-headline {
	/* margin-inline stays auto so the constrained layout keeps centring it. */
	margin: 0.75rem auto var(--wp--preset--spacing--50) !important;
}

.kog-contact-paths__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.25rem;
	margin-bottom: 1.25rem;
}

.kog-contact-path {
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	padding: 1.75rem 1.5rem 1.5rem;
	background: var(--wp--preset--color--cream);
	border: 1px solid var(--wp--preset--color--gold-border);
	text-decoration: none;
	transition: background 0.3s ease, transform 0.3s ease;
}

.kog-contact-path::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background: var(--wp--preset--color--gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s ease;
}

.kog-contact-path:hover,
.kog-contact-path:focus-visible {
	background: var(--wp--preset--color--gold-pale);
	transform: translateY(-2px);
}

.kog-contact-path:hover::after,
.kog-contact-path:focus-visible::after {
	transform: scaleX(1);
}

.kog-contact-path:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 3px;
}

.kog-contact-path__title {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--wp--preset--color--charcoal);
	margin: 0;
}

.kog-contact-path__copy {
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--wp--preset--color--gray);
	margin: 0.75rem 0 1.5rem;
}

.kog-contact-path__cta {
	margin-top: auto;
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}

.kog-contact-path--wide {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 2rem;
	background: var(--wp--preset--color--warm-white);
	border-style: dashed;
}

.kog-contact-path--wide .kog-contact-path__copy {
	flex: 1 1 320px;
	margin: 0;
}

.kog-contact-path--wide .kog-contact-path__cta {
	margin-top: 0;
}

/* ==========================================================================
   2b. Book-a-call scheduler
   The embed rules live in book.css; this is only what the contact page needs
   on top — it follows the starting-point cards on the same warm ground, so a
   hairline does the separating that a colour change does elsewhere.
   ========================================================================== */

.kog-contact-scheduler {
	border-top: 1px solid var(--wp--preset--color--gold-border);
	padding-inline: clamp(1.25rem, 5vw, 3rem);
	padding-block: var(--wp--preset--spacing--70) !important;
	scroll-margin-top: 6rem;
}

.kog-contact-scheduler .kog-book-scheduler__title {
	/* margin-inline stays auto so the constrained layout keeps centring it. */
	margin: 0.75rem auto 0 !important;
}

.kog-contact-scheduler__handoff {
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--wp--preset--color--gray);
	margin: 2rem auto 0 !important;
}

.kog-contact-scheduler__handoff a {
	color: var(--wp--preset--color--charcoal);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: var(--wp--preset--color--gold);
}

.kog-contact-scheduler__handoff a:hover,
.kog-contact-scheduler__handoff a:focus-visible {
	color: var(--wp--preset--color--gold);
}

/* ==========================================================================
   3. Inquiry form
   ========================================================================== */

.kog-contact-form-section {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}

.kog-inquiry {
	max-width: 820px;
	margin-inline: auto;
	scroll-margin-top: 6rem;
}

.kog-inquiry__intro .is-style-kog-eyebrow {
	margin: 0;
}

.kog-inquiry__headline {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: clamp(1.75rem, 3.4vw, 2.5rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--charcoal);
	margin: 0.75rem 0 var(--wp--preset--spacing--50);
	text-wrap: balance;
}

.kog-inquiry__headline em {
	font-style: italic;
	color: var(--wp--preset--color--gold);
}

.kog-inquiry__notice {
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 0.9375rem;
	line-height: 1.7;
	padding: 1rem 1.25rem;
	margin: 0 0 var(--wp--preset--spacing--40);
	border-left: 3px solid var(--wp--preset--color--gold);
	background: var(--wp--preset--color--gold-pale);
	color: var(--wp--preset--color--charcoal);
}

.kog-inquiry__notice--error {
	border-left-color: #9B3A2A;
	background: rgba(155, 58, 42, 0.08);
}

.kog-inquiry__notice a {
	color: inherit;
}

.kog-inquiry__form {
	background: var(--wp--preset--color--warm-white);
	border: 1px solid var(--wp--preset--color--gold-border);
	padding: clamp(1.5rem, 4vw, 2.75rem);
}

/* Honeypot — present for bots, gone for everyone else. */
.kog-inquiry__trap {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.kog-inquiry__grid {
	display: grid;
	/* Name / Organization / Work Email / Phone read best as two even pairs. */
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.kog-inquiry__grid--thirds {
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.kog-inquiry__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin: 0;
}

.kog-inquiry__field--full,
.kog-inquiry__grid {
	margin-top: 1.25rem;
}

.kog-inquiry__form > .kog-inquiry__grid:first-of-type {
	margin-top: 0;
}

.kog-inquiry__field--half {
	margin-top: 1.25rem;
	max-width: 320px;
}

.kog-inquiry__field label {
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--charcoal);
}

.kog-inquiry__req {
	color: var(--wp--preset--color--gold);
}

.kog-inquiry__field input,
.kog-inquiry__field select,
.kog-inquiry__field textarea {
	width: 100%;
	padding: 0.8rem 0.9rem;
	border: 1px solid var(--wp--preset--color--gold-border);
	border-radius: 4px;
	background: var(--wp--preset--color--warm-white);
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--wp--preset--color--charcoal);
	transition: border-color 200ms ease, box-shadow 200ms ease;
}

.kog-inquiry__field textarea {
	resize: vertical;
	min-height: 8rem;
}

.kog-inquiry__field input::placeholder,
.kog-inquiry__field textarea::placeholder {
	color: var(--wp--preset--color--gray);
}

.kog-inquiry__field input:focus-visible,
.kog-inquiry__field select:focus-visible,
.kog-inquiry__field textarea:focus-visible {
	outline: none;
	border-color: var(--wp--preset--color--gold);
	box-shadow: 0 0 0 3px rgba(196, 151, 58, 0.18);
}

.kog-inquiry__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
	margin-top: var(--wp--preset--spacing--40);
}

.kog-inquiry__submit {
	padding: 0.95rem 2rem;
	border: 0;
	border-radius: 6px;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--charcoal);
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 200ms ease, transform 200ms ease;
}

.kog-inquiry__submit:hover,
.kog-inquiry__submit:focus-visible {
	background: var(--wp--preset--color--gold-light);
	transform: translateY(-2px);
}

.kog-inquiry__microcopy {
	flex: 1 1 260px;
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 0.8125rem;
	line-height: 1.65;
	color: var(--wp--preset--color--gray);
	margin: 0;
}

/* ==========================================================================
   4. Other inquiries
   ========================================================================== */

.kog-contact-other {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

.kog-contact-other__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--wp--preset--spacing--50);
	max-width: 820px;
	margin-inline: auto;
	padding-top: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--preset--color--gold-border);
}

.kog-contact-other__item .is-style-kog-eyebrow {
	margin: 0;
}

.kog-contact-other__copy {
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--wp--preset--color--gray);
	margin: 0.75rem 0 0.5rem;
}

.kog-contact-other__email {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--wp--preset--color--charcoal);
	text-decoration: none;
	border-bottom: 1px solid var(--wp--preset--color--gold);
	padding-bottom: 2px;
	transition: color 200ms ease;
}

.kog-contact-other__email:hover,
.kog-contact-other__email:focus-visible {
	color: var(--wp--preset--color--gold);
}

/* ==========================================================================
   5. Closing band
   ========================================================================== */

.kog-contact-close {
	background: var(--wp--preset--color--forest);
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}

.kog-contact-close__headline {
	font-size: clamp(1.875rem, 3.8vw, 2.75rem) !important;
	line-height: 1.15 !important;
	color: var(--wp--preset--color--warm-white) !important;
	margin: 0 !important;
	text-wrap: balance;
}

.kog-contact-close__copy {
	font-family: var(--wp--preset--font-family--dm-sans) !important;
	font-size: 1.0625rem !important;
	line-height: 1.75 !important;
	color: rgba(250, 248, 243, 0.82) !important;
	margin: 1rem auto 0 !important;
	max-width: 46ch;
}

.kog-contact-close__button .wp-block-button__link {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--charcoal);
	border-radius: 6px;
	padding: 0.95rem 2rem;
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	transition: background 200ms ease, transform 200ms ease;
}

.kog-contact-close__button .wp-block-button__link:hover,
.kog-contact-close__button .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--gold-light);
	transform: translateY(-2px);
}

/* ==========================================================================
   6. FAQ sitting between the form and the closing band
   ========================================================================== */

.kog-contact-page .kog-faq-section {
	background: var(--wp--preset--color--warm-white);
	padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ==========================================================================
   Narrow screens
   ========================================================================== */

@media (max-width: 781px) {
	.kog-contact-hero {
		min-height: 0;
		padding-bottom: var(--wp--preset--spacing--60);
	}

	.kog-contact-path--wide {
		flex-direction: column;
		align-items: flex-start;
	}

	.kog-inquiry__footer {
		align-items: flex-start;
	}

	.kog-inquiry__grid {
		grid-template-columns: 1fr;
	}
}
