/* ==========================================================================
   Everly theme – chrome (tokens, base, header, footer, default pages)
   ========================================================================== */

:root {
	--ev-navy: #0b285f;
	--ev-navy-2: #173a76;
	--ev-coral: #ce8a75;
	--ev-coral-2: #b97765;
	--ev-blue: #a8d9e3;
	--ev-text: #40596b;
	--ev-muted: #6f7f89;
	--ev-line: #e3e9ed;
	--ev-light: #f7f8fa;
	--ev-soft: #eff7f9;
	--ev-white: #fff;
	--ev-shadow: 0 18px 48px rgba(19, 45, 66, .12);
	--ev-serif: Georgia, "Times New Roman", serif;
	--ev-sans: Arial, Helvetica, sans-serif;
	--ev-shell: 1170px;
	--ev-gutter: 24px;
	--ev-radius: 8px;
	--ev-header-h: 96px;
	--ev-admin-bar: 0px;
}
.admin-bar { --ev-admin-bar: 32px; }
@media (max-width: 782px) { .admin-bar { --ev-admin-bar: 46px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--ev-header-h) + var(--ev-admin-bar) + 12px); }
body {
	margin: 0;
	font-family: var(--ev-sans);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ev-text);
	background: var(--ev-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--ev-navy); }
a:hover { color: var(--ev-coral-2); }
h1, h2, h3, h4, h5, h6 { color: var(--ev-navy); font-family: var(--ev-serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--ev-coral); outline-offset: 2px; }

.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;
}
.ev-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ev-navy); color: #fff; padding: 10px 16px; border-radius: var(--ev-radius); }
.ev-skip:focus { left: 8px; color: #fff; }

.ev-shell { width: 100%; max-width: calc(var(--ev-shell) + var(--ev-gutter) * 2); margin: 0 auto; padding: 0 var(--ev-gutter); }
.ev-shell--narrow { max-width: calc(820px + var(--ev-gutter) * 2); }
.ev-icon { flex: 0 0 auto; width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.ev-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 48px; padding: 0 22px; border-radius: var(--ev-radius);
	font-family: var(--ev-sans); font-size: 14px; font-weight: 800; letter-spacing: .01em; line-height: 1;
	text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ev-btn:hover { transform: translateY(-1px); }
.ev-btn--coral { background: var(--ev-coral); color: #fff; box-shadow: 0 8px 20px rgba(206, 138, 117, .28); }
.ev-btn--coral:hover { background: var(--ev-coral-2); color: #fff; }
.ev-btn--navy { background: var(--ev-navy); color: #fff; }
.ev-btn--navy:hover { background: var(--ev-navy-2); color: #fff; }
.ev-btn--outline { background: #fff; color: var(--ev-navy); border-color: var(--ev-line); }
.ev-btn--outline:hover { border-color: var(--ev-navy); color: var(--ev-navy); }

/* ---------- Top bar ---------- */
.ev-topbar { background: var(--ev-navy); color: rgba(255, 255, 255, .86); font-size: 13px; line-height: 1; }
.ev-topbar__inner { display: flex; align-items: center; justify-content: flex-end; gap: 28px; min-height: 40px; }
.ev-topbar__item { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.ev-topbar__item .ev-icon { width: 14px; height: 14px; color: var(--ev-coral); }
a.ev-topbar__item:hover { color: #fff; }
.ev-topbar__hours { margin-right: auto; }

/* ---------- Header ---------- */
.ev-header {
	position: sticky; top: var(--ev-admin-bar); z-index: 900;
	background: #fff;
	border-bottom: 1px solid var(--ev-line);
	transition: box-shadow .25s ease;
}
.ev-header.is-scrolled { box-shadow: 0 10px 30px rgba(11, 40, 95, .08); border-bottom-color: transparent; }
@media (max-width: 600px) { .admin-bar .ev-header { top: 0; } }
.ev-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--ev-header-h); }

.ev-brand { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; text-decoration: none; height: 72px; overflow: hidden; transition: height .25s ease; }
/* The logo PNG has ~25% transparent/white padding on every side; crop it so the artwork reads at a useful size. */
.ev-brand__logo { display: block; height: 124px; width: auto; max-width: none; margin: 0 -28px; transition: height .25s ease, margin .25s ease; }
.ev-header.is-scrolled .ev-brand { height: 62px; }
.ev-header.is-scrolled .ev-brand__logo { height: 106px; margin: 0 -24px; }
.ev-brand__text { font-family: var(--ev-serif); font-size: 26px; color: var(--ev-navy); }

/* Primary nav (desktop) */
.ev-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.ev-menu, .ev-menu ul { list-style: none; margin: 0; padding: 0; }
.ev-menu { display: flex; align-items: center; gap: 4px; }
.ev-menu > li { position: relative; }
.ev-menu a {
	display: flex; align-items: center; gap: 6px;
	color: var(--ev-navy); text-decoration: none;
	font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
	padding: 10px 12px; border-radius: 6px; white-space: nowrap;
	transition: color .2s ease, background-color .2s ease;
}
.ev-menu > li > a { position: relative; }
.ev-menu > li > a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
	background: var(--ev-coral); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.ev-menu > li:hover > a, .ev-menu > li:focus-within > a,
.ev-menu > .current-menu-item > a, .ev-menu > .current-menu-ancestor > a, .ev-menu > .current_page_item > a { color: var(--ev-coral-2); }
.ev-menu > .current-menu-item > a::after, .ev-menu > .current-menu-ancestor > a::after, .ev-menu > .current_page_item > a::after,
.ev-menu > li:hover > a::after { transform: scaleX(1); }
.ev-menu .menu-item-has-children > a::before { order: 2; content: ""; width: 6px; height: 6px; margin: -3px 0 0 2px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); }

/* Dropdowns */
.ev-menu .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
	background: #fff; border: 1px solid var(--ev-line); border-radius: 12px; box-shadow: var(--ev-shadow);
	padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.ev-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.ev-menu li:hover > .sub-menu, .ev-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ev-menu .sub-menu a { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; padding: 10px 12px; }
.ev-menu .sub-menu a:hover, .ev-menu .sub-menu .current-menu-item > a { background: var(--ev-soft); color: var(--ev-navy); }
.ev-menu .sub-menu .sub-menu { top: -9px; left: 100%; }

.ev-header__actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.ev-phone {
	display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
	border: 1.5px solid var(--ev-line); border-radius: 999px;
	color: var(--ev-navy); font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap;
	transition: border-color .2s ease, color .2s ease;
}
.ev-phone .ev-icon { color: var(--ev-coral); }
.ev-phone:hover { border-color: var(--ev-navy); color: var(--ev-navy); }
.ev-header__cta { height: 44px; }

.ev-burger { display: none; position: relative; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--ev-line); border-radius: 10px; background: #fff; cursor: pointer; }
.ev-burger__bar, .ev-burger__bar::before, .ev-burger__bar::after {
	position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px; background: var(--ev-navy); border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.ev-burger__bar { top: 50%; margin-top: -1px; }
.ev-burger__bar::before, .ev-burger__bar::after { content: ""; left: 0; margin-left: 0; }
.ev-burger__bar::before { top: -6px; }
.ev-burger__bar::after { top: 6px; }
.ev-nav-open .ev-burger__bar { background: transparent; }
.ev-nav-open .ev-burger__bar::before { transform: translateY(6px) rotate(45deg); }
.ev-nav-open .ev-burger__bar::after { transform: translateY(-6px) rotate(-45deg); }
.ev-nav__mobile-actions { display: none; }
.ev-nav__head { display: none; }
.ev-submenu-toggle { display: none; }

@media (max-width: 1260px) {
	.ev-header__inner { gap: 18px; }
	.ev-menu a { padding: 10px 9px; letter-spacing: .05em; }
	.ev-phone span { display: none; }
	.ev-phone { width: 44px; padding: 0; justify-content: center; }
}

/* Mobile / tablet nav */
@media (max-width: 1080px) {
	:root { --ev-header-h: 80px; }
	.ev-brand, .ev-header.is-scrolled .ev-brand { height: 56px; }
	.ev-brand__logo, .ev-header.is-scrolled .ev-brand__logo { height: 98px; margin: 0 -22px; }
	.ev-header__actions { margin-left: auto; }
	.ev-burger { display: inline-block; }
	.ev-nav {
		position: fixed; z-index: 950; top: 0; right: 0; bottom: 0;
		width: min(380px, 90vw); padding: calc(20px + var(--ev-admin-bar)) 22px calc(28px + env(safe-area-inset-bottom));
		background: #fff; box-shadow: -20px 0 50px rgba(11, 40, 95, .18);
		flex-direction: column; justify-content: flex-start; overflow-y: auto;
		transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
	}
	.ev-nav-open .ev-nav { transform: none; visibility: visible; }
	.ev-nav-open .ev-header { z-index: 1000; }
	.ev-nav__head { display: flex; align-items: center; justify-content: space-between; margin: -8px 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ev-line); }
	.ev-nav__head .ev-brand { height: 52px; }
	.ev-nav__head .ev-brand__logo { height: 92px; margin: 0 -20px; }
	.ev-nav__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--ev-line); border-radius: 10px; background: #fff; color: var(--ev-navy); cursor: pointer; }
	.ev-nav__close:hover { border-color: var(--ev-navy); }
	.ev-nav-backdrop { position: fixed; inset: 0; z-index: 940; background: rgba(11, 40, 95, .45); }
	.ev-nav-backdrop[hidden] { display: none; }
	.ev-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.ev-menu > li { border-bottom: 1px solid var(--ev-line); }
	.ev-menu a { padding: 15px 4px; font-size: 14px; }
	.ev-menu > li > a::after { display: none; }
	.ev-menu .menu-item-has-children > a::before { display: none; }
	.ev-menu .menu-item-has-children { display: flex; flex-wrap: wrap; }
	.ev-menu .menu-item-has-children > a { flex: 1 1 auto; }
	.ev-submenu-toggle {
		display: inline-flex; align-items: center; justify-content: center; width: 44px; border: 0; background: none; color: var(--ev-navy); cursor: pointer;
	}
	.ev-submenu-toggle::before { content: ""; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
	.ev-submenu-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); margin-top: 4px; }
	.ev-menu .sub-menu {
		position: static; flex: 1 1 100%; min-width: 0; opacity: 1; visibility: visible; transform: none;
		border: 0; box-shadow: none; padding: 0 0 10px 12px; border-radius: 0; display: none;
	}
	.ev-menu .sub-menu.is-open { display: block; }
	.ev-menu .sub-menu a { padding: 10px 4px; }
	.ev-nav__mobile-actions { display: grid; gap: 10px; margin-top: 24px; }
	.ev-nav__mobile-actions .ev-btn { width: 100%; }
	.ev-header__cta { display: none; }
	body.ev-nav-open { overflow: hidden; }
}
/* Tablet / phone: no info bar; the phone number lives in the header next to the menu button. */
@media (max-width: 1080px) {
	.ev-topbar { display: none; }
	.ev-header__actions { gap: 10px; }
	.ev-phone { width: auto; height: 44px; padding: 0 14px; gap: 7px; font-size: 14px; border-color: var(--ev-navy); }
	.ev-phone span { display: inline; }
}
@media (max-width: 480px) {
	:root { --ev-gutter: 16px; }
	.ev-phone { padding: 0 12px; font-size: 13.5px; }
}
@media (max-width: 359px) {
	.ev-phone span { display: none; }
	.ev-phone { width: 44px; padding: 0; justify-content: center; }
}

/* ---------- Main / default pages ---------- */
.ev-main { display: block; }
.ev-main--default { padding-bottom: 88px; }
.ev-banner {
	background: radial-gradient(1200px 400px at 85% -20%, rgba(168, 217, 227, .25), transparent 60%), var(--ev-navy);
	color: #fff; padding: 64px 0 60px; margin-bottom: 56px;
}
.ev-main--full > .ev-banner { margin-bottom: 0; }
.ev-banner__title { color: #fff; font-size: clamp(36px, 5vw, 56px); letter-spacing: -1px; margin: 0; }
.ev-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; color: rgba(255, 255, 255, .7); }
.ev-crumbs a { color: var(--ev-coral); text-decoration: none; }
.ev-crumbs a:hover { color: #fff; }

.ev-prose { font-size: 17px; }
.ev-prose h2 { font-size: 32px; margin-top: 1.6em; }
.ev-prose h3 { font-size: 24px; margin-top: 1.4em; }
.ev-prose ul, .ev-prose ol { padding-left: 1.3em; }
.ev-prose li { margin-bottom: .4em; }
.ev-prose a { color: var(--ev-coral-2); }
.ev-prose img { border-radius: 12px; }
.ev-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ev-coral); color: var(--ev-navy); font-family: var(--ev-serif); font-size: 20px; }
.ev-featured { width: 100%; border-radius: 14px; margin-bottom: 24px; }

.ev-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.ev-card { background: #fff; border: 1px solid var(--ev-line); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(19, 45, 66, .06); }
.ev-card__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ev-card__body { padding: 22px 24px 26px; }
.ev-card__meta { color: var(--ev-coral-2); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.ev-card__title { font-size: 24px; }
.ev-card__title a { text-decoration: none; }
.ev-pagination { margin-top: 40px; }

.ev-search { display: flex; gap: 10px; }
.ev-search input { flex: 1; height: 48px; padding: 0 16px; border: 1.5px solid var(--ev-line); border-radius: var(--ev-radius); }

.ev-woo { padding-top: 56px; padding-bottom: 88px; }

/* ---------- Footer ---------- */
.ev-footer { background: var(--ev-navy); color: rgba(255, 255, 255, .78); font-size: 15px; }
.ev-footer__grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.2fr; gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.ev-footer .ev-brand {
	background: #fff; border-radius: 14px; padding: 0 22px; margin-bottom: 22px;
}
.ev-footer .ev-brand { height: 76px; }
.ev-footer .ev-brand__logo { height: 130px; margin: 0 -30px; }
.ev-footer__tagline { max-width: 320px; line-height: 1.6; margin-bottom: 24px; }
.ev-footer__title { color: #fff; font-family: var(--ev-sans); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 6px 0 20px; }
.ev-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ev-footer__links li { display: flex; align-items: flex-start; gap: 10px; }
.ev-footer__links a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .2s ease; }
.ev-footer__links a:hover { color: var(--ev-coral); }
.ev-footer__contact .ev-icon { color: var(--ev-coral); margin-top: 4px; }
.ev-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px;
}
.ev-footer__bottom a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.ev-footer__bottom a:hover { color: #fff; }
@media (max-width: 960px) {
	.ev-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
	.ev-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.ev-footer__grid { grid-template-columns: 1fr; padding-top: 56px; }
}

/* Back to top */
.ev-totop {
	position: fixed; right: 22px; bottom: 22px; z-index: 800;
	display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
	border-radius: 12px; background: var(--ev-navy); color: #fff; box-shadow: 0 10px 24px rgba(11, 40, 95, .25);
	opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, background-color .2s ease;
}
.ev-totop.is-visible { opacity: 1; transform: none; }
.ev-totop:hover { background: var(--ev-coral); color: #fff; }

/* Mobile quick-contact bar */
.ev-mcta { display: none; }
@media (max-width: 767px) {
	.ev-mcta {
		display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 880;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .97); box-shadow: 0 -8px 24px rgba(11, 40, 95, .14);
		-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	}
	.ev-mcta a {
		flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
		height: 48px; border-radius: 999px; font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap;
	}
	.ev-mcta__call { border: 1.5px solid var(--ev-navy); color: var(--ev-navy); background: #fff; }
	.ev-mcta__call .ev-icon { color: var(--ev-coral); }
	.ev-mcta__est { background: var(--ev-coral); color: #fff; box-shadow: 0 6px 14px rgba(206, 138, 117, .35); }
	.ev-mcta__est:hover, .ev-mcta__est:focus { color: #fff; background: var(--ev-coral-2); }
	body.everly-theme { padding-bottom: 72px; padding-bottom: calc(68px + env(safe-area-inset-bottom)) !important; }
	.ev-totop { display: none !important; }
	.ev-nav-open .ev-mcta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation-duration: .01ms !important; }
}
