/* Eden Experiences — static site styles.
   The page markup carries inline styles from the design canvas, so the
   responsive rules below use !important to override them at narrow widths.
   Base styles here replace the ones the design tool used to inject. */

:root {
	--ink: #1A2620;
	--ivory: #F7F4EC;
	--forest: #0F2B21;
	--brass: #C08A3E;
	--brass-ink: #8A5F1E;
	--line: #E2DCCD;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	overflow-x: hidden;
	background: var(--ivory);
	color: var(--ink);
	font-family: Karla, system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--brass-ink); }

img { max-width: 100%; height: auto; }

.site-brand { display: block; flex: 0 0 auto; }
.site-brand-logo { display: block; width: 188px; height: auto; }
.site-brand-mark { display: block; width: 123px; height: auto; }

@media (max-width: 1200px) {
	.page > header { column-gap: 18px !important; padding-inline: 32px !important; }
	.page > header nav { flex-wrap: wrap; gap: 6px 16px !important; }
	.page > header nav a, .page > header > a { white-space: nowrap; }
}

@media (max-width: 640px) {
	.site-brand-logo { width: 172px; }
}

.page {
	width: 100%;
	max-width: 1680px;
	margin: 0 auto;
}

/* Keyboard focus, visible on every background in the palette. */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--brass);
	outline-offset: 2px;
}

/* Viewing slots on the booking page (static equivalent of the canvas picker). */
.slot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 104px;
	min-height: 48px;
	padding: 0 18px;
	background: #FDFCF8;
	border: 1px solid #D9D2C0;
	border-radius: 2px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
}
.slot:hover,
.slot:focus-visible {
	background: var(--forest);
	border-color: var(--forest);
	color: var(--ivory);
}

/* Every interactive target clears the 44px minimum. */
a[style*="padding"], button { min-height: 44px; }

/* ---------------------------------------------------------------
   Tablet and below — 1000px
   Release the artboard's fixed section heights and collapse grids.
   --------------------------------------------------------------- */
@media (max-width: 1000px) {

	/* Flex and grid children default to min-width:auto, which stops long text
	   shrinking and pushes the whole row wider than the screen. This is the
	   single rule that makes the fixed-width design behave on a phone. */
	.page * {
		min-width: 0 !important;
		max-width: 100% !important;
	}

	.page > header,
	.page > section,
	.page > footer,
	.page > div {
		height: auto !important;
		min-height: 0 !important;
		padding-left: 28px !important;
		padding-right: 28px !important;
	}

	.page > header { padding-top: 16px !important; padding-bottom: 16px !important; }

	.page > section { padding-top: 56px !important; padding-bottom: 56px !important; }

	/* Hero sections keep some presence but size to their content. */
	.page > section[style*="position: relative"] {
		padding-top: 72px !important;
		padding-bottom: 72px !important;
	}

	/* Rows become columns. */
	.page [style*="display: flex"] { flex-wrap: wrap !important; }

	.page [style*="flex-shrink: 0"] { flex-shrink: 1 !important; }

	/* Panels that were sized in pixels fill the width instead. */
	.page [style*="width: 380px"],
	.page [style*="width: 480px"],
	.page [style*="width: 490px"],
	.page [style*="width: 520px"],
	.page [style*="width: 540px"],
	.page [style*="width: 560px"],
	.page [style*="width: 580px"],
	.page [style*="width: 600px"],
	.page [style*="width: 620px"],
	.page [style*="width: 660px"],
	.page [style*="width: 680px"],
	.page [style*="width: 720px"],
	.page [style*="width: 760px"],
	.page [style*="width: 800px"],
	.page [style*="width: 820px"],
	.page [style*="width: 900px"],
	.page [style*="width: 1080px"] {
		width: 100% !important;
		max-width: 100% !important;
		flex-basis: auto !important;
	}

	/* Four- and five-across card rows become two-across. */
	.page [style*="grid-template-columns: repeat(4"],
	.page [style*="grid-template-columns: repeat(5"],
	.page [style*="grid-template-columns: repeat(3"] {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	/* Gallery rows stop being fixed-height. */
	.page [style*="grid-template-rows"] { grid-template-rows: auto !important; }
	.page [style*="grid-column: span 2"] { grid-column: auto !important; }
	.page [style*="grid-row: span 2"] { grid-row: auto !important; }

	/* The nav wraps onto as many lines as it needs. */
	.page > header nav {
		flex-wrap: wrap !important;
		row-gap: 10px !important;
	}

	/* The tradition and event tab rows scroll sideways rather than break up. */
	.page > div[style*="gap: 10px"] {
		overflow-x: auto !important;
		flex-wrap: nowrap !important;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}
	.page > div[style*="gap: 10px"] a { white-space: nowrap; flex-shrink: 0 !important; }

	/* Display type scales down. */
	.page h1 { font-size: clamp(2.25rem, 6vw, 3.5rem) !important; }
	.page h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem) !important; }
	.page h3 { font-size: clamp(1.15rem, 3vw, 1.45rem) !important; }

	/* Photo placeholders keep a sensible shape. */
	.page [style*="min-height: 480px"],
	.page [style*="min-height: 420px"],
	.page [style*="min-height: 380px"] {
		min-height: 260px !important;
	}
}

/* ---------------------------------------------------------------
   Phone — 640px
   --------------------------------------------------------------- */
@media (max-width: 640px) {

	.page > header,
	.page > section,
	.page > footer,
	.page > div {
		padding-left: 18px !important;
		padding-right: 18px !important;
	}

	.page > section { padding-top: 44px !important; padding-bottom: 44px !important; }

	/* One card per row. */
	.page [style*="grid-template-columns: repeat(2"],
	.page [style*="grid-template-columns: repeat(3"],
	.page [style*="grid-template-columns: repeat(4"],
	.page [style*="grid-template-columns: repeat(5"] {
		grid-template-columns: 1fr !important;
	}

	/* Stacked rows, full-width buttons. */
	.page [style*="display: flex"][style*="gap"] { row-gap: 16px !important; }

	.page a[style*="text-transform: uppercase"][style*="padding"] {
		width: 100%;
		justify-content: center;
		display: inline-flex;
		align-items: center;
		text-align: center;
	}

	/* Header: logo left, actions wrap beneath. */
	.page > header { row-gap: 12px !important; }

	/* Footer columns stack. */
	.page > footer [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

	.page h1 { font-size: clamp(1.9rem, 8vw, 2.4rem) !important; line-height: 1.12 !important; }

	/* The enquiry form's two-up field grid becomes one column. */
	.page form [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* Respect a reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* Homepage refinements: brass line icons, a featured film and event navigation. */
.answer-icon { width: 34px; height: 34px; color: var(--brass-ink); margin-bottom: 8px; }
.venue-tour { padding: 80px 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 440px); gap: 72px; align-items: center; background: #EAE5D8; border-block: 1px solid var(--line); }
.tour-film { margin: 0; width: 100%; max-width: 440px; justify-self: center; padding: 16px; background: var(--ivory); border: 1px solid #CEC3AD; box-shadow: 0 16px 40px rgba(15,43,33,.12); }
.tour-film video { max-height: 650px; }
.tour-film figcaption { margin-top: 14px; }
.tradition-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.tradition-card img { width: 100%; height: 230px; object-fit: cover; }
.tradition-card > div { padding: 22px; }
.tradition-card h3 { margin: 0 0 7px; font: 600 24px Fraunces, Georgia, serif; }
.tradition-card p { margin: 0; color: #4A5A50; font-size: 15px; }
.events-overview { padding: 80px 64px; background: #fff; border-top: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-ink); }
.events-overview h2 { margin: 14px 0 32px; font: 400 46px/1.12 Fraunces, Georgia, serif; }
.event-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.event-links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 20px; }
.event-links a:hover { color: var(--brass-ink); }
#events, #venue-tour, #weddings { scroll-margin-top: 24px; }
@media (max-width: 1000px) {
 .venue-tour { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
 .event-links { grid-template-columns: 1fr; }
 .tour-film { max-width: 360px !important; }
}

.photo-section { padding: 80px 64px; scroll-margin-top: 24px; }
.photo-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: 28px; }
.photo-heading h2 { margin: 10px 0 0; color: var(--forest); font: 400 46px/1.12 Fraunces, Georgia, serif; }
.photo-heading p { max-width: 340px; margin: 0; color: #4A5A50; font-size: 18px; line-height: 1.55; }
.photo-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.photo-grid img { display: block; width: 100%; height: 100%; min-height: 0; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; background: var(--forest); grid-column: span 4; }
.photo-grid .photo-feature { grid-column: span 6; aspect-ratio: 2 / 1; }
.photo-grid .photo-portrait { grid-column: span 3; aspect-ratio: 1; object-position: center 65%; }
.photo-grid .photo-group { object-position: center 42%; }
.photo-grid--weddings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-grid--weddings img { grid-column: auto; aspect-ratio: 3 / 2; }
.photo-grid--weddings .photo-dance { object-position: center 40%; }

@media (max-width: 640px) {
 .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
 .photo-grid img, .photo-grid .photo-portrait { grid-column: span 1; }
 .photo-grid .photo-portrait { aspect-ratio: 3 / 4; }
 .photo-grid .photo-feature, .photo-grid:not(.photo-grid--weddings) img:last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
 .photo-grid--weddings { grid-template-columns: 1fr; }
}

.event-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.event-gallery--paired { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.event-gallery img, .event-detail-photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; background: var(--forest); }
.event-photo-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(24px, 5vw, 56px); }
.event-photo-split--room { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.event-detail-photo--portrait { width: min(100%, 360px); aspect-ratio: 3 / 4; justify-self: center; object-position: center 45%; }
.event-layout-photo { width: 100%; max-width: 620px; margin: 0; }
.event-layout-photo img { aspect-ratio: 4 / 3; }
.event-layout-photo figcaption { margin-top: 10px; color: #4A5A50; font-size: 14px; }
.event-hero-photo, .event-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.event-hero-photo { object-fit: cover; object-position: center 53%; }
.event-hero-shade { background: linear-gradient(90deg, rgba(15,43,33,.96), rgba(15,43,33,.85) 48%, rgba(15,43,33,.62)); }

@media (max-width: 740px) {
 .event-gallery, .event-photo-split { grid-template-columns: 1fr; }
 .event-hero-shade { background: rgba(15,43,33,.85); }
}
