/*
Theme Name: NE Chinese Food Astra Child
Theme URI: https://nechinesefood.com/
Description: Astra child theme for New England Chinese Food presentation and templates.
Author: NE Chinese Food
Template: astra
Version: 0.1.0
Text Domain: necf-astra-child
*/

:root {
	--necf-red: #a93427;
	--necf-ink: #24211d;
	--necf-muted: #6f675f;
	--necf-paper: #fbf8f2;
	--necf-gold: #c79234;
	--necf-jade: #28715b;
	--necf-line: #e3d8c7;
	--necf-white: #fffdf8;
}

.necf-home {
	background: var(--necf-paper);
	color: var(--necf-ink);
}

.necf-wrap {
	width: min(1160px, calc(100% - 36px));
	margin: 0 auto;
}

.necf-hero {
	display: grid;
	align-items: end;
	min-height: 68vh;
	background:
		radial-gradient(circle at 78% 24%, rgba(199, 146, 52, 0.32), transparent 26%),
		linear-gradient(135deg, rgba(36, 33, 29, 0.98), rgba(60, 43, 34, 0.96) 56%, rgba(40, 113, 91, 0.82)),
		linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
		linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
	background-size: auto, auto, 44px 44px, 44px 44px;
	color: #fff;
}

.necf-hero--data {
	position: relative;
}

.necf-hero--data::after {
	content: "";
	position: absolute;
	right: min(8vw, 90px);
	bottom: 64px;
	width: min(24vw, 260px);
	aspect-ratio: 1;
	background: url("assets/images/necf-logo-mark-512.png") center/contain no-repeat;
	opacity: 0.18;
	pointer-events: none;
}

.necf-hero__inner {
	width: min(1160px, calc(100% - 36px));
	margin: 0 auto;
	padding: 86px 0 70px;
}

.necf-eyebrow,
.necf-card__kicker,
.necf-guide-grid p {
	margin: 0 0 10px;
	color: var(--necf-gold);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.necf-hero h1,
.necf-section h2 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	letter-spacing: 0;
}

.necf-hero h1 {
	max-width: 820px;
	font-size: clamp(3rem, 7vw, 6.6rem);
	line-height: 0.95;
}

.necf-hero__copy {
	max-width: 680px;
	margin: 20px 0 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: 1.14rem;
}

.necf-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.necf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--necf-red);
	border-radius: 6px;
	background: var(--necf-red);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
}

.necf-button--secondary {
	border-color: rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.1);
}

.necf-search-strip {
	position: relative;
	z-index: 2;
	margin-top: -30px;
}

.necf-search-strip__inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	padding: 14px;
	border: 1px solid var(--necf-line);
	border-radius: 8px;
	background: var(--necf-white);
	box-shadow: 0 18px 38px rgba(54, 42, 31, 0.12);
}

.necf-search-strip a {
	display: flex;
	align-items: center;
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid var(--necf-line);
	border-radius: 6px;
	color: var(--necf-ink);
	font-weight: 750;
	text-decoration: none;
}

.necf-section {
	padding: 76px 0;
}

.necf-section--alt {
	border-top: 1px solid var(--necf-line);
	border-bottom: 1px solid var(--necf-line);
	background: var(--necf-white);
}

.necf-section--dark {
	background: var(--necf-ink);
	color: #fff;
}

.necf-section__heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.necf-section__heading h2,
.necf-section--dark h2 {
	max-width: 720px;
	font-size: clamp(2.1rem, 4vw, 3.4rem);
	line-height: 1;
}

.necf-section__heading p,
.necf-section--dark p {
	max-width: 500px;
	margin: 0;
	color: var(--necf-muted);
}

.necf-section--dark p {
	color: rgba(255, 255, 255, 0.78);
}

.necf-card-grid,
.necf-guide-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.necf-card-grid--five {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.necf-card,
.necf-guide-grid article,
.necf-term-card {
	border: 1px solid var(--necf-line);
	border-radius: 8px;
	background: var(--necf-white);
}

.necf-card__body,
.necf-guide-grid article {
	padding: 22px;
}

.necf-card h3,
.necf-guide-grid h3 {
	margin: 0 0 10px;
	font-size: 1.28rem;
	line-height: 1.2;
}

.necf-card h3 a {
	color: inherit;
	text-decoration: none;
}

.necf-card p,
.necf-guide-grid span {
	color: var(--necf-muted);
}

.necf-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 14px;
}

.necf-pills span,
.necf-pills a {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0 9px;
	border: 1px solid #eadfcd;
	border-radius: 999px;
	background: #f7efe2;
	color: #554b42;
	font-size: 0.78rem;
	font-weight: 750;
	text-decoration: none;
}

.necf-term-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.necf-term-card {
	display: grid;
	gap: 8px;
	min-height: 160px;
	padding: 18px;
	color: var(--necf-ink);
	text-decoration: none;
}

.necf-term-card strong {
	font-size: 1.25rem;
}

.necf-term-card span,
.necf-term-card em {
	color: var(--necf-muted);
}

.necf-term-card em {
	font-style: normal;
}

.necf-cuisine-list {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
}

.necf-cuisine-list a {
	display: grid;
	align-items: center;
	justify-content: center;
	min-height: 58px;
	padding: 10px;
	border: 1px solid var(--necf-line);
	border-radius: 8px;
	background: var(--necf-white);
	color: var(--necf-ink);
	font-weight: 850;
	text-align: center;
	text-decoration: none;
}

.necf-cuisine-list a span {
	display: block;
	color: var(--necf-muted);
	font-size: 0.76rem;
	font-weight: 700;
}

.necf-split {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	gap: 30px;
	align-items: center;
}

.necf-panel--dark {
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
}

.necf-panel--dark h2 {
	color: #fff;
}

.necf-dish-list {
	display: grid;
	gap: 10px;
}

.necf-dish-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 7px;
	color: #fff;
	text-decoration: none;
}

.necf-dish-list span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	border-radius: 999px;
	background: var(--necf-gold);
	color: var(--necf-ink);
	font-weight: 850;
}

.necf-stats {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 24px;
	align-items: end;
}

.necf-stats h2 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 4vw, 3.2rem);
	line-height: 1;
}

.necf-stats p:last-child {
	margin: 0;
	color: var(--necf-muted);
}

@media (max-width: 900px) {
	.necf-search-strip__inner,
	.necf-card-grid,
	.necf-term-grid,
	.necf-cuisine-list,
	.necf-split,
	.necf-guide-grid,
	.necf-stats {
		grid-template-columns: 1fr;
	}

	.necf-section__heading {
		display: grid;
	}

	.necf-hero--data::after {
		display: none;
	}
}

.necf-page-hero {
	padding: 70px 0;
	background: var(--necf-ink);
	color: #fff;
}

.necf-page-hero h1 {
	max-width: 820px;
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.7rem, 5.5vw, 5rem);
	line-height: 1;
	letter-spacing: 0;
}

.necf-page-hero p,
.necf-term-description {
	max-width: 760px;
	margin: 18px 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.08rem;
}

.necf-page-hero--restaurant {
	background: linear-gradient(135deg, var(--necf-ink), #503126);
}

.necf-restaurant-hero,
.necf-content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 28px;
	align-items: start;
}

.necf-fact-card,
.necf-panel,
.necf-main-content {
	border: 1px solid var(--necf-line);
	border-radius: 8px;
	background: var(--necf-white);
	color: var(--necf-ink);
}

.necf-fact-card,
.necf-panel {
	padding: 20px;
}

.necf-fact-card h2,
.necf-panel h2,
.necf-main-content h2 {
	margin: 0 0 14px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.35rem;
	line-height: 1.15;
}

.necf-fact-card p,
.necf-panel p {
	margin: 0 0 14px;
	color: var(--necf-muted);
}

.necf-main-content {
	padding: 28px;
}

.necf-main-content > *:last-child,
.necf-panel > *:last-child {
	margin-bottom: 0;
}

.necf-sidebar {
	display: grid;
	gap: 16px;
}

.necf-link-list {
	margin: 0;
	padding-left: 18px;
}

.necf-link-list a {
	color: var(--necf-red);
	font-weight: 750;
}

.necf-service-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.necf-service-grid div {
	padding: 10px;
	border: 1px solid var(--necf-line);
	border-radius: 6px;
	background: #fff;
}

.necf-service-grid strong,
.necf-service-grid span {
	display: block;
}

.necf-service-grid span {
	color: var(--necf-muted);
}

.necf-note {
	margin-top: 24px;
	padding: 14px;
	border-left: 4px solid var(--necf-gold);
	background: #f7efe2;
	color: #554b42;
}

.necf-pagination {
	margin-top: 30px;
}

@media (max-width: 900px) {
	.necf-restaurant-hero,
	.necf-content-grid {
		grid-template-columns: 1fr;
	}
}
