/* ==========================================================================
   Chinar v3 — "Black & Gold, refined"
   The readable v2 layout with the signature black/gold palette.
   Headings: Fraunces · Body: Manrope
   (v1 original design archived in versions/v1-black-gold/)
   ========================================================================== */

:root {
	--bg: #0d0c0a;
	--surface: #17150f;
	--surface-2: #1d1a13;
	--text: #f3eee1;
	--muted: #b6ad97;
	--gold: #c9a24b;
	--gold-soft: #e6cf9a;
	--gold-deep: #a9823a;
	--line: rgba(201, 162, 75, 0.24);
	--font-head: "Fraunces", Georgia, serif;
	--font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
	--radius: 16px;
	--shadow: 0 4px 26px rgba(0, 0, 0, 0.45);
	--container: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 18px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-soft); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; color: var(--text); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.4rem; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); }

.eyebrow {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 1rem;
}

/* Buttons — primary actions are solid gold, impossible to miss */
.btn {
	display: inline-block;
	padding: 1rem 2.3rem;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	transition: transform 0.18s, box-shadow 0.18s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-gold {
	background: linear-gradient(135deg, #e3c377, var(--gold) 55%, var(--gold-deep));
	color: #14110a;
	box-shadow: 0 12px 30px rgba(201, 162, 75, 0.3);
}
.btn-gold:hover { color: #14110a; box-shadow: 0 16px 38px rgba(201, 162, 75, 0.42); }
.btn-ghost { border: 2px solid var(--gold); color: var(--gold-soft); }
.btn-ghost:hover { background: rgba(201, 162, 75, 0.12); color: var(--gold-soft); }
.btn-dark { background: #14110a; color: var(--gold-soft); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); }
.btn-dark:hover { color: var(--gold-soft); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(13, 12, 10, 0.9);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 0.7rem; padding-bottom: 0.7rem; }
/* Header carries the emblem on its own — the name lives on the page itself. */
.site-logo { display: block; line-height: 0; }
.site-logo img, .custom-logo { width: 58px; height: auto; transition: transform 0.25s; }
.site-logo:hover img { transform: scale(1.05); }

/* Official lettering lifted from the logo artwork */
.brand-wordmark { width: 100%; max-width: 620px; height: auto; margin: 0 auto; }

.nav-list { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-list a {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--text);
}
.nav-list a:hover { color: var(--gold); text-decoration: none; }
.nav-cta {
	background: linear-gradient(135deg, #e3c377, var(--gold) 55%, var(--gold-deep));
	border-radius: 999px;
	padding: 0.6rem 1.5rem;
	color: #14110a !important;
}
.nav-cta:hover { box-shadow: 0 8px 22px rgba(201, 162, 75, 0.35); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--gold); margin: 5px 0; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 65% 55% at 50% 25%, rgba(201, 162, 75, 0.16), transparent 65%),
		radial-gradient(ellipse 45% 40% at 88% 90%, rgba(201, 162, 75, 0.09), transparent 60%),
		linear-gradient(180deg, #0d0c0a 0%, #14120d 55%, #0d0c0a 100%);
}
.hero-inner { position: relative; text-align: center; width: 100%; padding: 4.5rem 1.4rem; }
/* Emblem above, official lettering below — matching the logo's own lockup. */
.hero-mark {
	width: clamp(140px, 22vw, 232px);
	height: auto;
	margin: 0 auto 1.5rem;
	filter: drop-shadow(0 14px 40px rgba(201, 162, 75, 0.3));
}
.hero-title { margin: 0; line-height: 0; }
.hero-wordmark { max-width: min(620px, 88vw); }
.hero-sub { max-width: 600px; margin: 1.6rem auto 0; color: var(--muted); font-size: 1.22rem; }
.hero-actions { margin-top: 2.6rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 5.5rem 0; }
.section-dark {
	background: linear-gradient(180deg, var(--surface-2), #14120c);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.page-hero {
	padding: 6rem 0 3rem;
	background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(201, 162, 75, 0.13), transparent 70%);
}
.page-hero h1 {
	background: linear-gradient(180deg, #f7ecc4, var(--gold-soft) 45%, var(--gold));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.page-hero .hero-sub { margin-top: 1rem; }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.feature {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 2.4rem 2rem;
	box-shadow: var(--shadow);
	transition: transform 0.2s, border-color 0.2s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--gold); }
.feature-icon { font-size: 1.7rem; color: var(--gold); margin-bottom: 1rem; }
.feature h3 { color: var(--gold-soft); }
.feature p { color: var(--muted); font-size: 1rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; }
.gallery-item {
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-preview { margin-bottom: 2.6rem; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, #e3c377, var(--gold) 50%, var(--gold-deep)); padding: 4.6rem 0; }
.cta-band h2 { color: #14110a; }
.cta-band p { color: rgba(20, 17, 10, 0.8); margin-bottom: 1.8rem; }

/* Contact */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-list { list-style: none; margin: 1.6rem 0 0; }
.contact-list li { display: flex; gap: 1.4rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.contact-list span {
	flex: 0 0 100px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold);
	padding-top: 0.35rem;
}
.contact-list a { font-weight: 700; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 340px; background: var(--surface); }
.map-frame.tall { min-height: 480px; }
.map-frame iframe { width: 100%; height: 100%; min-height: inherit; border: 0; display: block; filter: grayscale(0.35) contrast(1.02); }

/* Contact form */
.contact-form { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.field {
	background: var(--surface);
	border: 1.5px solid var(--line);
	border-radius: 12px;
	padding: 0.95rem 1.15rem;
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.05rem;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	resize: vertical;
}
.field::placeholder { color: #8a806a; }
.field:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.18); }
.contact-form .btn { align-self: flex-start; border: none; cursor: pointer; font-family: var(--font-body); }
.hp-field { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.form-msg { margin-top: 1.4rem; padding: 0.9rem 1.15rem; border-radius: 12px; font-size: 1rem; }
.form-msg-ok { background: rgba(80, 160, 90, 0.14); border: 1px solid rgba(80, 160, 90, 0.4); color: #bfe4c4; }
.form-msg-err { background: rgba(180, 40, 40, 0.14); border: 1px solid rgba(180, 40, 40, 0.4); color: #f0b4b4; }

/* Tick list */
.tick-list { list-style: none; margin-top: 1rem; }
.tick-list li { padding: 0.55rem 0 0.55rem 2rem; position: relative; color: var(--muted); font-size: 1.05rem; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }

/* Entry content (default pages) */
.entry-content p { margin-bottom: 1.2rem; color: var(--muted); }
.entry-content h2, .entry-content h3 { margin-top: 2rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #0a0908; border-top: 1px solid var(--line); padding-top: 4rem; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { display: inline-block; line-height: 0; }
.footer-logo img { width: 62px; height: auto; }
.footer-wordmark { max-width: 210px; margin: 0.9rem 0 0; }
.footer-tag { margin-top: 0.9rem; font-size: 0.98rem; max-width: 260px; }
.footer-col h4 {
	font-family: var(--font-body);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 0.9rem;
}
.footer-col p, .footer-col a { color: var(--muted); font-size: 0.98rem; line-height: 2; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	padding-top: 1.4rem;
	padding-bottom: 1.4rem;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-bottom p { font-size: 0.85rem; color: rgba(243, 238, 225, 0.45); }
.footer-book { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.footer-book:hover { color: var(--gold-soft); text-decoration: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
	.feature-grid { grid-template-columns: 1fr; }
	.split { grid-template-columns: 1fr; gap: 2.6rem; }
	.footer-inner { grid-template-columns: 1fr 1fr; }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
	.section { padding: 4rem 0; }
	.nav-toggle { display: block; }
	.site-nav {
		position: fixed;
		inset: 0;
		top: 76px;
		background: var(--bg);
		display: none;
		padding: 2.4rem 1.6rem;
		border-top: 1px solid var(--line);
	}
	.site-nav.is-open { display: block; }
	.nav-list { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
	.nav-list a { font-size: 1.15rem; }
	.gallery-grid { grid-template-columns: 1fr; }
	.hero { min-height: 76vh; }
}
