/**
 * Granish Contact — page template (channels + mail form).
 */

body.page-template-granish-contact .column-2,
body.page-template-granish-contact #sidebar,
body.page-template-granish-contact .sidebar,
body.page-template-granish-contact .widget-area {
	display: none !important;
}

body.page-template-granish-contact #content .column-1,
body.page-template-granish-contact #content .grid-8,
body.page-template-granish-contact #content .grids {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	margin: 0 !important;
	display: block !important;
}

.granish-contact {
	--granish-contact-max: 1120px;
	--granish-contact-font: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--granish-contact-accent: #ffcc0d;
	padding-bottom: 60px;
	background: #fff;
}

.granish-contact .wrapper.granish-contact-hero,
.granish-contact .wrapper.granish-contact-intro,
.granish-contact .wrapper.granish-contact-layout {
	width: min(var(--granish-contact-max), calc(100% - 40px)) !important;
	max-width: var(--granish-contact-max) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
}

.granish-contact .wrapper.granish-contact-hero {
	padding: 36px 20px 0;
}

.granish-contact-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 0 48px;
	align-items: center;
	margin: 0 0 8px;
}

.granish-contact-hero--text-only {
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
	text-align: center;
}

.granish-contact-hero--text-only .granish-contact-hero-text {
	max-width: 36em;
}

.granish-contact-title {
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: clamp(1.85rem, 3.6vw, 2.75rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #111;
	margin: 0 0 16px;
	background: none !important;
	padding: 0 !important;
}

.granish-contact-title::before,
.granish-contact-title::after {
	display: none !important;
	content: none !important;
}

.granish-contact-dek {
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: clamp(0.95rem, 1.4vw, 1.1rem);
	font-weight: 400;
	font-style: italic;
	line-height: 1.45;
	color: #555;
	margin: 0;
	max-width: 28em;
}

.granish-contact-hero--text-only .granish-contact-dek {
	margin-left: auto;
	margin-right: auto;
}

.granish-contact-hero-media {
	margin: 0;
	padding: 0;
	background: transparent;
	align-self: center;
}

.granish-contact-hero-figure {
	position: relative;
	margin: 0;
	padding: 0;
	line-height: 0;
	overflow: hidden;
	background: #f0f0f0;
}

.granish-contact-hero-media img,
.granish-contact-hero-media .wp-post-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(70vh, 640px);
	object-fit: cover;
	border-radius: 0 !important;
}

.granish-contact .wrapper.granish-contact-intro {
	padding: 28px 20px 0;
	max-width: 720px !important;
}

.granish-contact-content {
	font-family: var(--granish-contact-font);
	font-size: 1.05rem;
	line-height: 1.7;
	color: #222;
}

.granish-contact-content > *:first-child {
	margin-top: 0;
}

.granish-contact .wrapper.granish-contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 48px 56px;
	align-items: start;
	padding: 40px 20px 0;
}

.granish-contact-section-title {
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #111;
	margin: 0 0 22px;
	padding: 0 0 10px;
	border-bottom: 3px solid var(--granish-contact-accent);
	display: inline-block;
}

.granish-contact-channels {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.granish-contact-channel {
	margin: 0;
	padding: 0;
	font-family: var(--granish-contact-font);
}

.granish-contact-channel-label {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #777;
	margin: 0 0 4px;
}

.granish-contact-channel-value {
	font-size: 1.05rem;
	line-height: 1.45;
	color: #111;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s ease, color 0.2s ease;
}

a.granish-contact-channel-value:hover {
	color: #111;
	border-bottom-color: var(--granish-contact-accent);
}

.granish-contact-channel--telegram .granish-contact-channel-value,
.granish-contact-channel--facebook .granish-contact-channel-value,
.granish-contact-channel--instagram .granish-contact-channel-value,
.granish-contact-channel--youtube .granish-contact-channel-value,
.granish-contact-channel--twitter .granish-contact-channel-value {
	font-weight: 600;
}

.granish-contact-form {
	font-family: var(--granish-contact-font);
	margin: 0;
}

.granish-contact-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.granish-contact-status {
	margin: 0 0 18px;
	padding: 12px 14px;
	font-size: 0.95rem;
	line-height: 1.4;
}

.granish-contact-status--success {
	background: #f4f8ef;
	color: #2a4a1c;
	border-left: 3px solid #6a9a4a;
}

.granish-contact-status--error {
	background: #faf2f0;
	color: #6a2a20;
	border-left: 3px solid #c45a45;
}

.granish-contact-field {
	margin: 0 0 16px;
}

.granish-contact-field label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #333;
	margin: 0 0 6px;
}

.granish-contact-field input,
.granish-contact-field textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
	color: #111;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 0;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.granish-contact-field input:focus,
.granish-contact-field textarea:focus {
	outline: none;
	border-color: #111;
	box-shadow: inset 0 -2px 0 var(--granish-contact-accent);
}

.granish-contact-field textarea {
	min-height: 140px;
	resize: vertical;
}

.granish-contact-actions {
	margin: 22px 0 0;
}

.granish-contact-submit {
	appearance: none;
	-webkit-appearance: none;
	display: inline-block;
	margin: 0;
	padding: 12px 28px;
	font-family: "Bainsley", Georgia, "Times New Roman", serif;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #111;
	background: var(--granish-contact-accent);
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.granish-contact-submit:hover {
	filter: brightness(0.96);
}

.granish-contact-submit:active {
	transform: translateY(1px);
}

@media (max-width: 900px) {
	.granish-contact-hero {
		grid-template-columns: 1fr;
		gap: 28px;
		text-align: center;
	}

	.granish-contact-dek {
		margin-left: auto;
		margin-right: auto;
	}

	.granish-contact-hero-media img,
	.granish-contact-hero-media .wp-post-image {
		max-height: min(55vh, 420px);
	}

	.granish-contact .wrapper.granish-contact-layout {
		grid-template-columns: 1fr;
		gap: 36px;
	}
}
