/**
 * Footer styles — loaded on every page.
 *
 * Implements the Avemed footer (Figma frame 40:715). The markup lives in
 * the ux_block post with slug `footer-ux-block` (post 88). Flatsome renders
 * that block via theme_mod `footer_block`.
 */

/* =========================================================================
   Tokens (scoped to footer sections so they don't leak to the rest of the site)
   ========================================================================= */
.av-footer-newsletter,
.av-footer-main,
.av-footer-copyright {
	--avf-mint:       rgba(146,192,150,0.08);
	--avf-ink:        var(--fs-color-base);
	--avf-body:       inherit;
	--avf-muted:      inherit;
	--avf-line:       rgba(146,192,150,0.25);
	--avf-line-soft:  rgba(0,0,0,0.08);
	--avf-green:      var(--primary-color);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Remove Flatsome footer chrome this block is intended to replace ---------- */
.footer-widgets.footer.footer-1 { display: none; }
.footer-widgets.footer.footer-2.dark { display: none; }
.absolute-footer.dark { display: none; }
/* Some Flatsome builds leave extra border/padding on #footer; tighten it. */
#footer .footer-1 + .footer-block { margin-top: 0; }
#footer [id^="block-"].footer-block > .section { margin: 0; }

/* Reset Flatsome section padding variables on footer sections so our own
   padding controls the whole block. */
.av-footer-newsletter .section-content,
.av-footer-main       .section-content,
.av-footer-copyright  .section-content { padding-top: 0; padding-bottom: 0; }

/* =========================================================================
   1. Newsletter band
   ========================================================================= */
.av-footer-newsletter { background: var(--avf-mint); }
.av-footer-newsletter .av-news { text-align: center; max-width: 580px; margin: 0 auto; }
.av-footer-newsletter .av-news-icon {
	display: inline-flex;
	width: 40px; height: 40px;
	align-items: center;
	justify-content: center;
	color: var(--avf-green);
	margin-bottom: 16px;
}
.av-footer-newsletter .av-news h3 {
	font-weight: 300 !important;
	font-size: 24px !important;
	line-height: 1.3 !important;
	color: var(--avf-ink) !important;
	margin: 0 0 10px !important;
	letter-spacing: -0.005em;
}
.av-footer-newsletter .av-news > p {
	color: var(--avf-body) !important;
	font-size: 16px;
	line-height: 1.55;
	margin: 0 0 24px;
}
.av-footer-newsletter .av-news-form {
	display: flex;
	gap: 12px;
	max-width: 512px;
	margin: 0 auto;
	align-items: stretch;
}
.av-footer-newsletter .av-news-form input[type="email"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 52px;
	padding: 0 24px;
	border-radius: 999px;
	border: 1px solid var(--avf-line-soft);
	background: #fff;
	color: var(--avf-ink);
	font-size: 15px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	outline: none;
}
.av-footer-newsletter .av-news-form input[type="email"]::placeholder { color: var(--avf-muted); }
.av-footer-newsletter .av-news-form input[type="email"]:focus {
	border-color: var(--avf-green);
	box-shadow: 0 0 0 3px rgba(146,192,150,0.25);
}
.av-footer-newsletter .av-news-form button {
	height: 52px;
	padding: 0 32px;
	border-radius: 999px;
	border: 0;
	background: var(--avf-ink);
	color: #fff;
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	flex: 0 0 auto;
	transition: background 0.15s ease;
}
.av-footer-newsletter .av-news-form button:hover { background: #000; }

/* =========================================================================
   2. Main footer grid
   ========================================================================= */
.av-footer-main { background: #fff; 
	border-top: 1px solid #F3F4F6;}

.av-footer-main .av-footer-brand { padding-right: 24px; }

.av-footer-main .av-footer-contact {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.av-footer-main .av-footer-contact li {
	display: flex;
	align-items: center;
	gap: 16px;
	color: var(--avf-body);
	font-size: 14px;
	line-height: 1.5;
}
.av-footer-main .av-footer-contact .icon {
	flex: 0 0 40px;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--avf-mint);
	border: 1px solid var(--avf-line);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--avf-green);
}
.av-footer-main .av-footer-contact a {
	color: var(--avf-body);
	text-decoration: none;
}
.av-footer-main .av-footer-contact a:hover { color: var(--avf-ink); }

/* Column headings + lists --------------------------------------------------- */
.av-footer-heading {
	font-weight: 700 !important;
	font-size: 14px !important;
	line-height: 20px !important;
	color: #091120 !important;
	letter-spacing: 0.7px !important;
	text-transform: uppercase;
	margin: 0 0 20px !important;
}

/* Menu Block in the main footer columns (rendered by [menu_block]).
   Legacy `.av-footer-list` selector is kept as an alias for anyone still
   using the hardcoded <ul> markup. */
.av-footer-main .av-menu-block,
.av-footer-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.av-footer-main .av-menu-block li,
.av-footer-list li {
	position: relative;
	padding-left: 16px;
	line-height: 1.5;
	margin: 0;
}
.av-footer-main .av-menu-block li::before,
.av-footer-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--avf-green);
}
.av-footer-main .av-menu-block li.is-accent::before,
.av-footer-list li.is-accent::before { background: var(--avf-green); }
.av-footer-main .av-menu-block a,
.av-footer-list a {
	color: var(--avf-body);
	font-size: 15px;
	text-decoration: none;
	transition: color 0.15s ease;
}
.av-footer-main .av-menu-block a:hover,
.av-footer-list a:hover { color: var(--avf-ink); }

/* Brand description */
.av-footer-main .av-footer-desc {
	color: var(--avf-body) !important;
	font-size: 14px;
	line-height: 1.65;
	margin: 0 0 20px;
}

/* Social icons -------------------------------------------------------------- */
.av-footer-social {
	display: flex;
	gap: 12px;
	margin-top: 24px;
}
.av-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--avf-mint);
	color: var(--avf-body);
	transition: color 0.15s, background 0.15s;
	text-decoration: none;
}
.av-social-icon:hover {
	background: var(--avf-green);
	color: #fff;
}

/* Payment column ------------------------------------------------------------ */
.av-footer-main .av-footer-pay-lead {
	color: var(--avf-body) !important;
	font-size: 14px;
	line-height: 1.55;
	margin: 0 0 18px;
}
.av-pay-icons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.av-pay-chip {
	height: 38px;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--avf-ink);
	letter-spacing: 0.02em;
}
.av-pay-chip--visa    { letter-spacing: 0.06em; }
.av-pay-chip--maestro { text-transform: lowercase; }
.av-pay-chip--paypal  { }
.av-pay-chip--mc-text { }

/* =========================================================================
   3. Copyright bar
   ========================================================================= */
.av-footer-copyright {
	background: #fff;
	border-top: 1px solid #F3F4F6;
}
.av-footer-copyright .col{
	padding-bottom: 20px;
}
.av-footer-copyright .av-footer-copy,
.av-footer-copyright .av-footer-legal a {
	font-size: 12px;
	color: var(--avf-body);
	line-height: 1.4;
	margin: 0;
}
.av-footer-copyright .av-footer-copy { font-weight: 300; }
.av-footer-copyright .av-footer-legal {
	display: flex;
	gap: 24px;
	justify-content: flex-end;
	flex-wrap: wrap;
}
/* When the legal row is rendered through [menu_block], it produces
   <ul class="av-menu-block is-inline"> — strip list chrome and go horizontal. */
.av-footer-copyright .av-footer-legal .av-menu-block {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}
.av-footer-copyright .av-footer-legal .av-menu-block li { padding: 0; line-height: 16px; margin: 0; }
.av-footer-copyright .av-footer-legal .av-menu-block li::before { display: none; }
.av-footer-copyright .av-footer-legal a,
.av-footer-copyright .av-footer-legal .av-menu-block a { text-decoration: none; color:var(--accent-color-text); font-size: 12px; }
.av-footer-copyright .av-footer-legal a:hover,
.av-footer-copyright .av-footer-legal .av-menu-block a:hover { color: var(--avf-ink); }


.footer-icons.icon-box-left .icon-box-img + .icon-box-text{
	padding-left: 12px;
}

.footer-icons.icon-box-left .icon-box-img + .icon-box-text > :first-child{
	margin-top: 8px;
}

.footer-icons{
	margin-top: 12px;
}

.footer-icons a {
	color: var(--avf-body);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-social-icons{
	margin-top: 20px;
	display: flex !important;
	gap: 8px;
}

.footer-social-icons i{
	color: #5C6370;
	transition: color 0.3s;
}

.footer-social-icons a{
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #E9F1EA;
	border-radius: 99px;
	margin: 0 !important;
}

.footer-social-icons a:hover i{
	color: var(--avf-green);
}

.w-62{
	width: fit-content !important;
}

.w-62 img{
	width: 62px !important;
	height: auto;
}

/* =========================================================================
   Mobile
   ========================================================================= */
@media (max-width: 849px) {
	.av-footer-newsletter .av-news h3 { font-size: 22px !important; }
	.av-footer-newsletter .av-news-form { flex-direction: column; }
	.av-footer-newsletter .av-news-form button { width: 100%; }

	.av-footer-main .av-footer-brand { padding-right: 0; margin-bottom: 32px; }
	.av-footer-main .av-footer-contact .icon { flex: 0 0 36px; width: 36px; height: 36px; }

	.av-footer-copyright .av-footer-legal { justify-content: center; gap: 16px; }
	
	.av-footer-copyright .av-footer-copy{
		text-align: center;
	}
}
