/* ==========================================================
   Stellar Header + Footer – matched to Framer
   Breakpoints follow Framer: desktop ≥1200, tablet 810–1199, phone <810
   ========================================================== */

/* ---------------- Header ---------------- */
.sm-header { --sm-ink: #14261D; --sm-orange: #D95D3A; --sm-cream: #F4F0E5; --sm-dark: #1B3428; --sm-green: #497E64; position: relative; z-index: 999; }
.sm-header-bar { position: relative; }
.sm-header-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	max-width: 1460px;
	margin: 0 auto;
	padding: 27px 30px;
	box-sizing: border-box;
}
.sm-header .sm-logo { display: inline-flex; align-items: center; justify-self: start; line-height: 0; }
.sm-header .sm-logo img { height: 32px; width: auto; display: block; }
.sm-header .sm-logo-text { font: 600 22px/1 "RM Neue", "DM Sans", sans-serif; color: var(--sm-ink); }

.sm-header .sm-menu, .sm-header .sm-mmenu { list-style: none; margin: 0; padding: 0; }
.sm-header .sm-menu { display: flex; align-items: center; gap: 40px; }
.sm-header .sm-menu a, .sm-header .sm-mmenu a {
	font-family: "DM Sans", sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 22.4px;
	color: var(--sm-ink);
	text-decoration: none;
	transition: color .2s ease;
}
.sm-header .sm-menu a:hover, .sm-header .sm-mmenu a:hover { color: var(--sm-orange); }
.sm-header .current-menu-item > a, .sm-header .current_page_item > a {
	color: var(--sm-orange);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.sm-header-actions { display: flex; align-items: center; gap: 20px; justify-self: end; }
.sm-header .sm-hbtn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 12px 30px;
	border-radius: 100px;
	background: var(--sm-dark);
	box-shadow: 0 4px 0 0 var(--sm-green);
	color: #fff;
	font: 500 16px/22.4px "DM Sans", sans-serif;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s cubic-bezier(.2,.8,.2,1);
}
.sm-header .sm-hbtn:hover { color: #fff; transform: translateY(2px); box-shadow: 0 2px 0 0 var(--sm-green); }

.sm-header .sm-burger,
.sm-header .sm-burger:hover,
.sm-header .sm-burger:focus {
	display: none;
	position: relative;
	width: 42px; height: 42px;
	padding: 0; margin: 0;
	border: 0; border-radius: 50%;
	background: var(--sm-dark);
	box-shadow: 0 3px 0 0 var(--sm-green);
	cursor: pointer;
}
.sm-header .sm-burger i {
	position: absolute; left: 50%; top: 50%;
	width: 18px; height: 2px; margin-left: -9px;
	border-radius: 2px; background: #fff;
	transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.sm-header .sm-burger i:first-child { transform: translateY(-4px); }
.sm-header .sm-burger i:last-child { transform: translateY(4px); }
.sm-header.is-open .sm-burger i:first-child { transform: rotate(45deg); }
.sm-header.is-open .sm-burger i:last-child { transform: rotate(-45deg); }

.sm-mpanel { display: none; }
.sm-moverlay { display: none; }
.sm-header-spacer { display: none; }

@media (max-width: 1199px) {
	.sm-header .sm-nav { display: none; }
	.sm-header-inner { grid-template-columns: 1fr auto; padding: 10px 30px; }
	.sm-header .sm-logo img { height: 36px; }
	.sm-header .sm-hbtn { padding: 10px 30px; }
	.sm-header .sm-burger, .sm-header .sm-burger:hover, .sm-header .sm-burger:focus { display: block; }

	.sm-mpanel {
		display: block;
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--sm-cream);
		padding: 0 24px;
		max-height: 0; overflow: hidden;
		transition: max-height .4s cubic-bezier(.2,.8,.2,1), padding .4s cubic-bezier(.2,.8,.2,1);
	}
	.sm-header.is-open .sm-mpanel { max-height: 420px; padding: 16px 24px 24px; }
	.sm-header .sm-mmenu { display: flex; flex-direction: column; gap: 18px; }
	.sm-header .sm-mmenu a { font-size: 18px; line-height: 24px; }

	.sm-moverlay {
		display: block; position: fixed; inset: 0; z-index: -1;
		background: rgba(20, 38, 29, .7);
		opacity: 0; visibility: hidden;
		transition: opacity .3s ease, visibility .3s ease;
	}
	.sm-header.is-open .sm-moverlay { opacity: 1; visibility: visible; }

	.sm-header--sticky .sm-header-bar {
		position: fixed; left: 0; right: 0; top: 0; z-index: 1000;
		background: var(--sm-cream);
	}
	body.admin-bar .sm-header--sticky .sm-header-bar { top: 32px; }
	.sm-header--sticky .sm-header-spacer { display: block; height: 62px; }
}

@media (max-width: 809px) {
	.sm-header-inner { padding: 12px 20px; }
	.sm-header .sm-logo img { height: 32px; }
	.sm-header .sm-hbtn { display: none; }
	.sm-header .sm-burger, .sm-header .sm-burger:hover, .sm-header .sm-burger:focus { width: 34px; height: 34px; }
	.sm-header .sm-burger i { width: 16px; margin-left: -8px; }
	.sm-header--sticky .sm-header-spacer { height: 58px; }
}
@media (max-width: 782px) {
	body.admin-bar .sm-header--sticky .sm-header-bar { top: 46px; }
}
@media (max-width: 600px) {
	body.admin-bar .sm-header--sticky .sm-header-bar { top: 0; }
}

/* ---------------- Footer ---------------- */
.sm-footer { --sm-cream: #F4F0E5; --sm-orange: #D95D3A; width: 100%; color: var(--sm-cream); font-family: "DM Sans", sans-serif; }
.sm-footer-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 250px 509px;
	column-gap: 30px;
	row-gap: 40px;
	align-items: start;
}
.sm-footer .sm-flogo { display: inline-block; line-height: 0; margin-bottom: 26px; }
.sm-footer .sm-flogo img { height: 32px; width: auto; display: block; }
.sm-footer .sm-femail, .sm-footer .sm-fmuted, .sm-footer .sm-fmenu a, .sm-footer .sm-flegal a, .sm-footer .sm-fcopy {
	font-size: 16px; line-height: 24px; font-weight: 400; margin: 0;
}
.sm-footer .sm-femail { display: block; color: var(--sm-cream); text-decoration: none; margin-bottom: 10px; }
.sm-footer .sm-femail:hover { color: var(--sm-orange); }
.sm-footer .sm-fmuted { color: rgba(245, 241, 230, .6); margin-bottom: 10px; }
.sm-footer .sm-fh {
	margin: 0 0 20px;
	font-family: "RM Neue", "RM Neue Regular", "DM Sans", sans-serif;
	font-weight: 400; font-size: 24px; line-height: 28.8px; letter-spacing: -.96px;
	color: var(--sm-cream);
}
.sm-footer .sm-fmenu {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: 110px 110px; grid-template-rows: repeat(4, auto); grid-auto-flow: column;
	column-gap: 30px; row-gap: 10px;
}
.sm-footer .sm-fmenu a { color: var(--sm-cream); text-decoration: none; transition: color .2s ease; }
.sm-footer .sm-fmenu a:hover, .sm-footer .sm-fmenu .current-menu-item > a, .sm-footer .sm-fmenu .current_page_item > a { color: var(--sm-orange); }

/* newsletter (Contact Form 7) */
.sm-footer .sm-fnews form { margin: 0; }
.sm-footer .sm-fnews .custom-email-subscribe,
.sm-footer .sm-fnews .wpcf7-form > p:first-of-type {
	position: relative; display: flex; align-items: center;
	height: 52px; padding: 10px 52px 10px 24px; margin: 0;
	border: 0; border-radius: 100px; background: var(--sm-cream);
	box-sizing: border-box; gap: 0;
}
.sm-footer .sm-fnews .custom-email-subscribe p { position: static; margin: 0; width: 100%; display: flex; align-items: center; }
.sm-footer .sm-fnews .wpcf7-form-control-wrap { flex: 1; min-width: 0; }
.sm-footer .sm-fnews input[type="email"] {
	width: 100%; height: 32px; padding: 0; margin: 0;
	border: 0; outline: 0; background: transparent; box-shadow: none;
	font: 400 16px/19.2px "DM Sans", sans-serif; color: #14261D;
}
.sm-footer .sm-fnews input[type="email"]::placeholder { color: rgba(20, 38, 29, .6); opacity: 1; }
.sm-footer .sm-fnews input[type="submit"] {
	position: absolute; top: 10px; right: 10px;
	width: 32px; height: 32px; min-width: 32px; padding: 0;
	border: 0; border-radius: 50%;
	background: var(--sm-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='12' fill='none'%3E%3Cpath fill='%23F4F0E5' d='M.708 4.959a.708.708 0 1 0 0 1.416h9.624l-3.75 3.75a.708.708 0 1 0 1.002 1.001l4.959-4.958a.71.71 0 0 0 0-1.002L7.584.208a.708.708 0 0 0-1.002 1.001l3.75 3.75z'/%3E%3C/svg%3E") center / 13px 12px no-repeat;
	color: transparent; font-size: 0; cursor: pointer;
	transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.sm-footer .sm-fnews input[type="submit"]:hover { transform: translateX(2px); }
.sm-footer .sm-fnews .wpcf7-spinner { display: none; }
.sm-footer .sm-fnews .wpcf7-not-valid-tip { font-size: 12px; color: #F9D8C0; position: absolute; top: 100%; left: 24px; margin-top: 6px; }
.sm-footer .sm-fnews .wpcf7-response-output { margin: 12px 0 0; padding: 8px 14px; border-radius: 12px; font-size: 14px; color: var(--sm-cream); }

/* bottom bar */
.sm-footer .sm-fbar {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	margin-top: 100px;
	min-height: 56px;
	padding: 16px 30px;
	border-radius: 100px;
	background: #14261D;
	box-sizing: border-box;
}
.sm-footer .sm-fcopy { color: var(--sm-cream); justify-self: start; }
.sm-footer .sm-fsocial { display: flex; align-items: center; gap: 16px; }
.sm-footer .sm-fsocial a { display: inline-flex; width: 24px; height: 24px; color: var(--sm-cream); transition: color .2s ease, transform .2s ease; }
.sm-footer .sm-fsocial a:hover { color: var(--sm-orange); transform: translateY(-2px); }
.sm-footer .sm-fsocial svg { width: 24px; height: 24px; }
.sm-footer .sm-flegal { display: flex; align-items: center; gap: 10px; justify-self: end; }
.sm-footer .sm-flegal a { color: var(--sm-cream); text-decoration: none; }
.sm-footer .sm-flegal a:hover { color: var(--sm-orange); }
.sm-footer .sm-fdot { width: 6px; height: 6px; border-radius: 50%; background: var(--sm-orange); display: inline-block; }

@media (max-width: 1199px) {
	.sm-footer-top { grid-template-columns: 250px minmax(0, 1fr); }
	.sm-footer .sm-fcol--contact { grid-column: 1 / -1; }
}
@media (max-width: 809px) {
	.sm-footer-top { grid-template-columns: 1fr; row-gap: 36px; }
	.sm-footer .sm-fh { font-size: 20px; line-height: 24px; letter-spacing: -.8px; margin-bottom: 16px; }
	.sm-footer .sm-fmenu { grid-template-columns: 90px 90px; }
	.sm-footer .sm-fbar {
		grid-template-columns: 1fr; justify-items: center; row-gap: 14px;
		margin-top: 60px; padding: 20px 24px; border-radius: 28px; text-align: center;
	}
	.sm-footer .sm-fcopy, .sm-footer .sm-flegal { justify-self: center; }
}
