/*
 * Medline footer v2 — same system as header-v2.css (Onest, brand turquoise,
 * the S-curve "line of beauty"). The footer opens with the mirrored curve,
 * so every page is framed by the line at the top and at the bottom.
 */

.mf {
	--mf-bg: #0b3a47;          /* the header's ink, used as the ground */
	--mf-bg-deep: #072b35;
	--mf-lagoon: #4bbcd7;      /* links and accents on ink: 5.6:1 */
	--mf-text: rgba(255, 255, 255, .92);
	--mf-muted: rgba(255, 255, 255, .66);
	--mf-line: rgba(255, 255, 255, .12);

	position: relative;
	clear: both; /* page templates leave floats uncleared inside #main */
	margin-top: 60px;
	background: var(--mf-bg);
	color: var(--mf-text);
	font-family: "Onest", "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.mf ul, .mf li, .mf p, .mf dl, .mf dt, .mf dd, .mf address { margin: 0; padding: 0; list-style: none; font-style: normal; background: none; border: 0; }
.mf li::before { content: none; }
.mf a { text-decoration: none; transition: color .18s, background-color .18s, border-color .18s; }
.mf .mh-ico { width: 1em; height: 1em; flex: none; fill: currentColor; }
.mf :focus-visible { outline: 2px solid var(--mf-lagoon); outline-offset: 3px; border-radius: 8px; }

.mf-edge {
	position: absolute; left: 0; bottom: calc(100% - 1px);
	width: 100%; height: 34px;
	fill: var(--mf-bg);
	pointer-events: none;
}

.mf-main { padding: 52px 0 44px; }
.mf-grid {
	display: grid;
	grid-template-columns: 1.05fr .95fr .9fr 1.45fr;
	gap: 40px;
	align-items: start;
}

/* brand column */
.mf-logo { display: inline-block; line-height: 0; }
.mf-logo img { width: 180px; height: auto; }
.mf-tagline { margin-top: 10px !important; font-family: "CACChampagne", cursive; font-size: 27px; line-height: 1.1; color: var(--mf-lagoon); }
.mf-about { margin-top: 12px !important; color: var(--mf-muted); max-width: 26ch; }
.mf-social { display: flex; gap: 10px; margin-top: 20px !important; }
.mf .mf-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%;
	border: 1px solid var(--mf-line);
	color: var(--mf-text);
	font-size: 19px;
}
.mf .mf-social a:hover { background: var(--mf-lagoon); border-color: var(--mf-lagoon); color: var(--mf-bg); }

/* columns */
.mf-label {
	margin-bottom: 16px !important;
	color: var(--mf-lagoon);
	font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.mf-address { display: flex; gap: 10px; margin-bottom: 14px !important; color: var(--mf-text); }
.mf-address .mh-ico { font-size: 18px; margin-top: 2px; color: var(--mf-lagoon); }
.mf-address small { display: block; margin-top: 2px; color: var(--mf-muted); font-size: 13.5px; }
.mf-list { display: grid; gap: 6px; }
.mf .mf-list a { display: inline-flex; align-items: center; gap: 10px; color: var(--mf-text); }
.mf .mf-list a:hover { color: var(--mf-lagoon); }
.mf-list .mh-ico { font-size: 15px; color: var(--mf-lagoon); }

.mf-hours { display: grid; gap: 2px; }
.mf-hours__row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--mf-line); }
.mf-hours dt { color: var(--mf-muted); }
.mf-hours dd { font-weight: 500; font-variant-numeric: tabular-nums; }
.mf-hours__row.is-today dt, .mf-hours__row.is-today dd { color: #fff; font-weight: 600; }
.mf-status {
	display: inline-flex; align-items: center; gap: 8px;
	margin-top: 14px !important;
	font-size: 13.5px; color: var(--mf-muted);
}
.mf-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa9ad; }
.mf-status.is-open { color: #bfeef9; }
.mf-status.is-open::before { background: #4fd18b; box-shadow: 0 0 0 4px rgba(79, 209, 139, .18); }
.mf .mf-cta {
	display: inline-flex; margin-top: 18px;
	padding: 12px 20px; border-radius: 999px;
	background: #fff; color: var(--mf-bg);
	font-weight: 600; font-size: 15px;
}
.mf .mf-cta:hover { background: var(--mf-lagoon); color: var(--mf-bg); }

/* map */
.mf-map__frame {
	position: relative;
	height: 260px;
	border-radius: 20px;
	overflow: hidden;
	background: var(--mf-bg-deep);
	box-shadow: 0 0 0 1px var(--mf-line), 0 18px 40px -20px rgba(0, 0, 0, .6);
}
.mf-map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mf-map__actions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.mf .mf-map__actions a { display: inline-flex; align-items: center; gap: 8px; color: var(--mf-text); font-weight: 500; }
.mf .mf-map__actions a:hover { color: var(--mf-lagoon); }
.mf-map__actions .mh-ico { font-size: 17px; color: var(--mf-lagoon); }

/* bottom bar */
.mf-bottom { background: var(--mf-bg-deep); padding: 18px 0; font-size: 13.5px; }
.mf-bottom__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; }
.mf-copy { color: var(--mf-muted); }
.mf-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.mf .mf-links a { color: var(--mf-muted); }
.mf .mf-links a:hover { color: #fff; }

/* tablet */
@media (max-width: 1179px) {
	.mf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
	.mf-map { grid-column: 1 / -1; }
	.mf-map__frame { height: 300px; }
}
@media (max-width: 860px) {
	.mf-grid { grid-template-columns: 1fr 1fr; }
	.mf-brand { grid-column: 1 / -1; }
	.mf-about { max-width: 46ch; }
}
/* phone */
@media (max-width: 640px) {
	.mf { margin-top: 44px; }
	.mf-edge { height: 22px; }
	.mf-main { padding: 34px 0 30px; }
	.mf-grid { grid-template-columns: 1fr; gap: 30px; }
	.mf-logo img { width: 150px; }
	.mf-about { max-width: none; }
	.mf-map__frame { height: 240px; border-radius: 16px; }
	.mf-bottom__row { flex-direction: column; align-items: flex-start; }
	.mf .mf-cta { display: flex; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.mf * { transition: none !important; }
}
