/* ==========================================================================
   Components added in the rebuild (loaded on every page after main.css).
   ========================================================================== */

/* Accessibility */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 10000;
	background: var(--hd-gold-dark);
	color: #fff;
	padding: 10px 18px;
	border-radius: var(--hd-radius-full);
}
.skip-link:focus { left: 16px; color: #fff; }
.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Section inner width (replaces WordPress "constrained" group layout) */
.section__inner { max-width: 1200px; margin: 0 auto; }
.section__inner--narrow { max-width: 800px; }
.section__more { text-align: center; margin-top: var(--hd-space-2xl); }

/* Flash messages */
.site-flash {
	position: fixed;
	top: 96px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1001;
	padding: 12px 22px;
	border-radius: var(--hd-radius-full);
	background: var(--hd-text-primary);
	color: #fff;
	box-shadow: var(--hd-shadow-lg);
	font-weight: 500;
	animation: hdFlash 6s ease forwards;
}
.site-flash--error { background: var(--hd-destructive); }
@keyframes hdFlash { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

/* Inner page hero (pages without a hero section) */
.page-hero {
	position: relative;
	min-height: 360px;
	display: flex;
	align-items: flex-end;
	padding: 150px 0 56px;
	background: #2D2A26;
	overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.15) 40%, rgba(45, 42, 38, 0.85) 100%);
}
.page-hero--plain .page-hero__overlay { background: radial-gradient(ellipse at 30% 0%, rgba(184, 134, 11, 0.25), transparent 60%); }
.page-hero__content { position: relative; z-index: 1; }
.page-hero__title {
	color: #fff;
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 800;
	margin-top: var(--hd-space-sm);
}
.page-hero__subtitle { color: rgba(255, 255, 255, 0.8); font-size: 1.125rem; max-width: 640px; margin-top: var(--hd-space-sm); }

/* Shorter hero variant */
.hero--page { min-height: 70vh; }

/* Link cards */
.hd-cards { display: grid; gap: var(--hd-space-lg); }
.hd-cards--2 { grid-template-columns: repeat(2, 1fr); }
.hd-cards--3 { grid-template-columns: repeat(3, 1fr); }
.hd-cards--4 { grid-template-columns: repeat(4, 1fr); }
.hd-card {
	display: flex;
	flex-direction: column;
	background: var(--hd-white);
	border: 1px solid var(--hd-border);
	border-radius: var(--hd-radius-lg);
	overflow: hidden;
	color: inherit;
	transition: transform 0.3s var(--hd-ease-out-quart), box-shadow 0.3s ease;
}
.hd-card:hover { transform: translateY(-4px); box-shadow: var(--hd-shadow-lg); color: inherit; }
.hd-card__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hd-card__body { padding: var(--hd-space-lg); display: flex; flex-direction: column; gap: var(--hd-space-sm); flex: 1; }
.hd-card__title { font-size: 1.25rem; }
.hd-card__text { color: var(--hd-text-secondary); font-size: 0.95rem; flex: 1; }
.hd-card__cta { display: inline-flex; align-items: center; gap: 6px; color: var(--hd-gold-dark); font-weight: 600; font-size: 0.9rem; }

/* Image + text */
.hd-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--hd-space-3xl); align-items: center; }
.hd-split--image-right .hd-split__media { order: 2; }
.hd-split__media img { width: 100%; border-radius: var(--hd-radius-lg); box-shadow: var(--hd-shadow-lg); }

/* Gallery section */
.hd-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--hd-space-md); }
.hd-gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--hd-radius-md); transition: transform 0.4s ease; }
.hd-gallery__item:hover img { transform: scale(1.02); }

/* FAQ accordion (page sections) */
.hd-faq { display: flex; flex-direction: column; gap: var(--hd-space-sm); }
.hd-faq__item { background: var(--hd-white); border: 1px solid var(--hd-border); border-radius: var(--hd-radius-md); }
.hd-faq__q {
	cursor: pointer;
	list-style: none;
	padding: 18px 22px;
	font-weight: 600;
	color: var(--hd-text-primary);
	display: flex;
	justify-content: space-between;
	gap: 16px;
}
.hd-faq__q::-webkit-details-marker { display: none; }
.hd-faq__q::after { content: '+'; color: var(--hd-gold); font-size: 1.4rem; line-height: 1; transition: transform 0.2s; }
.hd-faq__item[open] .hd-faq__q::after { transform: rotate(45deg); }
.hd-faq__a { padding: 0 22px 20px; font-size: 1rem; }

/* Lightbox */
.hd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(20, 18, 15, 0.94);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 48px 72px;
}
.hd-lightbox.is-open { display: flex; }
.hd-lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.hd-lightbox__figure img { max-width: 100%; max-height: calc(100vh - 140px); margin: 0 auto; border-radius: var(--hd-radius-sm); }
.hd-lightbox__figure figcaption { color: rgba(255, 255, 255, 0.75); margin-top: 12px; font-size: 0.9rem; }
.hd-lightbox__close, .hd-lightbox__nav {
	position: absolute;
	background: rgba(255, 255, 255, 0.1);
	border: 0;
	color: #fff;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.hd-lightbox__close:hover, .hd-lightbox__nav:hover { background: rgba(255, 255, 255, 0.2); }
.hd-lightbox__close { top: 16px; right: 16px; }
.hd-lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.hd-lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Form fields shared by enquiry drawer, contact form and checkout */
.hd-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--hd-space-md); }
.hd-field label { font-size: 0.875rem; font-weight: 600; color: var(--hd-text-primary); }
.hd-field .req { color: var(--hd-destructive); }
.hd-field input, .hd-field select, .hd-field textarea {
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	font-size: 1rem;
	color: var(--hd-text-primary);
	background: var(--hd-white);
	border: 1px solid var(--hd-border-dark);
	border-radius: var(--hd-radius-md);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.hd-field textarea { min-height: 120px; resize: vertical; }
.hd-field input:focus, .hd-field select:focus, .hd-field textarea:focus {
	outline: none;
	border-color: var(--hd-gold);
	box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}
.hd-field__hint { font-size: 0.8125rem; color: var(--hd-text-muted); }
.hd-field--error input, .hd-field--error textarea { border-color: var(--hd-destructive); }
.hd-field__error { font-size: 0.8125rem; color: var(--hd-destructive); }
.hd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--hd-space-md); }
.hd-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.hd-form-message { padding: 12px 16px; border-radius: var(--hd-radius-md); font-size: 0.95rem; margin-top: var(--hd-space-md); }
.hd-form-message:empty { display: none; }
.hd-form-message--error { background: #FDECEC; color: var(--hd-destructive); }
.hd-form-message--success { background: #EAF5EC; color: var(--hd-success); }
.hd-form-success { text-align: center; padding: var(--hd-space-xl) var(--hd-space-md); }
.hd-form-success__icon {
	width: 64px; height: 64px;
	margin: 0 auto var(--hd-space-md);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--hd-gold-pale);
	color: var(--hd-gold-dark);
}
.btn[disabled], .btn.is-loading { opacity: 0.6; pointer-events: none; }
.btn.is-loading::after {
	content: '';
	width: 16px; height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: hdSpin 0.7s linear infinite;
	margin-left: 8px;
}
@keyframes hdSpin { to { transform: rotate(360deg); } }

/* Drawer (enquiry form) */
.hd-drawer { position: fixed; inset: 0; z-index: 2000; visibility: hidden; }
.hd-drawer.is-active { visibility: visible; }
.hd-drawer__overlay { position: absolute; inset: 0; background: rgba(20, 18, 15, 0.55); opacity: 0; transition: opacity 0.3s ease; }
.hd-drawer.is-active .hd-drawer__overlay { opacity: 1; }
.hd-drawer__panel {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: min(520px, 100%);
	background: var(--hd-white);
	box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
	transform: translateX(100%);
	transition: transform 0.35s var(--hd-ease-out-expo);
	display: flex;
	flex-direction: column;
}
.hd-drawer.is-active .hd-drawer__panel { transform: none; }
.hd-drawer__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 28px;
	border-bottom: 1px solid var(--hd-border);
	background: var(--hd-cream);
}
.hd-drawer__title { font-family: var(--hd-font-heading); font-size: 1.35rem; line-height: 1.3; }
.hd-drawer__subtitle { color: var(--hd-text-muted); font-size: 0.9rem; margin-top: 4px; }
.hd-drawer__close {
	background: none;
	border: 1px solid var(--hd-border-dark);
	border-radius: 50%;
	width: 38px; height: 38px;
	flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer;
	color: var(--hd-text-secondary);
}
.hd-drawer__close:hover { border-color: var(--hd-gold); color: var(--hd-gold-dark); }
.hd-drawer__body { padding: 24px 28px 32px; overflow-y: auto; flex: 1; }

@media (max-width: 900px) {
	.hd-cards--3, .hd-cards--4 { grid-template-columns: repeat(2, 1fr); }
	.hd-split { grid-template-columns: 1fr; gap: var(--hd-space-xl); }
	.hd-split--image-right .hd-split__media { order: 0; }
}
@media (max-width: 640px) {
	.hd-cards--2, .hd-cards--3, .hd-cards--4 { grid-template-columns: 1fr; }
	.hd-form-row { grid-template-columns: 1fr; }
	.hd-lightbox { padding: 56px 8px; }
	.hd-lightbox__nav { top: auto; bottom: 16px; transform: none; }
	.page-hero { min-height: 300px; padding: 130px 0 40px; }
}

/* Footer contact links read as plain text like the WordPress footer */
.footer__contact-item a { color: inherit; }
.footer__contact-item a:hover { color: var(--hd-gold-light); }

/* Event booking panel heading */
.hdb__event-when { font-family: var(--hd-font-heading); font-size: 1.25rem; font-weight: 700; }
.hdb__event-when::first-letter { text-transform: uppercase; }
