/* Components: buttons, arch window, brocade, ornament, foil, rating, tags, FAQ, forms */

/* ---------- Buttons ---------- */

.btn {
	--btn-h: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: var(--btn-h);
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 1px;
	font-family: var(--font-body);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn .icon {
	width: 18px;
	height: 18px;
	flex: none;
}

.btn-sm {
	--btn-h: 44px;
	padding: 0 18px;
	font-size: 0.74rem;
}

.btn-gold {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--ink);
	box-shadow: 0 10px 24px -14px rgba(210, 158, 14, 0.9);
}

.btn-gold:hover {
	background: var(--gold-hi);
	border-color: var(--gold-hi);
	color: var(--ink);
	box-shadow: 0 14px 30px -14px rgba(242, 210, 122, 0.9);
}

.btn-gold:active {
	transform: translateY(1px);
}

.btn-line {
	border-color: var(--line-strong);
	color: var(--gold-soft);
	background: transparent;
}

.btn-line:hover {
	border-color: var(--gold-hi);
	color: var(--gold-hi);
	background: rgba(210, 158, 14, 0.08);
}

.btn-text {
	padding-inline: 4px;
	color: var(--text);
	border-bottom: 1px solid transparent;
}

.btn-text .icon {
	color: var(--gold);
}

.btn-text:hover {
	color: var(--gold-hi);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 14px;
}

.actions-center {
	justify-content: center;
}

.actions-stack {
	flex-direction: column;
	align-items: stretch;
}

.actions-stack .btn-text {
	justify-content: center;
}

.actions-on-light .btn-line {
	color: var(--paper-ink);
	border-color: var(--gold-deep);
}

.actions-on-light .btn-line:hover {
	background: rgba(122, 89, 6, 0.08);
	color: var(--paper-ink);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--gold-soft);
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
}

.link-arrow .icon {
	width: 18px;
	height: 18px;
	transition: transform 0.35s var(--ease);
}

.link-arrow:hover .icon {
	transform: translateX(4px);
}

.link-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	margin-top: 36px;
}

/* ---------- Arch window (Mughal ogee arch) ---------- */

.arch {
	position: relative;
	aspect-ratio: 5 / 7;
	isolation: isolate;
}

.arch-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	-webkit-mask: url("../images/brand/arch-mask.svg") center / 100% 100% no-repeat;
	mask: url("../images/brand/arch-mask.svg") center / 100% 100% no-repeat;
}

.arch-line {
	position: absolute;
	inset: -14px;
	width: calc(100% + 28px);
	height: calc(100% + 14px);
	max-width: none;
	pointer-events: none;
	overflow: visible;
}

.arch-line path {
	fill: none;
	stroke: var(--gold);
	stroke-width: 1.25;
	opacity: 0.85;
}

.arch-line .arch-line-outer {
	stroke-width: 1;
	opacity: 0.45;
}

/* ---------- Section rule: double gold hairline with the crest-line ornament ---------- */

.section-rule {
	display: flex;
	align-items: center;
	gap: 22px;
	color: var(--gold);
}

.section-rule::before,
.section-rule::after {
	content: "";
	flex: 1;
	height: 4px;
	border-block: 1px solid var(--line-strong);
}

.section-rule .ornament {
	flex: none;
	width: 150px;
}

/* ---------- Brocade (the printed menu's paisley border) ---------- */

.brocade-strip {
	background: var(--ink) url("../images/brand/paisley-strip.webp") center top / 100% auto repeat-y;
}

/* ---------- Ornament ---------- */

.ornament {
	width: 200px;
	height: auto;
	color: var(--gold);
}

.ornament-sm {
	width: 120px;
}

/* ---------- Gold foil headline (one glint on load) ---------- */

.foil {
	color: var(--gold-soft);
	background-color: var(--gold-soft);
	background-image: linear-gradient(105deg, transparent 38%, #fff1c2 50%, transparent 62%);
	background-position: 120% 0;
	background-size: 260% 100%;
	background-repeat: no-repeat;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: foil-glint 2.4s var(--ease) 0.5s 1 both;
}

@keyframes foil-glint {
	from {
		background-position: 120% 0;
	}

	to {
		background-position: -20% 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.foil {
		animation: none;
	}
}

/* ---------- Rating ---------- */

.rating {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
	text-decoration: none;
}

.rating-stars {
	display: inline-flex;
	gap: 2px;
	color: var(--gold);
}

.rating-stars .icon {
	width: 15px;
	height: 15px;
}

.rating-text strong {
	color: var(--gold-soft);
	font-weight: 600;
}

.rating:hover .rating-text {
	color: var(--gold-hi);
}

.rating-footer {
	margin-top: 24px;
	flex-wrap: wrap;
}

/* ---------- Dietary tags ---------- */

.tags {
	display: inline-flex;
	gap: 5px;
	vertical-align: 0.12em;
	margin-left: 4px;
}

.tag {
	display: inline-block;
	padding: 1px 6px;
	border: 1px solid currentColor;
	border-radius: 1px;
	font-family: var(--font-body);
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.5;
	text-transform: uppercase;
	cursor: help;
}

.tag-veg {
	color: #8fc07f;
}

.tag-vegan {
	color: #7cc0ad;
}

.tag-mild {
	color: var(--gold-soft);
}

.tag-hot {
	color: #e0846b;
}

/* ---------- Dotted price leader ---------- */

.dish-leader {
	flex: 1;
	min-width: 24px;
	margin: 0 12px;
	border-bottom: 1px dotted var(--line-strong);
	transform: translateY(-0.35em);
}

.price-label {
	font-family: var(--font-body);
	font-size: 0.72em;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.8;
}

.price-part + .price-part {
	margin-left: 14px;
}

/* ---------- FAQ ---------- */

.faq {
	border-top: 1px solid var(--line);
}

.faq-item {
	border-bottom: 1px solid var(--line);
}

.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 0;
	cursor: pointer;
	list-style: none;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-q {
	font-size: var(--fs-h4);
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: color 0.25s var(--ease);
}

.faq-item summary:hover .faq-q,
.faq-item[open] .faq-q {
	color: var(--gold-soft);
}

.faq-icon {
	flex: none;
	width: 20px;
	height: 20px;
	color: var(--gold);
	transition: transform 0.35s var(--ease);
}

.faq-item[open] .faq-icon {
	transform: rotate(180deg);
}

.faq-a {
	padding: 0 48px 24px 0;
	color: var(--text-muted);
	max-width: 68ch;
}

/* ---------- Ivory menu card (the printed menu panel) ---------- */

.menu-card {
	position: relative;
	background: var(--ivory);
	color: var(--paper-ink);
	padding: 16px;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
}

.menu-card-inner {
	border: 2px dotted var(--gold);
	padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px);
	text-align: center;
}

.menu-card-title {
	color: var(--paper-ink);
	font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem);
	font-weight: 700;
	letter-spacing: 0.06em;
}

.menu-card .script {
	margin-top: 6px;
	color: var(--gold-deep);
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
}

.menu-card .ornament {
	color: var(--gold);
	margin-inline: auto;
}

.menu-card-note {
	margin: 32px auto 28px;
	color: var(--paper-muted);
	font-size: var(--fs-sm);
}

/* ---------- Lists, pills, facts ---------- */

.pill-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pill-links a {
	display: inline-block;
	padding: 10px 18px;
	border: 1px solid var(--line-strong);
	color: var(--text);
	text-decoration: none;
	font-size: var(--fs-sm);
	transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.pill-links a:hover {
	border-color: var(--gold);
	color: var(--gold-hi);
	background: rgba(210, 158, 14, 0.06);
}

.fact-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	list-style: none;
	margin: 32px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid var(--line);
	color: var(--text-muted);
	font-size: var(--fs-sm);
}

.fact-row li {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.fact-row .icon {
	width: 18px;
	height: 18px;
	color: var(--gold);
}

.tick-list {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	display: grid;
	gap: 12px;
	color: var(--text-muted);
}

.tick-list li {
	position: relative;
	padding-left: 22px;
}

.tick-list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.62em;
	width: 7px;
	height: 7px;
	background: var(--gold);
	transform: rotate(45deg);
}

.aside-block {
	padding: 28px;
	border: 1px solid var(--line);
	background: var(--ink-2);
}

.aside-block + .aside-block {
	margin-top: 16px;
}

.aside-block .h4 {
	margin-bottom: 8px;
}

.aside-gold {
	border-color: var(--line-strong);
	background: linear-gradient(180deg, rgba(210, 158, 14, 0.1), rgba(210, 158, 14, 0.02));
}

.aside-block .link-arrow {
	margin-top: 10px;
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 22px;
	color: var(--text-dim);
	font-size: var(--fs-xs);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.crumbs a {
	color: var(--text-muted);
	text-decoration: none;
}

.crumbs [aria-current] {
	color: var(--gold-soft);
}

/* ---------- Forms (Contact Form 7, on an ivory card) ---------- */

.form-card {
	background: var(--ivory);
	color: var(--paper-ink);
	padding: 12px;
	box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.9);
}

.form-card > .wpcf7,
.form-card > .form-fallback {
	border: 2px dotted var(--gold);
	padding: clamp(24px, 4vw, 44px);
}

.form-card a {
	color: var(--gold-deep);
}

.rir-form p,
.form-card .wpcf7-form > p {
	margin: 0 0 18px;
}

.rir-fgrid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 18px;
}

@media (max-width: 560px) {
	.rir-fgrid {
		grid-template-columns: 1fr;
	}
}

.form-card label,
.form-card .wpcf7-form > p {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--paper-muted);
}

.form-card .wpcf7-form-control-wrap {
	display: block;
	margin-top: 8px;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card input[type="number"],
.form-card input[type="date"],
.form-card select,
.form-card textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid var(--paper-line);
	border-radius: 1px;
	background: #fffdf8;
	color: var(--paper-ink);
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
	color-scheme: light;
}

.form-card textarea {
	min-height: 130px;
	resize: vertical;
}

.form-card ::placeholder {
	color: #8c8170;
	opacity: 1;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
	outline: none;
	border-color: var(--gold-deep);
	box-shadow: 0 0 0 3px rgba(210, 158, 14, 0.25);
}

.form-card input[type="submit"],
.form-card .wpcf7-submit {
	width: 100%;
	min-height: 54px;
	border: 1px solid var(--paper-ink);
	border-radius: 1px;
	background: var(--paper-ink);
	color: var(--gold-hi);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.form-card .wpcf7-submit:hover {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--ink);
}

.form-card .wpcf7-spinner {
	display: block;
	margin: 10px auto 0;
}

.form-card .wpcf7-not-valid-tip {
	margin-top: 6px;
	color: #9d2b14;
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.form-card .wpcf7-not-valid {
	border-color: #9d2b14 !important;
}

.form-card .wpcf7 form .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 12px 16px;
	border: 1px solid var(--paper-line);
	color: var(--paper-ink);
	font-size: 0.92rem;
	letter-spacing: 0;
	text-transform: none;
}

.form-card .wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--ok);
	background: rgba(79, 138, 60, 0.08);
}

.form-card .wpcf7 form.invalid .wpcf7-response-output,
.form-card .wpcf7 form.failed .wpcf7-response-output {
	border-color: #9d2b14;
	background: rgba(157, 43, 20, 0.06);
}

.form-card .rir-fnote {
	margin-top: 12px;
	color: var(--paper-muted);
	font-size: 0.85rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

/* Search form */

.search-form {
	display: flex;
	gap: 8px;
	max-width: 480px;
}

.search-form .search-field {
	flex: 1;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--line-strong);
	background: var(--ink-2);
	color: var(--text);
}

.search-form .search-submit {
	min-height: 48px;
	padding: 0 20px;
	border: 1px solid var(--gold);
	background: var(--gold);
	color: var(--ink);
	font-weight: 600;
}

/* ---------- Reveal on scroll (content visible by default) ---------- */

.js-reveal [data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}

.js-reveal [data-reveal].is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.js-reveal [data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
