/* Architect Request Wizard - Portfolio Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;600;700&display=swap');

:root {
	--arw-portfolio-bg: #222222;
	--arw-portfolio-panel: #27282D;
	--arw-portfolio-text: #F5F5F5;
	--arw-portfolio-muted: #B8B8B8;
	--arw-portfolio-gold: #C5AD69;
	--arw-portfolio-gold-hover: #a8914b;
	--arw-portfolio-font: 'Outfit', sans-serif;
	--arw-overlay: rgba(0, 0, 0, 0.4);
}

/* Base Wrapper */
.arw-portfolio-wrapper {
	background-color: var(--arw-portfolio-bg);
	color: var(--arw-portfolio-text);
	font-family: var(--arw-portfolio-font);
	margin: 0;
	padding: 40px 20px;
	box-sizing: border-box;
	line-height: 1.6;
	letter-spacing: 0.5px;
}

.arw-portfolio-container {
	max-width: 1200px;
	margin: 0 auto;
}

/* Project Header / Title */
.arw-portfolio-title-section {
	margin-bottom: 30px;
}

.arw-portfolio-title {
	font-size: 3rem;
	font-weight: 300;
	margin: 0 0 10px 0;
	color: var(--arw-portfolio-text);
	letter-spacing: 1px;
}

.arw-portfolio-subtitle {
	font-size: 1.2rem;
	font-weight: 400;
	color: var(--arw-portfolio-gold);
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 2px;
}

/* Gallery Grid */
.arw-portfolio-gallery {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 170px 170px 170px;
	gap: 15px;
	margin-bottom: 50px;
}

.arw-gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	background: #111;
}

.arw-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.arw-gallery-item:hover img {
	transform: scale(1.05);
}

.arw-gallery-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

/* Specific Grid Items mapping to visual */
.arw-gallery-item-1 {
	grid-column: 1;
	grid-row: 1 / span 3;
}

.arw-gallery-item-2 {
	grid-column: 2;
	grid-row: 1;
}

.arw-gallery-item-3 {
	grid-column: 2;
	grid-row: 2;
}

.arw-gallery-item-4 {
	grid-column: 3;
	grid-row: 1 / span 2;
}

.arw-gallery-item-5 {
	grid-column: 2;
	grid-row: 3;
}

/* Remaining image counter tile (+N) */
.arw-gallery-item-6 {
	grid-column: 3;
	grid-row: 3;
}

.arw-gallery-remaining-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(39, 40, 45, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.2rem;
	font-weight: 300;
	color: var(--arw-portfolio-gold);
	transition: background 0.3s ease;
	pointer-events: none;
}

.arw-gallery-item:hover .arw-gallery-remaining-overlay {
	background: rgba(39, 40, 45, 0.7);
}

/* If there are exactly 5 images, make the 5th image span the empty space in Column 3 */
.arw-portfolio-gallery:not(.arw-gallery-single):not(.arw-gallery-double):not(.arw-gallery-triple):not(.arw-gallery-quad) .arw-gallery-item:nth-child(5):last-child {
	grid-column: 2 / span 2;
}

/* Optional Video Trigger Overlay on Main Image */
.arw-video-trigger {
	position: absolute;
	bottom: 25px;
	left: 25px;
	z-index: 10;
	background: rgba(39, 40, 45, 0.85);
	border: 1px solid var(--arw-portfolio-gold);
	color: var(--arw-portfolio-text);
	padding: 10px 20px;
	border-radius: 30px;
	cursor: pointer;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: all 0.3s ease;
	font-family: var(--arw-portfolio-font);
}

.arw-video-trigger:hover {
	background: var(--arw-portfolio-gold);
	color: var(--arw-portfolio-bg);
}

.arw-video-icon {
	width: 12px;
	height: 12px;
	fill: currentColor;
}

/* Description and Details Section */
.arw-portfolio-details-section {
	margin-bottom: 50px;
}

.arw-portfolio-details-card {
	width: 100%;
}

.arw-details-title {
	font-size: 1.8rem;
	font-weight: 400;
	color: var(--arw-portfolio-gold);
	margin: 0 0 10px 0;
	text-transform: capitalize;
	letter-spacing: 1px;
}

.arw-details-subtitle {
	font-size: 1.2rem;
	color: var(--arw-portfolio-text);
	margin: 0 0 20px 0;
	font-weight: 300;
}

/* Metadata Row - Horizontal */
.arw-portfolio-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 25px;
	margin-bottom: 25px;
}

.arw-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.95rem;
}

.arw-meta-icon {
	color: var(--arw-portfolio-gold);
	display: flex;
	align-items: center;
}

.arw-meta-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor !important;
}

.arw-meta-label {
	color: var(--arw-portfolio-muted);
}

.arw-meta-value {
	font-weight: 600;
	color: var(--arw-portfolio-text);
}

.arw-details-separator {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	margin: 20px 0;
}

.arw-details-description {
	font-size: 1.05rem;
	color: var(--arw-portfolio-muted);
	line-height: 1.7;
}

.arw-details-description p {
	margin: 0 0 15px 0;
}

.arw-details-right p:first-child {
	margin-top: 0;
}

/* Before / After Slider Section */
.arw-before-after-section {
	margin-bottom: 70px;
}

.arw-ba-title {
	font-size: 1.8rem;
	font-weight: 300;
	color: var(--arw-portfolio-gold);
	margin-bottom: 25px;
	text-transform: uppercase;
	letter-spacing: 2px;
	text-align: center;
}

.arw-before-after {
	position: relative;
	width: 100%;
	border-radius: 6px;
	user-select: none;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	overflow: hidden;
}

.arw-ba-after {
	width: 100%;
	height: auto;
	display: block;
	pointer-events: none;
}

.arw-ba-before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
	clip-path: inset(0 calc(100% - var(--exposure, 50%)) 0 0);
}

.arw-ba-divider {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--exposure, 50%);
	width: 2px;
	background: var(--arw-portfolio-gold);
	cursor: ew-resize;
	z-index: 5;
}

.arw-ba-handle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	background: var(--arw-portfolio-panel);
	border: 2px solid var(--arw-portfolio-gold);
	border-radius: 50%;
	cursor: ew-resize;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
	outline: none;
	padding: 0;
	transition: background 0.3s, transform 0.2s;
}

.arw-ba-handle:hover {
	background: var(--arw-portfolio-gold);
	transform: translate(-50%, -50%) scale(1.1);
}

.arw-ba-handle svg {
	width: 16px;
	height: 16px;
	fill: var(--arw-portfolio-gold);
	transition: fill 0.3s;
}

.arw-ba-handle:hover svg {
	fill: var(--arw-portfolio-panel);
}

/* Before / After labels */
.arw-ba-label {
	position: absolute;
	bottom: 20px;
	background: rgba(39, 40, 45, 0.8);
	color: var(--arw-portfolio-text);
	padding: 6px 14px;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	border-radius: 4px;
	z-index: 4;
	pointer-events: none;
}

.arw-ba-label-before {
	left: 20px;
}

.arw-ba-label-after {
	right: 20px;
}

/* Project Specific CTA Section */
.arw-project-cta-section {
	background: var(--arw-portfolio-panel);
	border-radius: 6px;
	padding: 50px 30px;
	text-align: center;
	margin-bottom: 70px;
	border: 1px solid rgba(255, 255, 255, 0.05);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.arw-project-cta-heading {
	color: white;
	font-size: 2.2rem;
	font-weight: 300;
	margin: 0 0 10px 0;
	letter-spacing: 1px;
}

.arw-project-cta-subheading {
	font-size: 1.1rem;
	color: var(--arw-portfolio-muted);
	margin: 0 0 30px 0;
}

.arw-portfolio-btn {
	background: var(--arw-portfolio-gold);
	color: #000;
	border: none;
	padding: 16px 36px;
	font-size: 0.95rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 2px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: var(--arw-portfolio-font);
	text-decoration: none;
	display: inline-block;
}

.arw-portfolio-btn:hover {
	background: var(--arw-portfolio-gold-hover);
	box-shadow: 0 5px 15px rgba(197, 173, 105, 0.4);
}

/* Global Bottom CTA Bar */
.arw-bottom-cta-section {
	background: #191a1d;
	padding: 30px 20px;
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.arw-bottom-cta-container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.arw-bottom-cta-heading {
	font-size: 1.4rem;
	font-weight: 300;
	margin: 0;
	letter-spacing: 1.5px;
	color: var(--arw-portfolio-text);
	text-transform: uppercase;
}

/* Modal Popup Framework for Video and Request Wizard */
.arw-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
	padding: 20px;
}

.arw-modal-overlay.arw-modal-active {
	opacity: 1;
	pointer-events: auto;
}

.arw-modal-card {
	background: var(--arw-portfolio-panel);
	border-radius: 8px;
	border: 1px solid var(--arw-portfolio-gold);
	max-width: 800px;
	width: 100%;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
	position: relative;
	transform: scale(0.9);
	transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.arw-modal-overlay.arw-modal-active .arw-modal-card {
	transform: scale(1);
}

.arw-modal-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	color: var(--arw-portfolio-text);
	font-size: 2rem;
	cursor: pointer;
	outline: none;
	transition: color 0.3s;
}

.arw-modal-close:hover {
	color: var(--arw-portfolio-gold);
}

/* Video Modal Iframe Responsiveness */
.arw-video-container {
	position: relative;
	padding-bottom: 56.25%;
	/* 16:9 ratio */
	height: 0;
	overflow: hidden;
	border-radius: 6px;
}

.arw-video-container iframe,
.arw-video-container video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Override wizard styles inside modal overlay to match dark portfolio brand */
.arw-modal-card #arw-wizard-container {
	background: var(--arw-portfolio-panel) !important;
	border: none !important;
	box-shadow: none !important;
	max-width: 100%;
	margin: 0;
	padding: 30px;
}

.arw-modal-card .arw-wizard-card {
	background: transparent !important;
	padding: 0 !important;
	box-shadow: none !important;
	border: none !important;
}

.arw-modal-card .arw-question-title {
	color: var(--arw-portfolio-text) !important;
	font-weight: 300;
}

.arw-modal-card .arw-option-btn {
	background: var(--arw-portfolio-bg) !important;
	border-color: rgba(255, 255, 255, 0.08) !important;
	color: var(--arw-portfolio-muted) !important;
}

.arw-modal-card .arw-option-btn:hover,
.arw-modal-card .arw-option-btn.arw-selected {
	border-color: var(--arw-portfolio-gold) !important;
	color: var(--arw-portfolio-gold) !important;
	background: rgba(197, 173, 105, 0.05) !important;
}

.arw-modal-card .arw-input,
.arw-modal-card .arw-input-area {
	background: var(--arw-portfolio-bg) !important;
	border-color: rgba(255, 255, 255, 0.08) !important;
	color: var(--arw-portfolio-text) !important;
}

.arw-modal-card .arw-input:focus {
	border-color: var(--arw-portfolio-gold) !important;
}

.arw-modal-card .arw-btn-next,
.arw-modal-card .arw-btn-calc {
	background: var(--arw-portfolio-gold) !important;
	color: #000 !important;
}

.arw-modal-card .arw-btn-next:hover,
.arw-modal-card .arw-btn-calc:hover {
	background: var(--arw-portfolio-gold-hover) !important;
}

.arw-modal-card .arw-step-indicator {
	color: var(--arw-portfolio-muted) !important;
}

.arw-modal-card .arw-progress-bar {
	background: rgba(255, 255, 255, 0.08) !important;
}

.arw-modal-card .arw-progress-fill {
	background: var(--arw-portfolio-gold) !important;
}

.arw-modal-card .arw-footer-badge {
	display: none !important;
}

/* Responsiveness adjustments */
@media (max-width: 1024px) {
	.arw-portfolio-gallery {
		grid-template-rows: 140px 140px 140px;
	}

	.arw-before-after {
		/* height is driven by image — no fixed override needed */
	}
}

@media (max-width: 768px) {
	.arw-portfolio-title {
		font-size: 2.2rem;
	}

	.arw-portfolio-gallery {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 250px 120px 120px;
		gap: 10px;
	}

	.arw-gallery-item-1 {
		grid-column: 1 / span 2;
		grid-row: 1;
	}

	.arw-gallery-item-2 {
		grid-column: 1;
		grid-row: 2;
	}

	.arw-gallery-item-3 {
		grid-column: 2;
		grid-row: 2;
	}

	.arw-gallery-item-4 {
		grid-column: 1;
		grid-row: 3;
	}

	.arw-gallery-item-6 {
		grid-column: 2;
		grid-row: 3;
	}

	.arw-gallery-item-5 {
		display: none;
	}

	.arw-portfolio-details-section {
		margin-bottom: 35px;
	}

	.arw-before-after {
		/* height is driven by image — no fixed override needed */
	}

	.arw-bottom-cta-container {
		flex-direction: column;
		text-align: center;
	}

	.arw-project-cta-heading {
		font-size: 1.6rem;
	}
}

@media (max-width: 480px) {
	.arw-modal-card #arw-wizard-container {
		padding: 20px 15px !important;
	}
}

/* ─────────────────────────────────────────────
   Video Section – Play Button & Modal Lightbox
   ───────────────────────────────────────────── */

/* Play button thumbnail card */
.arw-video-section {
	margin-top: 32px;
}

.arw-video-play-btn {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	min-height: 220px;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	overflow: hidden;
	background-color: #1a1a1c;
	background-size: cover;
	background-position: center;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.arw-video-play-btn::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.45);
	transition: background 0.25s ease;
}

.arw-video-play-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 32px rgba(0,0,0,0.55);
}

.arw-video-play-btn:hover::before {
	background: rgba(0,0,0,0.3);
}

.arw-play-icon {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgba(0,0,0,0.5);
	border: 2px solid var(--arw-portfolio-gold, #c9b067);
	transition: transform 0.2s ease, background 0.2s ease;
}

.arw-video-play-btn:hover .arw-play-icon {
	transform: scale(1.12);
	background: rgba(201,176,103,0.18);
}

.arw-play-icon svg {
	filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.arw-video-label {
	position: relative;
	z-index: 1;
	color: #fff;
	font-family: var(--arw-portfolio-font, 'Outfit', sans-serif);
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

/* Modal overlay */
.arw-video-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
}

.arw-video-modal--open {
	display: flex;
}

.arw-video-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.88);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	animation: arwFadeIn 0.25s ease;
}

.arw-video-modal-inner {
	position: relative;
	z-index: 1;
	width: 90vw;
	max-width: 900px;
	animation: arwSlideUp 0.3s cubic-bezier(0.34, 1.26, 0.64, 1);
}

.arw-video-modal-close {
	position: absolute;
	top: -44px;
	right: 0;
	background: transparent;
	border: 1px solid rgba(255,255,255,0.3);
	color: #fff;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, border-color 0.2s;
}

.arw-video-modal-close:hover {
	background: rgba(201,176,103,0.25);
	border-color: var(--arw-portfolio-gold, #c9b067);
	color: var(--arw-portfolio-gold, #c9b067);
}

.arw-video-embed-wrap {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 */
	background: #000;
	border-radius: 10px;
	overflow: hidden;
}

/* For Shorts/Reels (vertical) override to 9:16 */
.arw-video-embed-wrap.arw-vertical {
	max-width: 400px;
	margin: 0 auto;
	padding-bottom: 177.78%;
}

.arw-video-embed {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

@keyframes arwFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes arwSlideUp {
	from { opacity: 0; transform: translateY(30px) scale(0.96); }
	to   { opacity: 1; transform: translateY(0)     scale(1); }
}

@media (max-width: 600px) {
	.arw-video-modal-inner { width: 96vw; }
	.arw-video-modal-close { top: -40px; }
	.arw-video-play-btn { min-height: 180px; }
}