/* CHF Wedding Cakes page. Scoped to .chf-wed so nothing leaks into the rest of the site.
   Tokens follow the redesign system in docs/chflansandcakes/REDESIGN.md (blush hue 350). */

.chf-wed {
	--paper: oklch(97.6% 0.008 350);
	--blush: oklch(94.5% 0.022 350);
	--blush-deep: oklch(90% 0.035 350);
	--ink: oklch(24% 0.016 355);
	--ink-soft: oklch(40% 0.02 355);
	--accent: oklch(47% 0.155 12);
	--accent-dark: oklch(40% 0.14 12);
	--line: oklch(86% 0.02 350);
	--white: #fff;
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sp-2xs: 0.375rem;
	--sp-xs: 0.625rem;
	--sp-s: 1rem;
	--sp-m: 1.5rem;
	--sp-l: 2.5rem;
	--sp-xl: clamp(3rem, 7vw, 5.5rem);
	--wrap: 1160px;
	--radius: 14px;

	/* The Main template's .ct-inner-content is already full width, so no breakout is needed. */
	width: 100%;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.6;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

.chf-wed *,
.chf-wed *::before,
.chf-wed *::after { box-sizing: border-box; }

.chf-wed img { display: block; max-width: 100%; height: auto; }

.chf-wed p { margin: 0 0 var(--sp-s); }
.chf-wed p:last-child { margin-bottom: 0; }

.chf-wed a { color: var(--accent); text-underline-offset: 3px; }
.chf-wed a:hover { color: var(--accent-dark); }

.chf-wed :focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.chf-wed h1,
.chf-wed h2,
.chf-wed h3 {
	font-family: var(--serif);
	font-optical-sizing: auto;
	font-weight: 500;
	color: var(--ink);
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin: 0 0 var(--sp-s);
	text-transform: none;
}
.chf-wed h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); }
.chf-wed h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.chf-wed h3 { font-size: 1.45rem; line-height: 1.2; }
.chf-wed h1 em,
.chf-wed h2 em { font-style: italic; color: var(--accent); font-weight: 400; }

.chf-wed-wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 20px;
}

.chf-wed-sec { padding: var(--sp-xl) 0; }
.chf-wed-sec--blush { background: var(--blush); }

.chf-wed-eyebrow {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: var(--sp-s);
}

.chf-wed-lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }

.chf-wed-head { max-width: 44rem; margin-bottom: var(--sp-l); }
.chf-wed-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.chf-wed-head--center .chf-wed-lede { margin-left: auto; margin-right: auto; }

/* Buttons */
.chf-wed-btns { display: flex; flex-wrap: wrap; gap: var(--sp-xs) var(--sp-s); align-items: center; margin-top: var(--sp-m); }
.chf-wed-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 52px;
	padding: 0.8em 1.6em;
	border-radius: 999px;
	border: 2px solid var(--accent);
	background: var(--accent);
	color: var(--white) !important;
	font: 600 1rem/1.2 var(--sans);
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.chf-wed-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.chf-wed-btn--ghost { background: transparent; color: var(--accent) !important; }
.chf-wed-btn--ghost:hover { background: var(--accent); color: var(--white) !important; }
.chf-wed-btn svg { width: 1.1em; height: 1.1em; flex: none; }
.chf-wed-textlink { font-weight: 600; }

/* Hero */
.chf-wed-hero { padding: clamp(2rem, 5vw, 4rem) 0 var(--sp-xl); }
.chf-wed-hero__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sp-l);
	align-items: center;
}
.chf-wed-hero__media { order: -1; }
.chf-wed-hero__media img {
	width: 100%;
	aspect-ratio: 3 / 4; /* full photo on phones, no crop at the top */
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: 0 24px 60px -30px oklch(24% 0.05 355 / 0.45);
}
.chf-wed .chf-wed-hero__note { font-size: 0.95rem; color: var(--ink-soft); margin-top: var(--sp-m); }
@media (min-width: 900px) {
	.chf-wed-hero__grid { grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
	.chf-wed-hero__media { order: 0; }
	.chf-wed-hero__media img { aspect-ratio: 4 / 5; max-height: 720px; }
}

/* Promise strip */
.chf-wed-promise {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sp-m);
}
.chf-wed-promise li { padding-top: var(--sp-s); border-top: 2px solid var(--line); }
.chf-wed-promise strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin-bottom: var(--sp-2xs); }
.chf-wed-promise span { color: var(--ink-soft); font-size: 1rem; }
@media (min-width: 760px) { .chf-wed-promise { grid-template-columns: repeat(3, 1fr); gap: var(--sp-l); } }
@media (max-width: 759px) { .chf-wed-promise li:first-child { border-top: 0; padding-top: 0; } }

/* Story */
.chf-wed-split { display: grid; grid-template-columns: 1fr; gap: var(--sp-l); align-items: center; }
.chf-wed-split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 900px) {
	.chf-wed-split { grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); }
}
.chf-wed-sign { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--accent); }

/* Styles cards */
.chf-wed-styles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sp-l) var(--sp-m);
}
@media (min-width: 640px) { .chf-wed-styles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .chf-wed-styles { grid-template-columns: repeat(4, 1fr); } }
.chf-wed-styles img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--sp-s); }
.chf-wed-styles h3 { margin-bottom: var(--sp-2xs); }
.chf-wed-styles p { font-size: 1rem; color: var(--ink-soft); }

/* Gallery */
.chf-wed-gal {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: 12px;
}
@media (min-width: 700px) { .chf-wed-gal { columns: 3; column-gap: 16px; } }
@media (min-width: 1100px) { .chf-wed-gal { columns: 4; } }
.chf-wed-gal__item { break-inside: avoid; margin: 0 0 12px; }
@media (min-width: 700px) { .chf-wed-gal__item { margin-bottom: 16px; } }
.chf-wed-gal__item[hidden] { display: none; }
.chf-wed-gal__btn {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
	border-radius: 10px;
	overflow: hidden;
}
.chf-wed-gal__btn img { width: 100%; transition: transform 0.5s ease; }
.chf-wed-gal__btn:hover img { transform: scale(1.03); }
.chf-wed .chf-wed-gal__more { text-align: center; margin-top: var(--sp-l); } /* .chf-wed p reset would zero it */

/* Lightbox */
.chf-wed-lb {
	width: 100vw;
	height: 100vh;
	max-width: 100vw;
	max-height: 100vh;
	margin: 0;
	padding: 0;
	border: 0;
	background: oklch(18% 0.01 355 / 0.94);
	color: #fff;
}
.chf-wed-lb::backdrop { background: oklch(18% 0.01 355 / 0.8); }
.chf-wed-lb[open] { display: flex; align-items: center; justify-content: center; }
.chf-wed-lb__fig { margin: 0; padding: 56px 64px; text-align: center; }
.chf-wed-lb__fig img { max-width: min(92vw, 1100px); max-height: calc(100vh - 150px); width: auto; height: auto; margin: 0 auto; border-radius: 8px; }
.chf-wed-lb__fig figcaption { font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 15px; margin-top: 12px; opacity: 0.9; }
.chf-wed-lb__nav,
.chf-wed-lb__close {
	position: absolute;
	border: 0;
	background: oklch(100% 0 0 / 0.14);
	color: #fff;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}
.chf-wed-lb__nav:hover,
.chf-wed-lb__close:hover { background: oklch(100% 0 0 / 0.28); }
.chf-wed-lb__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.chf-wed-lb__next { right: 12px; top: 50%; transform: translateY(-50%); }
.chf-wed-lb__close { right: 12px; top: 12px; }
@media (max-width: 600px) {
	.chf-wed-lb__fig { padding: 60px 8px 20px; }
	.chf-wed-lb__nav { top: auto; bottom: 14px; transform: none; }
}

/* Dessert table */
.chf-wed-sweets {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--sp-m) 12px;
}
@media (min-width: 900px) { .chf-wed-sweets { grid-template-columns: repeat(4, 1fr); gap: var(--sp-m); } }
.chf-wed-sweets img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--sp-xs); }
.chf-wed-sweets h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.chf-wed-sweets p { font-size: 0.95rem; color: var(--ink-soft); }

/* Steps */
.chf-wed-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: step;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sp-l);
}
@media (min-width: 860px) { .chf-wed-steps { grid-template-columns: repeat(3, 1fr); } }
.chf-wed-steps li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.chf-wed-steps li::before {
	content: counter(step);
	position: absolute;
	top: 0;
	left: 0;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	border: 2px solid var(--accent);
	color: var(--accent);
	font: 500 1.3rem/2.4rem var(--serif);
	text-align: center;
}
.chf-wed-steps p { color: var(--ink-soft); font-size: 1rem; }

/* Options + allergen note */
.chf-wed-options { display: grid; grid-template-columns: 1fr; gap: var(--sp-l); }
@media (min-width: 860px) { .chf-wed-options { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.chf-wed-ticks { list-style: none; margin: 0 0 var(--sp-s); padding: 0; }
.chf-wed-ticks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.6rem; }
.chf-wed-ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 1.1rem;
	height: 0.6rem;
	border-left: 2px solid var(--accent);
	border-bottom: 2px solid var(--accent);
	transform: rotate(-45deg);
}
.chf-wed-note {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: var(--sp-m);
	font-size: 0.95rem;
	color: var(--ink-soft);
}
.chf-wed-note strong { color: var(--ink); }

/* Reviews (Fouita widget). It sets inline max-width:90% twice, which leaves ~64px each side on phones. */
@media (max-width: 767px) {
	.chf-wed-reviews__widget { margin: 0 -8px; }
	.chf-wed-reviews__widget .max-w-screen-xl,
	.chf-wed-reviews__widget .max-w-screen-xl > div > .relative.rounded-xl {
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

/* Enquiry */
.chf-wed-enquire { background: var(--blush); scroll-margin-top: 90px; }
.chf-wed-enquire__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-l); }
@media (min-width: 960px) { .chf-wed-enquire__grid { grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); } }
.chf-wed-contact { list-style: none; margin: var(--sp-m) 0 0; padding: 0; }
.chf-wed-contact li { padding: var(--sp-s) 0; border-top: 1px solid var(--line); }
.chf-wed-contact li:last-child { border-bottom: 1px solid var(--line); }
.chf-wed-contact small { display: block; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.chf-wed-contact a,
.chf-wed-contact span { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); text-decoration: none; }
.chf-wed-contact a:hover { color: var(--accent); }
.chf-wed-contact .chf-wed-addr { font-family: var(--sans); font-size: 1rem; }
.chf-wed-formcard {
	background: var(--white);
	border-radius: var(--radius);
	padding: clamp(1.25rem, 4vw, 2.5rem);
	box-shadow: 0 24px 60px -36px oklch(24% 0.05 355 / 0.5);
}
.chf-wed-formcard h3 { margin-bottom: var(--sp-2xs); }
.chf-wed-formcard > p { color: var(--ink-soft); font-size: 1rem; }

/* Fluent Forms inside the card */
.chf-wed .fluentform { margin-top: var(--sp-m); }
.chf-wed .fluentform .ff-el-input--label label { font: 600 0.95rem/1.3 var(--sans); color: var(--ink); }
.chf-wed .fluentform .ff-el-form-control {
	font: 400 1rem/1.4 var(--sans);
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 10px;
	min-height: 50px;
	padding: 0.7em 0.9em;
}
.chf-wed .fluentform textarea.ff-el-form-control { min-height: 130px; }
.chf-wed .fluentform .ff-el-form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px oklch(47% 0.155 12 / 0.18); outline: none; }
.chf-wed .fluentform .ff-el-form-check label,
.chf-wed .fluentform .ff-el-form-check-label { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.45; }
.chf-wed .fluentform .ff-btn-submit {
	min-height: 54px;
	padding: 0.85em 2em !important;
	border-radius: 999px !important;
	font: 600 1rem/1.2 var(--sans) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	background: var(--accent) !important;
	border-color: var(--accent) !important;
	width: 100%;
}
.chf-wed .fluentform .ff-btn-submit:hover { background: var(--accent-dark) !important; }
.chf-wed .ff-message-success {
	border: 0;
	background: var(--blush);
	border-radius: 10px;
	padding: var(--sp-m);
	box-shadow: none;
	font-size: 1.05rem;
}
@media (min-width: 560px) { .chf-wed .fluentform .ff-btn-submit { width: auto; } }

/* Mobile call / enquire bar */
.chf-wed-bar { display: none; }
@media (max-width: 767px) {
	.chf-wed-bar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: oklch(100% 0 0 / 0.96);
		box-shadow: 0 -8px 24px -12px oklch(24% 0.05 355 / 0.35);
		transition: transform 0.25s ease;
	}
	.chf-wed-bar.is-hidden { transform: translateY(110%); }
	.chf-wed-bar .chf-wed-btn { min-height: 48px; padding: 0.6em 0.8em; font-size: 0.95rem; }
	.chf-wed { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
	.chf-wed *,
	.chf-wed-bar { transition: none !important; }
	.chf-wed-gal__btn:hover img { transform: none; }
}
