/**
 * NDC Homepage - Mockup-matched styles
 * Grand Strand / Myrtle Beach theme: blues, oranges, whites
 */

/* ===== NDC TEMPLATE (minimal layout - no theme constraints) ===== */
html.ndc-template,
body.ndc-template {
	overflow-x: hidden;
	margin: 0;
	padding: 0;
}

body.ndc-template .ndc-template__main {
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
}

body.ndc-template .ndc-homepage {
	width: 100%;
	max-width: none;
	left: auto;
	transform: none;
	margin-left: 0;
}

body.ndc-template .ndc-hero {
	width: 100%;
	max-width: none;
	margin-left: 0;
}

/* ===== BASE ===== */
.ndc-homepage {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	line-height: 1.5;
	color: #1e3a5f;
}

.ndc-homepage *,
.ndc-homepage *::before,
.ndc-homepage *::after {
	box-sizing: inherit;
}

.ndc-homepage img {
	max-width: 100%;
	height: auto;
	display: block;
}

.ndc-homepage a {
	text-decoration: none;
	color: inherit;
}

/* Full viewport width - breakout aligns left edge with viewport */
.ndc-homepage {
	width: 100vw;
	max-width: 100vw;
	position: relative;
	margin-left: calc(50% - 50vw);
}

/* Prevent horizontal scroll and ensure proper viewport alignment */
html:has(body.ndc-site-active),
html:has(body.ndc-homepage-active),
html:has(body.ndc-page-active) {
	overflow-x: hidden;
}

body.ndc-homepage-active,
body.ndc-page-active,
body.ndc-site-active {
	overflow-x: hidden;
	margin: 0;
	padding-left: 0;
	padding-right: 0;
}

/* Make content wrapper full width so breakout aligns correctly with viewport */
body.ndc-homepage-active main,
body.ndc-homepage-active .wp-block-post,
body.ndc-homepage-active .wp-block-post-content,
body.ndc-homepage-active .entry-content,
body.ndc-homepage-active .wp-block-group,
body.ndc-homepage-active .is-root-container,
body.ndc-homepage-active .has-global-padding,
body.ndc-page-active main,
body.ndc-page-active .wp-block-post,
body.ndc-page-active .wp-block-post-content,
body.ndc-page-active .entry-content,
body.ndc-page-active .wp-block-group,
body.ndc-site-active main,
body.ndc-site-active .wp-block-post,
body.ndc-site-active .wp-block-post-content,
body.ndc-site-active .entry-content,
body.ndc-site-active .wp-block-group,
body.ndc-site-active .is-root-container,
body.ndc-site-active .has-global-padding {
	max-width: none !important;
	width: 100% !important;
}

/* Remove theme padding that constrains content - critical for breakout centering */
body.ndc-homepage-active main,
body.ndc-homepage-active .wp-block-group,
body.ndc-homepage-active .wp-block-post-content,
body.ndc-homepage-active .entry-content,
body.ndc-homepage-active [class*="layout-constrained"],
body.ndc-site-active main,
body.ndc-site-active .wp-block-group,
body.ndc-site-active .wp-block-post-content,
body.ndc-site-active .entry-content,
body.ndc-site-active [class*="layout-constrained"] {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.ndc-homepage-active .wp-block-post-title,
body.ndc-homepage-active .entry-header,
body.ndc-homepage-active .page-header,
body.ndc-homepage-active h1.wp-block-post-title,
body.ndc-page-active .wp-block-post-title,
body.ndc-page-active .entry-header,
body.ndc-page-active .page-header,
body.ndc-page-active h1.wp-block-post-title,
body.ndc-site-active .wp-block-post-title,
body.ndc-site-active .entry-header,
body.ndc-site-active .page-header,
body.ndc-site-active h1.wp-block-post-title {
	display: none !important;
}

/* Hide theme header only - don't hide our .ndc-header */
body.ndc-homepage-active header.wp-block-template-part,
body.ndc-homepage-active .wp-block-template-part[data-block],
body.ndc-homepage-active > header:not(.ndc-header),
body.ndc-homepage-active > div > header:not(.ndc-header),
body.ndc-page-active header.wp-block-template-part,
body.ndc-page-active .wp-block-template-part[data-block],
body.ndc-page-active > header:not(.ndc-header),
body.ndc-page-active > div > header:not(.ndc-header),
body.ndc-site-active header.wp-block-template-part,
body.ndc-site-active .wp-block-template-part[data-block],
body.ndc-site-active > header:not(.ndc-header),
body.ndc-site-active > div > header:not(.ndc-header) {
	display: none !important;
}

/* Hide theme footer - NDC footer (.ndc-footer) shown via wp_footer, keep ours visible */
body.ndc-page-active footer.wp-block-template-part,
body.ndc-page-active .wp-block-template-part[data-block].wp-block-footer,
body.ndc-page-active > footer:not(.ndc-footer),
body.ndc-page-active .wp-block-template-part[data-type="core/template-part"][data-slug="footer"],
body.ndc-page-active > div > footer:not(.ndc-footer),
body.ndc-site-active footer.wp-block-template-part,
body.ndc-site-active .wp-block-template-part[data-block].wp-block-footer,
body.ndc-site-active > footer:not(.ndc-footer),
body.ndc-site-active .wp-block-template-part[data-type="core/template-part"][data-slug="footer"],
body.ndc-site-active > div > footer:not(.ndc-footer) {
	display: none !important;
}

/* Remove top padding/margin from content area */
body.ndc-homepage-active main,
body.ndc-homepage-active .wp-block-post,
body.ndc-homepage-active .entry-content,
body.ndc-homepage-active .has-global-padding,
body.ndc-homepage-active .is-root-container,
body.ndc-page-active .wp-block-post,
body.ndc-page-active .entry-content,
body.ndc-page-active .has-global-padding,
body.ndc-page-active .is-root-container,
body.ndc-site-active main,
body.ndc-site-active .wp-block-post,
body.ndc-site-active .entry-content,
body.ndc-site-active .has-global-padding,
body.ndc-site-active .is-root-container {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* 20px padding between header and content on all pages except homepage */
body.ndc-page-active .ndc-template__main,
body.ndc-page-active main {
	padding-top: 20px !important;
	margin-top: 0 !important;
}

/* Block theme root - remove top spacing */
body.ndc-homepage-active.has-global-padding,
body.ndc-homepage-active,
body.ndc-page-active.has-global-padding,
body.ndc-page-active,
body.ndc-site-active.has-global-padding,
body.ndc-site-active {
	padding-top: 0 !important;
}

/* ===== HEADER ===== */
.ndc-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.ndc-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.875rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.ndc-header__brand {
	font-size: 1.25rem;
	font-weight: 700;
	color: #1e3a5f;
	display: flex;
	align-items: center;
}

.ndc-header__brand:hover {
	color: #ea580c;
}

.ndc-header__logo {
	height: 88px;
	width: auto;
	max-width: 400px;
	object-fit: contain;
}

.ndc-header__nav-overlay {
	display: none;
}

.ndc-header__hamburger {
	display: none;
	width: 2.75rem;
	height: 2.75rem;
	min-width: 44px;
	min-height: 44px;
	padding: 0.375rem;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0.35rem;
	background: transparent;
	border: none;
	cursor: pointer;
	border-radius: 0.25rem;
	transition: background 0.2s;
}

.ndc-header__hamburger:hover {
	background: rgba(30, 58, 95, 0.08);
}

.ndc-header__hamburger-bar {
	display: block;
	width: 1.25rem;
	height: 2px;
	background: #1e3a5f;
	border-radius: 1px;
	transition: transform 0.25s, opacity 0.25s;
}

.ndc-header__hamburger.is-open .ndc-header__hamburger-bar:nth-child(1) {
	transform: translateY(0.4rem) rotate(45deg);
}

.ndc-header__hamburger.is-open .ndc-header__hamburger-bar:nth-child(2) {
	opacity: 0;
}

.ndc-header__hamburger.is-open .ndc-header__hamburger-bar:nth-child(3) {
	transform: translateY(-0.4rem) rotate(-45deg);
}

.ndc-header__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	align-items: center;
}

.ndc-header__link {
	font-size: 0.9375rem;
	font-weight: 500;
	color: #475569;
	transition: color 0.2s;
}

.ndc-header__link:hover {
	color: #ea580c;
}

@media (max-width: 767px) {
	.ndc-header__inner {
		padding: 0.75rem 1rem;
	}

	.ndc-header__logo {
		height: 56px;
	}

	.ndc-header__hamburger {
		display: flex;
	}

	.ndc-header__nav {
		position: fixed;
		top: 0;
		right: 0;
		width: min(85vw, 280px);
		height: 100vh;
		background: #fff;
		box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 4.5rem 1.5rem 1.5rem;
		z-index: 99;
		transform: translateX(100%);
		transition: transform 0.3s ease;
		overflow-y: auto;
	}

	.ndc-header__nav.is-open {
		transform: translateX(0);
	}

	.ndc-header__nav .ndc-header__link {
		padding: 0.875rem 0;
		font-size: 1rem;
		border-bottom: 1px solid rgba(30, 58, 95, 0.08);
	}

	.ndc-header__nav .ndc-header__link:last-child {
		border-bottom: none;
	}

	.ndc-header__nav-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.4);
		z-index: 98;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s, visibility 0.3s;
		pointer-events: none;
	}

	.ndc-header__nav-overlay.is-open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
}

/* ===== BUTTONS ===== */
.ndc-btn {
	display: inline-block;
	padding: 0.75rem 1.75rem;
	border-radius: 2rem;
	font-weight: 600;
	font-size: 1rem;
	text-align: center;
	transition: transform 0.2s, box-shadow 0.2s;
	cursor: pointer;
	border: 2px solid transparent;
}

.ndc-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ndc-btn--primary {
	background: #f97316;
	background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
	color: #fff;
	border-color: #ea580c;
}

.ndc-btn--primary:hover {
	background: #ea580c;
	background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
	color: #fff;
}

.ndc-btn--outline {
	background: #fff;
	color: #ea580c;
	border-color: #ea580c;
}

.ndc-btn--outline:hover {
	background: #fff;
	color: #c2410c;
	border-color: #c2410c;
}

.ndc-btn--sm {
	padding: 0.5rem 1.25rem;
	font-size: 0.875rem;
}

/* ===== 1. HERO - full viewport width ===== */
.ndc-hero {
	position: relative;
	width: 100vw;
	max-width: none;
	min-height: 65vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	margin-left: calc(50% - 50vw);
}

.ndc-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.2) 0%,
		rgba(0, 0, 0, 0.15) 50%,
		rgba(0, 0, 0, 0.25) 100%
	);
}

.ndc-hero__inner {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 2rem;
	max-width: 800px;
}

.ndc-hero__title {
	font-size: clamp(1.75rem, 4vw, 3rem);
	font-weight: 700;
	color: #fff;
	margin: 0 0 0.75rem;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
	line-height: 1.2;
}

.ndc-hero__subtitle {
	font-size: clamp(1rem, 1.8vw, 1.2rem);
	color: rgba(255, 255, 255, 0.95);
	margin: 0 0 1.5rem;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.ndc-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}

/* ===== 2. FEATURED DEALS (partners grid) ===== */
.ndc-deals {
	position: relative;
	padding: 4rem 0;
	background: #f8fafc;
}

.ndc-deals__container {
	position: relative;
	z-index: 2;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.ndc-deals__title {
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 700;
	color: #1e3a5f;
	text-align: center;
	margin: 0 0 2.5rem;
}

.ndc-deals__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.ndc-deals__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ndc-deal-card {
	position: relative;
	background: #fff;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s, box-shadow 0.2s;
}

.ndc-deal-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.ndc-deal-card__link {
	display: block;
	position: relative;
	text-decoration: none;
}

.ndc-deal-card__image {
	width: 100%;
	height: auto;
	display: block;
	vertical-align: middle;
	object-fit: contain;
	background: #fff;
}

.ndc-deal-card__button {
	display: block;
	text-align: center;
	padding: 0.75rem 1rem;
	background: #f97316;
	background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
	color: #fff;
	font-weight: 600;
	font-size: 0.875rem;
	transition: background 0.2s;
}

.ndc-deal-card__link:hover .ndc-deal-card__button {
	background: #ea580c;
	background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

/* Deal card as button - reset and match link styling */
.ndc-deal-card__trigger,
.ndc-partner-card__trigger {
	width: 100%;
	padding: 0;
	margin: 0;
	border: none;
	background: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
	text-align: left;
}

/* ===== Exclusive Partners page - 50% width, 2 columns, 3+ rows ===== */
.ndc-exclusive-partners {
	padding: 0 0 3rem;
}

.ndc-exclusive-partners__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 600px) {
	.ndc-exclusive-partners__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.ndc-deal-card--half {
	max-width: 100%;
}

/* ===== Deal Modal ===== */
.ndc-deal-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	pointer-events: none;
}

.ndc-deal-modal[hidden] {
	display: none;
}

.ndc-deal-modal:not([hidden]) {
	pointer-events: auto;
}

.ndc-deal-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	cursor: pointer;
}

.ndc-deal-modal__content {
	position: relative;
	z-index: 1;
	max-width: calc(100vw - 3rem);
	max-height: calc(100vh - 3rem);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: auto;
	padding: 1.5rem;
	box-sizing: border-box;
}

.ndc-deal-modal__card-wrap {
	position: relative;
	display: inline-block;
}

.ndc-deal-modal__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 2;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: none;
	background: rgba(255, 255, 255, 0.9);
	color: #1e3a5f;
	font-size: 1.125rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
	transition: background 0.2s, transform 0.2s;
}

.ndc-deal-modal__close:hover {
	background: #fff;
	transform: scale(1.05);
}

/* Full original size - scroll if larger than viewport */
.ndc-deal-modal__image {
	display: block;
	width: auto;
	height: auto;
	max-width: none;
	max-height: none;
	vertical-align: middle;
}

/* ===== Partner Modal (Exclusive Partners page) ===== */
.ndc-partner-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	pointer-events: none;
}

.ndc-partner-modal[hidden] {
	display: none;
}

.ndc-partner-modal:not([hidden]) {
	pointer-events: auto;
}

.ndc-partner-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	cursor: pointer;
}

.ndc-partner-modal__content {
	position: relative;
	z-index: 1;
	max-width: calc(100vw - 3rem);
	max-height: calc(100vh - 3rem);
	display: flex;
	flex-direction: column;
	overflow: auto;
	padding: 1.5rem;
	box-sizing: border-box;
	background: #fff;
	border-radius: 1rem;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.ndc-partner-modal__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 2;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: none;
	background: rgba(0, 0, 0, 0.08);
	color: #1e3a5f;
	font-size: 1.125rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.2s;
}

.ndc-partner-modal__close:hover {
	background: rgba(0, 0, 0, 0.12);
}

/* Card on top, info below - mobile-first */
.ndc-partner-modal__body {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding-top: 2rem;
}

.ndc-partner-modal__card-wrap {
	display: flex;
	justify-content: center;
	flex-shrink: 0;
}

.ndc-partner-modal__image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 35vh;
	object-fit: contain;
}

.ndc-partner-modal__details {
	flex: 1;
	min-width: 0;
	padding: 0 0.25rem;
}

.ndc-partner-modal__name {
	font-size: 1.25rem;
	font-weight: 700;
	color: #1e3a5f;
	margin: 0 0 0.5rem;
	line-height: 1.3;
}

.ndc-partner-modal__blurb {
	font-size: 0.9375rem;
	color: #475569;
	line-height: 1.5;
	margin: 0 0 0.75rem;
}

.ndc-partner-modal__address,
.ndc-partner-modal__phone,
.ndc-partner-modal__website,
.ndc-partner-modal__details-text {
	font-size: 0.875rem;
	color: #64748b;
	line-height: 1.5;
	margin: 0 0 0.375rem;
}

.ndc-partner-modal__website a {
	color: #ea580c;
	text-decoration: none;
	padding: 0.25em 0;
	display: inline-block;
	min-height: 44px;
	line-height: 44px;
}

.ndc-partner-modal__website a:hover {
	text-decoration: underline;
}

.ndc-partner-modal__details-text {
	margin-top: 0.75rem;
	margin-bottom: 0;
	padding-top: 0.75rem;
	border-top: 1px solid #e2e8f0;
	color: #475569;
	font-size: 0.875rem;
}

@media (min-width: 480px) {
	.ndc-partner-modal__image {
		max-height: 40vh;
	}

	.ndc-partner-modal__name {
		font-size: 1.35rem;
	}
}

/* ===== 3. HUDSON'S ===== */
.ndc-hudson {
	position: relative;
	padding: 4rem 0;
	background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
}

.ndc-hudson__container {
	position: relative;
	z-index: 2;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.ndc-hudson__panel {
	display: flex;
	align-items: stretch;
	gap: 2.5rem;
	background: #fff;
	border-radius: 1.25rem;
	overflow: hidden;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.ndc-hudson__image {
	flex: 0 0 42%;
	min-width: 280px;
	overflow: hidden;
}

.ndc-hudson__img {
	width: 100%;
	height: auto;
	display: block;
	vertical-align: middle;
}

.ndc-hudson__content {
	flex: 1;
	padding: 2rem 2.5rem;
}

.ndc-hudson__heading {
	font-size: 1.75rem;
	font-weight: 700;
	color: #1e3a5f;
	margin: 0 0 0.75rem;
}

.ndc-hudson__text {
	font-size: 1rem;
	color: #475569;
	margin: 0 0 1.5rem;
	line-height: 1.6;
}

@media (max-width: 767px) {
	.ndc-hudson__panel {
		flex-direction: column;
	}

	.ndc-hudson__image {
		flex: none;
		width: 100%;
		min-width: 100%;
	}

	.ndc-hudson__content {
		padding: 1.5rem;
	}
}

/* ===== 4. WHY ===== */
.ndc-why {
	position: relative;
	padding: 4rem 0;
	background: #f1f5f9;
}

.ndc-why__container {
	position: relative;
	z-index: 2;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.ndc-why__title {
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 700;
	color: #1e3a5f;
	text-align: center;
	margin: 0 0 2.5rem;
}

.ndc-why__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.ndc-why__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1200px) {
	.ndc-why__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.ndc-why-card {
	background: #fff;
	border-radius: 1rem;
	padding: 2rem;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s, box-shadow 0.2s;
}

.ndc-why-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.ndc-why-card__label {
	font-size: 1.25rem;
	font-weight: 700;
	color: #1e3a5f;
	margin: 0 0 0.75rem;
}

.ndc-why-card__text {
	font-size: 0.9375rem;
	color: #475569;
	margin: 0;
	line-height: 1.5;
}

/* ===== FOOTER (for ndc_page layouts) ===== */
.ndc-footer {
	background: linear-gradient(180deg, #1e3a5f 0%, #152a47 100%);
	color: rgba(255, 255, 255, 0.9);
	padding: 0;
	margin-top: 0;
	border-top: 3px solid #f97316;
}

.ndc-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.ndc-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem 3rem;
	padding: 2.5rem 0;
}

.ndc-footer__brand {
	flex: 1 1 200px;
}

.ndc-footer__brand-link {
	display: inline-block;
	color: #fff;
	text-decoration: none;
	font-size: 1.25rem;
	font-weight: 700;
	transition: color 0.2s ease;
}

.ndc-footer__brand-link:hover {
	color: #f97316;
}

.ndc-footer__logo {
	display: block;
	height: 44px;
	width: auto;
}

.ndc-footer__tagline {
	margin: 0.5rem 0 0;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.4;
	max-width: 220px;
}

.ndc-footer__nav {
	flex: 1 1 200px;
}

.ndc-footer__nav-title {
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.6);
	margin: 0 0 1rem;
}

.ndc-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.ndc-footer__links li {
	margin: 0;
}

.ndc-footer__link {
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.9375rem;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ndc-footer__link:hover {
	color: #f97316;
}

.ndc-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 1rem 0;
}

.ndc-footer__copy {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.65);
	margin: 0;
}

@media (max-width: 600px) {
	.ndc-footer__top {
		flex-direction: column;
		text-align: center;
		padding: 2rem 0;
	}

	.ndc-footer__brand {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.ndc-footer__tagline {
		text-align: center;
		max-width: none;
	}

	.ndc-footer__nav {
		width: 100%;
	}

	.ndc-footer__nav-title {
		text-align: center;
	}

	.ndc-footer__links {
		justify-content: center;
	}
}

/* ===== NDC PAGE WRAPPER ===== */
.ndc-page {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	line-height: 1.5;
	color: #1e3a5f;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.ndc-page__main {
	flex: 1;
	padding: 2rem 1.5rem;
}

.ndc-page__inner,
.ndc-template__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.ndc-page__main h2,
.ndc-template__main h2 {
	font-size: 1.75rem;
	font-weight: 700;
	color: #1e3a5f;
	margin: 0 0 1rem;
}

.ndc-page__main h2 + p,
.ndc-template__main h2 + p {
	margin: 0 0 1.5rem;
	color: #475569;
	line-height: 1.6;
}

.ndc-page *,
.ndc-page *::before,
.ndc-page *::after {
	box-sizing: inherit;
}

/* ===== WAVY BOTTOM ===== */
.ndc-wave {
	height: 80px;
	position: relative;
	overflow: hidden;
	background: linear-gradient(
		180deg,
		transparent 0%,
		rgba(191, 219, 254, 0.2) 100%
	);
}

.ndc-wave::before,
.ndc-wave::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	height: 100%;
	background-repeat: repeat-x;
	background-size: 400px 100%;
	animation: ndc-wave-move 8s linear infinite;
}

.ndc-wave::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40 Q100 0 200 40 T400 40 V80 H0 Z' fill='%237dd3fc' opacity='0.25'/%3E%3C/svg%3E");
	animation-duration: 6s;
	animation-direction: reverse;
}

.ndc-wave::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath d='M0 50 Q100 20 200 50 T400 50 V80 H0 Z' fill='%2338bdf8' opacity='0.15'/%3E%3C/svg%3E");
	animation-duration: 10s;
}

@keyframes ndc-wave-move {
	0% { background-position: 0 0; }
	100% { background-position: 400px 0; }
}
