/**
 * Rastify Gears — Contact & Consultation Page Styles
 * Follows approved Rastify Gears design system (black, white, red, mono accents).
 * Fully responsive: 320px to 1920px.
 */

.rg-contact-page {
	background-color: #0a0a0a;
	color: #ffffff;
	min-height: 100vh;
}

/* ---------------------------------------------
   1. Contact Hero
--------------------------------------------- */
.rg-contact-hero {
	padding-top: clamp(3.5rem, 6vw, 6rem);
	padding-bottom: clamp(2rem, 4vw, 3.5rem);
	background: radial-gradient(circle at 50% 0%, rgba(195, 0, 18, 0.12) 0%, transparent 60%), #0a0a0a;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rg-contact-hero__inner {
	max-width: 900px;
	margin-inline: auto;
	text-align: center;
}

.rg-contact-hero .rg-eyebrow {
	font-family: var(--wp--preset--font-family--mono, 'DM Mono', monospace);
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--wp--preset--color--red, #c30012);
	margin-bottom: 1rem;
	display: inline-block;
}

.rg-contact-hero__title {
	font-family: var(--wp--preset--font-family--heading, 'Archivo', sans-serif);
	font-size: clamp(2rem, 4.5vw, 3.75rem);
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: #ffffff;
	margin: 0 0 1.5rem;
}

.rg-contact-hero__lede {
	font-size: clamp(1rem, 1.3vw, 1.25rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.75);
	max-width: 68ch;
	margin: 0 auto 2.5rem;
}

.rg-contact-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	align-items: center;
}

.rg-contact-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--mono, 'DM Mono', monospace);
	font-size: 0.75rem;
	color: #d4d4d8;
	text-decoration: none;
	transition: all 0.2s ease;
}

.rg-contact-chip:hover {
	background: rgba(195, 0, 18, 0.15);
	border-color: rgba(195, 0, 18, 0.4);
	color: #ffffff;
}

.rg-contact-chip__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--red, #c30012);
}

/* ---------------------------------------------
   2. Calendly Consultation Section (Following example.png)
--------------------------------------------- */
.rg-consultation-section {
	padding-block: clamp(3.5rem, 6vw, 6rem);
	background: #0d0d10;
}

.rg-consultation-card {
	background: #ffffff;
	color: #1a1a1a;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	display: grid;
	grid-template-columns: 380px 1fr;
	min-height: 720px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	max-width: 1100px;
	margin-inline: auto;
	position: relative;
}

/* Left Pane: Host, Branding & Details */
.rg-consultation-card__left {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border-right: 1px solid #e4e4e7;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #fafafa;
}

.rg-consultation-card__brand-bar {
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #e4e4e7;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.rg-consultation-card__logo {
	max-height: 48px;
	width: auto;
	display: block;
}

.rg-consultation-card__host {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.rg-consultation-card__avatar {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--wp--preset--color--red, #c30012);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	flex-shrink: 0;
}

.rg-consultation-card__host-info {
	display: flex;
	flex-direction: column;
}

.rg-consultation-card__host-name {
	font-family: var(--wp--preset--font-family--heading, 'Archivo', sans-serif);
	font-size: 1.1rem;
	font-weight: 700;
	color: #09090b;
	margin: 0;
}

.rg-consultation-card__host-title {
	font-size: 0.8125rem;
	color: #71717a;
	margin: 0.15rem 0 0;
}

.rg-consultation-card__title {
	font-family: var(--wp--preset--font-family--heading, 'Archivo', sans-serif);
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	font-weight: 700;
	color: #09090b;
	line-height: 1.25;
	margin: 0 0 1.25rem;
	letter-spacing: -0.01em;
}

.rg-consultation-card__meta {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.rg-consultation-card__meta-item {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	font-size: 0.875rem;
	color: #52525b;
	font-weight: 500;
}

.rg-consultation-card__meta-icon {
	width: 18px;
	height: 18px;
	color: #71717a;
	flex-shrink: 0;
}

.rg-consultation-card__desc {
	font-size: 0.875rem;
	line-height: 1.6;
	color: #52525b;
	margin: 0 0 1.5rem;
}

.rg-consultation-card__actions {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin-top: auto;
	padding-top: 1.25rem;
	border-top: 1px solid #e4e4e7;
}

.rg-consultation-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.7rem 1.25rem;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
	text-align: center;
}

.rg-consultation-btn--primary {
	background: var(--wp--preset--color--red, #c30012);
	color: #ffffff;
}

.rg-consultation-btn--primary:hover {
	background: #a0000f;
	color: #ffffff;
}

.rg-consultation-btn--secondary {
	background: #f4f4f5;
	color: #18181b;
	border: 1px solid #e4e4e7;
}

.rg-consultation-btn--secondary:hover {
	background: #e4e4e7;
	color: #09090b;
}

.rg-consultation-card__footer-links {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1rem;
	font-size: 0.75rem;
	color: #a1a1aa;
}

.rg-consultation-card__footer-links a {
	color: #71717a;
	text-decoration: none;
}

.rg-consultation-card__footer-links a:hover {
	color: var(--wp--preset--color--red, #c30012);
}

/* Right Pane: Embedded Calendly Widget */
.rg-consultation-card__right {
	position: relative;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	min-height: 650px;
}

.rg-consultation-card__right .calendly-inline-widget {
	width: 100%;
	height: 100%;
	min-height: 680px;
	border: none;
}

/* Calendly Ribbon / Branding */
.rg-consultation-card__corner-ribbon {
	position: absolute;
	top: 0;
	right: 0;
	width: 110px;
	height: 110px;
	overflow: hidden;
	pointer-events: none;
	z-index: 5;
}

.rg-consultation-card__corner-ribbon span {
	position: absolute;
	top: 22px;
	right: -28px;
	transform: rotate(45deg);
	display: block;
	width: 140px;
	background: #475569;
	color: #ffffff;
	font-family: var(--wp--preset--font-family--mono, 'DM Mono', monospace);
	font-size: 0.625rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-align: center;
	padding: 3px 0;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ---------------------------------------------
   3. Physical Facility & Communications Grid
--------------------------------------------- */
.rg-contact-info-section {
	padding-block: clamp(3.5rem, 6vw, 6rem);
	background: #0a0a0a;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rg-contact-info-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.rg-contact-info-card {
	background: #121216;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.rg-contact-info-card:hover {
	transform: translateY(-4px);
	border-color: rgba(195, 0, 18, 0.35);
}

.rg-contact-info-card__icon {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: rgba(195, 0, 18, 0.1);
	border: 1px solid rgba(195, 0, 18, 0.3);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--red, #c30012);
	margin-bottom: 1.25rem;
}

.rg-contact-info-card__icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.rg-contact-info-card__title {
	font-family: var(--wp--preset--font-family--heading, 'Archivo', sans-serif);
	font-size: 1.2rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #ffffff;
	margin: 0 0 0.75rem;
}

.rg-contact-info-card__address {
	font-style: normal;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #a1a1aa;
	margin: 0 0 1.25rem;
}

.rg-contact-info-card__address strong {
	color: #ffffff;
	display: block;
}

.rg-contact-info-card__link {
	font-family: var(--wp--preset--font-family--mono, 'DM Mono', monospace);
	font-size: 0.8125rem;
	color: var(--wp--preset--color--red, #c30012);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: auto;
	transition: gap 0.2s ease;
}

.rg-contact-info-card__link:hover {
	gap: 0.6rem;
	color: #ffffff;
}

/* ---------------------------------------------
   4. Responsive Breakpoints (320px - 1024px)
--------------------------------------------- */
@media (max-width: 992px) {
	.rg-consultation-card {
		grid-template-columns: 1fr;
		min-height: auto;
		min-width: 0;
	}

	.rg-consultation-card__left,
	.rg-consultation-card__right {
		min-width: 0;
	}

	.rg-consultation-card__left {
		border-right: none;
		border-bottom: 1px solid #e4e4e7;
	}

	.rg-consultation-card__right .calendly-inline-widget {
		min-width: 0 !important;
	}

	.rg-contact-info-grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
}

@media (max-width: 480px) {
	.rg-consultation-card__host {
		flex-direction: row;
		align-items: center;
	}

	.rg-consultation-card__avatar {
		width: 56px;
		height: 56px;
	}

	.rg-consultation-card__title {
		font-size: 1.15rem;
	}

	.rg-contact-info-card {
		padding: 1.5rem;
	}
}

@media (max-width: 360px) {
	.rg-consultation-card__left {
		padding: 1.25rem 1rem;
	}

	.rg-consultation-card__brand-bar {
		margin-bottom: 1rem;
		padding-bottom: 0.75rem;
	}

	.rg-consultation-btn {
		font-size: 0.8rem;
		padding: 0.6rem 0.85rem;
	}
}
