/*
 * Coarsegold Village theme styles (v2, modern layout).
 * Colors and fonts come from theme.json presets. Class names start with "cg-".
 * Office hours, phone, social links, businesses and events are styled by the
 * Coarsegold Village Tools plugin (its classes start with "cgvt-").
 *
 * Contents
 *  1. Tokens and base
 *  2. Shared pieces: sign tags, intros, rules, buttons, photos
 *  3. Header and phone menu
 *  4. Section bands
 *  5. Hero
 *  6. Welcome photo strip
 *  7. Calendar
 *  8. Businesses and the lease line
 *  9. Set up shop band
 * 10. Contact and map
 * 11. Footer sign
 * 12. Form pages, other pages and form fields
 */

/* 1. Tokens and base ------------------------------------------------------ */

:root {
	--cg-pine: var(--wp--preset--color--pine, #1E4D3A);
	--cg-red: var(--wp--preset--color--barn-red, #A63A2B);
	--cg-gold: var(--wp--preset--color--gold, #C9962B);
	--cg-cream: var(--wp--preset--color--parchment, #F4EBDD);
	--cg-light: var(--wp--preset--color--light-parchment, #FAF5EC);
	--cg-tan: var(--wp--preset--color--tan, #E8DCC8);
	--cg-saddle: var(--wp--preset--color--saddle, #D9C6A5);
	--cg-ink: var(--wp--preset--color--ink, #2A2420);
	--cg-muted: var(--wp--preset--color--muted-ink, #5E544B);
	--cg-field: #8C7B68;
	--cg-pine-2: #2E6450;
	--cg-pine-line: #3C6B58;
	--cg-rye: var(--wp--preset--font-family--rye, Rye, Georgia, serif);
	--cg-rokkitt: var(--wp--preset--font-family--rokkitt, Rokkitt, Georgia, serif);
	--cg-sans: var(--wp--preset--font-family--public-sans, "Public Sans", system-ui, sans-serif);
	--cg-arrow-plain: url("../images/arrow-gold-plain.svg");
	--cg-section-pad: clamp(64px, 7vw, 96px);
	--cg-radius: 28px;
	--cg-icon-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 18l6 -6'/%3E%3Cpath d='M13 6l6 6'/%3E%3C/svg%3E");
	--cg-icon-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 7l-10 10'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E");
}

body { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Leave room for the header when jumping to a section from the menu. */
:where(section[id]) { scroll-margin-top: 16px; }

:where(.wp-site-blocks) a:focus-visible,
:where(.wp-site-blocks) button:focus-visible,
:where(.wp-site-blocks) input:focus-visible,
:where(.wp-site-blocks) select:focus-visible,
:where(.wp-site-blocks) textarea:focus-visible {
	outline: 3px solid var(--cg-gold);
	outline-offset: 2px;
}

.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; }
.wp-site-blocks > footer { margin-top: auto; }
.wp-site-blocks > * + * { margin-block-start: 0; }

.cg-main { margin-block: 0; }
.cg-main > .wp-block-post-content { margin-block: 0; }
.cg-main > .wp-block-post-content > * + * { margin-block-start: 0; }

/* 2. Shared pieces -------------------------------------------------------- */

/* Sign tags: the sawtooth "Peddlers Market" sign from the footer, in green or red. */
p.is-style-sign-tag,
p.is-style-sign-tag-red {
	display: block;
	width: fit-content;
	margin-inline: 0;
	background: var(--cg-pine);
	color: var(--cg-cream);
	font-family: var(--cg-rye);
	font-size: 17px;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 9px 30px;
	clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 25%, 100% 50%, calc(100% - 10px) 75%, 100% 100%, 0 100%, 10px 75%, 0 50%, 10px 25%);
}

p.is-style-sign-tag-red { background: var(--cg-red); }

.cg-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	line-height: 1.6;
	color: var(--cg-red);
}

/* Centered section intro: tag, heading, text. */
.cg-intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 760px;
	margin-inline: auto !important;
	text-align: center;
}

.cg-intro > * { margin: 0 !important; }

.cg-intro__title {
	font-family: var(--cg-rokkitt);
	font-weight: 600;
	font-size: clamp(36px, 5vw, 56px);
	line-height: 1.02;
	letter-spacing: -0.01em;
	color: var(--cg-pine);
	text-wrap: balance;
}

.cg-intro__title--big { font-size: clamp(38px, 5.4vw, 64px); }

.cg-intro__text {
	max-width: 34em;
	font-size: 17px;
	color: var(--cg-muted);
	text-wrap: balance;
}

/* Diamond rule: line, red diamond, line. */
hr.wp-block-separator.cg-rule {
	position: relative;
	width: 100%;
	max-width: 480px;
	height: 9px;
	margin: 0 auto;
	border: 0;
	opacity: 1;
	color: var(--cg-ink);
	background:
		linear-gradient(currentColor, currentColor) left center / calc(50% - 18px) 1.5px no-repeat,
		linear-gradient(currentColor, currentColor) right center / calc(50% - 18px) 1.5px no-repeat;
}

hr.wp-block-separator.cg-rule::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 8px;
	height: 8px;
	background: var(--cg-red);
	transform: translate(-50%, -50%) rotate(45deg);
}

hr.wp-block-separator.cg-rule--cream { color: var(--cg-cream); }

/* Buttons: pills. "With arrow" and "With outside-link arrow" add a round arrow on the right. */
.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 50px;
	box-sizing: border-box;
	font-weight: 700;
	text-decoration: none;
}

.wp-block-button.is-style-arrow .wp-block-button__link,
.wp-block-button.is-style-arrow-out .wp-block-button__link { padding: 0 8px 0 22px; }

/* A round arrow in the text color, with the arrow cut out so the button color shows through. */
.wp-block-button.is-style-arrow .wp-block-button__link::after,
.wp-block-button.is-style-arrow-out .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: currentColor;
	-webkit-mask: var(--cg-icon-right) center / 18px no-repeat, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: var(--cg-icon-right) center / 18px no-repeat, linear-gradient(#000 0 0);
	mask-composite: exclude;
}

.wp-block-button.is-style-arrow-out .wp-block-button__link::after {
	-webkit-mask: var(--cg-icon-out) center / 18px no-repeat, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: var(--cg-icon-out) center / 18px no-repeat, linear-gradient(#000 0 0);
	mask-composite: exclude;
}

.wp-block-button.is-style-cream .wp-block-button__link { background: var(--cg-cream); color: var(--cg-pine); }

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--cg-ink);
	border: 1.5px solid var(--cg-ink);
}

/* Photos: rounded, and they fill their frame so any photo shape works. */
.wp-block-image.cg-photo,
.wp-block-image.is-style-rounded-photo { margin: 0; border-radius: var(--cg-radius); overflow: hidden; background: var(--cg-saddle); }

.wp-block-image.cg-photo img,
.wp-block-image.is-style-rounded-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

.wp-block-image.cg-photo--3x2 { aspect-ratio: 3 / 2; }
.wp-block-image.cg-photo--4x3 { aspect-ratio: 4 / 3; }

/* 3. Header and phone menu ------------------------------------------------ */

.cg-header { background: var(--cg-light); padding-block: 14px; }
.cg-header .cg-header__bar { gap: 16px 32px; }
.cg-brand { gap: 0 !important; }
.cg-brand > * { margin: 0 !important; }

.cg-brand__eyebrow {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--cg-red);
	line-height: 1.6;
}

.cg-brand__title { font-family: var(--cg-rye); font-size: 24px; line-height: 1.15; font-weight: 400; }
.cg-brand__title a { color: var(--cg-pine); text-decoration: none; }

.cg-main-nav { flex: 1 1 auto; }
.cg-main-nav .wp-block-navigation__container { gap: 48px; }

.cg-main-nav .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--cg-ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.cg-main-nav .wp-block-navigation-item__content:hover { text-decoration: underline; text-underline-offset: 6px; }

/* The phone item only shows in the open phone menu. */
.cg-main-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .cg-nav-phone { display: none; }

.cg-main-nav .is-menu-open .cg-nav-phone .wp-block-navigation-item__content::before {
	content: "";
	width: 18px;
	height: 18px;
	flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5l1.5 -2.5l5 2v4a2 2 0 0 1 -2 2a16 16 0 0 1 -15 -15a2 2 0 0 1 2 -2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5l1.5 -2.5l5 2v4a2 2 0 0 1 -2 2a16 16 0 0 1 -15 -15a2 2 0 0 1 2 -2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Hamburger button. WordPress decides when it shows (under 600px wide). */
.cg-main-nav .wp-block-navigation__responsive-container-open,
.cg-main-nav .wp-block-navigation__responsive-container-close {
	width: 48px;
	height: 48px;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--cg-ink);
	border-radius: 4px;
	color: var(--cg-ink);
	background: transparent;
}

.cg-main-nav .wp-block-navigation__responsive-container-open svg,
.cg-main-nav .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }

@media (max-width: 599px) {
	.cg-main-nav { flex: 0 0 auto; }
	.cg-main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: inline-flex; }
}

.cg-main-nav .is-menu-open .wp-block-navigation__responsive-container-close { display: inline-flex; }

.cg-main-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 20px 24px 32px; background: var(--cg-light); }
.cg-main-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 72px; align-items: stretch; }
.cg-main-nav .is-menu-open .wp-block-navigation__container { gap: 0; width: 100%; align-items: stretch; }
.cg-main-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--cg-saddle); }

.cg-main-nav .is-menu-open .wp-block-navigation-item__content {
	width: 100%;
	min-height: 58px;
	font-family: var(--cg-rokkitt);
	font-size: 24px;
	font-weight: 600;
	color: var(--cg-pine);
	justify-content: space-between;
	padding: 0 !important;
}

.cg-main-nav .is-menu-open .wp-block-navigation-item:not(.cg-nav-phone) .wp-block-navigation-item__content::after {
	content: "";
	width: 22px;
	height: 16px;
	flex: none;
	background: var(--cg-arrow-plain) center / contain no-repeat;
}

.cg-main-nav .is-menu-open .cg-nav-phone { border-bottom: 0; margin-top: 24px; }

.cg-main-nav .is-menu-open .cg-nav-phone .wp-block-navigation-item__content {
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	background: var(--cg-pine);
	color: var(--cg-cream);
	border-radius: 999px;
	font-family: var(--cg-sans);
	font-size: 17px;
}

/* 4. Section bands -------------------------------------------------------- */

.cg-section {
	margin-block: 0;
	padding-block: var(--cg-section-pad);
}

.cg-section > * + * { margin-block-start: clamp(28px, 3.4vw, 40px); }
.cg-section--first { padding-top: var(--cg-section-pad); }
.cg-section--light { background: var(--cg-light); }
.cg-section--cream { background: var(--cg-cream); }
.cg-section--tan { background: var(--cg-tan); }

.cg-section--pine { background: var(--cg-pine); color: var(--cg-cream); }
.cg-section--pine .cg-intro__title { color: var(--cg-cream); }
.cg-section--pine .cg-intro__text { color: #E8DCC8; }

/* Two-column rows inside sections. */
.cg-section .wp-block-columns { gap: 40px 64px; margin-bottom: 0; }

/* 5. Hero ------------------------------------------------------------------ */

.cg-hero-wrap {
	background: var(--cg-light);
	margin-block: 0;
	/* Same side padding as every other section, so the hero lines up with the content below it. */
	padding: 8px var(--wp--style--root--padding-right, 24px) 0 var(--wp--style--root--padding-left, 24px);
}

.wp-block-cover.cg-hero {
	max-width: var(--wp--style--global--content-size, 1440px);
	margin: 0 auto;
	min-height: clamp(560px, 52vw, 780px);
	border-radius: 32px;
	overflow: hidden;
	padding: 72px 24px 96px;
	text-align: center;
	color: var(--cg-cream);
}

.wp-block-cover.cg-hero .wp-block-cover__background { opacity: 0.62; }

.cg-hero .wp-block-cover__inner-container { display: flex; flex-direction: column; align-items: center; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55); }
.cg-hero .wp-block-cover__inner-container > * { margin: 0 !important; }
.cg-hero hr.cg-rule { margin-block: 20px 18px !important; }
.cg-hero hr.cg-rule ~ hr.cg-rule { margin-block: 20px 26px !important; }

.cg-hero__eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	padding-left: 0.3em;
}

/* Red Rye letters with the cream outline from the footer sign. */
.cg-hero .cg-hero__title {
	font-family: var(--cg-rye);
	font-weight: 400;
	font-size: clamp(56px, 11vw, 148px);
	line-height: 1;
	color: var(--cg-red);
	text-shadow:
		2.5px 0 0 var(--cg-cream), -2.5px 0 0 var(--cg-cream), 0 2.5px 0 var(--cg-cream), 0 -2.5px 0 var(--cg-cream),
		1.8px 1.8px 0 var(--cg-cream), -1.8px -1.8px 0 var(--cg-cream), 1.8px -1.8px 0 var(--cg-cream), -1.8px 1.8px 0 var(--cg-cream),
		0 6px 24px rgba(0, 0, 0, 0.45);
}

.cg-hero .wp-block-cover__inner-container > .cg-hero__sub {
	/* Clears the descender on the "g" in Coarsegold at every size. */
	margin-top: clamp(14px, 1.7vw, 26px) !important;
}

.cg-hero__sub {
	font-weight: 700;
	font-size: clamp(15px, 2.2vw, 24px);
	letter-spacing: 0.42em;
	text-transform: uppercase;
	padding-left: 0.42em;
}

.cg-hero__lede { font-size: clamp(17px, 1.6vw, 20px); max-width: 30em; text-wrap: balance; }

/* 6. Welcome photo strip -------------------------------------------------- */

.cg-strip {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	overflow-x: auto;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.cg-strip > * { margin: 0 !important; }

.cg-strip .wp-block-image.cg-strip__item {
	flex: 0 0 max(200px, calc((100% - 64px) / 5));
	aspect-ratio: 3 / 4;
	border-radius: 24px;
	overflow: hidden;
	background: var(--cg-saddle);
}

.cg-strip .wp-block-image.cg-strip__item:nth-child(even) { margin-top: 48px !important; }
.cg-strip .cg-strip__item img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 7. Calendar -------------------------------------------------------------- */

.cg-intro .cgvt-block { margin-top: 4px !important; }

/* 8. Businesses and the lease line ---------------------------------------- */

.cg-section--tan .cgvt-biz__photo { background: var(--cg-saddle); }

.cg-lease-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	padding-top: 32px;
	border-top: 1px solid #CDB896;
}

.cg-lease-line > * { margin: 0 !important; }
.cg-lease-line__icon { flex: none; }
.cg-lease-line__icon img { display: block; }

.cg-lease-line__text {
	flex: 1 1 320px;
	font-size: 16px;
	color: var(--cg-muted);
}

.cg-lease-line__text strong {
	font-family: var(--cg-rokkitt);
	font-weight: 600;
	font-size: 26px;
	line-height: 1.2;
	color: var(--cg-pine);
	margin-right: 6px;
}

/* 9. Set up shop band ------------------------------------------------------ */

.cg-section--pine .cg-photo { background: var(--cg-pine-2); }

.cg-setup-rows { border-bottom: 1px solid var(--cg-pine-line); }
.cg-setup-rows > * { margin: 0 !important; }

.cg-setup-row {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 28px 0;
	border-top: 1px solid var(--cg-pine-line);
}

.cg-setup-row > * { margin: 0 !important; }

.cg-setup-row__num {
	flex: none;
	min-width: 2.2ch;
	font-variant-numeric: tabular-nums;
	padding-top: 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--cg-gold);
}

.cg-setup-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cg-setup-row__body > * { margin: 0 !important; }

.cg-setup-row__eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--cg-saddle);
}

.cg-section--pine .cg-setup-row__title {
	font-family: var(--cg-rokkitt);
	font-weight: 600;
	font-size: clamp(28px, 3vw, 34px);
	line-height: 1.1;
	color: var(--cg-cream);
}

.cg-setup-row__text { max-width: 30em; color: #E8DCC8; }
.cg-setup-row__link { margin-top: 8px !important; }

.cg-setup-row__link a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 700;
	color: var(--cg-cream);
	text-decoration: underline;
	text-decoration-color: var(--cg-gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.cg-setup-row__link a::after {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--cg-icon-right) center / contain no-repeat;
	mask: var(--cg-icon-right) center / contain no-repeat;
}

.cg-setup-row__icon { flex: none; }
.cg-setup-row__icon img { display: block; }

/* The two rows sit in a narrower column, centered under the heading.
   Also centers them on pages made before the photo was taken out, once the photo is deleted. */
.cg-setup-rows {
	width: 100%;
	max-width: 760px;
	margin-left: auto !important;
	margin-right: auto !important;
}

@media (max-width: 480px) {
	.cg-setup-row { gap: 14px; }
	.cg-setup-row__icon img { width: 64px !important; }
}

/* 10. Contact and map ----------------------------------------------------- */

.cg-contact { align-items: stretch !important; }
.cg-contact__info { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.cg-contact__info > * { margin: 0 !important; }

.cg-contact__title {
	font-family: var(--cg-rokkitt);
	font-weight: 600;
	font-size: clamp(36px, 5vw, 56px);
	line-height: 1.02;
	letter-spacing: -0.01em;
	color: var(--cg-pine);
}

.cg-contact__info > .cgvt-block { width: 100%; margin-top: 6px !important; }

.cg-contact__row {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 24px 48px;
	padding-top: 4px;
}

.cg-contact__row > * { margin: 0 !important; }
.cg-contact__row > .cgvt-block:first-child { flex: 1 1 220px; }

.cg-contact__map { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.cg-contact__map > * { margin: 0 !important; }

.wp-block-image.cg-map { margin: 0; border-radius: var(--cg-radius); overflow: hidden; border: 1px solid var(--cg-saddle); }
.wp-block-image.cg-map img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.wp-block-image.cg-map a { display: block; }

.cg-contact__dir { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cg-contact__dir > * { margin: 0 !important; }
.cg-contact__dir p { font-size: 14px; color: var(--cg-muted); }

/* 11. Footer --------------------------------------------------------------- */

.cg-footer {
	margin-block-start: 0;
	background: var(--cg-pine);
	color: var(--cg-cream);
	padding-top: clamp(56px, 6vw, 80px);
	font-size: 15px;
	line-height: 1.6;
}

.cg-footer a { color: var(--cg-cream); text-decoration: none; }
.cg-footer a:hover { text-decoration: underline; text-decoration-color: var(--cg-gold); text-underline-offset: 4px; }

/* Name and tagline, then three link columns. */
.cg-footer .cg-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: 40px 48px;
	margin-block: 0;
	padding-bottom: clamp(40px, 5vw, 64px);
}

.cg-footer__top > * { margin: 0 !important; }

.cg-footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 26em; }
.cg-footer__brand > * { margin: 0 !important; }
.cg-footer__title { font-family: var(--cg-rye); font-size: 28px; font-weight: 400; line-height: 1.15; }
.cg-footer__tagline { color: var(--cg-tan); }

.cg-footer__col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cg-footer__col > * { margin: 0 !important; }

.cg-footer__heading {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--cg-gold);
}

.cg-footer__links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cg-footer__links li { margin: 0; }

.cg-footer__links + .cgvt-block { margin-top: -4px !important; }
.cg-footer .cgvt-events-link a { display: inline; min-height: 0; font-weight: 400; color: var(--cg-cream); text-decoration: none; }
.cg-footer .cgvt-events-link a:hover { text-decoration: underline; text-decoration-color: var(--cg-gold); }
.cg-footer .cgvt-events-link a svg { display: inline; width: 14px; height: 14px; margin-left: 6px; vertical-align: -1px; }

.cg-footer .cg-footer-call .cgvt-call__number { font-family: var(--cg-sans); font-size: 15px; font-weight: 600; line-height: 1.6; color: var(--cg-cream); }
.cg-footer .cgvt-hours--compact .cgvt-label { margin-top: 4px !important; }

/* Bottom bar: copyright on the left, social icons on the right. */
.cg-footer .cg-footer__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px 24px;
	margin-block: 0;
	padding-block: 22px 28px;
	border-top: 1px solid var(--cg-pine-line);
	font-size: 14px;
	color: var(--cg-saddle);
}

.cg-footer__bar > * { margin: 0 !important; }
.cg-footer__bar a { color: var(--cg-saddle); }

.cg-footer .cgvt-social--icons a { width: 40px; height: 40px; border-radius: 50%; border-color: var(--cg-pine-line); }
.cg-footer .cgvt-social--icons a:hover { border-color: var(--cg-gold); background: rgba(244, 235, 221, 0.08); }

@media (max-width: 900px) {
	.cg-footer .cg-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
	.cg-footer__brand { grid-column: 1 / -1; }
}

/* Phones: Explore and Set up shop side by side, Visit underneath. */
@media (max-width: 640px) {
	.cg-footer .cg-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
	.cg-footer__top > .cg-footer__col:last-child { grid-column: 1 / -1; }
}

/* 12. Form pages, other pages and form fields ----------------------------- */

.cg-form-page { padding-top: 16px; }
.cg-form-page > * + * { margin-block-start: 0; }

.wp-block-image.cg-banner { height: clamp(220px, 26vw, 340px); }

.cg-form-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-top: clamp(40px, 5vw, 56px) !important;
}

.cg-form-head > * { margin: 0 !important; }
.cg-form-head__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cg-form-head__text > * { margin: 0 !important; }

.cg-form-title {
	font-family: var(--cg-rye);
	font-weight: 400;
	font-size: clamp(40px, 6vw, 56px);
	line-height: 1.1;
	color: var(--cg-pine);
}

.cg-form-lede { font-size: 18px; max-width: 38em; }
.wp-block-image.cg-form-art { width: 170px; max-width: 100%; flex: none; }
.wp-block-image.cg-form-art img { width: 100%; height: auto; display: block; }

.cg-form-layout {
	margin-top: clamp(40px, 5vw, 56px) !important;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 16px;
}

.cg-form-layout > * { margin: 0 !important; }

.cg-form-card {
	flex: 999 1 560px;
	min-width: 0;
	background: var(--cg-cream);
	border-radius: var(--cg-radius);
	padding: clamp(24px, 4vw, 44px);
	box-sizing: border-box;
}

.cg-form-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cg-form-aside > * { margin: 0 !important; }

.cg-form-placeholder {
	border: 1.5px dashed var(--cg-field);
	border-radius: 14px;
	padding: 24px;
	color: var(--cg-muted);
}

/* Green details card with ticket notches. */
.cg-details {
	position: relative;
	overflow: hidden;
	background: var(--cg-pine);
	color: var(--cg-cream);
	border-radius: var(--cg-radius);
	padding: 28px;
}

.cg-details::before,
.cg-details::after {
	content: "";
	position: absolute;
	top: 64px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--cg-light);
}

.cg-details::before { left: -9px; }
.cg-details::after { right: -9px; }
.cg-details > * { margin-block: 0 !important; }

.cg-details__title,
.cg-next__title {
	font-family: var(--cg-rokkitt);
	font-weight: 600;
	font-size: 26px;
	line-height: 1.2;
}

.cg-details .cg-details__title {
	color: var(--cg-cream);
	padding-bottom: 14px !important;
	margin-bottom: 4px !important;
	border-bottom: 2px dashed var(--cg-pine-line);
}

.cg-details__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--cg-pine-2); }
.cg-details__row:last-of-type { border-bottom: 0; }
.cg-details__row > * { margin: 0 !important; }
.cg-details__row > :first-child { color: var(--cg-saddle); }
.cg-details__row > :last-child { font-weight: 600; text-align: right; }
.cg-details__note { font-size: 14px; color: var(--cg-saddle); margin-top: 8px !important; }

/* "What happens next": a plain list under a line. */
.cg-next { border-top: 1px solid var(--cg-saddle); padding: 28px 4px 0; }
.cg-next > * { margin-block: 0 !important; }
.cg-next__title { color: var(--cg-pine); margin-bottom: 14px !important; }

.cg-steps { list-style: none; padding: 0; counter-reset: cg-step; display: flex; flex-direction: column; gap: 14px; }
.cg-steps li { counter-increment: cg-step; display: flex; gap: 12px; align-items: flex-start; }

.cg-steps li::before {
	content: counter(cg-step);
	flex: 0 0 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--cg-cream);
	color: var(--cg-pine);
	font-weight: 700;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cg-next__call { margin-top: 20px !important; padding-top: 14px; border-top: 1px solid var(--cg-tan); font-size: 15px; }
.cg-next__call a { color: var(--cg-pine); font-weight: 700; }

/* Generic pages and posts. */
.cg-main--page { padding-block: 48px 88px; }
.cg-page-head { padding-bottom: 24px; margin-bottom: 40px !important; border-bottom: 1px solid var(--cg-saddle); }
.cg-page-head > * { margin: 0 !important; }
.cg-page-title { font-family: var(--cg-rye); font-weight: 400; color: var(--cg-pine); }
.cg-post-item { padding-block: 24px; border-bottom: 1px solid var(--cg-saddle); }
.cg-post-item__title a { color: var(--cg-pine); text-decoration: none; }
.cg-post-item__date { color: var(--cg-muted); font-size: 14px; }
.cg-404 .cg-eyebrow { margin-bottom: 8px; }

/* Form fields: matches Forminator forms set to design style "None", and plain HTML forms. */
.cg-form-card label,
.cg-form-card .forminator-label { display: block; font-size: 15px; font-weight: 600; color: var(--cg-ink); margin-bottom: 6px; }

.cg-form-card :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], select, textarea) {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--cg-field);
	border-radius: 14px;
	background: #fff;
	color: var(--cg-ink);
	font: inherit;
	box-sizing: border-box;
}

.cg-form-card textarea { padding: 12px 14px; min-height: 120px; resize: vertical; }
.cg-form-card :is(input[type="checkbox"], input[type="radio"]) { width: 20px; height: 20px; accent-color: var(--cg-red); }
.cg-form-card fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.cg-form-card :is(legend, .forminator-title) { font-family: var(--cg-rokkitt); font-weight: 600; font-size: 26px; color: var(--cg-pine); padding: 0 0 6px; }

.cg-form-card .forminator-checkbox,
.cg-form-card .forminator-radio {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 56px;
	padding: 10px 16px;
	border: 1px solid var(--cg-field);
	border-radius: 14px;
	margin-bottom: 12px;
	background: transparent;
	cursor: pointer;
}

.cg-form-card :is(button[type="submit"], input[type="submit"], .forminator-button-submit) {
	min-height: 52px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--cg-red);
	color: #fff;
	font: inherit;
	font-weight: 600;
	font-size: 17px;
	cursor: pointer;
}

.cg-form-card .forminator-row { margin-bottom: 18px; }
.cg-form-card .forminator-error-message { color: var(--cg-red); font-size: 14px; }

/* 13. Motion ------------------------------------------------------------------
   Small animations. All of them are off for visitors whose device asks for less motion. */

@media (prefers-reduced-motion: no-preference) {

	/* Hero: the words rise in one after another while the photo settles. */
	.cg-hero .wp-block-cover__inner-container > * { animation: cg-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
	.cg-hero .wp-block-cover__inner-container > :nth-child(2) { animation-delay: 0.08s; }
	.cg-hero .wp-block-cover__inner-container > :nth-child(3) { animation-delay: 0.16s; }
	.cg-hero .wp-block-cover__inner-container > :nth-child(4) { animation-delay: 0.26s; }
	.cg-hero .wp-block-cover__inner-container > :nth-child(5) { animation-delay: 0.34s; }
	.cg-hero .wp-block-cover__inner-container > :nth-child(n+6) { animation-delay: 0.42s; }
	.cg-hero .wp-block-cover__image-background { animation: cg-settle 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

	/* Scroll reveal, switched on per element by assets/js/motion.js. */
	.cg-reveal {
		opacity: 0;
		transform: translateY(22px);
		transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
		transition-delay: var(--cg-delay, 0ms);
	}
	.cg-reveal.is-in { opacity: 1; transform: none; }

	/* Buttons lift a little; the round arrow slides. */
	.wp-block-button .wp-block-button__link { transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
	.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(42, 36, 32, 0.5); }
	.wp-block-button .wp-block-button__link::after { transition: transform 0.25s ease; }
	.wp-block-button.is-style-arrow .wp-block-button__link:hover::after { transform: translateX(3px); }
	.wp-block-button.is-style-arrow-out .wp-block-button__link:hover::after { transform: translate(2px, -2px); }

	/* Text links with an arrow: the arrow nudges forward. */
	.cg-setup-row__link a::after { transition: transform 0.2s ease; }
	.cg-setup-row__link a:hover::after { transform: translateX(4px); }

	/* Photos zoom in slightly on hover. */
	.cg-strip__item img,
	.cgvt-biz__img,
	.cg-map img { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
	.cg-strip__item:hover img,
	.cgvt-biz__photo:hover .cgvt-biz__img,
	.cg-map:hover img { transform: scale(1.04); }

	/* Round icons tip a little when you point at their row. */
	.cg-setup-row__icon img,
	.cgvt-biz__icon { transition: transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1); }
	.cg-setup-row:hover .cg-setup-row__icon img,
	.cgvt-biz__item:hover .cgvt-biz__icon { transform: rotate(-8deg) scale(1.05); }
}

@keyframes cg-rise {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

@keyframes cg-settle {
	from { transform: scale(1.06); }
	to { transform: scale(1); }
}
