/* ==========================================================================
   Stone & Meadow — wedding theme
   Palette drawn from historic stone barns, old oak, moorland and cornfields.
   Colours are CSS variables set from Customize → Our Wedding → Wedding Colours.
   ========================================================================== */

:root {
	--sm-linen: #F7F2EA;
	--sm-sandstone: #E6DACA;
	--sm-stone: #B9A88E;
	--sm-oak: #5A4434;
	--sm-ink: #2E2925;
	--sm-moss: #6F7A5A;
	--sm-corn: #C59A45;
	--sm-blush: #D9B8A3;

	--sm-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
	--sm-script: "Pinyon Script", "Snell Roundhand", cursive;
	--sm-sans: "Jost", "Helvetica Neue", Arial, sans-serif;

	--sm-container: 1140px;
	--sm-prose: 720px;
	--sm-gutter: clamp(16px, 4vw, 40px);
	--sm-header-h: 84px;
	--sm-ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--sm-header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background-color: var(--sm-linen);
	color: var(--sm-ink);
	font-family: var(--sm-sans);
	font-weight: 300;
	font-size: 17px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Soft lime-wash / stone grain */
body.sm-textured {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .27  0 0 0 0 .2  0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--sm-serif);
	font-weight: 500;
	color: var(--sm-oak);
	line-height: 1.15;
	margin: 0 0 .5em;
	letter-spacing: .01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h4 { font-size: 1.35rem; }

p { margin: 0 0 1.2em; }

a { color: var(--sm-moss); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s var(--sm-ease); }
a:hover, a:focus { color: var(--sm-corn); }

:focus-visible { outline: 2px solid var(--sm-corn); outline-offset: 3px; }

blockquote {
	margin: 2em 0;
	padding: 0 0 0 1.4em;
	border-left: 2px solid var(--sm-corn);
	font-family: var(--sm-serif);
	font-style: italic;
	font-size: 1.45rem;
	color: var(--sm-oak);
}

hr { border: 0; height: 1px; background: var(--sm-stone); margin: 3em 0; }

::selection { background: var(--sm-blush); color: var(--sm-ink); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto;
	top: 10px; left: 10px; z-index: 100000; padding: 12px 18px;
	background: var(--sm-oak); color: var(--sm-linen);
}

/* ---------- Utility type ---------- */
.sm-script, .sm-couple, .sm-names {
	font-family: var(--sm-script);
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.1;
}
.sm-couple { font-size: clamp(3.2rem, 9vw, 7rem); margin: .1em 0; color: inherit; }
.sm-amp {
	font-family: var(--sm-serif);
	font-style: italic;
	font-weight: 400;
	font-size: .6em;
	color: var(--sm-corn);
	padding: 0 .18em;
	vertical-align: .08em;
}
.sm-eyebrow {
	font-family: var(--sm-sans);
	font-weight: 500;
	font-size: .78rem;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--sm-moss);
	margin-bottom: .8em;
}
.sm-eyebrow .sm-amp { font-size: 1.1em; }
.sm-center { text-align: center; }
.sm-notice {
	max-width: var(--sm-prose); margin: 1.5em auto; padding: .9em 1.2em;
	border: 1px dashed var(--sm-stone); font-size: .9rem; background: rgba(255,255,255,.4);
}

/* ---------- Ornament (wheat sprig) ---------- */
.sm-ornament {
	display: flex; align-items: center; justify-content: center; gap: 14px;
	color: var(--sm-corn); margin: 1.2em auto; max-width: 320px;
}
.sm-ornament__line { flex: 1; height: 1px; background: currentColor; opacity: .55; }
.sm-ornament svg { flex: none; }
.sm-ornament.is-light { color: var(--sm-sandstone); }

/* ---------- Buttons ---------- */
.sm-button,
body .elementor-button,
.wp-block-button__link,
input[type="submit"], button[type="submit"] {
	display: inline-block;
	font-family: var(--sm-sans);
	font-weight: 500;
	font-size: .8rem;
	letter-spacing: .24em;
	text-transform: uppercase;
	padding: 1.05em 2.4em;
	border-radius: 0;
	border: 1px solid var(--sm-oak);
	background: var(--sm-oak);
	color: var(--sm-linen);
	text-decoration: none;
	cursor: pointer;
	transition: background .25s var(--sm-ease), color .25s var(--sm-ease), border-color .25s var(--sm-ease);
}
.sm-button:hover, .sm-button:focus,
body .elementor-button:hover, body .elementor-button:focus,
.wp-block-button__link:hover,
input[type="submit"]:hover, button[type="submit"]:hover {
	background: var(--sm-corn);
	border-color: var(--sm-corn);
	color: #fff;
}
.sm-button--ghost, .is-style-outline .wp-block-button__link, .sm-ghost .elementor-button {
	background: transparent; color: var(--sm-oak);
}
.sm-on-dark .sm-button, .sm-on-dark .elementor-button, .sm-hero .sm-button {
	background: transparent; border-color: var(--sm-linen); color: var(--sm-linen);
}
.sm-on-dark .sm-button:hover, .sm-on-dark .elementor-button:hover, .sm-hero .sm-button:hover {
	background: var(--sm-linen); color: var(--sm-oak); border-color: var(--sm-linen);
}
.sm-rsvp { text-align: center; }
.sm-rsvp-by { margin-top: 1em; font-family: var(--sm-serif); font-style: italic; font-size: 1.15rem; }

/* ---------- Header ---------- */
.sm-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(247, 242, 234, .94);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(185, 168, 142, .45);
	transition: background .35s var(--sm-ease), border-color .35s var(--sm-ease), box-shadow .35s var(--sm-ease);
}
.admin-bar .sm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sm-header { top: 46px; } }

.sm-header__inner {
	max-width: var(--sm-container); margin: 0 auto;
	padding: 0 var(--sm-gutter);
	height: var(--sm-header-h);
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.sm-brand__monogram {
	font-family: var(--sm-script); font-size: 2.3rem; color: var(--sm-oak);
	text-decoration: none; line-height: 1; white-space: nowrap;
}
.sm-brand__monogram .sm-amp { font-size: .55em; }
.sm-brand .custom-logo { max-height: 60px; width: auto; }

.sm-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(16px, 2.4vw, 36px); }
.sm-menu li { position: relative; }
.sm-menu a {
	font-family: var(--sm-sans); font-weight: 400;
	font-size: .76rem; letter-spacing: .24em; text-transform: uppercase;
	color: var(--sm-oak); text-decoration: none; padding: 6px 0;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size .3s var(--sm-ease), color .2s;
}
.sm-menu a:hover, .sm-menu .current-menu-item > a { background-size: 100% 1px; color: var(--sm-corn); }
.sm-menu .sub-menu {
	list-style: none; position: absolute; top: 100%; left: -18px; min-width: 200px;
	padding: 12px 18px; margin: 10px 0 0; background: var(--sm-linen);
	border: 1px solid var(--sm-sandstone); opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: .25s var(--sm-ease);
}
.sm-menu li:hover > .sub-menu, .sm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sm-menu .sub-menu li { padding: 6px 0; }

/* Transparent header over hero on the homepage */
.sm-transparent-header .sm-header {
	position: fixed; left: 0; right: 0;
	background: transparent; border-color: transparent;
	-webkit-backdrop-filter: none; backdrop-filter: none;
}
.sm-transparent-header .sm-header .sm-brand__monogram,
.sm-transparent-header .sm-header .sm-menu > li > a { color: var(--sm-linen); }
.sm-transparent-header .sm-header .sm-nav-toggle__bar { background: var(--sm-linen); }
.sm-transparent-header .sm-header.is-scrolled {
	background: rgba(247, 242, 234, .95);
	border-color: rgba(185, 168, 142, .45);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.sm-transparent-header .sm-header.is-scrolled .sm-brand__monogram,
.sm-transparent-header .sm-header.is-scrolled .sm-menu > li > a { color: var(--sm-oak); }
.sm-transparent-header .sm-header.is-scrolled .sm-nav-toggle__bar { background: var(--sm-oak); }

/* Mobile nav */
.sm-nav-toggle {
	display: none; background: none; border: 0; padding: 10px; cursor: pointer;
	width: 46px; height: 46px; position: relative;
}
.sm-nav-toggle__bar {
	display: block; width: 26px; height: 1.5px; background: var(--sm-oak); margin: 7px auto;
	transition: transform .3s var(--sm-ease), opacity .3s;
}
.sm-nav-toggle[aria-expanded="true"] .sm-nav-toggle__bar:nth-of-type(2) { transform: translateY(4.25px) rotate(45deg); }
.sm-nav-toggle[aria-expanded="true"] .sm-nav-toggle__bar:nth-of-type(3) { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 900px) {
	:root { --sm-header-h: 70px; }
	.sm-nav-toggle { display: block; z-index: 2; }
	.sm-nav {
		position: fixed; inset: 0; background: var(--sm-linen);
		display: flex; align-items: center; justify-content: center;
		opacity: 0; visibility: hidden; transition: opacity .35s var(--sm-ease), visibility .35s;
	}
	.sm-nav.is-open { opacity: 1; visibility: visible; }
	.sm-menu { flex-direction: column; align-items: center; gap: 22px; }
	.sm-menu a, .sm-transparent-header .sm-header .sm-menu > li > a { color: var(--sm-oak); font-size: .9rem; }
	.sm-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: none; text-align: center; padding: 6px 0 0; margin: 0; }
	.sm-nav-open .sm-nav-toggle__bar { background: var(--sm-oak) !important; }
	body.sm-nav-open { overflow: hidden; }
}

/* ---------- Built-in hero (fallback before Elementor) ---------- */
.sm-hero {
	position: relative; min-height: 100vh; min-height: 100svh;
	display: flex; align-items: center; justify-content: center; text-align: center;
	padding: calc(var(--sm-header-h) + 40px) var(--sm-gutter) 80px;
	color: var(--sm-linen);
}
.sm-hero .sm-eyebrow { color: var(--sm-sandstone); }
.sm-hero .sm-couple { color: var(--sm-linen); }
.sm-hero__tagline { font-family: var(--sm-serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: 0; }
.sm-hero__date { font-family: var(--sm-serif); font-size: clamp(1.4rem, 2.6vw, 2rem); margin: .2em 0 .1em; }
.sm-hero__venue { letter-spacing: .26em; text-transform: uppercase; font-size: .78rem; font-weight: 500; margin-bottom: 2em; }
.sm-hero .sm-countdown { margin-bottom: 2.4em; }

/* ---------- Countdown ---------- */
.sm-countdown {
	display: flex; justify-content: center; flex-wrap: wrap;
	gap: clamp(12px, 3vw, 36px);
}
.sm-countdown__unit {
	min-width: 96px; padding: 18px 10px 14px;
	border: 1px solid currentColor; border-color: rgba(185,168,142,.7);
	display: flex; flex-direction: column; align-items: center;
	position: relative;
}
.sm-countdown__unit::after { /* stone-arch inner line */
	content: ""; position: absolute; inset: 5px; border: 1px solid rgba(185,168,142,.35); pointer-events: none;
}
.sm-countdown__num {
	font-family: var(--sm-serif); font-weight: 500;
	font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1;
	color: var(--sm-oak); font-variant-numeric: lining-nums tabular-nums;
}
.sm-countdown__label {
	margin-top: 8px; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 500; color: var(--sm-moss);
}
.sm-hero .sm-countdown__num, .sm-on-dark .sm-countdown__num, .sm-countdown-wrap.is-dark .sm-countdown__num { color: var(--sm-linen); }
.sm-hero .sm-countdown__label, .sm-on-dark .sm-countdown__label, .sm-countdown-wrap.is-dark .sm-countdown__label { color: var(--sm-sandstone); }
.sm-countdown.is-done { display: block; font-family: var(--sm-script); font-size: clamp(2.4rem, 6vw, 4rem); text-align: center; }
@media (max-width: 480px) {
	.sm-countdown { gap: 8px; }
	.sm-countdown__unit { min-width: 0; flex: 1 1 calc(25% - 8px); padding: 14px 4px 10px; }
	.sm-countdown__label { letter-spacing: .12em; font-size: .6rem; }
}

/* ---------- Page banner & content ---------- */
.sm-main { display: block; }
.sm-banner {
	text-align: center;
	padding: clamp(70px, 10vw, 130px) var(--sm-gutter) clamp(40px, 6vw, 70px);
	background: linear-gradient(180deg, var(--sm-sandstone), transparent);
}
.sm-banner--tall { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sm-banner__title { margin: 0; }
.sm-banner__title.sm-script { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 400; }

.sm-container { max-width: var(--sm-container); margin: 0 auto; padding: 0 var(--sm-gutter); }
.sm-prose { max-width: calc(var(--sm-prose) + 2 * var(--sm-gutter)); padding-bottom: 90px; }
.sm-prose > * + h2, .sm-prose > * + h3 { margin-top: 1.6em; }
.sm-prose .alignwide { max-width: 1000px; margin-left: 50%; transform: translateX(-50%); width: calc(100vw - 2 * var(--sm-gutter)); }
.sm-prose .alignfull { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.sm-feature-image { margin: 0 0 2em; }

/* Post cards */
.sm-posts { display: grid; gap: 40px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); padding-bottom: 90px; }
.sm-card { background: rgba(255,255,255,.5); border: 1px solid var(--sm-sandstone); }
.sm-card__image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.sm-card__body { padding: 28px; }
.sm-card__title { font-size: 1.8rem; }
.sm-card__title a { color: var(--sm-oak); text-decoration: none; }
.sm-link { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; text-decoration: none; }
.sm-pagination { grid-column: 1 / -1; text-align: center; }
.sm-pagination .page-numbers { padding: 6px 12px; }

/* ---------- Map ---------- */
.sm-map iframe { width: 100%; border: 0; display: block; filter: sepia(.25) saturate(.8); border: 1px solid var(--sm-stone); }
.sm-map__link { display: inline-block; margin-top: 14px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }

/* ---------- Forms (RSVP plugins, comments) ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"], input[type="search"], select, textarea,
.elementor-field-group .elementor-field-textual {
	width: 100%;
	font-family: var(--sm-sans); font-size: 1rem; font-weight: 300; color: var(--sm-ink);
	background: rgba(255,255,255,.65);
	border: 1px solid var(--sm-stone); border-radius: 0;
	padding: .85em 1em;
	transition: border-color .2s, background .2s;
}
input:focus, select:focus, textarea:focus, .elementor-field-group .elementor-field-textual:focus {
	border-color: var(--sm-moss); background: #fff; outline: none;
}
label, .elementor-field-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--sm-oak); }

/* ---------- Footer ---------- */
.sm-footer {
	background: var(--sm-oak); color: var(--sm-sandstone);
	text-align: center; padding: 80px var(--sm-gutter) 60px;
	position: relative;
}
.sm-footer::before { /* dry-stone wall edge */
	content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
	background:
		radial-gradient(14px 10px at 14px 14px, var(--sm-oak) 98%, transparent) 0 0 / 28px 14px repeat-x;
}
.sm-footer__names { font-family: var(--sm-script); font-size: clamp(2.6rem, 6vw, 3.8rem); color: var(--sm-linen); line-height: 1.1; margin: 0; }
.sm-footer__meta { letter-spacing: .26em; text-transform: uppercase; font-size: .76rem; font-weight: 500; }
.sm-footer__message { font-family: var(--sm-serif); font-style: italic; font-size: 1.3rem; color: var(--sm-linen); }
.sm-footer__hashtag { color: var(--sm-corn); letter-spacing: .08em; }
.sm-footer__menu ul, ul.sm-footer__menu { list-style: none; padding: 0; margin: 24px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; }
.sm-footer a { color: var(--sm-sandstone); }
.sm-footer a:hover { color: var(--sm-corn); }

/* ==========================================================================
   Elementor helpers
   Add these in Advanced → CSS Classes on any section/container/widget.
   ========================================================================== */

/* Make Elementor pages sit flush with the theme */
.sm-main--elementor { overflow-x: clip; }
.sm-transparent-header .sm-main--elementor > .elementor > :first-child,
.sm-transparent-header .elementor-page .elementor > .elementor-section:first-child { margin-top: 0; }

/* Typography helpers */
.sm-script .elementor-heading-title, .elementor-widget.sm-script .elementor-heading-title {
	font-family: var(--sm-script); font-weight: 400; line-height: 1.1; letter-spacing: 0;
}
.sm-eyebrow .elementor-heading-title, .elementor-widget.sm-eyebrow .elementor-heading-title,
.elementor-widget.sm-eyebrow .elementor-widget-container {
	font-family: var(--sm-sans); font-weight: 500; font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--sm-moss); line-height: 1.6;
}
.sm-lead .elementor-widget-container, .sm-lead p {
	font-family: var(--sm-serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.55; color: var(--sm-oak);
}
.elementor-widget-heading .elementor-heading-title { font-family: var(--sm-serif); color: var(--sm-oak); }

/* Section backgrounds */
.sm-bg-linen { background-color: var(--sm-linen); }
.sm-bg-sandstone { background-color: var(--sm-sandstone); }
.sm-bg-oak { background-color: var(--sm-oak); }
.sm-bg-moss { background-color: var(--sm-moss); }

/* Light-on-dark sections */
.sm-on-dark, .sm-on-dark p, .sm-on-dark .elementor-widget-text-editor { color: var(--sm-sandstone); }
.sm-on-dark .elementor-heading-title, .sm-on-dark h1, .sm-on-dark h2, .sm-on-dark h3, .sm-on-dark h4 { color: var(--sm-linen); }
.sm-on-dark .elementor-widget.sm-eyebrow .elementor-heading-title,
.sm-on-dark .elementor-widget.sm-eyebrow .elementor-widget-container { color: var(--sm-corn); }
.sm-on-dark .sm-couple { color: var(--sm-linen); }
.sm-on-dark .sm-ornament { color: var(--sm-sandstone); }
.sm-on-dark a:not(.elementor-button) { color: var(--sm-corn); }

/* Framed photo — like a window set into a stone wall */
.sm-frame img, .sm-frame .elementor-image img {
	padding: 10px; background: var(--sm-linen);
	border: 1px solid var(--sm-stone);
	box-shadow: 0 1px 0 var(--sm-sandstone), 18px 18px 0 -1px var(--sm-sandstone);
}
.sm-arch img, .sm-arch .elementor-image img { border-radius: 999px 999px 0 0; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

/* Card with fine double border */
.sm-card-box, .elementor-element.sm-card-box > .elementor-widget-wrap,
.elementor-element.sm-card-box.e-con {
	background: rgba(255,255,255,.45);
	outline: 1px solid var(--sm-stone); outline-offset: -8px;
	border: 1px solid var(--sm-stone);
}

/* Timeline (The Day) — use on the icon box widgets */
.sm-timeline .elementor-icon { color: var(--sm-corn); border-color: var(--sm-corn); }
.sm-timeline .elementor-icon-box-title { font-family: var(--sm-serif); font-size: 1.6rem; margin-bottom: .2em; }
.sm-timeline .elementor-icon-box-title,
.sm-timeline .elementor-icon-box-title a { color: inherit; }
.sm-timeline .elementor-icon-box-description { font-size: .95rem; }

/* Accordion (FAQs) */
.elementor-widget-accordion .elementor-accordion .elementor-accordion-item { border-color: var(--sm-stone); border-left: 0; border-right: 0; }
.elementor-widget-accordion .elementor-accordion .elementor-tab-title {
	font-family: var(--sm-serif); font-weight: 500; font-size: 1.35rem; color: var(--sm-oak); padding: 20px 4px;
}
.elementor-widget-accordion .elementor-accordion .elementor-tab-title.elementor-active,
.elementor-widget-accordion .elementor-accordion .elementor-tab-title a:hover { color: var(--sm-moss); }
.elementor-widget-accordion .elementor-accordion .elementor-tab-title .elementor-accordion-icon { color: var(--sm-corn); }
.elementor-widget-accordion .elementor-accordion .elementor-tab-content { border-color: var(--sm-sandstone); padding: 4px 4px 22px; }

/* Elementor Pro form (if you use it for RSVP) */
.elementor-form .elementor-button { width: auto; }
.elementor-field-type-radio .elementor-field-option label,
.elementor-field-type-checkbox .elementor-field-option label { text-transform: none; letter-spacing: 0; font-weight: 300; font-size: 1rem; }

/* Gentle reveal on scroll (add class sm-reveal) */
.sm-reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--sm-ease), transform .9s var(--sm-ease); }
.sm-reveal.is-visible { opacity: 1; transform: none; }
.elementor-editor-active .sm-reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sm-reveal { opacity: 1; transform: none; transition: none; } }

/* Save-the-date template */
.sm-save-the-date .sm-hero { min-height: 100vh; padding-top: 60px; }

/* Block editor colour classes */
.has-sm-linen-color { color: var(--sm-linen); } .has-sm-linen-background-color { background-color: var(--sm-linen); }
.has-sm-sandstone-color { color: var(--sm-sandstone); } .has-sm-sandstone-background-color { background-color: var(--sm-sandstone); }
.has-sm-stone-color { color: var(--sm-stone); } .has-sm-stone-background-color { background-color: var(--sm-stone); }
.has-sm-oak-color { color: var(--sm-oak); } .has-sm-oak-background-color { background-color: var(--sm-oak); }
.has-sm-ink-color { color: var(--sm-ink); } .has-sm-ink-background-color { background-color: var(--sm-ink); }
.has-sm-moss-color { color: var(--sm-moss); } .has-sm-moss-background-color { background-color: var(--sm-moss); }
.has-sm-corn-color { color: var(--sm-corn); } .has-sm-corn-background-color { background-color: var(--sm-corn); }
.has-sm-blush-color { color: var(--sm-blush); } .has-sm-blush-background-color { background-color: var(--sm-blush); }

/* WordPress core alignment classes */
.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--sm-moss); text-align: center; margin-top: .6em; font-style: italic; font-family: var(--sm-serif); }

/* Hero date line used in the Elementor starter page */
.sm-hero-date .sm-date { display: block; text-align: center; font-family: var(--sm-serif); font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--sm-linen); }
.sm-hero-section .sm-couple { margin-top: .05em; }

/* ==========================================================================
   Backdrop photo (Customize → Our Wedding → Backdrop Photo)
   Applies to the homepage hero (class sm-hero-section). Setting a background
   on that section inside Elementor still overrides it if you prefer.
   ========================================================================== */
.sm-hero-section {
	position: relative;
	background-color: var(--sm-hero-plain, var(--sm-oak));
	background-image: var(--sm-hero-image);
	background-size: cover;
	background-position: var(--sm-hero-pos, center);
	background-repeat: no-repeat;
	isolation: isolate;
}
.sm-hero-section::before {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: linear-gradient(180deg,
		rgba(46, 41, 37, calc(var(--sm-hero-dark, .45) * .85)) 0%,
		rgba(46, 41, 37, var(--sm-hero-dark, .45)) 60%,
		rgba(46, 41, 37, calc(var(--sm-hero-dark, .45) + .1)) 100%);
}
.sm-hero-section > *:not(.elementor-background-overlay):not(.elementor-shape) { position: relative; z-index: 1; }

/* Optional: same photo behind page titles */
.sm-banner-backdrop .sm-banner {
	position: relative; isolation: isolate; color: var(--sm-linen);
	background: var(--sm-oak) var(--sm-hero-image) var(--sm-hero-pos, center) / cover no-repeat;
	padding-top: calc(clamp(70px, 10vw, 130px) + 20px);
}
.sm-banner-backdrop .sm-banner::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(46, 41, 37, var(--sm-hero-dark, .45));
}
.sm-banner-backdrop .sm-banner .sm-banner__title { color: var(--sm-linen); }
.sm-banner-backdrop .sm-banner .sm-eyebrow { color: var(--sm-sandstone); }
.sm-banner-backdrop .sm-banner .sm-ornament { color: var(--sm-sandstone); }
.sm-banner-backdrop .sm-banner + .sm-container { padding-top: 60px; }

/* ==========================================================================
   Wedding Suite plugin — make its pages match the theme
   ========================================================================== */
.wds-wrap { font-family: var(--sm-sans); font-weight: 300; }
.wds-title { font-family: var(--sm-serif); color: var(--sm-oak); }
.wds-eyebrow { font-family: var(--sm-sans); font-weight: 500; letter-spacing: .28em; color: var(--sm-moss); }
.wds-card, .wds-panel { box-shadow: none; outline: 1px solid var(--sm-sandstone); outline-offset: -7px; }
body .wds-btn {
	border-radius: 0; font-family: var(--sm-sans); font-weight: 500; font-size: .8rem;
	letter-spacing: .22em; text-transform: uppercase; background: var(--sm-oak);
	border: 1px solid var(--sm-oak);
}
body .wds-btn:hover { background: var(--sm-corn); border-color: var(--sm-corn); filter: none; }
body .wds-btn-ghost { background: transparent; color: var(--sm-oak) !important; border-color: var(--sm-oak); }
body .wds-wrap input[type=text], body .wds-wrap input[type=password], body .wds-wrap input[type=email],
body .wds-wrap textarea, body .wds-wrap select { border-radius: 0; border: 1px solid var(--sm-stone); }

/* Plugin countdown ([wedding_countdown] / [wedding_info]) in the theme's style */
body .wds-countdown { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(8px, 3vw, 36px); }
body .wds-countdown > div {
	min-width: 96px; padding: 18px 10px 14px; border-radius: 0; background: transparent;
	border: 1px solid rgba(185,168,142,.7); position: relative;
	display: flex; flex-direction: column; align-items: center;
}
body .wds-countdown > div::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(185,168,142,.35); pointer-events: none; }
body .wds-countdown span {
	font-family: var(--sm-serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.4rem);
	color: var(--sm-oak); line-height: 1; font-variant-numeric: lining-nums tabular-nums;
}
body .wds-countdown small { margin-top: 8px; font-size: .68rem; letter-spacing: .26em; font-weight: 500; color: var(--sm-moss); }
body .wds-countdown-done { width: 100%; text-align: center; font-family: var(--sm-script); font-size: clamp(2.4rem, 6vw, 4rem); color: var(--sm-corn); }
.sm-on-dark .wds-countdown span, .sm-hero-section .wds-countdown span { color: var(--sm-linen); }
.sm-on-dark .wds-countdown small, .sm-hero-section .wds-countdown small { color: var(--sm-sandstone); }
.sm-on-dark .wds-wrap { color: inherit; }
@media (max-width: 480px) {
	body .wds-countdown { gap: 8px; }
	body .wds-countdown > div { min-width: 0; flex: 1 1 calc(25% - 8px); padding: 14px 4px 10px; }
	body .wds-countdown small { letter-spacing: .12em; font-size: .6rem; }
}

/* ---------- No backdrop: plain colour ---------- */
.sm-hero-plain .sm-hero-section::before { background: none; }
/* a whisper of texture so a plain colour still feels like lime-washed stone */
.sm-hero-plain.sm-textured .sm-hero-section {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 240px 240px;
	background-repeat: repeat;
}

/* Light plain colour (Linen / Sandstone): switch the writing to dark */
.sm-hero-light .sm-hero-section,
.sm-hero-light .sm-hero-section p,
.sm-hero-light .sm-hero-section .elementor-widget-text-editor { color: var(--sm-ink); }
.sm-hero-light .sm-hero-section .elementor-heading-title,
.sm-hero-light .sm-hero-section .sm-couple,
.sm-hero-light .sm-hero-section .sm-hero__date,
.sm-hero-light .sm-hero-section .sm-hero-date .sm-date { color: var(--sm-oak); }
.sm-hero-light .sm-hero-section .sm-eyebrow,
.sm-hero-light .sm-hero-section .elementor-widget.sm-eyebrow .elementor-heading-title { color: var(--sm-moss); }
.sm-hero-light .sm-hero-section .sm-ornament { color: var(--sm-corn); }
.sm-hero-light .sm-hero-section .sm-countdown__num,
.sm-hero-light .sm-hero-section .wds-countdown span { color: var(--sm-oak); }
.sm-hero-light .sm-hero-section .sm-countdown__label,
.sm-hero-light .sm-hero-section .wds-countdown small { color: var(--sm-moss); }
.sm-hero-light .sm-hero-section .sm-button,
.sm-hero-light .sm-hero-section .elementor-button { background: var(--sm-oak); border-color: var(--sm-oak); color: var(--sm-linen); }
.sm-hero-light .sm-hero-section .sm-button:hover,
.sm-hero-light .sm-hero-section .elementor-button:hover { background: var(--sm-corn); border-color: var(--sm-corn); color: #fff; }
/* Header over a light hero */
.sm-hero-light.sm-transparent-header .sm-header .sm-brand__monogram,
.sm-hero-light.sm-transparent-header .sm-header .sm-menu > li > a { color: var(--sm-oak); }
.sm-hero-light.sm-transparent-header .sm-header .sm-nav-toggle__bar { background: var(--sm-oak); }

/* Starter-page hero text on a picture */
.sm-hero-section .sm-hero-venue .elementor-heading-title { color: var(--sm-sandstone); }
.sm-hero-light .sm-hero-section .sm-hero-venue .elementor-heading-title { color: var(--sm-moss); }
