/* Advanton site design: a clean, modern look for the Genesis theme.
 * Everything is scoped to body.advh-design, which the plugin adds only when
 * "Modern site design" is on in Advanton Hub > Settings. Turn it off to restore the theme's own look. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/inter-800.woff2") format("woff2"); }

body.advh-design {
	--d-blue: #0a6ebd;
	--d-blue-dark: #075597;
	--d-sky: #0098d8;
	--d-red: #e5322d;
	--d-navy: #1b2a3a;
	--d-ink: #33475b;
	--d-muted: #5c7389;
	--d-line: #dfe3eb;
	--d-soft: #f5f8fa;
	--d-tint: #eaf4fb;
	--d-radius: 14px;
	--d-shadow: 0 1px 2px rgba(27, 42, 58, .06), 0 1px 3px rgba(27, 42, 58, .06);
	--d-shadow-lg: 0 14px 34px -12px rgba(27, 42, 58, .22);
	background: #fff;
	color: var(--d-ink);
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
body.advh-design ::selection { background: #cfe6f7; color: var(--d-navy); }

/* Typography */
body.advh-design h1, body.advh-design h2, body.advh-design h3,
body.advh-design h4, body.advh-design h5, body.advh-design h6 {
	color: var(--d-navy);
	font-family: inherit;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.2;
}
body.advh-design h3, body.advh-design h4 { font-weight: 700; letter-spacing: -.01em; }
:where(body.advh-design .entry-content) h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 2.2em 0 .6em; }
:where(body.advh-design .entry-content) h3 { font-size: clamp(1.2rem, 1.8vw, 1.35rem); margin: 1.8em 0 .5em; }
:where(body.advh-design .entry-content) h4 { font-size: 1.1rem; margin: 1.5em 0 .4em; }
:where(body.advh-design .entry-content) p,
:where(body.advh-design .entry-content) li { color: var(--d-ink); }
:where(body.advh-design .entry-content) strong { color: var(--d-navy); }

body.advh-design a { color: var(--d-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
body.advh-design a:hover, body.advh-design a:focus { color: var(--d-blue-dark); }
body.advh-design :focus-visible { outline: 3px solid rgba(0, 152, 216, .45); outline-offset: 2px; }

/* Header */
body.advh-design .site-header {
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: saturate(180%) blur(8px);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--d-line);
	box-shadow: none;
}
body.advh-design .site-header .wrap { max-width: 1240px; }
body.advh-design .site-title { font-size: 22px; font-weight: 800; letter-spacing: .04em; line-height: 1; }
body.advh-design .site-title a, body.advh-design .site-title a:hover { color: var(--d-navy); text-decoration: none; }
body.advh-design .site-description { color: var(--d-muted); font-size: 13px; }

/* Menu */
body.advh-design .genesis-nav-menu { font-size: 15px; font-weight: 600; }
body.advh-design .genesis-nav-menu a {
	color: var(--d-ink);
	text-decoration: none;
	border-radius: 8px;
}
body.advh-design .genesis-nav-menu > .menu-item > a { padding-left: 14px; padding-right: 14px; }
body.advh-design .genesis-nav-menu a:hover,
body.advh-design .genesis-nav-menu a:focus,
body.advh-design .genesis-nav-menu .current-menu-item > a,
body.advh-design .genesis-nav-menu .current-menu-ancestor > a,
body.advh-design .genesis-nav-menu .sub-menu .current-menu-item > a:hover { color: var(--d-blue); }
body.advh-design .genesis-nav-menu .current-menu-item > a,
body.advh-design .genesis-nav-menu .current-menu-ancestor > a { box-shadow: inset 0 -3px 0 var(--d-sky); border-radius: 0; }
body.advh-design .genesis-nav-menu .sub-menu {
	background: #fff;
	border: 1px solid var(--d-line);
	border-radius: 12px;
	box-shadow: var(--d-shadow-lg);
	padding: 8px;
}
body.advh-design .genesis-nav-menu .sub-menu a {
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: var(--d-ink);
	font-size: 14.5px;
	font-weight: 500;
	padding: 10px 14px;
}
body.advh-design .genesis-nav-menu .sub-menu a:hover { background: var(--d-soft); color: var(--d-blue); }
body.advh-design .genesis-nav-menu .sub-menu,
body.advh-design .genesis-nav-menu .sub-menu a { width: 250px; }
body.advh-design .genesis-nav-menu .sub-menu .sub-menu { margin-top: -8px; }

/* Call-to-action menu item (the plugin marks Website Builder with this class) */
body.advh-design .genesis-nav-menu > .advh-menu-cta > a {
	background: var(--d-blue);
	border-radius: 8px;
	box-shadow: 0 6px 16px -8px rgba(10, 110, 189, .7);
	color: #fff;
	margin-left: 6px;
	margin-right: 6px;
}
body.advh-design .genesis-nav-menu > .advh-menu-cta > a:hover,
body.advh-design .genesis-nav-menu > .advh-menu-cta > a:focus { background: var(--d-blue-dark); color: #fff; }
body.advh-design .genesis-nav-menu > .advh-menu-cta.current-menu-item > a { box-shadow: 0 6px 16px -8px rgba(10, 110, 189, .7); border-radius: 8px; }

/* Desktop header: logo and menu on one line.
 * The header becomes a flexible row (logo left, menu right). If the menu is too long for the
 * space, its items wrap on the right instead of the whole menu dropping below the logo. */
@media (min-width: 960px) {
	body.advh-design .site-header .wrap {
		align-items: center;
		display: flex;
		flex-wrap: nowrap;
		gap: 24px;
		justify-content: space-between;
		max-width: 1320px;
	}
	body.advh-design .site-header .wrap::before,
	body.advh-design .site-header .wrap::after { display: none; }
	body.advh-design .site-header .title-area { flex: 0 0 auto; float: none; margin: 0; max-width: none; padding: 18px 0; width: auto; }
	body.advh-design .site-header .nav-primary,
	body.advh-design .site-header .widget-area.header-widget-area { clear: none; flex: 1 1 auto; float: none; margin: 0; min-width: 0; padding: 0; width: auto; }
	body.advh-design .site-header .nav-primary .wrap { display: block; max-width: none; padding: 0; }
	body.advh-design .site-header .genesis-nav-menu {
		align-items: center;
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		margin: 0;
		row-gap: 2px;
		width: auto;
	}
	body.advh-design .site-header .genesis-nav-menu::before,
	body.advh-design .site-header .genesis-nav-menu::after { display: none; }
	body.advh-design .site-header .genesis-nav-menu > .menu-item { float: none; position: relative; }
	body.advh-design .genesis-nav-menu > .menu-item > a { font-size: 14.5px; padding: 22px 11px; }
	body.advh-design .genesis-nav-menu > .advh-menu-cta > a { padding: 9px 16px; }
	body.advh-design .genesis-nav-menu .sub-menu { left: 0; top: 100%; }
}
@media (min-width: 960px) and (max-width: 1180px) {
	body.advh-design .genesis-nav-menu > .menu-item > a { font-size: 14px; padding-left: 8px; padding-right: 8px; }
	body.advh-design .site-title { font-size: 20px; }
}

/* Mobile menu button (Genesis responsive menu) */
body.advh-design .menu-toggle,
body.advh-design .sub-menu-toggle {
	background: var(--d-soft);
	border: 1px solid var(--d-line);
	border-radius: 8px;
	color: var(--d-navy);
	font-weight: 600;
}
body.advh-design .menu-toggle:hover, body.advh-design .menu-toggle:focus,
body.advh-design .sub-menu-toggle:hover, body.advh-design .sub-menu-toggle:focus { background: var(--d-tint); color: var(--d-blue); }

/* Layout */
body.advh-design .site-inner { max-width: 1240px; }

/* Posts on blog, category, tag and search pages: cards with the image on top */
body.advh-design.blog .content .entry,
body.advh-design.archive .content .entry,
body.advh-design.search .content .entry {
	background: #fff;
	border: 1px solid var(--d-line);
	border-radius: 18px;
	box-shadow: var(--d-shadow);
	margin-bottom: 32px;
	padding: 30px 34px 22px;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
body.advh-design.blog .content .entry:hover,
body.advh-design.archive .content .entry:hover,
body.advh-design.search .content .entry:hover { border-color: #cbd6e2; box-shadow: var(--d-shadow-lg); transform: translateY(-2px); }
body.advh-design .entry-image-link { display: block; margin: 0 0 18px; }
body.advh-design .entry-image-link img,
body.advh-design .entry-image-link .alignleft,
body.advh-design .entry-image-link .alignright,
body.advh-design .entry-image-link .aligncenter {
	border-radius: 12px;
	display: block;
	float: none;
	height: auto;
	margin: 0;
	width: 100%;
}
body.advh-design.blog .entry-title, body.advh-design.archive .entry-title, body.advh-design.search .entry-title { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 6px; }
body.advh-design .entry-title a { color: var(--d-navy); text-decoration: none; }
body.advh-design .entry-title a:hover { color: var(--d-blue); }
body.advh-design .entry-meta { color: var(--d-muted); font-size: 14px; }
body.advh-design .entry-meta a { color: var(--d-muted); }
body.advh-design .entry-footer .entry-meta { border-top: 1px solid var(--d-line); padding-top: 14px; }
body.advh-design .entry-categories a,
body.advh-design .entry-tags a {
	background: var(--d-tint);
	border-radius: 999px;
	color: var(--d-blue-dark);
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	margin: 2px 2px;
	padding: 3px 11px;
	text-decoration: none;
}
body.advh-design .entry-categories a:hover, body.advh-design .entry-tags a:hover { background: #d6eaf8; color: var(--d-blue-dark); }
body.advh-design .more-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
body.advh-design .more-link::after { content: " \2192"; }

/* Single posts and pages */
body.advh-design.single .entry-title,
body.advh-design.page .entry-title { font-size: clamp(2rem, 4vw, 2.85rem); letter-spacing: -.025em; line-height: 1.15; margin-bottom: 12px; }
:where(body.advh-design .entry-content) img { border-radius: 12px; height: auto; }
:where(body.advh-design .entry-content) figure figcaption,
:where(body.advh-design .entry-content) .wp-caption-text { color: var(--d-muted); font-size: 14px; text-align: center; }
:where(body.advh-design .entry-content) ul li::marker,
:where(body.advh-design .entry-content) ol li::marker { color: var(--d-sky); font-weight: 700; }
:where(body.advh-design .entry-content) blockquote,
:where(body.advh-design .entry-content) .wp-block-quote {
	background: var(--d-tint);
	border: 0;
	border-left: 4px solid var(--d-sky);
	border-radius: 0 12px 12px 0;
	color: var(--d-navy);
	margin: 1.6em 0;
	padding: 18px 26px;
}
:where(body.advh-design .entry-content) blockquote::before { display: none; }
:where(body.advh-design .entry-content) blockquote p { color: var(--d-navy); font-size: 1.05em; font-style: normal; margin: 0; }
:where(body.advh-design .entry-content) code { background: var(--d-soft); border: 1px solid var(--d-line); border-radius: 6px; font-size: .9em; padding: 1px 6px; }
:where(body.advh-design .entry-content) hr { border: 0; border-top: 1px solid var(--d-line); margin: 2.5em 0; }

/* Tables */
:where(body.advh-design .entry-content) table {
	border: 1px solid var(--d-line);
	border-collapse: separate;
	border-radius: 12px;
	border-spacing: 0;
	font-size: 15.5px;
	line-height: 1.55;
	margin: 1.5em 0;
	overflow: hidden;
	width: 100%;
}
:where(body.advh-design .entry-content) th {
	background: var(--d-soft);
	color: var(--d-navy);
	font-weight: 700;
	text-align: left;
}
:where(body.advh-design .entry-content) th,
:where(body.advh-design .entry-content) td { border: 0; border-bottom: 1px solid var(--d-line); padding: 12px 16px; vertical-align: top; }
:where(body.advh-design .entry-content) tr:last-child td { border-bottom: 0; }
:where(body.advh-design .entry-content) tbody tr:nth-child(even) td { background: #fafcfd; }

/* Buttons */
body.advh-design .button,
body.advh-design a.button,
body.advh-design .wp-block-button__link,
body.advh-design input[type="submit"],
body.advh-design .search-form-submit,
body.advh-design .comment-respond input[type="submit"] {
	background: var(--d-blue);
	border: 0;
	border-radius: 8px;
	box-shadow: 0 8px 18px -10px rgba(10, 110, 189, .8);
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.3;
	padding: 13px 24px;
	text-decoration: none;
	white-space: normal;
}
body.advh-design .button:hover,
body.advh-design a.button:hover,
body.advh-design .wp-block-button__link:hover,
body.advh-design input[type="submit"]:hover,
body.advh-design .search-form-submit:hover { background: var(--d-blue-dark); color: #fff; transform: translateY(-1px); }
body.advh-design .is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid var(--d-blue);
	box-shadow: none;
	color: var(--d-blue);
}
body.advh-design .is-style-outline .wp-block-button__link:hover { background: var(--d-tint); color: var(--d-blue-dark); }

/* Form fields in the sidebar, footer, search and comments */
body.advh-design .sidebar input[type="text"], body.advh-design .sidebar input[type="email"], body.advh-design .sidebar input[type="search"],
body.advh-design .sidebar input[type="tel"], body.advh-design .sidebar input[type="url"], body.advh-design .sidebar textarea, body.advh-design .sidebar select,
body.advh-design .footer-widgets input[type="text"], body.advh-design .footer-widgets input[type="email"], body.advh-design .footer-widgets input[type="search"],
body.advh-design .search-form-input,
body.advh-design .comment-respond input[type="text"], body.advh-design .comment-respond input[type="email"], body.advh-design .comment-respond input[type="url"],
body.advh-design .comment-respond textarea {
	background: #fff;
	border: 1px solid #cbd6e2;
	border-radius: 8px;
	color: var(--d-navy);
	font-family: inherit;
	font-size: 16px;
	padding: 12px 14px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
body.advh-design .sidebar input:focus, body.advh-design .sidebar textarea:focus, body.advh-design .sidebar select:focus,
body.advh-design .footer-widgets input:focus, body.advh-design .search-form-input:focus,
body.advh-design .comment-respond input:focus, body.advh-design .comment-respond textarea:focus {
	border-color: var(--d-blue);
	box-shadow: 0 0 0 3px rgba(10, 110, 189, .15);
	outline: none;
}
body.advh-design .search-form { display: flex; gap: 8px; }
body.advh-design .search-form-input { flex: 1; min-width: 0; }

/* Sidebar widgets as cards */
body.advh-design .sidebar .widget {
	background: #fff;
	border: 1px solid var(--d-line);
	border-radius: 16px;
	box-shadow: var(--d-shadow);
	margin-bottom: 24px;
	padding: 24px 24px 18px;
}
body.advh-design .sidebar .widget_search { padding: 18px; }
body.advh-design .sidebar .widget-title { color: var(--d-navy); font-size: 17px; font-weight: 700; margin-bottom: 14px; }
body.advh-design .sidebar ul { margin: 0; padding: 0; }
body.advh-design .sidebar li { border-bottom: 1px solid var(--d-line); list-style: none; margin: 0; padding: 9px 0; }
body.advh-design .sidebar li:last-child { border-bottom: 0; }
body.advh-design .sidebar li a { color: var(--d-ink); font-weight: 500; text-decoration: none; }
body.advh-design .sidebar li a:hover { color: var(--d-blue); }
body.advh-design .sidebar p { font-size: 15.5px; }

/* Pagination */
body.advh-design .archive-pagination li a {
	background: #fff;
	border: 1px solid var(--d-line);
	border-radius: 8px;
	color: var(--d-ink);
	font-weight: 600;
	text-decoration: none;
}
body.advh-design .archive-pagination li a:hover,
body.advh-design .archive-pagination li.active a { background: var(--d-blue); border-color: var(--d-blue); color: #fff; }

/* Footer widgets: dark navy, like HubSpot's footer */
body.advh-design .footer-widgets {
	background: var(--d-navy);
	border-top: 0;
	color: #c7d3e0;
	font-size: 15.5px;
	padding: 64px 0 40px;
}
body.advh-design .footer-widgets .wrap { max-width: 1240px; }
body.advh-design .footer-widgets .widget-title { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .02em; margin-bottom: 14px; text-transform: none; }
body.advh-design .footer-widgets p, body.advh-design .footer-widgets li { color: #c7d3e0; }
body.advh-design .footer-widgets a { color: #e6eef6; text-decoration: none; }
body.advh-design .footer-widgets a:hover { color: #fff; text-decoration: underline; }
body.advh-design .footer-widgets ul { margin: 0; padding: 0; }
body.advh-design .footer-widgets li { list-style: none; margin: 0 0 8px; }
body.advh-design .footer-widgets img { opacity: .9; }

body.advh-design .site-footer {
	background: #142130;
	border-top: 1px solid rgba(255, 255, 255, .06);
	color: #93a5b8;
	font-size: 14px;
	padding: 22px 0;
}
body.advh-design .site-footer a { color: #c7d3e0; text-decoration: none; }
body.advh-design .site-footer a:hover { color: #fff; text-decoration: underline; }

/* Small screens */
@media (max-width: 959px) {
	body.advh-design { font-size: 16.5px; }
	body.advh-design.blog .content .entry,
	body.advh-design.archive .content .entry,
	body.advh-design.search .content .entry { padding: 22px 20px 16px; }
	body.advh-design .genesis-nav-menu > .advh-menu-cta > a { display: inline-block; margin: 6px 0; }
	body.advh-design .genesis-nav-menu .current-menu-item > a,
	body.advh-design .genesis-nav-menu .current-menu-ancestor > a { box-shadow: inset 3px 0 0 var(--d-sky); }
	body.advh-design .footer-widgets { padding: 44px 0 28px; }
}

@media (prefers-reduced-motion: reduce) {
	body.advh-design *, body.advh-design *::before, body.advh-design *::after { transition: none !important; }
	body.advh-design .entry:hover, body.advh-design .button:hover, body.advh-design .wp-block-button__link:hover { transform: none !important; }
}

/* Dropdowns of the last two top-level items open toward the left, so they stay on screen. */
@media (min-width: 960px) {
	body.advh-design .site-header .genesis-nav-menu > .menu-item:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
	body.advh-design .site-header .genesis-nav-menu > .menu-item:nth-last-child(-n+2) .sub-menu .sub-menu { left: auto; right: 100%; }
}


/* ===== Full-width layout (1.29.0): no sidebar. Tools use the full width; reading pages keep a comfortable measure. ===== */
/* Full width everywhere (1.30.0): articles span the page like tools do. */
body.advh-design.full-width-content .content .entry { max-width: none; margin-left: 0; margin-right: 0; }
/* Blog, category, tag and search pages: article cards in two columns. */
@media (min-width: 900px) {
	body.advh-design.full-width-content:is(.blog, .archive, .search) .content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-content: start; }
	body.advh-design.full-width-content:is(.blog, .archive, .search) .content > * { grid-column: 1 / -1; }
	body.advh-design.full-width-content:is(.blog, .archive, .search) .content > .entry { grid-column: auto; max-width: none; margin: 0; height: 100%; }
	body.advh-design.full-width-content:is(.blog, .archive, .search) .content > .archive-description { max-width: none; }
}
body.advh-design.full-width-content .content-sidebar-wrap, body.advh-design.full-width-content .content { width: 100%; max-width: 100%; float: none; margin-left: 0; margin-right: 0; }
