/* ==========================================================================
   Everitt Management — bespoke theme styles
   Palette: ink navy / warm ivory / brass. Type: Fraunces display, Archivo body.
   ========================================================================== */

:root {
	--navy: #0f1d31;
	--navy-2: #16283f;
	--navy-3: #1d3350;
	--ink: #22293a;
	--ivory: #f6f2ea;
	--paper: #fcfaf5;
	--white: #ffffff;
	--brass: #b98a44;
	--brass-2: #d9b47c;
	--brass-deep: #96692e;
	--muted: #6a7180;
	--line: rgba(15, 29, 49, 0.12);
	--line-light: rgba(246, 242, 234, 0.16);
	--shadow: 0 18px 50px -18px rgba(15, 29, 49, 0.35);
	--radius: 10px;
	--font-display: "Fraunces", "Baskerville", Georgia, serif;
	--font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-deep); text-decoration: none; }
a:hover { color: var(--brass); }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.12;
	color: var(--navy);
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; }

.ems-shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

.ems-eyebrow {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--brass);
	margin: 0 0 14px;
}

.ems-muted { color: var(--muted); font-size: 0.92em; }

/* ---------- Buttons ---------- */
.ems-btn {
	display: inline-block;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	padding: 15px 30px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.ems-btn-solid {
	background: linear-gradient(135deg, var(--brass-2), var(--brass));
	color: var(--navy) !important;
	box-shadow: 0 10px 26px -12px rgba(185, 138, 68, 0.65);
}
.ems-btn-solid:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(185, 138, 68, 0.75); }
.ems-btn-ghost { border-color: rgba(246, 242, 234, 0.55); color: var(--ivory) !important; background: transparent; }
.ems-btn-ghost:hover { border-color: var(--brass-2); color: var(--brass-2) !important; }
.ems-btn-ghost-dark { border-color: rgba(246, 242, 234, 0.55); color: var(--ivory) !important; }
.ems-btn-ghost-dark:hover { border-color: var(--brass-2); color: var(--brass-2) !important; }

/* ---------- Header ---------- */
.ems-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 90;
	background: rgba(15, 29, 49, 0.55);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(246, 242, 234, 0.08);
	transition: background 0.25s ease;
}
.ems-header.scrolled, body.ems-inner .ems-header { background: rgba(15, 29, 49, 0.96); }
.ems-header-row { display: flex; align-items: center; gap: 28px; height: 76px; }
.ems-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.ems-brand-mark { width: 44px; height: 44px; border-radius: 50%; }
.ems-brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.ems-brand-name {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--ivory);
	letter-spacing: 0.02em;
}
.ems-brand-sub {
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--brass-2);
}
.ems-footer .ems-brand-name { font-size: 1.35rem; }
.ems-nav { display: flex; gap: 26px; }
.ems-nav a {
	color: rgba(246, 242, 234, 0.85);
	font-size: 0.92rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	padding: 6px 0;
	border-bottom: 1.5px solid transparent;
}
.ems-nav a:hover { color: var(--brass-2); border-bottom-color: var(--brass-2); }
.ems-header-actions { display: flex; align-items: center; gap: 16px; }
.ems-header-cta { padding: 11px 22px; font-size: 0.88rem; }
.ems-cart { position: relative; color: var(--ivory); display: inline-flex; padding: 6px; }
.ems-cart:hover { color: var(--brass-2); }
.ems-cart-count {
	position: absolute;
	top: -2px; right: -6px;
	min-width: 17px; height: 17px;
	border-radius: 999px;
	background: var(--brass);
	color: var(--navy);
	font-size: 0.66rem;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
	padding: 0 4px;
	opacity: 0.35;
}
.ems-cart-count.has-items { opacity: 1; }
.ems-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.ems-burger span { display: block; width: 22px; height: 2px; background: var(--ivory); margin: 5px 0; transition: 0.2s; }

/* ---------- Hero ---------- */
.ems-hero { position: relative; background: var(--navy); color: var(--ivory); overflow: hidden; }
.ems-hero-media { position: absolute; inset: 0; }
.ems-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.ems-hero-scrim {
	position: absolute; inset: 0;
	background:
		linear-gradient(78deg, rgba(15, 29, 49, 0.97) 0%, rgba(15, 29, 49, 0.88) 38%, rgba(15, 29, 49, 0.45) 72%, rgba(15, 29, 49, 0.6) 100%),
		linear-gradient(0deg, rgba(15, 29, 49, 0.85) 0%, rgba(15, 29, 49, 0) 30%);
}
.ems-hero-inner { position: relative; padding: 190px 24px 120px; max-width: var(--shell); }
.ems-hero h1 { color: var(--ivory); margin-bottom: 26px; }
.ems-hero h1 em { font-style: italic; color: var(--brass-2); }
.ems-hero-sub { max-width: 560px; font-size: 1.08rem; color: rgba(246, 242, 234, 0.82); margin: 0 0 38px; }
.ems-hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ems-trust { position: relative; border-top: 1px solid var(--line-light); background: rgba(11, 22, 38, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ems-trust-row {
	display: flex; flex-wrap: wrap; gap: 10px 38px;
	padding: 17px 24px;
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(246, 242, 234, 0.6);
}
.ems-trust-row span::before { content: "—"; color: var(--brass); margin-right: 10px; }

/* ---------- Sections ---------- */
.ems-section { padding: 96px 0; }
.ems-section-head { max-width: 640px; margin-bottom: 54px; }
.ems-section-sub { color: var(--muted); font-size: 1.02rem; }

/* ---------- Service cards ---------- */
.ems-services { background: var(--ivory); }
.ems-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ems-card {
	display: flex; flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	color: var(--ink);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.ems-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(185, 138, 68, 0.45); color: var(--ink); }
.ems-card-media { aspect-ratio: 1 / 1; overflow: hidden; }
.ems-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ems-card:hover .ems-card-media img { transform: scale(1.035); }
.ems-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.ems-card-title { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; color: var(--navy); line-height: 1.25; }
.ems-card-desc { font-size: 0.92rem; color: var(--muted); flex: 1; }
.ems-card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.ems-card-price { font-weight: 600; color: var(--navy); font-size: 1.02rem; }
.ems-card-price .woocommerce-Price-amount { color: var(--navy); }
.ems-card-link { font-size: 0.85rem; font-weight: 600; color: var(--brass-deep); letter-spacing: 0.02em; white-space: nowrap; }
.ems-card:hover .ems-card-link { color: var(--brass); }

/* ---------- Approach ---------- */
.ems-approach { background: var(--paper); }
.ems-approach-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.ems-steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 26px; }
.ems-steps li { display: flex; gap: 20px; align-items: flex-start; }
.ems-steps h3 { margin-bottom: 4px; }
.ems-steps p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.ems-step-num {
	flex: 0 0 44px; height: 44px;
	display: grid; place-items: center;
	border: 1.5px solid var(--brass);
	border-radius: 50%;
	font-family: var(--font-display);
	font-size: 1.15rem;
	color: var(--brass-deep);
	margin-top: 2px;
}
.ems-approach-media img, .ems-about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- About ---------- */
.ems-about { background: var(--navy); color: rgba(246, 242, 234, 0.85); }
.ems-about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center; }
.ems-about h2 { color: var(--ivory); }
.ems-ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.ems-ticks li { padding-left: 30px; position: relative; }
.ems-ticks li::before {
	content: "";
	position: absolute; left: 0; top: 7px;
	width: 14px; height: 8px;
	border-left: 2px solid var(--brass-2);
	border-bottom: 2px solid var(--brass-2);
	transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */
.ems-faq { background: var(--ivory); }
.ems-faq-shell { max-width: 860px; }
.ems-faq-list { display: grid; gap: 14px; }
.ems-faq-list details {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0 26px;
	transition: border-color 0.2s ease;
}
.ems-faq-list details[open] { border-color: rgba(185, 138, 68, 0.5); }
.ems-faq-list summary {
	cursor: pointer;
	list-style: none;
	font-family: var(--font-display);
	font-size: 1.08rem;
	font-weight: 600;
	color: var(--navy);
	padding: 20px 34px 20px 0;
	position: relative;
}
.ems-faq-list summary::-webkit-details-marker { display: none; }
.ems-faq-list summary::after {
	content: "+";
	position: absolute; right: 0; top: 50%;
	transform: translateY(-50%);
	font-family: var(--font-body);
	font-size: 1.4rem;
	font-weight: 400;
	color: var(--brass);
	transition: transform 0.2s ease;
}
.ems-faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.ems-faq-list details p { margin: 0 0 22px; color: var(--muted); }

/* ---------- CTA band ---------- */
.ems-cta-band {
	background:
		radial-gradient(1000px 400px at 15% -10%, rgba(185, 138, 68, 0.22), transparent 60%),
		var(--navy);
	color: rgba(246, 242, 234, 0.85);
	padding: 100px 0;
	text-align: center;
}
.ems-cta-inner { max-width: 720px; }
.ems-cta-band h2 { color: var(--ivory); }
.ems-cta-band p { margin: 0 auto 36px; max-width: 600px; }
.ems-cta-band .ems-hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.ems-footer { background: #0b1626; color: rgba(246, 242, 234, 0.72); font-size: 0.93rem; }
.ems-footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 48px;
	padding: 72px 0 48px;
}
.ems-footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ems-footer-logo img { border-radius: 50%; }
.ems-footer-logo div { display: flex; flex-direction: column; line-height: 1.05; }
.ems-footer-contact a { color: var(--brass-2); }
.ems-footer-col { display: flex; flex-direction: column; gap: 10px; }
.ems-footer-col h3 {
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--brass-2);
	margin-bottom: 8px;
}
.ems-footer-col a { color: rgba(246, 242, 234, 0.72); }
.ems-footer-col a:hover { color: var(--brass-2); }
.ems-footer-bar {
	border-top: 1px solid var(--line-light);
	padding: 26px 0 34px;
	font-size: 0.8rem;
	color: rgba(246, 242, 234, 0.45);
	text-align: center;
	line-height: 1.7;
}

/* ---------- Inner pages ---------- */
body.ems-inner main { padding-top: 76px; }
.ems-page-hero { background: var(--navy); color: var(--ivory); padding: 84px 0 64px; }
.ems-page-hero h1 { color: var(--ivory); font-size: clamp(2.1rem, 4vw, 3.2rem); margin: 0; }
.ems-page-hero-sub { color: rgba(246, 242, 234, 0.75); max-width: 620px; margin: 16px 0 0; }
.ems-prose { max-width: 800px; padding-top: 56px; padding-bottom: 90px; }
.ems-prose h2 { font-size: 1.6rem; margin-top: 2em; }
.ems-prose h3 { margin-top: 1.6em; }
.ems-prose ul, .ems-prose ol { padding-left: 22px; }
.ems-prose li { margin-bottom: 8px; }

/* ---------- Contact ---------- */
.ems-contact-grid {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 60px;
	padding-top: 64px;
	padding-bottom: 96px;
}
.ems-contact-info h2 { font-size: 1.5rem; }
.ems-contact-info p { margin: 0 0 22px; }
.ems-contact-form form { display: grid; gap: 18px; }
.ems-contact-form label { display: grid; gap: 7px; font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.ems-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ems-contact-form input, .ems-contact-form textarea,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
	font-family: var(--font-body);
	font-size: 1rem;
	padding: 13px 16px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--white);
	color: var(--ink);
	width: 100%;
}
.ems-contact-form input:focus, .ems-contact-form textarea:focus { outline: 2px solid rgba(185, 138, 68, 0.5); border-color: var(--brass); }
.ems-contact-form button { justify-self: start; }
.ems-form-note { margin: 0; }
.ems-hp { position: absolute !important; left: -9999px !important; }
.ems-notice { padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; font-size: 0.95rem; }
.ems-notice-ok { background: #eaf3ea; border: 1px solid #b9d8b9; color: #2f5d2f; }
.ems-notice-err { background: #f9ecec; border: 1px solid #e3bcbc; color: #7c3030; }

/* ---------- WooCommerce ---------- */
.ems-woo { padding-bottom: 96px; }
.ems-woo .ems-shell { padding-top: 48px; }
.ems-shop-hero + .ems-shell { padding-top: 56px; }
body.ems-inner .ems-page-hero { padding-top: 64px; }

.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
	text-align: left;
	display: flex;
	flex-direction: column;
}
.woocommerce ul.products li.product:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.woocommerce ul.products li.product a img { margin: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--font-display);
	font-size: 1.18rem;
	color: var(--navy);
	padding: 18px 22px 4px;
}
.woocommerce ul.products li.product .price { color: var(--navy); font-weight: 600; padding: 0 22px; font-size: 1rem; }
.woocommerce ul.products li.product .button {
	margin: 14px 22px 22px;
	align-self: start;
}
.woocommerce .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce button.button.alt, .woocommerce a.button.alt,
.wc-block-components-button {
	background: linear-gradient(135deg, var(--brass-2), var(--brass)) !important;
	color: var(--navy) !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-family: var(--font-body) !important;
	font-weight: 600 !important;
	padding: 13px 26px !important;
	transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}
.woocommerce .button:hover, .woocommerce button.button.alt:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(185, 138, 68, 0.7); }

.woocommerce div.product { padding-top: 40px; }
.woocommerce div.product .product_title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.woocommerce div.product p.price { color: var(--navy); font-size: 1.5rem; font-weight: 600; font-family: var(--font-body); }
.woocommerce div.product div.images img { border-radius: var(--radius); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--navy); }
.woocommerce div.product form.cart { margin: 28px 0; }
.woocommerce div.product form.cart div.quantity { display: none; } /* services are sold individually */
.woocommerce-product-details__short-description { color: var(--muted); font-size: 1.02rem; }

.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-top-color: var(--brass) !important;
	background: var(--ivory) !important;
	color: var(--ink) !important;
	border-radius: 0 0 8px 8px;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--brass) !important; }
.woocommerce-message .button, .woocommerce-info .button { padding: 8px 18px !important; }

.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--radius); }
.woocommerce table.shop_table th { color: var(--navy); }

#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment {
	background: var(--ivory);
	border-radius: var(--radius);
}
.woocommerce-checkout #payment div.payment_box { background: var(--white); }
.woocommerce form.checkout h3, #order_review_heading { font-family: var(--font-display); color: var(--navy); }

/* Hide shop result count / ordering noise */
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { display: none; }

/* Custom shop archive cards */
.ems-shop-cards { padding-top: 8px; }
.ems-shop-card .ems-card-imglink { display: block; }
.ems-shop-card .ems-card-titlelink { color: inherit; }
.ems-shop-card .ems-card-title { transition: color 0.18s ease; }
.ems-shop-card:hover .ems-card-title { color: var(--brass-deep); }
.ems-shop-actions { display: flex; gap: 10px; margin-top: 16px; }
.ems-btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.ems-btn-line { border-color: var(--line); color: var(--navy) !important; background: transparent; }
.ems-btn-line:hover { border-color: var(--brass); color: var(--brass-deep) !important; }
.ems-shop-card .ems-card-body { gap: 8px; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	[data-reveal] { opacity: 1; transform: none; transition: none; }
	.ems-btn, .ems-card, .woocommerce ul.products li.product { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ems-cards, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
	.ems-approach-grid, .ems-about-grid { grid-template-columns: 1fr; gap: 44px; }
	.ems-about-media { order: 2; }
}
@media (max-width: 820px) {
	.ems-nav {
		display: none;
		position: absolute;
		top: 76px; left: 0; right: 0;
		flex-direction: column;
		gap: 0;
		background: rgba(15, 29, 49, 0.98);
		padding: 10px 24px 22px;
		border-bottom: 1px solid var(--line-light);
	}
	.ems-nav.open { display: flex; }
	.ems-nav a { padding: 13px 0; border-bottom: 1px solid rgba(246, 242, 234, 0.08); }
	.ems-burger { display: block; }
	.ems-header-cta { display: none; }
	.ems-hero-inner { padding: 150px 24px 90px; }
	.ems-section { padding: 68px 0; }
	.ems-contact-grid { grid-template-columns: 1fr; gap: 44px; }
	.ems-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; padding: 56px 0 36px; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.ems-cards, .woocommerce ul.products { grid-template-columns: 1fr; }
	.ems-field-row { grid-template-columns: 1fr; }
	.ems-footer-grid { grid-template-columns: 1fr; }
	.ems-trust-row { gap: 8px 24px; font-size: 0.72rem; }
	.ems-hero-ctas .ems-btn { width: 100%; text-align: center; }
	/* Let the hero headline wrap naturally instead of forcing long lines that overflow. */
	.ems-hero h1 { font-size: 2.15rem; word-break: break-word; }
	.ems-hero h1 br { display: none; }
	.ems-about h2 br, .ems-approach h2 br { display: none; }
}

/* Global guard: never allow horizontal page scroll. */
html, body { overflow-x: hidden; max-width: 100%; }
.ems-hero h1 em { display: inline-block; }
