/* ==========================================================================
   Falcons and Allies — base.css  (v3.2)
   A modern typographic base for Enfold, modelled on the Uncode demos.

   Values come from Uncode itself: its core stylesheet (9px vertical rhythm)
   and the computed styles of ten live demos, weighted to the current
   2024–25 style (Classic SaaS, Innovators, Venture, Hotel, Consultants,
   Creative Stack and others): large light-to-medium headings with tracking
   that tightens as size grows (to −0.05em), 17px body text, pill buttons
   at 17px, and 12px uppercase labels at 0.2em.

   How it plays with Enfold
   - TYPE, SPACING and SHAPE are set here. COLOUR is left to Enfold's colour
     sets (Theme Options > General Styling / Advanced Styling), so Main,
     Alternate, Header, Footer and Socket sections keep working. The readme
     lists the Uncode palette to enter there.
   - Rules are scoped to #top (Enfold's <body id="top">): they beat Enfold's
     generic styles but lose to settings on an individual builder element
     and to Enfold's Quick CSS (which prints after this file).
   - Only font-family uses !important (Enfold writes fonts across many
     high-specificity selectors).

   Change the look by editing the tokens in section 00, or override them in
   Quick CSS:   :root { --emc-heading-weight: 800; }

   Contents
   00 Tokens
   01 Global text
   02 Headings & size utilities
   03 Links, inline elements, selection, focus
   04 Lists, blockquote, hr, details, code, tables, media
   05 Forms
   06 Buttons
   07 Header & navigation
   08 Title bar & breadcrumbs
   09 Section spacing
   10 Layout Builder elements
   11 Sidebar, footer & socket
   12 Utility classes
   13 Reduced motion
   ========================================================================== */


/* 00 Tokens ---------------------------------------------------------------- */
:root {
	/* Fonts — keep in sync with emc_fonts_url() in functions.php.
	   Demo fonts: Instrument Sans, Inter, Fraunces, Instrument Serif,
	   Plus Jakarta Sans, Public Sans. */
	--emc-font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--emc-font-heading: var(--emc-font-body);
	--emc-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

	/* Body text (current demos: 17–18px body, 20–24px lead) */
	--emc-text-size: 17px;
	--emc-lead-size: clamp(19px, 17px + 0.5vw, 22px);
	--emc-small-size: 14px;
	--emc-text-line-height: 1.6;
	--emc-text-weight: 400;
	--emc-bold-weight: 600;

	/* Headings — fluid between phone and desktop.
	   Desktop sizes follow the demos: 125 / 80 / 60 / 38 / 28 / 21px.      */
	--emc-display-size: clamp(52px, 28px + 7.4vw, 125px);   /* .emc-display hero */
	--emc-h1-size: clamp(42px, 24px + 4.6vw, 80px);
	--emc-h2-size: clamp(34px, 22px + 3vw, 60px);
	--emc-h3-size: clamp(26px, 19px + 1.6vw, 38px);
	--emc-h4-size: clamp(21px, 17px + 0.9vw, 28px);
	--emc-h5-size: 21px;
	--emc-h6-size: 12px;                                     /* label style */

	--emc-heading-weight: 500;          /* demos range 300 (light) to 800 (heavy) */
	--emc-heading-line-height: 1.12;
	--emc-heading-small-line-height: 1.35; /* h4, h5 and small titles */
	--emc-display-tracking: -0.05em;    /* tracking tightens as size grows */
	--emc-heading-tracking: -0.04em;    /* h1–h3 */
	--emc-heading-small-tracking: -0.02em; /* h4, h5 and small titles */
	--emc-label-tracking: 0.2em;        /* h6 and .emc-label: uppercase kickers */
	--emc-label-weight: 600;

	/* Vertical rhythm — Uncode's 9px grid */
	--emc-space-xs: 9px;
	--emc-space-s: 18px;                /* paragraph gap */
	--emc-space-m: 27px;                /* gap above a heading */
	--emc-space-l: 36px;
	--emc-space-xl: 54px;

	/* Shape */
	--emc-radius-button: 999px;         /* pill, as the demos; 2px for square */
	--emc-radius-input: 2px;
	--emc-radius-card: 12px;
	--emc-radius-media: 0px;
	--emc-border: 1px solid color-mix(in srgb, currentColor 14%, transparent);

	/* Buttons (current demos: 17–18px, about 20px × 30px, pill) */
	--emc-button-size: 17px;
	--emc-button-weight: 600;
	--emc-button-tracking: -0.02em;
	--emc-button-padding-y: 18px;
	--emc-button-padding-x: 32px;

	/* Inputs */
	--emc-input-height: 54px;
	--emc-input-padding-x: 18px;

	/* Readable line length */
	--emc-measure: 680px;

	/* Section padding (Color Section > Section Padding) */
	--emc-section-small:   clamp(36px, 24px + 3vw, 54px);
	--emc-section-default: clamp(54px, 30px + 6vw, 108px);
	--emc-section-large:   clamp(72px, 36px + 9vw, 144px);
	--emc-section-huge:    clamp(90px, 40px + 13vw, 216px);
	--emc-element-gap: 36px;            /* space between stacked builder elements */

	/* Motion */
	--emc-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--emc-speed: 0.3s;
}


/* 01 Global text ---------------------------------------------------------- */
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

#top,
#top .main_color,
#top .alternate_color,
#top .header_color,
#top .footer_color,
#top .socket_color,
#top input,
#top textarea,
#top select,
#top button {
	font-family: var(--emc-font-body) !important;
}

#top {
	font-size: var(--emc-text-size);
	font-weight: var(--emc-text-weight);
	line-height: var(--emc-text-line-height);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-optical-sizing: auto;
}

/* Enfold sets body copy at 13–14px in several wrappers */
#top .entry-content-wrapper,
#top .avia_textblock,
#top .av_textblock_section,
#top .post-entry,
#top .entry-content {
	font-size: var(--emc-text-size);
	line-height: var(--emc-text-line-height);
}

#top p,
#top address {
	margin: 0 0 var(--emc-space-s);
	padding: 0;
}

#top address { font-style: normal; }

#top :is(.avia_textblock, .entry-content, .iconbox_content_container, .av_iconlist_content, .toggle_content, .tab_inner_content, blockquote) > :last-child {
	margin-bottom: 0;
}


/* 02 Headings & size utilities ------------------------------------------- */
#top :is(h1, h2, h3, h4, h5, h6),
#top :is(.av-special-heading-tag, .title_container .main-title, .iconbox_content_title, .av_iconlist_title,
	.toggler, .tabcontainer .tab, .avia-testimonial-name, .team-member-name, .avia-animated-number-title,
	.slide-entry-title, .av-magazine-title, .avia-caption-title, .pricing-table li.avia-heading-row,
	.widgettitle, .emc-display) {
	font-family: var(--emc-font-heading) !important;
}

#top :is(h1, h2, h3, h4, h5, h6) {
	margin: 0 0 var(--emc-space-s);
	padding: 0;
	font-weight: var(--emc-heading-weight);
	line-height: var(--emc-heading-line-height);
	letter-spacing: var(--emc-heading-tracking);
	text-transform: none;
	text-wrap: balance;
}

#top h1, #top .emc-h1 { font-size: var(--emc-h1-size); line-height: 1.05; letter-spacing: calc((var(--emc-heading-tracking) + var(--emc-display-tracking)) / 2); }
#top h2, #top .emc-h2 { font-size: var(--emc-h2-size); }
#top h3, #top .emc-h3 { font-size: var(--emc-h3-size); }
#top h4, #top .emc-h4 { font-size: var(--emc-h4-size); line-height: var(--emc-heading-small-line-height); letter-spacing: var(--emc-heading-small-tracking); }
#top h5, #top .emc-h5 { font-size: var(--emc-h5-size); line-height: var(--emc-heading-small-line-height); letter-spacing: var(--emc-heading-small-tracking); }

/* h6 is the small uppercase label used above headings across the demos */
#top h6, #top .emc-h6 {
	font-size: var(--emc-h6-size);
	font-weight: var(--emc-label-weight);
	line-height: 1.5;
	letter-spacing: var(--emc-label-tracking);
	text-transform: uppercase;
}

/* Heading after body content gets extra space above, as Uncode */
#top :is(.avia_textblock, .entry-content, .toggle_content, .tab_inner_content) :is(p, ul, ol, dl, blockquote, table, figure, pre, details) + :is(h1, h2, h3, h4, h5) {
	margin-top: var(--emc-space-l);
}

#top :is(h1, h2, h3, h4, h5, h6) a { color: inherit; text-decoration: none; }

#top .emc-lead,
#top .emc-lead p { font-size: var(--emc-lead-size); line-height: var(--emc-text-line-height); }

#top small,
#top .emc-small,
#top .emc-small p { font-size: var(--emc-small-size); }


/* 03 Links, inline elements, selection, focus ----------------------------- */
#top :is(.avia_textblock, .entry-content, .toggle_content, .tab_content, .iconbox_content_container, .av_iconlist_content) a:not(.avia-button):not(.button):not(.emc-arrow) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
	transition: color var(--emc-speed) var(--emc-ease), text-decoration-color var(--emc-speed) var(--emc-ease);
}

#top :is(.avia_textblock, .entry-content, .toggle_content, .tab_content, .iconbox_content_container, .av_iconlist_content) a:not(.avia-button):not(.button):not(.emc-arrow):hover {
	text-decoration-color: currentColor;
}

#top strong, #top b { font-weight: var(--emc-bold-weight); }
#top abbr[title] { border-bottom: 0; text-decoration: underline dotted; cursor: help; }
#top mark { padding: 0.05em 0.25em; border-radius: 2px; background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; }
#top del { opacity: 0.7; }
#top ins { text-decoration: none; border-bottom: 1px solid currentColor; }
#top cite { font-style: normal; }

#top sub, #top sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; }
#top sub { bottom: -0.25em; }
#top sup { top: -0.5em; }

#top ::selection { background: color-mix(in srgb, currentColor 16%, transparent); }

#top :focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}


/* 04 Lists, blockquote, hr, details, code, tables, media ----------------- */
#top :is(.avia_textblock, .entry-content, .toggle_content, .tab_content) :is(ul, ol) {
	margin: 0 0 var(--emc-space-s);
	padding: 0 0 0 1.25em;
}

#top :is(.avia_textblock, .entry-content, .toggle_content, .tab_content) ul { list-style: disc outside; }
#top :is(.avia_textblock, .entry-content, .toggle_content, .tab_content) ol { list-style: decimal outside; }

#top :is(.avia_textblock, .entry-content, .toggle_content, .tab_content) li { margin: 0 0 4px; padding: 0; }
#top :is(.avia_textblock, .entry-content, .toggle_content, .tab_content) li::marker { color: color-mix(in srgb, currentColor 50%, transparent); }
#top :is(.avia_textblock, .entry-content) li > :is(ul, ol) { margin: 4px 0 0; }

#top .emc-unstyled { padding-left: 0 !important; list-style: none !important; }

#top dl { margin: 0 0 var(--emc-space-s); padding: 0; }
#top dt { margin: 0; font-weight: var(--emc-bold-weight); }
#top dd { margin: 0 0 var(--emc-space-s); padding: 0; }
#top dd:last-child { margin-bottom: 0; }

/* Blockquote — large heading-font text, light rule, em-dash citation */
#top blockquote {
	margin: var(--emc-space-l) 0;
	padding: 0 0 0 var(--emc-space-s);
	border-left: 2px solid color-mix(in srgb, currentColor 22%, transparent);
	font-family: var(--emc-font-heading);
	font-size: clamp(22px, 16px + 1.4vw, 32px);
	font-style: normal;
	font-weight: var(--emc-text-weight);
	line-height: 1.45;
	letter-spacing: -0.02em;
}

#top blockquote p { margin-bottom: var(--emc-space-xs); font-size: inherit; line-height: inherit; }

#top blockquote cite,
#top blockquote footer {
	display: block;
	margin-top: var(--emc-space-s);
	font-family: var(--emc-font-body);
	font-size: var(--emc-small-size);
	letter-spacing: 0;
	opacity: 0.7;
}

#top blockquote cite::before { content: "\2014\00A0"; }

/* hr & Enfold Separator */
#top hr {
	height: 0;
	margin: var(--emc-space-l) 0;
	padding: 0;
	border: 0;
	border-top: var(--emc-border);
	background: none;
}

#top :is(.hr-default, .hr-full, .hr-big) .hr-inner { border-top-color: color-mix(in srgb, currentColor 14%, transparent); }
#top .hr-short .hr-inner { width: 54px; border-top-width: 2px; }
#top .hr-short .hr-inner-style { display: none; }

/* details / summary */
#top details { margin: 0 0 var(--emc-space-s); }
#top summary { display: list-item; cursor: pointer; font-weight: var(--emc-bold-weight); }
#top details[open] summary { margin-bottom: var(--emc-space-xs); }

/* Code */
#top :is(code, kbd, samp, pre) { font-family: var(--emc-font-mono); font-size: 0.875em; }

#top :not(pre) > code,
#top kbd {
	padding: 0.15em 0.4em;
	border: var(--emc-border);
	border-radius: 3px;
	background: color-mix(in srgb, currentColor 5%, transparent);
}

#top kbd kbd { padding: 0; border: 0; background: none; font-weight: var(--emc-bold-weight); }

#top pre {
	margin: 0 0 var(--emc-space-s);
	padding: var(--emc-space-s) 24px;
	border: var(--emc-border);
	border-radius: var(--emc-radius-input);
	background: color-mix(in srgb, currentColor 3%, transparent);
	line-height: 1.6;
	overflow-x: auto;
	white-space: pre;
	box-shadow: none;
}

#top pre code { padding: 0; border: 0; background: none; font-size: inherit; }

/* Tables — basic and the Enfold Table element (not pricing tables) */
#top table:not(.pricing-table),
#top .avia-table.avia-data-table {
	width: 100%;
	margin: 0 0 var(--emc-space-s);
	border: 0;
	border-collapse: collapse;
	background: transparent;
	font-size: var(--emc-text-size);
	line-height: 1.5;
}

#top table:not(.pricing-table) :is(th, td),
#top .avia-data-table :is(th, td) {
	padding: var(--emc-space-s) var(--emc-space-s) var(--emc-space-s) 0;
	border: 0;
	border-bottom: var(--emc-border);
	background: transparent;
	text-align: left;
	vertical-align: top;
}

#top table:not(.pricing-table) th,
#top .avia-data-table th,
#top .avia-data-table .avia-heading-row :is(th, td) {
	font-weight: var(--emc-bold-weight);
	text-transform: none;
	letter-spacing: 0;
	border-bottom-color: color-mix(in srgb, currentColor 35%, transparent);
}

#top .avia-data-table tr:nth-child(odd) td,
#top .avia-data-table tr:nth-child(even) td { background: transparent; }

#top table caption {
	caption-side: bottom;
	padding-top: var(--emc-space-xs);
	font-size: var(--emc-small-size);
	text-align: left;
	opacity: 0.7;
}

/* Media */
#top :is(.avia_textblock, .entry-content, .avia-image-container) img { border-radius: var(--emc-radius-media); }
#top figure { margin: 0 0 var(--emc-space-s); }

#top figcaption,
#top .wp-caption-text {
	margin-top: var(--emc-space-xs);
	font-size: 12px;
	line-height: 1.5;
	text-align: left;
	opacity: 0.7;
}

#top .wp-caption { padding: 0; border: 0; background: transparent; }


/* 05 Forms -----------------------------------------------------------------
   Shape and size only; field colours come from Enfold's colour sets.        */
#top :is(
	input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
	input[type="url"], input[type="number"], input[type="search"], input[type="date"],
	input[type="time"], input[type="month"], input[type="week"], input[type="datetime-local"],
	select, textarea
) {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	border-width: 1px;
	border-style: solid;
	border-radius: var(--emc-radius-input);
	box-shadow: none;
	font-size: max(16px, var(--emc-text-size));   /* 16px+ stops iOS zooming in */
	line-height: 1.5;
	transition: border-color var(--emc-speed) var(--emc-ease), box-shadow var(--emc-speed) var(--emc-ease);
}

#top :is(
	input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
	input[type="url"], input[type="number"], input[type="search"], input[type="date"],
	input[type="time"], input[type="month"], input[type="week"], input[type="datetime-local"],
	select:not([multiple])
) {
	height: var(--emc-input-height);
	padding: 0 var(--emc-input-padding-x);
}

#top textarea {
	min-height: 160px;
	padding: 12px var(--emc-input-padding-x);
	resize: vertical;
}

#top select:not([multiple]) {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23777' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right var(--emc-input-padding-x) center;
	background-size: 12px 8px;
}

#top :is(input, select, textarea):focus {
	outline: none;
	border-color: currentColor;
	box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 12%, transparent);
}

#top ::placeholder { opacity: 0.6; }

#top :is(.main_color, .alternate_color) :is(input, select, textarea):is(:disabled, [readonly]) {
	opacity: 0.55;
	cursor: not-allowed;
}

#top .avia_ajax_form .error :is(input, textarea, select),
#top :is(input, textarea, select):user-invalid {
	border-color: #d93025;
}

#top label,
#top .avia_ajax_form label {
	display: block;
	margin: 0 0 var(--emc-space-xs);
	font-size: var(--emc-text-size);
	font-weight: var(--emc-bold-weight);
	line-height: 1.4;
}

#top label:has(> input[type="checkbox"], > input[type="radio"]),
#top .avia_ajax_form .input_checkbox_label {
	display: inline-block;
	margin-right: var(--emc-space-s);
	font-weight: var(--emc-text-weight);
}

#top input[type="checkbox"],
#top input[type="radio"] {
	width: 16px;
	height: 16px;
	margin: 0 8px 0 0;
	vertical-align: -0.15em;
	accent-color: currentColor;
}

#top fieldset { min-width: 0; margin: 0 0 var(--emc-space-s); padding: 0; border: 0; }

#top legend {
	margin: 0 0 var(--emc-space-s);
	padding: 0;
	font-family: var(--emc-font-heading);
	font-size: var(--emc-h5-size);
	font-weight: var(--emc-heading-weight);
	letter-spacing: var(--emc-heading-small-tracking);
}

#top .avia_ajax_form :is(p, .form_element_half, .form_element_third, .form_element_two_third) { margin-bottom: var(--emc-space-s); }


/* 06 Buttons ---------------------------------------------------------------
   Shape and type only — Enfold's button colour options still apply.        */
#top .avia-button,
#top .avia_ajax_form .button,
#top input[type="submit"],
#top input[type="reset"],
#top button.button,
#top a.button,
#top .more-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	margin: 0;
	padding: var(--emc-button-padding-y) var(--emc-button-padding-x);
	border-radius: var(--emc-radius-button);
	font-family: var(--emc-font-body) !important;
	font-size: var(--emc-button-size);
	font-weight: var(--emc-button-weight);
	line-height: 1.2;
	letter-spacing: var(--emc-button-tracking);
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
	transition:
		background-color var(--emc-speed) var(--emc-ease),
		border-color var(--emc-speed) var(--emc-ease),
		color var(--emc-speed) var(--emc-ease),
		transform var(--emc-speed) var(--emc-ease);
}

/* Enfold sizes: small < medium (Uncode default) < large < x-large */
#top .avia-button.avia-size-small   { padding: 12px 22px; font-size: 14px; }
#top .avia-button.avia-size-medium  { padding: var(--emc-button-padding-y) var(--emc-button-padding-x); }
#top .avia-button.avia-size-large   { padding: 21px 38px; font-size: 19px; }
#top .avia-button.avia-size-x-large { padding: 24px 46px; font-size: 22px; }

#top .avia-button.avia-button-fullwidth { display: flex; width: 100%; }
#top .avia-button :is(.avia_button_icon, .avia_iconbox_title) { position: static; margin: 0; line-height: 1; }

#top :is(.avia_ajax_form .button, input[type="submit"]) { border: 0; min-height: var(--emc-input-height); }

#top .avia-button:hover,
#top :is(.avia_ajax_form .button, input[type="submit"], a.button):hover { transform: translateY(-1px); }
#top .avia-button:active { transform: none; }

#top :is(.avia-button, .button, input[type="submit"], button):is(:disabled, [aria-disabled]) {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
}

/* Button > Custom CSS Class "emc-link": text link with arrow */
#top .emc-link .avia-button,
#top .avia-button.emc-link {
	padding-left: 0;
	padding-right: 0;
	border-color: transparent !important;
	background: transparent !important;
	color: inherit;
}

#top .emc-link .avia-button::after,
#top .avia-button.emc-link::after {
	content: "\27F6";
	transition: transform var(--emc-speed) var(--emc-ease);
}

#top .emc-link .avia-button:hover,
#top .avia-button.emc-link:hover { transform: none; opacity: 0.75; }

#top .emc-link .avia-button:hover::after,
#top .avia-button.emc-link:hover::after { transform: translateX(4px); }


/* 07 Header & navigation (Uncode menus: 600 weight) ----------------------- */
#top .av-main-nav > li > a {
	font-size: 16px;
	font-weight: var(--emc-button-weight);
	letter-spacing: var(--emc-button-tracking);
	text-transform: none;
}

#top .av-main-nav ul {
	padding: var(--emc-space-xs) 0;
	border-width: 1px;
	border-radius: 8px;
	box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}

#top .av-main-nav ul a {
	padding: 8px 20px;
	border: 0;
	font-size: 14px;
	font-weight: var(--emc-text-weight);
	line-height: 1.4;
}

#top #header_meta,
#top #header_meta .sub_menu > ul > li > a,
#top #header_meta .phone-info { font-size: 12px; }

#top #av-burger-menu-ul li a {
	font-family: var(--emc-font-heading) !important;
	font-weight: var(--emc-heading-weight);
	letter-spacing: var(--emc-heading-small-tracking);
}


/* 08 Title bar & breadcrumbs --------------------------------------------- */
#top .title_container .main-title {
	font-size: var(--emc-h4-size);
	font-weight: var(--emc-heading-weight);
	line-height: 1.3;
	letter-spacing: var(--emc-heading-small-tracking);
}

#top .title_container .breadcrumb { font-size: 12px; }


/* 09 Section spacing ------------------------------------------------------ */
#top .avia-section.avia-section-small   :is(.content, .sidebar) { padding-top: var(--emc-section-small);   padding-bottom: var(--emc-section-small); }
#top .avia-section.avia-section-default :is(.content, .sidebar) { padding-top: var(--emc-section-default); padding-bottom: var(--emc-section-default); }
#top .avia-section.avia-section-large   :is(.content, .sidebar) { padding-top: var(--emc-section-large);   padding-bottom: var(--emc-section-large); }
#top .avia-section.avia-section-huge    :is(.content, .sidebar) { padding-top: var(--emc-section-huge);    padding-bottom: var(--emc-section-huge); }

#top .container_wrap_first > .container > .content {
	padding-top: var(--emc-section-small);
	padding-bottom: var(--emc-section-small);
}

#top .avia-builder-el { margin-bottom: var(--emc-element-gap); }
#top .avia-builder-el.avia-builder-el-last,
#top .avia-builder-el.el_before_av_hr { margin-bottom: 0; }


/* 10 Layout Builder elements ---------------------------------------------- */

/* Special Heading: subheading ABOVE = label, BELOW = lead */
#top .av-special-heading { padding-bottom: 0; margin-bottom: var(--emc-space-l); }
#top .av-special-heading .av-special-heading-tag { margin: 0; }
#top .av-special-heading .special-heading-border { display: none; }

#top .av-special-heading .av-subheading {
	max-width: var(--emc-measure);
	font-size: var(--emc-lead-size);
	line-height: var(--emc-text-line-height);
	letter-spacing: 0;
	text-transform: none;
}

#top .av-special-heading-centered .av-subheading { margin-left: auto; margin-right: auto; }
#top .av-special-heading .av-subheading_below { margin-top: var(--emc-space-s); }

#top .av-special-heading .av-subheading_above {
	margin-bottom: var(--emc-space-s);
	font-size: var(--emc-h6-size);
	font-weight: var(--emc-label-weight);
	line-height: 1.5;
	letter-spacing: var(--emc-label-tracking);
	text-transform: uppercase;
	opacity: 1;
}

#top .av-special-heading .av-subheading p { margin: 0; }

/* Icon Box & Icon List */
#top :is(.iconbox .iconbox_content_title, .avia-icon-list .av_iconlist_title) {
	margin-bottom: var(--emc-space-xs);
	font-size: var(--emc-h5-size);
	font-weight: var(--emc-heading-weight);
	line-height: var(--emc-heading-small-line-height);
	letter-spacing: var(--emc-heading-small-tracking);
	text-transform: none;
}

#top :is(.iconbox .iconbox_content_container, .avia-icon-list .av_iconlist_content) { font-size: var(--emc-text-size); line-height: var(--emc-text-line-height); }
#top .iconbox.main_box .iconbox_content { border-radius: var(--emc-radius-card); box-shadow: none; }

/* Accordion — flat rows, icon on the right */
#top .toggler {
	padding: var(--emc-space-s) 40px var(--emc-space-s) 0;
	border: 0;
	border-bottom: var(--emc-border);
	border-radius: 0;
	background: transparent !important;
	font-size: var(--emc-h5-size);
	font-weight: var(--emc-heading-weight);
	line-height: var(--emc-heading-small-line-height);
	letter-spacing: var(--emc-heading-small-tracking);
	text-transform: none;
}

#top .togglecontainer:first-child .toggler { border-top: var(--emc-border); }
#top .toggler .toggle_icon { left: auto; right: 4px; border: 0; background: transparent; }
#top .toggle_wrap .toggle_content { padding: 0 40px var(--emc-space-m) 0; border: 0; background: transparent; }
#top .toggle_wrap.active_tc { border-bottom: var(--emc-border); }

/* Tabs — underline style */
#top .tabcontainer { border: 0; background: transparent; }
#top .tabcontainer.top_tab .tab_titles { border-bottom: var(--emc-border); }

#top .tabcontainer .tab {
	margin: 0 var(--emc-space-m) -1px 0;
	padding: var(--emc-space-s) 0;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	font-size: var(--emc-text-size);
	font-weight: var(--emc-heading-weight);
	letter-spacing: var(--emc-button-tracking);
	opacity: 0.55;
	transition: opacity var(--emc-speed) var(--emc-ease), border-color var(--emc-speed) var(--emc-ease);
}

#top .tabcontainer .tab:hover { opacity: 1; }
#top .tabcontainer .tab.active_tab { border-bottom-color: currentColor; background: transparent; opacity: 1; }
#top .tabcontainer .tab_content { padding: var(--emc-space-m) 0 0; border: 0; background: transparent; }

/* Testimonials */
#top :is(.avia-testimonial-content, .avia-testimonial-content p) {
	font-family: var(--emc-font-heading);
	font-size: clamp(22px, 16px + 1.4vw, 32px);
	font-style: normal;
	line-height: 1.45;
	letter-spacing: -0.02em;
}

#top .avia-testimonial-name { font-size: var(--emc-text-size); font-weight: var(--emc-heading-weight); letter-spacing: 0; }
#top :is(.avia-testimonial-subtitle, .avia-testimonial-link) { font-size: var(--emc-small-size); opacity: 0.7; }
#top .avia-testimonial-image img { border-radius: 50%; }

/* Animated numbers */
#top .avia-animated-number-title { font-weight: var(--emc-heading-weight); line-height: 1; letter-spacing: var(--emc-heading-tracking); }
#top .avia-animated-number-content { margin-top: var(--emc-space-xs); font-size: var(--emc-text-size); opacity: 0.75; }

/* Team member */
#top .team-member-name { font-size: var(--emc-h5-size); font-weight: var(--emc-heading-weight); letter-spacing: var(--emc-heading-small-tracking); }
#top .team-member-job-title { font-size: var(--emc-small-size); letter-spacing: 0; text-transform: none; opacity: 0.7; }

/* Blog, post slider, magazine */
#top :is(.post-entry .post-title, .post-entry .entry-title) {
	font-size: var(--emc-h3-size);
	line-height: var(--emc-heading-line-height);
	letter-spacing: var(--emc-heading-tracking);
	text-transform: none;
}

#top .single .post-entry .post-title { font-size: var(--emc-h1-size); }
#top .single .post-entry .entry-content { max-width: var(--emc-measure); }

#top :is(.post-meta-infos, .slide-meta, .av-magazine-time, .blog-categories, .minor-meta) {
	font-size: 12px;
	letter-spacing: 0.02em;
}

#top :is(.slide-entry-title, .av-magazine-title) {
	font-size: var(--emc-h5-size);
	font-weight: var(--emc-heading-weight);
	line-height: var(--emc-heading-small-line-height);
	letter-spacing: var(--emc-heading-small-tracking);
	text-transform: none;
}

#top .slide-entry-excerpt { font-size: var(--emc-text-size); line-height: var(--emc-text-line-height); }

/* Pricing table */
#top .pricing-table { border-radius: var(--emc-radius-card); }
#top .pricing-table li.avia-heading-row { font-size: var(--emc-h5-size); font-weight: var(--emc-heading-weight); letter-spacing: var(--emc-heading-small-tracking); text-transform: none; }
#top .pricing-table li.avia-pricing-row { font-family: var(--emc-font-heading); font-size: var(--emc-h2-size); font-weight: var(--emc-heading-weight); letter-spacing: var(--emc-heading-tracking); }

/* Progress bars */
#top .avia-progress-bar :is(.progress, .bar-outer) { border-radius: 999px; box-shadow: none; }

/* Pagination */
#top .pagination { font-size: var(--emc-small-size); }
#top .pagination :is(a, .current) { min-width: 2.5em; border-radius: 999px; text-align: center; }


/* 11 Sidebar, footer & socket --------------------------------------------- */
#top .widgettitle {
	margin-bottom: var(--emc-space-s);
	font-size: var(--emc-h6-size);
	font-weight: var(--emc-label-weight);
	line-height: 1.5;
	letter-spacing: var(--emc-label-tracking);
	text-transform: uppercase;
}

#top .widget { font-size: var(--emc-text-size); line-height: var(--emc-text-line-height); }
#top .widget ul li { padding: 3px 0; border: 0; }

#top #footer { font-size: var(--emc-text-size); }
#top :is(#socket, #socket .copyright, #socket .sub_menu_socket a) { font-size: var(--emc-small-size); }


/* 12 Utility classes ------------------------------------------------------
   Add in Advanced > Developer Settings > Custom CSS Class, or from the
   Formats dropdown in a Text Block.                                         */

/* Small uppercase label above a heading */
#top .emc-label {
	display: block;
	margin-bottom: var(--emc-space-s);
	font-size: var(--emc-h6-size);
	font-weight: var(--emc-label-weight);
	line-height: 1.5;
	letter-spacing: var(--emc-label-tracking);
	text-transform: uppercase;
}

/* Hero-sized heading — on a Special Heading or a heading in a Text Block */
#top .emc-display,
#top .emc-display .av-special-heading-tag {
	font-size: var(--emc-display-size);
	line-height: 1;
	letter-spacing: var(--emc-display-tracking);
}

/* Heading weight overrides, as the demos vary them */
#top .emc-light, #top .emc-light .av-special-heading-tag { font-weight: 300; }
#top .emc-heavy, #top .emc-heavy .av-special-heading-tag { font-weight: 800; }

/* Big stat or step number: "01", "4.9+" */
#top .emc-number {
	margin-bottom: var(--emc-space-xs);
	font-family: var(--emc-font-heading);
	font-size: var(--emc-h2-size);
	font-weight: var(--emc-heading-weight);
	line-height: 1;
	letter-spacing: var(--emc-heading-tracking);
	font-variant-numeric: tabular-nums;
}

/* Text link with arrow */
#top a.emc-arrow {
	font-weight: var(--emc-button-weight);
	letter-spacing: var(--emc-button-tracking);
	text-decoration: none;
	white-space: nowrap;
}

#top a.emc-arrow::after {
	content: "\27F6";
	display: inline-block;
	margin-left: 0.45em;
	transition: transform var(--emc-speed) var(--emc-ease);
}

#top a.emc-arrow:hover::after { transform: translateX(4px); }

#top .emc-muted { opacity: 0.65; }

/* Readable line length */
#top .emc-measure { max-width: var(--emc-measure); }
#top .emc-measure.emc-centered,
#top .av-special-heading-centered.emc-measure { margin-left: auto; margin-right: auto; }

/* Card treatment: Column, Cell or Icon Box */
#top .emc-card {
	padding: clamp(24px, 16px + 2vw, 45px);
	border: var(--emc-border);
	border-radius: var(--emc-radius-card);
	overflow: hidden;
}

#top .emc-rounded img,
#top img.emc-rounded { border-radius: var(--emc-radius-card); }

/* Dark Color Section: white text over a dark background */
#top .emc-dark,
#top .emc-dark :is(h1, h2, h3, h4, h5, h6, p, li, a:not(.avia-button), label, blockquote,
	.av-special-heading-tag, .av-subheading, .iconbox_content_title, .iconbox_content_container,
	.av_iconlist_title, .av_iconlist_content, .toggler, .toggle_content, .tab) {
	color: #fff;
}

#top .emc-dark :is(p, li, .av-subheading_below, .iconbox_content_container, .av_iconlist_content, .toggle_content) {
	color: rgba(255, 255, 255, 0.75);
}

#top .emc-dark :is(.toggler, .toggle_wrap, .tab_titles, .hr-inner) { border-color: rgba(255, 255, 255, 0.16); }


/* 13 Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	#top *,
	#top *::before,
	#top *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* Menus: use the theme font instead of the Enfold Theme Options font
   (main menu, sub menus, mobile/burger menu). */
#top :is(#header .av-main-nav, #header .av-main-nav a, #header .av-subnav-menu, #header .av-subnav-menu a, .av-burger-overlay, .av-burger-overlay a, #av-burger-menu-ul, #av-burger-menu-ul a) {
	font-family: var(--emc-font-body) !important;
}
