/* ==========================================================================
   Fifthmark Studio (Elementor) — theme styles
   Brand colors sampled from the Fifthmark logo.
   Elementor controls page content; this file styles the header, footer,
   theme-rendered pages, and a few reusable classes you can add to any
   Elementor element under Advanced → CSS Classes:

     fm-hero        full-width image hero (header floats over it, mobile overlay, gold sweep)
     fm-btn-gold    gold-gradient button (add to a Button widget)
     fm-btn-outline gold outline button
     fm-eyebrow     small uppercase label with a gold rule (Heading widget)
     fm-card        light card · fm-card-dark  dark card (Container)
     fm-featured    highlighted card (gold border)
     fm-zoom        gentle image zoom on hover (Container or Image)
     fm-frame       thin gold frame around an image (Image widget)
     fm-ticks       gold-diamond bullet list (Text Editor widget)
     fm-rule        thin gold rule above (Container)
     fm-timeline    diamonds + connecting line on child containers
   ========================================================================== */

:root {
	--fm-navy-ink: #05101B;
	--fm-deep: #0B1420;
	--fm-navy: #142234;
	--fm-gold: #C7A56B;
	--fm-gold-antique: #B58F58;
	--fm-gold-light: #F0DDB4;
	--fm-gold-dark: #6B5330;
	--fm-gold-ink: #7D5F2E;
	--fm-ivory: #F5F0E7;
	--fm-card: #FBF8F2;
	--fm-charcoal: #202329;
	--fm-stone: #555D68;
	--fm-mist: #A3ABB6;
	--fm-slate: #8993A0;
	--fm-line-dark: rgba(199, 165, 107, 0.18);
	--fm-line-gold: rgba(199, 165, 107, 0.45);
	--fm-radius: 2px;
	--fm-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--fm-header-h: 92px;
	--fm-wrap: 1240px;
	--fm-gutter: clamp(20px, 4vw, 40px);
	--fm-font-heading: "DM Sans", "Helvetica Neue", Arial, sans-serif;
	--fm-font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
	--fm-font-accent: "Playfair Display", Georgia, serif;
	/* The champagne-gold gradient: echoes the metallic ribbon in the logo. */
	--fm-gold-gradient: linear-gradient(120deg, #B58F58 0%, #D9BC86 26%, #F0DDB4 46%, #C7A56B 66%, #A9844E 100%);
	--fm-gold-shadow: 0 10px 26px -12px rgba(199, 165, 107, 0.6), inset 0 1px 0 rgba(255, 246, 225, 0.55), inset 0 -1px 0 rgba(107, 83, 48, 0.35);
	--fm-gold-shadow-hover: 0 16px 34px -12px rgba(199, 165, 107, 0.75), inset 0 1px 0 rgba(255, 246, 225, 0.65), inset 0 -1px 0 rgba(107, 83, 48, 0.35);
}
@media (max-width: 1099px) { :root { --fm-header-h: 76px; } }

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--fm-ivory);
	color: var(--fm-charcoal);
	font-family: var(--fm-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--fm-gold-ink); }
:focus-visible { outline: 2px solid var(--fm-gold); outline-offset: 3px; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.fm-skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000; left: 12px; top: 12px;
	background: var(--fm-ivory); color: var(--fm-deep); padding: 12px 18px; font-weight: 700;
}
.fm-wrap { max-width: var(--fm-wrap); margin: 0 auto; padding-left: var(--fm-gutter); padding-right: var(--fm-gutter); }
.fm-icon { width: 20px; height: 20px; flex: none; }
.fm-gold-text {
	color: var(--fm-gold);
	background: linear-gradient(110deg, #C7A56B 0%, #E8CF9E 38%, #F0DDB4 50%, #C7A56B 72%, #B58F58 100%);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.fm-serif { font-family: var(--fm-font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* Buttons ---------------------------------------------------------------- */
.fm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 28px; border-radius: var(--fm-radius);
	font-family: var(--fm-font-body); font-weight: 700; font-size: 15px; letter-spacing: 0.01em; line-height: 1.2;
	text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
	transition: background-position 0.6s var(--fm-ease), box-shadow 0.35s var(--fm-ease), transform 0.35s var(--fm-ease), color 0.25s, border-color 0.25s, background-color 0.25s;
}
/* Gold gradient: theme buttons, Elementor buttons with class fm-btn-gold, and block-editor buttons. */
.fm-btn--gold,
.fm-btn-gold .elementor-button,
.fm-btn-gold.elementor-button,
.fm-form button[type="submit"] {
	position: relative; overflow: hidden;
	background-color: var(--fm-gold) !important;
	background-image: var(--fm-gold-gradient) !important;
	background-size: 220% 100% !important;
	background-position: 0% 50% !important;
	color: var(--fm-deep) !important;
	border: 1px solid rgba(240, 221, 180, 0.65) !important;
	box-shadow: var(--fm-gold-shadow);
	text-shadow: 0 1px 0 rgba(255, 246, 225, 0.35);
}
.fm-btn--gold:hover, .fm-btn--gold:focus-visible,
.fm-btn-gold .elementor-button:hover, .fm-btn-gold .elementor-button:focus-visible,
.fm-btn-gold.elementor-button:hover,
.fm-form button[type="submit"]:hover, .fm-form button[type="submit"]:focus-visible {
	background-position: 100% 50% !important;
	box-shadow: var(--fm-gold-shadow-hover);
	transform: translateY(-1px);
	color: var(--fm-deep) !important;
}
/* Soft light sweep across the gold on hover */
.fm-btn--gold::after, .fm-btn-gold .elementor-button::after, .fm-form button[type="submit"]::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(105deg, transparent 30%, rgba(255, 250, 238, 0.45) 48%, transparent 66%);
	transform: translateX(-120%); transition: transform 0.9s var(--fm-ease);
}
.fm-btn--gold:hover::after, .fm-btn-gold .elementor-button:hover::after, .fm-form button[type="submit"]:hover::after { transform: translateX(120%); }
.fm-btn-gold .elementor-button .elementor-button-content-wrapper,
.fm-btn--gold > * { position: relative; z-index: 1; }

.fm-btn--outline,
.fm-btn-outline .elementor-button {
	background: transparent !important; color: var(--fm-ivory) !important;
	border: 1px solid rgba(199, 165, 107, 0.7) !important; box-shadow: none;
}
.fm-btn--outline:hover,
.fm-btn-outline .elementor-button:hover { background: rgba(199, 165, 107, 0.12) !important; border-color: var(--fm-gold) !important; }

.fm-btn-outline-light .elementor-button { background: transparent !important; color: var(--fm-charcoal) !important; border: 1px solid var(--fm-gold-ink) !important; }
.fm-btn-outline-light .elementor-button:hover { background: rgba(199, 165, 107, 0.14) !important; }
.fm-btn-outline .elementor-button, .fm-btn-outline-light .elementor-button { transition: background-color 0.25s, border-color 0.25s; }
.fm-on-light a:not(.elementor-button) { color: var(--fm-gold-ink); }

/* Text link with underline (Elementor Button widget, class fm-link; or theme markup) */
a.fm-link, .fm-link .elementor-button {
	display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px;
	color: var(--fm-gold) !important; background: none !important; padding: 0 0 4px !important;
	border-radius: 0 !important; border-bottom: 1px solid currentColor !important; text-decoration: none; min-height: 0;
}
.fm-on-light a.fm-link, .fm-card a.fm-link, .fm-on-light .fm-link .elementor-button, .fm-card .fm-link .elementor-button { color: var(--fm-gold-ink) !important; }

/* Header ----------------------------------------------------------------- */
.fm-header {
	position: sticky; top: 0; z-index: 900;
	background: var(--fm-deep);
	border-bottom: 1px solid rgba(199, 165, 107, 0.14);
	transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
body.admin-bar .fm-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .fm-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .fm-header { top: 0; } body.admin-bar.fm-header-overlay .fm-header { top: 46px; } }

.fm-header-overlay .fm-header {
	position: fixed; left: 0; right: 0;
	background: linear-gradient(180deg, rgba(5, 16, 27, 0.72) 0%, rgba(5, 16, 27, 0) 100%);
	border-bottom-color: transparent;
}
.fm-header-overlay .fm-header.is-scrolled,
.fm-header-overlay.fm-nav-open .fm-header {
	background: rgba(11, 20, 32, 0.94);
	border-bottom-color: rgba(199, 165, 107, 0.14);
	box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}
@supports (backdrop-filter: blur(8px)) {
	.fm-header-overlay .fm-header.is-scrolled { background: rgba(11, 20, 32, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
.fm-header__inner {
	max-width: calc(var(--fm-wrap) + 2 * var(--fm-gutter)); margin: 0 auto; padding: 0 var(--fm-gutter);
	height: var(--fm-header-h); display: flex; align-items: center; gap: 28px;
}
.fm-header__brand { flex: none; display: flex; align-items: center; }
.fm-header__brand img, .fm-header__brand .custom-logo { height: var(--fm-logo-h, 64px); width: auto; max-width: min(420px, 60vw); object-fit: contain; display: block; transition: height .3s ease; }
.fm-header.is-scrolled .fm-header__brand img, .fm-header.is-scrolled .fm-header__brand .custom-logo { height: calc(var(--fm-logo-h, 64px) * .82); }
@media (max-width: 1099px) { .fm-header__brand img, .fm-header__brand .custom-logo, .fm-header.is-scrolled .fm-header__brand img, .fm-header.is-scrolled .fm-header__brand .custom-logo { height: var(--fm-logo-h-m, 44px); max-width: 62vw; } }

.fm-nav { flex: 1; display: flex; justify-content: center; }
.fm-nav__toggle { display: none; }
.fm-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 34px; }
.fm-menu > li { position: relative; }
.fm-menu a {
	color: #E6E1D8; text-decoration: none; font-family: var(--fm-font-body); font-size: 14px; font-weight: 600;
	display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; transition: color 0.2s;
}
.fm-menu a:hover, .fm-menu a:focus-visible,
.fm-menu .current-menu-item > a, .fm-menu .current-menu-ancestor > a, .fm-menu .current_page_item > a { color: var(--fm-gold); }
.fm-menu .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px); margin-left: 2px;
}
.fm-submenu-toggle { display: none; }
.fm-menu .sub-menu {
	list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: -20px; min-width: 290px;
	background: var(--fm-navy); border: 1px solid var(--fm-line-dark); border-radius: var(--fm-radius);
	box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.7);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; z-index: 10;
}
.fm-menu li:hover > .sub-menu, .fm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.fm-menu .sub-menu a { display: block; padding: 10px 22px; font-weight: 500; }
.fm-header__cta { flex: none; min-height: 46px; padding: 0 22px; font-size: 14px; }
.fm-nav__cta-mobile { display: none; }

@media (max-width: 1099px) {
	.fm-header__inner { gap: 16px; }
	.fm-nav { order: 3; flex: 0 0 auto; margin-left: 0; }
	.fm-header__cta { margin-left: auto; }
	.fm-nav__toggle {
		display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
		background: transparent; color: var(--fm-ivory); border: 1px solid rgba(199, 165, 107, 0.5); border-radius: var(--fm-radius); cursor: pointer;
	}
	.fm-nav__toggle-close { display: none; }
	.fm-nav-open .fm-nav__toggle-open { display: none; }
	.fm-nav-open .fm-nav__toggle-close { display: inline-flex; }
	.fm-nav__toggle-open { display: inline-flex; }
	.fm-nav__panel {
		position: fixed; left: 0; right: 0; bottom: 0; top: var(--fm-panel-top, var(--fm-header-h));
		background: var(--fm-deep); padding: 24px var(--fm-gutter) calc(32px + env(safe-area-inset-bottom, 0px));
		overflow-y: auto; overscroll-behavior: contain;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
		border-top: 1px solid var(--fm-line-dark);
	}
	.fm-nav-open .fm-nav__panel { opacity: 1; visibility: visible; transform: none; }
	.fm-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.fm-menu > li { border-bottom: 1px solid rgba(199, 165, 107, 0.12); display: flex; flex-wrap: wrap; align-items: center; }
	.fm-menu > li > a { flex: 1; font-family: var(--fm-font-heading); font-size: 22px; font-weight: 600; padding: 16px 0; letter-spacing: -0.01em; }
	.fm-menu .menu-item-has-children > a::after { display: none; }
	.fm-submenu-toggle {
		display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
		background: transparent; border: 0; color: var(--fm-gold); cursor: pointer;
	}
	.fm-submenu-toggle .fm-icon { transition: transform 0.25s; }
	.fm-submenu-toggle[aria-expanded="true"] .fm-icon { transform: rotate(180deg); }
	.fm-menu .sub-menu {
		position: static; flex-basis: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none;
		background: transparent; border: 0; box-shadow: none; padding: 0 0 12px 4px; display: none;
	}
	.fm-menu .sub-menu.is-open { display: block; }
	.fm-menu li:hover > .sub-menu, .fm-menu li:focus-within > .sub-menu { transform: none; }
	.fm-menu .sub-menu a { padding: 10px 0; font-size: 16px; color: var(--fm-mist); }
	.fm-nav__cta-mobile { display: flex; width: 100%; margin-top: 28px; min-height: 54px; }
	body.fm-nav-open { overflow: hidden; }
}
@media (max-width: 639px) { .fm-header__cta { display: none; } .fm-nav { margin-left: auto; } }

/* Main ------------------------------------------------------------------- */
.fm-main { display: block; }
.fm-main--elementor { background: var(--fm-ivory); }
.fm-section { padding: clamp(64px, 9vw, 120px) 0; }
.fm-section--dark { background: var(--fm-deep); color: var(--fm-ivory); }

/* Elementor helpers ------------------------------------------------------- */
/* Full-width image hero. The image + navy gradient are set in Elementor
   (Style → Background and Background Overlay). These rules add the gold
   light-sweep, keep content above it, and make the overlay stronger on phones. */
.fm-hero { position: relative; overflow: hidden; isolation: isolate; }
.fm-hero::after {
	content: ""; position: absolute; left: -10%; right: -10%; bottom: -60px; height: 340px;
	background: url(../images/gold_sweep.png) center / cover no-repeat;
	opacity: 0.32; pointer-events: none; z-index: 1;
}
.fm-hero > .e-con-inner, .fm-hero > .elementor-element, .fm-hero > .elementor-container { position: relative; z-index: 2; }
@media (max-width: 767px) {
	/* Readable text over the image on phones: top-to-bottom navy fade. */
	.fm-hero::before {
		content: "" !important;
		background-image: linear-gradient(180deg, rgba(11, 20, 32, 0.5) 0%, rgba(11, 20, 32, 0.72) 38%, rgba(11, 20, 32, 0.92) 72%, #0B1420 100%) !important;
		background-color: transparent !important;
		opacity: 1 !important;
		position: absolute; inset: 0; z-index: 0;
	}
	.fm-hero::after { height: 220px; opacity: 0.22; }
	/* Full-width, stacked call-to-action buttons on phones */
	.fm-hero .elementor-widget-button { width: 100% !important; }
	.fm-hero .elementor-widget-button .elementor-button { width: 100%; display: flex; justify-content: center; }
}
/* Header floating over the hero: make sure hero content clears it. */
.fm-header-overlay .fm-main--elementor > .elementor > .fm-hero:first-child,
.fm-header-overlay .fm-main--elementor > .elementor > .e-con.fm-hero:first-child { padding-top: max(var(--padding-top, 0px), calc(var(--fm-header-h) + 32px)); }

.fm-eyebrow .elementor-heading-title, .fm-eyebrow {
	display: flex; align-items: center; gap: 14px;
	font-family: var(--fm-font-heading); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
	color: var(--fm-gold); margin: 0;
}
.fm-eyebrow .elementor-heading-title::before, p.fm-eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; flex: none; }
.fm-on-light .fm-eyebrow .elementor-heading-title, .fm-card .fm-eyebrow .elementor-heading-title { color: var(--fm-gold-ink); }

.fm-card { background: var(--fm-card); border: 1px solid rgba(32, 35, 41, 0.08); border-radius: var(--fm-radius); overflow: hidden; }
.fm-card-dark { background: var(--fm-navy); border: 1px solid var(--fm-line-dark); border-radius: var(--fm-radius); overflow: hidden; }
.fm-card, .fm-card-dark { transition: transform 0.45s var(--fm-ease), box-shadow 0.45s var(--fm-ease), border-color 0.3s; }
.fm-card:hover, .fm-card-dark:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(11, 20, 32, 0.55); }
.fm-card-dark:hover { border-color: rgba(199, 165, 107, 0.4); }
.fm-featured { border-color: var(--fm-gold) !important; box-shadow: 0 30px 60px -36px rgba(199, 165, 107, 0.5); }
.fm-card-dark.fm-featured { background: #1A2B40; }

.fm-zoom, .fm-card .elementor-widget-image, .fm-card-dark .elementor-widget-image { overflow: hidden; }
.fm-zoom img, .fm-card .elementor-widget-image img, .fm-card-dark .elementor-widget-image img { transition: transform 0.8s var(--fm-ease); }
.fm-zoom:hover img, .fm-card:hover .elementor-widget-image img, .fm-card-dark:hover .elementor-widget-image img { transform: scale(1.045); }
.fm-card .elementor-widget-image img, .fm-card-dark .elementor-widget-image img { width: 100%; display: block; }

.fm-frame img { outline: 1px solid var(--fm-line-gold); outline-offset: 14px; margin: 14px; width: calc(100% - 28px) !important; }

.fm-ticks ul, ul.fm-ticks { list-style: none; padding-left: 0; margin: 0; display: grid; gap: 12px; }
.fm-ticks.fm-two-col ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 600px) { .fm-ticks.fm-two-col ul { grid-template-columns: minmax(0, 1fr); } }
.fm-ticks li { position: relative; padding-left: 22px; }
.fm-ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; background: var(--fm-gold); transform: rotate(45deg); }

.fm-rule { border-top: 1px solid var(--fm-line-gold) !important; }

.fm-timeline > .e-con-inner > .e-con, .fm-timeline > .e-con { position: relative; padding-top: 44px !important; }
.fm-timeline > .e-con-inner > .e-con::before, .fm-timeline > .e-con::before {
	content: ""; position: absolute; top: 2px; left: 0; width: 14px; height: 14px; background: var(--fm-gold); transform: rotate(45deg);
}
.fm-timeline > .e-con-inner > .e-con:not(:last-child)::after, .fm-timeline > .e-con:not(:last-child)::after {
	content: ""; position: absolute; top: 9px; left: 30px; right: -10px; height: 1px; background: rgba(199, 165, 107, 0.35);
}
@media (max-width: 767px) { .fm-timeline > .e-con-inner > .e-con::after, .fm-timeline > .e-con::after { display: none; } }

/* Elementor accordion styled as FAQ rows */
.fm-faq .elementor-accordion-item { border-width: 0 0 1px 0 !important; border-style: solid !important; border-color: rgba(32, 35, 41, 0.14) !important; }
.fm-faq .elementor-accordion-item:first-child { border-top-width: 1px !important; }
.fm-faq .elementor-tab-title { padding: 22px 0 !important; }
.fm-faq .elementor-tab-content { padding: 0 0 22px !important; border: 0 !important; }

/* Gold light-sweep on any call-to-action band (class fm-cta on a Container) */
.fm-cta { position: relative; overflow: hidden; isolation: isolate; }
.fm-cta::after { content: ""; position: absolute; inset: 0; background: url(../images/gold_sweep.png) center 30% / cover no-repeat; opacity: 0.9; z-index: 0; pointer-events: none; }
.fm-cta > .e-con-inner, .fm-cta > .elementor-element { position: relative; z-index: 1; }

/* Theme page hero (blog, posts, archives, plain pages) --------------------- */
.fm-page-hero {
	position: relative; overflow: hidden; isolation: isolate;
	background-color: var(--fm-deep);
	background-image: var(--fm-hero-img);
	background-size: cover; background-position: center right; background-repeat: no-repeat;
	color: var(--fm-ivory);
	padding: calc(var(--fm-header-h) + clamp(56px, 9vw, 120px)) 0 clamp(56px, 8vw, 104px);
}
.fm-header-solid .fm-page-hero { padding-top: clamp(64px, 9vw, 120px); }
.fm-page-hero::before {
	content: ""; position: absolute; inset: 0; z-index: 0;
	background: linear-gradient(90deg, rgba(11, 20, 32, 1) 0%, rgba(11, 20, 32, var(--fm-hero-overlay, 0.88)) 38%, rgba(11, 20, 32, calc(var(--fm-hero-overlay, 0.88) - 0.55)) 78%, rgba(11, 20, 32, calc(var(--fm-hero-overlay, 0.88) - 0.6)) 100%);
}
.fm-page-hero::after {
	content: ""; position: absolute; left: -10%; right: -10%; bottom: -60px; height: 300px; z-index: 0; pointer-events: none;
	background: url(../images/gold_sweep.png) center / cover no-repeat; opacity: 0.3;
}
.fm-page-hero__inner { position: relative; z-index: 1; max-width: var(--fm-wrap); margin: 0 auto; padding: 0 var(--fm-gutter); }
.fm-page-hero .fm-eyebrow { margin-bottom: 22px; }
.fm-page-hero__title {
	font-family: var(--fm-font-heading); font-weight: 600; letter-spacing: -0.025em; line-height: 1.06;
	font-size: clamp(38px, 5.6vw, 76px); margin: 0; max-width: 900px; text-wrap: balance;
}
.fm-page-hero__lead { margin: 22px 0 0; max-width: 620px; font-size: 18px; color: #C4CAD2; }
@media (max-width: 767px) {
	.fm-page-hero { background-position: 70% center; }
	.fm-page-hero::before { background: linear-gradient(180deg, rgba(11, 20, 32, 0.7) 0%, rgba(11, 20, 32, 0.9) 60%, #0B1420 100%); }
}

/* Reveal animation for theme-rendered content (Elementor uses its own Motion Effects) */
@media (prefers-reduced-motion: no-preference) {
	.fm-js .fm-reveal { animation: fmRise 0.9s var(--fm-ease) both; }
	.fm-js .fm-reveal:nth-child(2) { animation-delay: 0.08s; }
	.fm-js .fm-reveal:nth-child(3) { animation-delay: 0.16s; }
}
@keyframes fmRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Prose content (posts, plain pages) -------------------------------------- */
.fm-content--prose { max-width: 780px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--fm-gutter) clamp(64px, 9vw, 120px); font-size: 17px; line-height: 1.75; }
.fm-content--prose :is(h2, h3, h4) { font-family: var(--fm-font-heading); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 1.8em 0 0.6em; color: var(--fm-navy-ink); }
.fm-content--prose h2 { font-size: clamp(26px, 3vw, 34px); }
.fm-content--prose h3 { font-size: 22px; }
.fm-content--prose img { border-radius: var(--fm-radius); }
.fm-content--prose blockquote { border-left: 2px solid var(--fm-gold); margin: 1.6em 0; padding: 0.2em 0 0.2em 1.2em; font-family: var(--fm-font-accent); font-style: italic; font-size: 22px; line-height: 1.5; }
.fm-content--blocks { display: flow-root; }
.fm-post-nav { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(32, 35, 41, 0.14); font-weight: 600; font-size: 15px; }
.fm-post-nav a { text-decoration: none; }

/* Post cards --------------------------------------------------------------- */
.fm-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.fm-post-card { display: flex; flex-direction: column; background: var(--fm-navy); border: 1px solid var(--fm-line-dark); border-radius: var(--fm-radius); overflow: hidden; transition: transform 0.45s var(--fm-ease), border-color 0.3s; }
.fm-post-card:hover { transform: translateY(-4px); border-color: rgba(199, 165, 107, 0.4); }
.fm-post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.fm-post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--fm-ease); }
.fm-post-card:hover .fm-post-card__media img { transform: scale(1.045); }
.fm-post-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; color: var(--fm-ivory); }
.fm-post-card__title { margin: 0; font-family: var(--fm-font-heading); font-weight: 600; font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; }
.fm-post-card__title a { color: inherit; text-decoration: none; }
.fm-post-card__title a:hover { color: var(--fm-gold); }
.fm-post-card__excerpt { margin: 0; color: var(--fm-mist); font-size: 14px; line-height: 1.6; }
.fm-post-card .fm-link { margin-top: auto; align-self: flex-start; }
.fm-post-grid--light .fm-post-card { background: var(--fm-card); border-color: rgba(32, 35, 41, 0.08); }
.fm-post-grid--light .fm-post-card__body { color: var(--fm-charcoal); }
.fm-post-grid--light .fm-post-card__excerpt { color: var(--fm-stone); }
.fm-post-grid--light .fm-link { color: var(--fm-gold-ink) !important; }
.fm-tag { display: inline-block; align-self: flex-start; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; padding: 5px 10px; border: 1px solid rgba(199, 165, 107, 0.45); color: var(--fm-gold); border-radius: var(--fm-radius); }
.fm-empty-note { padding: 20px; border: 1px dashed rgba(199, 165, 107, 0.45); color: var(--fm-mist); }
.fm-empty { color: var(--fm-mist); }
.fm-pagination { margin-top: 48px; }
.fm-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fm-pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--fm-line-dark); color: var(--fm-ivory); text-decoration: none; border-radius: var(--fm-radius); }
.fm-pagination .page-numbers.current, .fm-pagination .page-numbers:hover { border-color: var(--fm-gold); color: var(--fm-gold); }
.fm-404-actions { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid #C9C2B4; border-radius: var(--fm-radius); font: inherit; }
.search-form .search-submit { min-height: 50px; padding: 0 22px; border: 1px solid var(--fm-gold); background: var(--fm-gold); color: var(--fm-deep); font-weight: 700; border-radius: var(--fm-radius); cursor: pointer; }
.fm-search-again { margin-bottom: 40px; }

/* Inquiry form ------------------------------------------------------------- */
.fm-form { color: var(--fm-charcoal); }
.fm-form form { display: flex; flex-direction: column; gap: 20px; }
.fm-form .fm-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 600px) { .fm-form .fm-row { grid-template-columns: minmax(0, 1fr); } }
.fm-form .fm-field { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fm-form label, .fm-form legend { font-size: 13px; font-weight: 700; color: var(--fm-charcoal); padding: 0; }
.fm-form :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
	width: 100%; font-family: var(--fm-font-body); font-size: 16px; min-height: 50px; padding: 12px 14px;
	border: 1px solid #C9C2B4; background: #FFFFFF; color: var(--fm-charcoal); border-radius: var(--fm-radius);
}
.fm-form textarea { min-height: 150px; resize: vertical; }
.fm-form :is(input, select, textarea):focus { outline: 2px solid var(--fm-gold); outline-offset: 1px; border-color: var(--fm-gold-ink); }
.fm-form fieldset { border: 0; margin: 0; padding: 0; }
.fm-form .fm-choices { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.fm-form .fm-choices legend { margin-bottom: 10px; }
.fm-form .fm-choice { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid #C9C2B4; background: #FFFFFF; border-radius: var(--fm-radius); font-weight: 600; font-size: 14px; cursor: pointer; }
.fm-form .fm-choice:has(input:checked) { border-color: var(--fm-gold-ink); background: #FBF4E6; }
.fm-form input[type="checkbox"] { accent-color: var(--fm-gold-ink); width: 18px; height: 18px; margin: 0; flex: none; }
.fm-form .fm-consent label { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 14px; color: #3A4049; }
.fm-form .fm-consent input { margin-top: 2px; }
.fm-form .fm-submit { margin: 4px 0 0; }
.fm-form button[type="submit"] { min-height: 54px; padding: 0 30px; font-family: var(--fm-font-body); font-weight: 700; font-size: 15px; border-radius: var(--fm-radius); cursor: pointer; display: inline-flex; align-items: center; gap: 10px; }
.fm-form .fm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fm-form__notice { padding: 14px 18px; border-radius: var(--fm-radius); margin-bottom: 20px; font-size: 15px; }
.fm-form__notice--ok { background: #EAF3EC; border: 1px solid #5C8A68; color: #1F3B27; }
.fm-form__notice--error { background: #FBEDEA; border: 1px solid #A5523F; color: #5A2216; }

/* Footer ------------------------------------------------------------------- */
.fm-footer { background: var(--fm-deep); color: var(--fm-ivory); border-top: 1px solid rgba(199, 165, 107, 0.14); }
.fm-footer__inner { max-width: calc(var(--fm-wrap) + 2 * var(--fm-gutter)); margin: 0 auto; padding: clamp(64px, 8vw, 96px) var(--fm-gutter) 32px; }
.fm-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
@media (max-width: 1023px) { .fm-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .fm-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.fm-footer__brand .custom-logo, .fm-footer__brand img { height: 46px; width: auto; max-width: 220px; display: block; }
.fm-footer__tagline { color: var(--fm-mist); font-size: 14px; max-width: 320px; margin: 20px 0 0; }
.fm-footer__title { font-family: var(--fm-font-body); font-size: 14px; font-weight: 700; color: var(--fm-gold); margin: 0 0 18px; letter-spacing: 0; }
.fm-footer-menu, .fm-footer__contact, .fm-social { list-style: none; margin: 0; padding: 0; }
.fm-footer-menu { display: grid; gap: 10px; }
.fm-footer-menu a, .fm-footer__contact a { color: #B9C0C9; text-decoration: none; font-size: 14px; }
.fm-footer-menu a:hover, .fm-footer__contact a:hover { color: var(--fm-gold); }
.fm-footer__contact { display: grid; gap: 12px; font-size: 14px; color: #B9C0C9; }
.fm-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.fm-footer__contact .fm-icon { color: var(--fm-gold); width: 18px; height: 18px; margin-top: 2px; }
.fm-social { display: flex; gap: 10px; margin-top: 22px; }
.fm-social a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(199, 165, 107, 0.35); border-radius: 50%; color: var(--fm-gold); transition: background-color 0.2s, border-color 0.2s; }
.fm-social a:hover { background: rgba(199, 165, 107, 0.12); border-color: var(--fm-gold); }
.fm-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(199, 165, 107, 0.14); font-size: 13px; color: var(--fm-mist); }
.fm-footer__bottom p { margin: 0; }
.fm-footer__bottom .fm-footer-menu { display: flex; gap: 20px; flex-wrap: wrap; }
.fm-footer__bottom .fm-footer-menu a { font-size: 13px; }

/* Comments ---------------------------------------------------------------- */
.fm-comments { margin-top: 64px; }
.fm-comments__list { padding-left: 1.2em; }
.fm-comments textarea, .fm-comments input[type="text"], .fm-comments input[type="email"], .fm-comments input[type="url"] { width: 100%; padding: 12px 14px; border: 1px solid #C9C2B4; border-radius: var(--fm-radius); font: inherit; }
.fm-comments .submit { min-height: 48px; padding: 0 24px; background: var(--fm-gold); border: 1px solid var(--fm-gold); color: var(--fm-deep); font-weight: 700; border-radius: var(--fm-radius); cursor: pointer; }

/* Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	/* Elementor entrance animations: show content immediately */
	.elementor-invisible { visibility: visible !important; }
	.elementor-element.animated, .animated { animation: none !important; opacity: 1 !important; transform: none !important; }
	.fm-card:hover, .fm-card-dark:hover, .fm-post-card:hover, .fm-btn--gold:hover, .fm-btn-gold .elementor-button:hover { transform: none; }
	.fm-zoom:hover img, .fm-card:hover img, .fm-card-dark:hover img, .fm-post-card:hover img { transform: none; }
}

/* ==================================================================
   Portfolio page (template "Fifthmark — Portfolio")
   fm-pills  jump links · fm-pshow  service showcase · fm-pintro  sticky intro
   fm-pcard  project tile · fm-chips  deliverable chips · fm-num  section number
   ================================================================== */
.fm-pills { margin-top: 26px; }
.fm-pills .elementor-button { padding: 11px 18px !important; border-radius: 999px !important; font-size: 13px !important; }
.fm-pills .fm-btn-outline .elementor-button { border-color: rgba(245, 240, 231, 0.22) !important; background: rgba(11, 20, 32, 0.35) !important; backdrop-filter: blur(6px); }
.fm-pills .fm-btn-outline .elementor-button:hover { border-color: var(--fm-gold) !important; color: var(--fm-gold) !important; }
.fm-num .elementor-heading-title { display: inline-flex; align-items: center; gap: 14px; }
.fm-pshow { scroll-margin-top: var(--fm-header-h); }
.fm-pshow + .fm-pshow { border-top: 1px solid rgba(199, 165, 107, 0.12); }
@media (min-width: 1025px) {
	.fm-pintro { position: sticky; top: calc(var(--fm-header-h) + 32px); align-self: flex-start; }
}
.fm-chips ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fm-chips li { margin: 0; padding: 7px 12px; border: 1px solid rgba(245, 240, 231, 0.2); border-radius: 999px; font-size: 13px; line-height: 1.2; }
.fm-on-light .fm-chips li { border-color: rgba(32, 35, 41, 0.14); background: rgba(255, 255, 255, 0.45); }
.fm-pcard .elementor-widget-image { overflow: hidden; border-radius: var(--fm-radius); }
.fm-pcard .elementor-widget-image img { width: 100%; display: block; transition: transform 0.9s var(--fm-ease), filter 0.5s; }
.fm-pcard:hover .elementor-widget-image img { transform: scale(1.05); }
.fm-pcard-dark .elementor-widget-image { box-shadow: 0 0 0 1px rgba(199, 165, 107, 0.16); }
.fm-pcard .elementor-widget-image::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(199, 165, 107, 0); transition: box-shadow 0.4s; }
.fm-pcard:hover .elementor-widget-image::after { box-shadow: inset 0 0 0 1px rgba(199, 165, 107, 0.65); }
.fm-pcard .elementor-widget-image { position: relative; }
.fm-pcard .elementor-widget-text-editor p { margin: 0; }
.fm-on-light .fm-pcard .fm-tag { color: var(--fm-gold-ink); border-color: rgba(125, 95, 46, 0.4); }
.fm-legend .elementor-icon-box-wrapper { align-items: flex-start; }
@media (min-width: 768px) { .fm-legend > .elementor-element { flex: 1 1 200px; } }
@media (max-width: 767px) {
	.fm-pills { flex-wrap: nowrap !important; overflow-x: auto; margin-right: -20px; padding-right: 20px; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.fm-pills::-webkit-scrollbar { display: none; }
	.fm-pills > .elementor-element { flex: 0 0 auto; }
	.fm-pills .elementor-button { white-space: nowrap; }
	.fm-hero .fm-pills .elementor-widget-button { width: auto !important; }
	.fm-hero .fm-pills .elementor-widget-button .elementor-button { width: auto; display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) { .fm-pcard:hover .elementor-widget-image img { transform: none; } }
