/* ============================================================
   Ponte Villas — Contact page (Elementor Phase 4B)
   Loaded only on is_page('contact'). Prototype-specific
   composition only — shared mechanics (Global Colours/Fonts,
   --pv-gutter, .pv-reveal, focus-visible, body lock) already
   live in global.css and are reused as-is, not redefined here
   except where a page-local value (--pv-section-y) matches the
   same pattern already used independently by home.css/stay.css/
   room.css/experiences.css.
============================================================ */

:root {
	--pv-section-y: clamp(5rem, 13vw, 12rem);
}

.pv-contact-section > .e-con-inner,
.pv-contact-hero-inner > .e-con-inner,
.pv-contact-fullbleed-inner > .e-con-inner {
	padding-inline: var(--pv-gutter);
}

.pv-contact-eyebrow {
	font-family: "DM Sans", Arial, sans-serif;
	font-size: .66rem;
	font-weight: 500;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--e-global-color-muted, #6B6A63);
}

/* ============================================================
   1. PAGE HERO — dark image hero, bottom-aligned, 64svh.
   The image is never faded in and never carries .pv-reveal —
   it is the LCP element and must be visible without JavaScript.
============================================================ */

.pv-contact-hero {
	position: relative;
	min-height: 64svh;
	justify-content: flex-end;
	overflow: hidden;
	padding: 0;
	color: var(--e-global-color-ondark, #F1EFE9);
}

body.admin-bar .pv-contact-hero { min-height: calc(64svh - var(--pv-admin-bar)); }

.pv-contact-hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	margin: 0;
}

.pv-contact-hero-media .elementor-widget-container,
.pv-contact-hero-media figure { height: 100%; }

.pv-contact-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pv-contact-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(30, 36, 32, .34), rgba(30, 36, 32, .08) 45%, rgba(30, 36, 32, .6));
}

.pv-contact-hero-inner {
	position: relative;
	z-index: 2;
	padding-bottom: clamp(2.6rem, 6vw, 4.5rem);
}

.pv-contact-hero-inner > .e-con-inner { gap: 0; align-items: flex-start; }

.pv-contact-hero .pv-contact-eyebrow {
	margin-bottom: 1.1rem;
	color: rgba(241, 239, 233, .7);
}

.pv-contact-hero-title {
	max-width: 15ch;
	color: var(--e-global-color-ondark, #F1EFE9);
}

.pv-contact-hero-lead {
	max-width: 52ch;
	margin-top: 1.1rem;
	color: rgba(241, 239, 233, .85);
}

/* ============================================================
   2. INFO + FORM GRID
============================================================ */

.pv-contact-section { padding-block: var(--pv-section-y); }

.pv-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
	gap: clamp(2.5rem, 6vw, 6rem);
	align-items: start;
}

.pv-contact-info-block {
	padding-block: 1.3rem;
	border-bottom: 1px solid var(--e-global-color-line, rgba(43, 44, 40, .14));
}

.pv-contact-info-block:first-child { padding-top: 0; }

.pv-contact-info-label {
	display: block;
	margin-bottom: .6rem;
	font-family: "DM Sans", Arial, sans-serif;
	font-size: .62rem;
	font-weight: 500;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--e-global-color-muted, #6B6A63);
}

.pv-contact-info-value p {
	margin: 0;
	font-size: .98rem;
	line-height: 1.75;
}

.pv-contact-info-value a { color: var(--e-global-color-text, #2B2C28); }
.pv-contact-info-value a:hover { color: var(--e-global-color-secondary, #7E9481); }

.pv-contact-info-muted p { color: var(--e-global-color-muted, #6B6A63); }

.pv-contact-textlink { margin-top: .8rem; }

.pv-contact-textlink .elementor-button,
.pv-contact-textlink-native {
	display: inline-block;
	font-family: "DM Sans", Arial, sans-serif;
	font-size: .66rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--e-global-color-text, #2B2C28);
	background: none;
	border: 0;
	border-bottom: 1px solid var(--e-global-color-line, rgba(43, 44, 40, .14));
	border-radius: 0;
	padding: 0 0 .45rem;
	transition: border-color .45s var(--pv-ease), color .45s var(--pv-ease);
}

.pv-contact-textlink .elementor-button:hover,
.pv-contact-textlink-native:hover {
	color: var(--e-global-color-secondary, #7E9481);
	border-bottom-color: var(--e-global-color-secondary, #7E9481);
}

/* ---- WPForms — restyle the plugin's own markup to match the site's
   underlined-field aesthetic. Nothing here hides a validation error;
   .wpforms-error and aria-invalid states are left fully visible. ---- */

.pv-contact-form-embed .wpforms-container { margin: 0; }

.pv-contact-form-embed .wpforms-field-container { display: flex; flex-direction: column; gap: 1.4rem; }

.pv-contact-form-embed .wpforms-field { padding: 0; margin: 0; }

.pv-contact-form-embed .wpforms-field-label {
	display: block;
	margin-bottom: .5rem;
	font-family: "DM Sans", Arial, sans-serif;
	font-size: .62rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--e-global-color-muted, #6B6A63);
}

.pv-contact-form-embed .wpforms-required-label { color: #A8563C; }

.pv-contact-form-embed input[type="text"],
.pv-contact-form-embed input[type="email"],
.pv-contact-form-embed select,
.pv-contact-form-embed textarea {
	width: 100%;
	min-height: 44px;
	padding: .85rem 0;
	border: none;
	border-bottom: 1px solid var(--e-global-color-line, rgba(43, 44, 40, .14));
	border-radius: 0;
	background: none;
	font-family: "DM Sans", Arial, sans-serif;
	font-size: 1rem;
	color: var(--e-global-color-text, #2B2C28);
	transition: border-color .3s;
}

.pv-contact-form-embed textarea { resize: vertical; min-height: 110px; }

.pv-contact-form-embed input:focus,
.pv-contact-form-embed select:focus,
.pv-contact-form-embed textarea:focus {
	outline: none;
	border-bottom-color: var(--e-global-color-secondary, #7E9481);
}

.pv-contact-form-embed .wpforms-field.wpforms-has-error input,
.pv-contact-form-embed .wpforms-field.wpforms-has-error select,
.pv-contact-form-embed .wpforms-field.wpforms-has-error textarea,
.pv-contact-form-embed input.wpforms-error,
.pv-contact-form-embed select.wpforms-error,
.pv-contact-form-embed textarea.wpforms-error {
	border-bottom-color: #A8563C;
}

.pv-contact-form-embed label.wpforms-error {
	display: block;
	margin-top: .35rem;
	font-size: .76rem;
	color: #A8563C;
}

.pv-contact-form-embed .wpforms-submit-container { margin-top: .4rem; }

.pv-contact-form-embed .wpforms-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: .95rem 2.2rem;
	font-family: "DM Sans", Arial, sans-serif;
	font-size: .76rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--e-global-color-paper, #F4F2ED);
	background: var(--e-global-color-text, #2B2C28);
	border: 1px solid var(--e-global-color-text, #2B2C28);
	border-radius: 0;
	cursor: pointer;
	transition: background .4s var(--pv-ease), color .4s var(--pv-ease);
}

.pv-contact-form-embed .wpforms-submit:hover {
	background: var(--e-global-color-paper, #F4F2ED);
	color: var(--e-global-color-text, #2B2C28);
}

.pv-contact-form-embed .wpforms-confirmation-container-full {
	padding: 1.3rem 1.5rem;
	background: var(--e-global-color-sagewash, #E4E8DF);
	border-left: 2px solid var(--e-global-color-secondary, #7E9481);
	font-size: .94rem;
	color: var(--e-global-color-text, #2B2C28);
}

/* ============================================================
   3. FULL-BLEED BREAK
============================================================ */

.pv-contact-fullbleed {
	position: relative;
	min-height: clamp(20rem, 52vh, 34rem);
	justify-content: center;
	overflow: hidden;
	padding: 0;
	color: var(--e-global-color-ondark, #F1EFE9);
}

.pv-contact-fullbleed-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	margin: 0;
}

.pv-contact-fullbleed-media .elementor-widget-container,
.pv-contact-fullbleed-media figure { height: 100%; }

.pv-contact-fullbleed-media img { width: 100%; height: 100%; object-fit: cover; }

.pv-contact-fullbleed::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: rgba(30, 36, 32, .38);
}

.pv-contact-fullbleed-inner { position: relative; z-index: 2; }
.pv-contact-fullbleed-inner > .e-con-inner { align-items: center; }

.pv-contact-fullbleed-text p {
	max-width: 20ch;
	margin-inline: auto;
	font-size: clamp(1.4rem, 3.2vw, 2.6rem);
	line-height: 1.35;
}

/* ============================================================
   4. RESPONSIVE — the prototype's own breakpoints
============================================================ */

@media (max-width: 900px) {
	.pv-contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   5. REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {
	.pv-contact-textlink .elementor-button,
	.pv-contact-form-embed .wpforms-submit,
	.pv-contact-info-value a { transition-duration: .001ms; }
}

/* ============================================================
   6. Elementor editor canvas
============================================================ */

body.elementor-editor-active .pv-contact-hero,
body.elementor-editor-active .pv-contact-fullbleed {
	min-height: 0;
	background: var(--e-global-color-text, #2B2C28);
}

body.elementor-editor-active .pv-contact-hero-media,
body.elementor-editor-active .pv-contact-fullbleed-media {
	position: relative;
	inset: auto;
}

body.elementor-editor-active .pv-contact-hero::after,
body.elementor-editor-active .pv-contact-fullbleed::after { display: none; }