/* =========================================================
   Cake Factory Modern — base theme styles
   ========================================================= */

:root {
	--cfm-primary: #e1be64;
	--cfm-primary-dark: #c9a54a;
	--cfm-dark: #262626;
	--cfm-muted: #6b6b6b;
	--cfm-line: #e8e4dc;
	--cfm-soft: #f6f4ef;
	--cfm-footer: #151515;
	--cfm-white: #ffffff;
	--cfm-font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
	--cfm-font-body: "Jost", "Segoe UI", Helvetica, Arial, sans-serif;
	--cfm-container: 1280px;
	--cfm-container-wide: 1760px;
	--cfm-gutter: 24px;
	--cfm-radius: 6px;
	--cfm-shadow: 0 10px 30px rgba(20, 16, 8, 0.08);
	--cfm-header-h: 92px;
	--cfm-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--cfm-font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--cfm-dark);
	background: var(--cfm-white);
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
img { vertical-align: middle; }

::selection { background: var(--cfm-primary); color: #1c1c1c; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--cfm-primary-dark); outline-offset: 3px; border-radius: 4px; }

a { color: var(--cfm-dark); text-decoration: none; transition: color .2s var(--cfm-ease), opacity .2s var(--cfm-ease); }
a:hover { color: var(--cfm-primary-dark); }
.entry-content p a:not(.cfm-btn):not(.button):not(.vc_btn3), .comment-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--cfm-primary); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--cfm-font-heading);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.01em;
	margin: 0 0 .6em;
	color: var(--cfm-dark);
	text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: .95rem; letter-spacing: .04em; }

p { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.4em; }
blockquote {
	margin: 1.5em 0;
	padding: 1em 1.5em;
	border-left: 3px solid var(--cfm-primary);
	background: var(--cfm-soft);
	font-family: var(--cfm-font-heading);
	font-style: italic;
	font-size: 1.1rem;
}
hr { border: 0; border-top: 1px solid var(--cfm-line); margin: 2.5em 0; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .75em; border-bottom: 1px solid var(--cfm-line); text-align: left; }
code, pre { font-family: Consolas, Menlo, monospace; font-size: .92em; }
pre { background: var(--cfm-soft); padding: 1em; overflow: auto; border-radius: var(--cfm-radius); }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"],
input[type="number"], input[type="tel"], input[type="date"], textarea, select {
	width: 100%;
	font: inherit;
	color: var(--cfm-dark);
	padding: .7em .9em;
	border: 1px solid #d9d4c9;
	border-radius: var(--cfm-radius);
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--cfm-primary);
	box-shadow: 0 0 0 3px rgba(225, 190, 100, .25);
}
textarea { min-height: 140px; resize: vertical; }
label { font-weight: 500; }

button, .button, .cfm-btn,
input[type="submit"], input[type="button"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	font-family: var(--cfm-font-body);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	line-height: 1;
	padding: 1em 1.8em;
	border: 2px solid var(--cfm-primary);
	border-radius: 999px;
	background: var(--cfm-primary);
	color: #1c1c1c;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s var(--cfm-ease);
}
button:hover, .button:hover, .cfm-btn:hover,
input[type="submit"]:hover, input[type="button"]:hover {
	background: var(--cfm-dark);
	border-color: var(--cfm-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(20, 16, 8, .12);
}
button:active, .button:active, .cfm-btn:active, input[type="submit"]:active { transform: translateY(0); box-shadow: none; }
.cfm-btn-outline { background: transparent; color: var(--cfm-dark); }
.cfm-btn-small { padding: .7em 1.3em; font-size: .74rem; }
.cfm-btn-large { padding: 1.2em 2.3em; font-size: .9rem; }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px; width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none;
	height: auto; width: auto;
	left: 8px; top: 8px;
	z-index: 100000;
	padding: 1em;
	background: #fff;
}

/* Layout */
.cfm-container {
	width: 100%;
	max-width: var(--cfm-container);
	margin: 0 auto;
	padding: 0 var(--cfm-gutter);
}
.cfm-site { overflow-x: clip; }
.cfm-site-main { min-height: 40vh; }
.cfm-site-main:not(.cfm-site-main-full) { padding: 56px 0 80px; }
.cfm-site-main-full { padding-top: 40px; }
.cfm-site-main-full > article > .entry-content > .vc_row:first-child.vc_row-has-fill,
.cfm-site-main-full > article > .entry-content > .wpb-content-wrapper > .vc_row:first-child.vc_row-has-fill { margin-top: -40px; } /* a full-bleed banner row can still touch the header */
.cfm-page-container { max-width: 1040px; }
.cfm-layout { display: grid; gap: 48px; }
.cfm-layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 991px) { .cfm-layout.has-sidebar { grid-template-columns: 1fr; } }
.cfm-full-width-page .entry-content > :not(.vc_row):not(.wpb-content-wrapper):not(.wpb_row) { max-width: var(--cfm-container); margin-left: auto; margin-right: auto; padding-left: var(--cfm-gutter); padding-right: var(--cfm-gutter); }

/* Page header band */
.cfm-page-header {
	background: var(--cfm-soft) radial-gradient(ellipse at top, rgba(225,190,100,.18), transparent 60%);
	padding: 72px 0 56px;
	text-align: center;
	border-bottom: 1px solid var(--cfm-line);
}
.cfm-page-header + .cfm-site-main { padding-top: 48px; }
.cfm-page-header .cfm-page-title { margin: 0; }
.cfm-page-header .cfm-page-title::after {
	content: "";
	display: block;
	width: 48px; height: 2px;
	background: var(--cfm-primary);
	margin: 16px auto 0;
}
.cfm-page-subtitle { margin-top: 12px; color: var(--cfm-muted); max-width: 640px; margin-left: auto; margin-right: auto; }

/* =========================================================
   Header
   ========================================================= */
.cfm-header { position: relative; z-index: 900; background: #fff; }

.cfm-topbar {
	background: var(--cfm-dark);
	color: rgba(255,255,255,.85);
	font-size: .8rem;
	letter-spacing: .04em;
}
.cfm-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.cfm-topbar a { color: #fff; }
.cfm-topbar a:hover { color: var(--cfm-primary); }
.cfm-topbar-right { display: flex; align-items: center; gap: 18px; }
.cfm-topbar-phone { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 767px) {
	.cfm-topbar-text { display: none; }
	.cfm-topbar-inner { justify-content: center; }
}

.cfm-header-main { border-bottom: 1px solid var(--cfm-line); background: #fff; transition: box-shadow .3s; }
.cfm-header-inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
	min-height: var(--cfm-header-h);
}
.cfm-branding { display: flex; align-items: center; }
.cfm-branding img, .cfm-mobile-menu-head img, .cfm-footer-logo img { max-height: 64px; width: auto; transition: max-height .25s; }
.cfm-text-logo { font-family: var(--cfm-font-heading); font-size: 1.6rem; font-weight: 700; letter-spacing: .02em; }

.cfm-nav { display: flex; justify-content: center; }
.cfm-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.cfm-menu li { position: relative; }
.cfm-menu > li > a {
	display: block;
	padding: 12px 14px;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--cfm-dark);
}
.cfm-menu > li > a { position: relative; }
.cfm-menu > li > a::before {
	content: "";
	position: absolute;
	left: 14px; right: 14px; bottom: 6px;
	height: 2px;
	background: var(--cfm-primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s var(--cfm-ease);
}
.cfm-menu > li > a:hover::before, .cfm-menu > li.current-menu-item > a::before, .cfm-menu > li.current-menu-ancestor > a::before { transform: scaleX(1); }
.cfm-menu > li > a:hover, .cfm-menu > li.current-menu-item > a, .cfm-menu > li.current-menu-ancestor > a { color: var(--cfm-dark); }
.cfm-menu > li.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px; height: 6px;
	margin-left: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}
.cfm-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	margin: 0;
	padding: 12px 0;
	list-style: none;
	background: #fff;
	border-top: 2px solid var(--cfm-primary);
	box-shadow: var(--cfm-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s var(--cfm-ease), transform .2s var(--cfm-ease), visibility .2s;
	z-index: 20;
}
.cfm-menu li:hover > .sub-menu, .cfm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cfm-menu .sub-menu .sub-menu { top: -12px; left: 100%; }
.cfm-menu .sub-menu a { display: block; padding: 9px 22px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cfm-dark); transition: background .15s, padding-left .2s var(--cfm-ease); }
.cfm-menu .sub-menu a:hover { color: var(--cfm-dark); background: var(--cfm-soft); padding-left: 26px; }
.cfm-menu .sub-menu li.current-menu-item > a { color: var(--cfm-primary-dark); }
/* Menus can carry a search form via the shortcode-in-menus plugin */
.cfm-menu form { margin: 0 8px; }
.cfm-menu form input[type="search"], .cfm-menu form input[type="text"] { width: 180px; padding: .5em .8em; border-radius: 999px; font-size: .85rem; }

.cfm-header-actions { display: flex; align-items: center; gap: 6px; }
.cfm-header-search { margin-right: 6px; }
.cfm-header-actions > a, .cfm-header-actions > button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: transparent;
	color: var(--cfm-dark);
	letter-spacing: 0;
	text-transform: none;
	transition: background .2s, color .2s;
}
.cfm-header-actions > a:hover, .cfm-header-actions > button:hover { background: var(--cfm-soft); color: var(--cfm-dark); transform: none; }
.cfm-header-cart-icon { position: relative; display: inline-flex; }
.cfm-cart-count {
	position: absolute;
	top: -8px; right: -10px;
	min-width: 18px; height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--cfm-primary);
	color: #1c1c1c;
	font-size: .68rem;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}
.cfm-cart-count[data-count="0"] { display: none; }

/* Desktop shows the inline live search; the toggle + panel are for small screens only */
@media (min-width: 992px) { .cfm-header-actions > .cfm-search-toggle { display: none; } }
@media (max-width: 991px) { .cfm-header-actions > .cfm-header-search { display: none; } }

.cfm-menu-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--cfm-dark); }
.cfm-menu-toggle:hover { background: var(--cfm-soft); color: var(--cfm-dark); transform: none; }

.cfm-search-panel { border-top: 1px solid var(--cfm-line); padding: 18px 0; background: #fff; }
.cfm-search-panel form, .cfm-search-form { display: flex; gap: 8px; max-width: 720px; margin: 0 auto; position: relative; }
.cfm-search-panel input[type="search"], .cfm-search-panel input[type="text"], .cfm-search-form input { flex: 1; border-radius: 999px; padding-left: 1.2em; }
.cfm-search-panel button, .cfm-search-submit { padding: 0 1.4em; }

/* Sticky */
.cfm-has-sticky-header .cfm-header-main.is-sticky {
	position: fixed;
	top: 0; left: 0; right: 0;
	box-shadow: 0 8px 24px rgba(0,0,0,.08);
	animation: cfm-slide-down .3s var(--cfm-ease);
	--cfm-header-h: 72px;
}
.cfm-has-sticky-header .cfm-header-main.is-sticky .cfm-branding img { max-height: 48px; }
.cfm-header-placeholder { display: none; }
.cfm-header-placeholder.is-active { display: block; }
@keyframes cfm-slide-down { from { transform: translateY(-100%); } to { transform: translateY(0); } }
body.admin-bar .cfm-has-sticky-header .cfm-header-main.is-sticky { top: 32px; }
@media (max-width: 782px) { body.admin-bar .cfm-has-sticky-header .cfm-header-main.is-sticky { top: 46px; } }

/* Mobile menu */
.cfm-mobile-menu {
	position: fixed;
	top: 0; left: 0; bottom: 0;
	width: min(360px, 88vw);
	background: #fff;
	z-index: 1100;
	transform: translateX(-100%);
	transition: transform .35s var(--cfm-ease);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}
.cfm-mobile-menu.is-open { transform: translateX(0); box-shadow: 0 0 60px rgba(0,0,0,.25); }
.cfm-mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--cfm-line); }
.cfm-mobile-menu-head img { max-height: 44px; }
.cfm-mobile-close { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--cfm-soft); color: var(--cfm-dark); }
.cfm-mobile-nav, .cfm-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.cfm-mobile-nav { padding: 12px 0; flex: 1; }
.cfm-mobile-nav li { border-bottom: 1px solid var(--cfm-line); }
.cfm-mobile-nav li li { border-bottom: 0; }
.cfm-mobile-nav a { display: block; padding: 13px 20px; font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.cfm-mobile-nav .sub-menu { display: none; background: var(--cfm-soft); padding: 4px 0 8px; }
.cfm-mobile-nav .sub-menu a { padding: 9px 20px 9px 32px; font-weight: 400; font-size: .8rem; }
.cfm-mobile-nav li.is-open > .sub-menu { display: block; }
.cfm-mobile-nav li.menu-item-has-children { position: relative; }
.cfm-mobile-nav .cfm-submenu-toggle {
	position: absolute;
	top: 4px; right: 10px;
	width: 38px; height: 38px;
	border: 0; padding: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--cfm-dark);
}
.cfm-mobile-nav .cfm-submenu-toggle:hover { background: var(--cfm-soft); color: var(--cfm-dark); transform: none; }
.cfm-mobile-nav li.is-open > .cfm-submenu-toggle svg { transform: rotate(180deg); }
.cfm-mobile-nav form { padding: 10px 20px; }
.cfm-mobile-search { padding: 14px 20px 4px; }
.cfm-mobile-menu-foot { padding: 16px 20px 24px; border-top: 1px solid var(--cfm-line); display: flex; flex-direction: column; gap: 12px; font-size: .9rem; }
.cfm-mobile-menu-foot a { display: inline-flex; align-items: center; gap: 8px; }
.cfm-overlay { position: fixed; inset: 0; background: rgba(20,16,8,.5); z-index: 1050; opacity: 0; transition: opacity .3s; }
.cfm-overlay.is-visible { opacity: 1; }
body.cfm-menu-open, body.cfm-cart-open { overflow: hidden; }

@media (max-width: 1100px) {
	.cfm-menu > li > a { padding: 12px 9px; font-size: .74rem; letter-spacing: .1em; }
}
@media (max-width: 991px) {
	.cfm-nav { display: none; }
	.cfm-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.cfm-header-inner { grid-template-columns: 42px 1fr auto; --cfm-header-h: 72px; }
	.cfm-branding { justify-content: center; }
	.cfm-branding img { max-height: 48px; }
	.cfm-header-actions > .cfm-header-account { display: none; }
	.cfm-header-actions { gap: 0; }
}

/* Social icons */
.cfm-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.cfm-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px; height: 34px;
	border-radius: 50%;
	color: inherit;
	transition: background .2s, color .2s;
}
.cfm-social-topbar a { width: 28px; height: 28px; }
.cfm-social a:hover { background: var(--cfm-primary); color: #1c1c1c; }
.cfm-social-footer a { background: rgba(255,255,255,.08); color: #fff; width: 40px; height: 40px; }

/* =========================================================
   Content blocks
   ========================================================= */
.entry-content > * + * { margin-top: 1.2em; }
.entry-content > p:first-child { margin-top: 0; }
.entry-content .alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.wp-block-image img, .cfm-page-thumb img, .cfm-single-thumb img { border-radius: var(--cfm-radius); }
.cfm-page-thumb, .cfm-single-thumb { margin-bottom: 32px; }
.wp-caption, .wp-block-image figcaption { font-size: .85rem; color: var(--cfm-muted); text-align: center; }
.page-links { margin-top: 2em; }

.cfm-post-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cfm-post-card { background: #fff; border: 1px solid var(--cfm-line); border-radius: var(--cfm-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--cfm-ease), box-shadow .25s; }
.cfm-post-card:hover { transform: translateY(-4px); box-shadow: var(--cfm-shadow); }
.cfm-post-card-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cfm-post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.cfm-post-card-title { font-size: 1.3rem; margin: 0; }
.cfm-post-card-excerpt p { margin: 0; color: var(--cfm-muted); font-size: .95rem; }
.cfm-readmore { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-top: 8px; }
.cfm-entry-meta { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cfm-muted); }
.cfm-entry-meta a { color: var(--cfm-primary-dark); }
.cfm-meta-sep { margin: 0 8px; }

.cfm-single-header { text-align: center; margin-bottom: 32px; }
.cfm-single-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--cfm-line); }
.cfm-tags a { display: inline-block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; margin: 0 6px 6px 0; border: 1px solid var(--cfm-line); border-radius: 999px; }

.post-navigation { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--cfm-line); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 24px; }
.post-navigation .nav-next { text-align: right; }
.cfm-nav-label { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cfm-muted); }
.cfm-nav-title { font-family: var(--cfm-font-heading); font-size: 1.05rem; }

.pagination, .woocommerce-pagination { margin-top: 48px; text-align: center; }
.pagination .nav-links, .woocommerce-pagination ul.page-numbers { display: inline-flex; gap: 6px; list-style: none; margin: 0; padding: 0; border: 0; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--cfm-line); font-size: .85rem; font-weight: 500; }
.page-numbers.current, .page-numbers:hover { background: var(--cfm-dark); border-color: var(--cfm-dark); color: #fff; }

/* Sidebar & widgets */
.cfm-sidebar .widget, .cfm-shop-sidebar .widget { margin-bottom: 36px; }
.widget-title { font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--cfm-font-body); font-weight: 600; margin-bottom: 16px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--cfm-line); }
.widget li:last-child { border-bottom: 0; }

/* Comments */
.cfm-comments { margin-top: 56px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .comment { padding: 20px 0; border-bottom: 1px solid var(--cfm-line); }
.comment-list .children { list-style: none; padding-left: 40px; }
.comment-author .avatar { border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.comment-metadata { font-size: .8rem; color: var(--cfm-muted); }
.comment-form label { display: block; margin-bottom: 4px; }
.comment-form p { margin-bottom: 1em; }

/* 404 */
.cfm-404 { text-align: center; max-width: 640px; }
.cfm-404-code { font-family: var(--cfm-font-heading); font-size: clamp(5rem, 15vw, 9rem); line-height: 1; color: var(--cfm-primary); margin: 0; }
.cfm-404-search { margin: 24px 0; }
.cfm-no-results { max-width: 600px; }

/* =========================================================
   Legacy (edgtf) shortcode fallbacks
   ========================================================= */
.cfm-section-title { margin-bottom: 8px; }
.cfm-align-left { text-align: left; }
.cfm-align-center { text-align: center; }
.cfm-align-right { text-align: right; }
.cfm-section-subtitle { display: block; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cfm-primary-dark); margin-bottom: 8px; }
.cfm-section-heading { margin: 0; }
.cfm-section-text { color: var(--cfm-muted); margin-top: 12px; }

.cfm-eh { display: grid; gap: 0; align-items: stretch; }
.cfm-eh-cols-1 { grid-template-columns: 1fr; }
.cfm-eh-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cfm-eh-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cfm-eh-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cfm-eh-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cfm-eh-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cfm-eh-item { display: flex; min-width: 0; background-size: cover; background-position: center; }
.cfm-eh-item img { max-width: 100%; height: auto; }
.cfm-eh-item-inner { width: 100%; }
.cfm-eh-h-left { justify-content: flex-start; text-align: left; }
.cfm-eh-h-center { justify-content: center; text-align: center; }
.cfm-eh-h-right { justify-content: flex-end; text-align: right; }
.cfm-eh-v-top { align-items: flex-start; }
.cfm-eh-v-middle { align-items: center; }
.cfm-eh-v-bottom { align-items: flex-end; }
@media (max-width: 1280px) { .cfm-eh-switch-1280 { grid-template-columns: 1fr; } }
@media (max-width: 1024px) { .cfm-eh-switch-1024 { grid-template-columns: 1fr; } }
@media (max-width: 768px)  { .cfm-eh-switch-768  { grid-template-columns: 1fr; } .cfm-eh-cols-4, .cfm-eh-cols-5, .cfm-eh-cols-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .cfm-eh-switch-680  { grid-template-columns: 1fr; } }
@media (max-width: 480px)  { .cfm-eh-switch-480, .cfm-eh { grid-template-columns: 1fr; } }
.cfm-eh-one-col-center .cfm-eh-item { text-align: center; justify-content: center; }

.cfm-portfolio-grid, .cfm-grid { display: grid; gap: 20px; }
.cfm-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cfm-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cfm-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cfm-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cfm-grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .cfm-grid-cols-4, .cfm-grid-cols-5, .cfm-grid-cols-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cfm-portfolio-grid { grid-template-columns: repeat(2, 1fr) !important; } }
.cfm-portfolio-item { position: relative; display: block; overflow: hidden; border-radius: var(--cfm-radius); background: var(--cfm-soft); }
.cfm-portfolio-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--cfm-ease); }
.cfm-portfolio-item:hover img { transform: scale(1.05); }
.cfm-portfolio-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); color: #fff; font-family: var(--cfm-font-heading); font-size: 1.05rem; }

.cfm-separator hr { display: inline-block; width: 60px; border-top: 2px solid var(--cfm-primary); margin: 16px 0; }
.cfm-custom-font { margin: 0; }
.edgtf-custom-font-holder { font-family: var(--cfm-font-heading); }

/* =========================================================
   Elementor pages
   ========================================================= */
/* Elementor "Full Width" template and Elementor-built pages start a little below the header */
.elementor-template-full-width .cfm-site > .elementor,
.cfm-site-main-elementor { padding-top: 40px; }
.cfm-site-main-elementor { padding-bottom: 0; }
.elementor-widget-container > .cfm-live-search { margin: 0 auto; }
.elementor-widget-heading .elementor-heading-title { font-family: var(--cfm-font-heading); }
.elementor-widget-text-editor { font-family: var(--cfm-font-body); }
.cfm-map iframe { width: 100%; display: block; }
.e-con.home-footer { gap: 0; }
.e-con.home-footer .elementor-widget-image, .e-con.home-footer .elementor-widget-image .elementor-widget-container, .e-con.home-footer .elementor-widget-image img { width: 100%; }
.e-con.home-footer .elementor-widget-image img { border-radius: 0; height: auto; }
.e-con.home-footer .elementor-widget-spacer { display: none; }
.e-con.home-footer + .e-con.home-footer { padding-top: 0; }

/* =========================================================
   Category Grid widget (Elementor)
   ========================================================= */
.cfm-cg { --cg-cols: 5; --cg-gap: 24px; --cg-pad: 10px; --cg-img-radius: 12px; }
.cfm-cg-grid { display: grid; grid-template-columns: repeat(var(--cg-cols), minmax(0, 1fr)); gap: var(--cg-gap); list-style: none; margin: 0; padding: 0; }
.cfm-cg-grid > li { margin: 0; padding: 0; }
.cfm-cg-card {
	display: flex; flex-direction: column; align-items: center;
	height: 100%;
	background: #fff;
	border-radius: calc(var(--cg-img-radius) + 6px);
	box-shadow: 0 2px 10px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
	padding: var(--cg-pad) var(--cg-pad) calc(var(--cg-pad) + 6px);
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	transition: box-shadow .25s ease, transform .25s ease;
}
.cfm-cg-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.11), 0 2px 4px rgba(0,0,0,.05); color: inherit; }
.cfm-cg-hover-lift .cfm-cg-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.15), 0 4px 8px rgba(0,0,0,.07); transform: translateY(-5px); }
.cfm-cg-hover-zoom .cfm-cg-card:hover .cfm-cg-img-inner { transform: scale(1.06); }
.cfm-cg-img { display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--cg-img-radius); background: #f0f0f0; flex-shrink: 0; }
.cfm-cg-img-inner { display: block; width: 100%; height: 100%; transition: transform .4s ease; }
.cfm-cg-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cfm-cg-body { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; text-align: center; margin: 14px 8px 0; }
.cfm-cg-name { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; color: #1a1a1a; }
.cfm-cg-count { display: block; font-size: .8em; color: #888; }
.cfm-cg-btn-wrap { display: flex; justify-content: center; width: 100%; margin: 14px 0 0; margin-top: auto; padding-top: 14px; }
.cfm-cg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	padding: 9px 20px;
	background: var(--cfm-primary, #e1be64);
	color: #fff;
	font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; line-height: 1;
	border-radius: 6px;
	white-space: nowrap;
	transition: background .2s ease, color .2s ease, transform .15s ease;
}
.cfm-cg-btn.is-full { width: 100%; }
.cfm-cg-card:active .cfm-cg-btn { transform: scale(.97); }
.cfm-cg-btn svg { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* WPBakery helpers */
.cfm-wpb-page .vc_row[data-vc-full-width] { overflow: hidden; }
.wpb_text_column p:last-child { margin-bottom: 0; }
.vc_custom_heading { font-family: var(--cfm-font-heading); }
.vc_btn3.vc_btn3-color-primary, .vc_btn3.vc_btn3-color-juicy-pink { background-color: var(--cfm-primary) !important; color: #1c1c1c !important; }
/* Full Width template:
   - rows with a background fill, or set to "stretch" in WPBakery, span the whole viewport
     (e.g. the front-page category band);
   - every other row sits in the centred site container. The !important is needed because
     WPBakery writes per-row margins with !important. */
.cfm-site-main-full > article > .entry-content > .vc_row:not([data-vc-full-width]):not(.vc_row-has-fill):not(.home-footer),
.cfm-site-main-full > article > .entry-content > .wpb-content-wrapper > .vc_row:not([data-vc-full-width]):not(.vc_row-has-fill):not(.home-footer) {
	max-width: var(--cfm-container);
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: var(--cfm-gutter);
	padding-right: var(--cfm-gutter);
}
.cfm-site-main-full > article > .entry-content > .vc_row.vc_row-has-fill:not([data-vc-full-width]),
.cfm-site-main-full > article > .entry-content > .wpb-content-wrapper > .vc_row.vc_row-has-fill:not([data-vc-full-width]),
.cfm-site-main-full > article > .entry-content > .vc_row.home-footer,
.cfm-site-main-full > article > .entry-content > .wpb-content-wrapper > .vc_row.home-footer { padding-left: var(--cfm-gutter); padding-right: var(--cfm-gutter); }

/* Front-page branch rows ("home-footer"): full width, images fill their column */
.home-footer .cfm-eh-item .wpb_single_image, .home-footer .elementor-widget-image, .home-footer .elementor-widget-image .elementor-widget-container,
.home-footer .cfm-eh-item .wpb_single_image .vc_single_image-wrapper,
.home-footer .cfm-eh-item .wpb_single_image img, .home-footer .elementor-widget-image img { width: 100%; }
.home-footer .cfm-eh-item .wpb_single_image img, .home-footer .elementor-widget-image img { height: auto; border-radius: 0; object-fit: cover; }
.vc_row.home-footer .cfm-eh { gap: 0; }
/* Stack the two branch rows with no space between them */
.cfm-site-main-full .vc_row.home-footer.wpb_row { margin-top: 0 !important; margin-bottom: 0 !important; }
.vc_row.home-footer .vc_column-inner { padding-top: 0; padding-bottom: 0; }
.vc_row.home-footer .wpb_content_element { margin-bottom: 0; }
.vc_row.home-footer .vc_empty_space { display: none; }
.vc_row.home-footer .cfm-eh-item[style*="padding"] { padding-top: 24px !important; padding-bottom: 24px !important; }
.vc_row.home-footer .wpb_gmaps_widget .wpb_wrapper { padding: 0; }

/* =========================================================
   Footer
   ========================================================= */
.cfm-footer { background: var(--cfm-footer); color: rgba(255,255,255,.75); font-size: .95rem; }
.cfm-footer a { color: #fff; }
.cfm-footer a:hover { color: var(--cfm-primary); }
.cfm-footer-top { padding: 64px 0 40px; }
.cfm-footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cfm-footer .widget-title, .cfm-footer h4 { color: #fff; }
.cfm-footer .widget li { border-color: rgba(255,255,255,.08); }
.cfm-footer-logo { margin-bottom: 16px; }
.cfm-footer-logo img { max-height: 72px; }
.cfm-footer-about { max-width: 320px; }
.cfm-footer-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.cfm-footer-menu { list-style: none; margin: 0; padding: 0; }
.cfm-footer-menu li { padding: 5px 0; }
.cfm-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .8rem; letter-spacing: .04em; color: rgba(255,255,255,.55); }
.cfm-footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.cfm-footer-bottom .widget { margin: 0; }
.cfm-footer-bottom .widget_text p { margin: 0; }
.cfm-footer-bottom .widget a, .cfm-copyright a { color: rgba(255,255,255,.85) !important; text-decoration: none; }
.cfm-footer-bottom .widget a:hover, .cfm-copyright a:hover { color: var(--cfm-primary) !important; }
.cfm-footer-about { color: rgba(255,255,255,.65); line-height: 1.8; }
.cfm-footer .widget_text p, .cfm-footer .textwidget { color: rgba(255,255,255,.7); }

/* Small screens */
@media (max-width: 767px) {
	:root { --cfm-gutter: 18px; }
	.cfm-site-main:not(.cfm-site-main-full) { padding: 32px 0 56px; }
	.cfm-page-header { padding: 36px 0; }
	.cfm-footer-top { padding: 48px 0 24px; }
	.post-navigation .nav-links { flex-direction: column; }
	.post-navigation .nav-next { text-align: left; }
	.entry-content .alignwide { margin-left: 0; margin-right: 0; }
}

@media print {
	.cfm-header, .cfm-footer, .cfm-mobile-menu, .cfm-overlay { display: none !important; }
}
