/*
Theme Name: Shorac Funeral Home (C)
Theme URI: https://shorac.com
Author: McGinnis Creative Group
Author URI: https://mcginnismade.com
Description: Lightweight classic theme for Shorac Funeral Home. No page builder required. Supports WooCommerce, the Obituary Assistant plugin, Gravity Forms and Google Reviews.
Version: 1.7.1
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: shorac
*/

/* ---------------------------------------------------------------- tokens */
:root {
	--brown: #311F1F;
	--text: #5C5C5C;
	--blush: #EEE8E5;
	--blush-2: #E7D5D2;
	--rose: #B08A7F;
	--gold: #C7A239;
	--white: #fff;
	--line: #D4D4D4;
	--font-head: "Marcellus", Georgia, "Times New Roman", serif;
	--font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-script: "Allison", cursive;
	--maxw: 1240px;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--section: clamp(3.5rem, 8vw, 6.5rem);
	--radius: 2px;
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--text);
	background: var(--white);
	font: 500 16px/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--brown); text-decoration-color: var(--rose); text-underline-offset: 3px; }
a:hover { color: var(--rose); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	color: var(--brown);
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--brown); color: #fff; padding: .75rem 1rem; }
.skip-link:focus { left: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 860px); }
.center { text-align: center; }
.admin-note { background: #fff8d6; border: 1px dashed var(--gold); padding: .75rem 1rem; font-size: .9rem; }

.eyebrow { margin: 0 0 .75rem; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); font-weight: 600; }
.eyebrow--light { color: var(--blush-2); }
.lead { font-size: 1.2rem; max-width: 46rem; margin-inline: auto; }
.meta { font-size: .9rem; color: var(--rose); }

/* --------------------------------------------------------------- buttons */
.btn, .button, button.button, input[type="submit"], .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt, .gform_button {
	display: inline-block;
	padding: 1.2rem 2.5rem;
	border: 1px solid var(--brown);
	border-radius: var(--radius);
	background: var(--brown);
	color: #fff;
	font: 600 .82rem/1 var(--font-body);
	letter-spacing: .14em;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.btn:hover, .button:hover, input[type="submit"]:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .gform_button:hover { background: var(--rose); border-color: var(--rose); color: #fff; }
.btn--small { padding: .7rem 1.2rem; font-size: .72rem; }
.btn--outline { background: transparent; color: var(--brown); }
.btn--outline:hover { background: var(--brown); border-color: var(--brown); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--brown); }
.btn--light:hover { background: var(--blush-2); border-color: var(--blush-2); color: var(--brown); }

/* ------------------------------------------------------------- sections */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) / 2); }
.section--blush { background: var(--blush); }
.section--dark { background: var(--brown); color: #e8dcd8; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse .split__text { order: 1; }
.split--reverse .split__media { order: 2; }
.split__media { min-height: 460px; background-size: cover; background-position: center; border-radius: var(--radius); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__media { min-height: 300px; order: -1 !important; } }

.card-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 3rem; }
.service-card, .pet-card, .feature { background: #fff; border: 1px solid var(--blush); padding: 0 0 1.5rem; }
.service-card img, .pet-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 1.25rem; }
.service-card h4, .service-card p, .pet-card h2, .pet-card p, .pet-card .btn { margin-inline: 1.5rem; }
.service-card p { font-size: .95rem; }
.pet-card h2 { font-size: 1.5rem; margin-bottom: .25rem; }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; margin-top: 4rem; text-align: center; }
.values > .value img { margin: 0 auto 1rem; }

.testimonial blockquote { margin: 1.5rem 0 0; font-size: 1.05rem; }
.reviews { margin-top: 3rem; }
.quote-card { margin: 0; padding: 2rem; background: #fff; }
.quote-card blockquote { margin: 0 0 1rem; font-style: italic; }
.quote-card figcaption span { color: var(--rose); margin-left: .5rem; }

.excellence { position: relative; }
.excellence .script, .script { font-family: var(--font-script); font-size: clamp(2.6rem, 6vw, 4rem); color: var(--blush-2); margin: 1rem 0; }
.split__media--photo { min-height: 520px; background-position: top center; }

.cta-band { position: relative; color: #fff; background: var(--brown) var(--bg) center / cover no-repeat; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(49, 31, 31, .7); }
.cta-band .container { position: relative; max-width: 800px; }
.cta-band__title { color: #fff; }

/* ------------------------------------------------- inner page chrome */
.page-hero { background: var(--blush); text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--blush-2); }
.page-hero h1 { margin: 0; }
.site-main { min-height: 40vh; }
.entry { padding-block: var(--section); }
.shop-main { padding-block: var(--section); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { border-radius: var(--radius); }
.entry-content ul { margin-bottom: 1.25em; }
.entry-thumb { margin-bottom: 2rem; }

.post-list { display: grid; gap: 2rem; padding-block: var(--section); }
.pet-search { display: flex; gap: .75rem; margin: 0 0 2.5rem; max-width: 520px; }
.pet-search input, .search-form input { flex: 1; }

/* page building blocks used by migrated content */
.prose-section { padding-block: 2rem; }
.prose-section + .prose-section { border-top: 1px solid var(--blush); }
.feature-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 2rem 0; }
.feature { padding: 1.75rem; text-align: center; }
.feature img { width: 80px; height: 80px; margin: 0 auto 1rem; }
.gallery-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 2rem 0; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.contact-grid { display: grid; gap: 3rem; grid-template-columns: 1fr 1fr; margin: 2rem 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-details { list-style: none; padding: 0; }
.contact-details li { margin-bottom: 1.25rem; }
.contact-details h4 { margin-bottom: .1rem; }
.map-embed iframe { width: 100%; height: 380px; border: 0; }

details.faq { border-bottom: 1px solid var(--line); padding: 1rem 0; }
details.faq summary { cursor: pointer; font: 400 1.35rem/1.3 var(--font-head); color: var(--brown); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--rose); }
details.faq[open] summary::after { content: "\2212"; }
details.faq > div { padding-top: 1rem; }

/* ----------------------------------------------------------------- forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], input[type="password"], input[type="number"], select, textarea {
	width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--brown); font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--rose); outline: 2px solid var(--blush-2); }
label { display: block; margin-bottom: .35rem; font-weight: 600; color: var(--brown); font-size: .9rem; }
.shorac-form p { margin-bottom: 1.1rem; }
.shorac-form .hp { position: absolute; left: -9999px; }
.form-notice { padding: 1rem 1.25rem; border-left: 4px solid var(--gold); background: var(--blush); }
.form-notice--error { border-color: #b3261e; }
.gform_wrapper .gfield_label { font-weight: 600; color: var(--brown); }

/* ------------------------------------------------------------ WooCommerce */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.75rem; margin: 0 0 2rem; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto; margin: 0; float: none; text-align: center; }
.woocommerce ul.products li.product img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 400 1.2rem var(--font-head); color: var(--brown); padding: .75rem 0 .25rem; }
.woocommerce .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--rose); font-weight: 700; }
.woocommerce span.onsale { background: var(--gold); border-radius: var(--radius); min-height: 0; min-width: 0; line-height: 1; padding: .5rem .75rem; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--rose); background: var(--blush); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--rose); }
.woocommerce div.product .product_title { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.woocommerce table.shop_table { border-radius: 0; border-color: var(--line); }
.woocommerce-checkout #payment { background: var(--blush); border-radius: 0; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #respond input#submit.alt { background: var(--brown); }
.woocommerce-ordering select { width: auto; }

/* ---------------------------------------- core blocks (migrated pages) */
.entry-content h5 { font: 600 .8rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--rose); margin-top: 2.5rem; }
.entry-content h2 { margin-top: 2.5rem; }
.entry-content h4 { margin-top: 1.5rem; }
.wp-block-button__link, .wp-element-button {
	display: inline-block; padding: .9rem 1.9rem; border: 1px solid var(--brown); border-radius: var(--radius);
	background: var(--brown); color: #fff; font: 600 .8rem/1 var(--font-body); letter-spacing: .15em; text-transform: uppercase; text-decoration: none;
}
.wp-block-button__link:hover, .wp-element-button:hover { background: var(--rose); border-color: var(--rose); color: #fff; }
.wp-block-details { border-bottom: 1px solid var(--line); padding: 1rem 0; margin: 0; }
.wp-block-details summary { cursor: pointer; font: 400 1.35rem/1.3 var(--font-head); color: var(--brown); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--rose); }
.wp-block-details[open] summary::after { content: "\2212"; }
.wp-block-details > :not(summary) { margin-top: 1rem; }
.wp-block-gallery { gap: .75rem; }
.wp-block-columns { gap: 2rem; }
.wp-block-image img { height: auto; }
@media (max-width: 781px) { .wp-block-columns { flex-wrap: wrap; } }

/* ---------------- inner pages: photo title band, textured body, wide layout ---------------- */
.page-hero--photo {
	position: relative; padding: clamp(5rem, 14vw, 9rem) 0; border: 0; color: #fff;
	background: var(--brown) var(--hero-img) center / cover no-repeat;
}
.page-hero--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(49, 31, 31, .65)); }
.page-hero--photo .container { position: relative; }
.page-hero--photo h1 { color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.page-hero--photo .eyebrow { color: var(--blush-2); }
.site-main--page { background: #fff var(--page-bg) center top / cover no-repeat; }
.container--page { width: min(100% - 2 * var(--gutter), 1100px); }
.entry-content .wp-block-columns { align-items: center; gap: clamp(1.5rem, 4vw, 4rem); margin: 3rem 0; }
.entry-content .wp-block-cover { border-radius: var(--radius); margin: 2rem 0; padding: 0; }
.entry-content .wp-block-column > .wp-block-cover { margin: 0; }
.entry-content .wp-block-cover__inner-container { width: 100%; }
@media (max-width: 781px) { .entry-content .wp-block-cover { min-height: 260px !important; } }
.feature-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 2.5rem 0; }
.feature-grid .feature { height: 100%; }
.entry-content .wp-block-image img { max-width: 100%; height: auto; }
.entry-content .wp-block-image.size-large { margin: 1.5rem 0; }

/* ======================= header (matches live site) ======================= */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; }
.admin-bar .site-header { top: 32px; }
.topbar { background-color: var(--blush); background-image: var(--bg); background-size: cover; background-position: right center; background-blend-mode: multiply; font-size: .95rem; }
.topbar__call, .mobile-call { display: none; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.topbar__links { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.topbar__links li + li::before { content: "\2022"; margin: 0 1.1rem; color: var(--rose); }
.topbar a { color: var(--brown); text-decoration: none; }
.topbar a:hover { color: var(--rose); }
.mainbar { background: #fff; box-shadow: 0 1px 0 rgba(49, 31, 31, .06); transition: box-shadow .25s; }
.is-scrolled .mainbar { box-shadow: 0 8px 26px rgba(49, 31, 31, .12); }
.mainbar__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 94px; }
.topbar__inner, .mainbar__inner { width: min(100% - 40px, 1760px); }
.site-nav { flex: 1; min-width: 0; }
.site-logo { flex: none; display: block; }
.site-logo a { display: block; line-height: 0; }
.site-logo img, .site-logo .custom-logo { width: auto; height: auto; max-height: 62px; max-width: 210px; }
.header-actions { display: flex; align-items: center; gap: 1.1rem; flex: none; }
.header-actions .btn { padding: 1.1rem 2.4rem; white-space: nowrap; }
.nav-extra, .nav-foot, .nav-toggle { display: none; }

.site-nav .menu { display: flex; align-items: center; gap: 1.7rem; margin: 0; padding: 0; list-style: none; flex-wrap: nowrap; }
.site-nav .menu > li { position: relative; display: flex; align-items: center; gap: .15rem; white-space: nowrap; }
.site-nav .menu > li > a { color: var(--brown); text-decoration: none; font: 500 1.06rem/1.2 var(--font-head); padding: 2rem 0; }
.site-nav .menu > li > a:hover, .site-nav .menu > .current-menu-item > a, .site-nav .menu > .current-menu-ancestor > a { color: var(--rose); }

.submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; padding: 0; border: 0; background: none; color: var(--brown); cursor: pointer; }
.submenu-toggle i { width: .42rem; height: .42rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); transition: transform .2s; }
.is-open > .submenu-toggle i { transform: rotate(225deg) translate(-1px, -1px); }

.sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 17rem; margin: 0; padding: 0; list-style: none; background: var(--brown);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.sub-menu a { display: block; padding: .8rem 1.25rem; color: #fff; text-decoration: none; font: 500 .98rem/1.3 var(--font-body); white-space: nowrap; transition: background .15s; }
.sub-menu a:hover, .sub-menu .current-menu-item > a { background: var(--rose); color: #fff; }
.menu-item-has-children:hover > .sub-menu, .menu-item-has-children:focus-within > .sub-menu, .menu-item-has-children.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.icon-link { position: relative; display: inline-flex; color: var(--brown); }
.icon-link:hover { color: var(--rose); }
.shorac-cart-count:not(:empty) { position: absolute; top: -8px; right: -11px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--gold); color: #fff; font: 700 11px/18px var(--font-body); text-align: center; }

/* ----------------------- full-screen mobile menu ----------------------- */
@media (max-width: 1279px) {
	.topbar { display: none; }
	.mainbar__inner { min-height: 76px; justify-content: space-between; }
	.site-logo { position: relative; z-index: 3; order: 1; }
	.header-actions { display: none; }
	.nav-toggle {
		position: relative; z-index: 3; order: 3; display: inline-flex; align-items: center; gap: .7rem; padding: .6rem 0 .6rem .6rem;
		border: 0; background: none; color: var(--brown); cursor: pointer; font: 600 .76rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase;
	}
	.nav-toggle__bars { position: relative; width: 28px; height: 14px; display: block; }
	.nav-toggle__bars i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .3s, top .3s; }
	.nav-toggle__bars i:first-child { top: 0; }
	.nav-toggle__bars i:last-child { top: 12px; }
	.nav-open .nav-toggle { color: #fff; }
	.nav-open .nav-toggle__bars i:first-child { top: 6px; transform: rotate(45deg); }
	.nav-open .nav-toggle__bars i:last-child { top: 6px; transform: rotate(-45deg); }

	.site-nav {
		position: fixed; inset: 0; z-index: 2; display: flex; flex-direction: column; flex: none; padding: 7rem var(--gutter) 2rem;
		background: var(--brown); color: #fff; overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
	}
	.admin-bar .site-nav { top: 46px; }
	.site-nav.is-open { opacity: 1; visibility: visible; }
	.nav-open { overflow: hidden; }
	.nav-open .mainbar { background: var(--brown); box-shadow: none; }
	.nav-open .site-logo { visibility: hidden; }

	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; width: min(100%, 560px); margin-inline: auto; }
	.site-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .14); opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .4s; }
	.site-nav.is-open .menu > li { opacity: 1; transform: none; }
	.site-nav.is-open .menu > li:nth-child(1) { transition-delay: .06s; }
	.site-nav.is-open .menu > li:nth-child(2) { transition-delay: .11s; }
	.site-nav.is-open .menu > li:nth-child(3) { transition-delay: .16s; }
	.site-nav.is-open .menu > li:nth-child(4) { transition-delay: .21s; }
	.site-nav.is-open .menu > li:nth-child(n+5) { transition-delay: .26s; }
	.site-nav .menu > li > a { flex: 1; padding: 1.05rem 0; color: #fff; font: 400 clamp(1.6rem, 6.5vw, 2.1rem)/1.15 var(--font-head); }
	.site-nav .menu > li > a:hover { color: var(--blush-2); }
	.site-nav .menu > .current-menu-item > a { color: var(--gold); }
	.submenu-toggle { width: 3rem; height: 3rem; color: #fff; border-left: 1px solid rgba(255, 255, 255, .14); }

	.sub-menu { position: static; flex-basis: 100%; min-width: 0; margin: 0 0 .75rem; background: transparent; opacity: 1; visibility: visible; transform: none; display: none; }
	.menu-item-has-children:hover > .sub-menu, .menu-item-has-children:focus-within > .sub-menu { display: none; }
	.menu-item-has-children.is-open > .sub-menu { display: block; }
	.sub-menu a { padding: .8rem 0 .8rem 1rem; color: rgba(255, 255, 255, .88); font: 600 .84rem/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; border-left: 2px solid var(--rose); margin-bottom: .35rem; white-space: normal; }
	.sub-menu a:hover { background: transparent; color: #fff; padding-left: 1.25rem; }

	.nav-extra { display: flex; align-items: center; gap: 1rem; width: min(100%, 560px); margin: 2rem auto 0; }
	.nav-extra .btn { flex: 1; text-align: center; background: #fff; border-color: #fff; color: var(--brown); }
	.nav-extra .icon-link { color: #fff; width: 3.2rem; height: 3.2rem; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; }
	.nav-extra__icons { display: flex; gap: .75rem; }
	.nav-foot { display: block; width: min(100%, 560px); margin: auto auto 0; padding-top: 2.5rem; text-align: center; }
	.nav-foot__label { margin: 0 0 .25rem; color: var(--blush-2); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
	.nav-foot__phone { color: #fff; font: 400 1.9rem/1.2 var(--font-head); text-decoration: none; }
	.nav-foot__addr { margin: .4rem 0 0; color: rgba(255, 255, 255, .7); font-size: .9rem; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* =========================== home page sections =========================== */
.band { padding-block: clamp(3.5rem, 8vw, 6rem); background: #fff var(--bg) center / cover no-repeat; }
.hero { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 80vh; min-height: 80svh; padding: 9rem 0 6rem; color: #fff; text-align: center; overflow: hidden; background-color: var(--brown); background-size: cover; background-position: center; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { background-size: cover; background-position: center; opacity: 0; animation: heroFade 21s infinite; animation-delay: calc(var(--i) * 3.5s); }
.hero__slide:first-child { opacity: 1; }
@keyframes heroFade { 0% { opacity: 0; } 2.4% { opacity: 1; } 16.67% { opacity: 1; } 19.05% { opacity: 0; } 100% { opacity: 0; } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .27) 0%, rgba(49, 31, 31, .4) 50%, var(--brown) 100%); }
.hero__curve { position: absolute; z-index: 2; top: -1px; left: 0; width: 100%; height: 80px; fill: #fff; display: block; }
.hero__inner { position: relative; z-index: 3; max-width: 960px; }
.hero h1 { margin: 0 0 .15em; color: #fff; font-size: clamp(2.7rem, 7.5vw, 4.4rem); line-height: 1.1; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero__lead { margin: 0 auto 1.75rem; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.5; letter-spacing: -.02em; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
@media (max-width: 1024px) { .hero__curve { height: 40px; } }
@media (max-width: 767px) { .hero { padding-bottom: 8rem; } .hero__slides { display: none; } .hero { background-image: var(--hero-mobile); } }

.obits__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 3rem; }
.obits__head h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 2.9rem); }
.obits__list:empty, .subscribe__box:empty { display: none; }
.band.obits { padding-bottom: 4rem; }

.subscribe { position: relative; padding: clamp(3rem, 7vw, 5rem) var(--gutter); background: #fff var(--bg) center / cover no-repeat; text-align: center; }
.subscribe::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .72); }
.subscribe__box { position: relative; max-width: 640px; margin-inline: auto; }
.subscribe h3 { font-size: 2rem; }
.subscribe__box p { color: var(--text); }
.subscribe__box input[type="email"], .subscribe__box input[type="text"] { width: auto; min-width: 200px; max-width: 350px; }
#fhws-subscribe-widget-submit { padding: 1.15rem 2.4rem; border: 1px solid var(--brown); border-radius: var(--radius); background: var(--brown); color: #fff; font: 600 .82rem/1 var(--font-body); letter-spacing: .14em; cursor: pointer; }
#fhws-subscribe-widget-submit:hover { background: var(--rose); border-color: var(--rose); }

.film { background: var(--brown); padding: 1.25rem 0; }
.film .container { width: min(100% - 2 * var(--gutter), 1326px); }
.film__video video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 760px; background: #333; object-fit: cover; }
.film__photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.film__photos img { width: 100%; aspect-ratio: 3 / 2.1; object-fit: cover; }
@media (max-width: 700px) { .film__photos { grid-template-columns: 1fr 1fr; } }

.testimonial__text { font-style: italic; margin: 1.5rem 0 0; }
.testimonial .reviews { margin-top: 3.5rem; }
.testimonial .eyebrow { margin-bottom: .5rem; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }

.family-center .split { align-items: stretch; gap: clamp(2rem, 4vw, 3.5rem); }
.family-center .split__media { min-height: 560px; border-radius: 0; }
.family-center .split__text { align-self: center; }
.family-center .split__text .eyebrow { font-size: 1rem; letter-spacing: .06em; text-transform: none; }
.fade-pair figcaption { left: 0; right: 0; bottom: 2rem; text-align: center; font: 700 1.5rem/1 var(--font-head); letter-spacing: 0; text-transform: none; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 5rem; text-align: center; }
.values > .value img { margin: 0 auto 1.25rem; width: auto; height: 80px; }
.values > .value h4 { font-size: 1.6rem; margin: 0; }
@media (max-width: 700px) { .values { grid-template-columns: 1fr 1fr; } }

.trusted__head { display: grid; grid-template-columns: 1fr 1fr auto; gap: 2rem; align-items: center; margin-bottom: 2.5rem; }
.trusted__head .eyebrow { font-size: 1rem; letter-spacing: .06em; text-transform: none; margin-bottom: .25rem; }
.trusted__head h2 { margin: 0; }
.trusted__head p:not(.eyebrow) { margin: 0; max-width: 26rem; }
.trusted__photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; padding-bottom: 8rem; }
.trusted__photos img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; }
.trusted__photos { align-items: start; }
.trusted__photos img:nth-child(even) { margin-top: 160px; }
@media (max-width: 900px) { .trusted__head { grid-template-columns: 1fr; } .trusted__photos { grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: 5rem; } .trusted__photos img:nth-child(even) { margin-top: 60px; } }

.panels { display: grid; grid-template-columns: repeat(4, 1fr); }
.panels > .panel { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 600px; padding: 3rem 2rem; background: var(--brown); overflow: hidden; color: #fff; text-align: center; }
.panels > .panel::after { content: ""; position: absolute; inset: 0; background: var(--bg) center / cover no-repeat; transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.panels > .panel::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(49, 31, 31, 0) 30%, rgba(49, 31, 31, .8)); }
.panels > .panel:hover::after { transform: scale(1.08); }
.panel__inner { position: relative; z-index: 2; max-width: 22rem; transition: translate .5s; }
.panels > .panel:hover .panel__inner { translate: 0 -8px; }
.panels > .panel h4 { color: #fff; font-size: 1.9rem; margin-bottom: .75rem; }
.panels > .panel p { margin: 0; color: #fff; font-size: .98rem; }
@media (max-width: 1000px) { .panels { grid-template-columns: 1fr 1fr; } .panels > .panel { min-height: 500px; } }
@media (max-width: 600px) { .panels { grid-template-columns: 1fr; } }

.excellence__intro { max-width: 720px; }
.excellence__intro .eyebrow { font-size: 1rem; letter-spacing: .06em; text-transform: none; }
.excellence__row { display: grid; grid-template-columns: 1fr 1fr 1fr; margin-top: 3rem; min-height: 520px; }
.excellence__sam { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 3rem 3.5rem; background: var(--brown); color: #e8dcd8; }
.excellence__sam h3 { color: #fff; font-size: 2rem; }
.excellence__photo { background-size: cover; background-position: center top; min-height: 360px; }
.excellence__quotes { position: relative; display: flex; align-items: center; justify-content: center; padding: 3rem 3.5rem; background: var(--blush); border: 1px solid var(--blush-2); text-align: center; }
.quote { display: none; margin: 0; }
.quote.is-active { display: block; }
.quote blockquote { margin: 0 0 1.5rem; }
.quote figcaption strong { display: block; font: 700 1.4rem/1.2 var(--font-head); color: var(--brown); }
.quote figcaption span { color: var(--text); }
.quote-nav { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--brown); font-size: 2.2rem; line-height: 1; cursor: pointer; padding: .5rem; }
.quote-prev { left: .25rem; } .quote-next { right: .25rem; }
@media (max-width: 900px) { .excellence__row { grid-template-columns: 1fr; } .excellence__photo { min-height: 420px; } }

.cta-band { position: relative; padding: clamp(6rem, 14vw, 11rem) 0; background: var(--brown) var(--bg) center / cover no-repeat; color: #fff; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .12); }
.cta-band .container { position: relative; max-width: 760px; }
.cta-band h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.cta-band p { color: #fff; }
.cta-band .btn { letter-spacing: .12em; }

/* two-photo crossfade (Family Center) */
.fade-pair { position: relative; overflow: hidden; margin: 0; background-color: var(--brown); }
.fade-pair > div { position: absolute; inset: 0; background-size: cover; background-position: center; animation: pairFade 12s infinite; }
.fade-pair > div:nth-child(2) { animation-name: pairFade2; }
@keyframes pairFade { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes pairFade2 { 0%, 45% { opacity: 0; } 50%, 95% { opacity: 1; } 100% { opacity: 0; } }
.fade-pair figcaption { position: absolute; z-index: 2; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }

/* ------------------- Obituary Assistant plugin (list + subscribe) ------------------- */
.site-main #fhw-solutions-obituaries-recent-obituaries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem 1rem; width: 100%; }
.site-main .fhw-solutions-obituaries-recent-obituaries-listing { display: flex; align-items: flex-start; gap: 1rem; padding: .9rem; min-width: 0; background-image: none !important; text-decoration: none; transition: background .3s; }
.site-main .fhw-solutions-obituaries-recent-obituaries-listing > div:first-child { flex: none; width: 123px !important; }
.site-main .fhw-solutions-obituaries-recent-obituaries-listing > div:first-child > div { width: 123px !important; }
.site-main .fhw-solutions-obituaries-recent-obituaries-listing img { width: 123px !important; height: 123px !important; max-width: none; object-fit: cover; object-position: top center; border-radius: 0; }
.site-main .fhw-solutions-obituaries-recent-obituaries-listing h4 { margin: 0 0 .5rem; font-size: 1.5rem; line-height: 1.1; color: var(--brown); overflow-wrap: break-word; hyphens: auto; }
.site-main .fhw-solutions-obituaries-recent-obituaries-listing p { margin: 0; color: var(--text); font-size: 1.1rem; }
@media (max-width: 1100px) { .site-main #fhw-solutions-obituaries-recent-obituaries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .site-main #fhw-solutions-obituaries-recent-obituaries { grid-template-columns: 1fr; } }

/* ================================= footer ================================= */
.site-footer { background: #fff; color: var(--text); }
.footer-cta { padding: 1.25rem var(--gutter); }
.footer-cta__panel { position: relative; max-width: 1326px; margin-inline: auto; min-height: 440px; display: flex; align-items: center; padding: 3rem clamp(1.5rem, 8vw, 7rem); background: var(--brown) var(--bg) center / cover no-repeat; color: #fff; }
.footer-cta__panel::before { content: ""; position: absolute; inset: 0; background: rgba(49, 31, 31, .78); }
.footer-cta__inner { position: relative; max-width: 640px; }
.footer-cta h2 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 1.5rem; }
.footer-main { padding: 5rem 0; background-color: var(--blush); background-image: var(--bg); background-size: cover; background-position: center; background-blend-mode: multiply; border-top: 1px solid var(--blush-2); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 3rem; }
.footer-about p { max-width: 32rem; margin: 1.25rem 0 1.5rem; }
.footer-social { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--brown); color: #fff; }
.footer-social:hover { background: var(--rose); color: #fff; }
.footer-col h4 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .9rem; }
.footer-col li a { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; }
.footer-col li a::before { content: ""; width: .45rem; height: .45rem; border-top: 2px solid var(--brown); border-right: 2px solid var(--brown); transform: rotate(45deg); }
.footer-col li a:hover { color: var(--rose); }
.footer-legal { padding: 1.5rem 0 2.5rem; font-size: .95rem; text-align: center; }
.footer-legal .container { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.footer-legal p { margin: 0; color: var(--brown); }
.footer-legal a { color: var(--text); text-decoration: none; }
.footer-legal a:hover { color: var(--rose); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } .footer-cta__panel { min-height: 340px; } }

/* ======== inner pages (match live): photo title band, centered headings, photo cards ======== */
.page-hero { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 220px; }
.page-hero--photo { min-height: clamp(380px, 46vw, 590px); padding: 4rem 0; }
.page-hero--photo::before { background: linear-gradient(180deg, rgba(0, 0, 0, .30), rgba(49, 31, 31, .55)); }
.page-hero--photo h1 { font-size: clamp(2.8rem, 6.2vw, 4.4rem); margin: 0; }
.page-hero .eyebrow, .page-hero--photo .eyebrow { margin: 0 0 .5rem; font: 500 1rem/1.4 var(--font-body); letter-spacing: 0; text-transform: none; }
.page-hero--photo .eyebrow { color: #fff; }

.entry-content > h5, .entry-content > h2, .entry-content > h3 { text-align: center; }
.entry-content > h5 { margin-bottom: .25rem; font: 500 1rem/1.4 var(--font-body); letter-spacing: .02em; text-transform: none; color: var(--rose); }
.entry-content > h2 { margin-top: 0; font-size: clamp(2rem, 3.6vw, 2.6rem); }
.entry-content .wp-block-column > h2, .entry-content .wp-block-column > h3, .entry-content .wp-block-column > h5 { text-align: left; }
.entry-content .wp-block-button.wp-block-button__width-100 { width: 100%; }
.entry-content .wp-block-button__width-100 .wp-block-button__link { display: block; width: 100%; text-align: center; padding-block: 1.25rem; }
.entry-content .wp-block-buttons { margin-block: 2rem; }

/* cards whose photo is the background and whose text sits at the bottom (Our People, services) */
.entry-content .wp-block-cover.is-dark { align-items: flex-end; text-align: center; color: #fff; }
.entry-content .wp-block-cover.is-dark .wp-block-cover__background { background: linear-gradient(180deg, rgba(49, 31, 31, 0) 40%, rgba(49, 31, 31, .78)); opacity: 1; }
.entry-content .wp-block-cover.is-dark h1, .entry-content .wp-block-cover.is-dark h2, .entry-content .wp-block-cover.is-dark h3,
.entry-content .wp-block-cover.is-dark h4, .entry-content .wp-block-cover.is-dark h5, .entry-content .wp-block-cover.is-dark p { color: #fff; margin: .25rem 0; }
.entry-content .wp-block-cover.is-dark p { font-size: .95rem; }
.entry-content .wp-block-cover.is-dark .wp-block-cover__inner-container { padding: 1.5rem 1rem; }
.entry-content .wp-block-columns:has(> .wp-block-column > .wp-block-cover) { gap: 1.25rem; align-items: stretch; }

/* inner-page titles use the script face, like the live site */
.page-hero h1 { font-family: var(--font-script); font-weight: 400; font-size: clamp(3.6rem, 9vw, 6.5rem); line-height: 1; letter-spacing: 0; }
.page-hero--photo h1 { font-size: clamp(3.6rem, 9vw, 6.5rem); }

/* ============================ motion & polish ============================ */
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); opacity: .9; } 50% { transform: translate(-50%, 9px); opacity: .5; } }
@keyframes shimmer { to { background-position: -200% 0; } }

body { animation: pageIn .7s ease both; }

/* scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; z-index: 200; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--rose), var(--gold)); pointer-events: none; }
.admin-bar .scroll-progress { top: 32px; }

/* reveal on scroll (only when JS is available) */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .9s cubic-bezier(.2, .7, .2, 1), translate .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.reveal--left { translate: -32px 0; }
.js .reveal.reveal--right { translate: 32px 0; }
.js .reveal.reveal--zoom { translate: 0 0; scale: .96; transition: opacity .9s, scale 1s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; translate: none; scale: none; } /* none, not 0 0: any translate/scale value would trap position:fixed popups (e.g. the Obituary Assistant modal) */

/* hero: slow zoom, text rises in, scroll cue */
.hero__slide { transform: scale(1); }
@keyframes heroFade { 0% { opacity: 0; transform: scale(1); } 2.4% { opacity: 1; } 16.67% { opacity: 1; } 19.05% { opacity: 0; transform: scale(1.12); } 100% { opacity: 0; transform: scale(1.12); } }
.hero__inner > * { animation: riseIn 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.hero__inner > :nth-child(2) { animation-delay: .18s; }
.hero__inner > :nth-child(3) { animation-delay: .36s; }
.hero::after { content: ""; position: absolute; z-index: 3; left: 50%; bottom: 2rem; width: 22px; height: 36px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 12px; transform: translateX(-50%); animation: nudge 2s ease-in-out infinite; }
.hero::after { background: radial-gradient(circle at 50% 28%, #fff 0 3px, transparent 4px); }

.page-hero .container > * { animation: riseIn 1s cubic-bezier(.2, .7, .2, 1) both; }
.page-hero .container > h1 { animation-delay: .15s; }
.page-hero--photo { background-position: center calc(50% + var(--py, 0px)); }

/* section heading flourish */
.band h2.center::after, .entry-content > h2::after, .excellence__intro h2::after {
	content: ""; display: block; width: 0; height: 2px; margin: .7rem auto 0; background: linear-gradient(90deg, var(--rose), var(--gold)); transition: width 1s .35s cubic-bezier(.2, .7, .2, 1);
}
.js .band h2.center.in::after, .js .entry-content > h2.in::after, .js .excellence__intro.in h2::after { width: 72px; }
html:not(.js) .band h2.center::after, html:not(.js) .entry-content > h2::after, html:not(.js) .excellence__intro h2::after { width: 72px; }

/* buttons: lift + shine */
.btn, .wp-block-button__link, .gform_button, #fhws-subscribe-widget-submit { position: relative; overflow: hidden; transition: background .25s, color .25s, border-color .25s, transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.btn:hover, .wp-block-button__link:hover, .gform_button:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(49, 31, 31, .22); }
.btn::before, .wp-block-button__link::before { content: ""; position: absolute; top: 0; left: -90%; width: 55%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-20deg); transition: left .75s; pointer-events: none; }
.btn:hover::before, .wp-block-button__link:hover::before { left: 140%; }
.footer-cta .btn { background: #fff; border-color: #fff; color: var(--brown); }
.footer-cta .btn:hover { background: var(--blush-2); border-color: var(--blush-2); color: var(--brown); }

/* hover life */
.values > .value img { animation: floatY 6s ease-in-out infinite; }
.values > .value:nth-child(2) img { animation-delay: -1.5s; } .values > .value:nth-child(3) img { animation-delay: -3s; } .values > .value:nth-child(4) img { animation-delay: -4.5s; }
.trusted__photos img, .film__photos img { transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s; }
.trusted__photos img:hover, .film__photos img:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 22px 44px rgba(49, 31, 31, .28); }
.site-main .fhw-solutions-obituaries-recent-obituaries-listing { transition: transform .35s cubic-bezier(.2, .7, .2, 1), background .3s, box-shadow .35s; }
.site-main .fhw-solutions-obituaries-recent-obituaries-listing:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(49, 31, 31, .22); }
.entry-content .wp-block-cover__image-background, .entry-content .wp-block-image img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.entry-content .wp-block-cover:hover .wp-block-cover__image-background { transform: scale(1.07); }
.entry-content .wp-block-column > .wp-block-image:hover img { transform: scale(1.03); }
.entry-content .wp-block-image { overflow: hidden; }
.feature { transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s; }
.feature:hover, .pet-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(49, 31, 31, .14); }
.pet-card { transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s; }
.footer-col li a { transition: color .2s, translate .25s; } .footer-col li a:hover { translate: 6px 0; }
.footer-social { transition: background .25s, transform .3s; } .footer-social:hover { transform: translateY(-3px) rotate(-6deg); }

/* inner pages: centred logo/figure, tidier intro */
.entry-content > .wp-block-image { text-align: center; }
.entry-content > .wp-block-image img { margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
	body, .hero__inner > *, .page-hero .container > *, .values > .value img, .hero::after, .scroll-progress { animation: none !important; }
	.js .reveal { opacity: 1; translate: 0 0; scale: 1; transition: none; }
	.hero__slide { animation: none !important; transform: none; }
	.btn::before, .wp-block-button__link::before { display: none; }
}

/* ============================ mobile header ============================ */
@media (max-width: 1279px) {
	.topbar { display: block; background: var(--brown); background-image: none; font-size: .82rem; }
	.topbar__inner { display: none; }
	.topbar a.topbar__call { display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 38px; padding: .45rem var(--gutter); color: #fff; text-decoration: none; letter-spacing: .02em; }
	.topbar a.topbar__call:hover, .topbar a.topbar__call:focus-visible { color: var(--blush-2); }
	.topbar__call span { opacity: .8; }
	.topbar__call strong { font-weight: 700; letter-spacing: .04em; }
	.topbar__call svg { flex: none; color: var(--gold); }

	.site-header { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
	.mainbar { background: transparent; box-shadow: 0 1px 0 rgba(49, 31, 31, .08); }
	.mainbar__inner { min-height: 68px; gap: .75rem; }
	.is-scrolled .mainbar__inner { min-height: 60px; }
	.site-logo img, .site-logo .custom-logo { max-height: 44px; max-width: 170px; }
	.site-logo { margin-right: auto; }

	.mobile-call { order: 2; position: relative; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brown); color: #fff; transition: background .25s, transform .25s; }
	.mobile-call:hover, .mobile-call:active { background: var(--rose); color: #fff; transform: scale(1.06); }
	.mobile-call svg { animation: ring 5s ease-in-out infinite; transform-origin: 50% 50%; }
	@keyframes ring { 0%, 86%, 100% { transform: rotate(0); } 88% { transform: rotate(-14deg); } 91% { transform: rotate(12deg); } 94% { transform: rotate(-8deg); } 97% { transform: rotate(5deg); } }

	.nav-toggle { order: 3; gap: .6rem; padding: .55rem .95rem .55rem 1.05rem; border: 1px solid var(--blush-2); border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(49, 31, 31, .06); transition: background .25s, border-color .25s, color .25s; }
	.nav-toggle:hover { border-color: var(--rose); }
	.nav-toggle__label { font-size: .7rem; }
	.nav-toggle__bars { width: 20px; height: 12px; }
	.nav-toggle__bars i:last-child { top: 10px; }
	.nav-open .nav-toggle { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
	.nav-open .nav-toggle__bars i:first-child, .nav-open .nav-toggle__bars i:last-child { top: 5px; }
	.nav-open .mobile-call { visibility: hidden; }
	.nav-open .site-header { background: var(--brown); -webkit-backdrop-filter: none; backdrop-filter: none; }
	.site-nav { padding-top: 8.5rem; }
}
@media (max-width: 380px) { .nav-toggle__label { display: none; } .nav-toggle { padding: .65rem .8rem; } }
@media (prefers-reduced-motion: reduce) { .mobile-call svg { animation: none; } }

/* ====================== WooCommerce shop: 3-up grid, big images ====================== */
.woocommerce .woocommerce-result-count, .woocommerce-page .woocommerce-result-count { float: none; margin: 0; color: var(--text); }
.woocommerce .woocommerce-ordering, .woocommerce-page .woocommerce-ordering { float: none; margin: 0; }
.shop-main .container > .woocommerce-result-count, .shop-main .container > .woocommerce-ordering { display: inline-block; vertical-align: middle; }
.shop-main .container > .woocommerce-ordering { float: right; }
.woocommerce ul.products, .woocommerce-page ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.25rem); margin: 2rem 0 3rem; padding: 0; clear: both; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
/* WooCommerce's own layout CSS makes each product 22% of its cell; undo that */
.woocommerce ul.products[class*="columns-"] li.product, .woocommerce-page ul.products[class*="columns-"] li.product, .woocommerce ul.products li.product {
	width: 100% !important; margin: 0 !important; float: none !important; display: flex; flex-direction: column; text-align: center;
	background: #fff; border: 1px solid var(--blush-2); padding: 0 0 1.75rem; overflow: hidden; position: relative;
	transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s, border-color .3s;
}
.woocommerce ul.products li.product:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(49, 31, 31, .14); border-color: var(--rose); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.woocommerce ul.products li.product a img, .woocommerce-page ul.products li.product a img {
	width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: contain; margin: 0 0 1.25rem !important; padding: 1.25rem;
	background: #fff; transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.05); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 700 1.35rem/1.2 var(--font-head); color: var(--brown); padding: 0 1.25rem .5rem; }
.woocommerce ul.products li.product .price { display: block; margin: 0 0 1.25rem; color: var(--rose); font: 700 1.05rem/1.2 var(--font-body); }
.woocommerce ul.products li.product .price del { opacity: .55; }
.woocommerce ul.products li.product .button, .woocommerce ul.products li.product a.button { margin: auto 1.25rem 0; display: block; align-self: center; width: auto; min-width: 11rem; padding: 1.05rem 1.6rem; }
.woocommerce ul.products li.product .added_to_cart { display: block; margin-top: .75rem; font-size: .9rem; }
@media (max-width: 900px) { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr; } }

/* ====================== forms: pre-arrangement + shared ====================== */
.prearr { max-width: 860px; margin: 1rem auto 3rem; }
.prearr fieldset { margin: 0 0 2rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--blush-2); background: #fff; border-radius: 4px; }
.prearr legend { display: flex; align-items: center; gap: .75rem; padding: 0 .75rem; font: 700 1.5rem/1 var(--font-head); color: var(--brown); }
.prearr legend span { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brown); color: #fff; font: 700 .85rem/1 var(--font-body); }
.prearr legend small { font: 500 .9rem var(--font-body); color: var(--rose); }
.prearr__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.5rem; }
.prearr__grid > p, .prearr__grid > div { margin: 0; }
.prearr__span { grid-column: 1 / -1; }
.prearr label, .prearr .prearr__label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .9rem; color: var(--brown); }
.prearr label b { color: var(--rose); }
.prearr input[type="text"], .prearr input[type="email"], .prearr input[type="tel"], .prearr select, .prearr textarea { width: 100%; padding: .95rem 1rem; border: 1px solid var(--line); background: #fff; font: inherit; color: var(--brown); border-radius: 3px; transition: border-color .2s, box-shadow .2s; }
.prearr input:focus, .prearr select:focus, .prearr textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(176, 138, 127, .22); }
.prearr .is-invalid { border-color: #b3261e !important; box-shadow: 0 0 0 4px rgba(179, 38, 30, .12) !important; }
.prearr__radio { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; }
.prearr__radio .prearr__label { width: 100%; margin-bottom: .1rem; }
.prearr__radio label { display: inline-flex; align-items: center; gap: .55rem; margin: 0; padding: .7rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500; transition: background .2s, border-color .2s, color .2s; }
.prearr__radio label:has(input:checked) { background: var(--brown); border-color: var(--brown); color: #fff; }
.prearr__radio input { accent-color: var(--brown); }
.prearr__hp, .shorac-form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.prearr__error { margin: 0 0 1rem; padding: .9rem 1.1rem; border-left: 4px solid #b3261e; background: #fbeae9; color: #6b1b17; }
.prearr__actions { text-align: center; margin: 0; }
.prearr__actions .btn { min-width: 14rem; }
.btn.is-busy { opacity: .65; pointer-events: none; }
.prearr__done { text-align: center; padding: 3rem 1.5rem; border: 1px solid var(--blush-2); background: var(--blush); border-radius: 4px; color: var(--brown); }
.prearr__done svg { color: var(--rose); margin-bottom: .75rem; }
.shorac-form-wrap .form-notice[hidden], .prearr [hidden] { display: none !important; }
.shorac-form .is-invalid { border-color: #b3261e; }
@media (max-width: 640px) { .prearr__grid { grid-template-columns: 1fr; } }

/* ====================== WooCommerce single product ====================== */
.woocommerce div.product { margin-bottom: 3rem; }
.woocommerce div.product .product_title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: .5rem; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--rose); font: 700 1.6rem/1.2 var(--font-body); }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: .75rem; margin: 1.5rem 0; }
.woocommerce div.product form.cart .quantity input.qty { width: 5rem; height: 100%; padding: .9rem .5rem; text-align: center; }
.woocommerce div.product form.cart .button { padding: 1.1rem 2.2rem; }
.woocommerce div.product .woocommerce-product-gallery img { background: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 2.5rem 0 0; border-bottom: 1px solid var(--blush-2); overflow: visible; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 1px solid var(--blush-2); border-bottom: 0; border-radius: 3px 3px 0 0; background: var(--blush); margin: 0 .4rem 0 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: .85rem 1.6rem; color: var(--brown); font: 700 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #fff; border-color: var(--blush-2); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::after { display: block; background: #fff; box-shadow: none; }
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel { margin: 0; padding: 2rem 0; background: transparent; color: var(--text); min-height: 0; display: block; }
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel h2 { font-size: 1.6rem; }
.woocommerce .related.products > h2, .woocommerce .upsells > h2 { margin: 2rem 0 0; }
.woocommerce-breadcrumb { margin-bottom: 1.5rem; font-size: .9rem; color: var(--rose); }
.woocommerce-breadcrumb a { color: var(--brown); }

/* Single product has no title band: give it room under the header */
.single-product .shop-main { padding-top: clamp(2rem, 5vw, 4rem); }

/* Plugin-owned content is never animated: its popups need a viewport-anchored frame */
.bootstrap-fhws-obituaries-container, .bootstrap-fhws-obituaries-container.reveal { opacity: 1 !important; translate: none !important; scale: none !important; transition: none !important; }
