/**
 * NDC Hudson's Microsite Styles
 * Scoped to .ndc-hudsons-wrapper
 */

.ndc-hudsons-wrapper {
	width: 100%;
	padding: 0 1.5rem;
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
}

/* Hero */
.ndc-hudsons-hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.ndc-hudsons-logo-banner {
	display: flex;
	justify-content: center;
}

.ndc-hudsons-logo-banner img {
	width: min(420px, 100%);
	height: auto;
	border-radius: 1rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ndc-hudsons-hero-title {
	margin: 0 0 0.5rem;
	font-size: 2rem;
	font-weight: 800;
	color: #ea580c;
	letter-spacing: -0.02em;
}

.ndc-hudsons-tagline {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	line-height: 1.55;
	color: #475569;
}

.ndc-hudsons-hero-bullets {
	margin: 0 0 1rem 1.25rem;
	padding: 0;
}

.ndc-hudsons-hero-bullets li {
	margin: 0.35rem 0;
}

.ndc-hudsons-hero-meta {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.6;
	opacity: 0.9;
}

.ndc-hudsons-hero-meta a {
	color: #ea580c;
}

.ndc-hudsons-hero-meta a:hover {
	text-decoration: underline;
}

/* Vendor grid */
.hudsons-vendors-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	margin-top: 1.5rem;
}

.ndc-hudsons-vendor-card {
	background: #fff;
	border-radius: 1rem;
	padding: 1.25rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	border: 1px solid rgba(30, 58, 95, 0.06);
}

.ndc-hudsons-vendor-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ndc-hudsons-vendor-logo {
	width: 72px;
	height: 72px;
	border-radius: 1rem;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.ndc-hudsons-vendor-logo img {
	width: 80%;
	height: 80%;
	object-fit: contain;
}

.ndc-hudsons-vendor-name {
	font-size: 1.0625rem;
	font-weight: 700;
	color: #1e3a5f;
	margin: 0;
}

.ndc-hudsons-vendor-blurb {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.45;
	color: #64748b;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ndc-hudsons-vendor-actions {
	margin-top: auto;
	padding-top: 0.5rem;
}

.ndc-hudsons-vendor-trigger {
	width: 100%;
}

/* Vendor modals */
.ndc-vendor-modal-backdrop {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: rgba(0, 0, 0, 0.5);
	z-index: 99999;
}

.ndc-vendor-modal-backdrop.is-open {
	display: flex;
}

.ndc-vendor-modal {
	width: min(560px, 96vw);
	max-height: 88vh;
	overflow: auto;
	background: #fff;
	border-radius: 1rem;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	padding: 1.5rem;
	position: relative;
}

.ndc-vendor-modal-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.5rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: #fff;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	color: #64748b;
	transition: background 0.2s, color 0.2s;
}

.ndc-vendor-modal-close:hover {
	background: #f1f5f9;
	color: #1e3a5f;
}

.ndc-vendor-modal-logo {
	width: 80px;
	height: 80px;
	border-radius: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	margin-bottom: 0.75rem;
	overflow: hidden;
}

.ndc-vendor-modal-logo img {
	width: 75%;
	height: 75%;
	object-fit: contain;
}

.ndc-vendor-modal-photo {
	width: 100%;
	max-height: 40vh;
	overflow: hidden;
	border-radius: 0.75rem;
	margin: 1rem 0;
}

.ndc-vendor-modal-photo img {
	width: 100%;
	height: 100%;
	max-height: 40vh;
	object-fit: cover;
	display: block;
}

.ndc-vendor-modal-title {
	margin: 0 0 0.25rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: #1e3a5f;
}

.ndc-vendor-modal-sub {
	margin: 0 0 0.5rem;
	font-size: 0.9375rem;
	color: #64748b;
}

.ndc-vendor-meta {
	font-size: 0.875rem;
	line-height: 1.55;
	margin: 0.75rem 0 1rem;
	color: #475569;
}

.ndc-vendor-meta a {
	color: #ea580c;
}

.ndc-vendor-modal-details {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #475569;
}

.ndc-vendor-modal-details p {
	margin: 0 0 0.75rem;
}

.ndc-vendor-modal-details p:last-child {
	margin-bottom: 0;
}

/* Scroll lock when modal open */
body.ndc-modal-open {
	overflow: hidden !important;
}

/* Responsive */
@media (min-width: 600px) {
	.ndc-hudsons-hero {
		grid-template-columns: 1fr 1.2fr;
		align-items: start;
		gap: 2rem;
	}

	.ndc-hudsons-logo-banner {
		justify-content: flex-start;
	}

	.ndc-hudsons-hero-title {
		font-size: 2.25rem;
	}
}

@media (max-width: 600px) {
	.ndc-hudsons-wrapper {
		padding: 0 1rem;
	}

	.hudsons-vendors-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.ndc-hudsons-hero-title {
		font-size: 1.75rem;
	}

	.ndc-vendor-modal {
		padding: 1.25rem;
	}

	.ndc-vendor-modal-title {
		font-size: 1.25rem;
	}
}
